:root{font-family:Inter,'Noto Sans SC',system-ui,sans-serif;color:#252a2b;background:#eeeae0;font-synthesis:none;--ink:#252a2b;--gold:#b69446;--paper:#faf7ef;--line:#d8d1c1}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:var(--paper);border-radius:6px;min-height:44px;padding:9px 13px;color:inherit}button:hover:not(:disabled){border-color:var(--gold);background:#fffdf4}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #528ca5;outline-offset:3px}button:disabled{cursor:default;opacity:.48}.primary{background:var(--ink);color:#fff;border-color:var(--ink)}button.primary:hover:not(:disabled){background:#454943;color:#fff}.secondary{background:transparent}h1,h2,h3,p{margin-top:0}h1{font-family:'Noto Serif SC',Georgia,serif;font-weight:600;letter-spacing:.04em}h2{font-size:17px}h3{font-size:14px}a{color:inherit}small,.muted{color:#72766e}.masthead{height:75px;display:flex;justify-content:space-between;align-items:center;padding:0 34px;border-bottom:1px solid var(--line);background:var(--paper);gap:15px}.back{font-size:13px;text-decoration:none}.wordmark{font-family:serif;font-size:26px;letter-spacing:.12em;text-decoration:none;display:flex;align-items:center;gap:14px}.wordmark span{font:10px Inter,system-ui;letter-spacing:.24em;color:#8d773f}.header-tools{display:flex;align-items:center;gap:14px;font-size:12px}#app{max-width:1700px;margin:auto;padding:22px 30px 40px}.eyebrow{font-size:10px;letter-spacing:.22em;color:#8b743d;font-weight:700}.entry{min-height:75vh;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8vw;max-width:1170px;margin:20px auto}.entry h1{font-size:clamp(36px,4vw,66px);line-height:1.35;margin-bottom:25px}.intro{color:#65685e;line-height:2.1;font-size:15px}.entry-facts{display:flex;gap:32px;margin:35px 0}.entry-facts span{display:flex;flex-direction:column;font-size:12px;color:#79786d;gap:4px}.entry-facts b{font-size:32px;font-weight:500;color:var(--ink)}.edition{font-size:11px;color:#7b776b}.entry-card{box-shadow:0 20px 65px #292a2418;background:var(--paper);border:1px solid var(--line);padding:20px;border-radius:10px}.entry-art{height:210px;overflow:hidden;position:relative;border-radius:4px}.entry-art img{width:100%;height:100%;object-fit:cover;filter:brightness(.7)}.entry-art>span{position:absolute;left:25px;bottom:25px;color:#fff;font:28px Georgia;letter-spacing:.1em}.entry-art small{font:9px system-ui;color:#ded6bd;letter-spacing:.12em}.tabs{display:flex;gap:10px;margin:18px 0}.tabs button{flex:1}.tabs [aria-pressed=true]{background:#ded4b8;border-color:#b4a36b}form{display:grid;gap:15px}label{display:grid;gap:7px;font-size:13px;margin-bottom:12px}input,select{width:100%;min-height:44px;padding:9px;border-radius:5px;background:#fffdf7;border:1px solid var(--line);color:inherit;min-width:0}.room-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.room-header .eyebrow{display:block}.room-code{border:0;padding:5px 0;background:none;font-size:22px;letter-spacing:.13em}.room-code small{font-size:10px;letter-spacing:0}.opponents{display:flex;gap:14px}.player{display:flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid var(--line);border-radius:7px;background:var(--paper);min-width:190px}.player.current{box-shadow:inset 0 -3px var(--gold)}.player>i,.map-legend i{width:12px;height:12px;display:inline-block;border-radius:2px;background:#292d2e}.player.ishida>i,.map-legend .ishida{background:#d5b656}.player span{font-size:12px}.player strong{max-width:150px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player small{display:block;font-size:10px;margin-top:3px}.player>b{font-size:22px;margin-left:10px;text-align:center}.player>b small{font-size:9px}.count{white-space:nowrap}.lobby{max-width:820px;padding:35px;margin:35px auto;background:var(--paper);border:1px solid var(--line);border-radius:9px}.lobby>label{max-width:260px}.lobby h1{font-size:32px}.lobby p{color:#79776e}.factions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:30px 0}.factions article{min-width:0;overflow-wrap:anywhere;padding:25px;border:1px solid var(--line);border-radius:8px}.factions img{height:75px;float:right;margin-left:15px}.timeline{display:flex;align-items:center;justify-content:space-between;font-size:12px;padding:12px 0;margin-bottom:14px;border-block:1px solid var(--line);gap:15px}.timeline>div{display:flex;gap:7px}.timeline i{font-style:normal;display:grid;place-content:center;border:1px solid var(--line);width:26px;height:26px;border-radius:50%;color:#8a887d}.timeline i.now{background:var(--ink);color:#fff;border-color:var(--ink)}.timeline i.past{background:#d5c89f}.table-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px;align-items:start}.battlefield,aside{min-width:0}.map-section{background:#e1d8c4;border:1px solid #c8b993;border-radius:8px;overflow:hidden}.map-heading{display:flex;justify-content:space-between;align-items:center;padding:8px 13px;font-size:12px;background:#f5efdf;gap:8px}.map-heading small{margin-left:8px;font-size:10px}.map-heading>div{display:flex;gap:5px}.map-heading button{min-width:38px;padding:5px 8px;min-height:36px}.map-scroll{height:530px;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y;scrollbar-width:thin}.map{position:relative;min-width:100%;line-height:0}.map-art{width:100%;height:auto;display:block}.map-point{position:absolute;transform:translate(-50%,-50%);width:35px;height:35px;min-height:35px;padding:0;background:transparent;border:0;border-radius:50%;z-index:1}.map-point:hover:not(:disabled){background:#fff5;border:1px solid #715323}.map-point.focused{outline:3px solid #fff;box-shadow:0 0 0 5px #39788c;z-index:4}.map-point.route{box-shadow:0 0 0 4px #bd3d3b;z-index:3}.map-point.conflict{outline:3px dashed #af482b;animation:conflict 2s ease-in-out infinite}.location-dot{width:14px;height:14px;border-radius:50%;display:block;margin:auto;background:transparent}.location-dot.tokugawa{background:#24292d;border:2px solid #e7dfc8}.location-dot.ishida{background:#d2b74e;border:2px solid #302f25}.stack-counts{display:flex;position:absolute;left:50%;top:-15px;transform:translateX(-50%);gap:2px;filter:drop-shadow(1px 2px 1px #0005)}.stack-counts b{min-width:21px;height:25px;display:grid;place-content:center;font-size:12px;border-radius:3px;line-height:1;border:1px solid #706956}.stack-counts .tokugawa{background:#282c2c;color:white}.stack-counts .ishida{background:#e1bd51;color:#292b26}.map-label{position:absolute;top:35px;left:50%;transform:translateX(-50%);font-size:11px;background:#252a2b;color:#fff;padding:8px;white-space:nowrap;border-radius:4px;line-height:1}.map-legend{display:flex;flex-wrap:wrap;align-items:center;gap:13px;background:#f5efdf;padding:9px 13px;font-size:10px;color:#6a685e}.map-legend i{width:8px;height:8px;margin-right:4px}.location-panel,.action-panel,.hand-panel,.reserves,.history{border:1px solid var(--line);background:var(--paper);border-radius:8px;padding:17px}.location-panel{margin-top:15px;min-height:130px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.section-title h2{margin:0}.section-title h2 small{font-weight:400;font-size:11px;margin-left:5px}.section-title>span{font-size:10px;color:#837f70}.blocks{display:flex;gap:8px;flex-wrap:wrap}.block{width:74px;padding:4px;background:#efe9d7;display:flex;flex-direction:column;align-items:center}.block:disabled{opacity:1}.block img{width:54px;height:54px;object-fit:contain}.block small{font-size:9px;line-height:1.4;display:block;margin-top:4px;overflow-wrap:anywhere}.block.selected{outline:3px solid #a47d2f;background:#eee0ac}.location-panel .blocks{max-height:220px;overflow:auto}.location-panel p{font-size:11px;margin:10px 0 0}.action-panel{position:sticky;top:10px;max-height:710px;overflow:auto}.action-panel>button,.action-panel>div>button{width:100%;margin-top:8px}.hint,.waiting,.action-panel p{font-size:12px;line-height:1.7;color:#6b6b5e}.turn-badge{white-space:nowrap;padding:5px 7px;border-radius:20px;background:#e8e6dd}.turn-badge.your-turn{background:#e9ddb3;color:#644b14}.move-modes{display:flex;gap:5px}.move-modes button{flex:1;padding:7px 5px;font-size:11px}.allowance{margin-top:12px}.route-draft>p button{min-height:32px;font-size:10px;padding:4px 8px}.route-path{overflow-wrap:anywhere;font-size:12px}.route-tools{display:flex;gap:5px;margin-bottom:10px}.route-tools select{flex:1}.route-tools button{font-size:10px;white-space:nowrap;padding:5px}.planned-route{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:11px;padding:7px;background:#ece5d0;border-radius:4px;margin-top:5px}.planned-route button{min-width:35px;padding:2px;flex-shrink:0}.battle-summary{border-left:3px solid var(--gold);padding:12px;background:#f0e8d3;margin-bottom:14px;font-size:12px}.impact{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:13px}.impact b{font-size:25px;display:block}.impact span:nth-child(2){font-size:10px;color:#7f7b6b}.battle-summary p{margin:10px 0 0}.hand-panel{margin-top:18px}.hand{display:flex;overflow-x:auto;gap:12px;padding:5px 3px 8px;scroll-snap-type:x proximity}.card{flex:0 0 112px;width:112px;background:#eee9da;padding:4px;position:relative;scroll-snap-align:start}.card img{width:100%;aspect-ratio:2/3;object-fit:contain;border-radius:3px;display:block}.card>span{display:block;font-size:10px;margin:4px 0;line-height:1.4}.card b{margin-left:3px}.card small{display:block;font-size:9px}.card.selected{outline:3px solid #a47d2f;transform:translateY(-3px);background:#eaddad}.reserves,.history{margin-top:14px;font-size:12px}.reserves summary,.history summary{cursor:pointer;min-height:25px}.reserves h3{margin:15px 0 10px}.history ol{padding-left:23px;max-height:220px;overflow:auto;line-height:1.8}.result h2{font-size:25px}.result>p{font-size:28px;color:var(--gold)}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%) translateY(15px);background:#262d2e;color:#fff;padding:12px 20px;border-radius:8px;opacity:0;pointer-events:none;z-index:100;transition:.2s;max-width:90vw;font-size:13px}#toast.show{opacity:1;transform:translateX(-50%)}dialog{border:1px solid var(--line);border-radius:12px;width:min(680px,92vw);max-height:85vh;padding:26px;background:var(--paper);color:inherit}dialog::backdrop{background:#1118;backdrop-filter:blur(3px)}dialog p{font-size:13px;line-height:1.9;color:#66685e}dialog h3{margin-top:23px}.dialog-heading{display:flex;justify-content:space-between;align-items:center}.dialog-heading h2{margin:0}.dialog-heading button{font-size:22px}.loading{padding:70px;text-align:center}@keyframes conflict{50%{outline-color:#f4d158}}
@media(min-width:1500px){.map-scroll{height:580px}.table-layout{grid-template-columns:minmax(0,1fr) 365px}}@media(max-width:1000px){#app{padding:18px}.masthead{padding:0 20px}.table-layout{grid-template-columns:minmax(0,1fr) 290px;gap:12px}.player{min-width:160px;padding:8px}.map-scroll{height:470px}.entry{gap:35px}.entry h1{font-size:44px}}@media(max-width:700px){.masthead{height:62px;padding:0 12px;gap:8px}.wordmark{font-size:20px;gap:7px}.wordmark span{font-size:8px}.back{font-size:10px}.header-tools{gap:5px}.header-tools #connection{display:none}.header-tools button{padding:5px 9px;font-size:11px}#app{padding:12px 10px 25px}.entry{grid-template-columns:1fr;margin:15px 6px;gap:15px}.entry h1{font-size:38px;margin:10px 0 16px}.intro{font-size:12px;line-height:1.9}.entry-facts{margin:20px 0;gap:32px}.entry-facts b{font-size:25px}.entry-art{height:135px}.entry-card{padding:15px}.entry-facts span{font-size:10px}.room-header{display:block;margin-bottom:11px}.room-header>div:first-child{display:flex;align-items:center;justify-content:space-between}.room-code{font-size:17px;min-height:32px}.room-code small{font-size:9px}.opponents{gap:7px}.player{min-width:0;flex:1;padding:8px;gap:6px}.player strong{max-width:95px;font-size:11px}.player>b{font-size:19px;margin-left:auto}.player .count{font-size:9px}.player small{font-size:9px}.timeline{gap:6px;padding:9px 0;margin-bottom:10px;font-size:10px;flex-wrap:wrap}.timeline>div{gap:4px}.timeline i{width:22px;height:22px;font-size:10px}.timeline>span:last-child{display:none}.table-layout{display:flex;flex-direction:column;gap:10px}.battlefield,aside{width:100%}.map-scroll{height:330px}.map-heading{padding:6px 8px}.map-heading small{display:none}.map-legend{gap:8px;padding:7px 9px;font-size:9px}.map-point{width:40px;height:40px;min-height:40px}.map-label{top:39px}.location-panel{padding:11px;margin-top:10px;min-height:85px}.section-title{margin-bottom:10px}.section-title h2{font-size:15px}.section-title h2 small{font-size:10px}.location-panel .blocks{max-height:145px}.blocks{gap:6px}.block{width:61px;padding:3px}.block img{width:43px;height:43px}.block small{font-size:8px}.action-panel{padding:13px;max-height:none;position:static}.action-panel .blocks{max-height:185px;overflow:auto}.hand-panel{margin-top:12px;padding:12px}.hand-panel .section-title{flex-wrap:wrap;gap:5px}.hand{gap:9px}.card{flex-basis:86px;width:86px}.hint,.action-panel p{font-size:11px}.reserves,.history{padding:12px}.lobby{margin:20px 0;padding:20px}.lobby h1{font-size:25px}.lobby p{font-size:12px}.factions{gap:10px}.factions article{min-width:0;overflow-wrap:anywhere;padding:14px}.factions img{float:none;height:54px;margin:0 0 15px}.factions h2{font-size:16px}.route-tools select{max-width:calc(100% - 77px)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.revealed{padding:15px;margin-top:12px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.revealed h3{font-size:12px;color:#747162}.revealed-cards{display:flex;gap:10px;flex-wrap:wrap}.revealed figure{width:65px;margin:0 0 8px}.revealed figure img{width:100%;border-radius:3px}.revealed figcaption{font-size:9px;text-align:center;line-height:1.5}.revealed .blocks{max-height:150px;overflow:auto}

@media(max-width:700px){.masthead{height:48px}.masthead .back{display:none}.masthead .wordmark{margin-right:auto}.map-scroll{height:280px}.location-panel .blocks{max-height:110px}.revealed{display:flex;align-items:flex-start;gap:10px;padding:10px;max-height:110px;overflow:auto}.revealed h3{max-width:55px;flex-shrink:0;font-size:10px;line-height:1.6;margin:0}.revealed-cards{gap:5px;flex-wrap:nowrap}.revealed figure{width:35px;flex:0 0 35px;margin:0}.revealed figcaption{font-size:8px}.revealed .blocks{max-height:90px}.revealed .block{width:45px}.revealed .block img{width:35px;height:35px}.revealed .block small{font-size:8px}}
