/* NexaPlay customer portal: responsive hierarchy, aligned cards, readable instructions. */
:root {
  color-scheme: dark;
  --bg: #0a0a0a; --surface: #131313; --border: #2e2e2e;
  --text: #fafafa; --muted: #a6a6a6;
  --heading: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); font: 15px/1.7 var(--body); background: radial-gradient(ellipse at 80% 20%, #ffffff03, transparent 50%), var(--bg); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); }
h1 { font-size: clamp(44px, 5vw, 66px); line-height: 1.08; letter-spacing: -2.5px; font-weight: 600; }
h1 span { color: #a4a4a4; }
h2 { font-size: 27px; line-height: 1.3; letter-spacing: -.7px; font-weight: 600; }
.shell { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.header { min-height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 26px var(--heading); letter-spacing: -.8px; }
.brand img { border-radius: 9px; }
.brand-divider { width: 1px; height: 22px; margin-inline: 5px; background: var(--border); }
.brand-product { font: 400 14px var(--body); color: var(--muted); letter-spacing: 0; }
.back-link { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 13px; }
.back-link:hover { color: #fff; }
.eyebrow, .step-kicker { display: flex; gap: 10px; align-items: center; color: #aaa; font-size: 11px; font-weight: 500; letter-spacing: 2px; }
.eyebrow { margin-bottom: 22px; }
.eyebrow-line { width: 24px; height: 1px; background: #888; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #bed7b7; box-shadow: 0 0 12px #bed7b722; }
.lead { max-width: 760px; margin-top: 20px; color: #b3b3b3; font-size: 16px; line-height: 1.85; }
.ready-header { padding: 34px 0 28px; }
.ready-header h1 { font-size: clamp(36px, 4.2vw, 56px); letter-spacing: -2px; }
.ready-header h1 span { display: inline-block; }
.expiry-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; border: 1px solid #3c3c3c; border-radius: 14px; background: #ffffff04; }
.expiry-banner > div { display: flex; gap: 15px; align-items: center; min-width: 0; }
.expiry-banner svg { width: 23px; height: 23px; color: #d0d0d0; }
.expiry-banner strong { display: block; font-size: 17px; line-height: 1.5; font-weight: 700; }
.expiry-banner p span { display: block; margin-top: 5px; color: #a5a5a5; font-size: 13px; line-height: 1.7; }
.countdown { font: 600 31px var(--heading); font-variant-numeric: tabular-nums; letter-spacing: 1px; white-space: nowrap; flex-shrink: 0; }
.bypass-notice { display: flex; gap: 18px; padding: 24px 26px; margin-top: 24px; border: 1px solid #79613e; border-left: 4px solid #e6bc78; border-radius: 14px; background: #b8862810; }
.notice-icon { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; margin-top: 2px; border: 2px solid #e6bc78; border-radius: 50%; color: #f0cf94; font: 700 18px var(--heading); }
.notice-content { min-width: 0; }
.notice-eyebrow { color: #d6af6e; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; margin-bottom: 8px; }
.bypass-notice h2 { color: #ffe4b3; font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.bypass-notice .notice-content > p:last-child { color: #d5c3a7; font-size: 14px; line-height: 1.8; margin-top: 15px; }
.bypass-notice .notice-content > p:last-child strong { color: #f4dbb1; font-weight: 700; }
.bypass-game-list { display: grid; gap: 8px; padding: 0; margin: 17px 0 0; list-style: none; }
.bypass-game-list li { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.bypass-game-list li::before { content: "–"; color: #fff0d4; flex: none; }
.bypass-game-list strong { color: #fff0d4; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.watch-heading { margin: 34px 0 22px; }
.step-kicker { margin-bottom: 10px; font-size: 10px; }
.watch-heading h2 { font-size: 27px; font-weight: 600; }
.watch-heading p { color: #aaa; font-size: 15px; line-height: 1.8; margin-top: 9px; }
.setup-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr); gap: 28px; align-items: start; padding-bottom: 16px; }
.setup-main { display: grid; gap: 24px; min-width: 0; }
.download-aside { min-width: 0; position: static; }
.video-card { min-width: 0; background: #111; border: 1px solid #333; border-radius: 16px; overflow: hidden; }
.video-title { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 22px 24px; }
.video-title h3 { font: 600 20px/1.4 var(--heading); letter-spacing: -.3px; }
.video-title p { font-size: 13px; color: #aaa; margin-top: 5px; line-height: 1.7; }
.required-label { color: #d0d0d0; border: 1px solid #484848; padding: 5px 8px; border-radius: 5px; font-size: 9px; font-weight: 600; letter-spacing: 1px; white-space: nowrap; flex-shrink: 0; }
.video-frame { aspect-ratio: 16/9; min-height: 200px; background: #080808; }
.video-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.video-fallback { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; color: #a5a5a5; font-size: 12px; line-height: 1.7; border-top: 1px solid #292929; }
.video-fallback:hover { color: #fff; }
.video-unavailable { padding: 40px 24px; font-size: 14px; color: #aaa; }
.package-card, .redeem-card { border: 1px solid #383838; border-radius: 18px; padding: 28px; background: linear-gradient(135deg, #1a1a1a, #111); }
.card-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 25px; color: #aaa; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; }
.package-type { padding: 2px 7px; border: 1px solid #4a4a4a; border-radius: 5px; font-size: 11px; letter-spacing: 1px; }
.file-heading { display: flex; gap: 15px; align-items: center; margin-bottom: 22px; }
.file-heading > div:last-child { min-width: 0; }
.file-heading h2 { font-size: 27px; letter-spacing: -.8px; overflow-wrap: anywhere; }
.file-heading p { margin-top: 5px; color: #aaa; font-size: 13px; line-height: 1.65; }
.file-icon { display: grid; place-items: center; width: 51px; height: 61px; border: 1px solid #424242; border-radius: 10px; flex-shrink: 0; }
.file-icon svg { width: 27px; height: 27px; }
.game-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.game-list span { padding: 6px 10px; border: 1px solid #3a3a3a; border-radius: 6px; background: #ffffff03; color: #d1d1d1; font-size: 12px; overflow-wrap: anywhere; }
form { margin-top: 25px; }
.download-form { margin-top: 20px; }
.watch-confirmation { display: flex; align-items: flex-start; gap: 12px; color: #d0d0d0; font-size: 14px; line-height: 1.8; margin-bottom: 24px; cursor: pointer; }
.watch-confirmation input { width: 19px; height: 19px; flex-shrink: 0; margin: 4px 0 0; accent-color: #fff; }
.button { display: flex; justify-content: center; align-items: center; gap: 14px; min-height: 54px; padding: 15px 22px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s; }
.button-primary { background: #fff; color: #111; }
.button-primary:hover { background: #dedede; transform: translateY(-1px); }
form .button { width: 100%; justify-content: space-between; }
.button svg { width: 19px; height: 19px; }
.button:disabled, .button[aria-disabled=true] { opacity: .5; cursor: not-allowed; transform: none; }
.download-note { margin-top: 16px; color: #a1a1a1; font-size: 12px; line-height: 1.85; text-align: center; }
.download-deadline { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 15px; padding-top: 20px; margin-top: 23px; border-top: 1px solid #333; }
.download-deadline span { color: #999; font-size: 10px; letter-spacing: 1.3px; }
.download-deadline time { color: #d6d6d6; font-size: 12px; font-weight: 500; }
.bonus-panel { margin-top: 24px; padding: 24px 26px; border: 1px solid #3c3c3c; border-radius: 16px; background: #111; }
.bonus-panel summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; list-style: none; font: 600 20px/1.5 var(--heading); cursor: pointer; }
.bonus-panel summary::-webkit-details-marker { display: none; }
.bonus-toggle { color: #aaa; font-size: 21px; }
.bonus-panel:not([open]) .bonus-toggle { transform: rotate(180deg); }
.bonus-content { padding-top: 20px; color: #bdbdbd; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.bonus-content b { color: #f0f0f0; font-weight: 700; }
.bonus-content a { color: #e8e8e8; text-decoration: underline; text-underline-offset: 3px; }
.link-reminder { display: flex; align-items: flex-start; gap: 10px; margin: 19px 7px 0; color: #999; font-size: 12px; line-height: 1.85; }
.link-reminder svg { width: 15px; height: 15px; margin-top: 3px; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 40px 0 25px; color: #888; font-size: 11px; }
/* Entry and unavailable states share the same visual language. */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; padding: 70px 0 80px; }
.hero .lead { max-width: 460px; }
.intro-notes { display: flex; flex-wrap: wrap; gap: 15px 24px; margin-top: 30px; color: #bbb; font-size: 12px; }
.intro-notes span { display: flex; gap: 8px; align-items: center; }
.intro-notes svg { width: 16px; height: 16px; color: #999; }
.card-description { color: #aaa; font-size: 14px; line-height: 1.8; margin-top: 10px; }
.tiny-key { font-size: 22px; }
label { display: block; font-size: 14px; margin-bottom: 10px; color: #ddd; }
.code-input { width: 100%; height: 64px; padding: 0 18px; border: 1px solid #494949; border-radius: 10px; background: #0c0c0c; color: #fff; font: 500 26px var(--heading); letter-spacing: 5px; text-transform: uppercase; }
.code-input::placeholder { color: #777; }
.code-input:focus { outline: 2px solid #bcbcbc; outline-offset: 2px; }
.code-input[aria-invalid=true] { border-color: #bc7272; }
.input-hint { font-size: 12px; margin: 8px 0 22px; color: #999; }
.card-footnote { display: flex; gap: 10px; align-items: flex-start; padding-top: 20px; margin-top: 25px; border-top: 1px solid #333; color: #aaa; font-size: 12px; line-height: 1.85; }
.card-footnote svg { width: 15px; height: 15px; margin-top: 3px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 30px 0; border-top: 1px solid #303030; border-bottom: 1px solid #303030; }
.steps article { display: flex; gap: 18px; align-items: flex-start; }
.step-number { font: 500 13px var(--heading); color: #999; margin-top: 4px; }
.steps h3 { font-size: 17px; font-weight: 500; margin-bottom: 7px; }
.steps p { color: #aaa; font-size: 13px; line-height: 1.8; }
.help-row { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; color: #999; font-size: 12px; }
.help-row p span, .help-row a { color: #ccc; }
.help-row a { flex-shrink: 0; }
.error-message { padding: 13px 15px; margin-top: 20px; border: 1px solid #a35c5c66; border-radius: 9px; background: #ab505015; color: #efb5b5; font-size: 14px; }
.muted { color: #aaa; font-size: 14px; line-height: 1.8; }
.expired-section { max-width: 640px; margin: 55px auto 75px; text-align: center; }
.expired-section .eyebrow { justify-content: center; }
.expired-section .lead { margin: 25px auto 20px; }
.expired-section .button { max-width: 330px; margin: 28px auto 20px; }
.expired-symbol { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 28px; border: 1px solid #444; border-radius: 18px; color: #aaa; font-size: 30px; }
.text-link { color: #bbb; font-size: 13px; text-decoration: underline; }
.skip-link { position: absolute; top: -80px; left: 20px; z-index: 10; background: #fff; color: #000; padding: 10px; }
.skip-link:focus { top: 10px; }
@media (min-width: 760px) {
  .ready-header h1 { white-space: nowrap; }
}
@media (max-width: 1050px) {
  .setup-layout { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 22px; }
  .package-card { padding: 23px; }
  .video-title { padding: 20px; flex-wrap: wrap; gap: 10px; }
  .hero { gap: 40px; }
  .file-heading h2 { font-size: 24px; }
  .download-form .button { padding-inline: 18px; font-size: 14px; }
}
@media (max-width: 900px) {
  .setup-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .download-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
  .download-aside .bonus-panel { margin-top: 0; }
  .link-reminder { grid-column: 1 / -1; margin-top: 0; }
  .shell { width: calc(100% - 48px); }
  .expiry-banner { gap: 18px; padding: 20px; }
  .expiry-banner strong { font-size: 16px; }
  .countdown { font-size: 28px; }
  .hero { grid-template-columns: 1fr; gap: 35px; padding: 45px 0; }
  .hero .lead { max-width: 620px; }
  .hero .redeem-card { max-width: 620px; }
}
@media (min-width: 601px) and (max-width: 720px) {
  .download-aside { display: block; }
  .download-aside .bonus-panel { margin-top: 22px; }
  .link-reminder { margin-top: 18px; }
}
@media (max-width: 600px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .shell { width: calc(100% - 32px); }
  .header { min-height: 66px; gap: 10px; }
  .brand { font-size: 21px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .brand-divider, .brand-product { display: none; }
  .back-link { font-size: 11px; gap: 6px; }
  .ready-header { padding: 22px 0 20px; }
  .ready-header h1 { font-size: clamp(30px, 8.2vw, 34px); line-height: 1.15; letter-spacing: -1.2px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.2px; margin-bottom: 14px; }
  .lead { font-size: 14px; line-height: 1.75; margin-top: 14px; }
  .expiry-banner { flex-wrap: wrap; gap: 11px; padding: 16px; border-radius: 12px; }
  .expiry-banner > div { align-items: flex-start; gap: 10px; width: 100%; }
  .expiry-banner svg { width: 18px; height: 18px; margin-top: 3px; }
  .expiry-banner strong { font-size: 14px; line-height: 1.55; }
  .expiry-banner p span { font-size: 12px; line-height: 1.7; }
  .countdown { margin-left: 28px; font-size: 24px; }
  .bypass-notice { padding: 17px 15px; gap: 10px; margin-top: 17px; border-radius: 12px; }
  .notice-icon { width: 22px; height: 22px; font-size: 14px; border-width: 1.5px; }
  .notice-eyebrow { font-size: 9px; letter-spacing: .5px; margin-bottom: 7px; }
  .bypass-notice h2 { font-size: 16px; line-height: 1.5; letter-spacing: -.2px; }
  .bypass-notice .notice-content > p:last-child { font-size: 13px; line-height: 1.75; margin-top: 12px; }
  .bypass-game-list { gap: 7px; margin-top: 12px; }
  .bypass-game-list strong { font-size: 14px; }
  .watch-heading { margin: 24px 0 16px; }
  .step-kicker { margin-bottom: 8px; font-size: 9px; }
  .watch-heading h2 { font-size: 20px; line-height: 1.4; letter-spacing: -.4px; }
  .watch-heading p { font-size: 13px; line-height: 1.75; margin-top: 7px; }
  .setup-main { gap: 18px; }
  .setup-layout { gap: 20px; }
  .video-title { padding: 16px; flex-wrap: wrap; gap: 8px; }
  .video-title h3 { font-size: 16px; line-height: 1.45; }
  .video-title p { font-size: 12px; line-height: 1.65; margin-top: 4px; }
  .required-label { font-size: 8px; letter-spacing: .7px; padding: 4px 6px; }
  .video-card { border-radius: 12px; }
  .video-fallback { padding: 12px 16px; font-size: 11px; }
  .download-aside { display: block; }
  .download-aside .bonus-panel { margin-top: 18px; }
  .package-card, .redeem-card { padding: 20px; border-radius: 14px; }
  .card-topline { margin-bottom: 20px; font-size: 9px; }
  .file-heading h2 { font-size: 22px; }
  .file-heading p { font-size: 12px; line-height: 1.7; }
  .file-icon { width: 40px; height: 48px; }
  .file-icon svg { width: 23px; height: 23px; }
  .file-heading { gap: 12px; margin-bottom: 18px; }
  .game-list { margin-bottom: 18px; }
  .game-list span { font-size: 11px; padding: 5px 8px; }
  .watch-confirmation { font-size: 13px; line-height: 1.75; gap: 10px; margin-bottom: 20px; }
  .watch-confirmation input { width: 18px; height: 18px; }
  .download-form .button { font-size: 14px; min-height: 52px; padding: 13px 17px; }
  .download-note { font-size: 12px; margin-top: 13px; }
  .download-deadline { margin-top: 18px; padding-top: 16px; }
  .download-deadline time { font-size: 12px; }
  .bonus-panel { padding: 20px; border-radius: 13px; }
  .bonus-panel summary { font-size: 17px; }
  .bonus-content { font-size: 13px; line-height: 1.85; padding-top: 16px; }
  .link-reminder { margin: 16px 3px 0; font-size: 11px; }
  .footer { padding-top: 26px; font-size: 11px; }
  .footer > span:last-child { display: none; }
  .steps { grid-template-columns: 1fr; gap: 18px; padding: 24px 0; }
  .steps h3 { font-size: 15px; }
  .steps p { font-size: 12px; }
  .help-row { flex-direction: column; gap: 13px; }
  .hero { padding: 32px 0; gap: 28px; }
  .hero h1 { font-size: clamp(32px, 9vw, 38px); letter-spacing: -1.5px; }
  .card-description { font-size: 13px; }
  .code-input { font-size: 24px; height: 58px; }
  .expired-section h1 { font-size: 34px; }
  .expired-section { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
