@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800;900&family=Barlow:wght@400;600;700;800&display=swap');

@font-face {
  font-family: 'Tungsten-Bold';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Tungsten-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Chivo';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/Chivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Chivo';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/Chivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:        #7A4B2A;
  --surface:   #4A1B09;
  --surface2:  #5C2210;
  --gold:      #E3A020;
  --red:       #DC1C1C;
  --blue:      #122a8a;
  --white:     #FFFFFF;
  --muted:     #B08060;
  --vh:        1vh;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
input, button, select, textarea { font-family: inherit; }

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: -1;
  pointer-events: none;
  background: url('../images/BC.jpg') center top / cover no-repeat;
}

body {
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  min-height: 100dvh;
  /* background: #7A4B2A; */
}

/* ── Screen ─────────────────────────────────────────────────── */
.screen {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0 auto;
  padding-top: 0;
}

/* ── Corner balls ───────────────────────────────────────────── */
.corner {
  position: absolute;
  top: 0;
  width: 110px;
  height: 110px;
  z-index: 10;
  pointer-events: none;
  overflow: visible;
}
.corner-tl { left: -5px; }
.corner-tr { right: -15px; }
.corner img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.corner-tl img { transform: translate(-38px, -20px); }
.corner-tr img { transform: translate(38px, 20px); }

/* ── Snickers logo ──────────────────────────────────────────── */
.logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 88px;
  padding: 28px 16px 0;
  position: relative;
  z-index: 1;
}
.logo-wrap img {
  max-width: 250px;
  max-height: 74px;
  object-fit: contain;
}
.logo-ph {
  display: none;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  border: 2px dashed rgba(232,160,32,0.4);
  border-radius: 8px;
  padding: 10px 20px;
}

/* ── Hero (registration page) ───────────────────────────────── */
.hero {
  text-align: center;
  padding: 30px 20px 16px;
  position: relative;
  z-index: 1;
}
.fifa-tag {
  font-family: 'Tungsten-Bold', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5.5vw, 40px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}
.main-title {
  font-family: 'Tungsten-Bold', sans-serif;
  font-weight: 900;
  font-size: clamp(58px, 10vw, 90px);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  line-height: 0.88;
  margin: 2px 0 8px;
}
.tagline {
  font-family: 'Chivo', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.5;
  max-width: 340px;
  margin: 0 auto;
}

/* ── Form ───────────────────────────────────────────────────── */
.form {
  padding: 4px 48px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  position: relative;
  z-index: 1;
}

.field {
  display: grid;
  grid-template-columns: 1fr auto;
  margin-bottom: 22px;
}
.field-label {
  display: block;
  font-family: 'Tungsten-Bold', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 5px;
  padding-left: 1.5%;
}
.field .field-label {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}
.field-input,
.phone-wrap {
  grid-column: 1 / -1;
  grid-row: 2;
}
.field .field-error {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin-top: 0;
  font-size: 11px;
  text-align: right;
}
.regions-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.regions-label-row .field-label { margin-bottom: 0; }
.regions-label-row .field-error { font-size: 11px; margin-top: 0; }
.field-input {
  width: 100%;
  display: block;
  padding: 7px 12px;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 8px;
  color: var(--white);
  font-size: 22px;
  font-family: 'Tungsten-Bold', sans-serif;
  outline: none;
  -webkit-appearance: none;
  transition: box-shadow 0.2s;
}
.field-input::placeholder { color: var(--muted); }
.field-input:focus { box-shadow: 0 0 0 2px rgba(232,160,32,0.5); background: rgba(255,255,255,0.22); }
.field-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.12) inset;
  -webkit-text-fill-color: #ffffff;
  transition: background-color 99999s ease-in-out 0s;
}
.field-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.12) inset, 0 0 0 2px rgba(232,160,32,0.5);
  -webkit-text-fill-color: #ffffff;
  transition: background-color 99999s ease-in-out 0s;
}
.field-input.error { box-shadow: 0 0 0 2px var(--red); }

/* ── Phone field ────────────────────────────────────────────── */
.field--phone {
  position: relative;
  z-index: 50;
}
.phone-wrap {
  display: flex;
  gap: 8px;
  width: 100%;
}
.phone-code-wrap {
  position: relative;
  width: 120px;
  flex-shrink: 0;
}
.phone-code-btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding-right: 28px;
  white-space: nowrap;
  position: relative;
  font-size: 22px;
  font-family: 'Tungsten-Bold', sans-serif;
}
.phone-code-btn::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #ffffff;
}
.phone-code-list {
  display: none;
  position: fixed;
  width: 130px;
  max-height: 180px;
  overflow-y: auto;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  list-style: none;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.phone-code-list.open { display: block; }
.phone-code-list li {
  padding: 10px 14px;
  font-family: 'Tungsten-Bold', sans-serif;
  font-size: 22px;
  color: var(--white);
  cursor: pointer;
  white-space: nowrap;
}
.phone-code-list li:hover { background: rgba(255,255,255,0.12); }
.phone-code-list li.selected { color: var(--gold); }
.phone-number {
  flex: 1;
}
.field-error {
  display: none;
  font-size: 12px;
  color: var(--red);
  margin-top: 5px;
}
.field-error.show { display: block; }
.field-error.show::after {
  content: ' !';
  font-size: 10px;
}

/* ── Region selector ────────────────────────────────────────── */
.regions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}
.region-btns {
  display: flex;
  justify-content: space-between;
}
.region-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: none;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 6px 0;
  border-radius: 10px;
  transition: border-color 0.2s;
}
.region-btn .rname {
  font-family: 'Chivo', sans-serif;
  font-size: clamp(13px, 3vw, 16px);
  font-weight: 300;
  color: var(--white);
  text-transform: uppercase;
}
.rflag-wrap {
  background: rgba(255,255,255,0.12);
  border-radius: 14px;
  width: clamp(52px, 11vw, 62px);
  height: clamp(52px, 11vw, 62px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.region-btn .rflag {
  width: clamp(58px, 12.5vw, 68px);
  height: auto;
  border-radius: 3px;
  display: block;
}
.region-btn.active { border-color: var(--gold); }
.region-btn.active .rname { color: var(--gold); }
.region-btns.error .rflag-wrap { box-shadow: 0 0 0 2px var(--red); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1px 48px;
  border: none;
  border-radius: 50px;
  font-family: 'Tungsten-Bold', sans-serif;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  text-decoration: none;
  line-height: 1.3;
  color: var(--white);
}
.btn-gold  { background: var(--gold); }
.btn-red   { background: var(--red);  }
.btn-blue  { background: var(--blue); }
.btn:hover  { opacity: 0.88; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-wrap { padding: 0 20px; margin-top: 14px; }
.form .btn-wrap {
  padding: 0;
  position: sticky;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 10;
}

/* ── Ready screen ───────────────────────────────────────────── */
.ready-intro {
  font-family: 'Chivo', sans-serif;
  font-size: 21px;
  font-weight: 300;
  color: var(--white);
  text-align: center;
  line-height: 1.1;
  padding: 25px 24px 0px;
  position: relative;
  z-index: 1;
}

.ready-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0px 24px 0;
  position: relative;
  z-index: 1;
}
.ready-are-you {
  font-family: 'Tungsten-Bold', sans-serif;
  font-weight: 400;
  font-size: clamp(42px, 8vw, 62px);
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1;
  margin-top: 20px;
  animation: choco-zoom 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0s both;
}
.ready-ready {
  font-family: 'Tungsten-Bold', sans-serif;
  font-weight: 400;
  font-size: clamp(85px, 14vw, 124px);
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
  line-height: 0.88;
  animation: choco-zoom 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.pitch-area {
  width: 100%;
  margin-top: 24px;
  margin-bottom: 24px;
}
.pitch-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pitch-inner img {
  width: 120%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  animation: choco-zoom 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
@keyframes choco-zoom {
  0%   { transform: scale(0.05); opacity: 0; }
  70%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}
.pitch-inner .product-ph {
  font-size: 80px;
  line-height: 1;
}

.ready-tagline {
  font-family: 'Tungsten-Bold', sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 5vw, 34px);
  color: var(--white);
  text-align: center;
  line-height: 1;
  margin-bottom: 25px;
  animation: choco-zoom 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}
.screen--ready .btn-wrap {
  animation: choco-zoom 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}
.screen--ready .btn {
  font-size: clamp(44px, 8vw, 56px);
  line-height: 1;
  padding: 4px 48px;
  width: 95%;
  margin: 0 auto;
}

/* ── Game — Timer ───────────────────────────────────────────── */
.timer-row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0 0;
  position: relative;
  z-index: 1;
}
.timer-widget {
  position: relative;
  width: clamp(200px, 68vw, 260px);
  height: 89px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timer-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.t-time {
  position: relative;
  z-index: 1;
  font-family: 'Tungsten-Bold', sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 5vw, 34px);
  color: #1a3a8f;
  letter-spacing: 4px;
  line-height: 1;
}

/* ── Game — Question ────────────────────────────────────────── */
/* ── Question slide animation ────────────────────────────────── */
.question-slide { overflow: hidden; }
@keyframes slide-out-left {
  from { transform: translateX(0);     opacity: 1; }
  to   { transform: translateX(-110%); opacity: 0; }
}
@keyframes slide-in-right {
  from { transform: translateX(110%);  opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
.question-slide.slide-out { animation: slide-out-left 0.3s ease-in  forwards; }
.question-slide.slide-in  { animation: slide-in-right 0.3s ease-out forwards; }

.q-label {
  font-family: 'Tungsten-Bold', sans-serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--gold);
  text-align: center;
  text-transform: uppercase;
  margin: 22px 0 20px;
  position: relative;
  z-index: 1;
}
.q-text {
  font-family: 'Tungsten-Bold', sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 7.5vw, 58px);
  color: var(--white);
  text-align: center;
  line-height: 1.15;
  padding: 0 24px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  min-height: calc(2 * 1.15em);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Choice buttons ─────────────────────────────────────────── */
.choices {
  padding: 0 52px;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 4vh, 46px);
  position: relative;
  z-index: 1;
}
.choice-btn {
  width: 100%;
  padding: 22px 28px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 8px;
  color: var(--white);
  font-family: 'Tungsten-Bold', sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 5.5vw, 38px);
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  transform: none !important;
}
.choice-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.2); }
.choice-btn.selected { background: var(--red) !important; }
.choice-btn.dimmed   { opacity: 0.45; }
.choice-btn:disabled { cursor: default; }

.next-wrap {
  padding: 20px 52px 0;
  position: relative;
  z-index: 1;
  margin-top: 16px;
}
.next-wrap .btn {
  font-size: clamp(40px, 7vw, 50px);
}

/* ── Result screen ──────────────────────────────────────────── */
.screen--result .corner img {
  width: 168px;
  height: 168px;
}
.screen--result .corner-tl img { transform: rotate(0deg) translate(-73px, -32px); }
.result-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 24px 0;
  position: relative;
  z-index: 1;
}
.result-headline {
  font-family: 'Tungsten-Bold', sans-serif;
  font-weight: 900;
  font-size: clamp(64px, 11vw, 98px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 0.85;
  margin-top: 15px;
  margin-bottom: 0;
}
.result-on-game {
  font-family: 'Tungsten-Bold', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 10.5vw, 68px);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  margin-top: -6px;
}
.result-sub {
  font-family: 'Tungsten-Bold', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 7.5vw, 46px);
  color: var(--white);
  line-height: 1.2;
  max-width: 300px;
  margin-top: 15px;
  margin-bottom: 10px;

}

/* Score circles */
.score-circles {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  margin-bottom: 40px;
  gap: 70px;
  width: 100%;
  position: relative;
}
.score-circle {
  width: 130px;
  height: 130px;
  border: 3px solid var(--white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 0;
}
.score-big {
  font-family: 'Tungsten-Bold', sans-serif;
  font-weight: 900;
  font-size: 60px;
  color: var(--gold);
  line-height: 1;
}
.score-lbl {
  font-family: 'Tungsten-Bold', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-right: 1px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.score-product {
  position: absolute;
  left: 50%;
  transform: translateX(-46%);
  z-index: 2;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.score-product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.score-product .product-ph { font-size: 48px; }

.result-actions .btn {
  font-family: 'Tungsten-Bold', sans-serif;
  font-size: 38px;
  letter-spacing: 0;
  border-radius: 16px;
  padding: 10px;
  flex-direction: column;
  line-height: 0.9;
  white-space: nowrap;
  width: 90%;
  align-self: center;
}

.result-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}


.result-prizes {
  font-family: 'Chivo', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--white);
  text-align: center;
  line-height: 1.4;
  margin-top: 20px;
  width: 88%;
  align-self: center;
}

/* ── Loading ─────────────────────────────────────────────────── */
.loading { text-align: center; padding: 40px 0; color: var(--muted); }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(232,160,32,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--red); color: white;
  padding: 12px 24px; border-radius: 50px;
  font-size: 14px; font-weight: 600;
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none; z-index: 999; white-space: nowrap;
}
.toast.show { opacity: 1; }

/* ── Register form animations ────────────────────────────────── */
@keyframes slide-up-fade {
  from { transform: translateY(120px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
@keyframes drop-fade {
  from { transform: translateY(-32px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.screen--register .logo-wrap          { animation: drop-fade    0.5s ease-out 0s    both; }
.screen--register .fifa-tag           { animation: drop-fade    0.5s ease-out 0.1s  both; }
.screen--register .main-title         { animation: drop-fade    0.5s ease-out 0.2s  both; }
.screen--register .tagline            { animation: drop-fade    0.5s ease-out 0.3s  both; }
.screen--register .field:nth-child(1) { animation: slide-up-fade 0.5s ease-out 0.2s both; }
.screen--register .field:nth-child(2) { animation: slide-up-fade 0.5s ease-out 0.3s both; }
.screen--register .field--phone       { animation: slide-up-fade 0.5s ease-out 0.4s both; z-index: 50; }
.screen--register .regions            { animation: slide-up-fade 0.5s ease-out 0.5s both; }
.screen--register .btn-wrap           { animation: slide-up-fade 0.5s ease-out 0.6s both; }

/* ── Loading overlay ─────────────────────────────────────────── */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(122, 75, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.loading-overlay.active { display: flex; }
.loading-ball {
  width: 70px;
  height: 70px;
  object-fit: contain;
  animation: ball-bounce 0.7s ease-in-out infinite alternate;
}
@keyframes ball-bounce {
  from { transform: translateX(-90px) rotate(0deg); }
  to   { transform: translateX(90px) rotate(360deg); }
}

/* ── Responsive (tablets & desktop) ─────────────────────────── */
@media (min-width: 600px) and (hover: hover) and (pointer: fine) {
  body {
    display: flex;
    justify-content: center;
    padding: 0;
    align-items: flex-start;
  }

  .screen {
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
  }
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
 body {
    padding: 0;
  }

  /* Registration: full-width two-column layout */
  .screen--register {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 40px;
    align-content: start;
    width: 100%;
    max-width: 100%;
  }
  .screen--register .logo-wrap { grid-column: 1 / -1; padding: 26px 60px 0; }
  .screen--register .hero { grid-column: 1; text-align: left; padding: 24px 0 0 60px; }
  .screen--register .form { grid-column: 2; padding: 24px 60px 0 0; max-width: none; width: 100%; }
  .screen--register .btn-wrap { padding: 0; }
  .screen--register .regions { justify-content: flex-start; gap: 14px; }
  .screen--register .region-btn { flex: 0 0 auto; padding: 6px 10px; }

  /* Game: use space better */
  .screen--game .q-text { max-width: 920px; margin-left: auto; margin-right: auto; padding: 0 40px; }
  .screen--game .choices {
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  /* Center a lone last button (odd total = orphaned in 2-col grid) */
  .screen--game .choice-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 8px);
    justify-self: center;
  }
  .screen--game .next-wrap { max-width: 420px; margin: 18px auto 0; }
}

/* ── Disclaimer button & modal ───────────────────────────────── */
.disclaimer-btn {
  position: fixed;
  bottom: 6px;
  left: 10px;
  z-index: 1;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 6px 14px;
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.disclaimer-btn:hover { background: rgba(0, 0, 0, 0.72); }

.disclaimer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.disclaimer-overlay.active { display: flex; }

.disclaimer-modal {
  position: relative;
  background: #2a0e05;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 16px;
  padding: 32px 22px 24px;
  max-width: 460px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  direction: ltr;
  text-align: left;
}

.disclaimer-title {
  font-family: 'Tungsten-Bold', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.disclaimer-body {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.disclaimer-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}
.disclaimer-close:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ── Background full-screen fix ──────────────────────────────────
   These rules must stay at the END of the file so they win cascade.
   1. overflow-x:clip on html prevents it from creating a scroll container
      which breaks position:fixed on iOS Safari (overflow:hidden does this).
   2. .bg height:100% uses the fixed containing block (viewport) so it
      fills the FULL screen — dvh shrinks when the browser chrome is visible
      leaving a gap; 100% does not.
──────────────────────────────────────────────────────────────── */
html {
  overflow-x: clip;
}

@media (max-width: 400px) {
  .screen--result .result-headline {
    font-size: clamp(44px, 10vw, 58px);
  }
  .screen--result .result-sub {
    font-size: clamp(22px, 5.5vw, 30px);
  }
}

