:root {
  --bg: #07111f;
  --bg-deep: #040a12;
  --panel: #0d1c2e;
  --panel-2: #10243a;
  --panel-soft: rgba(16, 36, 58, 0.72);
  --line: rgba(118, 162, 207, 0.18);
  --line-strong: rgba(83, 216, 255, 0.34);
  --text: #f4f7fb;
  --muted: #8ca0ba;
  --muted-2: #667c97;
  --cyan: #53d8ff;
  --orange: #ff7a2f;
  --orange-2: #ff9a50;
  --green: #55e49a;
  --red: #ff7272;
  --purple: #c98cff;
  --yellow: #ffd66b;
  --sidebar-width: 256px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background:
  radial-gradient(circle at 92% 4%, rgba(41, 173, 226, 0.12), transparent 28%),
  radial-gradient(circle at 3% 45%, rgba(255, 122, 47, 0.08), transparent 25%),
  linear-gradient(180deg, #07111f 0%, #091729 52%, #07111f 100%);
  color: var(--text); }
button, input, select, textarea { font: inherit; }
button { border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(83, 216, 255, 0.3); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(4, 12, 22, 0.4); }
::-webkit-scrollbar-thumb { background: rgba(107, 144, 184, 0.28); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }

.icon { display: block; flex: none; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); z-index: 40;
  display: flex; flex-direction: column; padding: 24px 16px 18px;
  border-right: 1px solid rgba(105, 150, 194, 0.16);
  background: linear-gradient(180deg, rgba(5, 14, 26, 0.98), rgba(7, 18, 32, 0.97));
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.16);
}
.brand { display: flex; gap: 12px; align-items: center; padding: 4px 7px 21px; border-bottom: 1px solid var(--line); }
.brand img { width: 42px; height: 42px; }
.brand-copy { min-width: 0; }
.brand-copy strong { display: block; font-size: 15px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-copy span { display: block; margin-top: 4px; color: var(--cyan); font-size: 9px; font-weight: 800; letter-spacing: 1.6px; }
.nav-scroll { flex: 1; min-height: 0; overflow: auto; padding: 18px 0; }
.nav-label { margin: 15px 10px 8px; color: #536b86; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.nav-label:first-child { margin-top: 0; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px; margin: 3px 0; padding: 0 12px; border: 1px solid transparent; border-radius: 13px; color: #8fa2ba; font-size: 13px; font-weight: 680; transition: .18s ease; cursor: pointer; }
.nav-link:hover { color: #dff8ff; background: rgba(83, 216, 255, 0.055); }
.nav-link.active { color: #f4fbff; border-color: rgba(83, 216, 255, 0.22); background: linear-gradient(90deg, rgba(83, 216, 255, 0.14), rgba(83, 216, 255, 0.04)); }
.nav-link.active::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--orange); box-shadow: 0 0 14px rgba(255, 122, 47, 0.55); }
.nav-link.active .icon { color: var(--cyan); }
.sidebar-account { padding: 14px 8px 0; border-top: 1px solid var(--line); }
.account-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(15, 36, 58, 0.62); cursor: pointer; }
.account-avatar { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(83, 216, 255, 0.28); border-radius: 11px; background: rgba(83, 216, 255, 0.08); color: var(--cyan); font-size: 13px; font-weight: 900; }
.account-copy { min-width: 0; flex: 1; }
.account-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.account-copy span { display: block; margin-top: 3px; color: var(--muted-2); font-size: 10px; }

.app-main { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(22px, 3vw, 48px); border-bottom: 1px solid rgba(105, 150, 194, 0.12); background: rgba(7, 17, 31, 0.82); backdrop-filter: blur(20px); }
.topbar-context { min-width: 0; display: flex; align-items: center; gap: 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(85, 228, 154, 0.72); flex: none; }
.topbar-context strong { display: block; max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.topbar-context span { color: var(--muted-2); font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.mobile-menu-button, .mobile-brand, .mobile-bottom-nav, .mobile-drawer { display: none; }
.page-container { width: min(100%, 1500px); margin: 0 auto; padding: clamp(28px, 4vw, 54px) clamp(20px, 3.3vw, 52px) 80px; }

.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
.kicker { margin: 0; color: var(--cyan); font-size: 10px; font-weight: 850; letter-spacing: 2.2px; text-transform: uppercase; }
.page-header h1 { margin: 8px 0 0; font-size: clamp(28px, 3vw, 44px); line-height: 1.15; letter-spacing: -.7px; }
.page-subtitle { margin: 10px 0 0; max-width: 760px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.page-header-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(17, 35, 57, 0.98), rgba(10, 24, 42, 0.98)); box-shadow: var(--shadow); }
.card-pad { padding: clamp(20px, 2.2vw, 30px); }
.card + .card, .section-gap { margin-top: 20px; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.card-header h2, .section-title { margin: 0; font-size: 18px; font-weight: 850; }
.card-header p, .section-note { margin: 6px 0 0; color: var(--muted-2); font-size: 12px; line-height: 1.6; }
.card-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.soft-card { border: 1px solid rgba(113, 157, 200, 0.13); border-radius: 17px; background: rgba(4, 14, 26, 0.42); }

.btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid transparent; border-radius: 13px; cursor: pointer; font-size: 12px; font-weight: 800; line-height: 1.15; transition: transform .15s ease, filter .15s ease, border-color .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .48; cursor: not-allowed; }
.btn-primary { color: white; background: linear-gradient(100deg, var(--orange), var(--orange-2)); box-shadow: 0 12px 28px rgba(255, 106, 42, 0.22); }
.btn-secondary { border-color: rgba(83, 216, 255, 0.3); background: rgba(20, 52, 82, 0.72); color: #d8f6ff; }
.btn-ghost { border-color: rgba(119, 154, 193, 0.2); background: rgba(5, 16, 29, 0.44); color: #9eb1c7; }
.btn-danger { border-color: rgba(255, 114, 114, .32); background: rgba(111, 39, 48, .46); color: #ffb6b6; }
.btn-success { border-color: rgba(85, 228, 154, .32); background: rgba(30, 91, 66, .42); color: #a0f0c4; }
.btn-small { min-height: 34px; padding: 0 12px; border-radius: 10px; font-size: 11px; }
.btn-wide { width: 100%; min-height: 50px; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(116, 156, 196, 0.18); border-radius: 12px; background: rgba(13, 33, 52, 0.65); color: #b2c5d9; cursor: pointer; }
.button-spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.3); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.status-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 27px; padding: 0 10px; border: 1px solid; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-blue { border-color: rgba(83,216,255,.34); background: rgba(83,216,255,.1); color: #8be6ff; }
.status-green { border-color: rgba(85,228,154,.34); background: rgba(85,228,154,.1); color: #91efbd; }
.status-orange { border-color: rgba(255,122,47,.38); background: rgba(255,122,47,.1); color: #ffb17a; }
.status-purple { border-color: rgba(201,140,255,.32); background: rgba(201,140,255,.1); color: #ddb8ff; }
.status-red { border-color: rgba(255,114,114,.32); background: rgba(255,114,114,.09); color: #ffb0b0; }
.status-gray { border-color: rgba(139,158,184,.24); background: rgba(139,158,184,.08); color: #a4b2c5; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: block; min-width: 0; }
.field + .field { margin-top: 17px; }
.form-grid .field + .field { margin-top: 0; }
.field-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; color: #ccd8e6; font-size: 12px; font-weight: 750; }
.field-label em { color: var(--orange-2); font-size: 10px; font-style: normal; font-weight: 700; }
.field small { display: block; margin-top: 8px; color: var(--muted-2); font-size: 10px; line-height: 1.55; }
.input, .select, .textarea { width: 100%; border: 1px solid rgba(116, 152, 194, 0.24); border-radius: 13px; outline: none; background: rgba(4, 15, 28, 0.58); color: var(--text); transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.input, .select { height: 46px; padding: 0 14px; }
.select { appearance: auto; }
.textarea { min-height: 132px; resize: vertical; padding: 13px 14px; line-height: 1.65; }
.textarea-short { min-height: 86px; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(83,216,255,.65); background: rgba(5,18,33,.78); box-shadow: 0 0 0 3px rgba(83,216,255,.08); }
.input::placeholder, .textarea::placeholder { color: #536a85; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.switch-row { position: relative; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(106,139,178,.1); cursor: pointer; }
.switch-row:last-child { border-bottom: 0; }
.switch-row span { min-width: 0; }
.switch-row b { display: block; color: #d1dbe7; font-size: 12px; }
.switch-row small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 10px; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i { width: 42px; height: 23px; position: relative; flex: none; border-radius: 99px; background: #26394f; transition: .2s; }
.switch-row i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #8192a7; transition: .2s; }
.switch-row input:checked + i { background: rgba(83,216,255,.34); box-shadow: inset 0 0 0 1px rgba(83,216,255,.25); }
.switch-row input:checked + i::after { left: 22px; background: var(--cyan); }
.segmented { display: flex; gap: 5px; padding: 5px; border-radius: 14px; background: rgba(3,12,23,.58); overflow-x: auto; }
.segmented button { flex: 1; min-width: fit-content; height: 34px; padding: 0 13px; border-radius: 10px; background: transparent; color: #788ca6; cursor: pointer; font-size: 11px; font-weight: 750; }
.segmented button.active { background: rgba(83,216,255,.13); color: #a8ecff; }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid rgba(112,151,193,.14); border-radius: 16px; }
.data-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.data-table th { padding: 12px 14px; background: rgba(5,16,29,.5); color: #667d98; font-size: 10px; font-weight: 800; text-align: left; letter-spacing: .5px; }
.data-table td { padding: 14px; border-top: 1px solid rgba(112,151,193,.1); color: #d9e3ee; font-size: 12px; vertical-align: middle; }
.data-table tr:hover td { background: rgba(83,216,255,.025); }
.table-actions { display: flex; gap: 6px; justify-content: flex-end; }

.loading-state, .empty-state { padding: 64px 24px; text-align: center; }
.spinner { width: 38px; height: 38px; display: block; margin: 0 auto; border: 4px solid rgba(83,216,255,.16); border-top-color: var(--cyan); border-radius: 50%; animation: spin .85s linear infinite; }
.loading-state p, .empty-state p { margin: 15px auto 0; max-width: 520px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.empty-state h3 { margin: 0; font-size: 18px; }
.empty-icon { width: 70px; height: 70px; margin: 0 auto 18px; display: grid; place-items: center; border: 1px dashed rgba(83,216,255,.32); border-radius: 20px; color: var(--cyan); font-size: 26px; font-weight: 900; }
.empty-state .btn { margin-top: 20px; }

.hero { position: relative; min-height: 250px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; align-items: end; padding: clamp(26px, 4vw, 48px); border: 1px solid rgba(255,122,47,.28); border-radius: 27px; background: linear-gradient(120deg, rgba(17,35,56,.98), rgba(10,25,43,.98)); box-shadow: var(--shadow); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .32; background-image: linear-gradient(rgba(83,216,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(83,216,255,.08) 1px, transparent 1px); background-size: 35px 35px; mask-image: linear-gradient(90deg, black, transparent 82%); }
.hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(83,216,255,.17), transparent 67%); }
.hero-content, .hero-stats { position: relative; z-index: 1; }
.hero-status { display: inline-flex; align-items: center; gap: 8px; color: #a8efc7; font-size: 11px; font-weight: 800; }
.hero h2 { margin: 16px 0 0; font-size: clamp(30px, 4vw, 54px); letter-spacing: -1.5px; }
.hero-season { margin-top: 8px; color: var(--cyan); font-size: 13px; font-weight: 700; }
.hero-notice { max-width: 720px; margin-top: 18px; color: #9eb0c6; font-size: 12px; line-height: 1.65; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 96px); border: 1px solid rgba(83,216,255,.16); border-radius: 18px; background: rgba(5,16,29,.45); backdrop-filter: blur(10px); }
.hero-stat { padding: 18px 12px; text-align: center; border-right: 1px solid rgba(83,216,255,.12); }
.hero-stat:last-child { border-right: 0; }
.hero-stat strong { display: block; color: var(--orange-2); font-size: 26px; }
.hero-stat span { display: block; margin-top: 4px; color: #6f849f; font-size: 10px; }
.schedule-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.schedule-item { min-height: 108px; padding: 17px; border: 1px solid rgba(112,151,193,.13); border-radius: 15px; background: rgba(4,14,26,.42); }
.schedule-index { color: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.schedule-item h3 { margin: 12px 0 6px; font-size: 12px; }
.schedule-item p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.module-card { position: relative; min-height: 150px; overflow: hidden; padding: 22px; border: 1px solid rgba(112,151,193,.16); border-radius: 19px; background: linear-gradient(145deg, rgba(16,37,59,.96), rgba(8,22,39,.96)); cursor: pointer; transition: transform .18s, border-color .18s, box-shadow .18s; }
.module-card:hover { transform: translateY(-3px); border-color: rgba(83,216,255,.34); box-shadow: 0 20px 50px rgba(0,0,0,.23); }
.module-card::after { content: ""; position: absolute; right: -45px; top: -50px; width: 140px; height: 140px; border-radius: 50%; background: var(--module-color, rgba(83,216,255,.14)); opacity: .16; }
.module-code { color: var(--module-accent, var(--cyan)); font-size: 9px; font-weight: 900; letter-spacing: 1.7px; }
.module-card h3 { margin: 27px 0 7px; font-size: 18px; }
.module-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.module-card .module-arrow { position: absolute; right: 19px; bottom: 17px; color: var(--module-accent, var(--cyan)); font-size: 19px; }
.module-orange { --module-accent: #ff9c5b; --module-color: #ff7a2f; }
.module-cyan { --module-accent: #64dcff; --module-color: #53d8ff; }
.module-blue { --module-accent: #8bb6ff; --module-color: #568cff; }
.module-purple { --module-accent: #d4a4ff; --module-color: #a659e8; }
.module-red { --module-accent: #ff9494; --module-color: #e85a6f; }
.module-green { --module-accent: #8decbb; --module-color: #4bc68a; }
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); }
.quick-link { display: flex; justify-content: space-between; gap: 18px; align-items: center; min-height: 92px; padding: 20px; border-right: 1px solid var(--line); cursor: pointer; }
.quick-link:last-child { border-right: 0; }
.quick-link:hover { background: rgba(83,216,255,.025); }
.quick-link h3 { margin: 0; font-size: 14px; }
.quick-link p { margin: 6px 0 0; color: var(--muted-2); font-size: 10px; }
.quick-link b { color: var(--cyan); font-size: 22px; }
.notice-list { display: grid; gap: 11px; }
.notice-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(112,151,193,.1); }
.notice-row:last-child { border-bottom: 0; }
.notice-dot { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px rgba(255,122,47,.45); flex: none; }
.notice-row h4 { margin: 0; font-size: 13px; }
.notice-row p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; white-space: pre-wrap; }

.entry-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 20px 22px; margin-bottom: 20px; border: 1px solid rgba(83,216,255,.2); border-radius: 18px; background: rgba(12,30,49,.78); }
.entry-hero h2 { margin: 0 auto 0 0; font-size: 18px; }
.entry-hero p { width: 100%; margin: 0; color: var(--muted); font-size: 11px; }
.current-entry { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.info-list { display: grid; gap: 0; }
.info-row { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(112,151,193,.1); }
.info-row:last-child { border-bottom: 0; }
.info-key { color: var(--muted-2); font-size: 11px; }
.info-value { color: #e5edf6; font-size: 12px; font-weight: 700; }

.admin-tip { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; padding: 12px 15px; border: 1px solid rgba(255,122,47,.22); border-radius: 14px; background: rgba(255,122,47,.06); color: #b6c5d7; font-size: 11px; }
.rank-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border: 1px solid; border-radius: 999px; font-size: 10px; font-weight: 800; }
.rank-wushuang { border-color: rgba(255,119,72,.4); background: rgba(255,119,72,.11); color: #ffad83; }
.rank-dianfeng { border-color: rgba(202,135,255,.4); background: rgba(202,135,255,.11); color: #dbb5ff; }
.rank-chuanshuo { border-color: rgba(83,216,255,.4); background: rgba(83,216,255,.11); color: #8fe6ff; }
.rank-jisu { border-color: rgba(104,231,166,.4); background: rgba(104,231,166,.11); color: #9aefc3; }
.rank-number { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: rgba(110,145,184,.09); color: #91a4bc; font-size: 11px; font-weight: 900; }
.rank-number.top-1 { background: rgba(255,214,107,.14); color: #ffd66b; }
.rank-number.top-2 { background: rgba(208,220,232,.12); color: #dce6ee; }
.rank-number.top-3 { background: rgba(211,143,91,.14); color: #e9a36e; }
.roster-mobile { display: none; }

.config-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; margin-bottom: 17px; }
.config-strip strong { display: block; font-size: 12px; }
.config-strip span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.admin-action-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 17px; }
.round-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; margin-bottom: 18px; }
.round-flow { align-items: center; gap: 0; }
.round-flow-item { display: flex; flex: none; align-items: center; }
.round-flow-connector { width: 44px; display: flex; flex: none; align-items: center; color: var(--cyan); opacity: .62; }
.round-flow-connector i { flex: 1; height: 1px; background: currentColor; }
.round-flow-connector b { margin-left: -1px; font-size: 22px; font-weight: 500; line-height: 1; }
.round-tab { min-width: 128px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(12,29,47,.72); color: var(--muted); cursor: pointer; text-align: left; }
.round-tab.active { border-color: rgba(83,216,255,.38); background: rgba(30,75,107,.44); color: #dff8ff; }
.round-tab strong { display: block; font-size: 12px; }
.round-tab span { display: block; margin-top: 5px; font-size: 9px; }
.group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.group-card { overflow: hidden; border: 1px solid rgba(111,155,198,.17); border-radius: 18px; background: rgba(6,18,33,.48); }
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 17px; border-bottom: 1px solid rgba(111,155,198,.12); background: rgba(16,38,59,.5); }
.group-head h3 { margin: 0; font-size: 13px; }
.entrant-row { display: grid; grid-template-columns: minmax(120px, 1.3fr) repeat(var(--score-count, 1), minmax(75px, .55fr)) 60px 58px 72px; align-items: center; gap: 8px; min-height: 58px; padding: 8px 12px; border-top: 1px solid rgba(111,155,198,.08); font-size: 11px; }
.entrant-row:first-child { border-top: 0; }
.entrant-player strong { display: block; font-size: 12px; }
.entrant-player span { display: block; margin-top: 3px; color: var(--muted-2); font-size: 9px; }
.score-cell { text-align: center; }
.score-cell label { display: block; color: var(--muted-2); font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score-input { width: 100%; height: 32px; margin-top: 4px; padding: 0 6px; border: 1px solid rgba(116,152,194,.2); border-radius: 8px; background: rgba(4,14,26,.62); color: #f4f7fb; text-align: center; outline: none; }
.score-input:focus { border-color: rgba(83,216,255,.55); }
.entrant-total, .entrant-place { text-align: center; font-weight: 850; }
.entrant-actions { display: flex; justify-content: flex-end; }
.advance-toggle { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.final-ranking { display: grid; gap: 10px; }
.final-rank-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 100px; gap: 12px; align-items: center; min-height: 58px; padding: 10px 14px; border: 1px solid rgba(111,155,198,.13); border-radius: 14px; background: rgba(4,14,26,.42); }

.guess-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 18px; align-items: start; }
.guess-side { position: sticky; top: 84px; }
.candidate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.candidate-card { position: relative; display: flex; gap: 12px; align-items: center; min-height: 72px; padding: 12px; border: 1px solid rgba(111,155,198,.16); border-radius: 15px; background: rgba(5,17,31,.48); cursor: pointer; transition: .16s; }
.candidate-card:hover { border-color: rgba(83,216,255,.34); }
.candidate-card.selected { border-color: rgba(255,122,47,.62); background: rgba(255,122,47,.08); box-shadow: inset 0 0 0 1px rgba(255,122,47,.08); }
.candidate-card input { position: absolute; opacity: 0; }
.candidate-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(83,216,255,.1); color: var(--cyan); font-size: 12px; font-weight: 900; }
.candidate-copy { min-width: 0; flex: 1; }
.candidate-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.candidate-copy span { display: block; margin-top: 5px; color: var(--muted-2); font-size: 9px; }
.candidate-check { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid rgba(115,153,193,.28); border-radius: 6px; color: transparent; }
.candidate-card.selected .candidate-check { border-color: var(--orange); background: var(--orange); color: white; }
.admin-entry-list { max-height: 360px; overflow: auto; display: grid; gap: 8px; }
.admin-entry-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid rgba(111,155,198,.12); border-radius: 12px; background: rgba(4,14,26,.38); }
.admin-entry-item p { margin: 0; font-size: 10px; color: var(--muted); }

.leader-card { position: relative; overflow: hidden; padding: 28px; border-color: rgba(255,122,47,.28); }
.leader-card::after { content: ""; position: absolute; right: -50px; top: -80px; width: 210px; height: 210px; border-radius: 50%; background: rgba(255,122,47,.1); }
.leader-label { color: var(--cyan); font-size: 9px; font-weight: 900; letter-spacing: 1.6px; }
.leader-name { margin-top: 13px; font-size: clamp(25px, 3vw, 40px); font-weight: 900; }
.leader-points { margin-top: 8px; color: var(--orange-2); font-size: 18px; font-weight: 850; }
.medal { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 900; }
.medal-1 { color: #4b3700; background: linear-gradient(145deg, #fff0a0, #d4a926); box-shadow: 0 0 18px rgba(255,214,107,.22); }
.medal-2 { color: #3c4750; background: linear-gradient(145deg, #f2f6f9, #a9bac7); }
.medal-3 { color: #472a18; background: linear-gradient(145deg, #f3b98a, #b66b38); }
.history-list { display: grid; gap: 8px; margin-top: 12px; }
.history-item { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; gap: 10px; padding: 10px 12px; border: 1px solid rgba(111,155,198,.1); border-radius: 11px; background: rgba(4,14,26,.38); font-size: 10px; }
.history-delta.positive { color: var(--green); }
.history-delta.negative { color: var(--red); }

.duel-hero { display: grid; grid-template-columns: minmax(0,1fr) 90px minmax(0,1fr); align-items: center; gap: 18px; padding: 26px; }
.duel-player { min-height: 154px; display: grid; place-items: center; align-content: center; gap: 10px; border: 1px solid rgba(111,155,198,.16); border-radius: 18px; background: rgba(5,17,31,.5); text-align: center; }
.duel-player strong { font-size: 18px; }
.duel-player span { color: var(--muted); font-size: 10px; }
.duel-vs { width: 60px; height: 60px; margin: auto; display: grid; place-items: center; border: 1px solid rgba(255,122,47,.35); border-radius: 50%; background: rgba(255,122,47,.12); color: var(--orange-2); font-weight: 900; }
.game-list { display: grid; gap: 10px; }
.game-row { display: grid; grid-template-columns: minmax(110px, 1fr) 90px 70px 90px; gap: 10px; align-items: center; min-height: 54px; padding: 9px 12px; border: 1px solid rgba(111,155,198,.12); border-radius: 13px; background: rgba(4,14,26,.38); }
.game-row strong { font-size: 11px; }
.score-box { text-align: center; color: #dfe8f2; font-size: 15px; font-weight: 850; }

.organizer-head { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 20px; }
.progress-bar { height: 6px; margin-top: 14px; overflow: hidden; border-radius: 99px; background: rgba(112,151,193,.12); }
.progress-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--green)); }
.task-list { display: grid; gap: 8px; }
.task-item { display: grid; grid-template-columns: minmax(0,1fr) 110px 95px; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid rgba(111,155,198,.12); border-radius: 13px; background: rgba(4,14,26,.38); }
.task-item h4 { margin: 0; font-size: 12px; }
.task-item p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }

.content-tabs { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 5px; margin-bottom: 18px; }
.content-tab { min-width: 86px; height: 38px; display: grid; place-items: center; padding: 0 14px; border: 1px solid rgba(111,155,198,.16); border-radius: 12px; background: rgba(8,23,39,.55); color: #7d91a9; cursor: pointer; font-size: 11px; font-weight: 750; }
.content-tab.active { border-color: rgba(255,122,47,.48); background: rgba(255,122,47,.1); color: #ffb17a; }
.content-list { display: grid; gap: 14px; }
.content-card { overflow: hidden; }
.content-card-body { padding: 22px; }
.content-card.hidden { opacity: .65; border-style: dashed; }
.content-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.content-meta { color: var(--cyan); font-size: 9px; font-weight: 850; letter-spacing: .7px; }
.content-card h3 { margin: 9px 0 0; font-size: 18px; }
.content-value { display: inline-block; margin-top: 16px; padding: 10px 13px; border: 1px solid rgba(255,122,47,.25); border-radius: 12px; background: rgba(255,122,47,.08); color: #ffb17a; font-size: 18px; font-weight: 900; }
.content-body { margin: 15px 0 0; color: #a4b4c7; font-size: 12px; line-height: 1.85; white-space: pre-wrap; }
.reward-image { width: 100%; max-height: 320px; object-fit: cover; background: #091525; }
.content-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(111,155,198,.1); color: var(--muted-2); font-size: 10px; }
.image-picker { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 14px; align-items: center; }
.image-preview { width: 120px; height: 90px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(111,155,198,.17); border-radius: 12px; background: rgba(4,14,26,.52); color: var(--muted-2); font-size: 10px; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }

.admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.admin-module { min-height: 130px; padding: 18px; border: 1px solid rgba(111,155,198,.15); border-radius: 16px; background: rgba(4,14,26,.42); cursor: pointer; }
.admin-module:hover { border-color: rgba(83,216,255,.35); background: rgba(13,36,57,.62); }
.admin-module span { color: var(--cyan); font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.admin-module h3 { margin: 22px 0 6px; font-size: 14px; }
.admin-module p { margin: 0; color: var(--muted-2); font-size: 10px; line-height: 1.55; }
.manage-list { display: grid; gap: 9px; }
.manage-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 11px; padding: 13px 14px; border: 1px solid rgba(111,155,198,.12); border-radius: 13px; background: rgba(4,14,26,.38); }
.manage-row h4 { margin: 0; font-size: 12px; }
.manage-row p { margin: 5px 0 0; color: var(--muted-2); font-size: 10px; }
.manage-actions { display: flex; gap: 6px; }
.modal-section { padding: 18px 0; border-top: 1px solid rgba(111,155,198,.12); }
.modal-section:first-child { padding-top: 0; border-top: 0; }
.modal-section-title { margin-bottom: 15px; color: var(--cyan); font-size: 11px; font-weight: 850; letter-spacing: 1px; }

.auth-layout { min-height: calc(100vh - 64px - 108px); display: grid; place-items: center; }
.auth-card { width: min(100%, 520px); padding: clamp(24px, 4vw, 38px); }
.auth-tabs { margin-bottom: 23px; }
.identity-card { display: grid; grid-template-columns: 68px minmax(0,1fr); gap: 18px; align-items: center; }
.identity-icon { width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid rgba(83,216,255,.25); border-radius: 20px; background: rgba(83,216,255,.08); color: var(--cyan); font-size: 18px; font-weight: 900; }
.identity-card h2 { margin: 0; font-size: 20px; }
.identity-card p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.security-note { margin-top: 18px; padding: 14px 15px; border: 1px solid rgba(255,122,47,.19); border-radius: 13px; background: rgba(255,122,47,.055); color: #9bacbf; font-size: 10px; line-height: 1.7; }

.modal-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 26px; background: rgba(0,5,12,.76); backdrop-filter: blur(7px); opacity: 0; transition: opacity .18s ease; }
.modal-overlay.modal-visible { opacity: 1; }
.modal { width: min(100%, 590px); max-height: min(90vh, 900px); overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(83,216,255,.23); border-radius: 23px; background: #0b1a2c; box-shadow: 0 30px 100px rgba(0,0,0,.5); transform: translateY(12px) scale(.99); transition: transform .18s ease; }
.modal-visible .modal { transform: translateY(0) scale(1); }
.modal-wide { width: min(100%, 940px); }
.modal-header { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px 18px; border-bottom: 1px solid rgba(111,155,198,.12); }
.modal-header h2 { margin: 0; font-size: 20px; }
.modal-header p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.modal-close { font-size: 22px; line-height: 1; }
.modal-body { min-height: 0; overflow-y: auto; padding: 22px 24px 25px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap; margin-top: 22px; }

#toast-root { position: fixed; z-index: 500; right: 24px; top: 82px; display: grid; gap: 9px; pointer-events: none; }
.toast { min-width: 220px; max-width: min(380px, calc(100vw - 32px)); display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgba(111,155,198,.25); border-radius: 13px; background: rgba(10,26,43,.96); box-shadow: 0 18px 50px rgba(0,0,0,.35); color: #dce7f2; font-size: 11px; opacity: 0; transform: translateY(-8px); transition: .2s; }
.toast-show { opacity: 1; transform: translateY(0); }
.toast-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px currentColor; }
.toast-success .toast-dot { background: var(--green); }
.toast-error .toast-dot { background: var(--red); }
.toast-warning .toast-dot { background: var(--orange); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-muted { color: var(--muted); }
.text-cyan { color: var(--cyan); }
.text-orange { color: var(--orange-2); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.m-0 { margin: 0; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.w-full { width: 100%; }

@media (max-width: 1180px) {
  :root { --sidebar-width: 222px; }
  .module-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .schedule-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .group-grid { grid-template-columns: 1fr; }
  .guess-layout { grid-template-columns: 1fr; }
  .guess-side { position: static; }
  .entrant-row { min-width: 760px; }
  .group-card { overflow-x: auto; }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar, .topbar { display: none; }
  .app-main { min-width: 0; }
  .mobile-brand { position: sticky; top: 0; z-index: 40; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 8px 14px; border-bottom: 1px solid rgba(105,150,194,.14); background: rgba(7,17,31,.9); backdrop-filter: blur(18px); }
  .mobile-brand-main { min-width: 0; display: flex; align-items: center; gap: 10px; }
  .mobile-brand img { width: 34px; height: 34px; }
  .mobile-brand-copy { min-width: 0; }
  .mobile-brand-copy strong { display: block; max-width: 64vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
  .mobile-brand-copy span { display: block; margin-top: 3px; color: var(--muted-2); font-size: 9px; }
  .mobile-menu-button { display: grid; }
  .page-container { padding: 25px 14px calc(88px + env(safe-area-inset-bottom)); }
  .page-header { margin-bottom: 20px; }
  .page-header h1 { font-size: 28px; }
  .page-header-actions { max-width: 46%; }
  .page-header-actions .btn { min-height: 38px; padding: 0 12px; font-size: 10px; }
  .mobile-bottom-nav { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5,1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid rgba(105,150,194,.17); background: rgba(7,18,32,.94); backdrop-filter: blur(18px); }
  .mobile-nav-link { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #6f849f; font-size: 9px; cursor: pointer; }
  .mobile-nav-link.active { color: var(--orange-2); }
  .mobile-nav-link.active::before { content: ""; position: absolute; top: 0; left: 32%; right: 32%; height: 2px; border-radius: 2px; background: var(--orange); }
  .mobile-drawer { position: fixed; inset: 0; z-index: 100; display: block; pointer-events: none; }
  .mobile-drawer-backdrop { position: absolute; inset: 0; background: rgba(0,5,12,.74); opacity: 0; transition: .2s; }
  .mobile-drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(86vw, 350px); padding: 18px 15px calc(24px + env(safe-area-inset-bottom)); border-left: 1px solid rgba(83,216,255,.18); background: #071526; transform: translateX(100%); transition: .22s ease; overflow-y: auto; }
  .mobile-drawer.open { pointer-events: auto; }
  .mobile-drawer.open .mobile-drawer-backdrop { opacity: 1; }
  .mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 15px; border-bottom: 1px solid var(--line); }
  .drawer-head strong { font-size: 14px; }
  .drawer-nav { padding: 13px 0; }
  .drawer-account { padding-top: 14px; border-top: 1px solid var(--line); }
  .hero { min-height: 0; grid-template-columns: 1fr; align-items: start; padding: 24px 20px; }
  .hero h2 { font-size: 31px; }
  .hero-stats { grid-template-columns: repeat(3,1fr); width: 100%; }
  .schedule-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .module-card { min-height: 136px; padding: 18px; }
  .module-card h3 { margin-top: 23px; font-size: 15px; }
  .quick-links { grid-template-columns: 1fr; }
  .quick-link { min-height: 78px; border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-link:last-child { border-bottom: 0; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .form-grid .field + .field { margin-top: 0; }
  .candidate-grid { grid-template-columns: 1fr; }
  .duel-hero { grid-template-columns: 1fr; }
  .duel-vs { width: 48px; height: 48px; }
  .organizer-head { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .manage-row { grid-template-columns: minmax(0,1fr) auto; }
  .manage-row .manage-actions { grid-column: 1 / -1; }
  .roster-desktop { display: none; }
  .roster-mobile { display: grid; gap: 9px; }
  .roster-card-mobile { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 13px; border: 1px solid rgba(111,155,198,.13); border-radius: 14px; background: rgba(5,17,31,.46); }
  .roster-card-mobile h3 { margin: 0; font-size: 12px; }
  .roster-card-mobile p { margin: 6px 0 0; color: var(--muted-2); font-size: 9px; }
  .game-row { grid-template-columns: minmax(90px,1fr) 58px 42px 58px; gap: 6px; padding: 9px; }
  .task-item { grid-template-columns: minmax(0,1fr) auto; }
  .task-item > :last-child { grid-column: 1 / -1; }
  .modal-overlay { place-items: end center; padding: 0; }
  .modal { width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; transform: translateY(100%); }
  .modal-visible .modal { transform: translateY(0); }
  .modal-header { padding: 20px 18px 16px; }
  .modal-body { padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); }
  #toast-root { left: 16px; right: 16px; top: 70px; }
  .toast { width: 100%; max-width: none; min-width: 0; }
}

@media (max-width: 480px) {
  .page-container { padding-left: 12px; padding-right: 12px; }
  .page-header { align-items: flex-start; }
  .page-header-actions { max-width: 44%; }
  .card-pad { padding: 18px; }
  .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: 124px; }
  .hero { padding: 22px 17px; }
  .hero-stats { border-radius: 14px; }
  .hero-stat { padding: 14px 7px; }
  .hero-stat strong { font-size: 22px; }
  .current-entry { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-module { min-height: 116px; padding: 15px; }
  .form-actions .btn { flex: 1; }
  .content-card-head { flex-direction: column; }
  .image-picker { grid-template-columns: 1fr; }
  .image-preview { width: 100%; height: 150px; }
}

/* 网页版扩展组件 */
[hidden] { display: none !important; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.check-card { position: relative; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; border: 1px solid rgba(111,155,198,.14); border-radius: 13px; background: rgba(4,14,26,.42); cursor: pointer; }
.check-card:hover { border-color: rgba(83,216,255,.32); }
.check-card input { width: 17px; height: 17px; accent-color: var(--orange); flex: none; }
.check-card span { min-width: 0; }
.check-card b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.check-card small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 9px; }
.leaderboard-mobile { display: none; }
.leaderboard-row-mobile { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 13px; border: 1px solid rgba(111,155,198,.13); border-radius: 14px; background: rgba(5,17,31,.46); }
.leaderboard-row-mobile h3 { margin: 0; font-size: 12px; }
.leaderboard-row-mobile p { margin: 5px 0 0; color: var(--muted-2); font-size: 9px; }
.leaderboard-row-mobile > strong { color: var(--orange-2); font-size: 17px; }
.mobile-row-actions { grid-column: 2 / -1; display: flex; justify-content: flex-end; gap: 7px; }
.game-edit-row { display: grid; grid-template-columns: minmax(120px,1fr) minmax(90px,.55fr) minmax(160px,.8fr) minmax(90px,.55fr); gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid rgba(111,155,198,.12); border-radius: 13px; background: rgba(4,14,26,.38); }
.game-edit-row strong { font-size: 11px; }
.editor-list { display: grid; gap: 12px; }
.editor-row { padding: 16px; border: 1px solid rgba(111,155,198,.14); border-radius: 15px; background: rgba(4,14,26,.42); }
.editor-row .switch-row { flex: 1; border-bottom: 0; padding: 0; }
.editor-row .form-grid + .form-grid { margin-top: 14px; }
.content-body.m-0 { margin: 0; }

@media (max-width: 1050px) {
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-edit-row { grid-template-columns: minmax(110px,1fr) 90px 150px 90px; }
}

@media (max-width: 820px) {
  .leaderboard-desktop { display: none; }
  .leaderboard-mobile { display: grid; gap: 9px; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .game-edit-row { grid-template-columns: minmax(90px,1fr) 70px 130px 70px; gap: 7px; }
  .editor-row { padding: 14px; }
}

@media (max-width: 560px) {
  .check-grid { grid-template-columns: 1fr; }
  .game-edit-row { grid-template-columns: 1fr 1fr; }
  .game-edit-row > strong { grid-column: 1 / -1; }
  .game-edit-row .select { grid-column: 1 / -1; }
  .leaderboard-row-mobile { grid-template-columns: 36px minmax(0,1fr) auto; }
}
