:root{--felt:#173e31;--felt-dark:#0b241e;--felt-glow:#2a6848;--panel:#163b31;--sheet:#102c24;--text:#f8f3e4;--muted:#c1cdb8;--gold:#edc86b;--gold-deep:#b88729;--win:#4be08c;--danger:#d97165;--safe-t:env(safe-area-inset-top);--safe-l:env(safe-area-inset-left);--safe-r:env(safe-area-inset-right);--safe-b:env(safe-area-inset-bottom)}
.an-mini-map svg{width:100%;height:100%;display:block}
button:disabled{cursor:default;opacity:.5}.an-brand{font-size:45px}.overlay{z-index:250}.overlay .sheet{max-height:calc(100dvh - 24px);overflow-y:auto;touch-action:pan-y}.rules{font-size:16px;line-height:1.5}.rules li{margin:10px 0}.an-choice-list{display:flex;flex-wrap:wrap;gap:10px}.an-choice-list button{white-space:normal;text-align:left;padding:12px;min-height:48px;flex:1 1 220px}.felt{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 38%,var(--felt-glow),var(--felt-dark));pointer-events:none}
#table{position:fixed;inset:0;height:100dvh;min-height:0;overflow:hidden;touch-action:none}.topbar{position:absolute;top:var(--safe-t);left:calc(8px + var(--safe-l));right:calc(8px + var(--safe-r));height:38px;display:flex;align-items:center;justify-content:space-between;gap:8px;z-index:20}.top-buttons{display:flex;gap:5px}.icon-btn{min-width:32px;height:32px;padding:4px;background:#14372ccc;border:1px solid #709878;color:white;border-radius:8px;font-size:18px}.an-resources{display:flex;align-items:center;gap:9px;font-weight:750;font-size:15px;white-space:nowrap}.an-resources .rep{color:#93c9ef}.an-resources .cp{color:#bbe48a}.an-resources .money{color:#f9d17b}.an-seats{position:absolute;inset:0;pointer-events:none}.an-seat{position:absolute;width:86px;padding:7px;border:1px solid #8cab80;border-radius:10px;background:#173c30e8;font-size:13px;line-height:1.25;pointer-events:auto;color:white}.an-seat.active{border:2px solid #f6d87c;box-shadow:0 0 15px #f9d56a4d}.an-seat b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.an-seat small{display:block;color:#cbd6bd;margin-top:4px}.an-me{position:absolute;left:calc(8px + var(--safe-l));bottom:calc(61px + var(--safe-b));width:92px;font-size:14px;font-weight:750;color:var(--gold)}.an-map{position:absolute;top:43px;left:calc(103px + var(--safe-l));right:calc(270px + var(--safe-r));bottom:calc(64px + var(--safe-b));display:flex;align-items:center;justify-content:center}.an-map svg{display:block;width:100%;height:100%;overflow:visible}.an-hex{stroke:#203b27;stroke-width:1.3;cursor:pointer}.an-hex.legal{stroke:#e8d55c;stroke-width:3;filter:brightness(1.15)}.an-hex.preview{fill:#f1d171!important;stroke:white;stroke-width:3}.an-map-label{font-size:11px;fill:#253d29;text-anchor:middle;dominant-baseline:central;pointer-events:none}.an-decision{position:absolute;top:45px;right:calc(91px + var(--safe-r));bottom:calc(64px + var(--safe-b));width:170px;display:flex;flex-direction:column;gap:7px}.an-prompt{font-size:15px;font-weight:750;line-height:1.25;color:#fff0bc}.an-choices{overflow:auto;touch-action:pan-y;display:flex;flex-direction:column;gap:6px;padding-right:3px}.an-choices .btn{font-size:14px;padding:9px 7px;line-height:1.2;white-space:normal;flex-shrink:0;min-height:38px}.an-action-rail{position:absolute;left:calc(105px + var(--safe-l));right:calc(95px + var(--safe-r));bottom:calc(6px + var(--safe-b));height:51px;display:flex;gap:5px}.an-action-card{flex:1;min-width:0;border:1px solid #aabca3;background:linear-gradient(145deg,#e8e9d8,#b9d6ce);color:#153a32;border-radius:9px;padding:3px;line-height:1.1;font-size:12px;box-shadow:0 3px 5px #0006}.an-action-card.up{background:linear-gradient(145deg,#f0d9d7,#cd9f9e)}.an-action-card b{display:block;font-size:17px}.an-action-card small{display:block;font-size:11px;margin-top:2px}.an-action-card.usable{border:2px solid var(--gold)}.an-hand-btn{position:absolute;left:calc(6px + var(--safe-l));bottom:calc(7px + var(--safe-b));width:92px;height:49px;padding:3px!important;font-size:13px!important}.an-announcement{position:absolute;inset:0;margin:auto;width:max-content;max-width:70%;height:max-content;padding:14px 25px;background:#142c22ee;border:1px solid #e9cc83;border-radius:12px;color:#f9e7b4;font-size:21px;z-index:80;pointer-events:none}.an-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.an-card{border:1px solid #8d9e7d;border-radius:12px;overflow:hidden;background:#faf4e4;box-shadow:0 3px 8px #182e2520;color:#1a3c2d;min-width:0}.an-card header{padding:9px 11px;background:#2b6249;color:#fff3cb;font-weight:750;font-size:17px}.an-card.sponsor header{background:#806238}.an-card.project header{background:#3f6074}.an-card.endgame header{background:#6d527c}.an-card .art{height:77px;background:linear-gradient(135deg,#b4d2a7,#e8e3bd);display:flex;align-items:center;justify-content:center;font-size:52px}.an-card-content{padding:10px;font-size:14px;line-height:1.4}.an-card-content p{margin:7px 0}.an-card-content strong{color:#1d5941}.an-card .tags{font-size:12px;border-bottom:1px solid #b3c2a3;padding-bottom:7px}.an-card .btn{margin:8px;max-width:calc(100% - 16px)}.an-board-section{margin:16px 0;padding:12px;background:#e5e6d3;color:#203b2c;border-radius:10px}.an-board-section h3{margin:0 0 8px}.an-player-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.an-mini-map{height:200px;width:100%;display:block}.an-project-slot{padding:8px;margin:5px 0;border:1px solid #99aa8f;border-radius:6px}.an-project-slot.taken{background:#cfd6c6}.an-worker{font-size:18px}.an-final-table{width:100%;border-collapse:collapse;font-size:16px}.an-final-table td,.an-final-table th{text-align:left;padding:9px;border-bottom:1px solid #b1bba1}.an-log-note{font-size:12px;color:#becdb3}@media(orientation:portrait){body:has(#table:not([hidden])) .rotate{display:flex}}@media(max-width:750px){.an-seat{width:65px;font-size:11px;padding:5px}.an-seat b{font-size:12px}.an-me{width:70px;font-size:12px}.an-map{left:calc(78px + var(--safe-l));right:calc(232px + var(--safe-r))}.an-decision{right:calc(72px + var(--safe-r));width:150px}.an-action-rail{left:calc(80px + var(--safe-l));right:calc(73px + var(--safe-r))}.an-hand-btn{width:69px!important;font-size:12px!important}.an-resources{font-size:12px;gap:5px}.top-buttons{gap:3px}.icon-btn{min-width:28px;height:29px;font-size:16px}.an-action-card{font-size:10px}.an-action-card b{font-size:14px}}@media(max-height:330px){.an-prompt{font-size:13px}.an-choices .btn{font-size:12px;min-height:32px;padding:6px}.an-map{bottom:57px}.an-action-rail{height:45px}.an-seat{font-size:11px}}
/* Stack seats by their actual height, keeping them above the player's controls. */
.an-seat-column{position:absolute;top:calc(46px + var(--safe-t));bottom:calc(64px + var(--safe-b));display:flex;flex-direction:column;gap:8px;overflow-y:auto;touch-action:pan-y;pointer-events:auto}
.an-seat-column.left{left:calc(5px + var(--safe-l));bottom:calc(100px + var(--safe-b))}
.an-seat-column.right{right:calc(5px + var(--safe-r))}
.an-seat-column .an-seat{position:relative;flex:none}
.an-seat-column .an-seat b{display:flex;align-items:center;gap:4px;min-width:0}
.an-seat-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.an-seat-column .avatar{width:24px;height:24px;font-size:14px;border-width:1px}
/* Readable labels without taking space away from the zoo map. */
.an-resources{font-size:17px}
.an-prompt{font-size:17px}
.an-choices .btn{font-size:16px;min-height:44px}
.an-action-card{position:relative;font-size:16px;font-weight:700}
.an-action-card b{font-size:20px}
.an-action-card small{position:absolute;top:2px;right:3px;margin:0;font-size:13px}
.an-action-card small:empty{display:none}
.an-me{font-size:16px}
.an-hand-btn{font-size:15px!important}
.an-map-label{font-size:13px}
.an-seat-column .an-seat{font-size:14px;padding:6px}
.an-seat-column .an-seat b{font-size:16px}
.an-seat-scores{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0 3px;margin-top:3px}
.an-seat-scores span{white-space:nowrap}
.an-seat-column .an-seat small{display:flex;flex-wrap:wrap;justify-content:center;gap:0 5px;font-size:14px;color:var(--text);margin-top:3px}
.an-seat-column .an-seat small span{white-space:nowrap}
@media(max-width:750px){
  .an-resources{font-size:14px}
  .an-action-card{font-size:14px}
  .an-action-card b{font-size:18px}
  .an-me{font-size:14px}
  .an-hand-btn{font-size:14px!important}
  .an-seat-column .an-seat{font-size:13px;padding:4px}
  .an-seat-column .an-seat b{font-size:14px;gap:3px}
  .an-seat-column .an-seat small{font-size:13px}
  .an-seat-column .avatar{width:20px;height:20px;font-size:13px}
}
@media(max-height:330px){.an-action-card{padding:2px;font-size:14px}.an-action-card b{font-size:18px}}
