:root {
  --ink:#183235; --muted:#54666a; --green:#00764f; --mint:#e2f4ec; --line:#dbe8e5;
  --surface:#ffffff; --cream:#f3f9f8; --accent:#08764d;
  --chip:linear-gradient(145deg,#edf9f2,#def2e7);
  --card-shadow:inset 0 1px 0 #fff,0 2px 3px #1b514813,0 5px 12px -5px #194c452b;
  --active:linear-gradient(125deg,#099d5f,#007d47 58%,#006638);
  --icon-live:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.65%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M14%202%204%2014h7l-1%208%2010-13h-7z%22%2F%3E%3C%2Fsvg%3E");
  --icon-favorites:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.65%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22m12%202%203%206.5%207%20.9-5.1%205%201.2%207-6.1-3.4-6.1%203.4%201.2-7L2%209.4l7-.9z%22%2F%3E%3C%2Fsvg%3E");
  --icon-schedule:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.65%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%203v5m10-5v5M3%2011h18%22%2F%3E%3C%2Fsvg%3E");
  --icon-hall:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.65%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%228%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M2%2021v-2c0-3.3%203.5-5%208-5s8%201.7%208%205v2zm15-17c4%20.6%205%206%201%208m1%202c2%20.7%203%202%203%205%22%2F%3E%3C%2Fsvg%3E");
  --icon-messages:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.65%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M4%2018h16c-2-2-2-4-2-8a6%206%200%200%200-12%200c0%204%200%206-2%208Zm5.5%202a3%203%200%200%200%205%200%22%2F%3E%3C%2Fsvg%3E");
  --icon-profile:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.65%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%227%22%20r%3D%224.5%22%2F%3E%3Cpath%20d%3D%22M3%2021v-2c0-3.3%204-5.5%209-5.5s9%202.2%209%205.5v2Z%22%2F%3E%3C%2Fsvg%3E");
  --icon-ball:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.65%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22m12%208%204%203-1.5%204.5h-5L8%2011z%22%2F%3E%3Cpath%20d%3D%22M12%208V5l3-2m1%208%203-1%202-3m-6.5%208.5%202%203.2%203.2-.2m-10.2-3-2.2%203.2.6%202.4M8%2011l-3.5-1L3%2012m1.5-2%20.6-4.5M7.3%2018.7%204%2018m12.5.7-1%202.3M12%205%209%203%22%2F%3E%3C%2Fsvg%3E");
  --icon-signal:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.65%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20stroke-width%3D%223%22%20d%3D%22M5%2019v-4m7%204V9m7%2010V4%22%2F%3E%3C%2Fsvg%3E");
}
html{min-height:100%;background:var(--cream)}
body{position:relative;isolation:isolate;min-height:100vh;min-height:100dvh;margin:0;color:var(--ink);font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;background:transparent}
body::before,body::after{content:"";position:fixed;pointer-events:none;z-index:-1}
body::before{inset:0;background:radial-gradient(ellipse at 13% 52%,#f9fbfc 52%,transparent 74%),linear-gradient(140deg,#d7eee8,#f3f9f8 52%,#d7eee8)}
body::after{width:clamp(92px,14vw,158px);aspect-ratio:1;right:max(1%,calc((100vw - 1024px)/2));top:130px;background:#077d60;opacity:.055;transform:rotate(-13deg);-webkit-mask:var(--icon-ball) center/contain no-repeat;mask:var(--icon-ball) center/contain no-repeat}
header{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(110deg,#008363,#00553f);color:white;border:0}
header::before,header::after{content:"";position:absolute;z-index:-1;pointer-events:none;border-radius:50%}
header::before{width:92%;height:240%;left:-24%;bottom:21%;background:linear-gradient(140deg,#10ab80,#008263);transform:rotate(-12deg)}
header::after{width:84%;height:230%;right:-17%;top:55%;background:linear-gradient(160deg,#00694f,#004b3b);transform:rotate(-10deg)}
header nav a,.bar #account{color:#fff}
.brand{color:white;letter-spacing:.02em;font-weight:850;text-decoration:none;display:inline-flex;align-items:center;gap:9px}
.brand i{display:inline-grid;place-items:center;flex:none;width:1.19em;height:1.19em;border:2px solid currentColor;border-radius:26%;font:inherit;color:white;background:transparent;padding:0}
.brand i::after{content:"";width:38%;aspect-ratio:1;border:1.8px double currentColor;border-radius:50%}
.nav-icon{display:inline-grid;place-items:center;flex:none}
.nav-icon::before{content:"";width:21px;height:21px;background:currentColor;-webkit-mask:var(--glyph) center/contain no-repeat;mask:var(--glyph) center/contain no-repeat}
.i-live{--glyph:var(--icon-live)}
.i-favorites{--glyph:var(--icon-favorites)}
.i-schedule{--glyph:var(--icon-schedule)}
.i-hall{--glyph:var(--icon-hall)}
.i-messages{--glyph:var(--icon-messages)}
.i-profile{--glyph:var(--icon-profile)}
.i-ball{--glyph:var(--icon-ball)}
.dock{position:fixed;bottom:0;left:50%;right:auto;transform:translateX(-50%);width:min(100%,975px);z-index:4;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:5px 8px max(5px,env(safe-area-inset-bottom));background:linear-gradient(160deg,#ffffff,#f8fcfa);border:1px solid #dce8e5;border-bottom:0;border-radius:24px 24px 0 0;box-shadow:inset 0 1px white,0 -3px 15px #18564b18}
.dock>a,.dock>button{font-family:inherit;font-size:12px;font-weight:600;line-height:1.3;display:grid;justify-items:center;gap:2px;align-content:center;min-height:52px;margin:0;padding:0;background:transparent;border:0;border-radius:12px;color:#41565a;text-decoration:none}
.dock .nav-icon{height:27px;width:40px;border-radius:11px}
.dock .on,.dock [aria-current=page]{color:#007247}
.dock .on .nav-icon,.dock [aria-current=page] .nav-icon{background:var(--active);color:white}
:focus-visible{outline:2px solid #00784e;outline-offset:2px}
[hidden]{display:none!important}
@media(min-width:760px){.dock{bottom:10px;border:1px solid var(--line);border-radius:20px;width:min(610px,90%)}}
/* Keep the navigation outside the native scrolling area, including when text wraps. */
body.page-shell{display:flex;flex-direction:column;height:100vh;height:100dvh;min-height:0;overflow:hidden;padding:env(safe-area-inset-top,0px) 0 0}
.page-shell>header,.page-shell>.board-nav,.page-shell>.dock{flex:none}

.page-shell>.page-scroll{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scroll-padding-block:8px}
.page-shell>.page-scroll:focus:not(:focus-visible){outline:none}
.page-shell>.dock{position:relative;inset:auto;transform:none;align-self:center}
@media(min-width:760px){.page-shell>.dock{margin-block:5px 10px}}

.page-shell:has(.board-auth){padding-top:0}
.page-shell>header:has(.board-auth){padding-top:env(safe-area-inset-top,0px);background:#00654c;filter:none;backdrop-filter:none}
header:has(.board-auth)::before,header:has(.board-auth)::after{content:none}
.board-auth{margin-inline-start:auto;display:flex;align-items:center;gap:8px;min-width:0}
.bar .board-auth a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 13px;margin:0;border:1px solid #b9e2d5;border-radius:7px;color:white;text-decoration:none;font-size:15px;font-weight:700;opacity:1;overflow-wrap:anywhere}
.bar .board-auth #signup{background:white;color:#005d45}

/* Use the device's native Chinese sans-serif and light surfaces for black text. */
:root{--heiti:SimHei,"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;--active:linear-gradient(125deg,#c5f0df,#8dd7bb);--ink:#000;--muted:#000}
body.page-shell,body.page-shell *{font-family:var(--heiti)!important;color:#000!important}
.page-shell ::placeholder{color:#000;opacity:.75}
.page-shell>header,.page-shell>header:has(.board-auth){background:linear-gradient(110deg,#d4f1e7,#a0d9c6)}
.page-shell>header::before,.page-shell>header::after{opacity:.1}
.page-shell .board-auth a{background:#edf9f3;border-color:#71a894}
.page-shell .stadium-top,.page-shell .score-panel,.page-shell .stadium-foot{background:rgb(246 252 248 / 94%)}
.page-shell .stadium-top button,.page-shell #toast{background:#f4faf6;border:1px solid #afc9bd}
.page-shell .stadium-top .league{text-shadow:none}
.page-shell .discipline img{filter:brightness(0)}
.page-shell .match-head .league::before,.page-shell .stadium-top .league::before{content:"";display:inline-block;width:.32em;height:.85em;background:var(--league-ink);border-radius:2px;margin-right:.28em;vertical-align:-.02em}
