:root { color-scheme: light; --ink:#17231d; --green:#007a4b; --bright:#00d483; --muted:#768078; --line:#e2e7e0; --paper:#f5f7f4; --red:#bc4343; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans SC",sans-serif; }
* { box-sizing:border-box; }
body { margin:0; background:#e5eae5; color:var(--ink); }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #5dc89e; outline-offset:3px; }
button { border:0; }
button:disabled { opacity:.45; cursor:default; }
[hidden] { display:none !important; }
svg { width:23px; height:23px; display:block; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.app { max-width:480px; min-height:100vh; min-height:100dvh; margin:0 auto; background:var(--paper); position:relative; padding-bottom:90px; }
.brand { height:80px; padding:17px 22px; display:flex; align-items:center; gap:11px; background:white; border-bottom:1px solid var(--line); }
.brandmark { width:37px; height:44px; border:1.5px solid var(--ink); border-bottom:4px solid var(--green); border-radius:5px; font-family:serif; font-size:21px; font-weight:bold; display:flex; align-items:center; justify-content:center; position:relative; }
.brandmark span { position:absolute; right:-4px; bottom:0; font-size:9px; background:var(--green); color:white; padding:1px 2px; }
.brand strong { font-size:22px; letter-spacing:1px; }
.brand strong span { font-size:15px; color:var(--green); }
.brand small { display:block; font-size:8px; letter-spacing:2.4px; font-weight:650; margin-top:4px; }
.icon-button { background:transparent; width:44px; height:44px; padding:10px; display:flex; justify-content:center; align-items:center; }
.brand .icon-button { margin-left:auto; color:#64756a; }
main { padding:20px; }
.hero { background:#121b15; border-radius:4px; padding:22px 21px 18px; color:white; position:relative; overflow:hidden; border-top:3px solid var(--bright); }
.hero:after { content:''; position:absolute; right:-53px; top:10px; width:200px; height:200px; border:28px solid #203d2a; border-radius:50%; opacity:.45; pointer-events:none; }
.eyebrow { font-size:10px; letter-spacing:1.2px; display:flex; align-items:center; gap:7px; font-weight:600; position:relative; z-index:1; }
.live-dot { width:6px; height:6px; background:var(--bright); border-radius:50%; }
.tag { margin-left:auto; font-size:9px; letter-spacing:0; border:1px solid #3d5244; color:#bbcabf; padding:4px 6px; border-radius:2px; }
h1 { font-size:32px; letter-spacing:-1px; line-height:1.3; margin:21px 0 18px; font-weight:800; position:relative; z-index:1; }
h1>span { color:var(--bright); }
.hero-bottom { display:flex; align-items:center; justify-content:space-between; position:relative; z-index:1; color:#aab9ad; font-size:11px; }
.hero-tile { border:1px solid #587d63; border-bottom:3px solid #587d63; border-radius:3px; color:#78b38a; height:34px; width:25px; display:grid; place-items:center; font-size:22px; font-family:serif; transform:rotate(9deg); }
.section-heading { display:flex; align-items:center; justify-content:space-between; margin:26px 0 15px; }
h2 { font-size:19px; margin:0 0 6px; }
.section-heading p { margin:0; font-size:10px; color:var(--muted); }
.text-button { color:var(--green); background:transparent; font-size:11px; padding:12px 2px; font-weight:600; min-height:44px; }
.input-methods { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-bottom:16px; }
.input-methods button { background:#e9f0e9; padding:14px 4px 11px; color:var(--green); border:1px solid #dce5da; border-radius:5px; min-height:95px; }
.input-methods svg { margin:0 auto 9px; }
.input-methods strong { display:block; font-size:12px; }
.input-methods small { display:block; font-size:9px; font-weight:400; color:#7a897d; margin-top:5px; }
.player-inputs { border:1px solid var(--line); border-radius:6px; overflow:hidden; background:white; }
.player-row { display:grid; grid-template-columns:32px 1fr 125px; align-items:center; gap:11px; padding:14px; border-bottom:1px solid var(--line); }
.player-row:last-child { border-bottom:0; }
.seat { width:31px; height:34px; background:#f1f4ef; border:1px solid #e2e7de; border-bottom:3px solid #b9cabc; border-radius:3px; display:grid; place-items:center; font-family:serif; font-weight:bold; font-size:18px; }
.player-row:first-child .seat { color:var(--green); background:#e4f3e9; border-color:#b7d6c0; }
.input-wrap { min-width:0; }
.input-wrap label { display:block; font-size:8px; letter-spacing:1px; color:#8a968c; margin-bottom:4px; }
.input-wrap input { border:0; background:transparent; min-width:0; width:100%; height:30px; padding:0; border-radius:0; color:var(--ink); }
.input-wrap .name { font-size:13px; }
.score-wrap { text-align:right; position:relative; }
.score-wrap input { text-align:right; padding-right:17px; font-size:22px; font-weight:650; font-variant-numeric:tabular-nums; letter-spacing:-.6px; }
.score-wrap input::placeholder { font-size:15px; font-weight:400; color:#b9c2ba; }
.score-wrap:after { content:'点'; font-size:9px; color:#859087; position:absolute; right:0; bottom:7px; }
.total { display:flex; justify-content:space-between; font-size:11px; margin:14px 2px 10px; color:#69776d; }
.total b { font-variant-numeric:tabular-nums; margin-left:8px; color:var(--ink); font-size:13px; }
.good { color:var(--green) !important; }
.bad { color:var(--red) !important; }
.supply-hint { font-size:10px; line-height:1.8; color:#8a958d; margin:10px 0 16px; }
.result-panel { background:white; border:1px solid #c5daca; border-radius:5px; padding:13px 15px; margin-top:16px; }
.result-heading { display:flex; justify-content:space-between; font-size:11px; color:var(--green); font-weight:650; padding-bottom:8px; border-bottom:1px solid #e6ede6; }
.result-heading small { color:var(--muted); font-weight:400; font-size:9px; }
.result-row { display:grid; grid-template-columns:45px 1fr 64px 76px; align-items:center; gap:5px; padding:11px 0 3px; font-size:11px; }
.result-row .name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rank { color:#8d978f; font-size:9px; }
.rank.first { color:var(--green); font-weight:700; }
.raw { font-variant-numeric:tabular-nums; color:#8a938b; font-size:10px; text-align:right; }
.pt { font-size:18px; text-align:right; font-weight:700; font-variant-numeric:tabular-nums; letter-spacing:-.6px; }
.pt small { font-size:8px; font-weight:400; margin-left:3px; letter-spacing:0; }
.positive { color:var(--green); }
.negative { color:var(--red); }
.validation { color:var(--red); font-size:11px; line-height:1.6; margin:12px 0; }
.save-area { margin:19px 0 5px; text-align:center; }
.primary { min-height:50px; background:var(--green); border-radius:4px; color:white; font-weight:650; font-size:14px; width:100%; display:flex; gap:8px; align-items:center; justify-content:center; padding:12px; }
.primary svg { width:19px; height:19px; }
.save-area p { font-size:9px; color:#9aa29b; margin:11px 0 0; }
.nav { position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:480px; min-height:76px; background:#fff; border-top:1px solid var(--line); display:flex; z-index:3; padding:6px 18px max(8px,env(safe-area-inset-bottom)); }
.nav button { flex:1; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:6px; font-size:10px; background:transparent; color:#96a098; min-height:57px; }
.nav .active { color:var(--green); font-weight:650; }
.nav .active svg { background:#e4f2e8; width:43px; height:30px; padding:4px 11px; border-radius:14px; }
.page-heading { padding:18px 0 24px; }
.green { color:var(--green); }
.page-heading h1 { font-size:29px; margin:12px 0 10px; }
.page-heading h1>span { color:var(--green); }
.page-heading p { font-size:11px; color:var(--muted); margin:0; }
.empty { padding:44px 20px; background:white; border:1px dashed #d7e0d5; text-align:center; border-radius:7px; color:var(--muted); }
.empty svg { margin:0 auto 20px; width:35px; height:35px; color:#a3b8a9; }
.empty strong { color:#53685a; font-size:15px; }
.empty p { font-size:11px; line-height:1.8; }
.history-card { border:1px solid var(--line); border-radius:5px; padding:15px; background:white; margin-bottom:13px; }
.history-card header { display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); padding-bottom:12px; margin-bottom:3px; }
.history-card header strong { font-size:12px; }
.history-card time { font-size:10px; color:var(--muted); display:block; margin-top:5px; }
.card-actions { display:flex; gap:4px; }
.card-actions button { min-height:44px; padding:8px; background:#f2f5f0; color:#5e7365; font-size:10px; border-radius:3px; }
.standing { display:grid; grid-template-columns:29px 1fr auto; gap:11px; align-items:center; background:white; border:1px solid var(--line); padding:20px 15px; margin-bottom:10px; border-radius:5px; }
.standing.top { border-left:3px solid var(--green); background:#f0f7ef; }
.standing .place { font-size:23px; color:#c1cdc0; font-weight:700; font-style:italic; }
.standing.top .place { color:var(--green); }
.standing strong { display:block; font-size:14px; overflow-wrap:anywhere; }
.standing p { margin:5px 0 0; color:var(--muted); font-size:10px; }
.standing .pt { font-size:27px; }
dialog { border:0; border-radius:16px 16px 0 0; color:var(--ink); background:var(--paper); padding:0 22px 24px; width:100%; max-width:480px; max-height:88dvh; margin:auto auto 0; overscroll-behavior:contain; }
dialog::backdrop { background:#0b1f16a6; }
.sheet-top { height:45px; display:flex; align-items:center; position:relative; }
.sheet-handle { width:37px; height:4px; border-radius:2px; background:#cbd5cd; margin:0 auto; }
.sheet-top .icon-button { position:absolute; right:-10px; top:3px; }
dialog h2 { margin:5px 0 12px; font-size:22px; }
dialog p { font-size:12px; line-height:1.8; color:#708075; }
dialog .formula { font-size:13px; padding:17px 13px; background:#e8f1e7; border-left:3px solid var(--green); color:var(--green); }
.rules-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:5px; text-align:center; margin:20px 0; }
.rules-grid div { background:white; border:1px solid var(--line); border-radius:4px; padding:14px 0; }
.rules-grid span { display:block; font-size:10px; color:var(--muted); margin-bottom:6px; }
.rules-grid b { font-size:19px; }
.source-link { display:block; background:transparent; color:var(--green); font-size:12px; min-height:44px; padding:10px 0; }
.disclaimer { font-size:9px; margin-top:16px; }
.review-source { width:100%; resize:vertical; border:1px solid #d6dfd6; border-radius:4px; background:white; padding:10px; height:92px; font-size:11px; color:#5f7164; margin-top:5px; }
.review-row { display:grid; grid-template-columns:29px 1fr 120px; gap:8px; align-items:center; margin:13px 0; }
.review-row .review-name { font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.review-row input { width:100%; padding:10px; text-align:right; border:1px solid #d4dfd3; border-radius:4px; background:white; font-size:17px; }
.candidate-list { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0 16px; }
.candidate-list button { border:1px solid #b5d4bd; background:#e8f3e8; color:var(--green); border-radius:4px; padding:8px 10px; font-size:12px; min-height:40px; }
.review-row.focused { background:#e5f1e5; margin-left:-6px; margin-right:-6px; padding:5px 6px; border-radius:5px; }
.review-status { color:var(--red); font-size:11px; min-height:25px; margin:10px 0; }
.secondary { background:white; border:1px solid #d8e1d6; border-radius:4px; padding:13px; width:100%; min-height:46px; color:var(--green); font-size:12px; margin-top:10px; }
.toast { position:fixed; z-index:10; top:18px; left:50%; transform:translateX(-50%); max-width:calc(100% - 32px); width:max-content; background:#183d2d; color:white; font-size:12px; padding:14px 18px; border-radius:6px; box-shadow:0 5px 20px #0003; }
@media (min-width:600px) { .app { box-shadow:0 0 40px #15341d18; } }
@media (max-width:360px) { main { padding:16px; } .brand { padding-left:18px; } .player-row { grid-template-columns:28px 1fr 112px; gap:8px; padding:12px; } h1 { font-size:29px; } .eyebrow { font-size:9px; } .section-heading p { font-size:9px; } }
