:root {
    --ink: #17213f;
    --ink-2: #24305a;
    --text: #223052;
    --muted: #66718b;
    --soft: #8c97ad;
    --paper: #f7f9fe;
    --white: #ffffff;
    --line: #dfe6f4;
    --line-strong: #c7d1e5;
    --blue: #4d77f3;
    --cyan: #19bfe5;
    --aqua: #dff9ff;
    --lime: #b4e83e;
    --yellow: #ffc83d;
    --orange: #ff9861;
    --coral: #f26463;
    --pink: #e96ab5;
    --purple: #8b70e9;
    --green: #27be85;
    --red: #df5252;
    --shadow: 0 20px 60px rgba(39, 62, 118, .13);
    --shadow-sm: 0 8px 24px rgba(39, 62, 118, .08);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 15px;
    --radius-sm: 10px;
    --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background: var(--paper);
    font-family: "Nunito", "Trebuchet MS", Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { color: var(--ink); background: var(--lime); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.container { width: var(--container); margin-inline: auto; }
.mono { font-family: "Courier New", monospace; }
.muted { color: var(--muted); }
.text-blue { color: var(--blue); }
.text-coral { color: var(--coral); }
.text-green { color: var(--green); }
.text-yellow { color: #bb7b00; }

/* ---------- shared header ---------- */
.site-notice { color: var(--ink); background: var(--lime); border-bottom: 1px solid rgba(23,33,63,.13); }
.notice-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 33px; font-family: "Courier New", monospace; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.notice-dot { display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(242,100,99,.16); }
.notice-right { color: rgba(23,33,63,.7); }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(48,66,108,.1); box-shadow: 0 6px 24px rgba(31,48,92,.04); backdrop-filter: blur(16px); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 73px; }
.brand { display: inline-flex; align-items: center; min-width: 214px; }
.brand img { width: 214px; height: 54px; object-fit: contain; object-position: left center; }
.nav-links { display: flex; align-items: center; gap: 23px; color: var(--muted); font-size: 12px; font-weight: 900; }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--blue); }
.nav-links .nav-account { color: var(--ink); }
.nav-links .nav-account span { color: var(--blue); }
.nav-toggle { display: none; width: 40px; height: 40px; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.nav-toggle span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--ink); }
.mobile-nav { display: none; padding-bottom: 15px; }

/* ---------- controls ---------- */
.button { display: inline-flex; position: relative; align-items: center; justify-content: center; gap: 9px; min-height: 47px; padding: 0 20px; overflow: hidden; border: 1px solid transparent; border-radius: 999px; font-size: 11px; font-weight: 950; letter-spacing: .06em; text-transform: uppercase; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease; }
.button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-130%); transition: transform .65s ease; }
.button:hover::after { transform: translateX(130%); }
.button:hover { transform: translateY(-3px); }
.button:active { transform: translateY(0) scale(.98); }
.button-primary { color: var(--ink); background: var(--lime); box-shadow: 0 10px 24px rgba(166,220,43,.2); }
.button-primary:hover { background: #caff69; box-shadow: 0 14px 30px rgba(166,220,43,.3); }
.button-secondary { color: var(--ink); background: var(--yellow); box-shadow: 0 10px 24px rgba(255,200,61,.2); }
.button-secondary:hover { background: #ffda73; }
.button-blue { color: var(--white); background: var(--blue); box-shadow: 0 10px 24px rgba(77,119,243,.2); }
.button-blue:hover { background: #6389ff; }
.button-dark { color: var(--white); background: var(--ink); }
.button-dark:hover { background: #2c3a6c; }
.button-ghost { color: var(--ink); border-color: var(--line-strong); background: var(--white); }
.button-ghost:hover { color: var(--blue); border-color: var(--blue); background: #f7f9ff; }
.button-xs { min-height: 38px; padding: 0 14px; font-size: 9px; }
.button-sm { min-height: 39px; padding: 0 15px; font-size: 9px; }
.arrow { font-size: 16px; line-height: 0; }

/* ---------- landing page: light gaming presentation ---------- */
.hero-light { position: relative; overflow: hidden; background: linear-gradient(135deg, #f6fbff 0%, #f7f8ff 53%, #fffdf4 100%); }
.hero-light::before { content: ""; position: absolute; top: -210px; right: -150px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(139,112,233,.2), rgba(139,112,233,0) 68%); pointer-events: none; }
.hero-light::after { content: ""; position: absolute; bottom: -280px; left: -160px; width: 580px; height: 580px; border-radius: 50%; background: radial-gradient(circle, rgba(25,191,229,.12), rgba(25,191,229,0) 68%); pointer-events: none; }
.hero-shell { position: relative; z-index: 1; padding: 86px 0 68px; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(400px,.84fr); align-items: center; gap: clamp(40px,7vw,105px); }
.hero-copy { max-width: 660px; }
.kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font-family: "Courier New", monospace; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--coral); transform: rotate(45deg); }
.hero-title { margin: 23px 0 18px; color: var(--ink); font-size: clamp(62px,9vw,126px); font-weight: 950; letter-spacing: -.105em; line-height: .76; }
.hero-title small { display: block; margin-left: 5px; color: var(--coral); font-family: "Courier New", monospace; font-size: clamp(15px,2vw,24px); font-weight: 900; letter-spacing: .2em; line-height: 1; }
.hero-title strong { display: block; margin-top: 14px; }
.hero-title em { color: var(--blue); font-style: normal; }
.hero-subtitle { max-width: 570px; margin: 0; color: var(--muted); font-size: clamp(16px,2vw,20px); line-height: 1.58; }
.hero-subtitle b { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--muted); font-family: "Courier New", monospace; font-size: 10px; font-weight: 800; }
.hero-note b { color: var(--coral); font-size: 16px; }
.hero-note strong { color: var(--ink); }
.hero-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-metric { padding: 15px 9px 15px 0; }
.hero-metric + .hero-metric { padding-left: 11px; border-left: 1px solid var(--line); }
.hero-metric strong { display: block; color: var(--ink); font-size: 15px; line-height: 1.1; }
.hero-metric span { display: block; margin-top: 5px; color: var(--soft); font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; }
.hero-stage-wrap { position: relative; min-height: 515px; }
.hero-stage-shadow { position: absolute; inset: 50px -20px -15px 20px; border-radius: 31px; background: var(--cyan); opacity: .15; filter: blur(28px); transform: rotate(3deg); }
.hero-stage { position: relative; min-height: 493px; padding: 18px; overflow: hidden; border: 1px solid #c8d5f1; border-radius: 27px 7px 27px 7px; background: linear-gradient(150deg, #ffffff, #eef4ff 72%, #f5eeff); box-shadow: var(--shadow); }
.hero-stage::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(77,119,243,.14); border-radius: 20px 5px 20px 5px; pointer-events: none; }
.stage-bar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--soft); font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.stage-bar b { color: var(--green); }
.stage-bar b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 6px 1px 0; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(39,190,133,.13); }
.stage-main { position: relative; z-index: 1; display: flex; min-height: 380px; align-items: center; justify-content: center; text-align: center; }
.stage-badge { display: grid; place-items: center; width: 148px; height: 148px; margin: 0 auto 17px; color: var(--ink); border: 10px solid rgba(255,255,255,.78); border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1px #eab334, 0 18px 35px rgba(255,200,61,.24); font-size: 45px; font-weight: 950; letter-spacing: -.1em; transform: rotate(-5deg); }
.stage-main h2 { margin: 0; color: var(--ink); font-size: clamp(29px,4vw,43px); font-weight: 950; letter-spacing: -.08em; line-height: .95; }
.stage-main h2 span { color: var(--blue); }
.stage-main p { max-width: 335px; margin: 12px auto 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.stage-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 19px; }
.stage-tag { padding: 6px 8px; color: var(--blue); border: 1px solid #cbd7f6; border-radius: 7px; background: #f1f5ff; font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.stage-footer { position: absolute; right: 20px; bottom: 18px; left: 20px; display: flex; justify-content: space-between; color: var(--soft); font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.stage-footer b { color: var(--coral); }
.sticker { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; color: var(--ink); border: 1px solid rgba(23,33,63,.12); border-radius: 8px 3px 8px 3px; background: var(--lime); font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 8px 16px rgba(39,62,118,.1); transform: rotate(-5deg); }
.sticker::before { content: "✦"; color: var(--coral); font-size: 13px; }
.sticker-top { top: 18px; right: -12px; }
.sticker-bottom { bottom: 39px; left: -17px; color: var(--white); background: var(--coral); transform: rotate(5deg); }
.hero-trust { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 25px; margin-top: 63px; padding-top: 21px; border-top: 1px solid var(--line); }
.trust-label { color: var(--soft); font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.trust-label strong { display: block; margin-top: 6px; color: var(--ink); font-family: inherit; font-size: 13px; letter-spacing: .03em; }
.sponsor-row { min-width: 0; }
.sponsor-row > span { display: block; margin-bottom: 8px; color: var(--soft); font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.sponsor-scroll { display: flex; gap: 9px; overflow: hidden; }
.sponsor-chip { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; min-width: 112px; height: 38px; padding: 0 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.7); font-size: 9px; font-weight: 900; }
.sponsor-mark { display: grid; place-items: center; width: 22px; height: 22px; color: var(--ink); border-radius: 6px 2px 6px 2px; background: var(--yellow); font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; }

/* ---------- landing sections ---------- */
.section { padding: 105px 0; }
.section-light { color: var(--ink); background: var(--white); }
.section-blue { color: var(--white); background: #edf4ff; }
.section-night { position: relative; overflow: hidden; color: var(--white); background: var(--ink); }
.section-night::before { content: ""; position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 55px 55px; mask-image: linear-gradient(to bottom, black, transparent 88%); }
.section-inner { position: relative; z-index: 1; }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.section-top > p { max-width: 350px; margin: 0 0 4px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.section-night .section-top > p { color: var(--muted); }
.section-heading h2 { margin: 14px 0 12px; color: var(--ink); font-size: clamp(37px,6vw,67px); font-weight: 950; letter-spacing: -.08em; line-height: .92; }
.section-night .section-heading h2 { color: var(--white); }
.section-heading h2 span { color: var(--blue); }
.section-heading h2 .lime { color: var(--lime); }
.section-heading h2 .coral { color: var(--coral); }
.section-heading p { max-width: 580px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

.feature-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.feature-card { --feature: var(--blue); position: relative; min-height: 217px; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 19px 6px 19px 6px; background: #fbfcff; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.feature-card:hover { transform: translateY(-6px); border-color: var(--feature); box-shadow: var(--shadow-sm); }
.feature-card::after { content: attr(data-code); position: absolute; top: 15px; right: 16px; color: var(--feature); font-family: "Courier New", monospace; font-size: 9px; font-weight: 900; }
.feature-card--cyan { --feature: var(--cyan); }
.feature-card--lime { --feature: #82a900; }
.feature-card--pink { --feature: var(--pink); }
.feature-card--yellow { --feature: #bb7b00; }
.feature-card--purple { --feature: var(--purple); }
.feature-card--coral { --feature: var(--coral); }
.feature-icon { display: grid; place-items: center; width: 49px; height: 49px; margin-bottom: 23px; color: var(--feature); border: 1px solid rgba(77,119,243,.15); border-radius: 14px 4px 14px 4px; background: rgba(77,119,243,.07); font-size: 24px; }
.feature-card h3 { margin: 0; color: var(--ink); font-size: 17px; font-weight: 950; letter-spacing: -.04em; line-height: 1.06; }
.feature-card p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.feature-cta { display: inline-flex; align-items: center; gap: 5px; margin-top: 13px; padding: 0; color: var(--feature); border: 0; background: none; font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.feature-cta:hover { text-decoration: underline; }

.journey-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 7px; align-items: stretch; }
.journey-card { position: relative; min-height: 185px; padding: 17px 13px; border: 1px solid #d9e3f5; border-radius: 16px 5px 16px 5px; background: var(--white); box-shadow: 0 8px 25px rgba(39,62,118,.06); }
.journey-card::after { content: "→"; position: absolute; top: 50%; right: -13px; z-index: 2; display: grid; place-items: center; width: 20px; height: 20px; color: var(--white); border-radius: 50%; background: var(--blue); font-size: 13px; transform: translateY(-50%); }
.journey-card:last-child::after { display: none; }
.journey-card:nth-child(2) { border-top: 3px solid var(--yellow); }
.journey-card:nth-child(3) { border-top: 3px solid var(--cyan); }
.journey-card:nth-child(4) { border-top: 3px solid var(--purple); }
.journey-card:nth-child(5) { border-top: 3px solid var(--pink); }
.journey-card:nth-child(6) { border-top: 3px solid var(--coral); }
.journey-card:nth-child(7) { border-top: 3px solid var(--lime); }
.journey-kicker { color: var(--blue); font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.journey-card h3 { margin: 11px 0 7px; color: var(--ink); font-size: 14px; font-weight: 950; letter-spacing: -.04em; line-height: 1.05; }
.journey-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.journey-badge { display: inline-block; margin-top: 12px; padding: 5px 7px; color: var(--blue); border-radius: 999px; background: #edf3ff; font-family: "Courier New", monospace; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.fee-banner { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 30px; padding: 21px 23px; color: var(--ink); border: 1px solid #f0d897; border-radius: 16px 5px 16px 5px; background: #fff8de; }
.fee-banner strong { display: block; font-size: 17px; font-weight: 950; }
.fee-banner p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.fee-amount { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--ink); border-radius: 999px; background: var(--yellow); font-size: 19px; font-weight: 950; white-space: nowrap; }

.reward-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.reward-card { --reward: var(--blue); position: relative; min-height: 262px; padding: 21px; border: 1px solid var(--line); border-radius: 20px 6px 20px 6px; background: var(--white); box-shadow: 0 6px 25px rgba(39,62,118,.05); transition: transform .22s ease, box-shadow .22s ease; }
.reward-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.reward-card--yellow { --reward: #bb7b00; }
.reward-card--purple { --reward: var(--purple); }
.reward-card--coral { --reward: var(--coral); color: var(--white); border-color: transparent; background: var(--coral); box-shadow: 0 17px 38px rgba(242,100,99,.2); }
.reward-card::after { content: attr(data-number); position: absolute; top: 16px; right: 17px; color: var(--reward); font-family: "Courier New", monospace; font-size: 9px; font-weight: 900; }
.reward-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 23px; color: var(--reward); border: 1px solid rgba(77,119,243,.15); border-radius: 15px 4px 15px 4px; background: rgba(77,119,243,.07); font-size: 25px; }
.reward-card h3 { margin: 0; color: var(--ink); font-size: 18px; font-weight: 950; letter-spacing: -.045em; line-height: 1.06; }
.reward-card--coral h3 { color: var(--white); }
.reward-card p { margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.reward-card--coral p { color: rgba(255,255,255,.82); }
.reward-amount { display: inline-flex; margin-top: 16px; padding: 7px 11px; color: var(--ink); border-radius: 999px; background: var(--yellow); font-size: 15px; font-weight: 950; }

.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(35px,8vw,118px); align-items: start; }
.faq-intro { position: sticky; top: 105px; }
.faq-intro h2 { margin: 15px 0 12px; color: var(--ink); font-size: clamp(40px,6vw,61px); font-weight: 950; letter-spacing: -.08em; line-height: .9; }
.faq-intro h2 span { color: var(--coral); }
.faq-intro p { margin: 0; color: var(--muted); font-size: 13px; }
.faq-list { display: grid; gap: 7px; }
.faq-item { overflow: hidden; border: 1px solid var(--line); border-radius: 14px 5px 14px 5px; background: var(--paper); transition: background .2s ease, border-color .2s ease; }
.faq-item[open] { border-color: #f0c95c; background: #fffdf1; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 19px; cursor: pointer; list-style: none; color: var(--ink); font-size: 14px; font-weight: 950; letter-spacing: -.02em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; background: var(--yellow); font-size: 19px; font-weight: 500; line-height: 1; transition: transform .2s ease; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-answer { padding: 0 19px 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.support-box { margin-top: 12px; padding: 20px; color: var(--white); border-radius: 14px 5px 14px 5px; background: var(--ink); }
.support-box strong { display: block; color: var(--yellow); font-size: 14px; }
.support-box p { margin: 4px 0 14px; color: var(--muted); font-size: 11px; }

/* ---------- authentication and registration ---------- */
.auth-page { min-height: calc(100vh - 106px); padding: 70px 0; background: linear-gradient(135deg, #f5fbff, #f7f6ff); }
.auth-shell { display: grid; grid-template-columns: .85fr 1.15fr; gap: 35px; align-items: stretch; }
.auth-aside { position: relative; overflow: hidden; padding: 38px; color: var(--white); border-radius: 28px 7px 28px 7px; background: linear-gradient(145deg, var(--ink), #34467e); box-shadow: var(--shadow); }
.auth-aside::after { content: ""; position: absolute; right: -85px; bottom: -90px; width: 290px; height: 290px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,255,255,.04), 0 0 0 50px rgba(255,255,255,.03); }
.auth-aside h1 { position: relative; z-index: 1; margin: 20px 0 14px; font-size: clamp(38px,5vw,61px); font-weight: 950; letter-spacing: -.08em; line-height: .92; }
.auth-aside h1 span { color: var(--lime); }
.auth-aside p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.auth-points { position: relative; z-index: 1; display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; color: #dce5ff; font-size: 11px; }
.auth-points li { display: flex; gap: 9px; align-items: flex-start; }
.auth-points b { color: var(--lime); }
.auth-form-card { padding: 35px; border: 1px solid var(--line); border-radius: 24px 7px 24px 7px; background: var(--white); box-shadow: var(--shadow); }
.auth-form-card h2 { margin: 15px 0 8px; color: var(--ink); font-size: clamp(30px,4vw,46px); font-weight: 950; letter-spacing: -.07em; line-height: .94; }
.auth-form-card > p { margin: 0; color: var(--muted); font-size: 12px; }
.auth-form { margin-top: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.form-group { display: grid; gap: 6px; }
.form-group--full { grid-column: 1 / -1; }
.form-group label { color: var(--ink-soft); font-family: "Courier New", monospace; font-size: 9px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.form-group label span { color: var(--soft); font-weight: 700; text-transform: none; }
.form-group label b { color: var(--coral); }
.form-group input, .form-group select, .form-group textarea { width: 100%; min-height: 45px; padding: 0 13px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px; outline: 0; background: #fbfcff; font-size: 12px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.form-group textarea { min-height: 80px; padding-top: 11px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #a5afc2; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(77,119,243,.1); }
.form-help { margin: 3px 0 0; color: var(--soft); font-family: "Courier New", monospace; font-size: 8px; line-height: 1.45; }
.form-check { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.form-check input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--blue); }
.form-check a { color: var(--blue); text-decoration: underline; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 18px; }
.form-actions .button { flex: 0 0 auto; }
.form-error { min-height: 18px; margin: 8px 0 0; color: var(--red); font-family: "Courier New", monospace; font-size: 9px; }
.auth-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 19px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.auth-foot a { color: var(--blue); font-weight: 900; }
.progress-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 0 0 27px; }
.progress-step { display: flex; align-items: center; gap: 8px; color: var(--soft); font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.progress-step b { display: grid; place-items: center; width: 25px; height: 25px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 8px 3px 8px 3px; background: var(--paper); }
.progress-step.is-active { color: var(--blue); }
.progress-step.is-active b { color: var(--white); border-color: var(--blue); background: var(--blue); }
.secure-line { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--soft); font-family: "Courier New", monospace; font-size: 8px; }
.secure-line b { color: var(--green); font-size: 14px; }
.payment-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 17px; border: 1px solid #f0d897; border-radius: 13px 4px 13px 4px; background: #fff9e7; }
.payment-box strong { color: var(--ink); font-size: 15px; font-weight: 950; }
.payment-box p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.fee-token { padding: 8px 11px; color: var(--ink); border-radius: 999px; background: var(--yellow); font-size: 16px; font-weight: 950; white-space: nowrap; }

/* ---------- student portal ---------- */
.portal-page { min-height: calc(100vh - 106px); padding: 58px 0 90px; background: var(--paper); }
.portal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.portal-head h1 { margin: 12px 0 8px; color: var(--ink); font-size: clamp(36px,6vw,62px); font-weight: 950; letter-spacing: -.08em; line-height: .9; }
.portal-head h1 span { color: var(--blue); }
.portal-head p { max-width: 500px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.portal-layout { display: grid; grid-template-columns: 245px minmax(0,1fr); gap: 18px; align-items: start; }
.portal-sidebar { position: sticky; top: 103px; padding: 16px; border: 1px solid var(--line); border-radius: 19px 6px 19px 6px; background: var(--white); box-shadow: var(--shadow-sm); }
.player-card { padding: 15px; border-radius: 14px 4px 14px 4px; background: linear-gradient(145deg, var(--ink), #33457e); }
.player-top { display: flex; align-items: center; gap: 10px; }
.player-avatar { display: grid; place-items: center; width: 42px; height: 42px; color: var(--ink); border: 2px solid var(--yellow); border-radius: 12px 4px 12px 4px; background: var(--yellow); font-size: 14px; font-weight: 950; }
.player-top strong { display: block; color: var(--white); font-size: 12px; line-height: 1.1; }
.player-top small { display: block; margin-top: 4px; color: var(--muted); font-family: "Courier New", monospace; font-size: 8px; text-transform: uppercase; }
.player-xp { display: flex; justify-content: space-between; margin-top: 16px; color: var(--muted); font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.player-xp b { color: var(--lime); }
.xp-rail { height: 7px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.15); }
.xp-rail span { display: block; width: 4%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--lime)); box-shadow: 0 0 13px rgba(201,255,74,.4); transition: width .3s ease; }
.portal-menu { display: grid; gap: 4px; margin-top: 17px; }
.portal-menu a { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 10px 9px; color: var(--muted); border-radius: 9px; font-size: 11px; font-weight: 900; transition: color .2s ease, background .2s ease; }
.portal-menu a:hover, .portal-menu a.is-active { color: var(--blue); background: #eef3ff; }
.portal-menu a span { color: var(--soft); font-family: "Courier New", monospace; font-size: 9px; }
.portal-side-note { margin-top: 17px; padding: 11px; color: var(--muted); border: 1px solid #d5ebf2; border-radius: 10px; background: #f0fbff; font-size: 9px; line-height: 1.5; }
.portal-side-note b { color: var(--cyan); }
.portal-content { min-width: 0; }
.portal-alert { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 15px 17px; border: 1px solid #f0d897; border-radius: 13px 4px 13px 4px; background: #fff9e7; }
.portal-alert strong { display: block; color: var(--ink); font-size: 13px; }
.portal-alert p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.portal-card { padding: 20px; border: 1px solid var(--line); border-radius: 19px 6px 19px 6px; background: var(--white); box-shadow: var(--shadow-sm); }
.portal-card + .portal-card { margin-top: 14px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.card-heading h2 { margin: 0; color: var(--ink); font-size: 20px; font-weight: 950; letter-spacing: -.045em; line-height: 1.05; }
.card-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; line-height: 1.2; text-transform: uppercase; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.is-success { color: var(--green); background: #eafaf3; border-color: #bcebd5; }
.status-pill.is-warning { color: #aa7300; background: #fff7db; border-color: #efdca0; }
.status-pill.is-danger { color: var(--red); background: #fff0ef; border-color: #f5c9c5; }
.status-pill.is-neutral { color: var(--soft); background: #f3f5f9; }
.portal-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.portal-metric { padding: 13px; border: 1px solid var(--line); border-radius: 12px 4px 12px 4px; background: #fbfcff; }
.portal-metric strong { display: block; color: var(--ink); font-size: 18px; font-weight: 950; line-height: 1; }
.portal-metric span { display: block; margin-top: 6px; color: var(--soft); font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.stage-track { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 0; margin-top: 21px; }
.stage-item { position: relative; min-width: 0; padding: 0 4px; text-align: center; }
.stage-item::before { content: ""; position: absolute; top: 16px; right: 50%; left: -50%; height: 2px; background: var(--line); }
.stage-item:first-child::before { display: none; }
.stage-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 8px; color: var(--soft); border: 1px solid var(--line-strong); border-radius: 50%; background: var(--white); font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; }
.stage-item.is-complete .stage-dot { color: var(--white); border-color: var(--green); background: var(--green); }
.stage-item.is-current .stage-dot { color: var(--ink); border-color: var(--yellow); background: var(--yellow); box-shadow: 0 0 0 5px rgba(255,200,61,.18); }
.stage-item.is-complete::before, .stage-item.is-current::before { background: var(--green); }
.stage-item.is-current::before { background: linear-gradient(90deg,var(--green),var(--line)); }
.stage-item strong { display: block; color: var(--ink); font-size: 9px; line-height: 1.1; }
.stage-item span { display: block; margin-top: 4px; color: var(--soft); font-family: "Courier New", monospace; font-size: 7px; line-height: 1.2; text-transform: uppercase; }
.action-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.action-card { display: flex; flex-direction: column; min-height: 180px; padding: 16px; border: 1px solid var(--line); border-radius: 14px 4px 14px 4px; background: #fbfcff; }
.action-card--primary { border-color: #cbd8ff; background: #f1f5ff; }
.action-card--purple { border-color: #ddd4fa; background: #f8f5ff; }
.action-card--coral { border-color: #f3cdca; background: #fff5f3; }
.action-card--green { border-color: #c6ebdb; background: #f1fcf7; }
.action-icon { font-size: 25px; }
.action-card h3 { margin: 12px 0 5px; color: var(--ink); font-size: 15px; font-weight: 950; letter-spacing: -.03em; }
.action-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.action-card .button { align-self: flex-start; margin-top: auto; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-item { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px 3px 11px 3px; background: #f3f5f9; filter: grayscale(1); opacity: .45; font-size: 18px; }
.badge-item.is-earned { border-color: #f0d897; background: #fff8df; filter: none; opacity: 1; box-shadow: 0 5px 14px rgba(255,200,61,.14); }

/* ---------- digital paper ---------- */
.exam-page { min-height: calc(100vh - 106px); padding: 55px 0 90px; background: var(--paper); }
.exam-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 24px; }
.exam-header h1 { margin: 12px 0 8px; color: var(--ink); font-size: clamp(35px,6vw,61px); font-weight: 950; letter-spacing: -.08em; line-height: .9; }
.exam-header h1 span { color: var(--blue); }
.exam-header p { max-width: 510px; margin: 0; color: var(--muted); font-size: 13px; }
.exam-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.instruction-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-bottom: 18px; }
.instruction-card { min-height: 120px; padding: 15px; border: 1px solid var(--line); border-radius: 14px 4px 14px 4px; background: var(--white); }
.instruction-card b { display: block; color: var(--blue); font-size: 21px; }
.instruction-card strong { display: block; margin-top: 8px; color: var(--ink); font-size: 12px; font-weight: 950; }
.instruction-card p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.paper { padding: clamp(20px,4vw,38px); border: 1px solid var(--line-strong); border-radius: 20px 6px 20px 6px; background: var(--white); box-shadow: var(--shadow-sm); }
.paper-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 26px; padding-bottom: 19px; border-bottom: 1px dashed var(--line-strong); }
.paper-heading h2 { margin: 0; color: var(--ink); font-size: 24px; font-weight: 950; letter-spacing: -.05em; }
.paper-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.paper-code { color: var(--blue); font-family: "Courier New", monospace; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.paper-question { padding: 16px 0; border-bottom: 1px solid #edf0f6; }
.paper-question:last-child { border-bottom: 0; }
.paper-question-head { display: flex; align-items: flex-start; gap: 11px; }
.question-number { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto; color: var(--white); border-radius: 8px 3px 8px 3px; background: var(--blue); font-family: "Courier New", monospace; font-size: 9px; font-weight: 900; }
.paper-question h3 { margin: 3px 0 0; color: var(--ink); font-size: 14px; font-weight: 900; line-height: 1.35; }
.question-meta { margin-left: 38px; color: var(--soft); font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.paper-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin: 11px 0 0 38px; }
.paper-option { padding: 9px 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: #fbfcff; font-size: 11px; }
.scan-banner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 18px; padding: 20px; color: var(--white); border-radius: 16px 5px 16px 5px; background: linear-gradient(135deg, var(--ink), #324577); }
.scan-banner h2 { margin: 0; color: var(--white); font-size: 20px; font-weight: 950; letter-spacing: -.04em; }
.scan-banner p { max-width: 650px; margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.scan-banner b { color: var(--lime); }
.scan-status { margin-top: 11px; color: var(--yellow); font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.paper-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 22px; color: var(--soft); font-family: "Courier New", monospace; font-size: 8px; }

/* ---------- live online IQ test ---------- */
.iq-page { min-height: calc(100vh - 106px); padding: 55px 0 90px; background: var(--paper); }
.iq-shell { max-width: 900px; margin-inline: auto; }
.iq-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 23px; }
.iq-heading h1 { margin: 12px 0 8px; color: var(--ink); font-size: clamp(36px,6vw,61px); font-weight: 950; letter-spacing: -.08em; line-height: .9; }
.iq-heading h1 span { color: var(--purple); }
.iq-heading p { max-width: 400px; margin: 0; color: var(--muted); font-size: 12px; }
.iq-card { padding: clamp(20px,4vw,36px); border: 1px solid #d6d0f3; border-radius: 22px 6px 22px 6px; background: linear-gradient(145deg, #ffffff, #faf7ff); box-shadow: var(--shadow); }
.iq-hud { display: grid; grid-template-columns: auto minmax(120px,1fr) auto; align-items: center; gap: 14px; margin-bottom: 24px; }
.iq-count { color: var(--ink); font-family: "Courier New", monospace; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.iq-count b { color: var(--purple); }
.iq-progress { height: 8px; overflow: hidden; border-radius: 999px; background: #e7e0f7; }
.iq-progress span { display: block; width: 5%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--pink),var(--purple)); transition: width .3s ease; }
.iq-time { color: var(--coral); font-family: "Courier New", monospace; font-size: 10px; font-weight: 900; white-space: nowrap; }
.iq-time.is-low { animation: time-pulse .8s ease-in-out infinite alternate; }
@keyframes time-pulse { to { transform: scale(1.08); } }
.iq-tag { display: inline-block; padding: 6px 8px; color: var(--purple); border-radius: 7px; background: #f0eaff; font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.iq-question { margin: 17px 0 20px; color: var(--ink); font-size: clamp(24px,4vw,38px); font-weight: 950; letter-spacing: -.06em; line-height: 1; }
.iq-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.iq-option { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; color: var(--text); border: 1px solid var(--line); border-radius: 10px; background: var(--white); text-align: left; font-size: 12px; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.iq-option:hover, .iq-option.is-selected { transform: translateX(3px); border-color: var(--purple); background: #f8f5ff; }
.iq-option b { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; color: var(--purple); border: 1px solid #d6caf7; border-radius: 7px; font-family: "Courier New", monospace; font-size: 9px; }
.iq-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.iq-result { text-align: center; }
.iq-result-ring { display: grid; place-items: center; width: 170px; height: 170px; margin: 0 auto 20px; border-radius: 50%; background: conic-gradient(var(--purple) var(--result-angle, 0deg), #e7e0f7 0); }
.iq-result-ring > div { display: grid; place-items: center; width: 135px; height: 135px; border-radius: 50%; background: var(--white); }
.iq-result-ring strong { color: var(--ink); font-size: 37px; font-weight: 950; line-height: .9; }
.iq-result-ring span { margin-top: 5px; color: var(--soft); font-family: "Courier New", monospace; font-size: 8px; text-transform: uppercase; }
.iq-result h2 { margin: 0; color: var(--ink); font-size: 32px; font-weight: 950; letter-spacing: -.06em; }
.iq-result p { max-width: 560px; margin: 10px auto 0; color: var(--muted); font-size: 12px; }
.iq-locked { padding: 36px; text-align: center; border: 1px solid var(--line); border-radius: 20px 6px 20px 6px; background: var(--white); }
.iq-locked .lock-icon { font-size: 42px; }
.iq-locked h2 { margin: 12px 0 6px; color: var(--ink); font-size: 28px; font-weight: 950; letter-spacing: -.05em; }
.iq-locked p { max-width: 470px; margin: 0 auto; color: var(--muted); font-size: 12px; }

/* ---------- admin ---------- */
.admin-page { min-height: calc(100vh - 106px); padding: 47px 0 80px; background: var(--paper); }
.admin-topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-topbar h1 { margin: 11px 0 7px; color: var(--ink); font-size: clamp(34px,5vw,56px); font-weight: 950; letter-spacing: -.08em; line-height: .9; }
.admin-topbar h1 span { color: var(--coral); }
.admin-topbar p { margin: 0; color: var(--muted); font-size: 12px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-nav { display: flex; gap: 5px; margin-bottom: 18px; padding: 5px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.admin-nav a { padding: 9px 12px; color: var(--muted); border-radius: 8px; font-family: "Courier New", monospace; font-size: 9px; font-weight: 900; white-space: nowrap; text-transform: uppercase; }
.admin-nav a:hover, .admin-nav a.is-active { color: var(--white); background: var(--ink); }
.admin-stat-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; margin-bottom: 13px; }
.admin-stat { padding: 15px; border: 1px solid var(--line); border-radius: 14px 4px 14px 4px; background: var(--white); box-shadow: var(--shadow-sm); }
.admin-stat strong { display: block; color: var(--ink); font-size: 24px; font-weight: 950; line-height: 1; }
.admin-stat span { display: block; margin-top: 7px; color: var(--soft); font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.admin-content-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 13px; }
.admin-card { padding: 19px; border: 1px solid var(--line); border-radius: 17px 5px 17px 5px; background: var(--white); box-shadow: var(--shadow-sm); }
.admin-card + .admin-card { margin-top: 13px; }
.admin-card h2 { margin: 0 0 4px; color: var(--ink); font-size: 18px; font-weight: 950; letter-spacing: -.04em; }
.admin-card > p { margin: 0 0 15px; color: var(--muted); font-size: 10px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 10px; }
.admin-table th { padding: 10px 8px; color: var(--soft); border-bottom: 1px solid var(--line); font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.admin-table td { padding: 11px 8px; color: var(--text); border-bottom: 1px solid #edf0f6; vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td strong { color: var(--ink); font-size: 11px; }
.admin-table td small { display: block; margin-top: 3px; color: var(--soft); font-size: 9px; }
.admin-table select { max-width: 195px; min-height: 31px; padding: 0 7px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 7px; background: var(--white); font-size: 9px; }
.admin-table .button { min-height: 31px; padding-inline: 9px; font-size: 8px; }
.event-list { display: grid; gap: 9px; }
.event-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid #edf0f6; }
.event-row:last-child { padding-bottom: 0; border-bottom: 0; }
.event-row strong { display: block; color: var(--ink); font-family: "Courier New", monospace; font-size: 9px; text-transform: uppercase; }
.event-row span { display: block; margin-top: 3px; color: var(--soft); font-size: 9px; }
.event-count { color: var(--blue); font-size: 17px; font-weight: 950; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.filter-bar input, .filter-bar select { min-height: 36px; padding: 0 10px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); font-size: 10px; }
.filter-bar input { min-width: 230px; }
.empty-state { padding: 30px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 12px; background: #fbfcff; text-align: center; font-size: 12px; }
.admin-login { max-width: 510px; margin-inline: auto; }
.admin-login .auth-aside { min-height: 180px; }

/* ---------- footer and utility ---------- */
.final-cta { position: relative; overflow: hidden; color: var(--white); background: var(--coral); }
.final-cta::before { content: ""; position: absolute; top: -250px; right: 7%; width: 480px; height: 480px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; box-shadow: 0 0 0 27px rgba(255,255,255,.04), 0 0 0 54px rgba(255,255,255,.03); }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 62px 0; }
.cta-inner h2 { max-width: 590px; margin: 0; color: var(--white); font-size: clamp(38px,5vw,63px); font-weight: 950; letter-spacing: -.08em; line-height: .92; }
.cta-inner h2 span { color: var(--yellow); }
.cta-inner p { max-width: 280px; margin: 0; color: rgba(255,255,255,.82); font-size: 12px; line-height: 1.6; }
.site-footer { color: var(--muted); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr 1.15fr; gap: 42px; padding: 67px 0 49px; }
.footer-about p { max-width: 390px; margin: 18px 0 20px; font-size: 11px; line-height: 1.7; }
.footer-brand img { width: 214px; filter: brightness(0) invert(1); }
.social-row { display: flex; flex-wrap: wrap; gap: 6px; }
.social-row a { padding: 7px 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px 3px 8px 3px; font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; }
.social-row a:hover { color: var(--ink); border-color: var(--lime); background: var(--lime); }
.footer-column h2 { margin: 0 0 15px; color: var(--white); font-family: "Courier New", monospace; font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.footer-column h2::before { content: ""; display: inline-block; width: 16px; height: 2px; margin: 0 7px 3px 0; background: var(--yellow); }
.footer-column > a, .footer-column > p { display: block; margin: 0 0 10px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.footer-column > a:hover { color: var(--cyan); }
.map-card { position: relative; height: 145px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px 5px 15px 5px; background: #202e59; }
.map-card iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.9); opacity: .65; }
.map-card span { position: absolute; right: 8px; bottom: 8px; left: 8px; padding: 7px 8px; color: var(--white); background: rgba(9,13,32,.82); font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 19px 0; border-top: 1px solid var(--line); font-family: "Courier New", monospace; font-size: 8px; }
.footer-bottom b { color: var(--yellow); }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 300; max-width: 330px; padding: 13px 15px; color: var(--white); border-radius: 11px; background: var(--ink); box-shadow: var(--shadow); font-size: 11px; opacity: 0; transform: translateY(15px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.toast.is-visible { opacity: 1; transform: none; }
.loading { opacity: .65; pointer-events: none; }
.hide { display: none !important; }

/* ---------- shared status and reporting components ---------- */
.server-alert { margin-top: 16px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #f7f9fd; color: var(--muted); font-size: 11px; line-height: 1.5; }
.server-alert-error { color: var(--red); border-color: #f1c7c4; background: #fff3f2; }
.server-alert-success { color: var(--green); border-color: #bee8d4; background: #f0fcf6; }
.global-alert-wrap { padding-top: 12px; }
.pipeline-list { display: grid; gap: 11px; }
.pipeline-row { display: grid; grid-template-columns: 225px 1fr; align-items: center; gap: 14px; }
.pipeline-row strong { display: block; color: var(--ink); font-size: 10px; }
.pipeline-row span { display: block; margin-top: 3px; color: var(--soft); font-size: 9px; }
.pipeline-bar { height: 9px; overflow: hidden; border-radius: 999px; background: #edf0f7; }
.pipeline-bar span { height: 100%; margin: 0; border-radius: inherit; background: linear-gradient(90deg,var(--cyan),var(--blue)); }
.daily-chart { display: grid; gap: 9px; }
.daily-row { display: grid; grid-template-columns: 47px 1fr 28px; align-items: center; gap: 9px; color: var(--soft); font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; }
.daily-row b { color: var(--blue); text-align: right; }
.daily-bar { height: 13px; overflow: hidden; border-radius: 5px; background: #edf0f7; }
.daily-bar i { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg,var(--yellow),var(--coral)); }
.inline-status-form { display: flex; align-items: center; gap: 6px; }
.pagination { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 17px; }
.pagination a { display: grid; place-items: center; width: 30px; height: 30px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; background: var(--white); font-family: "Courier New", monospace; font-size: 9px; font-weight: 900; }
.pagination a:hover, .pagination a.is-current { color: var(--white); border-color: var(--blue); background: var(--blue); }
.toast.is-error { background: var(--red); }
.loading { opacity: .62; pointer-events: none; }

/* ---------- stage information pages ---------- */
.portal-shell-narrow { max-width: 940px; margin-inline: auto; }
.stage-detail-card { padding: clamp(25px,5vw,48px); text-align: center; border: 1px solid var(--line); border-radius: 24px 7px 24px 7px; background: var(--white); box-shadow: var(--shadow); }
.stage-detail-card--ready { border-color: #bcebd5; background: linear-gradient(145deg,#ffffff,#f0fcf6); }
.stage-detail-card--show { border-color: #f2d38a; background: linear-gradient(145deg,#ffffff,#fff9e8); }
.stage-detail-icon { display: block; margin-bottom: 13px; font-size: 46px; }
.stage-detail-card h2 { margin: 17px 0 10px; color: var(--ink); font-size: clamp(29px,5vw,50px); font-weight: 950; letter-spacing: -.07em; line-height: .95; }
.stage-detail-card p { max-width: 650px; margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.65; }
.stage-detail-card .button { margin-top: 27px; }
.detail-grid, .show-perks { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 28px; text-align: left; }
.detail-grid > div, .show-perks > div { min-height: 105px; padding: 13px; border: 1px solid var(--line); border-radius: 11px 3px 11px 3px; background: rgba(255,255,255,.68); }
.detail-grid strong, .show-perks strong { display: block; color: var(--ink); font-size: 11px; }
.detail-grid span, .show-perks span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.show-perks b { display: block; color: var(--coral); font-family: "Courier New", monospace; font-size: 10px; }
.locked-track { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 23px; }
.locked-track span { padding: 7px 9px; color: var(--soft); border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-family: "Courier New", monospace; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.locked-track span.is-done { color: var(--green); border-color: #bee8d4; background: #effcf6; }
.stage-footnote { margin: 14px 0 0; color: var(--soft); font-family: "Courier New", monospace; font-size: 8px; line-height: 1.5; text-align: center; }
.iq-feedback { min-height: 39px; margin-top: 15px; padding: 10px 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; background: #fbfcff; font-size: 11px; line-height: 1.5; }
.iq-card.is-time-low { border-color: #f2c3c0; }

/* ---------- public sample test ---------- */
.demo-shell { max-width: 850px; margin-inline: auto; }
.demo-card { padding: clamp(20px,4vw,35px); border: 1px solid #cbd8ff; border-radius: 22px 6px 22px 6px; background: linear-gradient(145deg,#ffffff,#f4f7ff); box-shadow: var(--shadow); }
.demo-hud { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; color: var(--soft); font-family: "Courier New", monospace; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.demo-hud b { color: var(--blue); }
.demo-progress { height: 7px; overflow: hidden; border-radius: 999px; background: #e3eaff; }
.demo-progress span { display: block; width: 20%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--cyan),var(--blue)); transition: width .3s ease; }
.demo-card h2 { margin: 30px 0 22px; color: var(--ink); font-size: clamp(25px,4vw,42px); font-weight: 950; letter-spacing: -.07em; line-height: 1; }
.demo-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.demo-option { display: flex; align-items: center; gap: 10px; min-height: 51px; padding: 10px 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; background: var(--white); text-align: left; font-size: 12px; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.demo-option:hover:not(:disabled) { transform: translateX(3px); border-color: var(--blue); background: #f1f5ff; }
.demo-option:disabled { cursor: default; }
.demo-option b { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; color: var(--blue); border: 1px solid #cbd8ff; border-radius: 7px; font-family: "Courier New", monospace; font-size: 9px; }
.demo-option.is-correct { color: var(--ink); border-color: var(--green); background: #eafaf3; }
.demo-option.is-correct b { color: var(--white); border-color: var(--green); background: var(--green); }
.demo-option.is-wrong { color: var(--red); border-color: var(--coral); background: #fff1f0; }
.demo-option.is-wrong b { color: var(--white); border-color: var(--coral); background: var(--coral); }
.demo-feedback { min-height: 43px; margin-top: 15px; padding: 10px 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.74); font-size: 11px; line-height: 1.5; }
.demo-feedback strong { color: var(--blue); }
.demo-actions { display: flex; justify-content: flex-end; margin-top: 15px; }
.demo-result { padding: 38px 14px; text-align: center; }
.demo-result-icon { display: block; margin-bottom: 13px; font-size: 50px; }
.demo-result h2 { margin: 0; }
.demo-result p { max-width: 480px; margin: 10px auto 22px; color: var(--muted); font-size: 13px; }
.demo-result p strong { color: var(--blue); }
.demo-back { margin: 18px 0 0; color: var(--muted); font-family: "Courier New", monospace; font-size: 9px; text-align: center; }
.demo-back a { color: var(--blue); font-weight: 900; }

@media (max-width: 1060px) {
    .nav-links { gap: 14px; }
    .hero-grid { grid-template-columns: minmax(0,1fr) minmax(325px,.8fr); gap: 35px; }
    .feature-grid, .reward-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .journey-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .journey-card::after { display: none; }
    .journey-card { min-height: 170px; }
    .portal-layout { grid-template-columns: 205px minmax(0,1fr); }
    .admin-stat-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .footer-grid { grid-template-columns: 1.2fr .8fr 1fr; }
    .footer-location { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    :root { --container: min(100% - 28px, 620px); }
    .notice-inner { min-height: 31px; font-size: 8px; letter-spacing: .04em; }
    .notice-right { display: none; }
    .nav-wrap { min-height: 64px; }
    .brand { min-width: 0; }
    .brand img { width: 187px; height: 48px; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .mobile-nav.is-open { display: grid; gap: 0; }
    .mobile-nav a { padding: 10px 0; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; font-weight: 900; }
    .mobile-nav a:last-child { color: var(--blue); }
    .hero-shell { padding: 58px 0 44px; }
    .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 39px; }
    .hero-title { font-size: clamp(62px,17vw,107px); }
    .hero-subtitle { font-size: 15px; }
    .hero-actions .button { flex: 1 1 180px; }
    .hero-metrics { grid-template-columns: repeat(2,1fr); margin-top: 37px; }
    .hero-metric { padding: 13px 7px 13px 0; }
    .hero-metric:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
    .hero-metric:nth-child(4) { border-top: 1px solid var(--line); }
    .hero-stage-wrap { min-height: 416px; }
    .hero-stage { min-height: 398px; border-radius: 24px 7px 24px 7px; }
    .stage-main { min-height: 300px; }
    .stage-badge { width: 111px; height: 111px; border-width: 8px; font-size: 36px; }
    .stage-main p { font-size: 11px; }
    .sticker { font-size: 7px; }
    .sticker-top { right: -4px; }
    .sticker-bottom { left: -5px; bottom: 26px; }
    .hero-trust { grid-template-columns: 1fr; gap: 18px; margin-top: 45px; }
    .sponsor-scroll { overflow: auto; scrollbar-width: none; padding-bottom: 2px; }
    .sponsor-scroll::-webkit-scrollbar { display: none; }
    .section { padding: 76px 0; }
    .section-top, .feature-top, .game-header, .route-top, .rewards-top, .portal-head, .exam-header, .iq-heading, .admin-topbar { display: block; margin-bottom: 32px; }
    .section-top > p, .portal-head p, .exam-header p, .iq-heading p, .admin-topbar p { max-width: 560px; margin-top: 16px; }
    .section-heading h2 { font-size: clamp(41px,12vw,59px); }
    .feature-grid, .reward-grid, .journey-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: 185px; }
    .journey-card { min-height: 158px; }
    .fee-banner { display: block; }
    .fee-amount { margin-top: 15px; }
    .faq-grid { grid-template-columns: 1fr; gap: 32px; }
    .faq-intro { position: static; }
    .auth-page { padding: 42px 0 70px; }
    .auth-shell { grid-template-columns: 1fr; gap: 14px; }
    .auth-aside { padding: 27px; }
    .auth-form-card { padding: 24px 18px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group--full { grid-column: auto; }
    .form-actions { display: block; }
    .form-actions .button { width: 100%; }
    .progress-steps { gap: 4px; }
    .progress-step { display: block; text-align: center; font-size: 7px; }
    .progress-step b { margin: 0 auto 5px; }
    .payment-box { display: block; }
    .fee-token { display: inline-block; margin-top: 12px; }
    .portal-page, .exam-page, .iq-page, .admin-page { padding: 42px 0 75px; }
    .portal-layout { grid-template-columns: 1fr; }
    .portal-sidebar { position: static; }
    .side-player { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .player-xp { margin-top: 0; }
    .player-xp, .xp-rail { width: 115px; }
    .portal-menu, .portal-side-note { display: none; }
    .portal-alert { display: block; }
    .portal-alert .button { margin-top: 13px; }
    .portal-metrics { grid-template-columns: repeat(2,1fr); }
    .stage-track { overflow-x: auto; grid-template-columns: repeat(7,98px); padding-bottom: 8px; }
    .stage-item::before { left: -49px; }
    .action-grid { grid-template-columns: 1fr; }
    .instruction-grid { grid-template-columns: 1fr; }
    .exam-actions { margin-top: 15px; }
    .detail-grid, .show-perks { grid-template-columns: 1fr; text-align: center; }
    .pipeline-row { grid-template-columns: 1fr; gap: 6px; }
    .demo-hud { grid-template-columns: 1fr 1fr; }
    .demo-hud > div { grid-column: 1 / -1; grid-row: 2; }
    .demo-hud > span:last-child { text-align: right; }
    .demo-options { grid-template-columns: 1fr; }
    .paper-heading { display: block; }
    .paper-code { display: block; margin-top: 9px; }
    .paper-options { grid-template-columns: 1fr; }
    .scan-banner { display: block; }
    .scan-banner .button { margin-top: 15px; }
    .paper-footer { display: block; line-height: 1.7; }
    .iq-hud { grid-template-columns: auto 1fr; }
    .iq-time { grid-column: 1 / -1; text-align: right; }
    .iq-options { grid-template-columns: 1fr; }
    .iq-actions .button { width: 100%; }
    .iq-actions { display: block; }
    .admin-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .admin-content-grid { grid-template-columns: 1fr; }
    .filter-bar input { min-width: 0; width: 100%; }
    .filter-bar .button { width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 19px; padding: 53px 0 39px; }
    .footer-about, .footer-location { grid-column: 1 / -1; }
    .footer-bottom { display: block; padding-bottom: 28px; line-height: 1.7; }
    .footer-bottom span + span { display: block; margin-top: 4px; }
    .cta-inner { display: block; padding: 51px 0; }
    .cta-inner p { margin: 18px 0 23px; }
    .cta-inner .button { width: 100%; }
    .toast { right: 12px; bottom: 12px; left: 12px; max-width: none; }
}
.legal-page { padding-bottom: 92px; }
.legal-card { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 22px 60px rgba(25,32,68,.08); padding: clamp(24px,4vw,54px); }
.legal-card h2 { font-family: 'Barlow Condensed', Arial, sans-serif; font-size: clamp(23px,3vw,34px); color: var(--ink); margin: 26px 0 8px; letter-spacing: -.01em; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { color: var(--muted); font-size: 16px; line-height: 1.75; margin: 0 0 18px; }
.legal-card .legal-note { margin-top: 32px; padding: 16px 18px; border-radius: 16px; color: #76540c; background: #fff5cf; border: 1px solid #f5d573; font-size: 14px; }
.legal-link { color: var(--blue); font-weight: 800; }
@media print {
    .site-notice, .site-header, .no-print, .site-footer, .final-cta { display: none !important; }
    body, .exam-page { color: #000; background: #fff; }
    .container { width: 100%; }
    .paper { border: 0; box-shadow: none; }
    .paper-question { break-inside: avoid; }
    .scan-banner { color: #000; border: 1px solid #aaa; background: #fff; }
    .scan-banner h2, .scan-banner b { color: #000; }
    .scan-banner p { color: #333; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
