/* =====================================================================
   360 Connect • Sút Bóng Trúng Quà — giao diện V3
   Tông: xanh rừng #1d4420 · xanh lá #55783d · kem #fff9ed · cam #f68629
   ===================================================================== */
:root {
  --forest: #1d4420;
  --forest-2: #143219;
  --leaf: #55783d;
  --leaf-soft: #e9f0d8;
  --cream: #fff9ed;
  --cream-2: #f6ead0;
  --sand: #ead8ac;
  --gold: #ffdc99;
  --orange: #f68629;
  --orange-hi: #ffb654;
  --orange-lo: #d95817;
  --orange-ink: #8a3210;
  --sky: #feefdd;
  --grass: #2d6703;
  --ink: #1d4420;
  --muted: #5f6d57;
  --line: #d7ddc7;
  --error: #c0261b;
  --f-display: "Fira Sans Extra Condensed", "Arial Narrow", Arial, sans-serif;
  --f-body: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  --shadow: 0 14px 34px rgba(20, 50, 22, .16);
  --topbar-h: 72px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--cream); color: var(--ink);
  font: 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.deco, [aria-hidden="true"] img { user-select: none; -webkit-user-drag: none; }

.demo-ribbon {
  position: fixed; z-index: 90; right: 8px; bottom: 8px; pointer-events: none;
  background: var(--forest); color: var(--cream); font-size: 10px; letter-spacing: .5px; padding: 3px 10px; border-radius: 99px; opacity: .75;
}

/* ---------- Chữ tiêu đề ---------- */
.tt-orange, .tt-green, .tt-cream {
  display: inline-block; font-family: var(--f-display); font-weight: 900; line-height: .95; letter-spacing: .5px; white-space: nowrap;
  paint-order: stroke fill; padding: .08em .04em .1em; margin: -.08em -.04em -.1em;
}
.tt-orange {
  color: transparent; background: linear-gradient(180deg, #ffc46a 0%, #ff9a3a 38%, #f2701f 64%, #d4501a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 2px #7a2a0c;
  filter: drop-shadow(0 4px 0 #7a2a0c) drop-shadow(0 10px 14px rgba(120, 40, 10, .25));
}
.tt-green {
  color: var(--forest); -webkit-text-stroke: 5px var(--cream);
  filter: drop-shadow(0 4px 0 rgba(20, 50, 22, .35)) drop-shadow(0 10px 14px rgba(20, 50, 22, .18));
}
.tt-cream { color: var(--cream); filter: drop-shadow(0 4px 0 #0e2a12) drop-shadow(0 10px 18px rgba(0, 0, 0, .3)); }

.event-tag {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: .4px;
  padding: 6px 16px; border-radius: 99px; background: var(--forest); color: var(--cream);
  box-shadow: 0 3px 0 var(--forest-2), inset 0 0 0 2px rgba(255, 220, 153, .45);
}
.event-tag b { color: var(--gold); font-weight: 800; }
.event-tag i { font-style: normal; opacity: .6; }

/* ---------- Nút (theo button-orange.svg) ---------- */
.btn-cta {
  --h: 64px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h); padding: 0 46px; border-radius: 999px; border: 4px solid #fff5d8;
  background: linear-gradient(180deg, var(--orange-hi) 0%, var(--orange) 50%, var(--orange-lo) 100%);
  color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 30px; letter-spacing: .8px; white-space: nowrap;
  text-shadow: 0 2px 0 rgba(140, 45, 8, .55);
  box-shadow: 0 7px 0 rgba(29, 68, 32, .9), 0 16px 28px rgba(29, 68, 32, .28), inset 0 3px 0 rgba(255, 255, 255, .45);
  transition: transform .12s ease, box-shadow .12s ease, filter .15s;
  -webkit-tap-highlight-color: transparent; overflow: hidden; isolation: isolate;
}
.btn-cta::before { /* vệt bóng sáng như SVG */
  content: ""; position: absolute; left: 12%; right: 16%; top: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .42); z-index: -1;
}
.btn-cta::after { /* ánh lướt */
  content: ""; position: absolute; top: -10%; bottom: -10%; left: -40%; width: 30%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: shine 3.6s ease-in-out infinite; z-index: -1;
}
@keyframes shine { 0%, 55% { left: -40%; } 100% { left: 130%; } }
.btn-cta svg { width: 28px; height: 28px; flex: none; }
.btn-cta:hover { filter: brightness(1.05) saturate(1.06); }
.btn-cta:active { transform: translateY(5px); box-shadow: 0 2px 0 rgba(29, 68, 32, .9), 0 6px 12px rgba(29, 68, 32, .25), inset 0 3px 0 rgba(255, 255, 255, .4); }
.btn-cta:disabled { cursor: not-allowed; }
.btn-cta:disabled:not(.is-loading) {
  background: linear-gradient(180deg, #f3ead6, #e1d3b2); color: #8c8068; text-shadow: none; border-color: #fffaf0;
  box-shadow: 0 6px 0 #b9ab8a, 0 12px 22px rgba(29, 68, 32, .12);
}
.btn-cta:disabled::after { display: none; }
.btn-cta.is-loading .lbl::after { content: ""; display: inline-block; width: 18px; height: 18px; margin-left: 12px; border: 3px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
.btn-xl { --h: 78px; min-width: min(420px, 100%); font-size: 38px; }
.btn-lg { --h: 68px; min-width: min(340px, 100%); font-size: 32px; }
.btn-block { width: 100%; }
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.btn-ghost {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 700;
  background: var(--forest); color: var(--cream); border: 3px solid #fff5d8; box-shadow: 0 4px 0 var(--forest-2);
}
.btn-ghost:hover { filter: brightness(1.12); }

.round-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid var(--forest); background: var(--cream);
  display: grid; place-items: center; color: var(--forest); padding: 0; flex: none;
  box-shadow: 0 3px 0 rgba(29, 68, 32, .35); transition: transform .12s, background .15s;
}
.round-btn:hover { background: var(--leaf-soft); }
.round-btn:active { transform: translateY(2px); }
.round-btn svg { width: 23px; height: 23px; }
.sound-btn .ic-off { display: none; }
.sound-btn[aria-pressed="false"] .ic-on { display: none; }
.sound-btn[aria-pressed="false"] .ic-off { display: block; }
.sound-btn.is-waiting { animation: soundHint 1.6s ease-in-out infinite; }
@keyframes soundHint { 50% { box-shadow: 0 3px 0 rgba(29, 68, 32, .35), 0 0 0 9px rgba(246, 134, 41, 0); } 0%, 100% { box-shadow: 0 3px 0 rgba(29, 68, 32, .35), 0 0 0 0 rgba(246, 134, 41, .55); } }

/* ---------- Thanh trên (màn 02–04) ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--topbar-h);
  display: flex; align-items: center; gap: 20px; padding: 0 max(24px, calc((100vw - 1320px) / 2));
  background: rgba(255, 249, 237, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--orange); box-shadow: 0 6px 20px rgba(20, 50, 22, .12);
  transform: translateY(-110%); transition: transform .35s ease;
}
body:not([data-screen="welcome"]) .topbar { transform: none; }
.topbar-logo { width: 140px; height: auto; display: block; }
.topbar .event-tag { margin-left: 10px; font-size: 17px; }
.topbar .sound-btn { margin-left: auto; }
.menu-btn { display: none; }
.menu-panel { position: absolute; right: 16px; top: calc(var(--topbar-h) - 4px); background: var(--cream); border: 2px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; min-width: 230px; display: grid; }
.menu-panel button, .menu-panel a { text-align: left; background: none; border: 0; padding: 12px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.menu-panel button:hover, .menu-panel a:hover { background: var(--leaf-soft); }

/* ---------- Màn hình ---------- */
#app { position: relative; }
.screen { display: none; position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; }
.screen.is-active { display: block; animation: screenIn .45s ease both; }
@keyframes screenIn { from { opacity: 0; } to { opacity: 1; } }
.screen:not(.screen-welcome) { padding-top: var(--topbar-h); }

/* =========================================================
   01 — CHÀO MỪNG
   ========================================================= */
.screen-welcome {
  background: var(--sky) url("../v3/arena.webp") center 72% / cover no-repeat;
  padding: 26px clamp(20px, 4vw, 64px) 26px;
}
.screen-welcome.is-active { display: flex; flex-direction: column; }
.screen-welcome::before { /* lớp kem giữ chữ dễ đọc */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 70% at 22% 42%, rgba(255, 249, 237, .96) 0%, rgba(255, 249, 237, .82) 45%, rgba(255, 249, 237, 0) 75%),
    linear-gradient(180deg, rgba(254, 239, 221, .7) 0%, rgba(254, 239, 221, 0) 30%, rgba(20, 60, 10, 0) 75%, rgba(20, 60, 10, .35) 100%);
}
.w-bunting { position: absolute; z-index: 1; top: -2.2vw; left: 52%; width: min(460px, 33vw); transform: translateX(-50%); pointer-events: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .12)); }
.welcome-head { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1320px; margin: 0 auto; }
.welcome-logo { width: clamp(150px, 14vw, 210px); height: auto; display: block; filter: drop-shadow(0 2px 0 #fff); }
.welcome-right { display: flex; align-items: center; gap: 14px; }

.welcome-grid {
  position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3vw;
  width: 100%; max-width: 1320px; margin: 0 auto; padding: 10px 0;
}
.welcome-copy { display: grid; justify-items: start; gap: 18px; }
.kicker {
  margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 10px; border-radius: 99px;
  background: var(--cream); border: 2px solid var(--orange); color: var(--orange-lo);
  font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: 1px; text-transform: uppercase; box-shadow: 0 4px 0 rgba(217, 88, 23, .25);
}
.kicker img { width: 26px; height: 26px; }
.w-title { margin: 0; display: grid; justify-items: start; gap: 4px; transform: rotate(-3deg); transform-origin: left center; }
.w-title .tt-orange { font-size: clamp(60px, 7.6vw, 128px); }
.w-title .tt-green { font-size: clamp(56px, 7vw, 118px); margin-left: 7%; -webkit-text-stroke-width: 7px; }
.w-sub { margin: 0; max-width: 470px; font-size: 18px; font-weight: 500; color: #2b3b24; }
.cta-wrap { margin-top: 6px; }
.welcome-notice { margin: 0; background: var(--cream); border: 2px solid var(--orange); border-radius: 12px; padding: 10px 16px; font-weight: 600; color: var(--orange-lo); }
.w-steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.w-steps li {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 99px; font-weight: 600; font-size: 14px;
  background: rgba(255, 249, 237, .92); border: 1.5px solid var(--line); box-shadow: 0 3px 10px rgba(20, 50, 22, .08);
}
.w-steps b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--forest); color: var(--gold); font-family: var(--f-display); font-size: 16px; }

.welcome-art { position: relative; height: min(64vh, 620px); min-height: 380px; }
.wa-burst { position: absolute; left: 50%; top: 46%; width: 92%; transform: translate(-50%, -50%); opacity: .9; animation: burstPulse 4s ease-in-out infinite; pointer-events: none; }
@keyframes burstPulse { 0%, 100% { transform: translate(-50%, -50%) scale(.96); opacity: .75; } 50% { transform: translate(-50%, -50%) scale(1.04); opacity: 1; } }
.wa-podium { position: absolute; left: 50%; bottom: 6%; width: 94%; transform: translateX(-50%); filter: drop-shadow(0 18px 18px rgba(10, 40, 10, .35)); }
.wa-gifts { position: absolute; left: 50%; bottom: 18%; width: 60%; transform: translateX(-50%); animation: floaty 4.5s ease-in-out infinite; filter: drop-shadow(0 16px 14px rgba(10, 40, 10, .25)); }
.wa-ball { position: absolute; left: 0; top: 0; width: 25%; aspect-ratio: 1; animation: floaty 3.4s ease-in-out infinite; }
.wa-ball-img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; animation: roll 7s linear infinite; filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .22)); }
.wa-trail { position: absolute; z-index: 0; right: 45%; top: 50%; width: 220%; transform-origin: 100% 50%; transform: translateY(-50%) rotate(-152deg) scaleX(-1); opacity: .9; }
@keyframes roll { to { rotate: 360deg; } }
.prize-caption {
  position: relative; z-index: 3; margin: 6px auto 0; padding: 8px 20px; border-radius: 99px; text-align: center;
  background: rgba(20, 50, 22, .78); color: var(--cream); font-size: 14.5px; font-weight: 500; backdrop-filter: blur(4px);
}

/* =========================================================
   02 — THÔNG TIN (nền sân xanh đậm)
   ========================================================= */
.screen-register {
  background:
    radial-gradient(90% 70% at 25% 40%, rgba(110, 150, 70, .45), transparent 70%),
    url("../v3/ui/pitch-pattern.svg") center / 240px 240px,
    var(--forest);
}
.r-confetti { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; opacity: .85; }
.register-grid {
  position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 40px clamp(18px, 4vw, 48px) 56px;
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 60px); align-items: center;
}
.register-intro { text-align: center; display: grid; justify-items: center; }
.title-2 { margin: 0; display: grid; justify-items: center; gap: 2px; text-align: center; }
.title-2 .tt-orange, .title-2 .tt-cream, .title-2 .tt-green { font-size: clamp(42px, 4vw, 62px); }
.intro { margin: 14px 0 0; font-size: 16.5px; font-weight: 500; color: rgba(255, 249, 237, .92); }
.ticket-chip { position: relative; margin-top: 20px; width: min(360px, 90%); }
.ticket-chip img { width: 100%; display: block; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .3)); }
.ticket-chip span {
  position: absolute; left: 30%; right: 8%; top: 50%; transform: translateY(-50%); text-align: center;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(26px, 2.4vw, 34px); line-height: 1; color: var(--forest);
}
.ticket-chip small { font-family: var(--f-body); font-weight: 600; font-size: 12.5px; letter-spacing: .3px; color: var(--orange-lo); }
.register-art { position: relative; width: min(420px, 100%); aspect-ratio: 1.45; margin-top: 8px; }
.ra-podium { position: absolute; left: 0; right: 0; bottom: 4%; width: 100%; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .35)); }
.ra-gifts { position: absolute; left: 50%; bottom: 22%; width: 56%; transform: translateX(-50%); animation: floaty 4.5s ease-in-out infinite; }
.ra-ball { position: absolute; right: 2%; top: 4%; width: 26%; animation: floaty 3.2s ease-in-out infinite reverse; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .3)); }

/* Thẻ form (theo modal-panel.svg) */
.panel {
  position: relative; background: var(--cream); border-radius: 30px; border: 6px solid var(--leaf);
  box-shadow: 0 0 0 3px #3c5e2c, 0 30px 60px rgba(0, 0, 0, .35), inset 0 0 0 2px #fff;
}
.panel::before { /* chỉ cam bên trong */
  content: ""; position: absolute; inset: 8px; border: 1.5px solid rgba(246, 134, 41, .6); border-radius: 22px; pointer-events: none;
}
.panel::after { /* gờ cam phía trên */
  content: ""; position: absolute; top: -9px; left: 50%; width: 34%; height: 12px; transform: translateX(-50%); border-radius: 99px;
  background: linear-gradient(180deg, var(--orange-hi), var(--orange-lo)); box-shadow: 0 2px 0 var(--orange-ink);
}
.register-card { padding: 34px 36px 30px; }
.register-card-head { margin-bottom: 18px; text-align: center; }
.register-card-head .intro { color: var(--muted); }

.form-grid {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; align-items: start;
  grid-template-areas: "name fbname" "phone school" "radio country";
}
.form-grid > label[for="fFullName"] { grid-area: name; }
.form-grid > label[for="fFbName"] { grid-area: fbname; }
.form-grid > label[for="fPhone"] { grid-area: phone; }
.form-grid > label[for="fSchool"] { grid-area: school; }
.field-country { grid-area: country; }
.field-radio { grid-area: radio; }
.field { display: grid; gap: 7px; font-size: 14.5px; font-weight: 600; color: var(--forest); margin: 0; min-width: 0; }
.field em { color: var(--error); font-style: normal; }
fieldset.field { border: 0; padding: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.phone-hint { display: block; margin-top: -1px; font-size: 12.5px; font-weight: 400; line-height: 1.4; color: var(--muted); }
.input-ic { position: relative; display: block; }
.input-ic svg { position: absolute; left: 14px; top: 50%; width: 21px; height: 21px; transform: translateY(-50%); color: var(--leaf); pointer-events: none; }
.input-ic input {
  width: 100%; min-height: 52px; padding: 11px 14px 11px 46px; border-radius: 14px; border: 2px solid #d8cfb6; background: #fff;
  font-size: 15.5px; font-weight: 500; transition: border-color .15s, box-shadow .15s;
}
.input-ic input::placeholder { color: #9a9a88; font-weight: 400; }
.input-ic input:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(85, 120, 61, .18); }
.input-ic input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(192, 38, 27, .12); }
.input-ic input:disabled { background: #f1eee4; color: #9aa092; }
.err { color: var(--error); font-size: 12.5px; font-weight: 500; }
.err:empty { display: none; }
.choices { display: flex; gap: 12px; }
.radio { position: relative; display: inline-flex; cursor: pointer; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 96px; min-height: 48px; padding: 0 20px; border-radius: 99px;
  border: 2px solid #d8cfb6; background: #fff; font-weight: 700; transition: all .15s;
}
.radio input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--cream); box-shadow: 0 3px 0 var(--forest-2); }
.radio input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { appearance: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--leaf); margin: 0; background: #fff; display: grid; place-items: center; flex: none; }
.check input::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); margin-top: -3px; transition: transform .15s; }
.check input:checked { background: var(--orange); border-color: var(--orange-lo); }
.check input:checked::after { transform: rotate(45deg) scale(1); }
.check em { color: var(--error); font-style: normal; }
.field-country.is-off { opacity: .45; }
.combo { position: relative; }
.combo .input-ic input { padding-right: 46px; }
.combo-toggle { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--forest); display: grid; place-items: center; border-radius: 10px; }
.combo-toggle svg { width: 20px; height: 20px; transition: transform .2s; }
.combo.is-open .combo-toggle svg { transform: rotate(180deg); }
.combo-toggle:disabled { opacity: .4; cursor: default; }
.combo-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 264px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 2px solid #d8cfb6; border-radius: 14px; box-shadow: 0 16px 34px rgba(20, 50, 22, .2); overscroll-behavior: contain;
}
.combo-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; line-height: 1.3; border-radius: 9px; cursor: pointer; font-weight: 500; font-size: 15px; }
.combo-list li .flag { width: 28px; height: 21px; flex: none; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); background: #eee; }
.combo-list li .cname { min-width: 0; }
.combo-list li.is-active, .combo-list li:hover { background: var(--leaf-soft); }
.combo-list li[aria-selected="true"] { color: var(--leaf); font-weight: 700; }
.combo-list li mark { background: #ffe3c4; color: inherit; border-radius: 3px; padding: 0 1px; }
.combo-list li.combo-empty { cursor: default; color: var(--muted); font-weight: 400; background: none; }
.combo-flag { position: absolute; left: 12px; top: 50%; width: 26px; height: 19px; transform: translateY(-50%); object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); pointer-events: none; }
.combo.has-flag .input-ic > svg { display: none; }

.fb-box {
  position: relative; margin-top: 22px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
  background: var(--forest); color: var(--cream); border-radius: 18px; padding: 16px 20px; box-shadow: inset 0 0 0 2px rgba(255, 220, 153, .35);
}
.fb-text h3 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 22px; line-height: 1.1; color: var(--cream); }
.fb-text p { margin: 6px 0 0; font-size: 12.5px; color: rgba(255, 249, 237, .75); }
.fb-qr { display: block; width: 108px; height: 108px; background: #fff; border-radius: 12px; padding: 6px; flex: none; box-shadow: 0 0 0 3px var(--gold); }
.fb-qr img { width: 100%; height: 100%; display: block; }
.fb-side { display: grid; gap: 12px; }
.fb-link { font-family: var(--f-display); font-weight: 800; font-size: 19px; color: var(--gold); text-decoration: underline; text-underline-offset: 5px; display: inline-flex; align-items: center; gap: 6px; }
.fb-link svg { width: 18px; height: 18px; }
.fb-box .check input { border-color: var(--gold); }
.check-desktop { font-size: 12.5px; line-height: 1.35; }
.check-mobile { margin-top: 16px; font-size: 14px; }
.ts-box { display: flex; justify-content: center; margin-top: 12px; }
.ts-box:empty { margin: 0; }
.form-error { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: #ffece6; color: #9a231e; font-weight: 600; font-size: 14px; }
.register-card .btn-cta { margin-top: 22px; }
.mobile-only { display: none; }

/* =========================================================
   03 — SÚT BÓNG (bố cục đặt bằng JS: layoutPitch)
   ========================================================= */
.screen-game { padding-top: var(--topbar-h); }
.pitch {
  --ground: 60%;
  position: relative; height: calc(100vh - var(--topbar-h)); height: calc(100dvh - var(--topbar-h)); min-height: 520px; overflow: hidden;
  background: linear-gradient(180deg, var(--sky) 0, var(--sky) var(--ground), #3a7414 var(--ground), var(--grass) 100%);
}
.pitch::before { /* nền mờ lấp hai bên khi ảnh sân hẹp hơn màn hình */
  content: ""; position: absolute; inset: -30px; z-index: 0; pointer-events: none; opacity: 0;
  background: url("../v3/arena.webp") center var(--bg-y, 60%) / cover no-repeat; filter: blur(12px) saturate(.9);
}
.pitch.is-narrow::before { opacity: 1; }
.arena { position: absolute; left: 0; top: 0; width: 100%; max-width: none; height: auto; pointer-events: none; z-index: 0; }
.pitch.is-narrow .arena {
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.pitch.is-short .arena {
  -webkit-mask: linear-gradient(180deg, #000 0, #000 92%, transparent 100%); mask: linear-gradient(180deg, #000 0, #000 92%, transparent 100%);
}
.pitch-fade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 60% at 50% 100%, rgba(10, 40, 5, .35), transparent 60%); }

.game-head { position: absolute; z-index: 5; left: 0; right: 0; top: 12px; text-align: center; pointer-events: none; }
.title-game { margin: 0; line-height: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: 0 .28em; }
.title-game .tt-orange, .title-game .tt-green { font-size: clamp(46px, 5.2vw, 78px); }
.title-game .tt-green { -webkit-text-stroke-width: 6px; }
.game-sub {
  display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 5px 16px; border-radius: 99px;
  background: var(--forest); color: var(--cream); font-weight: 600; font-size: 15px; box-shadow: 0 3px 0 var(--forest-2);
}
.game-sub img { width: 16px; height: 16px; }

/* Khung thành: phần tử .goal = khoảng trống bên trong khung */
.goal { position: absolute; z-index: 3; --post: 12px; --bar: 12px; }
.goal-net { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(180deg, rgba(20, 60, 24, .1), rgba(20, 60, 24, .22)); }
.goal.is-drawn .goal-net {
  background:
    repeating-linear-gradient(90deg, rgba(85, 120, 61, .85) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(0deg, rgba(85, 120, 61, .85) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, rgba(232, 242, 214, .94), rgba(200, 222, 170, .94));
}
.goal.is-drawn::before { /* khung kem dạng ống */
  content: ""; position: absolute; z-index: 0; inset: calc(-1 * var(--bar)) calc(-1 * var(--post)) 0;
  border: var(--post) solid #fff9ed; border-top-width: var(--bar); border-bottom: 0; border-radius: 18px 18px 0 0;
  box-shadow: 0 0 0 2px rgba(29, 68, 32, .45), inset 0 0 0 2px rgba(29, 68, 32, .35), 0 12px 26px rgba(10, 40, 10, .28);
}
.goal.is-drawn::after { /* chỉ cam giữa khung */
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  inset: calc(-1 * var(--bar) / 2 - 1.5px) calc(-1 * var(--post) / 2 - 1.5px) 0;
  border: 3px solid var(--orange); border-bottom: 0; border-radius: 12px 12px 0 0;
}
.goal.is-shaking { animation: goalShake .45s ease; }
@keyframes goalShake { 20% { transform: translateX(-4px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }

.goal-tiles {
  --tw: 110px;
  position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr);
  place-items: center; padding: 3% 2% 4%;
}
/* Ô quà: khung reward-frame (300×330) */
.tile {
  position: relative; width: var(--tw); aspect-ratio: 300 / 330; padding: 0; border: 0; background: none; cursor: pointer;
  perspective: 700px; -webkit-tap-highlight-color: transparent; animation: floaty 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.45s);
}
.tile:disabled { cursor: default; }
.tile-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.35, .5, 1); }
.tile-front, .tile-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: center / 100% 100% no-repeat; filter: drop-shadow(0 8px 8px rgba(10, 40, 10, .3)); }
.tile-front { background-image: url("../v3/ui/reward-frame-classic.svg"); transition: transform .18s; }
.tile-back { background-image: url("../v3/ui/reward-frame-featured.svg"); transform: rotateY(180deg); }
.tile-pic { position: absolute; left: 15%; top: 12%; width: 70%; height: 63.5%; display: grid; place-items: center; border-radius: 50%; overflow: hidden; }
.tile-pic img { width: 84%; height: 84%; object-fit: contain; }
.tile-back .tile-pic { background: radial-gradient(circle, #fff 0 60%, transparent 72%); }
.tile:not(.is-lose) .tile-back .tile-pic img { mix-blend-mode: multiply; width: 74%; height: 74%; }
.tile-front .tile-pic img { width: 92%; height: 92%; }
.tile-label {
  position: absolute; left: 11%; right: 11%; top: 77.5%; height: 15%; display: grid; place-items: center; overflow: hidden;
  font-family: var(--f-display); font-weight: 800; font-size: calc(var(--tw) * .12); line-height: 1; letter-spacing: .4px; color: var(--cream); white-space: nowrap; text-overflow: ellipsis;
}
.tile-label span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.tile-back .tile-label { font-size: calc(var(--tw) * .095); color: #fff; text-shadow: 0 1px 0 rgba(140, 45, 8, .6); }
.tile.is-lose .tile-back { background-image: url("../v3/ui/reward-frame-cream.svg"); }
.tile.is-lose .tile-back .tile-label { color: var(--forest); text-shadow: none; }
.tile.text-only .tile-pic img { display: none; }
.tile-pic em { display: none; font-style: normal; font-family: var(--f-display); font-weight: 900; font-size: calc(var(--tw) * .13); line-height: 1.05; color: var(--orange-lo); text-align: center; text-transform: uppercase; padding: 10%; }
.tile.text-only .tile-pic em { display: block; }

@media (hover: hover) { .tile:not(:disabled):hover .tile-front { transform: translateY(-6px) scale(1.04); } }
.tile.is-picked { animation: none; z-index: 2; }
.tile.is-picked .tile-front { transform: translateY(-6px) scale(1.08); filter: drop-shadow(0 0 14px rgba(255, 190, 60, .95)) drop-shadow(0 10px 10px rgba(10, 40, 10, .3)); }
.tile.is-picked::after { /* hồng tâm */
  content: ""; position: absolute; z-index: 3; left: 50%; top: 43%; width: 82%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23f68629' stroke-width='5'%3E%3Ccircle cx='50' cy='50' r='34'/%3E%3Cpath d='M50 4v20M50 76v20M4 50h20M76 50h20' stroke-linecap='round'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='5' fill='%23f68629'/%3E%3C/svg%3E");
  animation: aim 1.2s ease-in-out infinite;
}
@keyframes aim { 50% { transform: translate(-50%, -50%) scale(.86) rotate(15deg); } }
.tile.is-hit::after, .tile.is-missed::after { display: none; }
.tile.is-hit .tile-inner { animation: netPush .45s ease-out; }
.tile.is-revealed { z-index: 4; animation: none; }
.tile.is-revealed .tile-inner { transform: rotateY(180deg) scale(1.16); }
.tile.is-missed .tile-front { animation: wobble .14s linear 4; }
@keyframes netPush { 40% { transform: scale(.86); } }
@keyframes wobble { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.tile-glow { position: absolute; left: 50%; top: 42%; width: 230%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.4); opacity: 0; pointer-events: none; z-index: -1; }
.tile.is-revealed:not(.is-lose) .tile-glow { animation: tileGlow 1.6s ease-out .1s both; }
@keyframes tileGlow { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 30% { opacity: 1; } 100% { opacity: .85; transform: translate(-50%, -50%) scale(1); } }

.spot { position: absolute; z-index: 2; width: 54px; height: 15px; margin: -7px 0 0 -27px; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.ball { position: absolute; z-index: 6; width: 90px; height: auto; margin: 0; pointer-events: none; will-change: transform; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .3)); transform-origin: 50% 50%; }
.ball.is-ready { animation: ballReady 1.3s ease-in-out infinite; }
@keyframes ballReady { 50% { translate: 0 -6px; } }
.ball-shadow { position: absolute; z-index: 2; width: 80px; height: 18px; border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .45), transparent 70%); pointer-events: none; }
.trail { position: absolute; z-index: 5; height: auto; max-width: none; opacity: 0; pointer-events: none; transform-origin: 0 50%; }

.game-cta { position: absolute; z-index: 7; left: 0; right: 0; bottom: 18px; display: grid; justify-items: center; gap: 10px; padding: 0 18px; }
.game-hint {
  margin: 0; max-width: 560px; padding: 6px 16px; border-radius: 99px; text-align: center;
  background: rgba(255, 249, 237, .94); color: var(--forest); font-weight: 600; font-size: 14.5px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.game-hint.is-error { background: #ffece6; color: var(--error); }

/* =========================================================
   04 — NHẬN QUÀ
   ========================================================= */
.screen-result {
  background:
    radial-gradient(60% 55% at 50% 38%, rgba(140, 180, 90, .55), transparent 70%),
    url("../v3/ui/pitch-pattern.svg") center / 240px 240px,
    var(--forest);
  color: var(--cream);
}
.res-confetti { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; animation: confettiIn 1.4s ease-out both; }
@keyframes confettiIn { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }
.res-bunting { position: absolute; top: -34px; left: 50%; width: min(620px, 70%); opacity: .95; transform: translateX(-50%); pointer-events: none; }
.screen-result.is-miss .res-confetti { display: none; }
.result-wrap { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: clamp(40px, 6vh, 70px) clamp(18px, 4vw, 48px) 56px; }
.title-result { margin: 0 0 24px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 .3em; text-align: center; }
.title-result .r-main { font-size: clamp(76px, 9vw, 136px); }
.title-result .r-sub { font-size: clamp(46px, 5vw, 78px); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.prize-card { position: relative; display: grid; justify-items: center; text-align: center; animation: prizeIn .8s cubic-bezier(.2, .9, .3, 1.25) both .15s; }
@keyframes prizeIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
.prize-stage { position: relative; width: min(340px, 78vw); aspect-ratio: 1; display: grid; place-items: center; }
.prize-burst { position: absolute; left: 50%; top: 50%; width: 165%; max-width: none; transform: translate(-50%, -50%); pointer-events: none; animation: burstPulse 3.2s ease-in-out infinite; }
.prize-photo {
  position: relative; z-index: 1; width: 82%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 46%, #fff 0 58%, #f6ead0 82%);
  border: 10px solid var(--orange); box-shadow: 0 0 0 5px var(--gold), 0 0 0 9px rgba(29, 68, 32, .9), 0 24px 40px rgba(0, 0, 0, .35), inset 0 0 0 4px #fff;
}
.prize-photo img { width: 72%; height: 72%; object-fit: contain; mix-blend-mode: multiply; }
.screen-result.is-miss .prize-photo img { mix-blend-mode: normal; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .15)); }
.prize-text { padding: 14%; font-family: var(--f-display); font-weight: 900; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; text-transform: uppercase; color: var(--orange-lo); text-wrap: balance; overflow-wrap: anywhere; }
.res-trophy { position: absolute; z-index: 2; right: -2%; bottom: 14%; width: clamp(90px, 10vw, 140px); transform: rotate(8deg); filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .35)); animation: floaty 4s ease-in-out infinite; }
.prize-ribbon { /* băng rôn xanh theo title-ribbon.svg */
  position: relative; z-index: 2; margin-top: -26px; padding: 12px 34px 14px; max-width: 94%;
  background: linear-gradient(180deg, #668b48, var(--forest)); border: 3px solid #f5d69c; border-radius: 6px; box-shadow: 0 10px 20px rgba(0, 0, 0, .3);
}
.prize-ribbon::before, .prize-ribbon::after {
  content: ""; position: absolute; top: 14px; width: 34px; height: 100%; background: #133018; z-index: -1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 34% 50%);
}
.prize-ribbon::before { left: -26px; }
.prize-ribbon::after { right: -26px; transform: scaleX(-1); }
.prize-name { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.05; color: var(--cream); text-transform: uppercase; letter-spacing: .5px; text-wrap: balance; }
.prize-label { margin: 12px 0 0; font-size: 14px; color: rgba(255, 249, 237, .8); }
.result-info {
  position: relative; display: grid; justify-items: center; gap: 12px; text-align: center; color: var(--forest);
  background: var(--cream); border: 6px solid var(--leaf); border-radius: 30px; padding: 34px 28px 30px;
  box-shadow: 0 0 0 3px #3c5e2c, 0 30px 60px rgba(0, 0, 0, .35);
}
.result-info::before { content: ""; position: absolute; inset: 8px; border: 1.5px solid rgba(246, 134, 41, .6); border-radius: 22px; pointer-events: none; }
.deadline {
  margin: 0; display: inline-block; padding: 12px 32px; border-radius: 999px; color: #fff; font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: .5px;
  background: linear-gradient(180deg, var(--orange-hi), var(--orange) 50%, var(--orange-lo)); border: 3px solid #fff5d8; box-shadow: 0 5px 0 var(--forest); text-shadow: 0 2px 0 rgba(140, 45, 8, .5);
}
.result-ins { margin: 4px 0 0; font-size: 17px; font-weight: 500; }
.result-terms { margin: 0; font-style: italic; color: var(--muted); font-size: 14.5px; }
.result-note { margin: 0; font-size: 14px; font-weight: 600; color: var(--orange-lo); }
.screen-result.is-miss .prize-photo { border-color: var(--leaf); background: radial-gradient(circle at 50% 38%, #fffef7, #e6eed4 80%); }
.screen-result.is-miss .prize-burst, .screen-result.is-miss .res-trophy { display: none; }

/* ---------- Popup chưa mở, toast ---------- */
.closed-pop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(15, 40, 18, .6); backdrop-filter: blur(4px); animation: fadeIn .2s ease both; }
.closed-pop-card {
  position: relative; width: min(420px, 100%); padding: 74px 26px 28px; border-radius: 30px; text-align: center; background: var(--cream);
  border: 6px solid var(--leaf); box-shadow: 0 0 0 3px #3c5e2c, 0 24px 60px rgba(0, 0, 0, .4); animation: prizeIn .45s cubic-bezier(.2, .9, .3, 1.25) both;
}
.closed-pop-ic { position: absolute; left: 50%; top: -70px; width: 140px; transform: translateX(-50%); filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .25)); }
.closed-pop-title { margin: 0 0 10px; font-family: var(--f-display); font-weight: 900; font-size: clamp(30px, 7vw, 38px); line-height: 1.05; color: var(--orange-lo); }
.closed-pop-text { margin: 0 0 22px; font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--forest); }
.closed-pop-btn { --h: 58px; font-size: 26px; min-width: 200px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.toast { position: fixed; z-index: 95; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--forest); color: var(--cream); padding: 12px 18px; border-radius: 14px; font-weight: 600; box-shadow: var(--shadow); border: 2px solid var(--gold); }
.confetti-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 80; }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1100px) {
  .register-grid { grid-template-columns: 1fr; max-width: 760px; }
  .register-intro { display: none; }
  .register-card .mobile-only.register-card-head { display: block; }
  .welcome-grid { grid-template-columns: 1fr .85fr; }
}

/* =========================================================
   Mobile (≤ 700px)
   ========================================================= */
@media (max-width: 700px) {
  :root { --topbar-h: 62px; }
  body { font-size: 14.5px; }
  .desktop-only { display: none !important; }
  .mobile-only { display: block; }
  a.mobile-only.fb-link, label.check.mobile-only { display: flex; }
  .check-mobile { align-items: flex-start; }

  .topbar { padding: 0 12px; justify-content: center; border-bottom-width: 2px; }
  .topbar .event-tag { display: none; }
  .topbar .round-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; margin: 0; }
  .topbar .round-btn svg { width: 20px; height: 20px; }
  .topbar #btnBack { left: 12px; }
  .topbar .sound-btn { right: 60px; margin-left: 0; }
  .topbar .round-btn:active { transform: translateY(calc(-50% + 2px)); }
  .topbar-logo { width: 124px; }
  .menu-btn { display: grid; gap: 5px; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 11px 10px; background: none; border: 0; }
  .menu-btn span { display: block; height: 3px; border-radius: 2px; background: var(--forest); }

  /* Welcome */
  .screen-welcome { padding: 16px 16px 20px; background-position: 50% 100%; background-size: auto 62%; background-color: var(--sky); }
  .screen-welcome::before { background: linear-gradient(180deg, rgba(254, 239, 221, 1) 0%, rgba(254, 239, 221, .9) 34%, rgba(254, 239, 221, 0) 62%, rgba(20, 60, 10, 0) 80%, rgba(20, 60, 10, .45) 100%); }
  .w-bunting { display: none; }
  .welcome-right { gap: 8px; }
  .welcome-right .event-tag b, .welcome-right .event-tag i { display: none; }
  .welcome-head { position: relative; }
  .welcome-logo { width: 132px; }
  .welcome-right .event-tag { font-size: 14px; padding: 5px 12px; }
  .welcome-right .round-btn { width: 40px; height: 40px; }
  .welcome-grid { grid-template-columns: 1fr; gap: 0; align-content: start; padding-top: 18px; }
  .welcome-copy { justify-items: center; text-align: center; gap: 12px; }
  .kicker { font-size: 15px; padding: 4px 14px 4px 8px; }
  .kicker img { width: 20px; height: 20px; }
  .w-title { justify-items: center; transform: rotate(-3deg); transform-origin: center; }
  .w-title .tt-orange { font-size: clamp(54px, 17vw, 80px); }
  .w-title .tt-green { font-size: clamp(50px, 16vw, 76px); margin-left: 0; -webkit-text-stroke-width: 5px; }
  .w-sub { font-size: 15px; max-width: 330px; }
  .btn-xl { --h: 66px; min-width: 0; width: min(340px, 100%); font-size: 31px; }
  .cta-wrap { width: 100%; display: flex; justify-content: center; }
  .w-steps { justify-content: center; gap: 6px; }
  .w-steps li { font-size: 12.5px; padding: 4px 10px 4px 4px; gap: 6px; }
  .w-steps b { width: 22px; height: 22px; font-size: 14px; }
  .welcome-art { height: auto; min-height: 0; aspect-ratio: 1.25; width: min(330px, 86vw); margin: 4px auto 0; }
  .wa-ball { width: 26%; left: 0; top: 0; }
  .prize-caption { font-size: 12.5px; padding: 7px 14px; margin-top: 10px; }

  /* Register */
  .register-grid { padding: 18px 12px 36px; }
  .register-card { padding: 30px 18px 24px; border-radius: 24px; }
  .panel::before { border-radius: 16px; }
  .register-card-head .title-2 .tt-orange, .register-card-head .title-2 .tt-green { font-size: clamp(34px, 10.5vw, 44px); }
  .register-card-head .title-2 .tt-green { -webkit-text-stroke-width: 4px; }
  .intro { font-size: 14px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; grid-template-areas: "name" "fbname" "phone" "school" "radio" "country"; }
  .input-ic input { min-height: 50px; font-size: 16px; } /* 16px chống zoom iOS */
  .fb-box { grid-template-columns: 1fr auto; padding: 14px; gap: 12px; margin-top: 18px; }
  .fb-text h3 { font-size: 19px; }
  .fb-text .fb-link { margin-top: 10px; font-size: 17px; }
  .fb-hint { margin: 6px 0 0 !important; font-size: 11.5px !important; }
  .fb-qr { width: 96px; height: 96px; }
  .btn-block { padding: 0 18px; font-size: 28px; }

  /* Game */
  .pitch { min-height: 480px; }
  .game-head { top: 10px; }
  .title-game .tt-orange, .title-game .tt-green { font-size: clamp(30px, 9.6vw, 44px); }
  .title-game .tt-green { -webkit-text-stroke-width: 4.5px; }
  .game-sub { font-size: 12.5px; padding: 4px 12px; margin-top: 6px; }
  .goal-tiles { padding: 4% 1.5% 5%; }
  .btn-lg { --h: 62px; width: min(340px, 100%); min-width: 0; font-size: 29px; }
  .game-hint { font-size: 13px; padding: 5px 12px; }
  .game-cta { bottom: 14px; gap: 8px; }

  /* Result */
  .result-wrap { padding: 34px 14px 40px; }
  .title-result { flex-direction: column; align-items: center; gap: 4px; margin-bottom: 14px; }
  .title-result .r-main { font-size: clamp(64px, 20vw, 90px); }
  .title-result .r-sub { font-size: clamp(36px, 11vw, 52px); }
  .result-grid { grid-template-columns: 1fr; gap: 28px; }
  .prize-stage { width: min(270px, 72vw); }
  .res-trophy { width: 78px; right: 0; bottom: 20%; }
  .prize-ribbon { padding: 10px 22px 12px; }
  .prize-ribbon::before, .prize-ribbon::after { width: 26px; top: 10px; }
  .prize-ribbon::before { left: -20px; }
  .prize-ribbon::after { right: -20px; }
  .result-info { padding: 26px 18px 24px; border-radius: 24px; }
  .result-ins br { display: none; }
  .result-ins { font-size: 15px; }
  .deadline { font-size: 22px; padding: 10px 24px; }
}

@media (max-width: 700px) and (max-height: 720px) {
  .welcome-art { width: min(260px, 70vw); }
  .w-sub { display: none; }
}

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

/* =========================================================
   TRANG CHỦ = SÂN BÓNG CÓ QUÀ TRONG LƯỚI (+ Hướng dẫn / Lịch sử / Quà)
   ========================================================= */
.topbar { transform: none; }
body[data-screen="welcome"] #btnBack { visibility: hidden; }
body[data-screen="welcome"] #btnShoot, body:not([data-screen="welcome"]) #btnStart { display: none; }
#btnStart { min-width: min(360px, 100%); }

/* Thanh nút trên sân (theo button-cream.svg) */
.scene-nav { pointer-events: auto; display: flex; justify-content: center; gap: 12px; margin-bottom: 10px; }
.scene-nav .nav-l, .scene-nav .nav-r { display: flex; gap: 12px; }
.pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 3px solid #fff5d8; background: linear-gradient(180deg, #fffef7, #ead8ac); color: var(--forest);
  font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: .6px; white-space: nowrap;
  box-shadow: 0 5px 0 rgba(29, 68, 32, .85), 0 10px 18px rgba(29, 68, 32, .2), inset 0 2px 0 #fff;
  transition: transform .12s, box-shadow .12s, filter .15s; -webkit-tap-highlight-color: transparent;
}
.pill-btn svg { width: 20px; height: 20px; flex: none; color: var(--orange-lo); }
.pill-btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.pill-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(29, 68, 32, .85), inset 0 2px 0 #fff; }
@media (min-width: 1101px) {
  .scene-nav { margin: 0; position: absolute; left: 0; right: 0; top: 14px; display: flex; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1280px) / 2)); }
}
.game-sub .event-date b { color: var(--gold); font-weight: 700; }

/* Lưới quà: 5 cột (máy tính) / 4 cột (điện thoại) */
.goal-tiles {
  list-style: none; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; align-items: center;
  gap: calc(var(--tw) * .12) calc((100% - var(--cols, 5) * var(--tw)) / (var(--cols, 5) + 1)); padding: 2% 1.5% 3%;
}
.tile { cursor: default; list-style: none; }
.tile-hot { position: absolute; z-index: 3; right: -10%; top: -6%; width: 34%; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3)); animation: hotPop 2.4s ease-in-out infinite; }
@keyframes hotPop { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(6deg) scale(1.08); } }
.tile-front .tile-pic { background: radial-gradient(circle, #fff 0 62%, transparent 72%); }
.tile-front .tile-pic img { width: 76%; height: 76%; mix-blend-mode: multiply; }
.tile.is-hot .tile-front { background-image: url("../v3/ui/reward-frame-featured.svg"); }
.tile-label { font-size: calc(var(--tw) * .095); }
.tile.is-hot .tile-label { color: #fff; text-shadow: 0 1px 0 rgba(140, 45, 8, .6); }
.tile.is-target .tile-inner { animation: netPush .45s ease-out; }
.tile.is-won { z-index: 5; animation: none; }
.tile.is-won .tile-inner { transform: scale(1.22); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.tile.is-won .tile-front { background-image: url("../v3/ui/reward-frame-featured.svg"); filter: drop-shadow(0 0 16px rgba(255, 200, 70, .95)) drop-shadow(0 10px 10px rgba(10, 40, 10, .3)); }
.tile.is-won .tile-label { color: #fff; }
.tile.is-won .tile-glow { animation: tileGlow 1.6s ease-out .05s both; }
.goal.is-done .tile:not(.is-won) { opacity: .45; filter: saturate(.5); transition: opacity .3s, filter .3s; }
.ball:not(.is-ready) { animation: none; }

/* Thông báo trên sân (minigame chưa mở / hết quà) */
.game-cta .welcome-notice { margin: 0; padding: 6px 16px; border-radius: 99px; background: #ffece6; color: var(--error); font-weight: 600; font-size: 14px; text-align: center; border: 0; }

/* ---------- Popup Hướng dẫn / Lịch sử / Quà (theo modal-panel.svg) ---------- */
.info-pop { position: fixed; inset: 0; z-index: 88; display: grid; place-items: center; padding: 16px; background: rgba(15, 40, 18, .62); backdrop-filter: blur(4px); animation: fadeIn .2s ease both; }
.info-card {
  position: relative; width: min(640px, 100%); max-height: min(88vh, 760px); display: flex; flex-direction: column; padding: 46px 26px 22px;
  background: var(--cream); border: 6px solid var(--leaf); border-radius: 30px; box-shadow: 0 0 0 3px #3c5e2c, 0 30px 70px rgba(0, 0, 0, .45);
  animation: prizeIn .4s cubic-bezier(.2, .9, .3, 1.25) both;
}
.info-card::before { content: ""; position: absolute; inset: 8px; border: 1.5px solid rgba(246, 134, 41, .55); border-radius: 22px; pointer-events: none; }
.info-ribbon { /* băng rôn xanh theo title-ribbon.svg */
  position: absolute; left: 50%; top: -26px; transform: translateX(-50%); padding: 8px 40px 10px; white-space: nowrap;
  background: linear-gradient(180deg, #668b48, var(--forest)); border: 3px solid #f5d69c; border-radius: 6px; box-shadow: 0 8px 16px rgba(0, 0, 0, .3);
}
.info-ribbon::before, .info-ribbon::after { content: ""; position: absolute; top: 12px; width: 30px; height: 100%; background: #133018; z-index: -1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 34% 50%); }
.info-ribbon::before { left: -24px; }
.info-ribbon::after { right: -24px; transform: scaleX(-1); }
.info-ribbon h2 { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 30px; letter-spacing: 1px; color: var(--cream); line-height: 1.1; }
.info-x { position: absolute; z-index: 2; right: 14px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--leaf-soft); color: var(--forest); font-size: 26px; line-height: 1; }
.info-x:hover { background: #dbe6c4; }
.info-tabs { display: flex; gap: 6px; padding: 5px; margin: 0 auto 16px; border-radius: 99px; background: var(--leaf-soft); }
.info-tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 99px; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; }
.info-tabs button[aria-selected="true"] { background: var(--forest); color: var(--cream); box-shadow: 0 3px 0 var(--forest-2); }
.info-body { position: relative; overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 4px; margin: 0 -4px; }
.info-empty { margin: 20px 0; text-align: center; color: var(--muted); font-weight: 500; }
.info-sub { margin: 20px 0 10px; font-family: var(--f-display); font-weight: 800; font-size: 21px; color: var(--forest); }
.info-foot { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

.guide-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.guide-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: #fff; border: 2px solid var(--line); border-radius: 18px; }
.guide-steps li > b { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(180deg, var(--orange-hi), var(--orange-lo)); color: #fff; font-family: var(--f-display); font-size: 22px; box-shadow: 0 3px 0 var(--forest); }
.guide-steps h3 { margin: 2px 0 2px; font-family: var(--f-display); font-weight: 800; font-size: 21px; color: var(--forest); }
.guide-steps p { margin: 0; font-size: 14.5px; color: #33452c; }
.guide-rules { margin: 16px 0 0; padding: 14px 16px 14px 34px; background: var(--forest); color: var(--cream); border-radius: 18px; font-size: 14px; display: grid; gap: 6px; }
.guide-rules strong { color: var(--gold); }
.guide-rules li::marker { color: var(--orange); }

.my-result { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--forest); color: var(--cream); box-shadow: inset 0 0 0 2px rgba(255, 220, 153, .4); }
.my-result img { width: 68px; height: 68px; flex: none; object-fit: contain; border-radius: 50%; background: #fff; border: 4px solid var(--orange); padding: 5px; }
.my-result.is-miss img, .my-result.is-empty img { border-color: var(--leaf); }
.my-result small { display: block; color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
.my-result b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 24px; line-height: 1.1; }
.my-result span { display: block; font-size: 13px; opacity: .85; margin-top: 2px; }
.winner-list, .prize-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.winner-list li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px; background: #fff; border: 2px solid var(--line); border-radius: 14px; }
.winner-list img { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; border: 2px solid var(--orange); padding: 3px; background: #fff; }
.winner-list b { display: block; font-size: 14px; }
.winner-list small { display: block; font-size: 12px; color: var(--muted); }
.winner-list .w-prize { text-align: right; }
.winner-list .w-prize b { color: var(--orange-lo); font-family: var(--f-display); font-size: 17px; font-weight: 800; }
.prize-list { grid-template-columns: 1fr 1fr; gap: 10px; }
.prize-list li { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 2px solid var(--line); border-radius: 16px; min-width: 0; }
.prize-list li.is-hot { border-color: #f6c08f; background: linear-gradient(180deg, #fff, #fff6ea); }
.prize-list li.is-out { opacity: .5; filter: grayscale(.7); }
.pl-pic { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 3px solid var(--leaf); overflow: hidden; }
.prize-list li.is-hot .pl-pic { border-color: var(--orange); }
.pl-pic img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.prize-list b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 18px; line-height: 1.1; color: var(--forest); }
.prize-list small { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.prize-list li > div { min-width: 0; flex: 1; }
.pl-stock { flex: none; padding: 3px 10px; border-radius: 99px; background: var(--leaf-soft); color: var(--forest); font-size: 12px; font-weight: 700; }
.prize-list li.is-out .pl-stock { background: #f1efe7; color: #6b7166; }
.pl-hot { position: absolute; top: -9px; right: 10px; padding: 1px 8px; border-radius: 99px; background: linear-gradient(180deg, var(--orange-hi), var(--orange-lo)); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 12px; letter-spacing: .6px; box-shadow: 0 2px 0 var(--forest); }

@media (max-width: 700px) {
  .scene-nav { gap: 8px; margin-bottom: 8px; }
  .scene-nav .nav-l, .scene-nav .nav-r { gap: 8px; }
  .pill-btn { min-height: 38px; padding: 0 12px; font-size: 15px; gap: 5px; border-width: 2px; box-shadow: 0 4px 0 rgba(29, 68, 32, .85), inset 0 2px 0 #fff; }
  .pill-btn svg { width: 16px; height: 16px; }
  .game-sub { display: none; }
  .tile-label { font-size: calc(var(--tw) * .105); }
  .info-card { padding: 42px 14px 16px; border-radius: 24px; max-height: 86vh; }
  .info-ribbon { padding: 6px 26px 8px; }
  .info-ribbon h2 { font-size: 24px; }
  .info-tabs button { padding: 7px 10px; font-size: 12.5px; }
  .prize-list { grid-template-columns: 1fr; }
  .guide-steps li { padding: 12px; }
  .my-result b { font-size: 20px; }
  .winner-list li { grid-template-columns: 38px 1fr auto; gap: 8px; padding: 8px 10px; }
  .winner-list img { width: 38px; height: 38px; }
}

/* =========================================================
   V4 — ô quà theo hạng (to/nhỏ) + cầu thủ
   ========================================================= */
/* Tiêu đề và nút không chồng nhau: 3 cột trên máy tính */
@media (min-width: 1101px) {
  .game-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 24px; padding: 0 max(24px, calc((100vw - 1320px) / 2)); }
  .scene-nav { display: contents; position: static; }
  .scene-nav .nav-l { grid-column: 1; grid-row: 1; justify-self: start; }
  .scene-nav .nav-r { grid-column: 3; grid-row: 1; justify-self: end; }
  .game-head .title-game { grid-column: 2; grid-row: 1; }
  .game-head .game-sub { grid-column: 2; grid-row: 2; justify-self: center; }
}
.title-game .tt-orange, .title-game .tt-green { font-size: clamp(42px, 4vw, 68px); }
.game-sub { font-family: var(--f-display); font-weight: 800; letter-spacing: 1px; font-size: 15px; }

/* Ô quà đặt tự do theo vị trí thiết kế */
.goal-tiles { display: block; padding: 0; gap: 0; }
.tile { position: absolute; width: var(--tw); }
.tile-label { font-size: clamp(9px, calc(var(--tw) * .1), 17px); }
.tier-xl .tile-label, .tier-l .tile-label { font-size: clamp(10px, calc(var(--tw) * .085), 19px); }
.tier-xl .tile-front { background-image: url("../v3/ui/reward-frame-featured.svg"); filter: drop-shadow(0 0 18px rgba(255, 196, 80, .75)) drop-shadow(0 12px 12px rgba(10, 40, 10, .35)); }
.tier-xl .tile-glow { opacity: .75; transform: translate(-50%, -50%) scale(.82); animation: xlGlow 3.2s ease-in-out infinite; }
@keyframes xlGlow { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.76); } 50% { opacity: .9; transform: translate(-50%, -50%) scale(.88); } }
.tier-xl .tile-hot { width: 28%; right: -4%; top: -2%; }
.tier-s .tile-hot { display: none; }
.tile-tag {
  position: absolute; z-index: 4; left: 50%; top: -9%; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  padding: 2px 10px 3px; border-radius: 99px; font-family: var(--f-display); font-weight: 900; letter-spacing: .6px;
  font-size: clamp(9px, calc(var(--tw) * .075), 16px); color: #fff; text-shadow: 0 1px 0 rgba(120, 40, 8, .6);
  background: linear-gradient(180deg, var(--orange-hi), var(--orange-lo)); border: 2px solid #fff5d8; box-shadow: 0 3px 0 var(--forest);
}
.tier-l .tile-tag { background: linear-gradient(180deg, #668b48, var(--forest)); color: var(--gold); text-shadow: none; box-shadow: 0 3px 0 var(--forest-2); }
.tier-s { animation-duration: 4.2s; }

/* Cầu thủ */
.ch { position: absolute; z-index: 4; height: auto; max-width: none; pointer-events: none; filter: drop-shadow(0 10px 8px rgba(10, 40, 10, .3)); }
.ch-side { display: none; }
.pitch.has-side .ch-side { display: block; animation: floaty 3.8s ease-in-out infinite; }
.pitch.has-side .ch-side:nth-of-type(2n) { animation-delay: -1.6s; }
.pitch.is-cheer .ch-side { animation: cheerJump .5s ease-in-out infinite alternate; }
.pitch.is-cheer .ch-side:nth-of-type(2n) { animation-delay: -.25s; }
@keyframes cheerJump { from { translate: 0 0; } to { translate: 0 -22px; } }
.ch-keeper { transition: opacity .25s; }
.pitch.is-save .ch-keeper { opacity: 0; }
.ch-striker { z-index: 5; transform-origin: 70% 100%; }
.ch-dive { z-index: 8; opacity: 0; filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .35)); }

/* Màn thông tin & kết quả */
.ra-girl { position: absolute; right: -4%; bottom: 6%; width: 30%; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .3)); animation: floaty 3.6s ease-in-out infinite; }
.res-cheer { position: absolute; z-index: 2; left: -6%; bottom: 10%; width: clamp(90px, 11vw, 150px); filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .35)); animation: cheerJump .6s ease-in-out infinite alternate; }
.screen-result.is-miss .res-cheer { display: none; }
.screen-result.is-miss .prize-photo img { width: 78%; height: 78%; object-position: 50% 80%; }

@media (max-width: 700px) {
  .title-game .tt-orange, .title-game .tt-green { font-size: clamp(30px, 9.6vw, 44px); }
  .res-cheer { width: 82px; left: -2%; bottom: 18%; }
  .tile-tag { top: -11%; padding: 1px 6px 2px; border-width: 1.5px; }
}

/* =========================================================
   V5 — khung thành 3D cho điện thoại, tên quà đầy đủ, bố cục màn thấp
   ========================================================= */
/* Khung thành 3D (goal-frame cắt 9 mảnh: cột/xà giữ nguyên độ dày khi co giãn) */
.goal-frame {
  position: absolute; z-index: 2; box-sizing: border-box; pointer-events: none;
  border-style: solid; border-color: transparent;
  border-image: url("../v4/goal-frame.webp") 58 128 70 128 stretch;
  filter: drop-shadow(0 14px 18px rgba(10, 40, 10, .3));
}
.goal-mesh { /* lưới phía sau, mắt lưới đều theo tỉ lệ khung */
  position: absolute; inset: 0;
  --cell: calc(var(--k, .5) * 40px); --line: max(1px, calc(var(--k, .5) * 3px));
  background:
    repeating-linear-gradient(90deg, rgba(52, 92, 34, .85) 0 var(--line), transparent var(--line) var(--cell)),
    repeating-linear-gradient(0deg, rgba(52, 92, 34, .85) 0 var(--line), transparent var(--line) var(--cell));
  background-position: center bottom;
}
.goal-back {
  position: absolute; z-index: 1; pointer-events: none; border-radius: 18px 18px 0 0;
  background:
    radial-gradient(90% 60% at 50% 30%, rgba(255, 252, 244, .97), rgba(240, 244, 228, .95) 70%),
    linear-gradient(180deg, #fff9ed, #e3ecd2);
  box-shadow: inset 0 -30px 40px -20px rgba(85, 120, 61, .25);
}
.goal { z-index: 3; }

/* Tên quà đầy đủ: nhãn tự giãn (tối đa 2 dòng) đè lên dải tên của khung */
.tile-label {
  left: 50%; right: auto; top: 76%; height: auto; min-height: 15.5%; width: max-content; min-width: 78%; max-width: calc(var(--tw) * 1.75);
  transform: translateX(-50%); display: flex; align-items: center; justify-content: center; overflow: visible;
  padding: .28em .7em .32em; border-radius: 999px; white-space: normal; text-align: center; line-height: 1.04;
  font-size: clamp(10px, calc(var(--tw) * .11), 17px); letter-spacing: .3px; color: var(--cream);
  background: linear-gradient(180deg, #6a8f4b, var(--forest)); border: 2px solid var(--gold);
  box-shadow: 0 3px 0 rgba(14, 40, 16, .7), 0 6px 10px rgba(0, 0, 0, .2);
}
.tile-label span { display: block; max-width: none; overflow: visible; text-overflow: clip; padding: 0; }
.tier-xl .tile-label, .tier-l .tile-label { font-size: clamp(11px, calc(var(--tw) * .095), 19px); }
.tile.is-hot .tile-label, .tile.is-won .tile-label {
  color: #fff; background: linear-gradient(180deg, var(--orange-hi), var(--orange-lo)); border-color: #fff5d8;
  text-shadow: 0 1px 0 rgba(120, 40, 8, .55); box-shadow: 0 3px 0 rgba(120, 40, 8, .6), 0 6px 10px rgba(0, 0, 0, .2);
}

/* Nút & tiêu đề cùng một hàng từ 860px */
@media (min-width: 860px) {
  .game-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 20px; padding: 0 max(20px, calc((100vw - 1320px) / 2)); }
  .scene-nav { display: contents; position: static; margin: 0; }
  .scene-nav .nav-l { grid-column: 1; grid-row: 1; justify-self: start; }
  .scene-nav .nav-r { grid-column: 3; grid-row: 1; justify-self: end; }
  .game-head .title-game { grid-column: 2; grid-row: 1; }
  .game-head .game-sub { grid-column: 2; grid-row: 2; justify-self: center; }
}
@media (min-width: 860px) and (max-width: 1280px) {
  .pill-btn { min-height: 42px; padding: 0 16px; font-size: 17px; }
  .title-game .tt-orange, .title-game .tt-green { font-size: clamp(38px, 4.4vw, 56px); }
}
.pitch.is-compact .game-sub, .pitch.is-compact .game-hint { display: none; }
.pitch.is-compact .game-head { top: 8px; }

@media (max-width: 700px) {
  .tile-label { border-width: 1.5px; padding: .26em .55em .3em; }
  .ch-striker { z-index: 6; }
}

/* =========================================================
   V6 — nền sân đầy đủ, mobile có khán đài & cầu thủ
   ========================================================= */
.pitch-stands { display: none; }
.pitch.is-mobile .pitch-stands { display: block; position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: var(--stand-h, 520px); pointer-events: none; }
.pitch-stands i { position: absolute; top: 0; bottom: 0; width: 50%; background: url("../v3/arena.webp") no-repeat; background-size: auto 100%; }
.pitch-stands i:first-child { left: 0; background-position: left top; }
.pitch-stands i:last-child { right: 0; background-position: right top; }
.pitch.is-mobile .pitch-stands::after { /* lớp sáng giữ chữ tiêu đề dễ đọc */
  content: ""; position: absolute; inset: 0; background: radial-gradient(70% 26% at 50% 10%, rgba(255, 249, 237, .9), rgba(255, 249, 237, 0) 100%);
}
.pitch.is-mobile .arena { -webkit-mask: linear-gradient(180deg, transparent 0, transparent 62%, #000 70%); mask: linear-gradient(180deg, transparent 0, transparent 62%, #000 70%); }
.pitch.is-mobile .ch-curly { display: none !important; }
.pitch.is-mobile .ch-side { z-index: 5; filter: drop-shadow(0 8px 6px rgba(10, 40, 10, .35)); }
.pitch.is-mobile .ch-striker { z-index: 6; }
.pitch.is-mobile .game-hint { font-size: 12.5px; }

/* =========================================================
   V7 — thủ môn + 6 điểm sút, nền mobile dọc
   ========================================================= */
.pitch.is-mobile .arena { -webkit-mask: none; mask: none; }
.pitch-stands { display: none !important; }

/* Lớp hiển thị quà (máy tính: trong khung thành; điện thoại: khoảng trời phía trên) */
.goal-tiles { position: absolute; inset: auto; z-index: 4; transition: opacity .35s, visibility .35s; }
.pitch:not(.is-mobile).mode-play .goal-tiles { opacity: 0; visibility: hidden; }
.goal { z-index: 5; }
.pitch.is-mobile .goal-net { display: none; }

/* 6 điểm sút */
.goal-targets { display: none; }
.pitch.mode-play .goal-targets {
  position: absolute; inset: 7% 4% 6%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 6% 4%;
}
.aim {
  position: relative; display: grid; place-items: center; padding: 0; cursor: pointer; border-radius: 16px;
  border: 2px dashed rgba(255, 249, 237, .85); background: rgba(29, 68, 32, .22);
  box-shadow: inset 0 0 18px rgba(255, 249, 237, .25); transition: background .15s, transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent; animation: aimIdle 2.4s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -.4s);
}
.aim:nth-child(2) { --d: 1; } .aim:nth-child(3) { --d: 2; } .aim:nth-child(4) { --d: 3; } .aim:nth-child(5) { --d: 4; } .aim:nth-child(6) { --d: 5; }
@keyframes aimIdle { 50% { background: rgba(29, 68, 32, .34); } }
.aim b {
  position: relative; z-index: 1; display: grid; place-items: center; width: clamp(28px, 32%, 46px); aspect-ratio: 1; border-radius: 50%;
  background: var(--cream); color: var(--forest); font-family: var(--f-display); font-weight: 900; font-size: clamp(15px, 1.6vw, 22px);
  box-shadow: 0 3px 0 rgba(29, 68, 32, .7), 0 0 0 3px rgba(255, 220, 153, .7);
}
.aim-ring { position: absolute; left: 50%; top: 50%; width: clamp(54px, 62%, 96px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid rgba(255, 249, 237, .6); opacity: .6; }
@media (hover: hover) { .aim:not(:disabled):hover { background: rgba(246, 134, 41, .35); transform: scale(1.03); } }
.aim.is-picked { background: rgba(246, 134, 41, .5); border-style: solid; border-color: #fff5d8; box-shadow: 0 0 0 3px var(--orange), 0 0 22px rgba(255, 180, 60, .8); animation: none; }
.aim.is-picked b { background: linear-gradient(180deg, var(--orange-hi), var(--orange-lo)); color: #fff; }
.aim.is-picked .aim-ring {
  border: 0; opacity: 1; animation: aimSpin 1.4s linear infinite;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23fff9ed' stroke-width='5'%3E%3Ccircle cx='50' cy='50' r='40' stroke-dasharray='18 10'/%3E%3Cpath d='M50 2v16M50 82v16M2 50h16M82 50h16' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
}
@keyframes aimSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.aim:disabled { cursor: default; }
.goal-targets:has(.is-picked) .aim:disabled:not(.is-picked) { opacity: .35; }
.aim.is-goal { background: rgba(255, 220, 120, .55); box-shadow: 0 0 0 3px #fff5d8, 0 0 34px rgba(255, 200, 70, .95); }
.aim.is-saved { background: rgba(192, 38, 27, .35); box-shadow: 0 0 0 3px rgba(255, 255, 255, .7); }
.pitch.is-diving .aim-ring { animation: none; }

/* Thủ môn */
.keeper { position: absolute; z-index: 4; height: auto; max-width: none; pointer-events: none; filter: drop-shadow(0 10px 8px rgba(10, 40, 10, .3)); transform-origin: 50% 100%; }
.pitch:not(.is-mobile):not(.mode-play) .keeper { display: none; }
.pitch:not(.is-diving) .keeper { animation: keeperBob 1.6s ease-in-out infinite; }
@keyframes keeperBob { 50% { translate: 0 -4px; } }
.pitch.is-mobile .ch-keeper, .pitch.mode-play .ch-keeper { display: none !important; }
.ch-dive { z-index: 6; }
.ball { z-index: 8; }
.ch-striker { z-index: 7; }

/* Thẻ quà bật ra khi ghi bàn */
.won-card { position: absolute; z-index: 9; display: grid; justify-items: center; pointer-events: none; animation: wonPop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes wonPop { from { transform: scale(.2) translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.wc-burst { position: absolute; left: 50%; top: 42%; width: 190%; max-width: none; transform: translate(-50%, -50%); animation: burstPulse 2.4s ease-in-out infinite; }
.wc-pic {
  position: relative; width: 78%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle, #fff 0 60%, #f6ead0 82%); border: 6px solid var(--orange); box-shadow: 0 0 0 4px var(--gold), 0 14px 26px rgba(0, 0, 0, .35);
}
.wc-pic img { width: 74%; height: 74%; object-fit: contain; mix-blend-mode: multiply; }
.won-card b {
  position: relative; margin-top: -12%; padding: .3em .9em .35em; border-radius: 99px; white-space: nowrap;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(14px, 2vw, 22px); color: #fff; letter-spacing: .4px; text-shadow: 0 1px 0 rgba(120, 40, 8, .6);
  background: linear-gradient(180deg, var(--orange-hi), var(--orange-lo)); border: 2px solid #fff5d8; box-shadow: 0 4px 0 var(--forest);
}

/* Điện thoại: quà xếp trên khoảng trời */
.pitch.is-mobile .tile-tag { font-size: clamp(8px, calc(var(--tw) * .085), 12px); }
.pitch.is-mobile .aim { border-radius: 10px; border-width: 1.5px; }
.pitch.is-mobile .aim b { width: 30px; font-size: 15px; }
.pitch.is-mobile .goal-targets { inset: 8% 3% 5%; gap: 7% 3%; }

/* =========================================================
   V8 — lật 6 điểm sút hiện quà sau cú sút
   ========================================================= */
.aim { perspective: 600px; overflow: visible; }
.aim-prize {
  position: absolute; inset: 4%; z-index: 2; display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; gap: 2px;
  padding: 4% 3% 5%; border-radius: 12px; background: linear-gradient(180deg, #fffef7, #f3e6c4); border: 2px solid var(--gold);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .28); opacity: 0; transform: rotateY(90deg) scale(.8); pointer-events: none;
}
.aim.is-revealed { animation: none; background: transparent; border-color: transparent; box-shadow: none; }
.aim.is-revealed b, .aim.is-revealed .aim-ring { opacity: 0; transition: opacity .15s; }
.aim.is-revealed .aim-prize { opacity: 1; transform: none; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .2s; }
.ap-pic { height: 100%; aspect-ratio: 1; max-width: 100%; min-height: 0; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 3px solid var(--leaf); overflow: hidden; }
.ap-pic img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.aim-prize em {
  max-width: 100%; font-style: normal; font-family: var(--f-display); font-weight: 800; line-height: 1.05; text-align: center;
  font-size: clamp(9px, 1.15vw, 15px); color: var(--forest); overflow-wrap: anywhere;
}
/* Quà lớn: viền cam */
.aim.is-big .ap-pic { border-color: var(--orange); }
.aim.is-big .aim-prize em { color: var(--orange-lo); }
/* Ô không chọn: mờ hơn */
.aim.is-revealed:not(.is-mine) .aim-prize { filter: saturate(.75); opacity: .82; }
/* Ô đã chọn & trúng quà: nổi bật, có vòng sáng */
.aim.is-mine.is-revealed { z-index: 3; }
.aim.is-mine .aim-prize {
  background: radial-gradient(circle at 50% 35%, #fff7d6, #ffd36b 90%); border: 3px solid #fff5d8;
  box-shadow: 0 0 0 3px var(--orange), 0 0 30px rgba(255, 190, 60, .95), 0 10px 18px rgba(0, 0, 0, .3);
}
.aim.is-mine.is-revealed .aim-prize { transform: scale(1.12); }
.aim.is-mine .ap-pic { border-color: var(--orange); }
.aim.is-mine .aim-prize em { color: #8a3210; }
.aim.is-mine:not(.is-lose).is-revealed::before {
  content: ""; position: absolute; z-index: 1; left: 50%; top: 50%; width: 220%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: url("../v3/burst.webp") center / contain no-repeat; pointer-events: none; animation: burstPulse 2.4s ease-in-out infinite;
}
/* Ô đã chọn & bị bắt bóng */
.aim.is-mine.is-lose .aim-prize { background: linear-gradient(180deg, #fff, #e8eedc); box-shadow: 0 0 0 3px var(--leaf), 0 8px 16px rgba(0, 0, 0, .3); }
.aim.is-mine.is-lose .ap-pic img { mix-blend-mode: normal; object-position: 50% 20%; width: 100%; height: 100%; object-fit: cover; }
.aim.is-mine.is-lose .aim-prize em { color: var(--forest); }
.goal-targets:has(.is-revealed) .aim:disabled:not(.is-picked) { opacity: 1; }

@media (max-width: 700px) {
  .aim-prize { border-radius: 9px; border-width: 1.5px; padding: 5% 3% 6%; }
  .ap-pic { border-width: 2px; }
  .aim-prize em { font-size: 9.5px; }
}

/* V9 — mobile: nhãn quà gọn, không chồng lên nhau */
.pitch.is-mobile .tile-label { font-size: clamp(9px, calc(var(--tw) * .12), 14px); max-width: calc(var(--tw) * 1.5); padding: .22em .6em .26em; }
.pitch.is-mobile .tier-xl .tile-label, .pitch.is-mobile .tier-l .tile-label { font-size: clamp(10px, calc(var(--tw) * .1), 15px); max-width: calc(var(--tw) * 1.4); }
.pitch.is-mobile .tile-tag { top: -12%; }
.pitch.is-mobile .tile-hot { width: 30%; right: -8%; }

/* =========================================================
   V10 — 6 điểm ngắm nhỏ ở các góc sút (thay cho 6 ô chia đều)
   ========================================================= */
.pitch.mode-play .goal-targets, .pitch.is-mobile.mode-play .goal-targets { display: block; inset: 0; gap: 0; }
.aim {
  position: absolute; width: var(--mark, 54px); height: var(--mark, 54px); translate: -50% -50%; border-radius: 50%; padding: 0;
  border: 0; background: none; box-shadow: none; animation: none; overflow: visible;
}
.aim::after { /* vòng sóng mời chạm */
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255, 249, 237, .9); pointer-events: none;
  animation: aimWave 1.8s ease-out infinite; animation-delay: calc(var(--d, 0) * -.3s);
}
@keyframes aimWave { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.aim-ring { /* bia tròn: vòng kem – cam – kem */
  position: absolute; inset: 0; width: auto; aspect-ratio: auto; transform: none; left: 0; top: 0; border: 0; opacity: 1; border-radius: 50%;
  background: radial-gradient(circle, #fff9ed 0 34%, #f68629 35% 52%, #fff9ed 53% 68%, rgba(29, 68, 32, .85) 69% 100%);
  box-shadow: 0 4px 0 rgba(10, 40, 10, .45), 0 6px 14px rgba(0, 0, 0, .3), inset 0 0 0 2px rgba(255, 255, 255, .6);
}
.aim b {
  position: relative; z-index: 1; width: 46%; aspect-ratio: 1; background: none; box-shadow: none; color: var(--forest);
  font-size: calc(var(--mark, 54px) * .3); line-height: 1;
}
@media (hover: hover) { .aim:not(:disabled):hover { background: none; transform: scale(1.12); } }
.aim.is-picked { background: none; box-shadow: none; transform: scale(1.18); }
.aim.is-picked::after { border-color: var(--orange); animation-duration: 1.1s; }
.aim.is-picked .aim-ring {
  animation: none;
  background: radial-gradient(circle, #fff 0 34%, #ffb654 35% 52%, #fff 53% 68%, #d95817 69% 100%);
  box-shadow: 0 0 0 3px #fff5d8, 0 0 22px rgba(255, 170, 50, .95), 0 6px 14px rgba(0, 0, 0, .3);
}
.aim.is-picked b { background: none; color: #8a3210; }
.aim.is-picked::before { /* tâm ngắm xoay */
  content: ""; position: absolute; inset: -38%; z-index: 2; pointer-events: none; animation: aimSpin2 1.6s linear infinite;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23f68629' stroke-width='4'%3E%3Ccircle cx='50' cy='50' r='44' stroke-dasharray='16 10'/%3E%3Cpath d='M50 0v16M50 84v16M0 50h16M84 50h16' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
}
@keyframes aimSpin2 { to { rotate: 360deg; } }
.aim:disabled::after, .aim.is-revealed::after, .aim.is-revealed::before { display: none; }
.goal-targets:has(.is-picked) .aim:disabled:not(.is-picked) { opacity: .45; }
.aim.is-goal, .aim.is-saved { background: none; box-shadow: none; }

/* Thẻ quà lật ra quanh điểm ngắm */
.aim-prize {
  inset: auto; left: 50%; top: 50%; width: var(--card, 110px); height: calc(var(--card, 110px) * 1.12);
  translate: -50% -50%; padding: 7% 6% 8%; border-radius: 16px;
}
.aim.is-revealed .aim-ring, .aim.is-revealed b { opacity: 0; }
.aim-prize em { font-size: clamp(10px, calc(var(--card, 110px) * .115), 16px); }
.aim.is-mine:not(.is-lose).is-revealed::before { display: block; inset: auto; left: 50%; top: 50%; width: calc(var(--card, 110px) * 2.2); height: auto; aspect-ratio: 1; translate: 0 0; animation: burstPulse 2.4s ease-in-out infinite; background: url("../v3/burst.webp") center / contain no-repeat; rotate: 0deg; }
.goal-targets:has(.is-revealed) .aim { opacity: 1; }
@media (max-width: 700px) {
  .aim-prize { border-radius: 10px; padding: 6% 5% 7%; }
  .aim::after { border-width: 1.5px; }
}

.goal-targets .aim.is-revealed { opacity: 1 !important; }
.pitch.mode-play .goal:has(.is-revealed) { z-index: 9; }

/* V11 — 15 nhóm quà: nhãn mobile tự xuống dòng cho gọn */
.pitch.is-mobile .tile-label, .pitch.is-mobile .tier-xl .tile-label, .pitch.is-mobile .tier-l .tile-label { max-width: calc(var(--tw) * 1.28); }
.pitch:not(.is-mobile) .tile-label { max-width: calc(var(--tw) * 1.5); }
