/* All overrides are gated by phone capability detection in phone.js. */
.harbor-phone body{position:fixed;left:var(--phone-left,0px);top:var(--phone-top,0px);width:var(--phone-width,100vw);height:var(--phone-height,100dvh);min-height:0;overflow:hidden;display:flex;flex-direction:column;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);font-family:Arial,sans-serif}
.harbor-phone .masthead{flex:none;min-height:48px;padding:2px 8px;gap:6px;flex-wrap:nowrap;justify-content:space-between}
.harbor-phone .masthead .wordmark{font-size:15px;line-height:1.1}.harbor-phone .wordmark small{font-size:7px;margin-top:3px}.harbor-phone .mast-title,.harbor-phone footer{display:none}
.harbor-phone main{min-height:0;flex:1;width:100%;max-width:none;padding:4px 6px;overflow:hidden}
.harbor-phone #welcome{height:100%;min-height:0;overflow:auto;display:block;padding:12px}.harbor-phone .welcome h1{font-size:34px;margin:8px 0}.harbor-phone .hero-deed{display:none}.harbor-phone .welcome p:not(.eyebrow){font-size:15px}.harbor-phone .welcome-actions{gap:8px}.harbor-phone .welcome .quiet{margin:8px 0}
.harbor-phone #table{height:100%;display:flex;flex-direction:column;min-height:0}.harbor-phone .table-top{flex:none;gap:6px;margin:0;padding:0 2px 4px;align-items:center}.harbor-phone .table-top h1{font:600 16px/1.2 Arial;overflow-wrap:anywhere}.harbor-phone #phoneCash{font:13px/1.3 Arial;color:#ffe0a8}
.harbor-phone .phone-dice{display:flex;align-items:center;gap:6px;max-width:49%}.harbor-phone .dice-tray{padding:2px 4px;gap:5px;box-shadow:none;border-radius:5px}.harbor-phone .die{width:28px;height:30px;font-size:28px;border-radius:4px;box-shadow:none}.harbor-phone .dice-total{font-size:11px;line-height:1.2;margin:0;max-width:110px;text-align:left;color:#fff}
.harbor-phone .game-layout{flex:1;min-height:0;display:flex;flex-direction:column;gap:5px}.harbor-phone .board-column{min-height:0;display:flex;flex-direction:column;flex:1}.harbor-phone .board-toolbar,.harbor-phone .board-caption{display:none}
.harbor-phone .phone-board-tools{display:grid;grid-template-columns:1fr 43px 1fr 1.2fr 1.2fr;gap:3px;flex:none;align-items:center;margin-bottom:3px}.harbor-phone .phone-board-tools button{font:11px/1.2 Arial;padding:3px;min-height:44px}.harbor-phone #phoneScale{font:12px Arial;text-align:center}.harbor-phone #phoneCameraStatus{grid-column:1/-1;font:11px/1 Arial;color:#d6e6ec;min-height:12px}
.harbor-phone .board-scroll{flex:1;min-height:0;max-height:none;padding:0;border:1px solid #688da1;border-radius:8px;overflow:auto;touch-action:none;overscroll-behavior:contain;perspective:none;overflow-anchor:none;scrollbar-width:thin;background:#102e40}
.harbor-phone .board-stage{min-width:0;max-width:none;aspect-ratio:auto;display:block;perspective:none;position:relative}.harbor-phone .frame{position:absolute;left:0;top:0;width:960px;padding:10px;transform-origin:0 0;transition:none;box-shadow:none}.harbor-phone .board{grid-template-rows:48px repeat(5,125px);gap:7px}.harbor-phone .board-center{padding:4px;grid-template-columns:1fr;grid-template-rows:1fr}.harbor-phone .center-word{max-width:none;font-size:22px}.harbor-phone .space .space-name{font:600 14px/1.15 Arial}.harbor-phone .space .price,.harbor-phone .route-number{font-size:12px}.harbor-phone .token{width:28px;height:32px}.harbor-phone .phone-active-token{filter:drop-shadow(0 0 2px white) drop-shadow(0 0 4px #ffc45e)}.harbor-phone .phone-active-token:before{content:'';position:absolute;inset:-3px;border:2px solid #ffbe63;border-radius:50%}.harbor-phone .token-number{width:16px;height:16px;font-size:11px}
.harbor-phone .control-column{display:block;flex:none;max-height:43%;min-height:140px;margin:0;overflow:auto;overscroll-behavior:contain}.harbor-phone .control-column .panel{padding:7px;box-shadow:none}.harbor-phone .panel-title{margin:0;letter-spacing:.5px;font-size:10px}.harbor-phone .badge{font-size:10px}.harbor-phone #actorBar{margin:3px 0}.harbor-phone #actorBar .hint{display:flex;align-items:center;gap:5px;margin:0;font-size:12px}.harbor-phone #actorSelect{padding:3px 5px;max-width:190px;font-size:13px}.harbor-phone .situation{font:14px/1.35 Arial;margin:5px 0}.harbor-phone .drawn-card{font-size:14px;padding:8px;margin:5px 0}.harbor-phone .actions{gap:5px}.harbor-phone #actionControls{position:sticky;bottom:-7px;background:#123448;padding:4px 0;z-index:2}.harbor-phone #actionControls .hint{flex-basis:100%;font-size:12px}.harbor-phone #actionControls button{min-height:44px;font-size:13px;padding:7px}.harbor-phone .rent-claim{margin:5px 0;padding:6px}.harbor-phone .form-line{margin:4px 0;gap:5px}.harbor-phone #bidForm{flex:1}.harbor-phone #bidAmount{width:95px}
.harbor-phone dialog{width:calc(var(--phone-width,100vw) - 16px);max-width:850px;max-height:calc(var(--phone-height,100dvh) - 16px);padding:10px;overflow:hidden;margin:auto}.harbor-phone dialog[open]{display:flex;flex-direction:column}.harbor-phone .modal-head{flex:none;padding:0 0 5px;margin:0 0 5px;gap:6px}.harbor-phone .modal-head h2{font:600 19px/1.2 Arial}.harbor-phone #modalBody,.harbor-phone .phone-menu-body{min-height:0;overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere}.harbor-phone .modal-actions{position:sticky;bottom:0;background:#123448;padding:7px 0;margin-top:10px;flex-wrap:wrap;z-index:2}.harbor-phone #phoneTools nav{width:auto;display:grid;grid-template-columns:1fr 1fr;gap:5px}.harbor-phone #phoneTools button{min-height:44px;font-size:13px}.harbor-phone #phoneMenu .panel{margin-top:9px;padding:10px}.harbor-phone #phoneMenu summary{min-height:44px;display:flex;align-items:center}.harbor-phone #phoneMenu .text-button,.harbor-phone .player-button{min-height:44px}.harbor-phone #phoneMenu .history-panel ol{max-height:none}.harbor-phone #phoneStats{padding:10px 0}.harbor-phone #phoneStats .table-stats{display:flex;flex-wrap:wrap;flex-direction:row;font-size:12px;text-align:left;max-width:none}.harbor-phone #phoneDecks .decks{margin:12px 0}.harbor-phone #phoneDecks .deck{min-height:44px}.harbor-phone #modeLabel{font-size:11px;margin:6px 0}
.harbor-phone .setup-row,.harbor-phone .setup-labels{grid-template-columns:minmax(0,1fr) 94px 80px 40px;gap:4px}.harbor-phone .setup-row input,.harbor-phone .setup-row select{font-size:12px;min-width:0}.harbor-phone .rules-grid,.harbor-phone .trade-columns{grid-template-columns:1fr}.harbor-phone .settings-grid label{font-size:13px}.harbor-phone button:disabled{opacity:1;background:#243f4c;color:#acbec7;border-color:#526974}.harbor-phone #toast{bottom:8px;font-size:13px;max-height:25%;overflow:auto;padding:9px;pointer-events:none}
@media (orientation:landscape){.harbor-phone .game-layout{flex-direction:row}.harbor-phone .board-column{flex:1}.harbor-phone .control-column{width:290px;flex:none;max-height:100%;min-height:0}.harbor-phone .masthead{min-height:44px}.harbor-phone .table-top{height:38px}.harbor-phone .phone-board-tools{grid-template-columns:1fr 40px 1fr 1.2fr 1.2fr}.harbor-phone #actorBar{display:block}.harbor-phone .table-top h1{font-size:15px}}
.harbor-phone{background:#0b202e}.harbor-phone .game-layout{align-items:stretch}.harbor-phone .board-stage{overflow:hidden}.harbor-phone main{margin:0}.harbor-phone .board-column{overflow:hidden}
