@font-face{font-family:Cinzel;src:url("type/Cinzel-Regular.ttf") format("truetype");font-display:swap}
@font-face{font-family:Barlow;src:url("type/BarlowCondensed-SemiBold.ttf") format("truetype");font-display:swap}
@font-face{font-family:Cormorant;src:url("type/CormorantGaramond-MediumItalic.ttf") format("truetype");font-style:italic;font-display:swap}
:root{color-scheme:dark;--night:#101c1b;--panel:#1b2925;--ink:#f0e7ce;--muted:#afb7a7;--gold:#e3bb76;--line:#475044;--serif:Cinzel,Georgia,serif;--sans:Barlow,"Arial Narrow",sans-serif}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;min-height:100svh;background:radial-gradient(ellipse at 43% -20%,#344337 0%,#1b2a25 33%,#101c1b 78%);color:var(--ink);font-family:system-ui,sans-serif;font-size:15px}
button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
button:focus-visible{outline:3px solid #ffdc91;outline-offset:3px}
button:disabled{cursor:default;opacity:.52}
button:hover:enabled{filter:brightness(1.11)}
button:active:enabled{transform:translateY(1px)}
.mast{height:72px;padding:0 max(5vw,24px);display:flex;align-items:center;gap:22px;border-bottom:1px solid #776a462f;background:#17221feb}
.wordmark{display:flex;align-items:center;gap:12px;font-family:var(--serif);font-size:25px;letter-spacing:.07em;white-space:nowrap}
.wordmark b{color:var(--gold);font-weight:400}
.fort-mark{position:relative;display:inline-flex;align-items:center;justify-content:center;width:31px;height:35px;gap:2px;background:var(--gold);clip-path:polygon(0 9%,50% 0,100% 9%,93% 68%,50% 100%,7% 68%)}
.fort-mark:before{content:"";position:absolute;inset:2px;background:#26362c;clip-path:inherit}
.fort-mark i{width:4px;height:13px;background:var(--gold);z-index:1;transform:skewY(-12deg)}
.fort-mark i:nth-child(2){height:20px}
.mast-rule{height:19px;width:1px;background:var(--line)}
.genre,.quiet,.eyebrow,.record,.table-foot,.card-sub,.card-action,.counters small,.order,.post-title,.key{font-family:var(--sans);text-transform:uppercase;letter-spacing:.13em}
.genre,.quiet{font-size:13px}.genre{color:var(--muted)}
nav{margin-left:auto;display:flex;align-items:center;gap:12px}
.quiet{background:transparent;border:1px solid #6269528a;border-radius:3px;padding:9px 15px;color:#ddd9c5}
nav .quiet:first-child{border-color:transparent}
#table{width:min(1170px,90vw);margin:0 auto;padding:clamp(26px,5.4vh,70px) 0 20px}
.table-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:clamp(20px,3.4vh,40px)}
.eyebrow{font-size:12px;display:flex;align-items:center;gap:9px;color:var(--gold);letter-spacing:.23em}
.eyebrow i{width:24px;height:1px;background:var(--gold)}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-family:var(--serif);font-weight:400}
.table-head h1{font-size:clamp(38px,5vw,74px);line-height:1.12;letter-spacing:-.055em;margin:7px 0 8px}
.table-head h1 span{color:var(--gold)}
.table-head p{font-size:clamp(16px,1.7vw,23px);font-family:Cormorant,Georgia,serif;font-style:italic;color:#c8ccba}
.record{display:flex;align-items:center;gap:15px;color:var(--muted);font-size:12px;border-bottom:1px solid var(--line);padding-bottom:9px;white-space:nowrap}
.record strong{font-family:var(--serif);font-size:18px;color:var(--ink);letter-spacing:.04em;font-weight:400}
#fronts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.75vw,26px)}
.front{--accent:var(--gold);display:flex;flex-direction:column;text-align:left;min-width:0;isolation:isolate;overflow:hidden;position:relative;border:1px solid #66705a;border-radius:3px;padding:0;background:#202d27;box-shadow:0 12px 24px #050a071d;transition:border-color .18s,transform .18s}
.front:hover:enabled,.front:focus-visible{border-color:var(--accent);transform:translateY(-3px);filter:none}
.front .portrait{position:relative;width:100%;height:clamp(200px,30vh,345px);overflow:hidden;background:#3b5045}
.portrait img{width:100%;height:100%;object-fit:cover;object-position:50% 37%;display:block;transition:transform .4s}
.front:hover img{transform:scale(1.035)}
.portrait:after{content:"";position:absolute;inset:0;box-shadow:inset 0 -35px 32px -27px #14201e;pointer-events:none}
.front-index{position:absolute;top:14px;left:15px;min-width:34px;height:35px;padding:0 7px;display:grid;place-content:center;font-family:var(--serif);font-size:15px;letter-spacing:.06em;color:#f5dfaf;background:#15201cf2;border:1px solid #b9ab87;outline:1px solid #17221f;outline-offset:2px;z-index:1}
.card-body{display:flex;flex-direction:column;flex:1;padding:clamp(16px,1.6vw,25px);background:linear-gradient(135deg,#29362d,#1b2824 90%);border-top:2px solid var(--accent)}
.card-sub{font-size:11px;color:var(--accent);letter-spacing:.2em}
.card-body h2{font-size:clamp(22px,2.55vw,38px);letter-spacing:-.055em;line-height:1.2;margin:7px 0 9px;color:#fcf0d6}
.card-body p{font-family:system-ui,sans-serif;font-size:clamp(12px,1.02vw,15px);line-height:1.55;color:#c0c7b8;font-weight:400}
.card-action{display:flex;margin-top:auto;padding-top:21px;align-items:center;justify-content:space-between;font-size:13px;letter-spacing:.11em;color:#ece5d1}
.card-action .arrow{color:var(--accent);font:22px Georgia,serif;line-height:1}
.table-foot{display:flex;align-items:center;gap:14px;margin-top:24px;color:#a1aa99;font-size:11px;letter-spacing:.17em}
.seal-mark{color:var(--gold);font-size:18px}.foot-line{flex:1;height:1px;background:#56634d68}
body.playing{height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
.playing .mast{height:48px;flex-shrink:0;padding:0 3vw}
.playing .wordmark{font-size:18px}.playing .fort-mark{width:23px;height:26px}.playing .fort-mark i{height:9px}.playing .fort-mark i:nth-child(2){height:15px}
.playing .mast .quiet{padding:4px 10px}.playing .genre{font-size:11px}
#battle{min-height:0;flex:1;display:flex;flex-direction:column}
.battle-head{display:flex;gap:18px;align-items:center;background:#1d2c26;padding:12px 3vw;border-bottom:1px solid #767453;flex-shrink:0;z-index:1}
.battle-head h1{font-size:clamp(21px,2.3vw,32px);line-height:1.2;letter-spacing:-.03em}.battle-head .eyebrow{font-size:10px}
.counters{display:flex;gap:clamp(15px,4vw,65px);align-items:center;margin-left:auto}
.counters>div{display:grid;gap:2px}.counters small{font-size:10px;color:#b9bea9}
.counters strong{font:20px var(--serif);white-space:nowrap;line-height:1.1}
#gold{color:#f0be67}#seal{color:#a5dac5}
.time{display:flex;gap:5px;margin-left:2vw}
#arena{position:relative;flex:1;min-height:50px;width:100%;overflow:hidden;background:#334943}
#unity,#plots{position:absolute;inset:0;width:100%;height:100%;display:block}
#plots{pointer-events:none}
.plot{position:absolute;pointer-events:auto;display:grid;place-items:center;width:clamp(29px,2.6vw,44px);height:clamp(29px,2.6vw,44px);padding:0;transform:translate(-50%,-50%);background:#16231dce;border:1px solid #e4d4a3;border-radius:50%;color:#f5e6b6;font:clamp(16px,1.7vw,23px) Georgia,serif;box-shadow:0 2px 4px #1017146a}
.plot.built{width:28px;height:24px;font:13px var(--sans);border-radius:4px;border-color:#dfc783;background:#203329ed}
.plot.down{border-color:#ffa77e;color:#ffc69e}
.plot.selected{background:#edcf91;color:#263127;outline:2px solid #302e1c;outline-offset:2px}
.plot:active:enabled,.plot:hover:enabled{transform:translate(-50%,-50%) scale(1.07)}
#wave-note{position:absolute;top:15px;left:50%;transform:translateX(-50%);font:13px var(--sans);text-transform:uppercase;letter-spacing:.14em;border:1px solid #aeaa79a3;background:#172620e8;border-radius:2px;padding:7px 15px;color:#f2e4b9;white-space:nowrap;pointer-events:none}
.orders{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-shrink:0;padding:11px 3vw;background:#1b2924;border-top:1px solid #868268;min-height:90px}
#tactics{flex:1;min-width:0}.command-row,.war-actions,#dialog-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.post-title{font-size:11px;color:var(--gold);margin-bottom:5px}
.hint{font-family:Cormorant,Georgia,serif;font-style:italic;font-size:clamp(15px,1.7vw,22px);line-height:1.2;color:var(--ink)}
.order{min-height:40px;border:1px solid #7b815f;border-radius:3px;padding:9px 14px;font-size:13px;letter-spacing:.09em;background:#25372c}
.primary{background:#e4bb75;color:#1d251d;border-color:#f6d99f}
.secondary{color:#ede4cb}.order .coin{color:#ffd68a}.order.primary .coin{color:inherit}
.weapon{display:flex;align-items:center;gap:8px;min-width:0;text-align:left;padding:4px 9px 4px 4px;line-height:1.15}
.weapon img{width:31px;height:31px;object-fit:cover;border-radius:2px}
.weapon small{display:block;color:#e7c989;font-size:11px;letter-spacing:.03em;margin-top:2px}
.war-actions{justify-content:flex-end}.war-actions .order{white-space:nowrap}
dialog,#load{color:var(--ink)}
dialog{width:min(440px,91vw);max-height:88dvh;padding:0;border:1px solid #a29163;border-radius:4px;background:#1b2924;box-shadow:0 24px 80px #0009}
dialog::backdrop{background:#0a1414b8;backdrop-filter:blur(3px)}
.dialog-body,.load-card{padding:clamp(22px,4vw,36px)}
dialog h2,.load-card h2{font-size:clamp(27px,3vw,36px);line-height:1.12;margin:10px 0 13px;letter-spacing:-.04em}
#dialog-copy{color:#cbd0bc;line-height:1.5;font-size:14px}
#dialog-copy p+p{margin-top:10px}#dialog-copy strong{color:#f3e8ca}#dialog-actions{margin-top:24px}
#load{position:fixed;inset:0;background:#12221cf5;z-index:9;display:grid;place-items:center}
.load-card{width:min(430px,91vw);border:1px solid var(--line);background:#1c2d25}
progress{width:100%;height:8px;accent-color:var(--gold)}#load-note{margin:9px 0;color:var(--muted);font-size:13px}
@media(max-width:760px){.mast{height:55px;padding:0 5vw;gap:12px}.wordmark{font-size:20px}.mast-rule,.genre{display:none}nav{gap:0}.quiet{padding:7px 11px}.table-head{align-items:flex-start}.record{align-self:flex-end;gap:6px}.front .portrait{height:20vw;min-height:150px}.card-body{padding:13px}.card-body p{font-size:12px}.table-foot{margin-top:17px}.orders{padding:8px 2vw;gap:7px}.war-actions{gap:4px}.order{font-size:12px;padding:7px 9px}.weapon{padding:3px 6px 3px 3px}.weapon img{width:24px;height:28px}.battle-head{gap:8px;padding:8px 2vw}.time{margin-left:0}.counters strong{font-size:17px}}
@media(max-width:570px) and (orientation:portrait){#table{width:91vw;padding-top:25px}.table-head{gap:8px;margin-bottom:18px}.table-head h1{font-size:38px}.table-head p{font-size:16px}.record{font-size:9px;flex-direction:column;align-items:flex-end;gap:2px}.record strong{font-size:14px}#fronts{grid-template-columns:1fr;gap:12px}.front{display:grid;grid-template-columns:39% 1fr;min-height:155px}.front .portrait{height:100%;min-height:0}.portrait img{position:absolute;inset:0;object-position:50% 35%}.front-index{top:9px;left:9px;min-width:25px;height:25px;font-size:12px}.card-body{border-top:0;border-left:2px solid var(--accent);padding:13px}.card-body h2{font-size:23px;margin:4px 0}.card-sub{font-size:9px}.card-body p{line-height:1.38}.card-action{padding-top:9px;font-size:11px}.table-foot{font-size:9px}
.playing .mast{height:35px}.playing .wordmark{font-size:14px}.playing .fort-mark{width:17px;height:20px}.playing .quiet{font-size:10px}.battle-head{flex-wrap:wrap;justify-content:space-between;padding:6px 11px}.battle-head .eyebrow{font-size:8px}.battle-head h1{font-size:19px}.counters{gap:11px}.counters small{font-size:8px}.counters strong{font-size:15px}.time{gap:3px}.time .quiet{padding:6px;font-size:10px}.orders{display:block;padding:9px 10px}.war-actions{justify-content:stretch;margin-top:8px}.war-actions .order{flex:1;min-height:34px}.order{min-height:34px}.command-row{flex-wrap:nowrap;gap:4px}.weapon{flex:1;font-size:11px}.weapon img{width:22px;height:27px}.post-title{font-size:10px;margin-bottom:4px}.plot{min-width:31px;min-height:31px}.plot.built{min-width:26px;min-height:22px}#wave-note{top:7px;font-size:10px;padding:4px 10px}}
@media(orientation:landscape) and (max-height:580px){#table{padding:14px 0}.mast{height:41px}.table-head{margin-bottom:11px}.table-head h1{font-size:29px;margin:2px 0}.table-head p{font-size:15px}.front .portrait{height:29vh;min-height:80px}.card-body{padding:9px 12px}.card-body h2{font-size:21px;margin:3px 0}.card-action{padding-top:4px}.card-body p{font-size:11px}.table-foot{margin-top:9px}.playing .mast{display:none}.battle-head{padding:4px 2vw}.battle-head h1{font-size:17px}.battle-head .eyebrow{display:none}.counters>div{display:flex;align-items:center;gap:4px}.orders{min-height:50px;padding:4px 2vw}.post-title{font-size:9px;margin-bottom:2px}.weapon img{width:23px;height:24px}.order{min-height:30px}.hint{font-size:15px}#wave-note{top:4px;font-size:10px;padding:3px 8px}.plot{width:24px;height:24px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
