:root {
  --navy:#061225;
  --cyan:#25d4ff;
  --blue:#0879dc;
  --white:#eef7ff;
}

* { box-sizing:border-box; }

[hidden] { display:none!important; }

body {
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(ellipse at 15% 40%,#123b63,transparent 55%),
    linear-gradient(125deg,#061225,#030913);
  color:var(--white);
  font-family:Arial,Helvetica,sans-serif;
}

header,footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:20px 4%;
}

header {
  border-bottom:1px solid #234866;
}

footer {
  border-top:1px solid #234866;
  font-size:12px;
  color:#9db5cf;
  flex-wrap:wrap;
}

.brand img {
  max-width:190px;
  max-height:65px;
  object-fit:contain;
}

#wordmark {
  font-size:42px;
  font-weight:900;
  letter-spacing:3px;
  font-style:italic;
}

#wordmark span,h1 span {
  color:var(--cyan);
}

.event {
  font-size:12px;
  letter-spacing:4px;
  color:#9ac8ea;
}

main {
  min-height:calc(100vh - 166px);
  padding:35px 5%;
  display:grid;
  align-items:center;
}

.game-layout {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  align-items:center;
  gap:50px;
  width:100%;
  max-width:1600px;
  margin:auto;
}

.wheel-frame {
  position:relative;
  max-width:640px;
  width:100%;
  margin:auto;
}

canvas {
  display:block;
  width:100%;
  filter:drop-shadow(0 0 25px #008aff66);
}

.pointer {
  position:absolute;
  top:-7px;
  left:50%;
  transform:translateX(-50%);
  border-left:19px solid transparent;
  border-right:19px solid transparent;
  border-top:48px solid #ffda77;
  z-index:2;
}

.eyebrow {
  color:var(--cyan);
  letter-spacing:4px;
  font-size:13px;
  font-weight:bold;
}

h1 {
  font-size:clamp(55px,7vw,110px);
  line-height:.95;
  margin:20px 0;
}

p {
  font-size:17px;
  line-height:1.6;
  color:#afc3da;
}

.registration {
  display:grid;
  gap:8px;
  max-width:450px;
  margin:24px 0;
}

label {
  font-size:12px;
  color:#9ebbd4;
}

input {
  color:white;
  background:#0d2037;
  border:1px solid #2e5679;
  padding:13px;
  border-radius:8px;
  font-size:15px;
  margin-bottom:5px;
}

button {
  cursor:pointer;
  color:white;
  font-weight:bold;
  border:0;
  border-radius:9px;
}

button:disabled {
  cursor:default;
  opacity:.7;
}

.primary {
  background:linear-gradient(110deg,#0085de,#00bfdc);
  box-shadow:0 0 25px #00b8f133;
  padding:20px 35px;
  font-size:19px;
  letter-spacing:2px;
}

.secondary {
  background:#132a42;
  border:1px solid #375571;
  padding:10px 15px;
  font-size:12px;
}

#status {
  margin:20px 0;
  color:var(--cyan);
  font-size:13px;
  letter-spacing:2px;
}

#quiz {
  width:100%;
  max-width:1150px;
  margin:auto;
  background:#0b1b30;
  border:1px solid #245879;
  padding:35px;
  border-radius:22px;
}

.quiz-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

#category {
  color:var(--cyan);
  font-size:24px;
}

#timer {
  font-size:55px;
  font-weight:bold;
  color:#ffda77;
}

.progress {
  height:7px;
  background:#23415a;
  border-radius:10px;
  overflow:hidden;
}

#progressBar {
  width:100%;
  height:100%;
  background:var(--cyan);
}

#question {
  font-size:clamp(25px,3vw,43px);
  line-height:1.35;
  margin:30px 0;
}

#answers {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.answer {
  background:#142d47;
  border:1px solid #345e80;
  padding:24px;
  font-size:19px;
  text-align:left;
  min-height:85px;
}

.answer:hover:not(:disabled) {
  background:#1c4568;
  border-color:var(--cyan);
}

.answer.correct {
  background:#087345;
  border-color:#53f2ac;
  opacity:1;
}

.answer.wrong {
  background:#922c40;
  border-color:#ff8195;
  opacity:1;
}

#result {
  text-align:center;
  font-size:25px;
  line-height:1.5;
  padding:20px 0;
}

#nextButton { display:block;margin:auto; }

.statistics {
  display:flex;
  align-items:center;
  gap:12px;
}

.statistics b {
  color:var(--cyan);
  font-size:20px;
}

.confetti {
  position:fixed;
  top:-30px;
  pointer-events:none;
  width:10px;
  height:16px;
  z-index:99;
  animation:fall 3s linear forwards;
}

@keyframes fall {
  to {
    transform:translateY(110vh) rotate(900deg);
    opacity:0;
  }
}

@media(max-width:800px) {
  .game-layout { grid-template-columns:1fr;gap:20px; }
  .wheel-frame { max-width:420px; }
  .event { display:none; }
  #answers { grid-template-columns:1fr; }
  #quiz { padding:20px; }
  h1 { font-size:60px; }
}

/* MITEX_OFFICIAL_LOGO_V162 */

.mitex-brand{
  display:flex;
  align-items:center;
  min-width:200px;
}

.mitex-logo-header{
  height:82px;
  width:auto;
  object-fit:contain;
  filter:drop-shadow(0 0 14px rgba(41,151,255,.25));
}

@media(max-width:800px){
  .mitex-logo-header{
    height:58px;
  }
}
