@font-face {
    font-family: "XingYuan";
    src: url("../fonts/xingyuan.ttf") format("truetype");
    font-display: swap;
}

:root {
    --bg: #070812;
    --bg-deep: #05060d;
    --surface: rgba(255, 255, 255, 0.075);
    --surface-strong: rgba(255, 255, 255, 0.13);
    --surface-soft: rgba(255, 255, 255, 0.045);
    --line: rgba(255, 255, 255, 0.14);
    --line-strong: rgba(255, 255, 255, 0.25);
    --text: #f6f7ff;
    --text-soft: #c7c9d8;
    --muted: #8d91a8;
    --pink: #ff2d55;
    --pink-soft: #ff6b8a;
    --coral: #ff6b6b;
    --teal: #4ecdc4;
    --purple: #a855f7;
    --blue: #4aa8ff;
    --green: #4de5a5;
    --warning: #ffc857;
    --danger: #ff6178;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 9px;
    --blur: blur(40px) saturate(1.8);
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    --container: min(1240px, calc(100vw - 64px));
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 15% 0%, rgba(168, 85, 247, 0.11), transparent 31rem),
        radial-gradient(circle at 90% 18%, rgba(78, 205, 196, 0.08), transparent 28rem),
        linear-gradient(180deg, var(--bg) 0%, #0b0c18 44%, var(--bg-deep) 100%);
    color: var(--text);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
body.custom-cursor-enabled,
body.custom-cursor-enabled a,
body.custom-cursor-enabled button,
body.custom-cursor-enabled input,
body.custom-cursor-enabled textarea,
body.custom-cursor-enabled select,
body.custom-cursor-enabled summary,
body.custom-cursor-enabled label { cursor: none !important; }
::selection { background: rgba(255, 45, 85, 0.45); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; }
button:disabled, input:disabled, textarea:disabled, select:disabled { cursor: not-allowed; opacity: 0.58; }
h1, h2, h3, h4, p { margin-top: 0; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }

.container { width: var(--container); margin-inline: auto; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; z-index: 10000; left: 18px; top: -80px; padding: 10px 18px;
    border-radius: 8px; background: var(--text); color: var(--bg); transition: top .3s var(--ease);
}
.skip-link:focus { top: 18px; }
.gradient-text {
    color: transparent;
    background: linear-gradient(100deg, #fff 2%, #ffd5dd 18%, var(--pink) 36%, var(--purple) 57%, var(--teal) 78%, #fff 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: text-gradient-flow 9s linear infinite;
}
@keyframes text-gradient-flow { to { background-position: 250% center; } }

.ambient {
    position: fixed; z-index: -2; width: 48vw; height: 48vw; min-width: 420px; min-height: 420px;
    border-radius: 50%; filter: blur(100px); opacity: .13; pointer-events: none;
}
.ambient-one { left: -20vw; top: 18vh; background: var(--purple); animation: ambient-drift 18s ease-in-out infinite alternate; }
.ambient-two { right: -22vw; top: 50vh; background: var(--teal); animation: ambient-drift 22s ease-in-out -8s infinite alternate-reverse; }
.noise {
    position: fixed; z-index: -1; inset: 0; pointer-events: none; opacity: .045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}
@keyframes ambient-drift { to { transform: translate3d(12vw, -6vh, 0) scale(1.15); } }

.cursor-dot, .cursor-ring {
    position: fixed; z-index: 9999; left: 0; top: 0; pointer-events: none;
    border-radius: 50%; opacity: 0; transform: translate(-50%, -50%);
}
.cursor-dot {
    width: 5px; height: 5px; background: #fff;
    box-shadow: 0 0 12px #fff, 0 0 28px var(--pink);
}
.cursor-ring {
    width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.65);
    background: rgba(255,255,255,.025); backdrop-filter: blur(2px);
    transition: width .45s var(--ease-spring), height .45s var(--ease-spring), border-color .45s, background .45s, opacity .2s;
}
body.cursor-hover .cursor-ring { width: 52px; height: 52px; border-color: rgba(78,205,196,.85); background: rgba(78,205,196,.08); }
body.cursor-down .cursor-ring { width: 24px; height: 24px; }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

.glass-panel {
    position: relative;
    background: linear-gradient(140deg, rgba(255,255,255,.12), rgba(255,255,255,.045) 52%, rgba(255,255,255,.075));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.glass-panel::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(110deg, rgba(255,255,255,.12), transparent 22%, transparent 72%, rgba(255,255,255,.045));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 1px;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    color: var(--teal); font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 11px; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.section { position: relative; padding: 124px 0; }
.section-heading { max-width: 760px; }
.section-heading h2 {
    margin: 15px 0 0; max-width: 850px; font-family: "XingYuan", "PingFang SC", sans-serif;
    font-size: clamp(42px, 5.4vw, 76px); line-height: 1.08; letter-spacing: -.04em; font-weight: 400;
    text-shadow: 0 10px 46px rgba(0,0,0,.38);
}
.section-heading p { color: var(--text-soft); max-width: 620px; margin: 18px 0 0; font-size: 16px; line-height: 1.9; }
.section-heading.split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 54px; align-items: end; }
.section-heading.split p { margin: 0 0 8px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--teal); font-weight: 600; margin-top: 20px; transition: gap .35s var(--ease), color .35s; }
.text-link:hover { gap: 13px; color: #8ff5ed; }
.empty-note, .empty-state { color: var(--muted); }
.empty-state { padding: 36px; text-align: center; }
.empty-compact { min-height: 105px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; color: var(--muted); }

.button {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 11px;
    min-height: 52px; padding: 0 24px; border-radius: 11px; border: 1px solid transparent;
    font-weight: 700; font-size: 14px; letter-spacing: .015em; overflow: hidden;
    transition: transform .5s var(--ease-spring), box-shadow .5s var(--ease), background .35s, border-color .35s;
}
.button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button:hover { transform: translateY(-3px); }
.button:active { transform: translateY(0) scale(.98); }
.button-primary {
    color: #fff; background: linear-gradient(135deg, var(--pink) 0%, #c82dfa 54%, #6d5cff 100%);
    box-shadow: 0 12px 38px rgba(255,45,85,.32), inset 0 1px 0 rgba(255,255,255,.42);
}
.button-primary::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.44), transparent);
    animation: shimmer 5.5s ease-in-out infinite;
}
@keyframes shimmer { 0%, 58% { transform: translateX(-120%) skewX(-20deg); } 80%, 100% { transform: translateX(130%) skewX(-20deg); } }
.button-glow { box-shadow: 0 12px 38px rgba(255,45,85,.32), 0 0 0 1px rgba(255,255,255,.14), inset 0 1px 0 rgba(255,255,255,.42); }
.button-glow:hover { box-shadow: 0 18px 56px rgba(255,45,85,.5), 0 0 32px rgba(168,85,247,.24), inset 0 1px 0 rgba(255,255,255,.5); }
.button-glass { background: rgba(255,255,255,.065); border-color: var(--line); backdrop-filter: blur(24px); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.button-glass:hover { background: rgba(255,255,255,.12); border-color: var(--line-strong); }
.button-danger { color: #fff; background: rgba(255,45,85,.18); border-color: rgba(255,97,120,.45); }
.button-danger:hover { background: rgba(255,45,85,.28); }
.button-small { min-height: 40px; padding: 0 16px; border-radius: 9px; font-size: 12px; }
.button-full { width: 100%; }
.button[disabled] { transform: none; }

.site-header {
    position: fixed; z-index: 100; top: 18px; left: 50%; transform: translateX(-50%);
    width: min(1380px, calc(100vw - 36px)); min-height: 70px; padding: 7px 12px 7px 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 22px;
    border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
    background: rgba(9,10,20,.45); backdrop-filter: blur(30px) saturate(1.6);
    box-shadow: 0 12px 50px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.1);
    transition: background .5s var(--ease), border-color .5s, top .5s var(--ease);
}
.site-header.is-scrolled { top: 10px; background: rgba(7,8,18,.78); border-color: rgba(255,255,255,.15); }
.brand img { width: 188px; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(15px, 1.55vw, 28px); margin-left: auto; }
.site-nav > a { color: var(--text-soft); font-size: 13px; white-space: nowrap; position: relative; transition: color .3s; }
.site-nav > a:not(.nav-register):not(.nav-account)::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px;
    background: linear-gradient(90deg, var(--teal), var(--pink)); transition: right .45s var(--ease);
}
.site-nav > a:hover { color: #fff; }
.site-nav > a:hover::after { right: 0; }
.site-nav .nav-register { padding: 10px 18px; border-radius: 9px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid var(--line); }
.site-nav .nav-register:hover { background: rgba(255,45,85,.16); border-color: rgba(255,45,85,.38); }
.nav-account { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.06); }
.nav-account img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.menu-toggle { display: none; width: 45px; height: 45px; border-radius: 9px; background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.menu-toggle > span:not(.sr-only) { display: block; width: 18px; height: 1px; margin: 5px auto; background: #fff; transition: transform .4s var(--ease); }

.flash-stack { position: fixed; z-index: 500; right: 24px; top: 104px; display: grid; gap: 10px; width: min(430px, calc(100vw - 32px)); }
.flash {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
    padding: 15px 16px 15px 18px; border-radius: 10px; border: 1px solid var(--line);
    background: rgba(13,15,29,.9); backdrop-filter: blur(28px); box-shadow: 0 18px 50px rgba(0,0,0,.35);
    font-size: 13px; line-height: 1.6; animation: flash-in .55s var(--ease-spring) both;
}
@keyframes flash-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
.flash-success { border-color: rgba(77,229,165,.35); }
.flash-danger { border-color: rgba(255,97,120,.4); }
.flash-warning { border-color: rgba(255,200,87,.4); }
.flash button { background: transparent; color: var(--muted); font-size: 20px; line-height: 1; padding: 0; }
.flash.is-leaving { opacity: 0; transform: translateX(20px); transition: .3s ease; }

.hero { position: relative; min-height: 100vh; padding: 166px 0 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 86px 86px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 10%, transparent 80%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr); gap: clamp(30px, 5vw, 90px); align-items: center; position: relative; z-index: 1; }
.hero-copy { padding: 38px 0 20px; }
.hero-eyebrow { margin-bottom: 24px; }
.hero-title {
    margin: 0; font-family: "XingYuan", Impact, "Arial Black", sans-serif; font-weight: 400;
    font-size: clamp(64px, 8.8vw, 132px); line-height: .86; letter-spacing: -.055em;
    text-transform: uppercase; text-shadow: 0 20px 70px rgba(0,0,0,.48);
}
.hero-title > span { display: block; }
.hero-title > span:first-child { color: #fff; }
.hero-kicker { margin: 34px 0 14px; font-size: clamp(20px, 2.2vw, 30px); font-weight: 650; letter-spacing: .02em; }
.hero-description { max-width: 600px; color: var(--text-soft); font-size: 16px; line-height: 1.9; margin-bottom: 29px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin: 19px 0 0; color: var(--muted); font-size: 12px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(77,229,165,.1), 0 0 18px rgba(77,229,165,.7); animation: dot-pulse 2s ease-in-out infinite; }
@keyframes dot-pulse { 50% { box-shadow: 0 0 0 9px rgba(77,229,165,0), 0 0 24px rgba(77,229,165,.8); } }

.hero-visual { perspective: 1200px; }
.forge-panel { min-height: 590px; padding: 16px; display: flex; flex-direction: column; transform: rotateY(-3deg) rotateX(1deg); transition: transform .8s var(--ease-spring); }
.forge-panel:hover { transform: rotateY(0) rotateX(0) translateY(-5px); }
.forge-panel::after {
    content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1; padding: 1px;
    background: conic-gradient(from var(--beam-angle, 0deg), transparent 0 68%, var(--teal), var(--pink), transparent 82% 100%);
    animation: border-beam-spin 7s linear infinite;
}
@property --beam-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes border-beam-spin { to { --beam-angle: 360deg; } }
.panel-topline { display: flex; align-items: center; justify-content: space-between; padding: 3px 6px 15px; color: var(--muted); font: 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .15em; }
.panel-lights { display: flex; gap: 5px; }
.panel-lights i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.panel-lights i:first-child { background: var(--teal); box-shadow: 0 0 9px var(--teal); }
.forge-mark-wrap { position: relative; flex: 1; min-height: 330px; display: grid; place-items: center; }
.forge-mark { position: relative; z-index: 2; width: min(86%, 370px); filter: drop-shadow(0 28px 45px rgba(0,0,0,.5)) drop-shadow(0 0 30px rgba(168,85,247,.15)); animation: mark-float 6s ease-in-out infinite; }
@keyframes mark-float { 50% { transform: translateY(-9px) rotate(-1deg); } }
.orbit { position: absolute; width: 73%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.orbit::before { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; top: 10%; left: 23%; background: var(--teal); box-shadow: 0 0 15px var(--teal); }
.orbit-a { animation: orbit-spin 18s linear infinite; }
.orbit-b { width: 88%; border-style: dashed; border-color: rgba(255,45,85,.18); animation: orbit-spin 30s linear infinite reverse; }
.orbit-b::before { background: var(--pink); box-shadow: 0 0 15px var(--pink); }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.coordinate { position: absolute; color: var(--muted); font: 9px "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; }
.coordinate.c1 { left: 2%; top: 47%; }
.coordinate.c2 { right: 0; bottom: 28%; }
.event-readout { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.event-readout > div { display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 10px 5px; border-bottom: 1px solid rgba(255,255,255,.075); }
.event-readout > div:last-child { border-bottom: 0; }
.event-readout span { color: var(--muted); font: 9px "SFMono-Regular", Consolas, monospace; letter-spacing: .13em; }
.event-readout strong { font-size: 11px; font-weight: 500; color: var(--text-soft); }
.scan-line { position: absolute; left: 5%; right: 5%; top: 20%; height: 1px; background: linear-gradient(90deg, transparent, rgba(78,205,196,.4), transparent); animation: scan 5s ease-in-out infinite; pointer-events: none; }
@keyframes scan { 0%, 100% { transform: translateY(0); opacity: .2; } 50% { transform: translateY(290px); opacity: .8; } }
.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 68px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-stat { min-height: 105px; padding: 22px 26px; display: flex; align-items: baseline; gap: 12px; border-right: 1px solid var(--line); }
.hero-stat:last-child { border-right: 0; }
.hero-stat strong { font-family: "XingYuan", Impact, sans-serif; font-size: clamp(35px, 4vw, 55px); line-height: 1; font-weight: 400; }
.hero-stat span { color: var(--muted); font: 9px/1.6 "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; max-width: 130px; }

.about-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 8vw, 120px); align-items: start; }
.about-grid .section-heading { position: sticky; top: 112px; }
.about-copy > p { margin: 0 0 36px; color: var(--text-soft); font-size: 18px; line-height: 2; }
.glass-rule { height: 1px; margin-bottom: 18px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.glass-rule span { display: block; width: 18%; height: 1px; background: var(--teal); box-shadow: 0 0 18px var(--teal); animation: rule-sweep 5s ease-in-out infinite; }
@keyframes rule-sweep { 50% { transform: translateX(440%); } }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.feature-card { position: relative; min-height: 210px; padding: 28px 25px; border-radius: var(--radius-md); border: 1px solid var(--line); background: rgba(255,255,255,.035); overflow: hidden; transition: transform .55s var(--ease), background .4s, border-color .4s; }
.feature-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -50px; bottom: -50px; border-radius: 50%; background: var(--purple); opacity: .08; filter: blur(25px); }
.feature-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.07); border-color: var(--line-strong); }
.feature-index { color: var(--muted); font: 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .15em; }
.feature-card h3 { margin: 36px 0 10px; font-size: 22px; font-weight: 650; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

.tracks-section { padding-top: 100px; }
.track-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.track-card { min-height: 445px; padding: 32px 28px 27px; display: flex; flex-direction: column; transition: transform .6s var(--ease-spring), border-color .4s, box-shadow .5s; }
.track-card:hover { transform: translateY(-10px); border-color: var(--line-strong); box-shadow: 0 34px 100px rgba(0,0,0,.45), 0 0 70px var(--accent-glow, rgba(78,205,196,.08)); }
.track-card.accent-teal { --accent: var(--teal); --accent-glow: rgba(78,205,196,.12); }
.track-card.accent-purple { --accent: var(--purple); --accent-glow: rgba(168,85,247,.14); }
.track-card.accent-pink { --accent: var(--pink); --accent-glow: rgba(255,45,85,.13); }
.track-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .65; }
.track-code { position: relative; z-index: 2; color: var(--accent); font: 12px "SFMono-Regular", Consolas, monospace; letter-spacing: .14em; }
.track-orb { position: absolute; width: 260px; height: 260px; right: -105px; top: 35px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); background: radial-gradient(circle, color-mix(in srgb, var(--accent) 12%, transparent), transparent 65%); transition: transform .7s var(--ease); }
.track-card:hover .track-orb { transform: scale(1.15); }
.track-subtitle { position: relative; z-index: 2; margin-top: 74px; color: var(--muted); font: 9px "SFMono-Regular", Consolas, monospace; letter-spacing: .17em; }
.track-card h3 { position: relative; z-index: 2; margin: 12px 0 15px; font-size: clamp(25px, 2.2vw, 32px); line-height: 1.25; font-weight: 650; letter-spacing: -.025em; }
.track-card > p { position: relative; z-index: 2; color: var(--text-soft); font-size: 13px; line-height: 1.85; }
.tag-list { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 20px; }
.tag-list span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.03); font: 9px "SFMono-Regular", Consolas, monospace; }
.card-arrow { position: absolute; right: 25px; top: 26px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); transition: transform .5s var(--ease), color .35s, border-color .35s; }
.card-arrow svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.track-card:hover .card-arrow { transform: rotate(45deg); color: var(--accent); border-color: var(--accent); }

.timeline-section { padding-top: 140px; }
.schedule-shell { min-width: 0; margin-top: 50px; padding: 12px; overflow: hidden; }
.day-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; padding: 3px; border-bottom: 1px solid var(--line); }
.day-tab { position: relative; padding: 17px 14px; text-align: left; border-radius: 10px; color: var(--muted); background: transparent; transition: color .35s, background .35s; }
.day-tab span { display: block; font: 9px "SFMono-Regular", Consolas, monospace; letter-spacing: .13em; margin-bottom: 8px; }
.day-tab strong { display: block; font-size: 12px; font-weight: 500; line-height: 1.5; }
.day-tab.is-active { color: #fff; background: rgba(255,255,255,.09); }
.day-tab.is-active::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: -4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--pink)); box-shadow: 0 0 12px var(--pink); }
.day-panel { display: grid; grid-template-columns: 280px 1fr; gap: 0; min-height: 510px; padding: 28px; }
.day-panel[hidden] { display: none; }
.day-panel.is-active { animation: panel-in .65s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } }
.day-summary { padding: 22px 36px 30px 8px; border-right: 1px solid var(--line); }
.day-summary > span { color: var(--pink); font: 11px "SFMono-Regular", Consolas, monospace; letter-spacing: .18em; }
.day-summary h3 { margin: 24px 0 14px; font-size: 33px; line-height: 1.2; font-weight: 600; }
.day-summary p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.schedule-list { max-height: 540px; overflow-y: auto; padding: 0 6px 0 34px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.schedule-row { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 22px; min-height: 75px; padding: 16px 22px 16px 0; border-bottom: 1px solid rgba(255,255,255,.075); }
.schedule-row:last-child { border-bottom: 0; }
.schedule-row time { color: var(--teal); font: 11px/1.7 "SFMono-Regular", Consolas, monospace; letter-spacing: .03em; }
.schedule-row h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.schedule-row p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.row-node { position: absolute; right: -3px; top: 24px; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); box-shadow: 0 0 0 4px var(--bg); }
.schedule-row:hover .row-node { background: var(--pink); box-shadow: 0 0 0 4px var(--bg), 0 0 15px var(--pink); }

.partners-section { overflow: hidden; padding-bottom: 138px; }
.partners-section > .section-heading { margin-bottom: 52px; }
.marquee-stack { display: grid; gap: 13px; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { min-width: 0; overflow: hidden; padding: 8px 0; }
.marquee-track { width: max-content; display: flex; animation: marquee-scroll 44s linear infinite; }
.marquee-track.is-reverse { animation-direction: reverse; animation-duration: 52s; }
.marquee-row:hover .marquee-track, .marquee-row:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
.marquee-group { display: flex; gap: 13px; padding-right: 13px; }
.partner-card {
    width: 280px; min-height: 96px; display: flex; align-items: center; gap: 17px;
    padding: 17px 19px; border: 1px solid var(--line); border-radius: 11px;
    background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.028));
    backdrop-filter: blur(24px); transition: background .35s, border-color .35s, transform .45s var(--ease), box-shadow .45s;
}
.partner-card:hover { background: rgba(255,255,255,.11); border-color: rgba(78,205,196,.34); transform: translateY(-3px); box-shadow: 0 18px 45px rgba(0,0,0,.24), 0 0 30px rgba(78,205,196,.07); }
.partner-logo { flex: 0 0 62px; width: 62px; height: 58px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.92); overflow: hidden; }
.partner-logo img { max-width: 52px; max-height: 43px; object-fit: contain; }
.partner-logo span { color: #151724; font: 700 23px "XingYuan", sans-serif; }
.partner-card strong { display: block; font-size: 14px; }
.partner-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: .03em; }

.faq-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: clamp(50px, 9vw, 140px); align-items: start; }
.faq-grid .section-heading { position: sticky; top: 120px; }
.faq-grid .section-heading p { margin-top: 22px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border-radius: 12px; transition: background .35s, border-color .35s; }
.faq-item[open] { background: rgba(255,255,255,.105); border-color: rgba(78,205,196,.26); }
.faq-item summary { list-style: none; display: grid; grid-template-columns: 48px 1fr 24px; gap: 14px; align-items: center; padding: 20px 22px; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-number { color: var(--muted); font: 10px "SFMono-Regular", Consolas, monospace; }
.faq-item summary > span:nth-child(2) { font-size: 15px; font-weight: 600; }
.faq-item summary i { position: relative; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; transition: transform .45s var(--ease), background .35s; }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 1px; background: var(--text-soft); }
.faq-item summary i::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.faq-item[open] summary i { transform: rotate(180deg); background: var(--teal); border-color: var(--teal); }
.faq-item[open] summary i::before, .faq-item[open] summary i::after { background: #07100f; }
.faq-item[open] summary i::after { transform: rotate(0); }
.faq-answer { padding: 0 58px 23px 84px; animation: faq-open .45s var(--ease) both; }
.faq-answer p { margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.9; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-8px); } }

.final-cta { position: relative; min-width: 0; padding: 128px 0 145px; overflow: hidden; }
.final-cta::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: 740px; height: 480px; transform: translate(-50%,-50%);
    background: radial-gradient(ellipse, rgba(255,45,85,.18), transparent 68%); filter: blur(30px); pointer-events: none;
}
.cta-grid { position: relative; text-align: center; max-width: 920px; }
.cta-grid .eyebrow { justify-content: center; }
.cta-grid h2 { margin: 22px auto 20px; font-family: "XingYuan", "PingFang SC", sans-serif; font-size: clamp(48px, 7vw, 96px); line-height: 1.05; letter-spacing: -.045em; font-weight: 400; }
.cta-grid p { max-width: 640px; margin: 0 auto 30px; color: var(--text-soft); line-height: 1.9; }
.cta-grid .button { min-width: 260px; }
.cta-grid small { display: block; margin-top: 17px; color: var(--muted); font-size: 11px; }

.site-footer { position: relative; min-width: 0; padding: 75px 0 34px; border-top: 1px solid var(--line); background: rgba(2,3,9,.36); overflow: hidden; }
.footer-orbit { position: absolute; right: -180px; bottom: -270px; width: 530px; height: 530px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.footer-orbit::before { content: ""; position: absolute; inset: 65px; border: 1px dashed rgba(255,255,255,.07); border-radius: 50%; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1fr 1.25fr .75fr; gap: 58px; }
.footer-brand img { width: 235px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-soft); font-size: 14px; }
.footer-season { color: var(--muted); font: 9px "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; }
.footer-organizers { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.organizer-item { border-left: 1px solid var(--line); padding-left: 20px; }
.organizer-item > span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.organizer-item img { height: 42px; width: auto; max-width: 160px; object-fit: contain; margin: 12px 0 10px; }
.organizer-item strong { display: block; font-size: 11px; font-weight: 500; line-height: 1.6; }
.organizer-logo-link {
    display: inline-flex;
    width: max-content;
    line-height: 0;
}
.organizer-item img.organizer-logo-yeschoy,
.auth-organizers img.organizer-logo-yeschoy {
    width: 150px;
    height: auto;
    max-width: 100%;
    margin: 10px 0 8px;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 7px;
    background: #f6f7f2;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
    object-fit: contain;
}
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; font-size: 11px; color: var(--muted); }
.footer-links a:hover { color: var(--teal); }
.footer-links span { margin-top: auto; line-height: 1.7; }

.service-fab {
    position: fixed; z-index: 90; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px;
    min-height: 52px; padding: 0 19px 0 15px; border: 1px solid rgba(255,255,255,.2); border-radius: 16px;
    background: rgba(10,12,25,.78); backdrop-filter: blur(28px) saturate(1.6);
    box-shadow: 0 18px 55px rgba(0,0,0,.35), 0 0 30px rgba(78,205,196,.08);
    font-size: 12px; font-weight: 600; transition: transform .45s var(--ease), background .35s, border-color .35s;
}
.service-fab:hover { transform: translateY(-4px); background: rgba(16,19,37,.92); border-color: rgba(78,205,196,.45); }
.service-fab svg { width: 21px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linejoin: round; }
.service-pulse { position: absolute; left: 14px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(77,229,165,.5); animation: service-ping 2.4s ease-out infinite; }
@keyframes service-ping { 70% { box-shadow: 0 0 0 12px rgba(77,229,165,0); } 100% { box-shadow: 0 0 0 0 rgba(77,229,165,0); } }

.reveal-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s var(--ease), transform .85s var(--ease); transition-delay: var(--delay, 0ms); }
.reveal-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-ready .stagger > * { opacity: 0; transform: translateY(25px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal-ready .stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-ready .stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-ready .stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-ready .stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-ready .stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }


/* ==========================================================================
   Interaction states, forms and shared UI
   ========================================================================== */
body.cursor-visible .cursor-dot,
body.cursor-visible .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-dot { opacity: .45; transform-origin: center; }
body.cursor-down .cursor-ring { width: 22px; height: 22px; background: rgba(255,45,85,.28); border-color: var(--pink); }

.js-toast-stack {
    position: fixed; z-index: 12000; right: 24px; top: 94px; display: flex;
    flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 32px)); pointer-events: none;
}
.js-toast {
    padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 9px;
    background: rgba(12,15,29,.88); backdrop-filter: blur(30px) saturate(1.6);
    color: var(--text-soft); font-size: 13px; line-height: 1.55;
    box-shadow: 0 18px 52px rgba(0,0,0,.36); opacity: 0; transform: translateY(-10px) scale(.98);
    transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.js-toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.js-toast-success { border-color: rgba(77,229,165,.45); }
.js-toast-warning { border-color: rgba(255,200,87,.45); }
.js-toast-danger { border-color: rgba(255,97,120,.5); }

.form-stack { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span, .choice-group legend {
    color: var(--text-soft); font-size: 11px; font-weight: 600; letter-spacing: .06em;
}
.field input, .field textarea, .field select, .form-control {
    width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid var(--line);
    border-radius: 9px; outline: none; color: var(--text); background: rgba(4,6,15,.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 8px 28px rgba(0,0,0,.08);
    transition: border-color .3s, background .3s, box-shadow .3s, transform .3s var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; line-height: 1.75; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.field input::placeholder, .field textarea::placeholder { color: #666b81; }
.field input:focus, .field textarea:focus, .field select:focus, .form-control:focus {
    border-color: rgba(78,205,196,.65); background: rgba(8,12,24,.72);
    box-shadow: 0 0 0 3px rgba(78,205,196,.09), 0 10px 36px rgba(0,0,0,.14);
}
.field input:disabled, .field textarea:disabled, .field select:disabled { background: rgba(255,255,255,.025); }
input[type="date"], input[type="datetime-local"], input[type="time"] { color-scheme: dark; }
.input-action { display: flex; gap: 9px; }
.input-action input { flex: 1; min-width: 0; }
.code-button {
    flex: 0 0 auto; min-width: 118px; padding: 0 15px; border: 1px solid rgba(78,205,196,.32);
    border-radius: 9px; background: rgba(78,205,196,.09); color: var(--teal); font-size: 11px;
    font-weight: 650; transition: background .3s, border-color .3s, color .3s;
}
.code-button:hover:not(:disabled) { border-color: var(--teal); background: rgba(78,205,196,.16); color: #fff; }
.code-input { font-family: "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.check-field { display: flex; align-items: flex-start; gap: 11px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.check-field input { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--pink); }
.form-hint { display: block; color: var(--muted); font-size: 11px; }
.form-hint strong { color: var(--text-soft); }
.muted-copy { color: var(--muted); font-size: 12px; line-height: 1.8; }
.form-stack .button-full { margin-top: 4px; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; opacity: 0; width: 1px; height: 1px; }

.status-badge {
    display: inline-flex; align-items: center; justify-content: center; width: max-content;
    min-height: 26px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 16px;
    color: var(--muted); background: rgba(255,255,255,.035); font-size: 10px; font-weight: 650;
    line-height: 1.2; letter-spacing: .05em; white-space: nowrap;
}
.status-success { color: var(--green); background: rgba(77,229,165,.08); border-color: rgba(77,229,165,.28); }
.status-warning { color: var(--warning); background: rgba(255,200,87,.08); border-color: rgba(255,200,87,.3); }
.status-danger { color: var(--danger); background: rgba(255,97,120,.08); border-color: rgba(255,97,120,.3); }
.status-muted { color: var(--muted); }
.notice-box {
    padding: 17px 19px; border: 1px solid var(--line); border-radius: 10px;
    background: rgba(255,255,255,.045); color: var(--text-soft);
}
.notice-box.wide { margin-bottom: 28px; }
.notice-box strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 13px; }
.notice-box p { margin: 0; font-size: 12px; line-height: 1.8; }
.notice-box a { color: var(--teal); }
.notice-box.success { border-color: rgba(77,229,165,.28); background: rgba(77,229,165,.055); }
.notice-box.warning { border-color: rgba(255,200,87,.28); background: rgba(255,200,87,.055); }
.notice-box.danger { border-color: rgba(255,97,120,.28); background: rgba(255,97,120,.055); }
.empty-state {
    width: 100%; padding: 38px 22px; text-align: center; color: var(--muted); font-size: 13px;
}
.empty-note { color: var(--muted); font-size: 12px; }
.empty-compact { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--teal); font-size: 12px; font-weight: 600; }
.text-link span { transition: transform .3s var(--ease); }
.text-link:hover span { transform: translateX(4px); }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--teal); font: 10px/1.5 "SFMono-Regular", Consolas, monospace; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.card-sequence { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 24px; }
.card-sequence > span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; color: var(--teal); background: rgba(78,205,196,.07); font: 11px monospace; }
.card-sequence h3 { margin: 4px 0 0; font-size: 20px; }
.card-sequence.secondary { margin-top: 10px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.card-heading h3 { margin: 5px 0 0; font-size: 21px; line-height: 1.25; }
.card-heading > span, .card-heading > a { color: var(--muted); font: 10px "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
.card-heading > a:hover { color: var(--teal); }
.live-chip { display: inline-flex; align-items: center; gap: 7px; color: var(--green) !important; }
.live-chip i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: live-pulse 2s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: .35; } }

/* ==========================================================================
   Authentication
   ========================================================================== */
.auth-body { min-height: 100vh; overflow-x: hidden; }
.auth-shell { display: grid; grid-template-columns: minmax(420px, 1.08fr) minmax(460px, .92fr); min-height: 100vh; }
.auth-showcase {
    position: relative; display: flex; flex-direction: column; justify-content: space-between;
    min-height: 100vh; padding: clamp(34px, 5vw, 68px); overflow: hidden;
    border-right: 1px solid var(--line);
    background:
        linear-gradient(150deg, rgba(168,85,247,.13), transparent 38%),
        radial-gradient(circle at 22% 80%, rgba(78,205,196,.12), transparent 31rem),
        rgba(5,7,16,.36);
}
.auth-showcase::before {
    content: ""; position: absolute; width: 65vw; height: 65vw; max-width: 900px; max-height: 900px;
    right: -38%; bottom: -29%; border: 1px solid rgba(255,255,255,.075); border-radius: 50%;
    box-shadow: inset 0 0 0 70px rgba(255,255,255,.01), inset 0 0 0 140px rgba(255,255,255,.01);
    animation: auth-orbit 30s linear infinite;
}
.auth-showcase::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 68px 68px; mask-image: linear-gradient(to bottom, black, transparent 72%);
}
@keyframes auth-orbit { to { transform: rotate(360deg); } }
.auth-brand { position: relative; z-index: 2; width: min(315px, 55%); }
.auth-brand img { width: 100%; filter: drop-shadow(0 15px 30px rgba(0,0,0,.3)); }
.auth-showcase-copy { position: relative; z-index: 2; max-width: 690px; padding: 5vh 0; }
.auth-showcase-copy .eyebrow { margin-bottom: 26px; }
.auth-showcase-copy h1 { margin: 0 0 30px; font-family: "XingYuan", "PingFang SC", sans-serif; font-size: clamp(62px, 8vw, 116px); line-height: .98; letter-spacing: -.05em; font-weight: 400; }
.auth-showcase-copy > p { max-width: 520px; color: var(--text-soft); font-size: 15px; line-height: 2; }
.auth-metrics { display: flex; gap: clamp(22px, 4vw, 54px); margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.auth-metrics div { display: flex; flex-direction: column; gap: 4px; }
.auth-metrics strong { font: 400 34px/1 "XingYuan", Impact, sans-serif; }
.auth-metrics span { color: var(--muted); font: 8px "SFMono-Regular", Consolas, monospace; letter-spacing: .14em; }
.auth-organizers { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; max-width: 540px; padding-top: 22px; border-top: 1px solid var(--line); }
.auth-organizers span { color: var(--muted); font-size: 9px; }
.auth-organizers img { width: auto; max-width: 145px; height: 30px; object-fit: contain; object-position: left center; }
.auth-showcase-mark { position: absolute; right: 4%; bottom: 3%; z-index: 1; color: rgba(255,255,255,.025); font: 400 clamp(170px, 24vw, 390px)/1 "XingYuan", Impact, sans-serif; letter-spacing: -.1em; }
.auth-main {
    position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center;
    min-height: 100vh; padding: 82px clamp(28px, 5vw, 78px) 42px;
    background: rgba(5,7,16,.25);
}
.auth-main-top { position: absolute; left: clamp(28px, 5vw, 78px); right: clamp(28px, 5vw, 78px); top: 30px; display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 11px; }
.auth-main-top a { transition: color .3s; }
.auth-main-top a:hover { color: var(--teal); }
.back-link { display: inline-flex; align-items: center; }
.auth-card { width: min(100%, 520px); padding: clamp(28px, 4vw, 44px); border-radius: 16px; animation: auth-card-in .9s var(--ease) both; }
@keyframes auth-card-in { from { opacity: 0; transform: translateY(25px) scale(.985); } }
.auth-heading { margin-bottom: 30px; }
.auth-heading .eyebrow { margin-bottom: 15px; }
.auth-heading h2 { margin: 0 0 10px; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.035em; }
.auth-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.auth-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.auth-switch a { color: var(--teal); font-weight: 600; }
.auth-flashes { position: static; width: 100%; max-width: 520px; margin-bottom: 16px; }
.auth-legal { max-width: 440px; margin: 18px auto 0; text-align: center; color: #666b81; font-size: 9px; line-height: 1.7; }


/* ==========================================================================
   Builder console
   ========================================================================== */
.portal-hero { position: relative; padding: 132px 0 0; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.018), transparent); }
.portal-hero::before {
    content: ""; position: absolute; inset: 100px 8% auto; height: 220px; pointer-events: none;
    background: radial-gradient(ellipse, rgba(168,85,247,.12), transparent 70%); filter: blur(20px);
}
.portal-hero-grid { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 31px; }
.portal-identity { display: flex; align-items: center; gap: 19px; min-width: 0; }
.avatar-shell { position: relative; flex: 0 0 auto; width: 76px; height: 76px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(255,255,255,.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 16px 45px rgba(0,0,0,.28); }
.avatar-shell img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.avatar-shell .status-dot { position: absolute; right: -2px; bottom: -2px; border: 3px solid var(--bg); }
.portal-identity h1 { margin: 5px 0 1px; font-size: clamp(26px, 4vw, 42px); line-height: 1.2; letter-spacing: -.035em; }
.portal-identity p { margin: 0; color: var(--muted); font-size: 11px; }
.portal-status { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.035); }
.portal-status > span { color: var(--muted); font-size: 10px; }
.portal-tabs { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.portal-tabs::-webkit-scrollbar { display: none; }
.portal-tabs a {
    position: relative; display: flex; align-items: center; gap: 9px; min-width: max-content;
    padding: 17px 19px 18px; color: var(--muted); font-size: 11px; transition: color .3s, background .3s;
}
.portal-tabs a svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.portal-tabs a:hover { color: var(--text-soft); }
.portal-tabs a.is-active { color: var(--text); background: rgba(255,255,255,.045); }
.portal-tabs a.is-active::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--teal), var(--pink)); box-shadow: 0 0 16px rgba(255,45,85,.6); }
.portal-section { padding: 58px 0 105px; }
.portal-narrow { width: min(1160px, calc(100vw - 48px)); margin-inline: auto; }
.portal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; align-items: start; }
.portal-main { display: grid; gap: 22px; min-width: 0; }
.portal-aside { display: grid; gap: 18px; position: sticky; top: 105px; }
.dashboard-welcome {
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    min-height: 210px; padding: 32px 35px; overflow: hidden;
    background: linear-gradient(120deg, rgba(168,85,247,.11), rgba(255,255,255,.055) 42%, rgba(78,205,196,.07));
}
.dashboard-welcome::after { content: ""; position: absolute; width: 330px; height: 330px; right: -120px; top: -150px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: inset 0 0 0 65px rgba(255,255,255,.015); }
.dashboard-welcome > div:first-child { position: relative; z-index: 2; max-width: 650px; }
.dashboard-welcome h2 { margin: 12px 0 12px; font-size: clamp(28px, 3.4vw, 41px); line-height: 1.18; letter-spacing: -.035em; }
.dashboard-welcome p { margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.85; }
.progress-orbit {
    --progress: 0%; position: relative; z-index: 2; flex: 0 0 auto; display: flex; flex-direction: column;
    align-items: center; justify-content: center; width: 136px; height: 136px; border-radius: 50%;
    background: radial-gradient(circle at center, #0b0e1c 54%, transparent 55%), conic-gradient(var(--teal) var(--progress), rgba(255,255,255,.09) 0);
    box-shadow: 0 0 55px rgba(78,205,196,.08), inset 0 0 0 1px rgba(255,255,255,.06);
}
.progress-orbit::before { content: ""; position: absolute; inset: 12px; border: 1px dashed rgba(255,255,255,.09); border-radius: 50%; animation: orbit-spin 28s linear infinite; }
.progress-orbit strong { font: 400 33px/1 "XingYuan", Impact, sans-serif; }
.progress-orbit span { margin-top: 5px; color: var(--muted); font-size: 8px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dashboard-card { padding: 25px 25px 23px; min-height: 265px; }
.checklist { display: grid; gap: 3px; }
.check-item { display: grid; grid-template-columns: 24px 1fr auto; gap: 11px; align-items: center; min-height: 36px; padding: 5px 6px; border-radius: 7px; color: var(--muted); font-size: 11px; transition: color .3s, background .3s; }
.check-item:hover { color: var(--text-soft); background: rgba(255,255,255,.035); }
.check-item i { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid var(--line); border-radius: 50%; font-size: 9px; font-style: normal; }
.check-item b { padding-right: 4px; font-weight: 400; opacity: .5; }
.check-item.is-done { color: var(--text-soft); }
.check-item.is-done i { color: #07100f; border-color: var(--teal); background: var(--teal); box-shadow: 0 0 12px rgba(78,205,196,.25); }
.detail-list { display: grid; gap: 0; margin: 0; }
.detail-list div { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.detail-list div:first-child { padding-top: 0; }
.detail-list dt { color: var(--muted); font-size: 10px; }
.detail-list dd { margin: 0; max-width: 65%; text-align: right; color: var(--text-soft); font-size: 11px; }
.dashboard-card .notice-box { margin: 14px 0; }
.team-mini, .submission-mini { display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); }
.team-symbol { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(168,85,247,.32); border-radius: 9px; color: #dac7ff; background: rgba(168,85,247,.1); font: 15px "XingYuan", sans-serif; }
.team-mini > div:last-child, .submission-mini { min-width: 0; }
.team-mini strong, .submission-mini strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.team-mini span, .submission-mini span { display: block; color: var(--muted); font-size: 9px; }
.team-mini .avatar-stack { display: flex; margin-left: auto; }
.team-mini .avatar-stack img { width: 26px; height: 26px; border: 2px solid var(--bg); border-radius: 50%; object-fit: cover; margin-left: -7px; }
.submission-mini { flex-wrap: wrap; }
.submission-mini strong { width: 100%; }
.submission-mini .status-badge { margin-left: auto; }
.announcements-panel { padding: 27px 28px; }
.announcement-list { display: grid; }
.announcement-list article { display: grid; grid-template-columns: 66px 1fr; gap: 20px; padding: 19px 0; border-top: 1px solid var(--line); }
.announcement-list article:first-child { border-top: 0; padding-top: 0; }
.announcement-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.announcement-meta time { color: var(--teal); font: 13px "SFMono-Regular", Consolas, monospace; }
.announcement-meta span { padding: 2px 6px; border-radius: 5px; color: var(--pink-soft); background: rgba(255,45,85,.08); font-size: 8px; }
.announcement-list h4 { margin: 0 0 5px; font-size: 13px; }
.announcement-list p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.qr-card, .support-card { padding: 25px; }
.qr-card h3, .support-card h3 { margin: 9px 0 12px; font-size: 20px; }
.qr-card p, .support-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.qr-frame { position: relative; margin: 18px 0 17px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 15px 35px rgba(0,0,0,.28); }
.qr-frame::before, .qr-frame::after { content: ""; position: absolute; width: 22px; height: 22px; border-color: var(--teal); border-style: solid; }
.qr-frame::before { left: -4px; top: -4px; border-width: 2px 0 0 2px; border-radius: 8px 0 0; }
.qr-frame::after { right: -4px; bottom: -4px; border-width: 0 2px 2px 0; border-radius: 0 0 8px; }
.qr-frame img { width: 100%; border-radius: 7px; }
.support-icon { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid rgba(78,205,196,.35); border-radius: 8px; color: var(--teal); background: rgba(78,205,196,.08); font: 17px "XingYuan", sans-serif; }
.support-card .button { margin-top: 18px; width: 100%; }

/* ==========================================================================
   Application flow
   ========================================================================== */
.apply-grid { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); gap: 20px; align-items: start; margin-bottom: 22px; }
.form-card { padding: 29px; min-width: 0; }
.avatar-upload { display: flex; align-items: center; gap: 17px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.avatar-upload img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line-strong); }
.avatar-upload small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; }
.choice-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 0; border: 0; }
.choice-group legend { grid-column: 1 / -1; margin-bottom: 8px; }
.choice-card { position: relative; display: flex; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); cursor: pointer; transition: border-color .3s, background .3s, transform .4s var(--ease); }
.choice-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.choice-card input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.choice-card:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 3px; }
.choice-card > span { display: flex; flex-direction: column; gap: 6px; padding-left: 29px; }
.choice-card > span::before { content: ""; position: absolute; left: 16px; top: 17px; width: 16px; height: 16px; border: 1px solid var(--line-strong); border-radius: 50%; box-shadow: inset 0 0 0 4px transparent; transition: border-color .3s, box-shadow .3s; }
.choice-card:has(input:checked) { border-color: rgba(78,205,196,.45); background: rgba(78,205,196,.055); }
.choice-card:has(input:checked) > span::before { border-color: var(--teal); box-shadow: inset 0 0 0 4px var(--teal); }
.choice-card strong { font-size: 12px; }
.choice-card small { color: var(--muted); font-size: 9px; line-height: 1.7; }
.team-context { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 11px 13px; border-radius: 7px; background: rgba(255,255,255,.025); color: var(--muted); font-size: 10px; }
.team-context .status-dot { width: 5px; height: 5px; }
.team-context strong { color: var(--text-soft); }
.team-context a { margin-left: auto; color: var(--teal); }
.application-status-panel { display: grid; gap: 16px; padding: 29px; }
.application-status-panel > .status-badge { position: absolute; right: 30px; top: 30px; }
.application-status-panel h3 { margin: 7px 0 0; font-size: 23px; }
.status-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-top: 8px; }
.status-timeline > div { position: relative; display: flex; flex-direction: column; gap: 5px; padding-right: 20px; color: var(--muted); }
.status-timeline > div::before { content: ""; position: absolute; left: 27px; right: 0; top: 12px; height: 1px; background: var(--line); }
.status-timeline > div:last-child::before { display: none; }
.status-timeline i { position: relative; z-index: 1; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--muted); font-style: normal; font-size: 9px; }
.status-timeline span { margin-top: 5px; color: var(--text-soft); font-size: 11px; }
.status-timeline small { font-size: 9px; line-height: 1.6; }
.status-timeline .is-done i { color: #07100f; border-color: var(--teal); background: var(--teal); box-shadow: 0 0 15px rgba(78,205,196,.25); }
.status-timeline .is-done::before { background: rgba(78,205,196,.35); }
.status-timeline .is-rejected i { color: #fff; border-color: var(--danger); background: var(--danger); }

/* ==========================================================================
   Forge surface completion: team, submission, schedule, error and motion
   ========================================================================== */
.about-section,
.faq-section {
    position: relative;
}
.about-section::before,
.faq-section::before {
    content: "";
    position: absolute;
    inset: 12% auto auto -18%;
    width: 44vw;
    height: 44vw;
    max-width: 720px;
    max-height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78,205,196,.07), transparent 66%);
    filter: blur(30px);
    pointer-events: none;
}
.faq-section::before {
    inset: 22% -20% auto auto;
    background: radial-gradient(circle, rgba(168,85,247,.08), transparent 66%);
}

.hover-lift {
    will-change: transform;
}
.hover-lift:hover {
    transform: translateY(-6px);
}
.hover-glow {
    position: relative;
    isolation: isolate;
}
.hover-glow::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -1px;
    border-radius: inherit;
    opacity: 0;
    background: radial-gradient(circle at 50% 15%, rgba(78,205,196,.2), transparent 68%);
    filter: blur(15px);
    transition: opacity .45s var(--ease);
}
.hover-glow:hover::after,
.hover-glow:focus-visible::after {
    opacity: 1;
}

.day-panels {
    position: relative;
    min-width: 0;
}
.day-panels::before {
    content: "LIVE SCHEDULE";
    position: absolute;
    z-index: 2;
    right: 24px;
    top: 22px;
    color: rgba(255,255,255,.22);
    font: 8px "SFMono-Regular", Consolas, monospace;
    letter-spacing: .18em;
    pointer-events: none;
}

.invite-code-box {
    min-width: 205px;
    padding: 17px 18px;
    display: grid;
    gap: 8px;
    border: 1px solid rgba(78,205,196,.25);
    border-radius: 11px;
    background:
        linear-gradient(135deg, rgba(78,205,196,.11), rgba(255,255,255,.035)),
        rgba(5,8,17,.32);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 16px 35px rgba(0,0,0,.16);
}
.invite-code-box > span {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.invite-code-box strong {
    color: #d9fffb;
    font: 600 clamp(20px, 2.2vw, 29px)/1.2 "SFMono-Regular", Consolas, monospace;
    letter-spacing: .16em;
    text-shadow: 0 0 22px rgba(78,205,196,.3);
}
.invite-code-box .button {
    justify-self: start;
    min-height: 34px;
    margin-top: 2px;
}

.danger-zone {
    position: relative;
    padding: 26px;
    border-color: rgba(255,97,120,.22);
    background: linear-gradient(145deg, rgba(255,45,85,.08), rgba(255,255,255,.035));
}
.danger-zone::before {
    background: linear-gradient(110deg, rgba(255,97,120,.17), transparent 35%, transparent 75%, rgba(255,97,120,.06));
}
.danger-zone h3 {
    margin: 12px 0 9px;
    font-size: 20px;
}
.danger-zone p {
    max-width: 600px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}
.danger-zone form {
    position: relative;
    z-index: 1;
}

.team-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 18px;
    margin-top: 36px;
}
.team-hero-card {
    min-height: 340px;
    padding: 31px;
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-content: start;
    align-items: center;
    gap: 18px 20px;
    background:
        radial-gradient(circle at 10% 12%, rgba(168,85,247,.15), transparent 38%),
        linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.04));
}
.team-emblem {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(168,85,247,.35);
    border-radius: 14px;
    color: #f2e9ff;
    background: linear-gradient(145deg, rgba(168,85,247,.24), rgba(78,205,196,.08));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 18px 40px rgba(0,0,0,.25), 0 0 32px rgba(168,85,247,.1);
    font: 26px "XingYuan", Impact, sans-serif;
    letter-spacing: .02em;
}
.team-title {
    position: relative;
    z-index: 1;
    min-width: 0;
}
.team-title h3 {
    margin: 12px 0 9px;
    overflow-wrap: anywhere;
    font-size: clamp(27px, 3vw, 41px);
    line-height: 1.12;
    letter-spacing: -.035em;
}
.team-title p {
    max-width: 570px;
    margin: 0;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.8;
    white-space: pre-line;
}
.invite-code-box {
    grid-column: 1 / -1;
    justify-self: stretch;
    grid-template-columns: 1fr auto;
    align-items: center;
}
.invite-code-box strong {
    grid-row: 2;
}
.invite-code-box .button {
    grid-column: 2;
    grid-row: 1 / span 2;
}
.team-dashboard-grid > .glass-panel:not(.team-hero-card) {
    padding: 29px;
}
.member-list {
    display: grid;
    gap: 4px;
}
.member-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    min-height: 67px;
    padding: 10px 3px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.member-row:last-child {
    border-bottom: 0;
}
.member-row img {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 9px;
    object-fit: cover;
}
.member-row > div {
    min-width: 0;
}
.member-row strong,
.member-row span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.member-row strong {
    font-size: 12px;
}
.member-row > div span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}
.team-action-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}
.team-join-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 36px;
    align-items: stretch;
}
.team-join-grid .glass-panel {
    height: 100%;
}
.team-join-grid .form-card {
    display: flex;
    flex-direction: column;
}
.divider-label {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 25px 0 15px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .08em;
}
.divider-label::before,
.divider-label::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}
.public-teams {
    margin-top: 46px;
}
.public-team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}
.public-team-card {
    position: relative;
    min-height: 218px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 17px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background:
        radial-gradient(circle at 100% 0, rgba(78,205,196,.1), transparent 45%),
        rgba(255,255,255,.042);
    backdrop-filter: blur(25px) saturate(1.5);
    transition: transform .5s var(--ease), border-color .35s, background .35s;
}
.public-team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(78,205,196,.32);
    background:
        radial-gradient(circle at 100% 0, rgba(78,205,196,.15), transparent 45%),
        rgba(255,255,255,.07);
}
.public-team-head {
    display: flex;
    align-items: center;
    gap: 13px;
}
.public-team-head .team-emblem {
    flex: 0 0 auto;
    width: 49px;
    height: 49px;
    border-radius: 10px;
    font-size: 17px;
}
.public-team-head > div {
    min-width: 0;
}
.public-team-head h4 {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}
.public-team-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 9px;
}
.public-team-card > p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}
.public-team-card .button,
.public-team-card form {
    margin-top: auto;
}
.public-team-card .button {
    width: 100%;
}
.team-leader {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 9px;
}
.team-leader img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.submission-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 20px;
    align-items: start;
    margin-top: 34px;
}
.submission-aside {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 108px;
}
.submission-aside .glass-panel {
    padding: 26px;
}
.submission-aside h3 {
    margin: 11px 0 14px;
    font-size: 21px;
}
.submission-aside p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}
.submission-aside .text-link {
    margin-top: 16px;
    font-size: 11px;
}
.fancy-list {
    display: grid;
    gap: 2px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.fancy-list li {
    display: grid;
    grid-template-columns: 33px 1fr;
    gap: 11px;
    padding: 13px 0;
    border-top: 1px solid rgba(255,255,255,.07);
}
.fancy-list li:first-child {
    border-top: 0;
}
.fancy-list li > span {
    color: var(--teal);
    font: 9px "SFMono-Regular", Consolas, monospace;
    letter-spacing: .09em;
}
.fancy-list strong {
    display: block;
    font-size: 11px;
}
.fancy-list p {
    margin-top: 4px;
    font-size: 9px;
    line-height: 1.7;
}
.upload-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 190px;
    padding: 24px;
    border: 1px dashed rgba(78,205,196,.3);
    border-radius: 12px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 15%, rgba(78,205,196,.08), transparent 55%),
        rgba(255,255,255,.022);
    cursor: pointer;
    transition: border-color .35s, background .35s, transform .45s var(--ease);
}
.upload-zone:hover,
.upload-zone.is-dragging,
.upload-zone.has-file {
    border-color: rgba(78,205,196,.72);
    background:
        radial-gradient(circle at 50% 15%, rgba(78,205,196,.15), transparent 58%),
        rgba(78,205,196,.04);
    transform: translateY(-2px);
}
.upload-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.upload-icon {
    display: grid;
    place-items: center;
    width: 51px;
    height: 51px;
    margin-bottom: 2px;
    border: 1px solid rgba(78,205,196,.34);
    border-radius: 10px;
    color: var(--teal);
    background: rgba(78,205,196,.08);
    box-shadow: 0 0 28px rgba(78,205,196,.09);
    transition: transform .5s var(--ease-spring), background .35s;
}
.upload-zone:hover .upload-icon,
.upload-zone.is-dragging .upload-icon {
    transform: translateY(-4px) scale(1.05);
    background: rgba(78,205,196,.14);
}
.upload-icon svg {
    width: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.error-page {
    min-height: 100vh;
    padding: 130px 24px 80px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 30%, rgba(255,45,85,.1), transparent 28rem),
        transparent;
}
.error-card {
    width: min(760px, 100%);
    padding: clamp(35px, 7vw, 72px);
    text-align: center;
}
.error-code {
    display: block;
    margin-bottom: 9px;
    color: transparent;
    background: linear-gradient(115deg, #fff, var(--pink), var(--purple), var(--teal));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    font: 400 clamp(92px, 19vw, 190px)/.9 "XingYuan", Impact, sans-serif;
    letter-spacing: -.08em;
    animation: text-gradient-flow 7s linear infinite;
}
.error-card .eyebrow {
    justify-content: center;
    margin-top: 26px;
}
.error-card h1 {
    margin: 15px 0 12px;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.1;
    letter-spacing: -.035em;
}
.error-card > p {
    max-width: 500px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}
.error-card .hero-actions {
    justify-content: center;
    margin-top: 26px;
}

.is-loading {
    position: relative;
    pointer-events: none;
}
.is-loading::before {
    content: "";
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    border: 2px solid rgba(255,255,255,.32);
    border-top-color: #fff;
    border-radius: 50%;
    animation: forge-spin .7s linear infinite;
}
@keyframes forge-spin { to { transform: rotate(360deg); } }

/* Responsive layout */
@media (max-width: 1100px) {
    :root { --container: min(100% - 44px, 1060px); }

    .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(350px, .8fr); gap: 30px; }
    .hero-visual { max-width: 520px; justify-self: end; width: 100%; }
    .forge-panel { min-height: 525px; }
    .about-grid { gap: 50px; }
    .track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .track-card:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 350px; }
    .track-card:last-child:nth-child(odd) .track-orb { right: 4%; top: 50%; transform: translateY(-50%); width: 300px; height: 300px; }
    .track-card:last-child:nth-child(odd) .track-subtitle { margin-top: 45px; }
    .day-tabs { grid-template-columns: repeat(5, minmax(130px, 1fr)); overflow-x: auto; scrollbar-width: thin; }
    .day-panel { grid-template-columns: 230px 1fr; }
    .footer-grid { grid-template-columns: 1fr 1.3fr; }
    .footer-links { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
    .footer-links span { margin-top: 0; margin-left: auto; }
    .portal-layout { grid-template-columns: minmax(0, 1fr) 285px; gap: 18px; }
    .submission-layout { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); }
    .team-dashboard-grid { grid-template-columns: minmax(0, 1fr) minmax(290px, .8fr); }
    .public-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-shell { grid-template-columns: minmax(360px, .92fr) minmax(440px, 1.08fr); }
    .auth-showcase-copy h1 { font-size: clamp(54px, 7.3vw, 88px); }
}

@media (max-width: 900px) {
    :root { --container: min(100% - 36px, 780px); }
    html { scroll-padding-top: 92px; }
    .section { padding: 92px 0; }
    .section-heading h2 { font-size: clamp(38px, 8vw, 62px); }
    .section-heading.split { grid-template-columns: 1fr; gap: 20px; align-items: start; }

    .site-header { top: 10px; width: calc(100vw - 20px); min-height: 62px; padding: 7px 9px 7px 14px; border-radius: 12px; }
    .brand img { width: 156px; }
    .menu-toggle { display: block; }
    .site-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 9px);
        display: grid;
        gap: 4px;
        margin: 0;
        padding: 13px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: rgba(8,10,20,.94);
        backdrop-filter: blur(30px) saturate(1.7);
        box-shadow: 0 25px 65px rgba(0,0,0,.45);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px) scale(.985);
        transform-origin: top;
        transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
    }
    .site-nav > a { padding: 10px 12px; border-radius: 7px; font-size: 13px; }
    .site-nav > a:hover { background: rgba(255,255,255,.055); }
    .site-nav > a::after { display: none; }
    .site-nav .nav-register { border: 0; background: rgba(255,45,85,.15); }
    .site-nav .nav-account { width: max-content; }
    body.nav-open .site-nav { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
    body.nav-open .menu-toggle > span:first-child { transform: translateY(6px) rotate(45deg); }
    body.nav-open .menu-toggle > span:nth-child(2) { transform: translateY(-6px) rotate(-45deg); }

    .hero { min-height: auto; padding-top: 128px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { padding-bottom: 5px; }
    .hero-visual { max-width: 620px; justify-self: center; width: 100%; }
    .forge-panel { min-height: 500px; transform: none; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
    .hero-stat:nth-child(2) { border-right: 0; }
    .hero-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .hero-stat { min-height: 90px; }

    .about-grid { grid-template-columns: 1fr; }
    .about-grid .section-heading,
    .faq-grid .section-heading { position: static; }
    .about-copy > p { font-size: 16px; }
    .partners-section { padding-bottom: 100px; }
    .partners-section > .section-heading { margin-bottom: 35px; }
    .partner-card { width: 245px; }
    .faq-grid { grid-template-columns: 1fr; gap: 40px; }
    .final-cta { padding: 96px 0 112px; }

    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-organizers { max-width: 620px; }
    .footer-links { grid-column: auto; }
    .footer-links span { margin-left: 0; }

    .auth-shell { display: block; }
    .auth-showcase { min-height: 450px; padding: 36px; border-right: 0; border-bottom: 1px solid var(--line); }
    .auth-brand { width: min(260px, 55%); }
    .auth-showcase-copy { padding: 56px 0 32px; }
    .auth-showcase-copy h1 { font-size: clamp(52px, 10vw, 84px); }
    .auth-showcase-copy > p { font-size: 13px; }
    .auth-organizers { max-width: 520px; }
    .auth-main { min-height: 640px; padding-top: 95px; }

    .portal-layout { grid-template-columns: 1fr; }
    .portal-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qr-card { grid-row: span 2; }
    .dashboard-welcome { align-items: flex-start; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-card { min-height: auto; }
    .site-footer { padding-top: 60px; }

    .apply-grid { grid-template-columns: 1fr; }
    .team-dashboard-grid,
    .team-action-grid,
    .team-join-grid,
    .submission-layout { grid-template-columns: 1fr; }
    .submission-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .submission-aside > section:first-child { grid-row: span 2; }
    .team-hero-card { min-height: auto; }
    .public-teams { margin-top: 38px; }

    .schedule-shell { margin-top: 34px; overflow: hidden; }
    .day-panel { grid-template-columns: 1fr; min-height: 0; padding: 25px; }
    .day-panel::after { display: none; }
    .day-panel-summary { min-height: 0; padding: 0 0 22px; border-right: 0; border-bottom: 1px solid var(--line); }
    .day-panel-summary p { margin-bottom: 0; }
    .day-panels::before { top: 18px; right: 18px; }
    .schedule-list { max-height: 500px; padding: 22px 6px 0 0; }
}

@media (max-width: 720px) {
    :root { --container: calc(100% - 28px); }
    body { font-size: 15px; }
    .section { padding: 76px 0; }
    .section-heading h2 { font-size: clamp(34px, 10vw, 51px); }
    .section-heading p { font-size: 14px; }
    .eyebrow { font-size: 9px; }

    .hero { padding-top: 111px; }
    .hero-title { font-size: clamp(56px, 15vw, 92px); }
    .hero-actions { align-items: stretch; }
    .hero-actions .button { width: 100%; }
    .hero-visual { display: none; }
    .hero-stats { margin-top: 42px; }
    .hero-stat { padding: 18px; align-items: flex-start; flex-direction: column; gap: 8px; }
    .hero-stat strong { font-size: 39px; }

    .feature-grid,
    .track-grid { grid-template-columns: 1fr; }
    .track-card:last-child:nth-child(odd) { grid-column: auto; min-height: 390px; }
    .track-card { min-height: 390px; }
    .feature-card { min-height: 170px; }
    .track-subtitle { margin-top: 55px; }

    .day-tabs { grid-template-columns: repeat(5, 120px); }
    .day-tab { padding: 14px 10px; }
    .schedule-shell { padding: 8px; }
    .day-panel { padding: 20px 16px; }
    .day-panel-summary h3 { font-size: 27px; }
    .schedule-row { grid-template-columns: 1fr; gap: 5px; padding: 15px 12px 15px 0; }
    .schedule-row time { font-size: 9px; }
    .row-node { right: -2px; }
    .day-panels::before { display: none; }

    .partner-card { width: 225px; min-height: 87px; padding: 14px; gap: 12px; }
    .partner-logo { flex-basis: 53px; width: 53px; height: 51px; }
    .partner-logo img { max-width: 43px; max-height: 37px; }
    .partner-card strong { font-size: 12px; }

    .faq-item summary { grid-template-columns: 30px 1fr 22px; gap: 11px; padding: 17px 16px; }
    .faq-item summary > span:nth-child(2) { font-size: 13px; }
    .faq-answer { padding: 0 17px 18px 57px; }
    .faq-answer p { font-size: 12px; }
    .cta-grid h2 { font-size: clamp(41px, 13vw, 67px); }
    .cta-grid .button { width: 100%; min-width: 0; }

    .footer-organizers { grid-template-columns: 1fr; gap: 22px; }
    .organizer-item { padding-left: 15px; }
    .footer-links { align-items: flex-start; flex-direction: column; }
    .footer-brand img { width: 205px; }
    .service-fab { right: 14px; bottom: 14px; width: 52px; min-height: 52px; padding: 0; justify-content: center; }
    .service-fab > span:last-child { display: none; }
    .service-pulse { left: 12px; top: 12px; }
    .flash-stack { top: 84px; right: 14px; }

    .auth-showcase { min-height: 400px; padding: 27px 22px; }
    .auth-showcase-copy { padding: 50px 0 20px; }
    .auth-showcase-copy h1 { font-size: clamp(44px, 12vw, 67px); }
    .auth-metrics { gap: 27px; margin-top: 28px; padding-top: 17px; }
    .auth-metrics strong { font-size: 28px; }
    .auth-organizers { display: none; }
    .auth-main { min-height: 620px; padding: 88px 17px 32px; }
    .auth-main-top { left: 20px; right: 20px; top: 22px; }
    .auth-card { padding: 27px 20px; border-radius: 14px; }
    .auth-flashes { position: static; width: 100%; margin-bottom: 16px; }

    .portal-hero { padding-top: 101px; }
    .portal-hero-grid { align-items: flex-start; }
    .portal-identity { align-items: flex-start; }
    .portal-identity h1 { font-size: 32px; }
    .portal-tabs { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
    .portal-tabs::-webkit-scrollbar { display: none; }
    .portal-tabs a { flex: 0 0 auto; }
    .portal-section { padding-top: 32px; }
    .portal-aside,
    .submission-aside { grid-template-columns: 1fr; }
    .qr-card { grid-row: auto; }
    .submission-aside > section:first-child { grid-row: auto; }
    .dashboard-welcome { padding: 27px 24px; flex-direction: column; }
    .progress-orbit { width: 112px; height: 112px; }
    .announcements-panel { padding: 24px 19px; }
    .announcement-list article { grid-template-columns: 48px 1fr; gap: 13px; }

    .choice-group { grid-template-columns: 1fr; }
    .form-grid.two { grid-template-columns: 1fr; }
    .form-card { padding: 23px 19px; }
    .avatar-upload { align-items: flex-start; }
    .avatar-upload img { width: 61px; height: 61px; }
    .application-status-panel { padding: 24px 19px; }
    .application-status-panel > .status-badge { position: static; }
    .status-timeline { grid-template-columns: 1fr; gap: 15px; }
    .status-timeline > div { padding: 0 0 0 38px; }
    .status-timeline > div::before { left: 12px; right: auto; top: 25px; bottom: -16px; width: 1px; height: auto; }
    .status-timeline i { position: absolute; left: 0; top: 0; }
    .status-timeline span { margin-top: 0; }
    .status-timeline small { margin-top: -3px; }

    .team-dashboard-grid { margin-top: 28px; }
    .team-hero-card { padding: 24px 20px; grid-template-columns: 59px minmax(0, 1fr); gap: 15px; }
    .team-hero-card .team-emblem { width: 58px; height: 58px; border-radius: 11px; font-size: 20px; }
    .team-title h3 { font-size: 27px; }
    .invite-code-box { min-width: 0; padding: 15px; grid-template-columns: 1fr; }
    .invite-code-box strong { grid-row: auto; }
    .invite-code-box .button { grid-column: auto; grid-row: auto; width: 100%; }
    .team-action-grid .form-card,
    .team-dashboard-grid > .glass-panel:not(.team-hero-card) { padding: 22px 19px; }
    .member-row { grid-template-columns: 39px minmax(0, 1fr); }
    .member-row img { width: 38px; height: 38px; }
    .member-row > .status-badge { grid-column: 2; justify-self: start; }
    .public-team-grid { grid-template-columns: 1fr; }
    .public-team-card { min-height: 200px; }
    .team-join-grid { margin-top: 28px; }
    .upload-zone { min-height: 168px; padding: 20px 16px; }

    .error-page { padding-inline: 14px; }
    .error-card .hero-actions { flex-direction: column; }
    .error-card .button { width: 100%; }
}

@media (max-width: 560px) {
    .site-header { min-height: 57px; }
    .brand img { width: 140px; }
    .hero-eyebrow { margin-bottom: 18px; }
    .hero-title { font-size: clamp(48px, 16vw, 72px); }
    .hero-description { font-size: 13px; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .hero-stat { padding: 15px 12px; }
    .hero-stat strong { font-size: 33px; }
    .hero-stat span { font-size: 8px; }
    .section-heading.split { gap: 15px; }
    .about-copy > p { font-size: 14px; line-height: 1.9; }
    .feature-card { padding: 23px 19px; }
    .track-card { padding: 25px 21px 22px; }
    .schedule-list { padding-right: 0; }
    .day-panel { padding: 17px 12px; }
    .faq-grid { gap: 30px; }

    .auth-showcase { min-height: 360px; }
    .auth-showcase-copy h1 { font-size: clamp(39px, 13vw, 57px); }
    .auth-showcase-copy > p { font-size: 12px; line-height: 1.8; }
    .auth-metrics { justify-content: space-between; gap: 12px; }
    .auth-metrics strong { font-size: 24px; }
    .auth-metrics span { font-size: 7px; }
    .auth-main-top { font-size: 10px; }
    .auth-card { padding: 24px 17px; }

    .portal-identity { gap: 12px; }
    .avatar-shell img { width: 66px; height: 66px; }
    .portal-identity h1 { font-size: 27px; }
    .portal-tabs a { padding-inline: 13px; }
    .dashboard-welcome h2 { font-size: 29px; }
    .dashboard-welcome { padding: 23px 19px; }
    .class-detail, .detail-list div { align-items: flex-start; }
    .detail-list dd { max-width: 60%; }
    .avatar-upload { flex-direction: column; }
    .application-status-panel { position: relative; }
    .team-title h3 { font-size: 24px; }
    .fancy-list li { grid-template-columns: 27px 1fr; }
    .section-heading h2 { letter-spacing: -.03em; }
}

@media (pointer: coarse), (hover: none) {
    .cursor-dot,
    .cursor-ring { display: none !important; }
    body.custom-cursor-enabled,
    body.custom-cursor-enabled a,
    body.custom-cursor-enabled button,
    body.custom-cursor-enabled input,
    body.custom-cursor-enabled textarea,
    body.custom-cursor-enabled select,
    body.custom-cursor-enabled summary,
    body.custom-cursor-enabled label { cursor: auto !important; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        transition-delay: 0ms !important;
    }
    .reveal,
    .stagger > * { opacity: 1 !important; transform: none !important; }
    .marquee-track { animation: none !important; }
    .cursor-dot,
    .cursor-ring { display: none !important; }
}


/* ==========================================================================
   2027 LIQUID GLASS THEME
   Graphite / ice / restrained champagne
   ========================================================================== */

:root {
    --bg: #080a0c;
    --bg-deep: #050607;
    --surface: rgba(239, 249, 250, 0.062);
    --surface-strong: rgba(239, 249, 250, 0.105);
    --surface-soft: rgba(239, 249, 250, 0.035);
    --line: rgba(222, 244, 247, 0.135);
    --line-strong: rgba(236, 250, 252, 0.245);
    --text: #f3f8f9;
    --text-soft: #c0cfd2;
    --muted: #7e9094;
    --pink: #a8dfe7;
    --pink-soft: #d2eef1;
    --coral: #b6d8dd;
    --teal: #8ed8e6;
    --purple: #82bec9;
    --blue: #83cddd;
    --green: #75d6ad;
    --warning: #e1bd7c;
    --danger: #ec8a88;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 9px;
    --blur: blur(52px) saturate(1.72);
    --shadow: 0 30px 95px rgba(0, 0, 0, 0.36), 0 8px 24px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(255, 255, 255, 0.035);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --glass-edge: rgba(239, 252, 253, 0.17);
    --glass-fill: linear-gradient(145deg, rgba(255, 255, 255, 0.092), rgba(255, 255, 255, 0.026) 48%, rgba(220, 246, 249, 0.055));
}

html {
    color-scheme: dark;
    background: #080a0c;
}

html,
body,
body *,
body *::before,
body *::after {
    font-family: "XingYuan", sans-serif !important;
}

body {
    color: var(--text);
    background: #080a0c;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.site-body,
body.auth-body {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(ellipse 48% 34% at 8% 4%, rgba(142, 216, 230, 0.075), transparent 72%),
        radial-gradient(ellipse 42% 44% at 98% 54%, rgba(225, 189, 124, 0.042), transparent 75%),
        radial-gradient(ellipse 44% 28% at 58% 102%, rgba(113, 169, 177, 0.05), transparent 76%),
        #080a0c;
}

body.site-body::before,
body.auth-body::before {
    content: "";
    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    opacity: 0.72;
    background-image:
        linear-gradient(rgba(230, 248, 250, 0.017) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230, 248, 250, 0.017) 1px, transparent 1px),
        repeating-radial-gradient(circle at 92% 22%, transparent 0 66px, rgba(226, 247, 250, 0.018) 67px 68px, transparent 69px 142px);
    background-size: 104px 104px, 104px 104px, 100% 100%;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 78%);
}

body.site-body > main,
body.site-body > .site-footer,
body.auth-body > .auth-shell {
    position: relative;
    z-index: 1;
}

body.site-body > .site-header,
body.site-body > .flash-stack,
body.site-body > .service-fab,
body.auth-body > .flash-stack,
body.auth-body > .service-fab {
    z-index: 100;
}

::selection {
    color: #071013;
    background: rgba(174, 231, 238, 0.72);
}

::-webkit-scrollbar {
    width: 9px;
}
::-webkit-scrollbar-track {
    background: #07090a;
}
::-webkit-scrollbar-thumb {
    border: 2px solid #07090a;
    border-radius: 16px;
    background: rgba(197, 227, 231, 0.24);
}

.ambient {
    opacity: 0.09;
    filter: blur(112px);
}
.ambient-one {
    background: #5d9da5;
    animation-duration: 23s;
}
.ambient-two {
    background: #b79b69;
    animation-duration: 29s;
}
.noise {
    opacity: 0.032;
    mix-blend-mode: soft-light;
}

/* Pointer: cold-silver liquid glass */
.cursor-dot,
.cursor-ring {
    pointer-events: none;
    will-change: left, top, width, height, opacity;
}
.cursor-dot {
    width: 4px;
    height: 4px;
    background: #f4fdfe;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24), 0 0 13px rgba(142, 216, 230, 0.5);
}
.cursor-ring {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(221, 245, 248, 0.58);
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.1), transparent 42%),
        rgba(218, 244, 247, 0.025);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 28px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(4px) saturate(1.35);
}
body.cursor-hover .cursor-ring {
    width: 54px;
    height: 54px;
    border-color: rgba(186, 235, 242, 0.82);
    background: rgba(157, 222, 231, 0.065);
}
body.cursor-hover .cursor-dot {
    opacity: 0.65;
}
body.cursor-down .cursor-ring {
    width: 25px;
    height: 25px;
    background: rgba(184, 233, 240, 0.15);
    border-color: rgba(224, 250, 252, 0.8);
}

/* Shared glass material */
.glass-panel {
    isolation: isolate;
    border-color: var(--glass-edge);
    background: var(--glass-fill);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: var(--shadow);
}
.glass-panel::before {
    background:
        linear-gradient(112deg, rgba(255, 255, 255, 0.17), transparent 19%, transparent 76%, rgba(232, 251, 253, 0.075)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 28%);
}

.feature-card,
.partner-card,
.public-team-card,
.faq-item,
.team-mini,
.submission-mini,
.avatar-upload,
.team-context,
.notice-box,
.admin-panel,
.admin-stat-card {
    border-color: var(--glass-edge);
    background-color: rgba(255, 255, 255, 0.032);
    backdrop-filter: blur(34px) saturate(1.55);
    -webkit-backdrop-filter: blur(34px) saturate(1.55);
}

.gradient-text {
    color: transparent;
    background: linear-gradient(102deg, #f8fcfd 4%, #d9ebee 23%, #9adce6 52%, #e3f4f6 76%, #ffffff 100%);
    background-size: 230% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: text-gradient-flow 12s linear infinite;
    text-shadow: none;
}

.eyebrow {
    color: #a4e0e8;
    letter-spacing: 0.17em;
}
.eyebrow::before {
    background: currentColor;
    box-shadow: none;
}
.section-heading h2,
.hero-title,
.auth-showcase-copy h1,
.cta-grid h2 {
    text-wrap: balance;
}
.section-heading h2 {
    text-shadow: 0 14px 50px rgba(0, 0, 0, 0.32);
}
.text-link {
    color: var(--teal);
}
.text-link:hover {
    color: #dff9fb;
}

/* Navigation */
.site-header {
    width: min(1320px, calc(100vw - 42px));
    border-color: rgba(236, 251, 252, 0.14);
    background: linear-gradient(135deg, rgba(16, 21, 23, 0.66), rgba(13, 17, 19, 0.38));
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(48px) saturate(1.65);
    -webkit-backdrop-filter: blur(48px) saturate(1.65);
}
.site-header.is-scrolled {
    background: linear-gradient(135deg, rgba(11, 16, 18, 0.88), rgba(12, 16, 18, 0.72));
    border-color: rgba(224, 247, 250, 0.19);
}
.site-nav > a {
    color: #b6c4c7;
}
.site-nav > a:not(.nav-register):not(.nav-account)::after {
    background: linear-gradient(90deg, rgba(142, 216, 230, 0.2), rgba(214, 242, 245, 0.9), rgba(142, 216, 230, 0.2));
}
.site-nav .nav-register {
    border-color: rgba(219, 247, 250, 0.19);
    background: rgba(215, 245, 248, 0.085);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11);
}
.site-nav .nav-register:hover {
    border-color: rgba(188, 237, 243, 0.36);
    background: rgba(196, 240, 245, 0.14);
}
.nav-account,
.menu-toggle {
    border-color: var(--glass-edge);
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(22px) saturate(1.4);
}

/* Particle identity */
.particle-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: max-content;
    flex: 0 0 auto;
}
.particle-mark {
    position: relative;
    display: block;
    flex: 0 0 auto;
    isolation: isolate;
    overflow: visible;
}
.particle-canvas {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.particle-mark > img {
    position: relative;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: contain;
    opacity: 1;
    filter: drop-shadow(0 9px 18px rgba(0, 0, 0, 0.26));
    transition: opacity 0.55s var(--ease);
}
.particle-mark.is-particle-ready > img {
    opacity: 0;
}
.particle-mark.is-particle-fallback > img {
    opacity: 1;
}
.particle-mark.is-particle-fallback .particle-canvas {
    display: none;
}
.particle-wordmark {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #f4fafb;
    line-height: 0.84;
    white-space: nowrap;
}
.particle-wordmark span {
    margin-bottom: 5px;
    color: #91a6aa;
    font-size: 7px;
    letter-spacing: 0.23em;
    text-transform: uppercase;
}
.particle-wordmark strong {
    font-size: 19px;
    font-weight: 400;
    letter-spacing: -0.035em;
}
.particle-mark-nav {
    width: 42px;
    height: 38px;
}
.particle-mark-auth {
    width: 92px;
    height: 84px;
}
.particle-brand-auth {
    width: max-content;
}
.particle-brand-auth .particle-wordmark span {
    font-size: 8px;
}
.particle-brand-auth .particle-wordmark strong {
    font-size: 27px;
}
.particle-mark-footer {
    width: 72px;
    height: 66px;
}
.particle-brand-footer {
    margin-bottom: 16px;
}
.particle-brand-footer .particle-wordmark span {
    font-size: 8px;
}
.particle-brand-footer .particle-wordmark strong {
    font-size: 23px;
}
.particle-mark-admin {
    width: 45px;
    height: 41px;
}
.brand.particle-brand > .particle-mark > img,
.footer-brand .particle-mark-footer > img,
.auth-brand .particle-mark-auth > img {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

/* Buttons and form surfaces */
.button {
    border-radius: 11px;
    letter-spacing: 0.012em;
}
.button-primary {
    color: #071012;
    border-color: rgba(255, 255, 255, 0.58);
    background: linear-gradient(135deg, #e1f5f7 0%, #aee5ec 52%, #86ccd8 100%);
    box-shadow: 0 16px 44px rgba(94, 177, 190, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.84), inset 0 -1px 0 rgba(37, 94, 102, 0.12);
}
.button-primary::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.56), transparent);
    animation-duration: 7.5s;
}
.button-glow,
.button-glow:hover {
    box-shadow: 0 16px 44px rgba(94, 177, 190, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.84), inset 0 -1px 0 rgba(37, 94, 102, 0.12);
}
.button-primary:hover {
    background: linear-gradient(135deg, #eefafb 0%, #bcebf0 52%, #93d4de 100%);
    box-shadow: 0 20px 54px rgba(94, 177, 190, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.button-glass {
    border-color: rgba(228, 250, 252, 0.17);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 34px rgba(0, 0, 0, 0.13);
    backdrop-filter: blur(30px) saturate(1.45);
    -webkit-backdrop-filter: blur(30px) saturate(1.45);
}
.button-glass:hover {
    border-color: rgba(221, 247, 250, 0.28);
    background: rgba(255, 255, 255, 0.105);
}
.button-danger {
    color: #ffd9d8;
    border-color: rgba(236, 138, 136, 0.36);
    background: rgba(236, 138, 136, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.button-danger:hover {
    background: rgba(236, 138, 136, 0.18);
}
.field input,
.field textarea,
.field select,
.form-control {
    border-color: rgba(226, 248, 250, 0.135);
    background: rgba(5, 9, 10, 0.46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 8px 26px rgba(0, 0, 0, 0.08);
}
.field input:focus,
.field textarea:focus,
.field select:focus,
.form-control:focus {
    border-color: rgba(169, 225, 233, 0.58);
    background: rgba(9, 15, 17, 0.7);
    box-shadow: 0 0 0 3px rgba(142, 216, 230, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.field input::placeholder,
.field textarea::placeholder {
    color: #65777b;
}
.code-button {
    border-color: rgba(171, 225, 232, 0.28);
    background: rgba(142, 216, 230, 0.075);
    color: #bdecf1;
}
.code-button:hover:not(:disabled) {
    border-color: rgba(190, 237, 243, 0.55);
    background: rgba(142, 216, 230, 0.13);
    color: #fff;
}
.check-field input {
    accent-color: #9edce5;
}

/* Hero and showcase */
.hero::before {
    background-image:
        radial-gradient(circle at 71% 48%, transparent 0 15%, rgba(224, 247, 250, 0.032) 15.1% 15.22%, transparent 15.32% 27%, rgba(224, 247, 250, 0.022) 27.1% 27.2%, transparent 27.3% 100%),
        linear-gradient(rgba(230, 248, 250, 0.019) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230, 248, 250, 0.019) 1px, transparent 1px);
    background-size: auto, 92px 92px, 92px 92px;
    mask-image: radial-gradient(ellipse 82% 76% at 48% 44%, #000 12%, transparent 82%);
}
.hero-copy {
    position: relative;
}
.hero-copy::after {
    content: "";
    position: absolute;
    left: -12%;
    bottom: 18%;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(217, 244, 247, 0.035);
    border-radius: 50%;
    box-shadow: inset 0 0 0 54px rgba(255, 255, 255, 0.008), inset 0 0 0 108px rgba(255, 255, 255, 0.006);
    pointer-events: none;
    z-index: -1;
}
.hero-title {
    letter-spacing: -0.052em;
    text-shadow: 0 24px 75px rgba(0, 0, 0, 0.42);
}
.hero-title > span:first-child {
    color: #f5fafb;
}
.hero-kicker {
    color: #d9e9eb;
    font-weight: 500;
}
.hero-description {
    color: #acbdc0;
}
.hero-note {
    color: #84969a;
}
.forge-panel {
    border-color: rgba(231, 250, 252, 0.18);
    background:
        radial-gradient(circle at 74% 30%, rgba(142, 216, 230, 0.09), transparent 35%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.083), rgba(255, 255, 255, 0.022) 48%, rgba(213, 240, 244, 0.052));
    box-shadow: 0 38px 110px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(255, 255, 255, 0.035);
}
.forge-panel::after {
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.22), transparent 24%, transparent 72%, rgba(142, 216, 230, 0.12));
    animation: none;
    opacity: 0.38;
}
.particle-mark-hero {
    z-index: 2;
    width: min(86%, 390px);
    aspect-ratio: 335 / 305;
    filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.32));
    animation: particle-logo-breathe 9s var(--ease-spring) infinite;
}
@keyframes particle-logo-breathe {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(-0.7deg); }
}
.orbit {
    border-color: rgba(221, 246, 249, 0.115);
}
.orbit::before {
    background: #a8e1e9;
    box-shadow: 0 0 12px rgba(142, 216, 230, 0.45);
}
.orbit-b {
    border-color: rgba(212, 192, 151, 0.13);
}
.orbit-b::before {
    background: #d6bf8f;
    box-shadow: 0 0 12px rgba(225, 189, 124, 0.32);
}
.scan-line {
    background: linear-gradient(90deg, transparent, rgba(173, 228, 235, 0.3), transparent);
}
.hero-stats {
    border-color: rgba(220, 244, 247, 0.105);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.025), transparent);
}
.hero-stat {
    border-color: rgba(220, 244, 247, 0.09);
}
.hero-stat strong {
    color: #edf8f9;
}
.hero-stat span {
    color: #728589;
}

/* About and tracks */
.about-section::before,
.faq-section::before {
    background: radial-gradient(circle, rgba(132, 203, 212, 0.055), transparent 67%);
}
.faq-section::before {
    background: radial-gradient(circle, rgba(221, 189, 132, 0.038), transparent 67%);
}
.glass-rule span {
    background: #a4dfe7;
    box-shadow: none;
}
.feature-card {
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.075);
}
.feature-card::after {
    width: 155px;
    height: 155px;
    right: -68px;
    bottom: -72px;
    border: 1px solid rgba(201, 239, 244, 0.07);
    background: rgba(142, 216, 230, 0.035);
    filter: none;
}
.feature-card:hover {
    background: rgba(255, 255, 255, 0.052);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.feature-index {
    color: #779095;
}
.track-card.accent-teal {
    --accent: #8ed8e6;
    --accent-glow: rgba(142, 216, 230, 0.075);
}
.track-card.accent-purple {
    --accent: #b6c9cc;
    --accent-glow: rgba(190, 211, 214, 0.065);
}
.track-card.accent-pink {
    --accent: #d6bf8f;
    --accent-glow: rgba(214, 191, 143, 0.065);
}
.track-card:hover {
    box-shadow: 0 32px 82px rgba(0, 0, 0, 0.3), 0 0 45px var(--accent-glow);
}
.track-card::after {
    height: 1px;
    opacity: 0.38;
}
.track-orb {
    border-color: color-mix(in srgb, var(--accent) 16%, transparent);
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 7%, transparent), transparent 66%);
}
.track-code,
.track-subtitle,
.tag-list span {
    letter-spacing: 0.11em;
}
.tag-list span {
    border-color: rgba(221, 246, 248, 0.11);
    background: rgba(255, 255, 255, 0.025);
}
.card-arrow:hover,
.track-card:hover .card-arrow {
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

/* Timeline */
.schedule-shell {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.018) 55%),
        rgba(9, 13, 14, 0.38);
}
.day-tab {
    border: 1px solid transparent;
}
.day-tab.is-active {
    color: #f4fafb;
    border-color: rgba(219, 246, 249, 0.1);
    background: rgba(219, 246, 249, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.day-tab.is-active::after {
    background: #a7e2eb;
    box-shadow: none;
}
.day-summary > span {
    color: #a9e3eb;
}
.day-summary {
    border-color: rgba(218, 244, 247, 0.09);
}
.schedule-row {
    border-color: rgba(218, 244, 247, 0.07);
}
.schedule-row time {
    color: #9ddde7;
}
.row-node {
    background: rgba(201, 235, 239, 0.28);
}
.schedule-row:hover .row-node {
    background: #b3e8ef;
    box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(142, 216, 230, 0.35);
}
.day-panels::before {
    color: rgba(218, 245, 248, 0.18);
}

/* Partners and FAQs */
.marquee-stack {
    mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
}
.partner-card {
    border-color: rgba(228, 249, 251, 0.12);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.066), rgba(255, 255, 255, 0.018));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}
.partner-card:hover {
    border-color: rgba(191, 236, 242, 0.27);
    background: rgba(255, 255, 255, 0.078);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.partner-logo {
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(246, 251, 251, 0.93);
    box-shadow: inset 0 1px 0 #fff, 0 8px 22px rgba(0, 0, 0, 0.14);
}
.marquee-row:hover .marquee-track,
.marquee-row:focus-within .marquee-track {
    animation-play-state: paused;
}
.faq-item {
    box-shadow: 0 13px 38px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.faq-item[open] {
    border-color: rgba(190, 236, 242, 0.2);
    background: rgba(255, 255, 255, 0.064);
}
.faq-number {
    color: #73898d;
}
.faq-item[open] summary i {
    color: #081012;
    border-color: #a5e0e8;
    background: #a5e0e8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.faq-item[open] summary i::before,
.faq-item[open] summary i::after {
    background: #071012;
}

/* Closing and footer */
.final-cta::before {
    background:
        radial-gradient(ellipse, rgba(142, 216, 230, 0.075), transparent 60%),
        radial-gradient(circle at 68% 50%, rgba(225, 189, 124, 0.025), transparent 42%);
    filter: blur(18px);
}
.final-cta::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(820px, 86vw);
    aspect-ratio: 1.8;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(222, 247, 250, 0.055);
    border-radius: 50%;
    box-shadow: inset 0 0 0 66px rgba(255, 255, 255, 0.007), inset 0 0 0 132px rgba(255, 255, 255, 0.005);
    pointer-events: none;
}
.cta-grid {
    z-index: 1;
}
.site-footer {
    border-color: rgba(222, 247, 249, 0.09);
    background: linear-gradient(180deg, rgba(15, 20, 21, 0.34), rgba(6, 8, 9, 0.72));
}
.footer-orbit {
    border-color: rgba(218, 245, 248, 0.06);
}
.footer-orbit::before {
    border-color: rgba(218, 245, 248, 0.045);
}
.organizer-item {
    border-color: rgba(218, 245, 248, 0.11);
}
.organizer-item img {
    filter: none;
}
.footer-links a:hover {
    color: #c3edf2;
}
.service-fab {
    border-color: rgba(225, 249, 251, 0.18);
    background: linear-gradient(145deg, rgba(16, 23, 25, 0.84), rgba(10, 14, 16, 0.66));
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(34px) saturate(1.55);
    -webkit-backdrop-filter: blur(34px) saturate(1.55);
}
.service-fab:hover {
    border-color: rgba(181, 231, 237, 0.38);
    background: rgba(21, 30, 32, 0.92);
}
.service-fab svg {
    stroke: #a7e2e9;
}

/* Authentication */
.auth-showcase {
    border-color: rgba(220, 246, 249, 0.1);
    background:
        radial-gradient(circle at 20% 78%, rgba(118, 197, 208, 0.08), transparent 32rem),
        radial-gradient(circle at 84% 16%, rgba(222, 192, 139, 0.035), transparent 27rem),
        linear-gradient(145deg, rgba(16, 22, 24, 0.5), rgba(8, 11, 12, 0.44));
}
.auth-showcase::before {
    border-color: rgba(217, 245, 248, 0.06);
    box-shadow: inset 0 0 0 80px rgba(255, 255, 255, 0.006), inset 0 0 0 158px rgba(255, 255, 255, 0.004);
}
.auth-showcase::after {
    background-image:
        linear-gradient(rgba(231, 248, 250, 0.019) 1px, transparent 1px),
        linear-gradient(90deg, rgba(231, 248, 250, 0.019) 1px, transparent 1px);
}
.auth-main {
    background:
        radial-gradient(circle at 84% 12%, rgba(142, 216, 230, 0.045), transparent 27rem),
        rgba(6, 8, 9, 0.24);
}
.auth-card {
    border-color: rgba(234, 251, 252, 0.18);
    background:
        radial-gradient(circle at 84% 4%, rgba(142, 216, 230, 0.055), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.086), rgba(255, 255, 255, 0.025) 54%, rgba(216, 242, 246, 0.048));
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.17), inset 0 -1px 0 rgba(255, 255, 255, 0.035);
}
.auth-metrics {
    border-color: rgba(219, 246, 249, 0.09);
}
.auth-organizers {
    border-color: rgba(219, 246, 249, 0.09);
}
.auth-showcase-mark {
    color: rgba(236, 250, 251, 0.02);
}
.auth-legal {
    color: #64767a;
}

/* Builder portal and dashboard */
.portal-hero {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
}
.portal-hero::before {
    background: radial-gradient(ellipse, rgba(142, 216, 230, 0.065), transparent 70%);
}
.portal-status {
    border-color: rgba(223, 247, 250, 0.13);
    background: rgba(255, 255, 255, 0.032);
    backdrop-filter: blur(24px) saturate(1.35);
    -webkit-backdrop-filter: blur(24px) saturate(1.35);
}
.portal-tabs a.is-active {
    background: rgba(255, 255, 255, 0.04);
}
.portal-tabs a.is-active::after {
    background: #a4e0e9;
    box-shadow: none;
}
.dashboard-welcome {
    background:
        radial-gradient(circle at 78% 15%, rgba(142, 216, 230, 0.08), transparent 38%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.026) 50%, rgba(214, 191, 143, 0.025));
}
.dashboard-welcome::after {
    border-color: rgba(220, 247, 250, 0.065);
    box-shadow: inset 0 0 0 66px rgba(255, 255, 255, 0.008);
}
.progress-orbit {
    background: radial-gradient(circle at center, #090d0f 54%, transparent 55%), conic-gradient(#a3dfe8 var(--progress), rgba(255, 255, 255, 0.075) 0);
    box-shadow: 0 0 46px rgba(142, 216, 230, 0.055), inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}
.team-symbol {
    border-color: rgba(190, 229, 234, 0.22);
    color: #d9f0f2;
    background: rgba(157, 216, 224, 0.075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.announcement-meta span {
    color: #c5e8ec;
    background: rgba(142, 216, 230, 0.07);
}
.qr-frame {
    border-color: rgba(220, 246, 249, 0.18);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}
.qr-frame::before,
.qr-frame::after {
    border-color: rgba(185, 231, 238, 0.72);
}
.support-icon {
    border-color: rgba(173, 226, 233, 0.25);
    color: #a8e1e9;
    background: rgba(142, 216, 230, 0.07);
}
.team-hero-card {
    background:
        radial-gradient(circle at 8% 12%, rgba(142, 216, 230, 0.09), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.022));
}
.team-emblem {
    border-color: rgba(187, 229, 234, 0.26);
    color: #e5f5f6;
    background: linear-gradient(145deg, rgba(166, 220, 227, 0.14), rgba(255, 255, 255, 0.035));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 40px rgba(0, 0, 0, 0.18);
}
.invite-code-box {
    border-color: rgba(170, 225, 232, 0.2);
    background:
        linear-gradient(135deg, rgba(142, 216, 230, 0.075), rgba(255, 255, 255, 0.025)),
        rgba(7, 11, 12, 0.32);
}
.invite-code-box strong {
    color: #e0f7f9;
    text-shadow: none;
}
.public-team-card {
    background:
        radial-gradient(circle at 100% 0, rgba(142, 216, 230, 0.065), transparent 46%),
        rgba(255, 255, 255, 0.032);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.public-team-card:hover {
    border-color: rgba(182, 231, 238, 0.25);
    background:
        radial-gradient(circle at 100% 0, rgba(142, 216, 230, 0.095), transparent 46%),
        rgba(255, 255, 255, 0.055);
}
.upload-zone {
    border-color: rgba(165, 223, 231, 0.28);
    background:
        radial-gradient(circle at 50% 15%, rgba(142, 216, 230, 0.05), transparent 56%),
        rgba(255, 255, 255, 0.018);
}
.upload-zone:hover,
.upload-zone.is-dragging,
.upload-zone.has-file {
    border-color: rgba(181, 232, 239, 0.58);
    background:
        radial-gradient(circle at 50% 15%, rgba(142, 216, 230, 0.09), transparent 58%),
        rgba(142, 216, 230, 0.025);
}
.upload-icon {
    border-color: rgba(165, 224, 232, 0.27);
    color: #addee5;
    background: rgba(142, 216, 230, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.upload-zone:hover .upload-icon,
.upload-zone.is-dragging .upload-icon {
    background: rgba(142, 216, 230, 0.1);
}
.check-item.is-done,
.vertical-check.is-done {
    color: #aadfe5;
}
.status-timeline .is-done i {
    color: #081012;
    border-color: #a4dfe7;
    background: #a4dfe7;
    box-shadow: none;
}
.status-timeline .is-done::before {
    background: rgba(164, 223, 231, 0.28);
}
.danger-zone {
    border-color: rgba(236, 138, 136, 0.18);
    background: linear-gradient(145deg, rgba(236, 138, 136, 0.055), rgba(255, 255, 255, 0.02));
}
.danger-zone::before {
    background: linear-gradient(110deg, rgba(236, 138, 136, 0.12), transparent 35%, transparent 75%, rgba(236, 138, 136, 0.035));
}

/* Feedback and fallbacks */
.flash,
.js-toast {
    border-color: rgba(224, 248, 250, 0.16);
    background: rgba(14, 20, 22, 0.88);
    backdrop-filter: blur(38px) saturate(1.55);
    -webkit-backdrop-filter: blur(38px) saturate(1.55);
}
.empty-state {
    border-color: rgba(222, 247, 250, 0.11);
    background: rgba(255, 255, 255, 0.025);
}
.status-badge {
    border-color: rgba(222, 247, 250, 0.11);
    background: rgba(255, 255, 255, 0.032);
}
.status-success {
    color: #9ce3c4;
    border-color: rgba(117, 214, 173, 0.24);
    background: rgba(117, 214, 173, 0.065);
}
.status-warning {
    color: #e6ca96;
    border-color: rgba(225, 189, 124, 0.27);
    background: rgba(225, 189, 124, 0.075);
}
.status-danger {
    color: #f2b2b0;
    border-color: rgba(236, 138, 136, 0.28);
    background: rgba(236, 138, 136, 0.075);
}
.error-page {
    background: radial-gradient(circle at 50% 30%, rgba(142, 216, 230, 0.055), transparent 30rem);
}
.error-code {
    background: linear-gradient(115deg, #f8fcfd, #b9e7ec 36%, #7fc6d2 67%, #effafa);
    -webkit-background-clip: text;
    background-clip: text;
}

.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.62s var(--ease-spring), transform 0.62s var(--ease-spring);
    transition-delay: var(--delay, 0ms);
}
.reveal-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-ready .stagger > * {
    transition: opacity 0.58s var(--ease-spring), transform 0.58s var(--ease-spring), background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.reveal-ready .stagger.is-visible > * {
    transform: translateY(0);
}

/* Responsive identity refinements */
@media (max-width: 900px) {
    .site-header {
        width: calc(100vw - 20px);
        background: linear-gradient(135deg, rgba(13, 18, 20, 0.86), rgba(12, 16, 18, 0.7));
    }
    .site-nav {
        border-color: rgba(225, 248, 250, 0.14);
        background: rgba(10, 14, 16, 0.94);
        backdrop-filter: blur(48px) saturate(1.6);
        -webkit-backdrop-filter: blur(48px) saturate(1.6);
    }
    .site-nav .nav-register {
        border: 1px solid rgba(220, 247, 250, 0.1);
        background: rgba(199, 239, 244, 0.08);
    }
    .particle-mark-nav {
        width: 39px;
        height: 35px;
    }
    .particle-wordmark strong {
        font-size: 17px;
    }
    .auth-showcase {
        background:
            radial-gradient(circle at 18% 80%, rgba(118, 197, 208, 0.07), transparent 25rem),
            radial-gradient(circle at 88% 8%, rgba(222, 192, 139, 0.03), transparent 22rem),
            rgba(9, 13, 14, 0.42);
    }
}

@media (max-width: 720px) {
    body.site-body::before,
    body.auth-body::before {
        background-size: 84px 84px, 84px 84px, 100% 100%;
        opacity: 0.58;
    }
    .particle-brand {
        gap: 8px;
    }
    .particle-mark-nav {
        width: 36px;
        height: 33px;
    }
    .particle-wordmark span {
        margin-bottom: 4px;
        font-size: 6px;
    }
    .particle-wordmark strong {
        font-size: 16px;
    }
    .particle-brand-auth {
        width: max-content;
    }
    .particle-mark-auth {
        width: 76px;
        height: 69px;
    }
    .particle-brand-auth .particle-wordmark strong {
        font-size: 22px;
    }
    .particle-mark-footer {
        width: 62px;
        height: 57px;
    }
    .particle-brand-footer .particle-wordmark strong {
        font-size: 20px;
    }
    .hero-copy::after,
    .final-cta::after {
        display: none;
    }
    .site-header {
        min-height: 60px;
    }
    .service-fab {
        box-shadow: 0 14px 42px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.13);
    }
}

@media (max-width: 420px) {
    .particle-mark-nav {
        width: 33px;
        height: 30px;
    }
    .particle-wordmark span {
        display: none;
    }
    .particle-wordmark strong {
        font-size: 15px;
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header,
    .glass-panel,
    .partner-card,
    .faq-item,
    .public-team-card,
    .feature-card,
    .auth-card,
    .service-fab,
    .flash,
    .js-toast {
        background-color: rgba(14, 19, 21, 0.94);
    }
}

@media (prefers-reduced-motion: reduce) {
    .particle-mark-hero {
        animation: none !important;
    }
    .hover-lift:hover,
    .feature-card:hover,
    .track-card:hover,
    .partner-card:hover,
    .public-team-card:hover,
    .button:hover,
    .service-fab:hover {
        transform: none;
    }
    .ambient {
        animation: none !important;
    }
}
/* Transparent QR artwork needs a dark optical underlay. */
.qr-frame {
    background: #05090b;
}
.qr-frame img {
    display: block;
    background: #05090b;
}

/* ---------------------------------------------------------------------------
   Hero: the forge mark becomes a full-bleed particle background.
   The glass "window" panel was removed so the copy breathes on its own.
   --------------------------------------------------------------------------- */
.hero-particle-bg {
    position: absolute;
    z-index: 0;
    top: 44%;
    left: 53%;
    width: min(82vh, 860px);
    aspect-ratio: 335 / 305;
    transform: translate(-50%, -50%);
    opacity: .5;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 62%, rgba(0, 0, 0, .72) 82%, transparent 98%);
    mask-image: radial-gradient(circle at 50% 50%, #000 62%, rgba(0, 0, 0, .72) 82%, transparent 98%);
}
.hero-particle-bg .particle-mark-hero {
    width: 100%;
    height: 100%;
    aspect-ratio: 335 / 305;
    animation: none;
    filter: drop-shadow(0 40px 90px rgba(0, 0, 0, .5));
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 62% 62% at 25% 46%, rgba(5, 6, 13, .8), rgba(5, 6, 13, .32) 58%, transparent 82%);
}
.hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}
.hero-copy {
    max-width: 780px;
    padding: 30px 0 12px;
}
.hero-title {
    text-shadow: 0 18px 60px rgba(0, 0, 0, .6), 0 2px 24px rgba(0, 0, 0, .52);
}
.hero-meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px 34px;
    margin-top: 38px;
    padding-top: 18px;
    border-top: 1px solid rgba(220, 244, 247, .1);
}
.hero-meta > div {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.hero-meta span {
    color: var(--muted);
    font: 9px/1.4 "SFMono-Regular", Consolas, monospace;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hero-meta strong {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 500;
}
.hero-stats {
    margin-top: 44px;
}
@media (max-width: 900px) {
    .hero-particle-bg {
        top: 37%;
        width: min(74vh, 700px);
        opacity: .4;
    }
    .hero::after {
        background: linear-gradient(180deg, rgba(5, 6, 13, .5), rgba(5, 6, 13, .74) 36%, rgba(5, 6, 13, .3) 64%, transparent 86%);
    }
    .hero-copy {
        max-width: none;
    }
    .hero-meta {
        gap: 10px 24px;
        margin-top: 30px;
    }
}
@media (max-width: 560px) {
    .hero-particle-bg {
        top: 40%;
        width: min(66vh, 520px);
        opacity: .28;
    }
    .hero-meta {
        flex-direction: column;
        gap: 9px;
    }
    .hero-meta > div {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
}

/* ============================================================
   Session controls (log out)
   ============================================================ */
.site-nav > form {
    display: flex;
    align-items: center;
}

.nav-logout button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(224, 247, 249, .12);
    border-radius: 9px;
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    font-family: inherit;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: color .3s, background .3s, border-color .3s;
}

.nav-logout button:hover {
    color: #ffd9d8;
    border-color: rgba(236, 138, 136, .36);
    background: rgba(236, 138, 136, .12);
}

.nav-logout svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-logout {
    display: flex;
}

.footer-logout button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    transition: color .3s;
}

.footer-logout button:hover {
    color: #c3edf2;
}

.portal-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-logout button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(223, 247, 250, .13);
    border-radius: 10px;
    background: rgba(255, 255, 255, .032);
    color: var(--text-soft);
    font-family: inherit;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(24px) saturate(1.35);
    -webkit-backdrop-filter: blur(24px) saturate(1.35);
    transition: color .3s, background .3s, border-color .3s;
}

.portal-logout button:hover {
    color: #fff;
    border-color: rgba(221, 247, 250, .28);
    background: rgba(255, 255, 255, .105);
}

.portal-logout svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 900px) {
    .portal-hero-grid {
        flex-wrap: wrap;
    }
    .portal-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 560px) {
    .site-nav .nav-logout {
        width: 100%;
    }
    .nav-logout button {
        width: 100%;
        justify-content: center;
    }
    .portal-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .portal-logout button {
        width: 100%;
        justify-content: center;
    }
}
