:root {
    --bg: #050810;
    --panel: rgba(12, 22, 40, .84);
    --panel-2: rgba(17, 30, 52, .82);
    --line: rgba(155, 196, 255, .16);
    --text: #f7f9ff;
    --muted: #94a2ba;
    --red: #fe2c55;
    --red-2: #ff647f;
    --blue: #25b7ff;
    --cyan: #25f4ee;
    --gold: #e7c277;
    --green: #2ee6a6;
    --shadow: 0 24px 70px rgba(0, 0, 0, .38);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 14% -10%, rgba(254, 44, 85, .12), transparent 32%),
        radial-gradient(circle at 90% 12%, rgba(37, 183, 255, .12), transparent 30%),
        linear-gradient(145deg, #03060c 0%, #07101f 48%, #03060c 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    line-height: 1.5;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -3;
    content: "";
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }

.ambient {
    position: fixed;
    z-index: -2;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .09;
    pointer-events: none;
}
.ambient-red { top: 22%; left: -240px; background: var(--red); }
.ambient-blue { top: 4%; right: -220px; background: var(--blue); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 42px;
    width: min(1200px, calc(100% - 36px));
    min-height: 82px;
    margin: 0 auto;
    padding: 14px 0;
    backdrop-filter: blur(18px);
}
.site-header::before {
    position: absolute;
    inset: 0 -24px;
    z-index: -1;
    content: "";
    background: linear-gradient(180deg, rgba(5,8,16,.92), rgba(5,8,16,.58));
    border-bottom: 1px solid rgba(255,255,255,.04);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 27px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: -.8px;
}
.brand small {
    color: var(--cyan);
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
}
.brand small::first-letter { color: var(--red); }
.brand-note {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: white;
    font-size: 28px;
    font-style: normal;
    text-shadow: -3px -1px 0 var(--cyan), 3px 1px 0 var(--red);
}
.brand-note.large { width: 60px; height: 60px; font-size: 52px; }

.desktop-nav { display: flex; justify-content: center; gap: 30px; }
.desktop-nav a {
    position: relative;
    padding: 14px 4px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}
.desktop-nav a::after {
    position: absolute;
    right: 50%;
    bottom: 7px;
    left: 50%;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--red), var(--cyan));
    transition: .2s ease;
}
.desktop-nav a:hover, .desktop-nav a.active { color: white; }
.desktop-nav a.active::after { right: 4px; left: 4px; }

.balance-pill, .login-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    justify-self: end;
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid rgba(231,194,119,.42);
    border-radius: 999px;
    background: rgba(7, 13, 24, .75);
    box-shadow: inset 0 0 20px rgba(231,194,119,.04);
    font-weight: 800;
}
.login-pill { border-color: rgba(37,244,238,.3); }
.guest-actions { display: flex; align-items: center; justify-self: end; gap: 10px; }
.header-register { color: var(--muted); font-size: 13px; font-weight: 700; }
.header-register:hover { color: white; }
.coin {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: #171005;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffe4a3, #c48b22);
    font-size: 13px;
}

.site-main {
    width: min(1200px, calc(100% - 36px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.3px;
}

.site-announcement {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 10px 14px;
    border: 1px solid rgba(231,194,119,.18);
    border-radius: 13px;
    background: rgba(231,194,119,.055);
    color: var(--muted);
    font-size: 11px;
}
.site-announcement span { color: var(--gold); font-size: 9px; letter-spacing: 1px; }
.site-announcement b { padding: 2px 6px; border-radius: 5px; background: rgba(254,44,85,.14); color: #ff8ca1; font-size: 9px; }
.site-announcement p { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.site-announcement a { color: var(--cyan); font-weight: 800; white-space: nowrap; }

.hero {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 30px;
    align-items: stretch;
    min-height: 510px;
}
.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 20px 40px 4px;
}
.hero h1, .page-hero h1, .profile-heading h1 {
    margin: 16px 0 18px;
    font-size: clamp(42px, 5.1vw, 70px);
    line-height: 1.08;
    letter-spacing: -2.6px;
}
.hero h1 em {
    color: white;
    font-style: normal;
    text-shadow: -3px 1px 0 rgba(254,44,85,.75), 3px -1px 0 rgba(37,183,255,.75);
}
.hero-copy > p {
    max-width: 520px;
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 16px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.primary-button, .ghost-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 800;
}
.primary-button {
    background: linear-gradient(110deg, #fe2c55, #ff3f72 48%, #126eea);
    box-shadow: 0 12px 30px rgba(254,44,85,.22);
}
.ghost-button {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.035);
    color: var(--muted);
}
.primary-button:hover, .ghost-button:hover { transform: translateY(-2px); filter: brightness(1.1); }

.hero-arena {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 470px;
    padding: 36px;
    border: 1px solid rgba(112,164,255,.17);
    border-radius: 34px;
    background:
        radial-gradient(circle at 50% 30%, rgba(231,194,119,.16), transparent 22%),
        linear-gradient(100deg, rgba(254,44,85,.11), rgba(8,15,28,.6) 45%, rgba(37,183,255,.11)),
        var(--panel);
    box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.05);
}
.hero-arena::before, .hero-arena::after {
    position: absolute;
    top: 44%;
    width: 48%;
    height: 2px;
    content: "";
    filter: drop-shadow(0 0 10px currentColor);
}
.hero-arena::before { left: 0; color: var(--red); background: linear-gradient(90deg, transparent, var(--red)); }
.hero-arena::after { right: 0; color: var(--blue); background: linear-gradient(90deg, var(--blue), transparent); }
.wave {
    position: absolute;
    top: 32px;
    color: var(--red-2);
    font-size: clamp(19px, 2.8vw, 34px);
    letter-spacing: 8px;
    opacity: .8;
}
.versus { position: relative; z-index: 2; display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.versus span {
    font-size: clamp(58px, 7vw, 105px);
    font-weight: 950;
    font-style: italic;
    letter-spacing: -6px;
}
.versus span:first-child { color: #ff405f; text-shadow: 0 0 28px rgba(254,44,85,.35); }
.versus span:last-child { color: #238cff; text-shadow: 0 0 28px rgba(37,183,255,.35); }
.versus b {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    color: #ffe5aa;
    border: 1px solid rgba(231,194,119,.58);
    border-radius: 50%;
    background: rgba(8,14,26,.78);
    box-shadow: 0 0 36px rgba(231,194,119,.2);
    font-size: 27px;
    font-style: italic;
}
.round-chip {
    position: relative;
    z-index: 2;
    margin: 24px 0 20px;
    padding: 8px 20px;
    color: #ffe09a;
    border: 1px solid rgba(37,244,238,.6);
    border-radius: 999px;
    background: rgba(5,9,18,.68);
    font-weight: 750;
}
.countdown {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 48px 1fr;
    align-items: center;
    width: min(550px, 100%);
    padding: 16px 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(3,8,17,.78);
}
.countdown div { text-align: center; }
.countdown span { display: block; color: var(--muted); font-size: 12px; }
.countdown strong { font-size: clamp(28px, 3.8vw, 46px); font-variant-numeric: tabular-nums; }
.countdown div:first-child strong { color: var(--red-2); }
.countdown div:last-child strong { color: var(--blue); }
.countdown i { color: var(--gold); text-align: center; font-weight: 900; }
.urgent { animation: pulse 1s infinite; color: #ffdf64 !important; }

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 24px 0 66px;
}
.quick-grid a {
    display: grid;
    grid-template-columns: 50px 1fr 20px;
    align-items: center;
    gap: 12px;
    min-height: 88px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(130deg, rgba(254,44,85,.08), rgba(17,30,52,.76) 50%, rgba(37,183,255,.05));
    transition: .2s ease;
}
.quick-grid a:hover { transform: translateY(-3px); border-color: rgba(37,244,238,.3); }
.quick-grid a > b { font-size: 30px; }
.quick-grid strong, .quick-grid small { display: block; }
.quick-grid small { margin-top: 3px; color: var(--muted); }
.quick-grid i { color: var(--muted); font-size: 26px; }

.section { margin: 24px 0 30px; }
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
}
.section-heading h2 { margin: 4px 0 0; font-size: 32px; }
.section-heading > a { color: var(--muted); font-size: 14px; }
.home-events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.event-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(16,27,47,.92), rgba(5,10,20,.96));
    box-shadow: 0 18px 45px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.03);
}
.event-card:hover { border-color: rgba(37,244,238,.28); }
.vip-line {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 9px 16px;
    color: var(--gold);
    border-bottom: 1px solid rgba(231,194,119,.12);
    font-size: 13px;
}
.vip { font-size: 21px; font-style: italic; font-weight: 900; }
.heat { margin-left: auto; color: var(--muted); }
.event-body { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 16px; }
.poster {
    position: relative;
    overflow: hidden;
    min-height: 315px;
    border: 1px solid rgba(37,244,238,.38);
    border-radius: 18px;
    background: #0a101d;
    box-shadow: 0 0 24px rgba(37,244,238,.08);
}
.poster img { width: 100%; height: 100%; object-fit: cover; }
.play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    background: rgba(3,7,14,.55);
    transform: translate(-50%,-50%);
    backdrop-filter: blur(10px);
}
.creator { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; }
.avatar {
    display: block;
    width: 42px;
    height: 42px;
    padding: 2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--cyan));
}
.avatar img { width: 100%; height: 100%; border: 2px solid #07101d; border-radius: 50%; object-fit: cover; }
.creator strong, .creator small { display: block; }
.creator small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.music-note { color: var(--cyan); font-size: 28px; text-shadow: 2px 1px var(--red); }
.event-info h3 { margin: 15px 0 5px; font-size: 24px; line-height: 1.25; }
.event-info > p { min-height: 24px; margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.odds {
    display: grid;
    grid-template-columns: 1fr 52px 1fr;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(102,161,247,.28);
    border-radius: 15px;
    background: linear-gradient(100deg, rgba(254,44,85,.18), rgba(3,8,17,.7) 49%, rgba(37,183,255,.18));
}
.odds div { padding: 12px; text-align: center; }
.odds div span { display: block; color: var(--muted); font-size: 11px; }
.odds strong { display: block; margin-top: 1px; font-size: 26px; }
.odds div:first-child strong { color: #ff8b9f; }
.odds div:last-child strong { color: #70c9ff; }
.odds b { color: var(--gold); text-align: center; font-size: 21px; font-style: italic; }
.side-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.bet-button {
    min-height: 46px;
    border: 1px solid;
    border-radius: 13px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
}
.bet-button.red { border-color: rgba(255,83,112,.7); background: linear-gradient(110deg, rgba(254,44,85,.65), rgba(254,44,85,.18)); box-shadow: 0 0 18px rgba(254,44,85,.12); }
.bet-button.blue { border-color: rgba(51,161,255,.7); background: linear-gradient(110deg, rgba(32,114,224,.2), rgba(37,183,255,.65)); box-shadow: 0 0 18px rgba(37,183,255,.12); }
.bet-button:hover { filter: brightness(1.18); transform: translateY(-1px); }
.social-row { display: flex; gap: 24px; margin-top: 12px; color: var(--muted); font-size: 12px; }

.event-card.compact .vip-line { display: none; }
.event-card.compact .event-body { display: block; padding: 0; }
.event-card.compact .poster { min-height: 330px; border: 0; border-radius: 0; }
.event-card.compact .event-info { padding: 16px; }
.event-card.compact .creator { margin-top: -42px; position: relative; }
.event-card.compact .avatar { width: 54px; height: 54px; }
.event-card.compact .event-info h3 { font-size: 20px; }
.event-card.compact .side-actions { display: none; }

.page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 230px;
    margin-bottom: 22px;
    padding: 30px 38px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 82% 30%, rgba(37,183,255,.12), transparent 30%),
        radial-gradient(circle at 20% 75%, rgba(254,44,85,.12), transparent 30%),
        var(--panel);
    box-shadow: var(--shadow);
}
.page-hero h1 { margin: 8px 0; font-size: clamp(42px, 5vw, 68px); }
.page-hero p { margin: 0; color: var(--muted); }
.compact-hero { min-height: 255px; }
.mini-countdown {
    min-width: 410px;
    padding: 18px;
    border: 1px solid rgba(37,244,238,.28);
    border-radius: 18px;
    background: rgba(3,8,16,.56);
    text-align: center;
}
.mini-countdown > span { color: var(--gold); font-weight: 700; }
.mini-countdown > div { display: grid; grid-template-columns: 1fr 42px 1fr; align-items: center; margin-top: 10px; }
.mini-countdown b { font-size: 38px; font-variant-numeric: tabular-nums; }
.mini-countdown b:first-child { color: var(--red-2); }
.mini-countdown b:last-child { color: var(--blue); }
.mini-countdown i { color: var(--gold); font-weight: 900; }

.filter-bar, .tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}
.filter-bar button, .tabs button {
    min-height: 40px;
    padding: 0 18px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.025);
    cursor: pointer;
}
.filter-bar button.active, .tabs button.active {
    color: white;
    border-color: rgba(254,44,85,.5);
    background: rgba(254,44,85,.14);
}
.filter-bar > span { margin-left: auto; color: var(--muted); font-size: 12px; }
.event-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.orders-hero { min-height: 210px; }
.stats-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-width: 520px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(3,8,16,.55);
}
.stats-card div { padding: 18px 22px; text-align: center; }
.stats-card div + div { border-left: 1px solid var(--line); }
.stats-card span, .stats-card strong { display: block; }
.stats-card span { color: var(--muted); font-size: 12px; }
.stats-card strong { margin-top: 4px; font-size: 23px; }
.blue-text { color: #5bc1ff !important; }

.tabs { border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; border: 0; border-radius: 13px 13px 0 0; }
.order-list { display: grid; gap: 14px; }
.order-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 18px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
}
.order-card > img { width: 140px; height: 185px; border-radius: 14px; object-fit: cover; }
.order-main { position: relative; min-width: 0; }
.order-main small, .order-main p { color: var(--muted); }
.order-main h3 { margin: 6px 0 3px; font-size: 22px; }
.order-main p { margin: 0 0 18px; }
.order-status {
    position: absolute;
    top: 0;
    right: 0;
    padding: 6px 12px;
    color: #ff8aa0;
    border: 1px solid rgba(254,44,85,.44);
    border-radius: 999px;
    background: rgba(254,44,85,.08);
    font-size: 12px;
}
.order-status.settled { color: var(--green); border-color: rgba(46,230,166,.4); }
.order-data { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.order-data span { padding: 8px; color: var(--muted); border-left: 1px solid var(--line); font-size: 11px; }
.order-data b { display: block; margin-top: 3px; color: white; font-size: 14px; white-space: nowrap; }
.order-data b.red { color: var(--red-2); }
.order-data b.blue { color: var(--blue); }

.profile-heading { text-align: center; padding: 28px 0 18px; }
.profile-heading h1 { margin: 4px 0; font-size: 58px; }
.profile-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 34px;
    align-items: center;
    padding: 32px;
    border: 1px solid rgba(37,183,255,.32);
    border-radius: 28px;
    background: linear-gradient(120deg, rgba(254,44,85,.07), rgba(10,21,38,.88) 50%, rgba(37,183,255,.08));
}
.profile-avatar { position: relative; width: 230px; height: 230px; padding: 5px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--gold), var(--cyan)); }
.profile-avatar img { width: 100%; height: 100%; border: 6px solid #080f1c; border-radius: 50%; object-fit: cover; }
.profile-avatar span {
    position: absolute;
    right: 7px;
    bottom: 16px;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    background: #07101e;
    font-size: 29px;
    text-shadow: 3px 1px var(--red);
}
.profile-copy h2 { margin: 0 0 12px; font-size: 34px; }
.profile-copy h2 i { color: var(--cyan); }
.vip-badge {
    display: inline-flex;
    padding: 9px 16px;
    color: #ffe3a1;
    border: 1px solid rgba(231,194,119,.4);
    border-radius: 999px;
    background: rgba(231,194,119,.08);
    font-weight: 800;
}
.profile-copy > small { display: block; margin: 14px 0; color: var(--muted); }
.creator-stats { display: flex; gap: 38px; }
.creator-stats span { color: var(--muted); text-align: center; }
.creator-stats b { display: block; color: white; font-size: 24px; }

.wallet-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 18px 0;
    padding: 28px 32px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
}
.wallet-card span, .wallet-card strong { display: block; }
.wallet-card span { color: var(--muted); }
.wallet-card strong { margin-top: 4px; font-size: 44px; }
.wallet-actions { display: flex; gap: 10px; }
.wallet-actions button {
    min-width: 120px;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(37,183,255,.1);
    cursor: pointer;
}
.wallet-actions button:first-child { background: rgba(254,44,85,.18); border-color: rgba(254,44,85,.5); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-grid button {
    display: grid;
    grid-template-columns: 50px 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0 12px;
    min-height: 112px;
    padding: 19px;
    color: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    text-align: left;
    cursor: pointer;
}
.feature-grid i { grid-row: 1 / 3; align-self: center; color: var(--cyan); font-size: 29px; font-style: normal; text-shadow: 2px 1px var(--red); }
.feature-grid b { align-self: end; }
.feature-grid small { color: var(--muted); }
.level-card { margin: 18px 0; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.level-card > div:first-child { display: flex; justify-content: space-between; }
.level-card strong { color: var(--cyan); font-size: 21px; }
.progress { overflow: hidden; height: 9px; margin: 12px 0; border-radius: 99px; background: rgba(255,255,255,.06); }
.progress i { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), #b94cff, var(--cyan)); }
.level-card small { color: var(--muted); }
.profile-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.profile-actions button, .profile-actions a {
    position: relative;
    min-height: 50px;
    padding: 0 18px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
    text-align: center;
    cursor: pointer;
}
.profile-actions a { display: grid; place-items: center; }
.profile-actions i { display: inline-grid; width: 20px; height: 20px; place-items: center; margin-left: 5px; border-radius: 50%; background: var(--red); color: white; font-size: 11px; }

.responsible {
    width: min(1200px, calc(100% - 36px));
    margin: 0 auto 34px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}
.mobile-nav { display: none; }

.bet-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(2,5,10,.78);
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
    backdrop-filter: blur(12px);
}
.bet-modal[aria-hidden="false"] { opacity: 1; visibility: visible; }
.modal-panel {
    position: relative;
    width: min(430px, 100%);
    padding: 28px;
    border: 1px solid rgba(37,244,238,.25);
    border-radius: 24px;
    background: linear-gradient(145deg, #101d33, #060b14);
    box-shadow: 0 30px 90px rgba(0,0,0,.5);
}
.modal-panel h2 { margin: 6px 0; font-size: 30px; }
.modal-panel > p { color: var(--muted); }
.modal-close { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; color: var(--muted); font-size: 28px; cursor: pointer; }
.selected-side { margin: 14px 0; padding: 12px; border-radius: 12px; text-align: center; font-weight: 800; }
.selected-side.red { color: #ff9bad; background: rgba(254,44,85,.13); }
.selected-side.blue { color: #8dd3ff; background: rgba(37,183,255,.13); }
.modal-panel label, .auth-card label, .install-card label { display: grid; gap: 7px; margin: 14px 0; color: var(--muted); font-size: 13px; }
.modal-panel input, .auth-card input, .install-card input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    color: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
    background: rgba(255,255,255,.04);
}
.modal-panel input:focus, .auth-card input:focus, .install-card input:focus { border-color: var(--cyan); }
.amount-chips { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin-bottom: 14px; }
.amount-chips button { min-height: 38px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.04); cursor: pointer; }
.modal-panel .primary-button { width: 100%; }
.modal-panel > small { display: block; margin-top: 13px; color: var(--muted); text-align: center; }

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 120;
    max-width: 360px;
    padding: 13px 18px;
    border: 1px solid rgba(46,230,166,.42);
    border-radius: 12px;
    background: #102b25;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: .2s ease;
}
.toast.show { opacity: 1; transform: none; }
.toast.error { border-color: rgba(254,44,85,.45); background: #2b1017; }

.auth-wrap, .installer { display: grid; min-height: calc(100vh - 180px); place-items: center; padding: 30px 18px; }
.auth-card, .install-card {
    width: min(480px, 100%);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--panel);
    box-shadow: var(--shadow);
}
.auth-card h1, .install-card h1 { margin: 8px 0; font-size: 36px; }
.auth-card > p, .install-card > p, .auth-card > small { color: var(--muted); }
.auth-card .primary-button, .install-card .primary-button { width: 100%; margin-top: 8px; }
.form-error, .form-success { margin: 14px 0; padding: 11px 13px; border-radius: 10px; font-size: 13px; }
.form-error { color: #ffb0bd; background: rgba(254,44,85,.12); }
.form-success { color: #8ff1ce; background: rgba(46,230,166,.1); }
.global-flash { margin: 0 0 16px; border: 1px solid rgba(255,255,255,.07); }

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    overflow: hidden;
    min-height: 680px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: rgba(5, 10, 19, .72);
    box-shadow: var(--shadow);
}
.auth-showcase {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(38px, 5vw, 72px);
    background:
        linear-gradient(180deg, rgba(5,8,16,.08), rgba(5,8,16,.35) 40%, rgba(5,8,16,.96)),
        radial-gradient(circle at 22% 25%, rgba(254,44,85,.36), transparent 28%),
        radial-gradient(circle at 79% 31%, rgba(37,183,255,.34), transparent 31%),
        url("../images/dance.jpg") center 28% / cover;
}
.auth-showcase::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(110deg, rgba(254,44,85,.1), transparent 45%, rgba(37,244,238,.1));
    pointer-events: none;
}
.auth-showcase > * { position: relative; z-index: 1; }
.auth-showcase-top { position: absolute; top: 36px; left: 42px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 800; letter-spacing: 2px; }
.live-dot { padding: 5px 9px; border-radius: 6px; background: var(--red); color: white; letter-spacing: 1px; box-shadow: 0 0 22px rgba(254,44,85,.5); }
.auth-vs { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.auth-vs span { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(4,8,16,.58); font-weight: 900; }
.auth-vs span:first-child { color: #ff7892; box-shadow: inset 0 0 18px rgba(254,44,85,.22); }
.auth-vs span:last-child { color: #6ed4ff; box-shadow: inset 0 0 18px rgba(37,183,255,.22); }
.auth-vs b { color: var(--gold); font-size: 12px; letter-spacing: 2px; }
.auth-showcase h2 { margin: 0 0 16px; font-size: clamp(36px, 4vw, 58px); line-height: 1.08; letter-spacing: -2px; }
.auth-showcase > p { max-width: 590px; margin: 0; color: #b7c0d0; }
.auth-mini-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 30px; }
.auth-mini-stats div { padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(4,8,16,.48); backdrop-filter: blur(10px); }
.auth-mini-stats strong, .auth-mini-stats small { display: block; }
.auth-mini-stats strong { color: white; font-size: 19px; }
.auth-mini-stats small { margin-top: 3px; color: #8e9bad; font-size: 10px; }
.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 68px);
    background: linear-gradient(145deg, rgba(16,27,47,.88), rgba(5,9,17,.96));
}
.auth-logo { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-bottom: 28px; }
.auth-logo b { font-size: 25px; font-style: italic; }
.auth-panel h1 { margin: 8px 0 3px; font-size: 38px; letter-spacing: -1.3px; }
.auth-panel > p { margin: 0 0 19px; color: var(--muted); font-size: 13px; }
.field-label { display: grid; gap: 8px; margin: 10px 0; color: #c9d0dc; font-size: 12px; font-weight: 700; }
.field-label > small { display: inline; color: var(--muted); font-weight: 400; }
.input-wrap { position: relative; display: block; }
.input-wrap > i { position: absolute; top: 50%; left: 15px; z-index: 1; color: #657087; font-style: normal; transform: translateY(-50%); }
.input-wrap input {
    width: 100%;
    min-height: 51px;
    padding: 0 45px;
    color: white;
    border: 1px solid rgba(155,196,255,.18);
    border-radius: 13px;
    outline: 0;
    background: rgba(255,255,255,.035);
    transition: .2s;
}
.input-wrap input:focus { border-color: rgba(37,244,238,.6); box-shadow: 0 0 0 3px rgba(37,244,238,.06); }
.password-toggle { position: absolute; top: 50%; right: 10px; width: 34px; height: 34px; border: 0; background: transparent; color: #66738a; cursor: pointer; transform: translateY(-50%); }
.password-toggle.active { color: var(--cyan); }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 7px 0 16px; color: var(--muted); font-size: 11px; }
.auth-options label { display: flex; align-items: center; gap: 6px; }
.auth-options input, .agreement input { accent-color: var(--red); }
.auth-submit { width: 100%; justify-content: space-between; margin-top: 5px; padding: 0 18px; }
.auth-submit span { font-size: 19px; }
.auth-switch { margin-top: 17px; color: var(--muted); text-align: center; font-size: 12px; }
.auth-switch a { color: var(--cyan); font-weight: 800; }
.demo-account { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 18px; padding: 10px; border: 1px dashed rgba(231,194,119,.25); border-radius: 11px; color: #9ba6b9; font-size: 10px; }
.demo-account b { color: var(--gold); }
.demo-account span { padding-left: 7px; border-left: 1px solid var(--line); }
.register-shell { grid-template-columns: minmax(0,.86fr) minmax(560px,1.14fr); }
.register-showcase { background: linear-gradient(180deg, rgba(5,8,16,.06), rgba(5,8,16,.9)), radial-gradient(circle at 25% 28%, rgba(254,44,85,.32), transparent 32%), radial-gradient(circle at 78% 32%, rgba(37,183,255,.29), transparent 31%), url("../images/mook.jpg") center / cover; }
.register-panel { padding-top: 38px; padding-bottom: 38px; }
.register-panel .auth-logo { margin-bottom: 17px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.agreement { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.agreement input { flex: 0 0 auto; margin-top: 2px; }
.form-error ul { margin: 5px 0 0; padding-left: 18px; }
.thai-orbit { position: relative; width: 220px; height: 220px; margin-bottom: 26px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.thai-orbit::before { position: absolute; inset: 28px; content: ""; border: 1px dashed rgba(37,244,238,.33); border-radius: 50%; }
.thai-orbit b { position: absolute; top: 50%; left: 50%; display: grid; width: 78px; height: 78px; place-items: center; border-radius: 50%; background: #060b14; font-size: 48px; text-shadow: -3px -1px var(--cyan), 3px 1px var(--red); transform: translate(-50%,-50%); }
.thai-orbit span { position: absolute; padding: 6px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(4,8,16,.75); font-size: 11px; }
.thai-orbit span:nth-child(1) { top: 8px; left: 78px; }
.thai-orbit span:nth-child(2) { top: 118px; right: -8px; }
.thai-orbit span:nth-child(3) { bottom: 13px; left: 1px; }
.auth-benefits { display: grid; gap: 9px; margin: 25px 0 0; padding: 0; list-style: none; color: #b9c3d2; font-size: 12px; }
.auth-benefits li::before { margin-right: 9px; color: var(--cyan); content: "✓"; }

@keyframes pulse {
    50% { opacity: .48; }
}

@media (max-width: 940px) {
    .desktop-nav { display: none; }
    .site-header { grid-template-columns: 1fr auto; }
    .hero { grid-template-columns: 1fr; }
    .hero-copy { padding: 34px 12px 12px; text-align: center; align-items: center; }
    .hero-arena { min-height: 440px; }
    .home-events { grid-template-columns: 1fr 1fr; }
    .event-list { grid-template-columns: 1fr; }
    .page-hero { align-items: stretch; flex-direction: column; }
    .mini-countdown, .stats-card { min-width: 0; width: 100%; }
    .profile-card { grid-template-columns: 200px 1fr; }
    .profile-avatar { width: 190px; height: 190px; }
    .wallet-card { align-items: stretch; flex-direction: column; }
    .auth-shell, .register-shell { grid-template-columns: 1fr; }
    .auth-showcase { min-height: 420px; }
}

@media (max-width: 680px) {
    body { padding-bottom: 88px; }
    .site-header {
        width: calc(100% - 28px);
        min-height: 68px;
        gap: 10px;
        padding: 10px 0;
    }
    .site-header::before { inset: 0 -14px; }
    .brand { gap: 7px; font-size: 22px; }
    .brand-note { width: 28px; height: 28px; font-size: 25px; }
    .brand small { display: none; }
    .balance-pill, .login-pill { min-height: 38px; padding: 0 12px; font-size: 13px; }
    .header-register { display: none; }
    .coin { width: 21px; height: 21px; }
    .site-main { width: calc(100% - 24px); padding: 10px 0 26px; }
    .site-announcement { grid-template-columns: auto auto 1fr; margin-bottom: 7px; padding: 8px 10px; }
    .site-announcement span, .site-announcement a { display: none; }
    .hero { min-height: 0; gap: 14px; }
    .hero-copy { align-items: flex-start; padding: 25px 5px 8px; text-align: left; }
    .hero h1 { margin: 10px 0 12px; font-size: 40px; letter-spacing: -2px; }
    .hero-copy > p { margin-bottom: 20px; font-size: 14px; }
    .hero-actions { width: 100%; }
    .hero-actions a { flex: 1; padding: 0 13px; font-size: 13px; }
    .hero-arena { min-height: 318px; padding: 22px 12px; border-radius: 24px; }
    .wave { top: 20px; font-size: 16px; }
    .versus { gap: 12px; margin-top: 36px; }
    .versus span { font-size: 49px; letter-spacing: -4px; }
    .versus b { width: 50px; height: 50px; font-size: 19px; }
    .round-chip { margin: 20px 0 14px; padding: 6px 13px; font-size: 12px; }
    .countdown { grid-template-columns: 1fr 35px 1fr; padding: 11px 8px; }
    .countdown strong { font-size: 27px; }
    .quick-grid { grid-template-columns: 1fr 1fr 1fr; gap: 7px; margin: 12px 0 38px; }
    .quick-grid a { display: flex; min-width: 0; min-height: 82px; flex-direction: column; gap: 2px; justify-content: center; padding: 9px 5px; text-align: center; }
    .quick-grid a > b { font-size: 23px; }
    .quick-grid strong { font-size: 12px; white-space: nowrap; }
    .quick-grid small { font-size: 9px; }
    .quick-grid i { display: none; }
    .section-heading { align-items: center; }
    .section-heading h2 { font-size: 25px; }
    .home-events { grid-template-columns: 1fr; }
    .event-card.compact .poster { min-height: 360px; }
    .event-card.compact .event-info h3 { font-size: 22px; }

    .page-hero { min-height: 0; margin-bottom: 13px; padding: 20px; border-radius: 21px; }
    .page-hero h1 { margin: 5px 0; font-size: 38px; }
    .page-hero p { font-size: 12px; }
    .mini-countdown { padding: 13px; }
    .mini-countdown b { font-size: 29px; }
    .filter-bar { overflow-x: auto; padding-bottom: 3px; }
    .filter-bar button { flex: 0 0 auto; min-height: 37px; padding: 0 14px; }
    .filter-bar > span { display: none; }
    .event-list { gap: 12px; }
    .event-card { border-radius: 18px; }
    .vip-line { min-height: 43px; padding: 7px 11px; }
    .vip { font-size: 18px; }
    .event-body { grid-template-columns: 105px 1fr; gap: 11px; padding: 11px; }
    .poster { min-height: 188px; border-radius: 12px; }
    .play { width: 38px; height: 38px; font-size: 12px; }
    .creator { grid-template-columns: 34px 1fr auto; gap: 7px; }
    .avatar { width: 34px; height: 34px; }
    .creator strong { font-size: 12px; }
    .creator small { font-size: 8px; }
    .music-note { font-size: 20px; }
    .event-info h3 { margin: 8px 0 2px; font-size: 16px; }
    .event-info > p { overflow: hidden; max-width: 100%; margin-bottom: 8px; min-height: 17px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
    .odds { grid-template-columns: 1fr 32px 1fr; border-radius: 10px; }
    .odds div { padding: 7px 4px; }
    .odds div span { font-size: 8px; }
    .odds strong { font-size: 18px; }
    .odds b { font-size: 14px; }
    .side-actions { gap: 7px; margin-top: 8px; }
    .bet-button { min-height: 42px; border-radius: 10px; font-size: 13px; }
    .social-row { gap: 12px; margin-top: 8px; font-size: 9px; }

    .orders-hero { gap: 14px; }
    .stats-card div { padding: 12px 4px; }
    .stats-card strong { font-size: 17px; }
    .tabs { gap: 0; }
    .tabs button { padding: 0 6px; }
    .order-card { grid-template-columns: 92px 1fr; gap: 11px; padding: 10px; border-radius: 16px; }
    .order-card > img { width: 92px; height: 138px; border-radius: 11px; }
    .order-main h3 { max-width: 68%; margin: 4px 0 2px; font-size: 15px; }
    .order-main p { overflow: hidden; margin-bottom: 7px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
    .order-status { padding: 4px 7px; font-size: 9px; }
    .order-data { grid-template-columns: repeat(3, 1fr); gap: 2px; }
    .order-data span { padding: 4px; font-size: 8px; }
    .order-data span:nth-child(n+4) { display: none; }
    .order-data b { font-size: 10px; }

    .profile-heading { padding: 16px 0 8px; }
    .profile-heading h1 { font-size: 38px; }
    .profile-card { grid-template-columns: 105px 1fr; gap: 15px; padding: 18px 14px; border-radius: 21px; }
    .profile-avatar { width: 105px; height: 105px; }
    .profile-avatar span { right: -4px; bottom: 4px; width: 36px; height: 36px; font-size: 18px; }
    .profile-copy h2 { margin-bottom: 7px; font-size: 18px; }
    .vip-badge { padding: 5px 9px; font-size: 11px; }
    .profile-copy > small { margin: 7px 0; font-size: 9px; }
    .creator-stats { gap: 13px; }
    .creator-stats span { font-size: 9px; }
    .creator-stats b { font-size: 15px; }
    .wallet-card { gap: 13px; margin: 12px 0; padding: 18px; border-radius: 18px; }
    .wallet-card strong { font-size: 35px; }
    .wallet-actions { display: grid; grid-template-columns: repeat(3, 1fr); }
    .wallet-actions button { min-width: 0; min-height: 42px; font-size: 12px; }
    .feature-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .feature-grid button { grid-template-columns: 37px 1fr; min-height: 88px; padding: 12px; }
    .feature-grid i { font-size: 23px; }
    .feature-grid b { font-size: 12px; }
    .feature-grid small { font-size: 9px; }
    .level-card { margin: 12px 0; padding: 16px; }
    .profile-actions { grid-template-columns: 1fr 1fr; }
    .profile-actions a { grid-column: 1 / 3; min-height: 45px; }

    .responsible { width: calc(100% - 24px); margin-bottom: 12px; font-size: 10px; }
    .mobile-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 60;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        padding: 7px 7px max(7px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: rgba(5,9,17,.94);
        box-shadow: 0 -12px 35px rgba(0,0,0,.28);
        backdrop-filter: blur(18px);
    }
    .mobile-nav a { position: relative; display: grid; min-height: 58px; place-items: center; align-content: center; gap: 2px; color: #8994a7; font-size: 10px; }
    .mobile-nav i { font-size: 24px; font-style: normal; line-height: 1; }
    .mobile-nav a.active { color: white; text-shadow: 1px 0 var(--red), -1px 0 var(--cyan); }
    .mobile-nav a.active::after { position: absolute; bottom: -4px; width: 30px; height: 3px; content: ""; border-radius: 4px; background: linear-gradient(90deg, var(--red), var(--cyan)); }
    .toast { right: 12px; bottom: 86px; left: 12px; max-width: none; }
    .auth-wrap { padding-top: 14px; }
    .auth-card, .install-card { padding: 24px; border-radius: 20px; }
    .auth-shell, .register-shell { min-height: 0; border-radius: 22px; }
    .auth-showcase { min-height: 285px; padding: 28px 22px; }
    .auth-showcase-top { top: 20px; left: 22px; }
    .auth-showcase h2 { margin-bottom: 9px; font-size: 31px; }
    .auth-showcase > p { font-size: 12px; }
    .auth-vs { margin-bottom: 12px; }
    .auth-mini-stats { margin-top: 16px; }
    .auth-mini-stats div { padding: 8px; }
    .auth-mini-stats strong { font-size: 14px; }
    .auth-panel { padding: 28px 20px; }
    .auth-panel h1 { font-size: 31px; }
    .auth-logo { margin-bottom: 17px; }
    .register-showcase { display: none; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .thai-orbit { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
