body{background:#0b6ba5;color:#34312c}header{padding:7px 12px;gap:10px}header .brand{font-size:26px}.brand span{font-size:13px}.rules-link{font-size:11px}main{flex:1 1 0;grid-template-columns:minmax(0,1fr) 310px;gap:6px;padding:6px}footer{display:none}
.board-panel{grid-template-rows:auto auto minmax(240px,1fr) auto auto;gap:5px}.board-heading h1{font-size:14px}.board-heading{padding:0 7px}.legend,.compass,.sea-label{display:none}.sea{border-radius:5px;background:#0b6ba5;box-shadow:none}.sea svg{display:block}.turn-announcement{padding:5px 10px;font-size:11px;border-width:1px;background:#f8f3e8;border-radius:4px}
aside{display:flex;flex-direction:column;gap:6px}.card{background:linear-gradient(#fcfaf5,#e2d7c4);border-radius:5px;border:1px solid #fff9;padding:12px}.card h3{font-size:13px;margin:0 0 8px}.log-card{order:-3;flex:1 0 150px;max-height:36vh}.log-card h3{font-size:11px;color:#7b7262}#log{max-height:27vh;font-size:12px}.bank-summary{order:-2;padding:9px}.players-card{order:-1;padding:0}.players-card>.section-head{padding:9px 11px}.player{background:#e2d7c4;padding:12px 10px;min-height:67px;border-top:3px solid #0b6ba5}.player.current{background:#fcfaf5}.player-dot{width:30px;height:30px;border:3px solid white;box-shadow:0 0 0 2px #796b55}.player>span:nth-child(2){flex:1;min-width:0}.player strong{font-size:12px}.player small{font-size:10px;line-height:1.7}
.bank-stock{display:flex;gap:5px;flex-wrap:wrap;margin:0}.bank-card-stock{position:relative;flex:1;min-width:30px;max-width:50px}.bank-card-stock img{display:block;width:100%;height:57px;object-fit:contain}.bank-card-stock strong{position:absolute;right:0;top:0;color:white;background:#285fbd;border-radius:2px;padding:1px 4px;font-size:11px}.bank-stock>small{flex-basis:100%}
.board-panel>.turn{display:grid;grid-template-columns:minmax(0,1fr) auto 155px;gap:4px 12px;padding:8px 12px;border-radius:4px;border-width:1px;box-shadow:inset 4px 0 var(--actor-color)}.turn>.eyebrow{grid-column:1;grid-row:1;font-size:9px}.turn>h2{grid-column:1;grid-row:2;font-size:17px}.turn>#hint{grid-column:1;grid-row:3;font-size:11px;line-height:1.4}.turn>.dice{grid-column:2;grid-row:1/3;align-self:center}.turn>#roll{grid-column:2;grid-row:3;font-size:10px;padding:5px}.turn>.turn-timer{grid-column:3;grid-row:1/4;padding:0;align-content:center;gap:4px}.turn-timer output{font-size:24px}.turn-timer select{font-size:9px;padding:3px}.dice-art{width:33px;height:33px}.dice-art+.dice-art{margin-left:4px}
.bottom-bar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(360px,1.3fr);gap:8px;background:linear-gradient(#fcfaf5,#e2d7c4);padding:8px;border:1px solid white;border-radius:5px}.stock{min-width:0}.stock .section-head{margin-bottom:5px}.stock h3{font-size:11px;margin:0}#resources{gap:3px}.resource{padding:0;background:none;border:0;border-radius:0;box-shadow:none;min-height:0}.resource-art{height:78px;margin:0}.resource>strong{position:absolute;top:0;right:5px;min-width:20px;font-size:14px;border-radius:2px;padding:2px 4px;background:#285fbd;color:white;border:1px solid #174779}.resource>small{display:none}.build-actions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;align-items:stretch}.build-actions button{min-width:0;min-height:72px;padding:5px 2px;font-size:9px;border:2px solid #fff;border-radius:9px;background:linear-gradient(#36afbd,#92cce1);box-shadow:inset 0 0 0 1px #277887}.build-actions .action-art{width:30px;height:36px;margin:0 auto 3px}.build-actions small{font-size:8px;line-height:1.3}.build-actions small .inline-art{width:11px;height:13px}.build-actions button.active{outline:2px solid #f6d26a;outline-offset:-5px}.offer-waiting{outline:3px solid #f5cb54}
#exchange-dialog{width:min(460px,calc(100vw - 24px));padding:0;border:2px solid white;border-radius:7px;background:#f3ecdd;color:#34312c}#exchange-dialog::backdrop,#development-dialog::backdrop{background:#06334d55}.exchange-heading{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:#e2d7c4;border-bottom:1px solid #b3a58e}.exchange-heading h2{font-size:17px;margin:0}.exchange-heading button{font-size:24px;padding:0;width:32px;height:32px}.exchange-body{display:flex;flex-direction:column;gap:6px;padding:8px}.exchange-body>.card{padding:10px;border:0}.player-trade-panel .section-head{gap:8px}.player-trade-panel h3{margin:0}.exchange-status{padding:15px;background:#fff6;border-radius:4px}.player-trade-panel>select{font-size:12px;padding:6px;margin:8px 0 0}.trade-perspective{margin:5px 0}.trade-card-row{border:0;padding:8px 0;margin:0;min-width:0}.trade-card-row legend{font-size:11px;font-weight:bold;color:#6a604f;padding:0}.trade-card-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.trade-card{position:relative;min-width:0;opacity:.55;transition:opacity .15s,transform .15s}.trade-card.selected{opacity:1;transform:translateY(-2px)}.trade-card img{display:block;width:100%;height:85px;object-fit:contain}.trade-card>.trade-card-add{display:block;background:transparent;border:0;box-shadow:none;padding:0;margin:0;width:100%;border-radius:5px}.trade-card>.trade-card-add:hover{transform:translateY(-3px);filter:brightness(1.05)}.trade-card>input,.trade-card>strong{position:absolute;right:0;top:0;box-sizing:border-box;width:32px;height:24px;padding:2px 0;text-align:center;color:white;background:#285fbd;border:1px solid #174779;border-radius:3px;font-size:13px;font-weight:bold;appearance:textfield;-moz-appearance:textfield}.trade-card>input::-webkit-inner-spin-button,.trade-card>input::-webkit-outer-spin-button{-webkit-appearance:none}.trade-card>.trade-card-remove{position:absolute;left:0;bottom:0;width:23px;height:23px;padding:0;margin:0;font-size:17px;border-radius:4px}.trade-form-actions{display:flex;justify-content:flex-end;gap:6px;border-top:1px solid #c7bba7;margin-top:9px;padding-top:7px}.trade-form-actions button{min-height:35px;font-size:12px}.trade-form-actions .trade-submit{background:linear-gradient(#64c5ae,#abd9b8);border-color:white}.bank-card .trade{display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr) 42px;gap:6px;align-items:center}.bank-card .trade label{display:flex;flex-direction:column;align-items:center;min-width:0;gap:5px;font-size:11px}.bank-card .trade select{width:100%;min-width:0;font-size:11px}.bank-trade-preview{display:block;width:48px;height:65px;object-fit:contain}.bank-card #trade{padding:4px;width:40px;overflow:hidden}.bank-card #trade .action-art{width:28px;height:28px;margin:0}#development-dialog{width:min(420px,calc(100vw - 24px));background:#f3ecdd;padding:10px}#development-dialog>button{display:block;margin:0 0 8px auto;font-size:11px}
.player{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:6px 10px}.player-stats{grid-column:2/-1;display:flex;gap:14px;align-items:center}.player-stats>span{position:relative;display:inline-block}.player-stats img{display:block;width:29px;height:34px;object-fit:contain}.player-stats strong{position:absolute;top:-2px;right:-4px;background:#285fbd;color:white;font-size:10px;padding:1px 3px;border-radius:2px}.player-score{color:#72562b}.player .player-name{font-size:13px}.player-name small{font-size:9px}
@media(max-width:1200px){.bottom-bar{grid-template-columns:minmax(0,1fr)}.resource-art{height:65px}.build-actions button{min-height:65px}.board-panel>.turn{grid-template-columns:minmax(0,1fr) auto}.turn>.turn-timer{grid-column:1/-1;grid-row:4;grid-template-columns:1fr 90px 100px;align-items:center}.turn-timer .timer-readout{grid-column:1}.turn-timer progress{grid-row:2}.turn-timer output{font-size:20px}}
@media(max-width:800px){body{height:auto;min-height:100dvh}main{flex:none;display:flex}.board-panel{display:flex;flex-direction:column}.sea{height:55dvh;min-height:300px}.sea svg{height:100%}aside{display:flex;overflow:visible}.log-card{flex:none;max-height:none}#log{max-height:140px}.bottom-bar{grid-template-columns:minmax(0,1fr)}.build-actions{grid-template-columns:repeat(6,minmax(0,1fr))}.bank-card-stock{max-width:48px}.turn>#hint{font-size:10px}.resource-art{height:75px}header .brand span{display:none}}
@media(max-width:420px){.build-actions button{font-size:8px}.build-actions small{display:none}.trade-card img{height:70px}.trade-card-list{gap:4px}.trade-card>input{width:27px}.turn>.turn-timer{grid-template-columns:1fr 75px 90px}}
@media(prefers-reduced-motion:reduce){.trade-card,.trade-card>.trade-card-add{transition:none;transform:none!important}}
.sea{position:relative}#exchange-dialog{position:absolute;z-index:5;top:5px;right:5px;left:auto;bottom:auto;margin:0;width:min(425px,calc(100% - 10px));max-height:calc(100% - 10px);overflow:auto;border:0;border-radius:6px;background:transparent;box-shadow:none;padding:0}#exchange-dialog[hidden]{display:none}.exchange-heading{justify-content:center;position:relative;min-height:62px;border:0;border-radius:6px;margin-bottom:5px;background:linear-gradient(#fcfaf5,#e2d7c4)}.exchange-heading h2{margin:0}.exchange-heading>button{position:absolute;right:9px;top:14px;background:none;border:0;box-shadow:none;color:#111;font-size:35px;line-height:1}.exchange-body{padding:0}.exchange-body>.player-trade-panel{position:relative;padding:10px;border-radius:6px;overflow:hidden}.player-trade-panel>.section-head{display:none}.trade-avatar{display:inline-grid;place-items:center;flex:0 0 auto;width:42px;height:42px;margin:3px;border:3px solid white;border-radius:50%;background:var(--player-color);box-shadow:0 0 0 2px var(--player-color);color:#fff;font-size:21px;font-weight:bold;text-shadow:0 1px 2px #0008}.exchange-heading .trade-avatar{width:42px;height:42px}.offer-line{display:flex;align-items:center;gap:8px;min-height:82px}.offer-line .trade-card-row{flex:1;padding:0;min-width:0}.offer-line legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.offer-line .trade-card-list{display:flex;gap:8px;flex-wrap:wrap}.offer-line .trade-card{width:46px;opacity:1;transform:none}.offer-line .trade-card:not(.selected){display:none}.offer-line .trade-card img{height:69px}.offer-line .trade-card strong{height:21px;width:23px}.offer-arrow{font-size:38px;font-weight:bold;-webkit-text-stroke:1px #273f39;line-height:1}.offer-arrow.incoming{color:#48d316}.offer-arrow.outgoing{color:#f33535}.offer-actions{display:flex;justify-content:flex-end;gap:5px;padding-top:6px}.player-trade-panel .offer-actions>button{width:48px;height:48px;padding:0;margin:0;font-size:38px;color:white;line-height:1;-webkit-text-stroke:1px #20495c;border:2px solid white;border-radius:7px;background:linear-gradient(#35aeb9,#9ad5e5);box-shadow:inset 0 0 0 1px #44869a}.player-trade-panel>details>summary{display:none}.player-trade-panel>details{margin:0}.player-trade-panel>.trade-perspective{font-size:10px}.player-trade-panel>select{width:49%;display:inline-block;margin:0 1% 5px 0;font-size:10px}.card-trade-form .trade-card-row{position:relative;padding-left:47px}.card-trade-form .trade-card-row>.trade-avatar{position:absolute;left:0;top:19px;width:31px;height:31px;font-size:17px}.card-trade-form .trade-card img{height:64px}.card-trade-form .trade-card>input{width:25px;height:21px;font-size:12px}.card-trade-form .trade-card-remove{width:18px;height:18px;font-size:15px}.card-trade-form .trade-card-list{gap:4px}.trade-form-actions{align-items:center;border:0;padding-top:0;margin-top:8px}.trade-form-actions>.trade-submit,.trade-form-actions>.trade-bank{position:relative;width:74px;min-height:67px;padding:43px 1px 4px;font-size:10px;background:linear-gradient(#35aeb9,#9ad5e5);border:2px solid white;border-radius:7px}.trade-form-actions>.trade-submit img,.trade-form-actions>.trade-bank img{position:absolute;top:4px;left:50%;transform:translateX(-50%);width:40px;height:38px;object-fit:contain}.trade-form-actions>button:first-child{margin-right:auto;font-size:10px;padding:6px}.trade-form-actions button:disabled{opacity:.35;filter:grayscale(.4)}
@media(max-width:800px){.sea:has(#exchange-dialog:not([hidden])){height:auto;min-height:350px}.sea:has(#exchange-dialog:not([hidden]))>#board{height:55dvh}#exchange-dialog{position:relative;top:auto;right:auto;max-height:none;width:calc(100% - 10px);margin:5px auto}.card-trade-form .trade-card img{height:70px}}
.offer-responder{position:absolute;top:10px;right:12px;width:30px;height:30px;font-size:15px}.offer-responder::after{content:'⌛';position:absolute;right:-7px;bottom:-5px;font-size:14px;background:#4ebacb;border-radius:50%;padding:2px}.offer-line:first-of-type{padding-right:35px}
.exchange-heading>button::after{content:'';display:block;width:17px;height:17px;border-top:3px solid #111;border-left:3px solid #111;transform:rotate(45deg);margin:12px auto 0}.offer-arrow{display:inline-flex;flex:0 0 28px}.offer-arrow>svg{display:block;width:28px;height:36px;min-height:0}
.build-actions button,.player-trade-panel .offer-actions>button,.trade-form-actions>.trade-submit,.trade-form-actions>.trade-bank{background:transparent url('/assets/button-frame.svg') center/100% 100% no-repeat;border:0;box-shadow:none}.build-actions button{padding:7px 3px}.player>.player-score{display:grid;place-items:center;min-width:53px;min-height:31px;padding:3px 7px 7px;background:transparent url('/assets/score-ribbon.svg') center/100% 100% no-repeat;color:#55432e}.offer-arrow>img{display:block;width:34px;height:36px;object-fit:contain;transform:rotate(-90deg)}.hand-view-art{display:inline-block;width:12px;height:19px;object-fit:contain;vertical-align:middle;margin-right:5px}#fullscreen .inline-art{margin:0;width:20px;height:20px}#fullscreen[hidden]{display:none}
@media(min-width:1600px){
  main{grid-template-columns:minmax(0,1fr) 370px}
  header button,#room-button,.rules-link,.map-info,.board-tools button{font-size:14px}
  .brand span,.board-heading h1{font-size:18px}
  .turn-announcement,.card h3,.stock h3{font-size:15px}
  .eyebrow,.section-head>span,#phase,.log-card h3{font-size:12px}
  #log,#log p,.player-trade-panel p,.gold-panel p,.development-panel p{font-size:15px;line-height:1.5}
  .player .player-name{font-size:16px}.player-name small,.player small{font-size:12px}
  .player>.player-score{font-size:15px;min-width:65px;min-height:37px}
  .player-stats strong,.bank-card-stock strong{font-size:14px}
  .board-panel>.turn{grid-template-columns:minmax(0,1fr) auto 205px;padding:11px 15px}
  .turn>.eyebrow{font-size:12px}.turn>h2{font-size:22px}.turn>#hint{font-size:14px}
  .turn>#roll,.turn-timer select{font-size:12px}.turn-timer output{font-size:30px}
  .bottom-bar{grid-template-columns:minmax(300px,1fr) minmax(480px,1.3fr)}
  .resource-art{height:96px}.resource>strong{font-size:18px}
  .build-actions button{font-size:13px;min-height:92px}.build-actions small{font-size:11px}
  .build-actions small .inline-art{width:14px;height:16px}#hand-toggle{font-size:12px;padding:5px 8px}
  #exchange-dialog{width:min(500px,calc(100% - 10px))}
  .player-trade-panel>select,.player-trade-panel>.trade-perspective,.trade-card-row legend{font-size:13px}
  .card-trade-form .trade-card img{height:80px}.card-trade-form .trade-card>input{font-size:15px;width:30px;height:25px}
  .trade-form-actions>.trade-submit,.trade-form-actions>.trade-bank,.trade-form-actions>button:first-child{font-size:13px}
  .development-card strong{font-size:15px}.development-card select,.development-card button,.development-panel>button{font-size:14px}
  .help-popover{font-size:15px;width:min(340px,calc(100vw - 24px))}
}
.trade-success-badge{display:inline-block;margin-left:7px;padding:3px 6px;border-radius:4px;background:#d9f2ce;color:#206522;font-size:12px;font-weight:bold;white-space:nowrap}#toast.trade-success{background:#e5f6dd;color:#245725;border:2px solid #72aa59}
.robber-target-outline{fill:none;stroke:#fff4b3;stroke-width:1.3;stroke-dasharray:3 3;stroke-linejoin:round;opacity:.65}.robber-destination:hover>.robber-target-outline,.robber-destination:focus-visible>.robber-target-outline{fill:#fff5b32b;stroke:#fff5b3;stroke-width:3;stroke-dasharray:none;opacity:1}
#your-turn-notice{position:fixed;z-index:100;left:50%;top:50%;transform:translate(-50%,-50%);padding:18px 38px;max-width:calc(100vw - 24px);border:2px solid var(--actor-color,#efd079);border-radius:12px;background:#fff9eaf2;color:#214e55;font-size:clamp(30px,3vw,52px);font-weight:bold;text-align:center;box-shadow:0 8px 30px #16374755;pointer-events:none;opacity:0;visibility:hidden}#your-turn-notice.visible{opacity:1;visibility:visible;animation:your-turn-appear .25s ease-out}@keyframes your-turn-appear{from{opacity:0;transform:translate(-50%,-40%) scale(.95)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}@media(prefers-reduced-motion:reduce){#your-turn-notice.visible{animation:none}}
.stock{position:relative}#resource-receipt{display:none;position:absolute;left:0;bottom:calc(100% + 9px);z-index:15;max-width:min(420px,calc(100vw - 28px));padding:9px 12px;border:1px solid #a2bd8c;border-radius:8px;background:#f5ffeaf5;color:#31552c;box-shadow:0 4px 16px #173d3940;font-size:14px;pointer-events:none}#resource-receipt.visible{display:flex;align-items:center;flex-wrap:wrap;gap:8px}#resource-receipt>span{display:inline-flex;align-items:center;gap:4px}#resource-receipt img{width:29px;height:27px;object-fit:contain}#resource-receipt strong{font-size:17px}.resource-flight{position:fixed;z-index:90;width:36px;height:50px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 3px 4px #1238)}.resource-arrival{animation:resource-arrival .45s ease-out}@keyframes resource-arrival{0%,100%{filter:brightness(1)}40%{filter:brightness(1.3);box-shadow:0 0 12px #b6e94d}}@media(prefers-reduced-motion:reduce){.resource-arrival{animation:none}}
.creation-timer-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.creation-timer-settings label{min-width:0}.creation-timer-settings select{width:100%;min-width:0}.turn-timer>.timer-settings-summary{grid-column:1/-1;text-align:center;font-size:11px;line-height:1.4;color:#54675c}.dice-art{width:40px;height:40px}@media(min-width:1600px){.dice-art{width:44px;height:44px}.turn-timer>.timer-settings-summary{font-size:13px}}@media(max-width:1200px){.turn>.turn-timer{grid-template-columns:auto minmax(0,1fr)}.turn-timer>.timer-settings-summary{grid-column:2}.turn-timer progress{grid-column:1/-1}}@media(max-width:480px){.creation-timer-settings{grid-template-columns:minmax(0,1fr)}}
