:root {
  --ink: #24304a;
  --muted: #69738a;
  --cream: #fffaf1;
  --paper: #ffffff;
  --orange: #ff7a16;
  --orange-dark: #e95f05;
  --yellow: #ffc83d;
  --teal: #14a7a0;
  --teal-dark: #087d79;
  --purple: #6d5ce7;
  --pink: #ec4d73;
  --green: #21a665;
  --red: #db3e52;
  --line: #ede5d8;
  --shadow: 0 24px 60px rgba(48, 52, 74, .13);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100%; margin: 0; color: var(--ink); background: var(--cream); font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.topbar, .game-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px 15px 19px 14px;
  color: white;
  background: linear-gradient(145deg, #ff962c, var(--orange));
  box-shadow: 0 12px 24px rgba(255, 122, 22, .25);
  font-size: 21px;
  font-weight: 900;
  transform: rotate(-2deg);
}
.brand > span:last-child { display: grid; line-height: 1.02; }
.brand small { margin-bottom: 4px; color: #5d6371; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.brand strong { color: var(--orange-dark); font-size: 22px; }
.compact-brand .brand-mark { width: 46px; height: 46px; border-radius: 15px; font-size: 17px; }
.compact-brand strong { font-size: 18px; }
.compact-brand small { font-size: 8px; }
.back-link, .exit-button { color: #566178; font-size: 14px; font-weight: 800; }
.back-link:hover, .exit-button:hover { color: var(--orange-dark); }

.button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  color: white;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 13px 26px rgba(54, 59, 82, .13);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.button:hover { filter: brightness(1.035); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(54, 59, 82, .17); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: not-allowed; filter: grayscale(.3); opacity: .55; transform: none; }
.button-large { min-height: 58px; padding: 0 30px; font-size: 17px; }
.button-orange { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.button-teal { background: linear-gradient(135deg, #20bab1, var(--teal-dark)); }
.button-purple { background: linear-gradient(135deg, #8274f2, #5945d0); }
.button-white { color: var(--ink); background: white; border: 1px solid var(--line); }
.text-link { color: var(--teal-dark); font-size: 14px; font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }

.home-main { overflow: hidden; }
.home-hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 580px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 65px;
  padding: 52px 0 76px;
}
.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  color: #a6520c;
  background: #ffefc3;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-copy h1 { max-width: 650px; margin: 22px 0 20px; font-size: clamp(50px, 6.2vw, 82px); line-height: .98; letter-spacing: -.055em; }
.hero-copy h1 em { color: var(--orange); font-style: normal; }
.hero-copy > p { max-width: 610px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.65; }
.hero-features { display: flex; flex-wrap: wrap; gap: 13px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: #5d667b; font-size: 13px; font-weight: 800; }
.hero-visual { min-height: 470px; position: relative; display: grid; place-items: center; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: 510px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffe7a8;
  transform: translate(35px, -5px);
}
.hero-visual img {
  width: min(560px, 100%);
  aspect-ratio: 3 / 2;
  position: relative;
  z-index: 2;
  border: 12px solid white;
  border-radius: 46% 54% 48% 52% / 52% 45% 55% 48%;
  object-fit: contain;
  background: #fff1e8;
  box-shadow: var(--shadow);
}
.hero-burst { position: absolute; z-index: 3; color: var(--orange); font-size: 34px; }
.burst-one { top: 40px; left: 12px; }
.burst-two { right: -4px; bottom: 50px; color: var(--teal); font-size: 26px; }

.entry-grid { width: min(1060px, calc(100% - 40px)); margin: -12px auto 100px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.entry-card { position: relative; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); overflow: hidden; }
.entry-card::after { content: ""; position: absolute; width: 170px; height: 170px; right: -70px; top: -70px; border-radius: 50%; background: #fff0ce; opacity: .8; }
.team-entry::after { background: #d9f6f2; }
.entry-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 21px; background: #fff1d4; font-size: 29px; }
.team-entry .entry-icon { background: #ddf7f4; }
.card-label { display: inline-block; margin-top: 22px; color: var(--orange-dark); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.card-label.teal { color: var(--teal-dark); }
.entry-card h2 { margin: 8px 0 10px; font-size: 30px; letter-spacing: -.025em; }
.entry-card > p { margin: 0 0 25px; color: var(--muted); line-height: 1.55; }

.join-form { display: grid; gap: 10px; }
.join-form label { margin-top: 4px; color: #59637a; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.join-form input {
  width: 100%;
  min-height: 53px;
  border: 2px solid #e9e4db;
  border-radius: 15px;
  outline: none;
  padding: 0 17px;
  color: var(--ink);
  background: #fffdf8;
  font-size: 17px;
  transition: border-color .2s, box-shadow .2s;
}
.join-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20, 167, 160, .12); }
.join-form .code-input { font-size: 25px; font-weight: 900; letter-spacing: .16em; text-align: center; }
.join-form .button { margin-top: 9px; width: 100%; }
.avatar-picker-field { min-width: 0; margin: 8px 0 2px; padding: 0; border: 0; }
.avatar-picker-field legend { color: #59637a; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.avatar-picker-field > p { margin: 5px 0 10px; color: var(--muted); font-size: 12px; }
.avatar-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.avatar-option { min-width: 0; margin: 0 !important; cursor: pointer; }
.avatar-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.avatar-option-card { min-height: 93px; display: grid; grid-template-rows: auto 1fr; align-items: center; justify-items: center; gap: 5px; padding: 5px 4px 7px; border: 2px solid #ece5da; border-radius: 16px; color: #59637a; background: white; text-align: center; transition: border-color .16s, box-shadow .16s, transform .16s; }
.avatar-option-card img { width: 100%; aspect-ratio: 1; display: block; border-radius: 12px; object-fit: cover; }
.avatar-option-card b { max-width: 100%; font-size: 9px; line-height: 1.1; overflow-wrap: anywhere; text-transform: none; letter-spacing: 0; }
.avatar-option input:focus-visible + .avatar-option-card { outline: 3px solid rgba(20, 167, 160, .25); outline-offset: 2px; }
.avatar-option input:checked + .avatar-option-card { border-color: var(--teal); color: var(--teal-dark); background: #effcf9; box-shadow: 0 0 0 4px rgba(20, 167, 160, .12); transform: translateY(-2px); }
.form-error { margin: 2px 0 0; padding: 10px 13px; border-radius: 12px; color: #a32338; background: #fff0f2; font-size: 13px; font-weight: 800; }

.how-it-works { padding: 90px max(20px, calc((100% - 1180px) / 2)); background: white; }
.section-title { text-align: center; }
.section-title > span { color: var(--orange-dark); font-size: 11px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.section-title h2 { margin: 8px 0 0; font-size: clamp(34px, 4vw, 48px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 45px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 17px; padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: #fffdf9; }
.steps b { flex: 0 0 auto; width: 45px; height: 45px; display: grid; place-items: center; border-radius: 15px; color: white; background: var(--orange); font-size: 20px; }
.steps li:nth-child(2) b { background: var(--teal); }
.steps li:nth-child(3) b { background: var(--purple); }
.steps div { display: grid; gap: 4px; }
.steps strong { font-size: 16px; }
.steps span { color: var(--muted); font-size: 13px; line-height: 1.4; }

.site-footer { padding: 42px 20px; text-align: center; color: #fff5e8; background: #293349; }
.site-footer p { margin: 0 0 8px; font-weight: 800; }
.site-footer small { color: #cfd5e1; }
.site-footer .legal-links { display:flex; flex-wrap:wrap; justify-content:center; gap:10px 20px; margin-top:20px; padding-top:18px; border-top:1px solid #ffffff20; }
.site-footer .legal-links a { color:#f1f3f7; font-size:12px; font-weight:800; }

/* Telas do jogo */
.game-page { min-height: 100vh; background: radial-gradient(circle at 15% 10%, #fff4d5 0, transparent 32%), radial-gradient(circle at 90% 85%, #daf7f3 0, transparent 33%), var(--cream); }
.game-header { min-height: 76px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-button { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: white; cursor: pointer; font-size: 20px; box-shadow: 0 8px 18px rgba(40, 46, 69, .08); }
.game-main { width: min(1180px, calc(100% - 40px)); min-height: calc(100vh - 100px); margin: 0 auto; padding: 22px 0 45px; display: grid; align-items: center; }
.panel { border: 1px solid var(--line); border-radius: 32px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.setup-panel { min-height: 570px; display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; overflow: hidden; }
.setup-character { align-self: stretch; display: flex; align-items: flex-end; justify-content: center; padding: 35px 15px 0; background: linear-gradient(145deg, #ffeab8, #fff8e8); }
.setup-character img { width: min(320px, 95%); height: 500px; object-fit: contain; object-position: center bottom; mix-blend-mode: multiply; }
.setup-copy { padding: 54px; }
.setup-copy h1 { margin: 18px 0 12px; font-size: clamp(38px, 4.5vw, 58px); line-height: 1.02; letter-spacing: -.04em; }
.setup-copy > p { max-width: 620px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.time-picker { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; padding: 0; border: 0; }
.time-picker legend { width: 100%; margin-bottom: 7px; color: #59637a; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.time-picker label { cursor: pointer; }
.time-picker input { position: absolute; opacity: 0; pointer-events: none; }
.time-picker span { display: inline-flex; min-height: 46px; align-items: center; padding: 0 18px; border: 2px solid #ece5da; border-radius: 14px; color: #586279; background: white; font-weight: 800; }
.time-picker input:checked + span { border-color: var(--orange); color: var(--orange-dark); background: #fff4e6; box-shadow: 0 0 0 4px rgba(255, 122, 22, .1); }
.setup-copy .text-link { display: block; width: fit-content; margin-top: 18px; }

#host-stage { min-height: 650px; }
.lobby-screen, .question-screen, .ranking-screen, .finished-screen { min-height: 650px; }
.lobby-screen { display: grid; grid-template-columns: .88fr 1.12fr; gap: 26px; }
.lobby-code-panel { padding: 42px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.lobby-code-panel h1 { margin: 10px 0 4px; font-size: 30px; }
.lobby-code-panel > p { margin: 0; color: var(--muted); }
.room-code-display { margin: 27px 0 18px; color: var(--orange-dark); font-size: clamp(54px, 8vw, 92px); font-weight: 900; line-height: 1; letter-spacing: .1em; text-indent: .1em; }
.room-qr { width: 190px; min-height: 190px; display: grid; place-items: center; margin: 0 auto 9px; padding: 8px; border: 1px solid #ece5da; border-radius: 19px; background: white; box-shadow: 0 12px 28px rgba(38, 45, 68, .12); }
.room-qr svg { display: block; width: 100%; height: auto; border-radius: 10px; }
.qr-hint { margin: 0 0 14px !important; color: var(--teal-dark) !important; font-size: 12px; font-weight: 900; }
.join-address { margin: 0 auto 14px; padding: 9px 12px; border-radius: 12px; color: #59637a; background: #f6f3ec; font-size: 11px; overflow-wrap: anywhere; }
.lobby-teams-panel { padding: 38px; }
.lobby-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.lobby-heading h2 { margin: 0; font-size: 29px; }
.team-count { min-width: 55px; height: 36px; display: grid; place-items: center; border-radius: 999px; color: var(--teal-dark); background: #ddf7f4; font-weight: 900; }
.waiting-hint { color: var(--muted); font-size: 14px; }
.team-list { min-height: 325px; display: grid; align-content: start; gap: 12px; margin: 24px 0; }
.team-list-empty { min-height: 260px; display: grid; place-items: center; padding: 30px; border: 2px dashed #e8e2d8; border-radius: 22px; color: #8790a1; text-align: center; }
.team-list-empty span { display: block; margin-bottom: 8px; font-size: 39px; }
.team-chip { display: flex; align-items: center; gap: 13px; min-height: 66px; padding: 8px 15px; border: 1px solid #eee9e0; border-left: 7px solid var(--team-color); border-radius: 16px; background: #fffdf9; }
.team-avatar { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; padding: 3px; border: 3px solid var(--team-color); border-radius: 50%; background: white; overflow: hidden; }
.team-avatar-image { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
.team-chip strong { flex: 1; }
.team-chip small { color: var(--muted); }
.lobby-actions { display: flex; gap: 12px; }
.lobby-actions .button { flex: 1; }

.question-screen { display: grid; grid-template-rows: auto auto 1fr auto; gap: 20px; }
.quiz-topline { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
.question-number { min-width: 126px; padding: 11px 16px; border-radius: 999px; color: var(--orange-dark); background: #fff0d4; font-size: 13px; font-weight: 900; text-align: center; }
.progress-track { height: 12px; border-radius: 999px; background: #e8e5dd; overflow: hidden; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--yellow)); transition: width .35s ease; }
.answered-pill { min-width: 130px; padding: 11px 15px; border-radius: 999px; color: var(--teal-dark); background: #ddf7f4; font-size: 13px; font-weight: 900; text-align: center; }
.timer-area { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.timer-number { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 21px; color: white; background: var(--purple); box-shadow: 0 12px 25px rgba(109, 92, 231, .25); font-size: 28px; font-weight: 900; }
.timer-number.urgent { background: var(--red); animation: pulse .7s infinite alternate; }
.timer-track { height: 16px; border: 4px solid white; border-radius: 999px; background: #e8e5dd; box-shadow: 0 5px 14px rgba(38, 45, 68, .08); overflow: hidden; }
.timer-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #6bd3cb); transition: width .15s linear; }
.timer-fill.urgent { background: linear-gradient(90deg, var(--red), #ff8d78); }
.question-card { display: grid; place-items: center; padding: 35px 55px; text-align: center; }
.question-card h1 { max-width: 920px; margin: 0; font-size: clamp(35px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -.035em; }
.question-reference { margin-top: 17px; padding: 7px 12px; border-radius: 999px; color: #6c7690; background: #f4f1eb; font-size: 12px; font-weight: 800; }
.host-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.choice-card { min-height: 86px; display: flex; align-items: center; gap: 15px; padding: 17px 20px; border-radius: 20px; color: white; box-shadow: 0 13px 24px rgba(42, 48, 70, .13); font-size: 21px; font-weight: 900; }
.choice-card:nth-child(1), .answer-button:nth-child(1) { background: #e34b57; }
.choice-card:nth-child(2), .answer-button:nth-child(2) { background: #2278cf; }
.choice-card:nth-child(3), .answer-button:nth-child(3) { background: #e0a900; }
.choice-card:nth-child(4), .answer-button:nth-child(4) { background: #24935d; }
.choice-symbol { flex: 0 0 auto; width: 45px; height: 45px; display: grid; place-items: center; border: 3px solid rgba(255,255,255,.8); border-radius: 14px; font-size: 20px; }
.question-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.answer-statuses { display: flex; flex-wrap: wrap; gap: 8px; }
.answer-status { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; color: #687287; background: #ece9e2; font-size: 11px; font-weight: 900; }
.answer-status.done { color: #116b47; background: #dff5e9; }
.status-avatar { width: 24px; height: 24px; display: block; border-radius: 50%; object-fit: cover; }

.ranking-screen { display: grid; grid-template-columns: 1.05fr .95fr; gap: 25px; }
.answer-panel, .ranking-panel { padding: 36px; }
.answer-panel { display: flex; flex-direction: column; justify-content: center; }
.answer-label { color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.answer-panel h1 { margin: 10px 0 17px; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; }
.correct-answer { display: flex; align-items: center; gap: 15px; padding: 18px; border-radius: 20px; color: white; background: var(--green); font-size: 21px; font-weight: 900; }
.correct-answer span { width: 42px; height: 42px; display: grid; place-items: center; border: 3px solid rgba(255,255,255,.8); border-radius: 14px; }
.explanation { margin: 20px 0 7px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.verse-reference { color: var(--purple); font-size: 13px; font-weight: 900; }
.ranking-panel h2 { margin: 0 0 19px; font-size: 31px; }
.ranking-list { display: grid; gap: 10px; }
.ranking-row { min-height: 65px; display: grid; grid-template-columns: 43px 46px 1fr auto; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid #ece7de; border-radius: 16px; background: #fffdf9; }
.ranking-position { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--team-color); font-weight: 900; }
.ranking-avatar { width: 44px; height: 44px; display: block; padding: 2px; border: 2px solid var(--team-color); border-radius: 50%; background: white; overflow: hidden; }
.ranking-avatar-image { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
.ranking-row:first-child { border-color: #f3c93f; background: #fff9dc; transform: scale(1.015); }
.ranking-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-score { color: var(--orange-dark); font-weight: 900; }
.ranking-actions { display: flex; gap: 12px; margin-top: 22px; }
.ranking-actions .button { flex: 1; }

.finished-screen { position: relative; padding: 42px; text-align: center; overflow: hidden; }
.finished-screen > * { position: relative; z-index: 2; }
.finished-screen h1 { margin: 10px 0 5px; font-size: clamp(43px, 6vw, 72px); line-height: 1; }
.finished-screen > p { color: var(--muted); }
.podium { min-height: 330px; display: flex; align-items: flex-end; justify-content: center; gap: 14px; margin: 25px auto 32px; }
.podium-place { width: min(230px, 29%); display: flex; flex-direction: column; align-items: center; }
.podium-avatar { width: 78px; height: 78px; display: block; margin-bottom: 3px; padding: 4px; border: 4px solid var(--team-color); border-radius: 50%; background: white; box-shadow: 0 10px 22px rgba(35, 42, 64, .16); overflow: hidden; }
.podium-avatar-image { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
.podium-name { width: 100%; min-height: 54px; display: grid; place-items: center; padding: 8px; color: var(--ink); font-weight: 900; overflow-wrap: anywhere; }
.podium-block { width: 100%; display: grid; place-items: center; border-radius: 22px 22px 8px 8px; color: white; background: var(--team-color); box-shadow: 0 16px 28px rgba(35, 42, 64, .15); }
.podium-block b { display: block; font-size: 44px; }
.podium-block span { font-size: 13px; font-weight: 900; }
.podium-place.first { order: 2; }
.podium-place.second { order: 1; }
.podium-place.third { order: 3; }
.podium-place.first .podium-block { height: 220px; }
.podium-place.second .podium-block { height: 165px; }
.podium-place.third .podium-block { height: 125px; }
.final-actions { display: flex; justify-content: center; gap: 13px; }
.confetti { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.confetti i { position: absolute; width: 12px; height: 24px; border-radius: 4px; background: var(--confetti-color); animation: fall 4s linear infinite; animation-delay: var(--delay); left: var(--left); top: -30px; transform: rotate(var(--rotation)); }

.toast { position: fixed; left: 50%; bottom: 25px; z-index: 50; transform: translateX(-50%); padding: 13px 18px; border-radius: 14px; color: white; background: #263047; box-shadow: 0 12px 30px rgba(27,33,51,.25); font-size: 13px; font-weight: 800; }

/* Celular das equipes */
.team-page { background: linear-gradient(165deg, #fffaf0 0%, #eefbf9 100%); }
.team-main { width: min(620px, calc(100% - 28px)); min-height: calc(100vh - 90px); margin: 0 auto; padding: 15px 0 30px; display: grid; align-items: center; }
.mobile-panel { padding: 28px; border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.join-panel { text-align: center; }
.mobile-mascot { width: 110px; height: 110px; margin: -5px auto 15px; border-radius: 50%; background: #fff0c8; overflow: hidden; }
.mobile-mascot img { width: 100%; height: 150px; object-fit: cover; object-position: center 5%; mix-blend-mode: multiply; }
.join-panel .eyebrow { margin: 0 auto; }
.join-panel h1 { margin: 15px 0 22px; font-size: 36px; letter-spacing: -.035em; }
.join-panel .join-form { text-align: left; }
.team-status-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.team-identity { min-width: 0; display: flex; align-items: center; gap: 10px; }
.team-profile-avatar { flex: 0 0 auto; width: 42px; height: 42px; display: block; padding: 2px; border: 3px solid var(--team-color); border-radius: 50%; background: white; overflow: hidden; }
.team-profile-avatar img { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
.team-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-score { flex: 0 0 auto; padding: 8px 11px; border-radius: 999px; color: var(--orange-dark); background: #fff0d4; font-size: 12px; font-weight: 900; }
.waiting-screen { min-height: 520px; display: grid; place-items: center; text-align: center; }
.waiting-animation { width: 110px; height: 110px; position: relative; margin: 0 auto 24px; }
.waiting-animation::before, .waiting-animation::after { content: ""; position: absolute; inset: 0; border: 9px solid #d9f4f1; border-top-color: var(--teal); border-radius: 50%; animation: spin 1.2s linear infinite; }
.waiting-animation::after { inset: 22px; border-width: 7px; border-color: #ffefc7; border-bottom-color: var(--orange); animation-direction: reverse; animation-duration: .9s; }
.waiting-animation img { position: absolute; inset: 12px; z-index: 2; width: calc(100% - 24px); height: calc(100% - 24px); display: block; border: 5px solid white; border-radius: 50%; object-fit: cover; }
.waiting-screen h1 { margin: 0 0 10px; font-size: 38px; }
.waiting-screen p { max-width: 390px; margin: 0; color: var(--muted); line-height: 1.55; }
.room-badge { display: inline-flex; margin-top: 22px; padding: 9px 14px; border-radius: 999px; color: var(--purple); background: #ece9ff; font-size: 13px; font-weight: 900; }
.mobile-question-screen { min-height: calc(100vh - 120px); display: grid; grid-template-rows: auto auto 1fr; gap: 13px; }
.mobile-quiz-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.mobile-question-number, .mobile-timer { padding: 8px 11px; border-radius: 12px; font-size: 12px; font-weight: 900; }
.mobile-question-number { color: var(--purple); background: #ece9ff; }
.mobile-timer { min-width: 45px; color: white; background: var(--purple); text-align: center; }
.mobile-timer.urgent { background: var(--red); animation: pulse .7s infinite alternate; }
.mobile-progress { height: 9px; border-radius: 999px; background: #e6e3dc; overflow: hidden; }
.mobile-progress span { display: block; height: 100%; border-radius: inherit; background: var(--orange); }
.mobile-question-card { min-height: 145px; display: grid; place-items: center; padding: 23px; border-radius: 24px; background: white; box-shadow: 0 12px 30px rgba(40,46,69,.1); text-align: center; }
.mobile-question-card h1 { margin: 0; font-size: clamp(24px, 7vw, 34px); line-height: 1.1; letter-spacing: -.025em; }
.answer-grid { min-height: 355px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.answer-button { min-height: 165px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; padding: 16px 12px; border: 0; border-radius: 22px; color: white; cursor: pointer; box-shadow: 0 12px 22px rgba(37,43,64,.14); font-weight: 900; text-align: center; transition: transform .12s, filter .12s; }
.answer-button:active { transform: scale(.97); }
.answer-button:disabled { cursor: not-allowed; filter: grayscale(.25); opacity: .65; }
.answer-button .choice-symbol { width: 42px; height: 42px; }
.answer-button span:last-child { font-size: 16px; line-height: 1.15; }
.answer-button.selected { outline: 5px solid white; box-shadow: 0 0 0 7px var(--ink), 0 15px 28px rgba(37,43,64,.18); opacity: 1; filter: none; }
.sent-screen { min-height: 520px; display: grid; place-items: center; text-align: center; }
.sent-icon { width: 105px; height: 105px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 34px; color: white; background: var(--teal); box-shadow: 0 17px 30px rgba(20,167,160,.24); font-size: 50px; }
.sent-screen h1 { margin: 0 0 10px; font-size: 36px; }
.sent-screen p { margin: 0; color: var(--muted); }
.result-screen { min-height: 560px; display: grid; align-content: center; gap: 18px; text-align: center; }
.result-icon { width: 105px; height: 105px; display: grid; place-items: center; margin: 0 auto; border-radius: 34px; color: white; font-size: 52px; box-shadow: 0 17px 30px rgba(38,44,67,.15); }
.result-icon.correct { background: var(--green); }
.result-icon.wrong { background: var(--red); }
.result-screen h1 { margin: 0; font-size: 38px; }
.result-points { width: fit-content; margin: 0 auto; padding: 9px 15px; border-radius: 999px; color: var(--orange-dark); background: #fff0d4; font-size: 17px; font-weight: 900; }
.result-answer { padding: 18px; border-radius: 19px; color: #176846; background: #e4f7ec; font-weight: 900; }
.result-explanation { margin: 0; color: var(--muted); line-height: 1.5; }
.team-rank-card { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.team-rank-card div { padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.team-rank-card small { display: block; margin-bottom: 4px; color: var(--muted); }
.team-rank-card strong { color: var(--purple); font-size: 22px; }
.team-finished { min-height: 560px; display: grid; align-content: center; text-align: center; }
.team-finished-avatar { width: 108px; height: 108px; display: block; margin: 0 auto -35px; border: 6px solid white; border-radius: 50%; object-fit: cover; box-shadow: 0 12px 25px rgba(38,44,67,.16); }
.team-finished .trophy { font-size: 85px; }
.team-finished h1 { margin: 7px 0; font-size: 42px; }
.team-finished > p { color: var(--muted); }
.team-final-position { margin: 20px 0; padding: 24px; border-radius: 24px; color: white; background: var(--team-color); box-shadow: var(--shadow); }
.team-final-position b { display: block; font-size: 55px; }
.team-final-position span { font-weight: 900; }
.team-finished > .button { margin-top: 10px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { to { transform: scale(1.08); } }
@keyframes fall { to { transform: translateY(760px) rotate(520deg); } }

@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; text-align: center; gap: 25px; padding-top: 35px; }
  .hero-copy { display: grid; justify-items: center; }
  .hero-features { justify-content: center; }
  .hero-visual { min-height: 410px; }
  .entry-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .setup-panel { grid-template-columns: 1fr; }
  .setup-character { display: none; }
  .lobby-screen, .ranking-screen { grid-template-columns: 1fr; }
  .lobby-screen { min-height: 0; }
  .lobby-code-panel, .lobby-teams-panel { padding: 28px; }
}

@media (max-width: 620px) {
  .topbar, .game-header { width: calc(100% - 28px); min-height: 70px; }
  .topbar .brand small, .topbar .brand strong { display: none; }
  .brand-mark { width: 46px; height: 46px; border-radius: 15px; font-size: 17px; }
  .back-link { font-size: 12px; }
  .home-hero { width: calc(100% - 32px); padding: 35px 0 54px; }
  .hero-copy h1 { font-size: 49px; }
  .hero-copy > p { font-size: 16px; }
  .hero-visual { min-height: 290px; }
  .hero-visual::before { width: 300px; }
  .hero-visual img { width: 100%; border-width: 8px; }
  .entry-grid { width: calc(100% - 28px); margin-bottom: 70px; }
  .entry-card { padding: 27px; }
  .how-it-works { padding: 70px 20px; }
  .steps li { padding: 20px; }
  .compact-brand small { display: none; }
  .compact-brand strong { font-size: 14px; }
  .game-main { width: calc(100% - 24px); padding-top: 10px; }
  .setup-copy { padding: 29px; }
  .setup-copy h1 { font-size: 40px; }
  .time-picker { display: grid; grid-template-columns: 1fr; }
  .time-picker span { width: 100%; justify-content: center; }
  .lobby-actions, .ranking-actions, .final-actions { flex-direction: column; }
  .room-code-display { font-size: 53px; }
  .quiz-topline { grid-template-columns: 1fr auto; }
  .progress-track { grid-column: 1 / -1; grid-row: 2; }
  .question-number { min-width: 0; }
  .question-card { padding: 25px 20px; }
  .question-card h1 { font-size: 34px; }
  .host-choices { grid-template-columns: 1fr; }
  .choice-card { min-height: 70px; font-size: 17px; }
  .question-footer { align-items: stretch; flex-direction: column; }
  .ranking-screen { min-height: 0; }
  .answer-panel, .ranking-panel { padding: 26px; }
  .podium { min-height: 270px; gap: 6px; }
  .podium-avatar { width: 58px; height: 58px; padding: 3px; border-width: 3px; }
  .podium-name { font-size: 12px; }
  .podium-place.first .podium-block { height: 175px; }
  .podium-place.second .podium-block { height: 135px; }
  .podium-place.third .podium-block { height: 105px; }
  .finished-screen { padding: 28px 14px; }
  .team-header .brand small { display: none; }
  .team-main { width: calc(100% - 20px); }
  .mobile-panel { padding: 21px; }
  .avatar-picker { gap: 6px; }
  .avatar-option-card { min-height: 78px; padding: 4px 3px 6px; border-radius: 13px; }
  .avatar-option-card img { border-radius: 10px; }
  .avatar-option-card b { font-size: 8px; }
  .answer-grid { min-height: 330px; }
  .answer-button { min-height: 150px; }
}

@media (max-width: 370px) {
  .hero-copy h1 { font-size: 42px; }
  .answer-button { min-height: 135px; padding: 10px 7px; }
  .answer-button span:last-child { font-size: 14px; }
  .mobile-question-card h1 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
