/* One compact header; independent map actions never occupy the roster column. */
#phone-speed,#phone-lot-actions{display:none}
.phone-ui{--phone-roster-width:112px;--phone-action-right:calc(var(--phone-roster-width) + 16px)}
.phone-ui .app>header .brand{position:relative;padding-bottom:16px;flex:0 0 154px;max-width:154px!important;font-size:15px!important;overflow:visible}
.phone-ui .brand small{display:none!important}
.phone-ui #phone-speed{position:absolute;bottom:-4px;left:35px;right:0;display:flex;align-items:center;justify-content:center;gap:5px;height:20px;font:600 10px/1 'Segoe UI',sans-serif;cursor:default}
.phone-ui #phone-speed button{padding:0;width:30px;height:24px;min-height:24px;border:0;background:transparent;color:#768759;font:22px/1 Arial;touch-action:manipulation;box-shadow:none}
.phone-ui #phone-speed output{min-width:30px;text-align:center;font-variant-numeric:tabular-nums}
.phone-ui body #phone-guidance{flex-direction:row;gap:7px;align-items:center;padding:0 7px;max-height:44px;justify-content:flex-start}
.phone-ui .phone-guidance-copy{width:0}
.phone-ui .phone-menu-grid .new-game{white-space:nowrap!important;gap:5px!important}
.phone-ui .phone-guidance-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;text-align:left}
.phone-ui .phone-guidance-copy>small{font:600 8px/1.1 'Segoe UI',sans-serif;color:var(--message-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phone-ui .phone-guidance-copy>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-height:27px;font:500 10px/1.3 'Segoe UI',sans-serif}
.phone-ui #phone-guidance-face{display:block;flex:none;width:30px;height:36px;border-radius:7px;overflow:hidden;border:1px solid var(--message-color);background:#f8efcd}
.phone-ui #phone-guidance-face[hidden]{display:none}
.phone-ui #phone-guidance-face img{width:100%;height:100%;object-fit:cover;object-position:center 38%;display:block}
.phone-ui .phone-top-tools{gap:5px;flex:none}
.phone-ui #phone-wallet{display:flex;flex-direction:column;align-items:flex-end;gap:1px;min-width:80px}
.phone-ui #phone-calendar{display:flex;gap:2px;flex-direction:column;align-items:flex-end;color:#8b8d6a;font:500 7px/1.2 'Segoe UI',sans-serif;white-space:nowrap}
.phone-ui #phone-calendar time{font-weight:600;color:#637650;font-size:8px}
.phone-ui #phone-balance{font-size:10px!important;line-height:1.2}
.phone-ui #phone-audio{display:flex;gap:3px;align-items:center}
.phone-ui #phone-audio .quick-audio-button{position:relative;display:grid;place-items:center;width:30px;height:34px;min-height:34px;padding:6px;border:1px solid #bbc69d;border-radius:9px;background:#f2f2da;color:#71865c;box-shadow:none}
.phone-ui #phone-audio svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.phone-ui #phone-audio .is-muted{opacity:.6;background:#e5e4d1}
.phone-ui #phone-audio .is-muted::after{content:'';position:absolute;width:22px;height:2px;background:#a56d5c;transform:rotate(-48deg)}
.phone-ui .phone-top-tools>[data-phone-view=menu]{width:34px;height:36px;font-size:24px}
.phone-ui body #phone-roster{width:var(--phone-roster-width)!important;bottom:calc(var(--phone-bottom) + 7px)!important}
.phone-ui body .dice-dock{right:var(--phone-action-right)!important;width:60px!important;height:52px!important;bottom:calc(var(--phone-bottom) + 8px)!important;border-radius:14px!important}
.phone-ui body .dice-dock .dock-roll{width:60px!important;height:52px!important;min-height:52px!important;padding:5px 2px!important;gap:4px!important;border-radius:14px!important}
.phone-ui body .dice-dock .dock-die{width:20px!important;height:20px!important;padding:4px!important;border-radius:5px!important}
.phone-ui body .dice-dock .dock-dice{gap:4px!important}
.phone-ui body .dice-dock .dock-roll-caption{font:500 8px/1.15 'Segoe UI',sans-serif!important;white-space:normal!important}
.phone-ui.phone-dice-busy body .dice-dock{visibility:hidden!important;pointer-events:none!important}
.phone-ui body .board-dice-skip,.phone-ui body .dice-skip{position:fixed!important;left:auto!important;right:var(--phone-action-right)!important;bottom:calc(var(--phone-bottom) + 8px)!important;top:auto!important;width:80px!important;min-height:44px!important;max-width:80px!important;transform:none!important;padding:7px!important;border-radius:12px!important;font:500 10px/1.2 'Segoe UI',sans-serif!important;z-index:25}
.phone-ui #phone-lot-actions:not([hidden]){position:fixed;display:flex;gap:6px;right:calc(var(--phone-action-right) + 70px);bottom:calc(var(--phone-bottom) + 8px);z-index:15;align-items:stretch}
.phone-ui #phone-lot-actions button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:44px;width:94px;padding:5px 7px;border-radius:11px;font:600 11px/1.2 'Segoe UI',sans-serif;box-shadow:0 2px 0 #a49c7040}
.phone-ui #phone-lot-actions small{font:500 9px/1.2 'Segoe UI',sans-serif;white-space:nowrap}
.phone-ui #phone-lot-actions .secondary{background:#f8f4deef;border:1px solid #b9c69c;color:#667c53}
.phone-ui #phone-lot-actions button:disabled{opacity:.65}
.phone-ui[data-phone-view]:not([data-phone-view=map]) #phone-lot-actions{display:none!important}
.phone-ui body .app>header nav .game-calendar,.phone-ui body .app>header nav #gate-status,.phone-ui body .app>header nav #turn-outcome,.phone-ui body .app>header nav .audio-quick-switch{display:none!important}
.phone-ui body .app>header nav .phone-menu-grid>*{width:100%!important;min-height:40px!important;box-sizing:border-box;margin:0!important;border:1px solid #c4cba5!important;border-radius:10px!important;padding:7px!important;display:flex!important;align-items:center;justify-content:center;font:500 11px/1.25 'Segoe UI',sans-serif!important;box-shadow:none!important}
.phone-ui body .app>header nav .phone-menu-grid>.audio-quick-switch{display:none!important}
.phone-ui body .app>header nav .phone-menu-grid .language-control{padding:0!important;min-height:28px!important;border:0!important;background:transparent!important;display:flex;align-items:center;gap:5px}
.phone-ui #start-screen .start-top-actions .quick-audio-button{width:32px;height:32px;min-height:32px;padding:6px;display:inline-grid;place-items:center}
.phone-ui #start-screen .quick-audio-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
@media(max-width:740px) and (orientation:landscape){.phone-ui .app>header{gap:4px!important;padding-left:6px!important;padding-right:6px!important}.phone-ui .app>header .brand{flex-basis:124px;max-width:124px!important;font-size:12px!important}.phone-ui .brand-mark{width:25px!important;height:27px!important}.phone-ui #phone-speed{left:26px}.phone-ui #phone-guidance-face{width:25px;height:31px}.phone-ui #phone-guidance{gap:5px;padding:0 5px}.phone-ui #phone-wallet{min-width:72px}.phone-ui .phone-top-tools{gap:3px}.phone-ui #phone-audio{gap:1px}.phone-ui #phone-audio .quick-audio-button{width:28px}.phone-ui{--phone-roster-width:100px}}
@media(orientation:portrait){.phone-ui{--phone-roster-width:100px}.phone-ui #phone-guidance{max-height:34px!important}.phone-ui #phone-guidance-face{width:25px;height:29px}.phone-ui .phone-guidance-copy>span{-webkit-line-clamp:1;max-height:14px}.phone-ui #phone-lot-actions:not([hidden]){left:7px;right:auto}.phone-ui #phone-lot-actions button{width:84px}.phone-ui body .dice-dock{right:8px!important}.phone-ui body .dice-skip{right:8px!important}}

/* One silhouette: the wrapper has no visible box; only the button draws it. */
.phone-ui body .app>.dice-dock{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;overflow:visible!important;isolation:isolate}
.phone-ui body .dice-dock #roll.dock-roll{box-sizing:border-box!important;overflow:hidden!important;isolation:isolate;clip-path:inset(0 round 14px);background:linear-gradient(145deg,#fff6df,#e9d7ae)!important;backdrop-filter:none!important;box-shadow:inset 0 1px #fffbed!important;border:1px solid #bba777!important;outline-offset:3px}
.phone-ui body .dice-dock #roll.dock-roll:before,.phone-ui body .dice-dock #roll.dock-roll:after{display:none!important}
.phone-ui body .dice-dock .dock-dice-pair{flex:none;padding:1px 0 2px;gap:4px;max-width:100%}
.phone-ui body .dice-dock .dock-die{box-sizing:border-box!important;flex:none}
