:root{color-scheme:light;--paper: #fff6e5;--ink: #2b2140;--white: #fffefa;--night: #1b1f3b;--orange: #ff7a1a;--sun: #ffd541;--rose: #ff5d73;--muted: #5b526e;--line: 3px solid var(--ink);--shadow: 4px 4px 0 var(--ink);font-family:system-ui,PingFang SC,Microsoft YaHei,Noto Sans CJK SC,sans-serif;color:var(--ink);background:var(--paper);line-height:1.45;-webkit-text-size-adjust:100%}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-width:0}body.modal-open{overflow:hidden}h1,h2,h3,p,dl,dd{margin:0}h1,h2,h3,p,a,strong,summary,label,button{overflow-wrap:anywhere}h1{font-size:1.8rem;line-height:1.15}h2{font-size:1.07rem;line-height:1.25}h3{font-size:1rem}a{color:#8d3d00}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #167c76;outline-offset:3px}canvas{display:block;image-rendering:crisp-edges;image-rendering:pixelated}dt{font-weight:800}dd{color:var(--muted)}dd+dt{margin-top:8px}.shell{width:100%;max-width:540px;margin:0 auto;min-height:100vh;min-height:100svh}.page{padding:24px 20px 30px}.stack{display:grid;gap:12px}.stack>*,.split>*,.actions>*{min-width:0}.split,.actions,.footer-links{display:flex;justify-content:space-between;align-items:center;gap:8px}.actions{justify-content:flex-start;flex-wrap:wrap}.center{text-align:center}.note{color:var(--muted);font-size:.86rem}.tabular{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-variant-numeric:tabular-nums}.panel{border:var(--line);background:var(--white);padding:13px;min-width:0}.raised,.primary{box-shadow:var(--shadow)}.notice{padding:10px 12px;background:#fff0bf;border:var(--line);font-weight:700}.error{color:#a11d3d}.muted-link,.text-button{color:var(--muted);text-underline-offset:3px}.text-button{border:0;background:transparent;padding:4px 0;text-decoration:underline}.button{display:inline-flex;justify-content:center;align-items:center;min-height:46px;padding:9px 13px;border:var(--line);text-align:center;text-decoration:none;color:var(--ink);font-weight:800;line-height:1.24}.primary{min-height:56px;background:var(--orange);font-size:1.16rem}.secondary{background:var(--white)}.button:active:not(:disabled){transform:translate(2px,2px)}.primary:active:not(:disabled){box-shadow:2px 2px 0 var(--ink)}button:disabled{color:var(--muted);background:#eee8e8}button.primary:disabled{box-shadow:none}.form-status{min-width:0;font-size:.88rem;font-weight:700}.form-status:empty{display:none}.page-header{display:flex;align-items:center;gap:14px;margin-bottom:9px}.page-header>div{min-width:0}.page-header .note{margin-top:4px}.back{display:grid;place-items:center;width:39px;height:42px;flex-shrink:0;color:var(--ink);text-decoration:none;font-size:2.5rem;font-weight:900;line-height:1}.field{display:grid;gap:7px}input:not([type=checkbox]),textarea,select{display:block;width:100%;min-width:0;min-height:44px;border-radius:0;border:var(--line);padding:8px 10px;background:var(--white)}input[type=checkbox]{width:22px;height:22px;margin:0;flex:0 0 auto;accent-color:var(--orange)}.check-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.check-row .note{display:block;margin-top:2px}.stage{background:var(--night);color:#eee8f9;position:relative;overflow:hidden}.stage:after{position:absolute;content:"";left:0;right:0;bottom:0;height:15px;background:repeating-linear-gradient(90deg,#8b5a2b 0 14px,#a66c37 14px 28px)}.home{display:flex;flex-direction:column}.hero{text-align:center;padding:42px 12px 25px}.hero h1{color:var(--sun);text-shadow:4px 4px 0 var(--rose);font-size:2.55rem;font-weight:950;letter-spacing:.08em}.hero p{margin-top:14px;font-size:.93rem}.hero-lineup{display:flex;justify-content:center;gap:5px;margin-top:22px}.hero-lineup canvas{width:58px;height:58px}.home-body{display:flex;flex-direction:column;flex:1;padding:22px 20px}.home-actions{margin-top:auto;padding-top:24px}.home-actions>.muted-link{text-align:center}.room-list{display:grid;gap:14px}.room-card{display:block;color:inherit;text-decoration:none;padding:14px}.room-card h3{font-size:1.1rem}.room-card .stack{gap:6px}.room-card .tabular{font-size:1.05em}.badge,.tiny-badge{padding:2px 5px;font-weight:750;white-space:nowrap;font-size:.76rem;border:2px solid var(--ink)}.pending{background:#ffe4cd}.badge.pending{background:var(--orange)}.done{background:#bdece5}.empty{color:var(--muted)}.enter-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.enter .form-status:not(:empty){margin-top:8px}.enrollment{display:flex;flex-direction:column;gap:14px}.enroll-form{flex:1;align-content:start;gap:15px}.preview{display:grid;place-items:center;min-height:174px;border:var(--line);padding:7px 0 18px}.preview canvas{width:128px;height:128px}.options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.option{min-width:0;border:var(--line);border-radius:0;background:var(--white);padding:8px 5px;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:.92rem}.option canvas{width:38px;height:38px;object-fit:contain}.option span{font-size:.78rem;color:var(--muted);line-height:1.35}.option[aria-pressed=true]{border-color:var(--orange);background:#ffe8d5;box-shadow:var(--shadow)}.form-end{padding-top:8px}.form-end .note{text-align:center}.enrollment>.muted-link{align-self:center}.recovery{text-align:center}.recovery-code{font-family:ui-monospace,monospace;letter-spacing:.14em;text-indent:.14em;font-size:2.3rem;color:var(--ink);font-weight:850}.invite-url{font-size:.83rem}.lobby{gap:15px;align-content:start}.lobby>div:empty{display:none}.timer{text-align:center;background:var(--night);color:#f3ebfa;padding:14px 6px}.timer .note{color:#e6dfef}.countdown{color:var(--sun);font-size:2.25rem;letter-spacing:.06em;line-height:1.3;padding:3px 0}.player-grid,.target-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.player-card{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;text-align:center;gap:2px;padding:6px 2px;border:2px solid var(--ink);background:var(--white);font-size:.8rem}.player-card canvas,.target-grid canvas{width:44px;height:44px;max-width:100%}.player-card .note{font-size:.72rem}.player-card.self{background:#ffe8d5;border-color:var(--orange)}.player-card.npc{background:#eeebf4;border-style:dashed;color:var(--muted)}.player-card.npc,.invite-tile{justify-content:center}.invite-tile{border-style:dashed}.invite-tile span{font-size:1.5rem;font-weight:900;line-height:1}.tiny-badge{padding:0 3px;border-width:1px;font-size:.68rem}.owner{background:#e8e3ff}.shield{background:#ffdf6b}.last-battle{font-size:.9rem}.disclosure>summary,.delete-info>summary{cursor:pointer;font-weight:800}.disclosure-body{margin-top:12px}.my-player{display:flex;align-items:center;gap:8px;min-width:0}.my-player canvas{width:56px;height:56px}.settings-form .check-row{padding:8px 0;border-top:1px solid #d8cbdb}.member-list{list-style:none;display:grid;gap:9px;margin:0;padding:0}.member-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-top:8px;border-top:1px solid #d8cbdb}.member-row .actions{justify-content:flex-end}.member-row .button{padding:5px 6px;font-size:.78rem;min-height:36px;border-width:2px}.lobby-footer{color:var(--muted);font-size:.86rem;border-top:2px solid #d8cbdb;padding-top:10px}.decision{align-content:start}.decision-form{gap:16px}.decision-form section{gap:8px}.decision-form .options .option{text-align:left;align-items:flex-start;padding:8px}.decision-form .item-options .option{text-align:center;align-items:center}.target-grid .option{padding:3px;border-width:2px;gap:1px}.target-grid .option[aria-pressed=true]{box-shadow:none}.grudge .option[aria-pressed=true]{border-color:#bb2143;background:#ffe3e9}.ally .option[aria-pressed=true]{border-color:#00786e;background:#d6f4ef}.target-grid .option:disabled canvas{opacity:.45}.scrim{position:fixed;z-index:3;inset:0;display:grid;place-items:center;background:#1b1f3bb3;padding:16px}.modal{display:grid;gap:12px;padding:16px;width:100%;max-width:390px;max-height:100%;overflow:auto;box-shadow:var(--shadow)}.modal textarea{margin-top:8px}.modal .actions{justify-content:flex-end}#toast:not(:empty){position:fixed;z-index:4;bottom:14px;left:50%;transform:translate(-50%);width:max-content;max-width:calc(100% - 36px);border:var(--line);background:var(--night);color:#fff;padding:8px 12px;box-shadow:var(--shadow)}[hidden]{display:none!important}.enrollment-success{align-content:start}.enrollment-success>.raised{padding-block:10px}.enrollment-success .enter-lobby{min-height:46px;font-size:1rem}.replay{display:flex;flex-direction:column;gap:12px;background:var(--night);color:#eee8f9}.replay-heading{align-items:flex-start}.replay-heading h1{font-size:1.3rem;color:#fffefa}.replay-heading p{font-size:.82rem;margin-top:4px}.replay-heading .actions{flex:none}.replay-heading .button{padding-inline:8px;border-color:#fffefa;min-height:42px}.replay-heading .secondary{background:transparent;color:#fffefa}.replay-speed{background:var(--sun)}.replay-round{color:var(--sun)}.replay-banner{display:flex;align-items:center;gap:8px;padding:8px;border:3px solid var(--ink);outline:2px solid var(--sun);background:var(--sun);color:var(--ink);font-size:.9rem;font-weight:800}.replay-banner strong{flex:none;background:var(--ink);color:var(--sun);padding:3px 5px}.arena{width:100%;height:auto;border:3px solid #51577e;background:#282e54}.replay-captions{background:#10142f;border:3px solid #51577e;padding:8px 10px;margin:0;list-style:none;display:grid;gap:5px;font-size:.84rem;color:#c9c5e0}.replay-captions li{overflow-wrap:anywhere}.replay-captions li:last-child{font-weight:750;color:#fff}.replay-captions span{display:inline-block;margin-right:8px}.replay-footer{margin-top:auto;color:#ddd7ec;font-size:.85rem}.replay-back{align-self:start;color:#eee8f9;font-size:.85rem}.report-hero{text-align:center;padding:16px 20px 34px}.report-nav{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;margin-bottom:10px}.report-nav .back{color:var(--white);width:28px}.report-nav p,.report-hero p{color:#ddd7ec;font-size:.86rem}.report-nav .button{background:transparent;color:var(--white);border-color:var(--white);min-height:38px;padding:5px 8px}.pixel-crown{width:36px;height:20px;margin:0 auto}.winner-art{display:flex;justify-content:center;flex-wrap:wrap;margin:1px 0 6px}.winner-art canvas{width:96px;height:96px}.report-hero h1{color:var(--sun);font-size:1.65rem;margin-bottom:8px}.report-body{gap:18px}.title-wall{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.award{padding:8px 10px}.award strong{font-size:1.05rem}.grudge-award,.betrayed{background:#ffe3e9}.ally-award{background:#d6f4ef}.betrayed{border:2px dashed #b8284a;padding:8px}.earned{color:#984000}.report-relations{list-style:none;padding:0;margin:0;border:var(--line);background:var(--white)}.report-relations li{display:flex;gap:8px;align-items:baseline;justify-content:space-between;padding:8px 10px}.report-relations li+li{border-top:1px solid #d8cbdb}.report-relations strong{text-align:right}.season-page{align-content:start}.season-controls select{width:auto;max-width:63%}.season-progress,.score-history{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.season-progress span{height:14px;border:2px solid var(--ink);background:var(--white)}.season-progress .played{background:var(--orange)}.season-leader{background:var(--night);color:#eee8f9}.season-leader ul{list-style:none;padding:4px 0 0;margin:0}.season-leader li{display:flex;gap:14px;align-items:center;padding-top:5px}.season-leader strong{color:var(--sun);font-size:1.35rem}.leader-art>canvas:last-child{width:58px;height:58px}.leader-art .pixel-crown{width:27px;height:15px}.season-table{width:100%;border:var(--line);border-collapse:collapse;background:var(--white);font-size:.83rem;text-align:center}.season-table th,.season-table td{padding:5px 4px}.season-table thead{border-bottom:var(--line);color:var(--muted);font-size:.76rem}.season-table tbody+tbody{border-top:1px solid #d8cbdb}.season-table th[scope=row]{text-align:left;overflow-wrap:anywhere}.season-player{display:flex;align-items:center;gap:4px}.season-player canvas{width:30px;height:30px;flex:none}.season-points{font-weight:850}.current-player{background:#ffe8d5}.score-history{list-style:none;margin:0 3px 3px;padding:0}.score-history li{display:grid;padding:2px;background:#f2edf4;min-width:0}.score-history span{color:var(--muted);font-size:.64rem}.score-history strong{font-variant-numeric:tabular-nums;color:#06664d}.share-image{display:block;width:100%;height:auto;-webkit-touch-callout:default}
