:root {
  --bg: #07111d;
  --bg-soft: #0a1826;
  --panel: rgba(14, 31, 48, 0.94);
  --panel-solid: #0e1f30;
  --panel-2: #132a3e;
  --line: rgba(150, 181, 203, 0.16);
  --line-strong: rgba(150, 181, 203, 0.28);
  --text: #eef7fb;
  --muted: #8fa8ba;
  --cyan: #2dd7c2;
  --blue: #4e84ff;
  --coral: #ff795c;
  --yellow: #f0c35b;
  --green: #45d493;
  --red: #ff6276;
  --radius: 8px;
  color: var(--text);
  background: var(--bg);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); }
body { min-height: 100vh; margin: 0; background: radial-gradient(circle at 72% 0%, rgba(78,132,255,.12), transparent 30%), linear-gradient(180deg, #081521 0%, #07111d 70%); }
button, input, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.hidden { display: none !important; }
.mono { font-family: "IBM Plex Mono", monospace; }

#chain-canvas { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: .3; pointer-events: none; }

.login-screen { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(400px, .85fr); background: #07111d; }
.login-screen::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 40%, rgba(45,215,194,.11), transparent 28%), radial-gradient(circle at 65% 6%, rgba(78,132,255,.16), transparent 22%); pointer-events: none; }
.login-visual { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; padding: clamp(32px, 5vw, 72px); border-right: 1px solid var(--line); overflow: hidden; }
.login-visual::after { content: ""; position: absolute; width: 440px; height: 440px; right: 7%; top: 27%; border: 1px solid rgba(45,215,194,.16); border-radius: 50%; box-shadow: inset 0 0 0 58px rgba(78,132,255,.025), inset 0 0 0 120px rgba(45,215,194,.018); }
.brand-lockup { position: relative; z-index: 2; display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; flex: 0 0 auto; }
.brand-lockup.large { align-self: flex-start; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(45,215,194,.5); border-radius: 7px; background: rgba(45,215,194,.1); color: var(--cyan); box-shadow: 0 0 24px rgba(45,215,194,.08); }
.brand-mark svg { width: 23px; }
.brand-lockup strong, .brand-lockup small { display: block; letter-spacing: 0; }
.brand-lockup strong { font-size: 18px; }
.brand-lockup small { margin-top: 2px; color: var(--muted); font: 500 9px "IBM Plex Mono", monospace; }
.login-copy { position: relative; z-index: 2; max-width: 690px; margin: auto 0; }
.eyebrow { color: var(--cyan); font: 600 10px "IBM Plex Mono", monospace; letter-spacing: 1.3px; }
.login-copy h1 { margin: 18px 0 22px; font-size: clamp(48px, 6vw, 80px); line-height: 1.12; letter-spacing: 0; }
.login-copy p { max-width: 620px; margin: 0; color: #a9bdca; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.9; }
.proof-strip { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(220px, 280px)); gap: 12px; }
.proof-strip > div { min-height: 74px; display: flex; align-items: center; gap: 13px; padding: 14px 16px; border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: var(--radius); }
.proof-strip svg { width: 22px; color: var(--cyan); }
.proof-strip span, .proof-strip small { display: block; }
.proof-strip span { font-weight: 600; }
.proof-strip small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.login-panel { position: relative; z-index: 2; display: grid; place-items: center; padding: 38px; background: rgba(8,20,32,.72); backdrop-filter: blur(18px); }
.login-box { width: min(410px, 100%); }
.login-heading h2 { margin: 8px 0; font-size: 30px; }
.login-heading p { margin: 0 0 28px; color: var(--muted); }
#auth-form { display: grid; gap: 16px; }
#auth-form label > span { display: block; margin-bottom: 7px; color: #c3d2dc; font-size: 12px; }
.input-shell { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 7px; background: rgba(255,255,255,.035); }
.input-shell:focus-within { border-color: rgba(45,215,194,.65); box-shadow: 0 0 0 3px rgba(45,215,194,.07); }
.input-shell svg { width: 18px; color: var(--muted); }
.input-shell input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
.input-shell input::placeholder { color: #667e8f; }
.primary-btn { height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; border: 0; border-radius: 6px; color: #04141d; background: var(--cyan); font-weight: 700; cursor: pointer; }
.primary-btn:hover { filter: brightness(1.08); }
.primary-btn:disabled { cursor: not-allowed; opacity: .38; filter: none; }
.primary-btn svg { width: 17px; }
.primary-btn.wide { width: 100%; height: 50px; margin-top: 5px; }
.local-note { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.local-note svg { width: 15px; }

.app-header { position: sticky; top: 0; z-index: 30; height: 72px; padding: 0 clamp(18px, 3.5vw, 50px); display: flex; align-items: center; gap: clamp(24px, 3vw, 46px); border-bottom: 1px solid var(--line); background: rgba(7,17,29,.88); backdrop-filter: blur(18px); }
.app-header .brand-lockup { min-width: 154px; }
.main-nav { display: flex; align-self: stretch; gap: 2px; }
.nav-dropdown { position: relative; display: flex; align-self: stretch; }
.nav-item { position: relative; display: flex; align-items: center; gap: 7px; padding: 0 13px; border: 0; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.nav-item svg { width: 17px; }
.nav-item:hover, .nav-item.active { color: var(--text); }
.nav-item.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--cyan); }
.report-nav-menu { position: absolute; left: 0; top: 64px; z-index: 60; width: 142px; padding: 6px; border: 1px solid var(--line); border-radius: 7px; background: #102438; box-shadow: 0 18px 44px rgba(0,0,0,.38); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; }
.nav-dropdown:hover .report-nav-menu, .nav-dropdown:focus-within .report-nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.report-nav-menu button { width: 100%; height: 38px; display: flex; align-items: center; padding: 0 12px; border: 0; border-radius: 5px; background: transparent; color: #c8d6de; cursor: pointer; text-align: left; }
.report-nav-menu button:hover, .report-nav-menu button.active { color: #fff; background: rgba(78,132,255,.16); }
.nav-badge { position: absolute; top: 14px; right: 5px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border-radius: 999px; color: #fff; background: var(--red); font: 700 10px "IBM Plex Mono", monospace; box-shadow: 0 0 0 2px rgba(7,17,29,.92); }
.header-tools { position: relative; margin-left: auto; display: flex; align-items: center; gap: 9px; }
.points-chip { min-width: 116px; height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.03); }
.points-chip > svg { width: 18px; color: var(--yellow); }
.points-chip small, .points-chip strong { display: block; }
.points-chip small { color: var(--muted); font-size: 9px; }
.points-chip strong { margin-top: 2px; font: 600 14px "IBM Plex Mono", monospace; }
.recycle-btn { height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.025); color: #c5d4dd; cursor: pointer; white-space: nowrap; }
.recycle-btn:hover { border-color: var(--line-strong); background: rgba(255,255,255,.045); color: var(--cyan); }
.recycle-btn svg { width: 16px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.045); }
.icon-btn svg { width: 18px; }
.icon-btn.small { width: 32px; height: 32px; }
.profile-trigger { height: 46px; display: flex; align-items: center; gap: 9px; padding: 0 5px; border: 0; background: transparent; cursor: pointer; }
.profile-trigger > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #05161e; background: linear-gradient(145deg, var(--blue), var(--cyan)); font-weight: 800; }
.profile-trigger div { min-width: 72px; text-align: left; }
.profile-trigger small, .profile-trigger strong { display: block; }
.profile-trigger small { color: var(--muted); font-size: 9px; }
.profile-trigger strong { margin-top: 2px; font-size: 12px; }
.profile-trigger > svg { width: 15px; color: var(--muted); }
.profile-menu { position: absolute; right: 0; top: 55px; width: 170px; padding: 6px; border: 1px solid var(--line); border-radius: 7px; background: #102438; box-shadow: 0 18px 44px rgba(0,0,0,.38); }
.profile-menu button { width: 100%; height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: #c8d6de; cursor: pointer; }
.profile-menu button:hover { background: rgba(255,255,255,.05); }
.profile-menu svg { width: 16px; }

.app-shell { position: relative; z-index: 1; width: min(1500px, 100%); margin: 0 auto; padding: 10px clamp(14px, 2.6vw, 36px) 48px; }
.system-bar { min-height: 50px; padding: 0 18px; display: flex; align-items: center; gap: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12,27,42,.8); }
.system-bar > div { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.system-bar span, .system-bar small { color: var(--muted); font-size: 11px; }
.system-bar strong { font-size: 12px; }
.system-bar .highlight { color: var(--yellow); }
.network-state small { padding-left: 8px; border-left: 1px solid var(--line); }
.live-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 12px rgba(240,195,91,.8); }
.live-dot.online { background: var(--green); box-shadow: 0 0 12px rgba(69,212,147,.8); }
.live-dot.offline { background: var(--red); box-shadow: 0 0 12px rgba(255,98,118,.7); }
.system-bar p { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 11px; }
.system-bar p svg { width: 15px; }
.announcement { min-height: 40px; margin-top: 10px; padding: 0 15px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(78,132,255,.18); border-radius: 7px; background: rgba(78,132,255,.055); color: #b9c9d5; font-size: 12px; }
.announcement svg { width: 15px; color: var(--blue); }
.announcement strong { color: var(--text); }

.page { display: none; margin-top: 10px; }
.page.active { display: block; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 18px 50px rgba(0,0,0,.15); }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.game-panel { min-width: 0; display: flex; flex-direction: column; padding: clamp(12px, 1.5vw, 18px); }
.game-panel > .panel-heading { order: 1; }
.game-tabs { order: 2; }
.round-stage { order: 3; }
.trend-strip { order: 4; }
.choice-heading:not(.stake-heading) { order: 5; }
.bet-mode-tabs { order: 6; }
.parity-grid { order: 7; }
.stake-heading { order: 8; }
.stake-grid { order: 9; }
.custom-stake { order: 10; }
.submit-bar { order: 11; }
.panel-heading, .section-title, .page-heading, .dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
h1, h2, h3, p { margin: 0; letter-spacing: 0; }
h1 { margin-top: 4px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; }
h2 { font-size: 18px; }
.panel-heading p, .page-heading p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.game-actions { display: flex; gap: 18px; }
.text-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.text-btn:hover { color: var(--cyan); }
.text-btn svg { width: 16px; }

.game-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.game-tabs button { min-width: 0; min-height: 42px; display: grid; grid-template-columns: 18px 1fr; gap: 1px 7px; align-items: center; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.022); text-align: left; cursor: pointer; }
.game-tabs button:hover, .game-tabs button.active { border-color: rgba(45,215,194,.58); background: rgba(45,215,194,.055); }
.game-tabs svg { grid-row: 1 / span 2; width: 16px; color: var(--cyan); }
.game-tabs span, .game-tabs small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-tabs span { font-weight: 700; font-size: 13px; }
.game-tabs small { color: var(--muted); font-size: 9px; }

.round-stage { position: relative; min-height: 92px; display: grid; grid-template-columns: minmax(180px, 1fr) 94px minmax(180px, 1fr); align-items: center; gap: clamp(10px, 2vw, 24px); padding: 7px 4px; }
.round-block { min-width: 0; text-align: center; }
.round-block span, .round-block small { display: block; color: var(--muted); }
.round-block span { font-size: 12px; font-weight: 700; }
.round-block strong { display: inline-block; margin-top: 3px; color: #d8e6ee; font: 700 clamp(21px, 2.8vw, 28px) "IBM Plex Mono", monospace; }
.round-block small { margin-top: 3px; overflow: hidden; color: var(--cyan); font: 600 10px "IBM Plex Mono", monospace; text-overflow: ellipsis; white-space: nowrap; }
.verify-chip { margin-left: 6px; padding: 2px 6px; border: 0; border-radius: 4px; background: rgba(78,132,255,.14); color: var(--blue); font-size: 10px; cursor: pointer; }
.past-rounds-chip { position: absolute; left: calc(50% + 48px); top: 58%; height: 24px; padding: 0 9px; border: 0; border-radius: 5px; background: rgba(78,132,255,.14); color: var(--blue); font-size: 11px; cursor: pointer; white-space: nowrap; transform: translateY(-50%); }
.past-rounds-chip:hover { background: rgba(78,132,255,.22); color: #fff; }
.current-block strong { color: var(--blue); }
.current-block .track-label, .current-block .track-nodes { display: none; }
.current-block .track { width: min(220px, 100%); margin: 9px auto 0; }
.hash-orbit { position: relative; width: 158px; height: 158px; display: grid; place-items: center; }
.orbit { position: absolute; inset: 0; border: 1px solid rgba(45,215,194,.28); border-radius: 50%; animation: rotate 13s linear infinite; }
.orbit::before { content: ""; position: absolute; top: 12px; left: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 15px var(--cyan); }
.orbit.ring-b { inset: 20px; border-color: rgba(78,132,255,.36); animation-direction: reverse; animation-duration: 8s; }
.orbit.ring-b::before { top: auto; left: auto; right: 4px; bottom: 24px; background: var(--blue); box-shadow: 0 0 15px var(--blue); }
@keyframes rotate { to { transform: rotate(360deg); } }
.cube { width: 82px; height: 82px; display: grid; place-items: center; border: 1px solid rgba(78,132,255,.58); border-radius: 8px; background: linear-gradient(145deg, rgba(78,132,255,.2), rgba(45,215,194,.1)); box-shadow: 0 0 38px rgba(78,132,255,.19); }
.cube svg { width: 34px; color: var(--cyan); }
.cube small { color: var(--muted); font: 600 9px "IBM Plex Mono", monospace; }
.round-clock { display: grid; justify-items: center; }
.round-clock > span, .round-clock > small { display: block; color: var(--muted); }
.round-clock > span { font-size: 10px; }
.round-clock > strong { width: 50px; height: 50px; display: grid; place-items: center; margin: 2px 0 3px; border: 5px solid rgba(78,132,255,.9); border-left-color: rgba(78,132,255,.18); border-radius: 50%; color: #fff; background: rgba(255,255,255,.04); font: 700 16px "IBM Plex Mono", monospace; }
.round-clock > small { font-size: 9px; text-align: center; }
.round-clock b { color: var(--cyan); font-family: "IBM Plex Mono", monospace; }
.round-track { min-width: 0; }
.track-label { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.track-label b { color: #bdd0dc; }
.track { height: 7px; margin: 10px 0; overflow: hidden; background: rgba(255,255,255,.065); border-radius: 4px; }
.track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .3s ease; }
.track-nodes { display: flex; justify-content: space-between; color: #637c8e; font-size: 9px; }

.choice-heading { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); }
.choice-heading > div:first-child { display: flex; align-items: center; gap: 10px; }
.choice-heading strong, .choice-heading small { display: block; }
.choice-heading small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.step { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 5px; background: rgba(45,215,194,.1); color: var(--cyan); font: 600 10px "IBM Plex Mono", monospace; }
.my-current { color: var(--muted); font-size: 11px; }
.bet-mode-tabs, .parity-grid, .stake-grid, .custom-stake, .submit-bar { width: min(860px, 100%); }
.bet-mode-tabs { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 6px; margin-bottom: 10px; }
.bet-mode-tabs button { height: 34px; border: 0; border-radius: 6px; background: rgba(143,168,186,.18); color: #c6d5df; font-size: 15px; cursor: pointer; }
.bet-mode-tabs button.active { color: #fff; background: var(--blue); }
.parity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.parity-card { min-height: 62px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.023); text-align: left; cursor: pointer; }
.parity-card:hover, .parity-card.selected { border-color: rgba(45,215,194,.58); background: rgba(45,215,194,.055); }
.parity-card div strong, .parity-card div small { display: block; }
.parity-card div strong { font-size: 18px; }
.parity-card div small { margin-top: 3px; color: var(--muted); font: 400 10px "IBM Plex Mono", monospace; }
.parity-card > b { color: var(--yellow); font: 600 14px "IBM Plex Mono", monospace; }
.stake-heading { margin-top: 10px; }
.stake-heading > span { color: var(--muted); font-size: 11px; }
.stake-heading > span b { margin-left: 4px; color: var(--yellow); font-family: "IBM Plex Mono", monospace; }
.stake-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stake-btn { height: 34px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.025); color: #c3d4de; font: 600 13px "IBM Plex Mono", monospace; cursor: pointer; }
.stake-btn:hover, .stake-btn.selected { border-color: var(--blue); background: rgba(78,132,255,.11); color: var(--cyan); }
.custom-stake { height: 38px; margin-top: 7px; display: grid; grid-template-columns: 150px 1fr 40px; align-items: center; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.02); }
.custom-stake:focus-within { border-color: var(--blue); background: rgba(78,132,255,.06); }
.custom-stake > span { height: 100%; padding: 0 14px; display: flex; align-items: center; gap: 8px; border-right: 1px solid var(--line); color: #c3d4de; font-size: 11px; }
.custom-stake > span svg { width: 15px; color: var(--cyan); }
.custom-stake input { min-width: 0; height: 100%; padding: 0 14px; border: 0; outline: 0; color: var(--text); background: transparent; font: 600 14px "IBM Plex Mono", monospace; }
.custom-stake input::placeholder { color: #587184; font: 400 11px Inter, sans-serif; }
.custom-stake > small { color: var(--muted); font-size: 10px; }
.submit-bar { min-height: 52px; margin-top: 10px; padding: 8px 10px 8px 14px; display: grid; grid-template-columns: 1fr 150px 150px; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 7px; background: rgba(5,14,23,.48); }
.submit-bar span, .submit-bar strong { display: block; }
.submit-bar span { color: var(--muted); font-size: 10px; }
.submit-bar strong { margin-top: 3px; }
.payout-preview { padding-left: 18px; border-left: 1px solid var(--line); }
.payout-preview strong { color: var(--yellow); font: 600 17px "IBM Plex Mono", monospace; }
.trend-strip { min-width: 0; margin-top: 6px; padding: 12px 0 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trend-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.trend-heading h2 { margin-top: 3px; font-size: 15px; }
.trend-legend { display: flex; gap: 12px; color: var(--muted); font-size: 10px; }
.trend-legend span { display: flex; align-items: center; gap: 5px; }
.trend-legend i { width: 8px; height: 8px; border-radius: 50%; }
.trend-legend i.odd, .trend-legend i.small { background: #ff4d52; }
.trend-legend i.even, .trend-legend i.big { background: #20b8ae; }
.trend-scroll { width: 100%; max-width: 100%; overflow-x: auto; padding: 4px 0 3px; scrollbar-width: thin; }
.trend-list { min-width: max-content; }
.trend-road { min-height: calc(var(--trend-rows, 5) * 26px); display: flex; align-items: flex-start; gap: 7px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.025); }
.trend-column { width: 22px; display: grid; grid-auto-rows: 22px; gap: 4px; justify-items: center; align-items: center; }
.trend-ball { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; box-shadow: inset 0 0 0 1px rgba(255,255,255,.24), 0 4px 10px rgba(0,0,0,.16); }
.trend-ball.odd, .trend-ball.small { background: #ff4d52; }
.trend-ball.even, .trend-ball.big { background: #20b8ae; }
.trend-counts { display: flex; gap: 14px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.trend-counts span { display: flex; align-items: center; gap: 5px; }
.trend-counts i { width: 8px; height: 8px; border-radius: 50%; }
.trend-counts i.odd, .trend-counts i.small { background: #ff4d52; }
.trend-counts i.even, .trend-counts i.big { background: #20b8ae; }

.side-column { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr); align-content: start; gap: 12px; }
.latest-card, .side-guess-card { padding: 20px; }
.section-title { align-items: center; margin-bottom: 16px; }
.section-title .eyebrow { display: block; margin-bottom: 5px; }
.result-number { display: flex; align-items: center; gap: 14px; margin: 18px 0; }
.result-number > span { width: 74px; height: 74px; display: grid; place-items: center; border: 1px solid rgba(240,195,91,.32); border-radius: 8px; background: rgba(240,195,91,.08); color: var(--yellow); font: 700 40px "IBM Plex Mono", monospace; }
.result-number strong, .result-number small { display: block; }
.result-number strong { font-size: 22px; }
.result-number small { margin-top: 5px; color: var(--muted); font: 500 11px "IBM Plex Mono", monospace; }
.hash-caption { color: var(--muted); font: 500 9px "IBM Plex Mono", monospace; letter-spacing: 1px; }
.hash-code { display: block; margin: 8px 0 17px; overflow: hidden; color: var(--cyan); font: 500 11px "IBM Plex Mono", monospace; white-space: nowrap; text-overflow: ellipsis; }
.result-proof { display: grid; grid-template-columns: 1fr 16px 1fr 16px 1fr; align-items: center; gap: 6px; padding: 12px; border-radius: 6px; background: rgba(255,255,255,.035); }
.result-proof > svg { width: 14px; color: #5c7587; }
.result-proof div { text-align: center; }
.result-proof span, .result-proof b { display: block; }
.result-proof span { color: var(--muted); font-size: 9px; }
.result-proof b { margin-top: 4px; font: 600 15px "IBM Plex Mono", monospace; }
.side-guess-list { max-height: 360px; overflow-y: auto; display: grid; gap: 8px; padding-right: 4px; scrollbar-width: thin; }
.side-guess-item { min-height: 58px; display: grid; grid-template-columns: minmax(0, 1.25fr) .75fr .9fr; align-items: center; gap: 8px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.024); }
.side-guess-item div { min-width: 0; }
.side-guess-item span, .side-guess-item strong, .side-guess-item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-guess-item span { color: var(--muted); font-size: 9px; }
.side-guess-item strong { margin-top: 4px; font-size: 14px; }
.side-guess-item b { margin-top: 4px; color: #d8e6ee; font: 600 12px "IBM Plex Mono", monospace; }
.side-guess-item.pending { border-color: rgba(240,195,91,.24); background: rgba(240,195,91,.045); }
.side-guess-item.pending div:last-child span { color: var(--yellow); }
.side-guess-item.won { border-color: rgba(69,212,147,.24); background: rgba(69,212,147,.045); }
.side-guess-item.won div:last-child span, .side-guess-item.won div:last-child b { color: var(--green); }
.side-guess-item.lost { opacity: .72; }
.side-guess-item.lost div:last-child span { color: var(--muted); }
.secondary-btn { width: 100%; height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: #c5d4dd; cursor: pointer; }
.secondary-btn:hover { border-color: var(--line-strong); background: rgba(255,255,255,.035); }
.secondary-btn svg { width: 16px; }
.safety-card { display: none; gap: 13px; padding: 17px 19px; }
.safety-card > svg { flex: 0 0 auto; width: 22px; color: var(--green); }
.safety-card strong { font-size: 13px; }
.safety-card p { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.6; }

.recent-panel { margin-top: 12px; padding: 16px; }
.round-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.round-card { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.02); }
.round-card header { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font: 500 9px "IBM Plex Mono", monospace; }
.round-card code { display: block; margin: 10px 0; overflow: hidden; color: #c1d3dd; font: 500 10px "IBM Plex Mono", monospace; white-space: nowrap; text-overflow: ellipsis; }
.round-card footer { display: flex; align-items: center; justify-content: space-between; }
.tail-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 5px; background: rgba(78,132,255,.12); color: var(--cyan); font: 600 14px "IBM Plex Mono", monospace; }
.result-badge { padding: 4px 8px; border-radius: 4px; font-size: 10px; }
.result-badge.odd { color: var(--coral); background: rgba(255,121,92,.09); }
.result-badge.even { color: var(--cyan); background: rgba(45,215,194,.09); }
.result-badge.big { color: var(--yellow); background: rgba(240,195,91,.1); }
.result-badge.small { color: var(--blue); background: rgba(78,132,255,.11); }

.page-panel { min-height: 620px; padding: clamp(22px, 3vw, 34px); }
.page-heading { align-items: flex-end; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.filter-chips { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.02); }
.filter-chips button { min-width: 58px; height: 32px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; }
.filter-chips button.active { color: var(--text); background: var(--panel-2); }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 13px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 10px; font-weight: 500; }
td { font-size: 12px; }
td code { display: block; max-width: 310px; overflow: hidden; color: var(--cyan); font: 500 11px "IBM Plex Mono", monospace; text-overflow: ellipsis; }
.table-link { border: 0; background: transparent; color: var(--blue); cursor: pointer; }

.search-shell { width: 370px; height: 44px; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px; padding-left: 13px; border: 1px solid var(--line-strong); border-radius: 6px; background: rgba(255,255,255,.025); }
.search-shell svg { width: 17px; color: var(--muted); }
.search-shell input { min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; }
.search-shell button { align-self: stretch; padding: 0 16px; border: 0; border-left: 1px solid var(--line); background: rgba(45,215,194,.1); color: var(--cyan); cursor: pointer; }
.verify-empty { min-height: 420px; display: grid; place-content: center; justify-items: center; gap: 9px; color: var(--muted); text-align: center; }
.verify-empty svg { width: 52px; color: #426173; }
.verify-empty strong { color: #b8cad5; }
.verify-empty span { font-size: 12px; }
.verify-result { max-width: 900px; margin: 28px auto 0; }
.verify-top { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.025); }
.verify-top span, .verify-top strong { display: block; }
.verify-top span { color: var(--muted); font-size: 10px; }
.verify-top strong { margin-top: 4px; font: 600 22px "IBM Plex Mono", monospace; }
.verified-badge { display: flex !important; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 5px; color: var(--green) !important; background: rgba(69,212,147,.09); }
.verified-badge svg { width: 17px; }
.proof-flow { display: grid; justify-items: center; gap: 8px; margin: 16px 0; }
.proof-flow > svg { width: 18px; color: #527084; }
.proof-flow article { width: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.022); }
.proof-flow article > span, .proof-flow article > strong, .proof-flow article > small { display: block; }
.proof-flow article > span { color: var(--muted); font-size: 10px; }
.proof-flow article > code { display: block; margin-top: 9px; overflow-wrap: anywhere; color: var(--cyan); font: 500 12px "IBM Plex Mono", monospace; }
.proof-flow article > strong { margin-top: 7px; font: 700 30px "IBM Plex Mono", monospace; }
.proof-flow article > small { margin-top: 5px; color: var(--muted); }
.proof-flow .proof-final { border-color: rgba(240,195,91,.3); background: rgba(240,195,91,.055); }
.proof-flow .proof-final strong { color: var(--yellow); }
.verify-meta { min-height: 64px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 24px; padding: 12px 18px; border-top: 1px solid var(--line); }
.verify-meta span, .verify-meta strong { display: block; }
.verify-meta span { color: var(--muted); font-size: 9px; }
.verify-meta strong { margin-top: 4px; font-size: 12px; }
.verify-meta a { display: inline-flex; align-items: center; gap: 7px; color: var(--cyan); font-size: 12px; text-decoration: none; }
.verify-meta a svg { width: 16px; }

.profile-layout { display: grid; grid-template-columns: 340px 320px 1fr; gap: 16px; }
.profile-summary, .ledger-panel, .security-panel { padding: 24px; }
.profile-hero { display: flex; align-items: center; gap: 15px; }
.profile-hero > span { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; color: #05151e; background: linear-gradient(145deg, var(--blue), var(--cyan)); font-size: 22px; font-weight: 800; }
.profile-hero small, .profile-hero h1, .profile-hero p { display: block; }
.profile-hero small, .profile-hero p { color: var(--muted); }
.profile-hero h1 { margin: 3px 0; font-size: 24px; }
.profile-hero p { font-size: 10px; }
.profile-balance { margin: 24px 0; padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.025); }
.profile-balance span, .profile-balance strong { display: block; }
.profile-balance span { color: var(--muted); font-size: 10px; }
.profile-balance strong { margin-top: 5px; color: var(--yellow); font: 600 34px "IBM Plex Mono", monospace; }
.profile-notice { display: flex; gap: 8px; color: var(--muted); font-size: 11px; }
.profile-notice svg { flex: 0 0 auto; width: 15px; color: var(--green); }
.security-state { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.025); }
.security-state span { color: var(--muted); font-size: 10px; }
.security-state strong { max-width: 210px; overflow: hidden; color: var(--yellow); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.security-divider { height: 1px; margin: 20px 0; background: var(--line); }
.ledger-list { max-height: 360px; overflow-y: auto; }
.ledger-item { min-height: 58px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 11px; border-top: 1px solid var(--line); }
.ledger-item > i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 5px; background: rgba(255,255,255,.04); color: var(--blue); }
.ledger-item svg { width: 15px; }
.ledger-item strong, .ledger-item small { display: block; }
.ledger-item strong { font-size: 12px; }
.ledger-item small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.ledger-item b { font: 600 13px "IBM Plex Mono", monospace; }
.ledger-item b.positive { color: var(--green); }
.ledger-item b.negative { color: var(--coral); }
.reports-page { min-height: 620px; overflow: hidden; }
.report-periods { max-width: 100%; flex-wrap: wrap; }
.report-periods button { flex: 1 1 74px; min-width: 70px; }
.report-time-range { height: 38px; min-width: min(430px, 100%); display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 7px; padding: 0 10px; border: 1px solid rgba(141,169,190,.45); border-radius: 6px; background: rgba(255,255,255,.075); }
.report-time-range span, .report-time-range em { color: #dbe7ef; font-size: 11px; font-style: normal; white-space: nowrap; }
.report-time-range input { min-width: 0; border: 0; outline: 0; color: #eef8ff; background: transparent; font-size: 12px; color-scheme: dark; }
.report-time-range input::-webkit-calendar-picker-indicator { filter: invert(24%) sepia(98%) saturate(3421%) hue-rotate(346deg) brightness(112%) contrast(104%); opacity: 1; cursor: pointer; }
.report-date-field { height: 38px; min-width: 136px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.025); }
.report-date-field span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.report-date-field input { min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 11px; }
#report-custom-query { flex: 0 0 82px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
#report-custom-query svg { width: 14px; }
.report-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.report-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.022); }
.report-card span, .report-card strong, .report-card small { display: block; }
.report-card span { color: var(--muted); font-size: 10px; }
.report-card strong { margin-top: 9px; color: #d8e6ee; font: 700 26px "IBM Plex Mono", monospace; overflow-wrap: anywhere; }
.report-card small { margin-top: 8px; color: var(--muted); font-size: 10px; }
.report-section-title { margin-top: 10px; }
.report-table { min-width: 1120px; }
.reports-page .table-wrap { max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.report-table td { vertical-align: middle; }
.report-table td strong, .report-sub { display: block; }
.report-sub { margin-top: 4px; color: var(--muted); font-size: 9px; }
.report-record-wrap { max-height: 460px; overflow: auto; border-top: 1px solid var(--line); }
.report-record-table { min-width: 900px; }
.record-pagination { min-height: 42px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 12px; color: var(--muted); font-size: 11px; }
.record-pagination div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.record-pagination button { min-width: 32px; height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.025); color: #c5d4dd; cursor: pointer; }
.record-pagination button.active, .record-pagination button:hover { border-color: rgba(78,132,255,.55); background: rgba(78,132,255,.14); color: #fff; }
.rate-pill { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 5px; color: var(--yellow); background: rgba(240,195,91,.1); font: 600 11px "IBM Plex Mono", monospace; }
.profit-positive { color: var(--green) !important; }
.profit-negative { color: var(--coral) !important; }

.admin-lock { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 12px; }
.admin-lock svg { width: 17px; }
.admin-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 30px; padding-top: 26px; }
.admin-search { display: grid; grid-template-columns: minmax(0, 1fr) 82px 78px; gap: 8px; margin: 12px 0; }
.admin-search input { min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; color: var(--text); background: rgba(255,255,255,.025); }
.admin-search button { height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.025); color: var(--cyan); cursor: pointer; }
.admin-search button svg { width: 14px; }
.admin-users { display: grid; gap: 8px; }
.admin-user { display: grid; grid-template-columns: 1fr 96px 118px 390px; align-items: center; gap: 12px; min-height: 58px; padding: 9px 11px 9px 16px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.02); }
.admin-user strong, .admin-user small { display: block; }
.admin-user small { color: var(--muted); font-size: 9px; }
.admin-user > b { font: 600 13px "IBM Plex Mono", monospace; }
.admin-user .rate-pill { justify-self: start; padding: 5px 8px; border-radius: 5px; color: var(--yellow); background: rgba(240,195,91,.1); font: 600 11px "IBM Plex Mono", monospace; }
.admin-user-actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.admin-user button { height: 34px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--cyan); cursor: pointer; }
.admin-user-actions button { min-width: 0; padding: 0 6px; font-size: 11px; white-space: nowrap; }
.admin-user-actions button.danger { border-color: rgba(255,98,118,.35); color: var(--red); background: rgba(255,98,118,.06); }
.admin-user-actions button.danger:hover { background: rgba(255,98,118,.12); }
.admin-activity { margin-top: 12px; padding: 14px; border: 1px solid rgba(78,132,255,.22); border-radius: 7px; background: rgba(78,132,255,.045); }
.admin-activity .section-title { margin-bottom: 12px; }
.admin-activity .section-title strong { color: var(--yellow); font: 700 14px "IBM Plex Mono", monospace; }
.admin-activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.admin-activity-grid section { min-width: 0; }
.admin-activity-grid h3 { margin: 0 0 8px; color: #d8e6ee; font-size: 13px; }
.admin-activity-grid section > div { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.admin-activity-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 52px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.025); }
.admin-activity-row strong, .admin-activity-row small { display: block; }
.admin-activity-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-activity-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.admin-activity-row span { padding: 4px 7px; border-radius: 999px; background: rgba(78,132,255,.12); color: var(--blue); font-size: 10px; white-space: nowrap; }
.admin-activity-row span.approved, .admin-activity-row span.won { background: rgba(69,212,147,.12); color: var(--green); }
.admin-activity-row span.pending { background: rgba(240,195,91,.13); color: var(--yellow); }
.admin-activity-row span.lost { background: rgba(255,94,91,.12); color: var(--coral); }
.recycle-admin-list { display: grid; gap: 8px; }
.recycle-admin-item { min-height: 58px; display: grid; grid-template-columns: 1fr 110px 86px; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.02); }
.recycle-admin-item strong, .recycle-admin-item small, .recycle-admin-item b { display: block; }
.recycle-admin-item small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.recycle-admin-item code { display: block; max-width: 100%; margin-top: 5px; overflow: hidden; color: var(--cyan); font: 500 10px "IBM Plex Mono", monospace; text-overflow: ellipsis; white-space: nowrap; }
.admin-address-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.admin-address-line code { flex: 1 1 auto; min-width: 0; }
.admin-address-line button { flex: 0 0 auto; height: 24px; display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; border: 1px solid rgba(45,215,194,.32); border-radius: 5px; background: rgba(45,215,194,.07); color: var(--cyan); font-size: 10px; cursor: pointer; }
.admin-address-line button svg { width: 12px; }
.recycle-admin-item b { color: var(--yellow); font: 600 13px "IBM Plex Mono", monospace; }
.recycle-admin-item b small { margin-top: 3px; color: var(--muted); font: 500 10px "Noto Sans SC", sans-serif; }
.recycle-admin-item button { height: 34px; border: 1px solid rgba(69,212,147,.35); border-radius: 5px; background: rgba(69,212,147,.08); color: var(--green); cursor: pointer; }
.recycle-admin-item.approved { opacity: .62; }
.recycle-admin-item.approved button { display: none; }
.admin-tools { min-width: 0; }
.admin-section-gap { margin-top: 24px; }
.admin-form { display: grid; gap: 12px; }
.admin-form label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.admin-form input, .admin-form textarea { width: 100%; min-width: 0; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; color: var(--text); background: rgba(255,255,255,.025); }
.admin-form input, .admin-form select { height: 42px; padding: 0 12px; }
.admin-form select { width: 100%; min-width: 0; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; color: var(--text); background: #0d2031; }
.admin-form textarea { min-height: 140px; resize: vertical; padding: 12px; }
.rate-preview { display: grid; gap: 4px; padding: 12px; border: 1px solid rgba(240,195,91,.24); border-radius: 6px; background: rgba(240,195,91,.055); }
.rate-preview span, .rate-preview small { color: var(--muted); font-size: 10px; }
.rate-preview strong { color: var(--yellow); font: 700 22px "IBM Plex Mono", monospace; }
.local-round-form { margin-top: 10px; }
.local-round-state { min-height: 58px; display: grid; gap: 4px; padding: 12px; border: 1px solid rgba(78,132,255,.24); border-radius: 6px; background: rgba(78,132,255,.06); color: #d8e6ee; font-size: 12px; }
.local-round-state b { color: var(--cyan); font: 700 15px "IBM Plex Mono", monospace; }
.local-round-state small { color: var(--muted); }
.local-round-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.open-layout { display: grid; grid-template-columns: minmax(320px, .75fr) minmax(0, 1.25fr); gap: 28px; padding-top: 26px; }
.network-list { display: grid; gap: 8px; }
.network-path { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 10px; }
.network-path button { height: 28px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); color: var(--muted); cursor: pointer; font-size: 11px; }
.network-path button.active { border-color: rgba(45,215,194,.35); color: var(--cyan); background: rgba(45,215,194,.08); }
.network-item { min-height: 58px; display: grid; grid-template-columns: minmax(0, 1fr) 150px auto auto 64px 76px; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.02); }
.network-item.can-open { border-color: rgba(45,215,194,.22); cursor: pointer; }
.network-item strong, .network-item small, .network-item span, .network-item b { display: block; }
.network-item small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.network-item span { padding: 5px 8px; border-radius: 5px; color: var(--yellow); background: rgba(240,195,91,.1); font: 600 11px "IBM Plex Mono", monospace; }
.network-item b { color: #d8e6ee; font: 600 12px "IBM Plex Mono", monospace; }
.network-team-points { justify-self: end; text-align: right; }
.network-team-points small, .network-team-points strong { display: block; }
.network-team-points small { color: var(--muted); font-size: 9px; }
.network-team-points strong { margin-top: 3px; color: var(--cyan); font: 700 13px "IBM Plex Mono", monospace; }
.network-item button { height: 30px; border: 1px solid rgba(45,215,194,.3); border-radius: 5px; background: rgba(45,215,194,.07); color: var(--cyan); cursor: pointer; font-size: 11px; }
.network-transfer-btn { border-color: rgba(78,132,255,.34) !important; background: rgba(78,132,255,.09) !important; color: #86a8ff !important; }
.network-item button:disabled { border-color: var(--line); background: transparent; color: var(--muted); cursor: default; }
.admin-tip { display: flex; gap: 10px; margin-top: 20px; padding: 13px; border: 1px solid rgba(69,212,147,.2); border-radius: 6px; color: var(--green); background: rgba(69,212,147,.06); font-size: 11px; }
.admin-tip svg { flex: 0 0 auto; width: 17px; }
.admin-log-list { display: grid; gap: 8px; max-height: 340px; overflow-y: auto; padding-right: 2px; }
.admin-log-item { display: grid; gap: 6px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.025); }
.admin-log-item strong, .admin-log-item small { display: block; }
.admin-log-item strong { color: #d8e6ee; font-size: 12px; }
.admin-log-item small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.admin-log-item code { overflow-wrap: anywhere; color: #9fb6c7; font: 500 10px "IBM Plex Mono", monospace; }

dialog { width: min(620px, calc(100% - 28px)); padding: 24px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #0d2031; box-shadow: 0 30px 90px rgba(0,0,0,.55); }
dialog::backdrop { background: rgba(2,8,14,.8); backdrop-filter: blur(6px); }
.past-rounds-dialog { width: min(880px, calc(100% - 24px)); max-height: min(76vh, 620px); padding: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); background: #0d2031; box-shadow: 0 30px 90px rgba(0,0,0,.58); }
.past-rounds-dialog::backdrop { background: rgba(2,8,14,.78); backdrop-filter: blur(5px); }
.past-rounds-head { height: 58px; display: flex; align-items: center; justify-content: center; position: relative; color: var(--text); font-size: 20px; font-weight: 700; background: linear-gradient(180deg, rgba(19,42,62,.96), rgba(13,32,49,.96)); border-bottom: 1px solid var(--line); }
.past-rounds-head .icon-btn { position: absolute; right: 10px; top: 9px; border: 1px solid transparent; color: #a9bdca; background: transparent; }
.past-rounds-head .icon-btn:hover { color: #fff; background: rgba(255,255,255,.06); border-color: var(--line); }
.past-rounds-table { max-height: calc(min(76vh, 620px) - 58px); overflow-y: auto; }
.past-rounds-table table { min-width: 100%; color: #c9d9e4; }
.past-rounds-table th, .past-rounds-table td { height: 28px; padding: 0 16px; border: 0; text-align: center; font-size: 13px; white-space: nowrap; }
.past-rounds-table th { height: 48px; color: #9fb6c7; background: rgba(78,132,255,.12); font-weight: 600; }
.past-rounds-table tbody tr:nth-child(odd) { background: rgba(255,255,255,.025); }
.past-rounds-table tbody tr:nth-child(even) { background: rgba(78,132,255,.045); }
.past-rounds-table tbody tr:hover { background: rgba(45,215,194,.07); }
.past-rounds-table code { display: inline; color: #d9eaff; font: 700 12px "IBM Plex Mono", monospace; }
.past-tail { display: inline-block; min-width: 18px; margin-right: 8px; color: #19a7a2; font: 600 14px "IBM Plex Mono", monospace; }
.past-tail.even, .past-tail.small { color: #ff3f4c; }
.past-ball { width: 22px; height: 22px; display: inline-grid; place-items: center; margin-right: 4px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; }
.past-ball.odd, .past-ball.small { background: #ff3f4c; }
.past-ball.even, .past-ball.big { background: #18b4aa; }
.past-rounds-table .table-link { color: #6fa0ff; font-size: 13px; }
.past-rounds-table .table-link:hover { color: var(--cyan); }
.rules-list { display: grid; gap: 15px; padding: 0; margin: 24px 0; list-style: none; counter-reset: rule; }
.rules-list li { display: grid; grid-template-columns: 30px 1fr; gap: 3px 12px; counter-increment: rule; }
.rules-list li::before { content: counter(rule); grid-row: 1 / span 2; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 5px; color: var(--cyan); background: rgba(45,215,194,.1); font: 600 11px "IBM Plex Mono", monospace; }
.rules-list b, .rules-list span { display: block; }
.rules-list span { color: var(--muted); font-size: 12px; line-height: 1.65; }
.legal-note { display: flex; gap: 9px; padding: 13px; border: 1px solid rgba(69,212,147,.2); border-radius: 6px; color: var(--green); background: rgba(69,212,147,.06); font-size: 11px; }
.legal-note svg { flex: 0 0 auto; width: 17px; }
.recycle-bound-address { display: grid; gap: 6px; padding: 13px; border: 1px solid rgba(78,132,255,.24); border-radius: 6px; background: rgba(78,132,255,.06); }
.recycle-bound-address span { color: var(--muted); font-size: 10px; }
.recycle-bound-address strong { overflow-wrap: anywhere; color: var(--cyan); font: 600 13px "IBM Plex Mono", monospace; }
.join-address-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.join-address-row strong { flex: 1 1 auto; min-width: 0; }
.account-created-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 14px; }
.account-created-card div { min-width: 0; padding: 13px; border: 1px solid rgba(78,132,255,.24); border-radius: 6px; background: rgba(78,132,255,.06); }
.account-created-card span, .account-created-card strong { display: block; }
.account-created-card span { margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.account-created-card strong { overflow: hidden; color: var(--cyan); font: 700 15px "IBM Plex Mono", monospace; text-overflow: ellipsis; white-space: nowrap; }
.copy-textarea { width: 100%; min-height: 116px; resize: vertical; margin: 0 0 14px; padding: 13px; border: 1px solid var(--line); border-radius: 6px; color: #dcebf4; background: rgba(255,255,255,.04); font: 600 13px/1.7 "IBM Plex Mono", monospace; }
.copy-address-btn { flex: 0 0 auto; height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid rgba(45,215,194,.36); border-radius: 5px; background: rgba(45,215,194,.08); color: var(--cyan); cursor: pointer; }
.copy-address-btn:hover { background: rgba(45,215,194,.16); }
.copy-address-btn svg { width: 14px; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 120; max-width: min(440px, calc(100% - 30px)); padding: 12px 17px; transform: translate(-50%, 16px); border: 1px solid var(--line-strong); border-radius: 7px; background: #132a3e; box-shadow: 0 18px 50px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty-state { min-height: 130px; display: grid; place-content: center; justify-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.empty-state svg { width: 26px; color: #537184; }

@media (max-width: 1320px) {
  .app-header { gap: 18px; }
  .nav-item { padding: 0 9px; }
  .nav-item span { display: none; }
  .recycle-btn span { display: none; }
  .recycle-btn { width: 40px; padding: 0; }
}

@media (max-width: 1180px) {
  .app-header .brand-lockup { min-width: 132px; }
  .game-layout { grid-template-columns: 1fr; }
  .side-column { grid-template-columns: 1fr 1fr; }
  .round-cards { grid-template-columns: repeat(3, 1fr); }
  .system-bar > div:nth-child(3) { display: none; }
}

@media (max-width: 820px) {
  .login-screen { grid-template-columns: 1fr; overflow-y: auto; }
  .login-visual { min-height: 390px; padding: 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .login-copy { margin: 52px 0; }
  .login-copy h1 { font-size: 43px; }
  .login-copy p { font-size: 15px; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .login-panel { min-height: 560px; padding: 28px 20px; }
  .app-header { height: 64px; padding: 0 13px; gap: 10px; }
  .app-header .brand-lockup { min-width: 0; }
  .brand-lockup small, .profile-trigger div, .profile-trigger > svg { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .main-nav { margin-left: auto; }
  .nav-item { padding: 0 8px; }
  .header-tools { margin-left: 0; }
  .points-chip { min-width: 78px; height: 40px; }
  .points-chip small { display: none; }
  .profile-trigger { display: none; }
  .app-shell { padding: 11px 11px 48px; }
  .system-bar { gap: 12px; overflow: hidden; }
  .system-bar > div:nth-child(2), .system-bar > div:nth-child(3), .system-bar p, .network-state small { display: none; }
  .round-stage { grid-template-columns: 1fr 90px 1fr; min-height: 112px; gap: 10px; }
  .game-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-tabs button { min-height: 62px; padding: 10px 12px; }
  .game-tabs svg { width: 20px; }
  .hash-orbit { width: 118px; height: 118px; }
  .cube { width: 64px; height: 64px; }
  .round-track { grid-column: 1 / -1; }
  .parity-grid { grid-template-columns: 1fr; }
  .stake-grid { grid-template-columns: repeat(2, 1fr); }
  .custom-stake { grid-template-columns: 130px 1fr 36px; }
  .submit-bar { grid-template-columns: 1fr 120px; min-height: 56px; }
  .submit-bar .primary-btn { grid-column: 1 / -1; }
  .side-column { grid-template-columns: 1fr; }
  .latest-card, .side-guess-card { padding: 16px; }
  .side-guess-list { max-height: 280px; }
  .round-cards { grid-template-columns: repeat(2, 1fr); }
  .page-heading { align-items: stretch; flex-direction: column; }
  .search-shell { width: 100%; }
  .profile-layout, .admin-grid, .open-layout { grid-template-columns: 1fr; }
  .network-item { grid-template-columns: minmax(0, 1fr) auto; }
  .network-team-points { grid-column: 1; justify-self: start; text-align: left; }
  .network-item b { grid-column: 1; }
  .network-transfer-btn { grid-column: 2; grid-row: 1; }
  .network-item button:not(.network-transfer-btn) { grid-column: 2; grid-row: 2 / span 2; }
  .report-summary { grid-template-columns: repeat(2, 1fr); }
  .report-card { padding: 14px; }
  .report-card strong { font-size: 22px; }
  .table-wrap::after { content: "左右滑动查看更多"; display: block; padding: 8px 2px 0; color: var(--muted); font-size: 10px; }
  .report-record-wrap::after { display: none; }
  .verify-meta { grid-template-columns: 1fr 1fr; }
  .verify-meta a { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .app-header { backdrop-filter: none; }
  .login-visual { min-height: 470px; }
  .proof-strip { grid-template-columns: 1fr; }
  .login-copy h1 { font-size: 38px; }
  .main-nav { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 50; height: 58px; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 8px; background: rgba(9,24,37,.95); backdrop-filter: blur(18px); }
  .nav-item { justify-content: center; padding: 0; }
  .nav-dropdown { min-width: 0; }
  .nav-dropdown > .nav-item { width: 100%; }
  .report-nav-menu { left: auto; right: 0; top: auto; bottom: 64px; width: 126px; }
  .nav-item.active::after { left: 30%; right: 30%; top: 0; bottom: auto; }
  .admin-only { display: none !important; }
  .header-tools { margin-left: auto; }
  .points-chip { min-width: 66px; padding: 0 8px; }
  .points-chip > svg { display: none; }
  .points-chip strong { font-size: 12px; }
  .brand-lockup strong { font-size: 16px; }
  .report-summary { grid-template-columns: 1fr; }
  .report-time-range { grid-template-columns: auto 1fr; height: auto; padding: 8px 10px; }
  .report-time-range em { display: none; }
  .game-panel { padding: 17px; }
  .panel-heading { flex-direction: column; }
  .game-actions { width: 100%; justify-content: space-between; }
  .game-tabs { gap: 8px; }
  .game-tabs button { min-height: 58px; grid-template-columns: 22px 1fr; gap: 2px 8px; padding: 9px 10px; }
  .game-tabs span { font-size: 14px; }
  .game-tabs small { font-size: 9px; }
  .round-stage { grid-template-columns: 1fr; }
  .past-rounds-chip { position: static; justify-self: center; transform: none; order: 4; margin-top: -4px; }
  .hash-orbit { width: 98px; height: 98px; }
  .cube { width: 56px; height: 56px; }
  .round-clock > strong { width: 54px; height: 54px; font-size: 17px; }
  .parity-card { min-height: 76px; grid-template-columns: minmax(0, 1fr) auto; padding: 11px 12px; }
  .parity-card div small { white-space: normal; }
  .custom-stake { grid-template-columns: 1fr 1.2fr 34px; }
  .custom-stake > span { padding: 0 10px; }
  .choice-heading { align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 0; }
  .choice-heading > div:first-child { align-items: flex-start; }
  .my-current { align-self: stretch; }
  .submit-bar { grid-template-columns: 1fr; }
  .payout-preview { padding-left: 0; border-left: 0; }
  .trend-road { padding: 8px; gap: 7px; }
  .trend-ball { width: 26px; height: 26px; font-size: 12px; }
  .side-guess-item { grid-template-columns: 1fr; align-items: start; }
  .round-cards { grid-template-columns: 1fr; }
  .page-panel { padding: 18px; }
  .filter-chips { align-self: flex-start; }
  .filter-chips, .report-periods { width: 100%; overflow-x: auto; }
  .filter-chips button { flex: 1 0 auto; }
  .record-pagination { align-items: flex-start; flex-direction: column; }
  .record-pagination div { justify-content: flex-start; }
  .local-round-inputs { grid-template-columns: 1fr; }
  th, td { padding: 13px 10px; }
  .profile-summary, .ledger-panel, .security-panel { padding: 18px; }
  .profile-hero > span { width: 52px; height: 52px; }
  .profile-balance strong { font-size: 28px; }
  .admin-search { grid-template-columns: 1fr; }
  .admin-user { grid-template-columns: 1fr auto; }
  .admin-user > b, .admin-user-actions { grid-column: 1 / -1; }
  .recycle-admin-item { grid-template-columns: 1fr; }
  dialog { padding: 18px; }
  body { padding-bottom: 78px; }
}

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

@media (min-width: 821px) {
  .app-shell { padding-top: 8px; }
  .game-panel { padding: 12px 16px; }
  .panel-heading p, .choice-heading small { display: none; }
  .game-tabs { margin-top: 7px; gap: 6px; }
  .game-tabs button { min-height: 40px; padding: 6px 9px; }
  .round-stage { min-height: 88px; grid-template-columns: minmax(180px, 1fr) 90px minmax(180px, 1fr); padding: 5px 4px; }
  .round-block strong { margin-top: 2px; font-size: clamp(21px, 2.6vw, 27px); }
  .round-block small { margin-top: 2px; font-size: 10px; }
  .round-clock > strong { width: 48px; height: 48px; margin: 1px 0 2px; border-width: 5px; font-size: 15px; }
  .trend-strip { margin-top: 2px; padding: 6px 0 5px; }
  .trend-heading { margin-bottom: 4px; }
  .trend-heading h2 { font-size: 13px; }
  .trend-scroll { padding: 2px 0; }
  .trend-road { min-height: calc(var(--trend-rows, 5) * 20px); gap: 5px; padding: 5px 7px; }
  .trend-column { width: 19px; grid-auto-rows: 19px; gap: 1px; }
  .trend-ball { width: 19px; height: 19px; font-size: 10px; }
  .trend-counts { margin-top: 3px; font-size: 10px; }
  .choice-heading { min-height: 28px; }
  .bet-mode-tabs { margin-bottom: 5px; }
  .bet-mode-tabs button { height: 28px; font-size: 14px; }
  .parity-card { min-height: 48px; padding: 6px 10px; }
  .parity-card div strong { font-size: 17px; }
  .parity-card div small { font-size: 9px; }
  .stake-heading { margin-top: 5px; }
  .stake-btn { height: 29px; font-size: 12px; }
  .custom-stake { height: 33px; margin-top: 5px; grid-template-columns: 132px 1fr 36px; }
  .submit-bar { min-height: 42px; margin-top: 6px; padding: 6px 8px 6px 12px; grid-template-columns: 1fr 120px 132px; }
  .submit-bar .primary-btn { height: 36px; }
}
