/* v0.13 — warm gouache, thick printed paper and a quiet playing surface. */
:root{--ink:#285344;--paper:#f5efd9;--cream:#fff9e8;--rust:#bd654a;--muted:#65765b;--line:#cbc9a6;--lake:#6f9eaa;--ochre:#d9ad53;--leaf:#789562}
body{background-color:var(--paper);background-image:url('art/paper-background.svg');color:var(--ink)}
.masthead{border-bottom:2px solid #bac5a0;position:relative}.masthead:after{content:"";position:absolute;bottom:-2px;left:0;width:170px;height:3px;background:var(--rust);border-radius:2px}
.brand-emblem{filter:drop-shadow(0 2px 0 #9b886030)}.edition{color:#92733f;font-weight:600;letter-spacing:1px}.header-actions .mode-button{background:#bd654a;border-color:#a5593f;box-shadow:0 3px 0 #8e513b}
.game-heading h1,.market-heading h2,.modal h2{font-family:"STKaiti","KaiTi","Microsoft YaHei",serif;font-weight:700}.game-heading h1{color:#496b4e}.scoreboard{background:#fff8df;border:1px solid #d3c69d;border-bottom:3px solid #c9bc95;border-radius:12px 9px 12px 8px}.scoreboard>div:first-child strong{color:#b76343}
.market-section{background:#e7e7ca;border:1px solid #bdc49d;border-bottom:4px solid #aab88e;border-radius:12px 9px 13px 10px}.market-heading{border-bottom:1px dashed #a6b48b}.market-heading .eyebrow{color:#6c805b}.market-heading h2{color:#345c42;font-size:24px}.market-heading p{color:#5a6d50}.market-cards{scrollbar-color:#adbb93 transparent;scrollbar-width:thin}
.piece-card,.market-card,.lan-market .market-card{background:#fff9e9;border:1px solid #c8c6a4;border-bottom:4px solid #c1b78d;border-radius:9px 7px 10px 8px;box-shadow:0 1px 3px #4b583c0c}.piece-card.selected{background:#f7e9b8;border-color:#6c8855;border-bottom-color:#6c8855}.piece-card.selected:after{background:#587b4a;color:#fff8df}.market-card.available{outline:2px solid #c19942;background:#fff5d4}.dog-badge{background:#b96549;color:#fff5da;border:1px solid #995337;border-radius:0 0 7px 0;box-shadow:1px 2px 0 #6f4f2520;font-size:10px}.piece-card small,.market-card small,.lan-market .market-card small{color:#627358}.piece-card svg,.market-card svg{filter:drop-shadow(0 2px 1px #6d6a3c19)}
.section-label{color:#385d43;font-weight:700}.map-hint{background:#eee4c4;border:1px dashed #b7a372;color:#755a33;border-radius:7px}.left-panel .piece-tools{gap:7px}.secondary-button{background:#fff9e7;border-color:#cbc49e;border-bottom-color:#b6b58b;border-radius:7px;color:#486343}.primary-button{background:#bc674b;border-color:#a1543b;border-bottom-color:#8a4631;box-shadow:0 2px 0 #ce9c6333;border-radius:7px 5px 8px 6px}.primary-button:hover:not(:disabled){background:#a9563e}.primary-button:focus-visible,.secondary-button:focus-visible{outline:3px solid #d3ac4c;outline-offset:3px}.supply-button{background:#ede8cf;border-color:#babd97;color:#62734e}.supply-button.active{background:#e8c775;border-color:#ad8741}.placement-help #show-placements{background:#f6edd2;border-color:#c6c398}.placement-help #show-placements[aria-pressed=true]{background:#e1e6c1;border-color:#779660}
.wooden-board{background:#50734e;border:2px solid #315b43;border-radius:12px 10px 13px 9px;box-shadow:0 5px 0 #365739,0 8px 0 #c9bc88,0 12px 20px #4d603c16;padding:5px}.wooden-board:before{border:1px dashed #c9be77aa;inset:7px;border-radius:7px}.corner{background:#d9bc68;width:4px;height:4px}.board-topline{color:#3d6047}.board-topline>span:last-child{color:#6a795d}.own-park{background:#f6f1d9}.board-cell:focus{stroke:#315b43}.action-bar{background:#fff6da;border:1px solid #cbb982;border-left:4px solid #849962;box-shadow:0 2px 0 #d2c79b;border-radius:8px}.action-bar:has(#confirm:not(:disabled)){background:#fff0c8;border-left-color:#ba6747;border-color:#c59d56}.action-bar strong{color:#345a42}.action-bar>div>span{color:#627152}.placement-risk{color:#91633b}
.network-panel{background:#e7e7ca;border:1px solid #b5c197;border-bottom:3px solid #adbb91;border-radius:10px}.turn-step{background:#fcf6df;border:1px solid #c8c4a2;border-bottom:3px solid #b8bc93;border-radius:8px 10px 8px 9px}.turn-step.current{background:#f7e6ad!important;border-color:#bf9a4d;box-shadow:0 2px 0 #b09b60}.turn-step.current .turn-number{background:#b86948}.turn-step.done{background:#dfe7c8;border-color:#acbc8a}.turn-step.self{outline:1px solid #8a9f70;outline-offset:-4px}.phase-title strong{color:#355b40}.phase-hint{color:#60714f}.turn-award{background:#e4c97e;color:#765e30}.network-player{background:#fcf6e0;border-color:#b9c39c}.network-player.bot-seat{background:#f5e6b9;border-color:#c1a15b}.room-invitation{background:#fff9e6;border:1px solid #c9c4a0;box-shadow:0 3px 0 #d2c9a2}.room-invitation input,.room-invitation select{background:#fffaf0;border-color:#aab88d}.invitation-welcome{background:#f5e4b5;border-color:#d4b361}.ai-entry{background:#e6e9ca;border-color:#adbb8b;border-left:5px solid #bd6c4b}.ai-entry #lan-ai{background:#597c4d;border-color:#43653b}
body[data-tabletop] .own-park{background:#f3efd9;border-color:#bfc49c;border-radius:11px 8px 12px 9px}.opponents-panel{background:#e4e7cd;border-color:#b5c197;border-radius:10px}.opponent-park{background:#fff8e3;border:1px solid #c6c6a0;border-bottom:3px solid #a9b68b;border-radius:8px 10px 9px 8px}.opponent-park:hover{background:#f8edc9;border-color:#94a578}.opponent-park:nth-child(2){background:#f4efdc}.opponent-park:nth-child(3){background:#f3efcf}.opponent-park .wooden-board{background:#577b51;border-color:#3c6545}.park-card-meta,.park-card-foot{color:#6a7959}.park-card-heading strong{color:#3e6546}.opponents-heading{color:#4f6c46}
.right-panel{background:#eae9d2;border-color:#c3c7a1}.legend{border-color:#c3c7a1}.legend strong{color:#456348}.legend span{color:#697959}.progress-track{background:#d9dec0}.progress-track i{background:#78985d}.park-number{background:#eee5b9;border-color:#c4c391;color:#6d7545}.footer{border-color:#c2c5a0;color:#77815e}.toast{background:#496d48;border:1px solid #a9b57f;box-shadow:0 3px 0 #314f30;border-radius:9px;color:#fff6d9}
.modal{background:#fbf4dd;border:2px solid #5c7850;border-radius:15px 11px 16px 12px;box-shadow:0 6px 0 #c8b984,0 25px 90px #314a3355}.modal::backdrop{background:#314f3c66;backdrop-filter:blur(3px)}.modal-eyebrow{color:#ad6d41}.close-dialog{background:#f0e5bf;border-color:#bdc292;color:#5b7149}.welcome-art{background:linear-gradient(transparent 75%,#e1e5bb 75%)}.help-tip{background:#e9e9c9;border-color:#cdd1aa;color:#61714e}.rule-steps b{color:#b87e42}.rule-steps p{color:#687858}
@media(min-width:1000px) and (min-height:480px){.market-heading h2{font-size:23px}.board-topline{font-size:12px}.action-bar{padding:8px 10px}.brand-wordmark{width:157px}.network-panel{padding-bottom:6px}}
@media(min-width:1000px) and (max-height:740px){.market-heading h2{font-size:19px}.action-bar{padding:6px 8px}#last-event{font-size:9px}}
@media(max-width:620px){.brand-wordmark{width:133px}.market-heading h2{font-size:21px}.action-bar{border-left-width:3px}.modal{border-radius:12px}.piece-card{border-bottom-width:3px}}
/* Three readable opponent rows on short desktop windows. Reserve a square
   preview beside the labels instead of squeezing it below them. */
@media(min-width:1000px) and (min-height:480px) and (max-height:740px){
 body[data-tabletop] .shared-table[data-parks="4"] .park-thumbnails{grid-template-columns:1fr;grid-template-rows:repeat(3,minmax(0,1fr));gap:6px}
 body[data-tabletop] .shared-table[data-parks="4"] .opponent-park{grid-template-columns:minmax(0,1fr) 72px;grid-template-rows:30px 28px minmax(0,1fr);column-gap:6px;row-gap:2px}
 body[data-tabletop] .shared-table[data-parks="4"] .opponent-park:last-child{grid-column:auto;width:100%}
 body[data-tabletop] .shared-table[data-parks="4"] .park-card-board{grid-column:2;grid-row:1/4;width:72px;height:72px;max-height:none}
 body[data-tabletop] .shared-table[data-parks="4"] .park-card-foot{grid-column:1;grid-row:3;font-size:8px;line-height:1.2}
 body[data-tabletop] .shared-table[data-parks="4"] .park-card-heading{font-size:10px;line-height:1.3}
}
