:root{font-family:Hiragino Kaku Gothic ProN,Yu Gothic,system-ui,sans-serif;color:#173d3d;background:#f4efe3;font-synthesis:none;--ink: #173d3d;--sea: #0f6f73;--paper: #fffaf0;--sun: #e6a443}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100dvh;background:radial-gradient(circle at 85% 4%,rgba(230,164,67,.3),transparent 22rem),linear-gradient(180deg,#dceddf 0,#f4efe3 28rem)}button,input,select{font:inherit}.app-shell{width:min(100%,46rem);min-height:100dvh;margin:0 auto;padding:max(1.5rem,env(safe-area-inset-top)) 1rem max(2rem,env(safe-area-inset-bottom))}.hero{padding:1.5rem .25rem 2.25rem}.compact-hero{padding:.75rem .25rem 1.5rem}.eyebrow,.kicker{margin:0 0 .5rem;color:var(--sea);font-size:.72rem;font-weight:800;letter-spacing:.16em}h1,h2,h3,p{margin-top:0}h1{margin-bottom:.65rem;font-size:clamp(2.3rem,12vw,4rem);line-height:1;letter-spacing:-.06em}.lead{max-width:28rem;margin:0;line-height:1.7}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:1rem}h2{margin-bottom:1rem;font-size:1.45rem}.year-chip{flex:none;margin-bottom:1.1rem;padding:.38rem .65rem;border:1px solid var(--sea);border-radius:999px;color:var(--sea);font-size:.75rem;font-weight:800}.town-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}.town-card{min-width:0;padding:1rem;border:1px solid color-mix(in srgb,var(--town),transparent 45%);border-top:.38rem solid var(--town);border-radius:1rem;background:#fffaf0eb;box-shadow:0 .45rem 1rem #1a3e3d12}.town-card__top{display:flex;align-items:center;gap:.4rem;color:var(--town)}.town-symbol{display:grid;place-items:center;width:2.25rem;height:2.25rem;border-radius:50%;background:color-mix(in srgb,var(--town),white 82%);font-size:.64rem;font-weight:800}.town-theme{font-size:.68rem;font-weight:700}.town-card h3{margin:.65rem 0 .4rem;font-size:1.25rem}.town-card>p{min-height:2.8em;margin-bottom:.75rem;font-size:.76rem;line-height:1.4}.resource-row{display:flex;flex-wrap:wrap;gap:.3rem}.resource-row span{padding:.22rem .38rem;border-radius:.35rem;background:#f1ecdf;font-size:.62rem;font-weight:700}.merger-note{display:flex;gap:.85rem;margin:1rem 0;padding:1rem;border-radius:1rem;background:var(--ink);color:#fff}.merger-note p{margin:.3rem 0 0;color:#d7e4df;font-size:.75rem;line-height:1.55}.stamp{display:grid;place-items:center;flex:0 0 3.25rem;height:3.25rem;border:2px solid #efc77f;border-radius:50%;color:#efc77f;font-weight:900;transform:rotate(-8deg)}.primary-button{width:100%;min-height:3.4rem;border:0;border-radius:.9rem;background:var(--sun);color:#3b2a0e;font-weight:900;box-shadow:0 .35rem #b57a22}.primary-button:disabled{opacity:1}.status{margin:.8rem 0 0;text-align:center;color:#55706c;font-size:.72rem}.setup-panel{padding:1rem;border:1px solid #d8d0bd;border-radius:1.15rem;background:#fffaf0f0;box-shadow:0 .6rem 1.5rem #1a3e3d14}.player-list{display:grid;gap:.75rem}.player-row{display:grid;gap:.65rem;margin:0;padding:.85rem;border:1px solid #ddd3bf;border-radius:.8rem}.player-row legend{padding:0 .35rem;color:var(--sea);font-size:.8rem;font-weight:900}.player-row label,.seed-field{display:grid;gap:.3rem;font-size:.75rem;font-weight:800}input,select{width:100%;min-height:44px;padding:.65rem .75rem;border:1px solid #9b9c8c;border-radius:.6rem;background:#fff;color:var(--ink)}.secondary-button,.text-button,.seed-field button{min-height:44px;border:1px solid var(--sea);border-radius:.65rem;background:transparent;color:var(--sea);font-weight:800}.secondary-button{width:100%;margin-top:.75rem}.text-button{border:0;text-align:left}.seed-field{margin:1rem 0}.seed-field>div{display:grid;grid-template-columns:1fr auto;gap:.5rem}.seed-field button{padding:0 .8rem}.seed-field small{color:#55706c;font-weight:500;line-height:1.5}.error-box{margin-bottom:.75rem;padding:.7rem;border-left:.3rem solid #a23232;background:#fbe9e4;color:#792727}.error-box p{margin:.2rem 0;font-size:.78rem}.created-player{display:flex;align-items:center;gap:.75rem;min-height:56px;border-bottom:1px solid #e3dccd}.created-player:last-child{border-bottom:0}.created-player small{display:block;margin-top:.15rem;color:#55706c}.town-mark{display:grid;place-items:center;width:44px;height:44px;border:2px solid var(--town);border-radius:50%;color:var(--town);font-size:.7rem;font-weight:900}.game-header{display:flex;align-items:center;justify-content:space-between;padding:.5rem .25rem 1rem}.game-header h1{margin:0;font-size:2.2rem}.phase-chip{padding:.5rem .7rem;border-radius:999px;background:var(--ink);color:#fff;font-size:.75rem;font-weight:900}.turn-card{min-height:18rem;padding:1.25rem;border:1px solid #d8d0bd;border-radius:1.15rem;background:var(--paper);box-shadow:0 .6rem 1.5rem #1a3e3d14}.turn-card h2{margin-bottom:.6rem;font-size:1.65rem}.turn-card>p{line-height:1.7}.action-counter{display:flex;align-items:baseline;gap:.55rem;margin:1.4rem 0}.action-counter strong{font-size:4.5rem;line-height:.8;color:var(--sea)}.action-counter span{font-weight:900}.resource-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem}.resource-summary span{padding:.7rem;border-radius:.65rem;background:#f1ecdf;font-size:.8rem}.resource-summary strong{float:right;font-size:1rem}.policy-list{display:grid;gap:.55rem;margin-top:1rem}.policy-list button{position:relative;display:grid;grid-template-columns:1fr auto;gap:.25rem .7rem;min-height:64px;padding:.7rem;border:1px solid #b9b29f;border-radius:.7rem;background:#fff;color:var(--ink);text-align:left}.policy-list button:disabled{background:#eeeae1;color:#6c716c}.policy-list button span:first-child{display:grid;gap:.2rem}.policy-list small{font-size:.66rem;line-height:1.4}.policy-cost{align-self:start;padding:.25rem .4rem;border-radius:.35rem;background:#f1ecdf;font-size:.7rem;font-weight:900}.policy-list em{grid-column:1 / -1;color:#8d3030;font-size:.65rem;font-style:normal;font-weight:700}.event-card{margin-top:1rem;padding:1rem;border:2px solid var(--sea);border-radius:.85rem;background:#e7f4ee}.event-card--negative{border-color:#98473e;background:#f8e7df}.event-card>span{font-size:.68rem;font-weight:900;letter-spacing:.1em}.event-card h2{margin:.55rem 0}.event-card p{margin:0}.history-panel{margin:.75rem 0;padding:.75rem;border:1px solid #d8d0bd;border-radius:.7rem;background:#ffffff8c}.history-panel summary{min-height:44px;padding:.7rem 0;font-size:.78rem;font-weight:900;cursor:pointer}.history-panel ol{max-height:15rem;margin:.5rem 0 0;padding-left:1.3rem;overflow:auto}.history-panel li{margin-bottom:.6rem;font-size:.72rem;line-height:1.5}.history-panel small{display:block;color:var(--sea);font-weight:800}.merger-list{margin-top:1.2rem;padding-top:1rem;border-top:2px dashed #cfc5ae}.merger-list h3{margin:0 0 .6rem}.merger-list button{display:grid;width:100%;min-height:52px;margin-top:.45rem;padding:.65rem;border:1px solid #9b7153;border-radius:.65rem;background:#fff6e8;color:var(--ink);text-align:left}.merger-list button:disabled{border-color:#c7c2b8;background:#eeeae1;color:#6c716c}.merger-list button span{display:flex;justify-content:space-between;gap:.5rem}.merger-list small,.merger-list em{font-size:.66rem}.merger-list em{margin-top:.25rem;color:#8d3030;font-style:normal}.merger-response{padding:.5rem 0}.merger-response>p{line-height:1.7}.merger-response>div{display:grid;grid-template-columns:1fr 1.4fr;gap:.6rem;margin-top:1.5rem}.merger-response button{min-height:52px;border:1px solid #8a3c35;border-radius:.7rem;background:#fff;color:#7c302a;font-weight:900}.merger-response button:last-child{border-color:var(--sea);background:var(--sea);color:#fff}.handoff-card{padding:1rem 0;text-align:center}.handoff-card p{line-height:1.7}.handoff-card button{width:100%;min-height:52px;margin-top:1rem;border:0;border-radius:.7rem;background:var(--sea);color:#fff;font-weight:900}.deputy-panel>p{line-height:1.6}.result-card h3{margin:1.25rem 0 .6rem}.result-ranking,.player-results{display:grid;gap:.5rem}.result-ranking article{display:grid;grid-template-columns:auto 1fr auto;gap:.6rem;align-items:center;padding:.75rem;border-radius:.65rem;background:#f1ecdf;font-size:.78rem}.result-ranking article:first-child{background:#f7e6b6}.player-results article{padding:.75rem;border:1px solid #d8d0bd;border-radius:.65rem}.player-results article>span{display:flex;justify-content:space-between;gap:.5rem;font-size:.8rem}.player-results article>div{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.5rem}.player-results em{padding:.25rem .45rem;border-radius:999px;background:var(--sea);color:#fff;font-size:.65rem;font-style:normal;font-weight:900}.player-results small{color:#6b756f}.resume-panel{padding:1rem;border:1px solid #d8d0bd;border-radius:1rem;background:var(--paper)}.resume-panel .secondary-button{margin-top:1rem}.error-box button{min-height:44px;margin-top:.5rem;border:1px solid #8d3030;border-radius:.5rem;background:#fff;color:#8d3030;font-weight:800}.tutorial-backdrop{position:fixed;z-index:10;inset:0;display:grid;align-items:end;padding:1rem;background:#0a2929a6}.tutorial-dialog{width:min(100%,28rem);margin:0 auto max(.5rem,env(safe-area-inset-bottom));padding:1.25rem;border-radius:1rem;background:var(--paper);box-shadow:0 1rem 3rem #00000040}.tutorial-dialog>span{color:var(--sea);font-size:.7rem;font-weight:900;letter-spacing:.08em}.tutorial-dialog h2{margin:.55rem 0}.tutorial-dialog p{min-height:4.8em;line-height:1.7}.tutorial-progress{display:flex;gap:.4rem;margin:1rem 0}.tutorial-progress i{width:.55rem;height:.55rem;border-radius:50%;background:#cbc5b7}.tutorial-progress .is-current{width:1.5rem;border-radius:999px;background:var(--sea)}.tutorial-actions{display:grid;grid-template-columns:1fr 1.5fr;gap:.6rem}.tutorial-actions button{min-height:48px;border:1px solid var(--sea);border-radius:.65rem;background:#fff;color:var(--sea);font-weight:900}.tutorial-actions button:last-child{background:var(--sea);color:#fff}.how-to-play{margin:0 0 1rem;border-top:1px solid #d8d0bd;border-bottom:1px solid #d8d0bd}.how-to-play summary{min-height:44px;padding:.8rem 0;font-size:.78rem;font-weight:900;cursor:pointer}.how-to-play ol{padding-left:1.3rem;font-size:.75rem;line-height:1.7}.municipality-strip{display:grid;grid-template-columns:repeat(2,1fr);gap:.45rem;margin:.75rem 0}.municipality-strip div{display:flex;justify-content:space-between;gap:.4rem;padding:.6rem;border:1px solid #d8d0bd;border-radius:.55rem;background:#ffffff8c;font-size:.7rem}.municipality-strip .is-active{border:2px solid var(--sea);background:#e6f2ef}.sticky-action{position:sticky;bottom:max(.75rem,env(safe-area-inset-bottom));padding-top:.5rem}@media(max-width:350px){.town-grid{grid-template-columns:1fr}}
