body.game-page{color:#102f29;background:#f3eedf;margin:0}body.game-page *{box-sizing:border-box}.history-app{--paper:#f3eedf;--forest:#0b4438;--gold:#e9c264;--red:#ad322d;--ink:#102f29;--muted:#68716b;min-height:100vh;font-family:Noto Serif SC,Songti SC,serif}.history-app [hidden]{display:none!important}.history-header{border-bottom:1px solid #d5cab1;justify-content:space-between;align-items:center;gap:1rem;min-height:88px;padding:0 clamp(1rem,4vw,3.5rem);display:flex}.history-logo{color:var(--ink);align-items:baseline;gap:.8rem;text-decoration:none;display:flex}.history-logo em{color:var(--red);font-size:2.6rem}.history-logo strong{font-size:1.35rem}.history-header nav{gap:1.5rem;display:flex}.history-header nav a{color:var(--ink);text-underline-offset:.25rem}.history-intro,.history-controls,.history-summary,.history-list,.history-empty,.history-danger{width:min(1200px,100% - 2rem);margin-inline:auto}.history-intro{border-bottom:1px solid var(--ink);grid-template-columns:1fr 1fr;align-items:end;gap:3rem;padding:clamp(3rem,7vw,7rem) 0 3rem;display:grid}.history-intro span{color:var(--red);letter-spacing:.15em;font-size:.7rem}.history-intro h1{letter-spacing:-.06em;margin:.7rem 0 0;font-size:clamp(3.2rem,7vw,7rem);font-weight:500;line-height:1.05}.history-intro p{max-width:32rem;color:var(--muted);line-height:1.9}.history-controls{border-bottom:1px solid #c5baa2;justify-content:space-between;gap:1rem;padding:1.4rem 0;display:flex}.view-tabs,.date-tabs{flex-wrap:wrap;gap:.5rem;display:flex}.history-controls button,.history-controls label{color:var(--ink);cursor:pointer;background:0 0;border:1px solid #b7aa90;padding:.65rem .9rem}.history-controls button[aria-pressed=true]{border-color:var(--red);background:var(--red);color:#fff8e8}.history-controls label{align-items:center;gap:.5rem;display:flex}.history-controls input{background:0 0;border:0}.history-summary{background:#b7aa90;border:1px solid #b7aa90;grid-template-columns:repeat(4,1fr);gap:1px;margin-top:2rem;display:grid}.history-summary div{background:#f3eedf;flex-direction:column;gap:.5rem;padding:1.3rem;display:flex}.history-summary strong{font-size:1.8rem}.history-list{border-top:1px solid var(--ink);margin-top:2rem}.history-record{border-bottom:1px solid #b7aa90}.history-record summary{cursor:pointer;grid-template-columns:8rem 1fr auto;align-items:center;gap:1.5rem;padding:1.3rem .3rem;display:grid}.history-record time,.history-record small{color:var(--muted)}.history-record h2{margin:0;font-size:1.45rem;font-weight:500}.record-score{color:var(--red);font-size:1.1rem}.record-detail{padding:0 1rem 1.5rem}.record-meta{color:var(--muted);flex-wrap:wrap;gap:1rem 2rem;padding:1rem 0;display:flex}.record-round{border-top:1px solid #cec3ad;grid-template-columns:3rem 1fr auto;gap:1rem;padding:.8rem 0;display:grid}.record-round p{margin:.25rem 0}.record-actions{justify-content:flex-end;margin-top:1rem;display:flex}.record-actions button,.history-danger button{border:1px solid var(--red);color:var(--red);cursor:pointer;background:0 0;padding:.65rem .9rem}.history-empty{background:var(--forest);color:#f4ead5;min-height:420px;margin-top:2rem;padding:clamp(2rem,6vw,5rem)}.history-empty span{color:var(--gold)}.history-empty h2{font-size:clamp(2.5rem,5vw,4rem);font-weight:500}.history-empty a{color:var(--gold)}.history-danger{justify-content:flex-end;gap:.8rem;padding:4rem 0;display:flex}.undo-toast{background:var(--forest);color:#fff8e8;align-items:center;gap:1rem;padding:1rem;display:flex;position:fixed;bottom:1rem;right:1rem;box-shadow:0 12px 35px #00000040}.undo-toast button{color:var(--gold);background:0 0;border:0;text-decoration:underline}dialog{color:#102f29;background:#f3eedf;border:1px solid #b88a33;width:min(520px,100% - 2rem);padding:2rem}dialog::backdrop{background:#051f1ab3}dialog div{justify-content:flex-end;gap:.7rem;display:flex}dialog input{width:100%;margin-top:.5rem;padding:.7rem;display:block}@media (width<=760px){.history-intro{grid-template-columns:1fr}.history-controls{flex-direction:column}.history-summary{grid-template-columns:repeat(2,1fr)}.history-record summary{grid-template-columns:1fr auto}.history-record summary time{grid-column:1/-1}.record-round{grid-template-columns:2rem 1fr}.record-round time{grid-column:2}}
