/* The approved B2 console: blue chassis, ivory dice, yellow action and separate tools. */
body #hud {
  --v33-frame-dark: #083276;
  --v33-cash-size: 25px;
  position: fixed; top: auto; left: auto; right: 24px; bottom: max(24px, env(safe-area-inset-bottom));
  width: 450px; max-height: calc(100dvh - 242px); overflow: visible;
  display: grid; grid-template-columns: 184px minmax(0, 1fr); grid-template-rows: 43px auto;
  gap: 7px 9px; padding: 7px 10px 14px;
  color: #082b70; background: #29a6f6; border: 5px solid #07327b; border-radius: 0;
  box-shadow: inset 0 4px #cbf9ff, inset 4px 0 #88eaff, inset -4px -4px #0571d8, 4px 5px 0 #05265d;
  backdrop-filter: none; z-index: 5;
}
body #hud::before {
  content: ''; position: absolute; top: -9px; left: 8px; right: 8px; width: auto; height: 4px;
  background: #b9f5ff; border-top: 4px solid #07327b; box-shadow: none; pointer-events: none;
}
body #hud::after {
  content: ''; position: absolute; left: 7px; right: 7px; top: 57px; bottom: 8px;
  background: #dff5ff; border: 3px solid #07599f; box-shadow: inset 3px 3px #fffef8;
  z-index: -1; pointer-events: none;
}
body #hud .hud-head {
  grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; justify-content: flex-start;
  margin: 0; padding: 4px 100px 4px 10px; background: #dbf5ff; border: 3px solid #086bc0;
  box-shadow: inset 2px 2px #fff; min-width: 0; gap: 6px;
}
body #hud .hud-head h2 { display: none; }
body #hud .v26-round-status { max-width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 2px 7px; font-size: 19px; font-weight: 900; line-height: 1.1; }
body #hud #round-label { line-height: 1.1; white-space: nowrap; }
body #hud #fee-multiplier { font-size: 9px; padding: 1px 3px; }
body #hud .turn-row {
  position: absolute; top: 7px; right: 10px; height: 43px; width: 100px; margin: 0; padding: 0;
  display: flex; justify-content: stretch; align-items: stretch; gap: 0; z-index: 1;
}
body #hud #turn-label, body #hud #action-description {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
body #hud #turn-timer {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 3px solid #086bc0; background: #e9fbff; box-shadow: inset 2px 2px #fff;
  padding: 0 6px; min-width: 0; color: #092b71; font-size: 23px; font-weight: 900; line-height: 1;
}
body #hud #turn-timer::before {
  content: ''; width: 19px; height: 27px; flex: none; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 28' shape-rendering='crispEdges'%3E%3Cpath fill='%230a2d71' d='M2 0h16v4h-2v5h-2v3h-2v4h2v3h2v5h2v4H2v-4h2v-5h2v-3h2v-4H6V9H4V4H2z'/%3E%3Cpath fill='%23fffbd9' d='M6 4h8v4h-2v4H8V8H6zm2 12h4v4h2v4H6v-4h2z'/%3E%3Cpath fill='%23ffc82b' d='M6 6h8v2h-2v4H8V8H6zm2 13h4v3h2v2H6v-2h2z'/%3E%3C/svg%3E");
}
body #hud #turn-timer.urgent { background: #ffe5a9; color: #e62445; border-color: #b63343; }
body #hud #dice-display { grid-column: 1; grid-row: 2; height: 115px; align-self: center; margin: 0; min-width: 0; }
body #hud .neon-dice-view { gap: 4px; }
body #hud .neon-dice-die { --neon-die-size: 84px; }
body #hud .neon-dice-die::before { height: 12%; background: #077bc8; filter: none; opacity: .33; bottom: -3%; border-radius: 0; }
body #hud .neon-dice-face { border: 3px solid #0a2860; background: #fffce4; box-shadow: inset 2px 2px #fff, inset -3px -3px #c5cabe; }
body #hud .neon-dice-face::before { inset: 2px; background: #fffce9; }
body #hud .neon-dice-right, body #hud .neon-dice-right::before { background: #c4d0d3; }
body #hud .neon-dice-top, body #hud .neon-dice-top::before { background: #fffef4; }
body #hud .neon-dice-pip { width: 66%; height: 66%; background: #202940; box-shadow: none; }
body #hud .neon-dice-right .neon-dice-pip, body #hud .neon-dice-top .neon-dice-pip { background: #202940; }
body #hud #turn-actions {
  grid-column: 2; grid-row: 2; display: grid; align-content: center; align-self: stretch;
  min-width: 0; gap: 7px; margin: 0; padding: 9px 3px 6px 0; max-height: none; overflow: visible;
}
body #hud #turn-actions > .gold-btn, body #hud #turn-actions > .quiet-btn {
  min-height: 49px; padding: 7px 8px; border: 4px solid #082d6c; border-radius: 0;
  font-size: 18px; font-weight: 900; line-height: 1.2; overflow-wrap: anywhere; white-space: normal;
  box-shadow: inset 3px 3px #fff3a6, inset -4px -5px #dd9606, 3px 4px #082d6c;
}
body #hud #turn-actions > .gold-btn { background: #ffda25; color: #08275f; }
body #hud #turn-actions > .quiet-btn { background: #99ddff; box-shadow: inset 3px 3px #e1faff, inset -4px -5px #47a9e5, 3px 4px #082d6c; }
body #hud #turn-actions > .gold-btn:only-child { font-size: 31px; min-height: 99px; }
body #hud #turn-actions > [data-action=roll] > .v31-pixel-icon { display: none; }
body #hud #turn-actions > button:disabled { opacity: .76; }
body #hud #turn-actions > button:hover:not(:disabled) { background-color: #ffe653; }
body #hud #cards-toggle {
  position: absolute; right: -5px; top: -65px; width: 233px; height: 65px; min-height: 0; padding: 6px 12px 8px;
  display: flex; align-items: center; justify-content: center; gap: 10px; background: #dff7ff;
  color: #092b71; border: 5px solid #07327b; border-bottom: 5px solid #198de8; border-radius: 0;
  box-shadow: inset 0 4px #faffff, inset 4px 0 #78dcff, inset -4px 0 #40b8fa, 4px 0 #05265d;
  font-size: 23px; font-weight: 900; white-space: nowrap;
}
body #hud #cards-toggle::before { content: ''; position: absolute; left: 7px; right: 7px; top: -9px; height: 4px; background: #acecff; border-top: 4px solid #07327b; }
body #hud #cards-toggle > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
body #hud #cards-toggle[aria-expanded=true] { background: #9cddff; border-color: #083276; border-bottom-color: #198de8; }
body #hud #cards-toggle .v33-cards-art { display: block; width: 39px; height: 42px; flex: none; }
body #hud .compact-cards-count { min-width: 40px; height: 41px; padding: 0 5px; border: 3px solid #fff; background: #fb2c58; color: #fff; font-size: 30px; line-height: 1; box-shadow: inset -3px -3px #d71441; }
/* The utility dock remains inside the HUD for hidden/inert state inheritance. */
body #hud .estate-tools { position: fixed; left: 25px; bottom: max(25px, env(safe-area-inset-bottom)); display: flex; gap: 18px; margin: 0; padding: 0; width: auto; }
body #hud .estate-tools > button {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  width: 95px; min-height: 96px; padding: 7px 5px 9px; color: #082b70; background: #e5f8ff;
  border: 4px solid #07327b; border-radius: 0; box-shadow: inset 3px 3px #fff, inset -3px -4px #8edfff, 4px 5px #06275c;
  font-size: 19px; line-height: 1.05; font-weight: 900;
}
body #hud .estate-tools .v31-pixel-icon { display: block; width: 45px; height: 45px; flex: none; }
body #hud .estate-tools > button > span { hyphens: auto; overflow-wrap: anywhere; text-align: center; max-width: 100%; }
body #hud .estate-tools > button:hover:not(:disabled) { background: #bceaff; }
body #view-tools, body:has(#hud .v24-action-panel) #view-tools { left: auto; right: 25px; bottom: calc(var(--v33-console-height, 196px) + 154px); max-width: none; width: auto; }
body #view-tools .locate-me {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px;
  width: 81px; min-height: 90px; padding: 7px 4px; color: #082b70; background: #e5f8ff;
  border: 4px solid #07327b; border-radius: 0; box-shadow: inset 3px 3px #fff, inset -3px -4px #8edfff, 4px 5px #06275c;
  font-size: 16px; font-weight: 900; line-height: 1.05;
}
body #view-tools .locate-me .v31-pixel-icon { width: 43px; height: 43px; }
body #view-preset-menu #fair-btn { width: 100%; display: block; border: 0; border-top: 2px solid #207bcc; margin: 3px 0 0; padding: 10px; color: #07327b; font-size: 13px; text-align: left; }
body:not([data-game-state=playing]) #view-preset-menu #fair-btn { display: none; }
/* Cash stays exact, while the large upper-body portrait carries each character's identity. */
body #players {
  position: fixed; left: 284px; right: 25px; top: 85px; transform: none; width: auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; z-index: 5;
}
body #players .v26-player-row { min-width: 0; }
body #players .player {
  position: relative; display: grid; grid-template-columns: 66px minmax(0, 1fr); grid-template-rows: auto auto;
  align-items: center; gap: 1px 8px; min-height: 91px; width: 100%; margin: 0; padding: 7px 7px 7px 9px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--player) 22%, #ddf5ff) 0 79px, #f5fcf8 79px);
  color: #082b70; border: 4px solid #075095; border-top: 6px solid var(--player); border-radius: 0;
  box-shadow: inset 0 3px #fff, inset 3px 0 #a0eafa, inset -3px -3px #80d3fb, 3px 5px #08295f;
}
body #players .player.active { background: linear-gradient(90deg, color-mix(in srgb, var(--player) 30%, #dcffdd) 0 79px, #fffddd 79px); border-color: #075095; border-top-color: var(--player); box-shadow: inset 0 3px #fff, inset 3px 0 #b9ffff, inset -3px -3px #61c9fb, 0 -2px 0 2px #fff8a4, 3px 5px #08295f; }
body #players .player::before {
  content: ''; position: absolute; left: -11px; top: -15px; width: 20px; height: 29px; background: var(--player);
  border: 3px solid #083276; box-shadow: inset 3px 2px #ffffff6b, 2px 2px #083276;
  clip-path: polygon(25% 0,75% 0,75% 12%,90% 12%,90% 40%,75% 40%,75% 68%,100% 68%,100% 100%,0 100%,0 68%,25% 68%,25% 40%,10% 40%,10% 12%,25% 12%);
}
body #players .player.active::after { display: none; }
body #players .avatar.character-avatar { grid-column: 1; grid-row: 1 / 3; width: 66px; height: 69px; overflow: hidden; align-self: end; border: 0; border-radius: 0; box-shadow: none; background: none; }
body #players .character-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(1.68); transform-origin: 50% 6%; image-rendering: pixelated; }
body #players .character-avatar::after { display: none; }
body #players .v24-player-identity { grid-column: 2; grid-row: 1; gap: 2px; min-width: 0; align-self: end; }
body #players .player-name { width: 100%; max-width: none; font-size: 19px; font-weight: 900; line-height: 1.2; color: #082b70; }
body #players .player-cash { --v33-cash-size: 23px; grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: 4px; margin: 0; min-width: 0; width: 100%; color: #082b70; font-size: var(--v33-cash-size); font-weight: 900; line-height: 1.3; letter-spacing: -.04em; font-family: inherit; align-self: start; }
body #players .v33-cash-art { flex: none; width: 27px; height: 29px; }
body #players .v33-cash-value { min-width: 0; flex: 1; white-space: nowrap; }
body #players .v24-player-stay { font-size: 10px; line-height: 1.2; }
body #players .v26-player-row.has-spirit > .player { padding-bottom: 29px; }
body #players .v26-player-spirit { bottom: 3px; left: 8px; right: 5px; min-height: 24px; background: #c8e9ff; color: #103470; border: 0; border-top: 2px solid #7bc5ed; padding: 1px 3px; font-size: 10px; }
body #players .v26-player-spirit .v26-spirit-art { width: 21px; height: 23px; }
body #hud:has(#dice-display.v24-dice-quiet) #turn-actions { grid-column: 1 / -1; }
body #hud .v24-action-panel { gap: 8px; padding: 11px; color: #082b70; border: 3px solid #176bb0; border-radius: 0; background: #c6eaff; box-shadow: inset 3px 3px #efffff; }
body #hud .v24-action-panel h3 { color: #082b70; font-size: 20px; }
body #hud .v24-kicker { color: #1a5994; }
body #hud .v24-caption { color: #315976; font-size: 12px; }
body #hud #turn-actions .v24-action-panel .gold-btn, body #hud #turn-actions .v24-action-panel .quiet-btn { min-height: 43px; font-size: 14px; padding: 8px; }
body #card-dock.compact-card-dock { background: #bce7ff; border: 4px solid #07327b; border-radius: 0; box-shadow: inset 3px 3px #ecffff, inset -3px -3px #359ae3, 4px 5px #08295f; }
body .compact-card-dock .hand-card { background: #e8f8ff; border: 3px solid #1a65a8; box-shadow: 2px 3px #73b9e4; }
@media (min-width: 1101px) and (max-width: 1300px) {
  body #players { left: 242px; gap: 11px; }
  body #players .player { grid-template-columns: 51px minmax(0, 1fr); gap: 1px 6px; background-size: auto; padding-left: 6px; }
  body #players .avatar.character-avatar { width: 51px; height: 65px; }
  body #players .player-name { font-size: 16px; }
  body #players .player-cash { --v33-cash-size: 20px; gap: 2px; }
  body #players .v33-cash-art { width: 22px; height: 24px; }
}
@media (max-width: 1100px) {
  body #players { left: 20px; right: 20px; top: 93px; width: auto; gap: 12px; }
  body #players .player { grid-template-columns: 50px minmax(0, 1fr); min-height: 78px; gap: 1px 6px; padding: 6px; border-top-width: 5px; }
  body #players .avatar.character-avatar { width: 50px; height: 59px; }
  body #players .player-name { font-size: 15px; }
  body #players .player-cash { --v33-cash-size: 19px; gap: 2px; }
  body #players .v33-cash-art { width: 23px; height: 24px; }
  body #hud { right: 20px; bottom: 20px; width: 410px; grid-template-columns: 169px minmax(0, 1fr); padding: 7px 9px 12px; }
  body #hud .neon-dice-die { --neon-die-size: 77px; }
  body #hud #turn-actions > .gold-btn:only-child { font-size: 28px; }
  body #hud .estate-tools { left: 20px; bottom: 20px; gap: 13px; }
  body #hud .estate-tools > button { width: 82px; min-height: 86px; font-size: 17px; }
  body #view-tools, body:has(#hud .v24-action-panel) #view-tools { right: 20px; bottom: calc(var(--v33-console-height, 194px) + 116px); }
}
@media (max-width: 700px) and (min-height: 501px) {
  body #players { top: 104px; left: 14px; right: 14px; width: auto; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 12px; }
  body #players .player { grid-template-columns: 39px minmax(0,1fr); min-height: 64px; gap: 1px 4px; padding: 4px; border-width: 3px; border-top-width: 4px; }
  body #players .avatar.character-avatar { width: 39px; height: 47px; }
  body #players .player-name { font-size: 13px; }
  body #players .player-cash { --v33-cash-size: 16px; gap: 2px; line-height: 1.25; }
  body #players .v33-cash-art { width: 18px; height: 21px; }
  body #players .player::before { width: 15px; height: 23px; left: -8px; top: -11px; border-width: 2px; }
  body #players .v24-player-stay { font-size: 8px; }
  body #players .v26-player-row.has-spirit > .player { padding-bottom: 25px; }
  body #players .v26-player-spirit { min-height: 21px; font-size: 9px; left: 5px; right: 4px; bottom: 2px; gap: 3px; }
  body #players .v26-player-spirit .v26-spirit-art { width: 18px; height: 20px; }
  body #hud { left: 13px; right: 13px; bottom: max(14px, env(safe-area-inset-bottom)); width: auto; max-height: calc(100dvh - 329px); grid-template-columns: minmax(0,42%) minmax(0,1fr); grid-template-rows: 34px auto; gap: 5px 8px; padding: 5px 7px 10px; border-width: 4px; }
  body #hud::after { top: 45px; left: 5px; right: 5px; bottom: 6px; }
  body #hud .hud-head { padding: 3px 80px 3px 8px; border-width: 2px; }
  body #hud .v26-round-status { font-size: 16px; }
  body #hud .turn-row { top: 5px; right: 7px; height: 34px; width: 80px; }
  body #hud #turn-timer { border-width: 2px; font-size: 20px; gap: 4px; padding: 0 4px; }
  body #hud #turn-timer::before { width: 15px; height: 22px; }
  body #hud #dice-display { height: 92px; }
  body #hud .neon-dice-view { gap: 0; }
  body #hud .neon-dice-die { --neon-die-size: 65px; }
  body #hud #turn-actions { padding: 7px 2px 4px 0; gap: 6px; }
  body #hud #turn-actions > .gold-btn:only-child { min-height: 80px; font-size: 26px; }
  body #hud #turn-actions > .gold-btn, body #hud #turn-actions > .quiet-btn { min-height: 39px; font-size: 15px; padding: 6px 4px; border-width: 3px; }
  body #hud #cards-toggle { top: -53px; right: -4px; width: 189px; height: 53px; border-width: 4px; padding: 5px 8px; gap: 7px; font-size: 18px; }
  body #hud #cards-toggle .v33-cards-art { width: 30px; height: 34px; }
  body #hud .compact-cards-count { min-width: 32px; height: 34px; font-size: 23px; border-width: 2px; }
  body #hud .estate-tools { left: 14px; bottom: calc(var(--v33-console-height, 154px) + 53px); gap: 10px; }
  body #hud .estate-tools > button { width: 56px; min-height: 69px; padding: 5px 2px; gap: 3px; border-width: 3px; font-size: 13px; }
  body #hud .estate-tools .v31-pixel-icon { width: 30px; height: 31px; }
  body #view-tools, body:has(#hud .v24-action-panel) #view-tools { right: 14px; left: auto; bottom: calc(var(--v33-console-height, 154px) + 123px); }
  body #view-tools .locate-me { width: 55px; min-height: 69px; font-size: 11px; border-width: 3px; padding: 5px 2px; }
  body #view-tools .locate-me .v31-pixel-icon { width: 30px; height: 32px; }
  body #hud .v24-action-panel { padding: 8px; gap: 7px; }
  body #hud .v24-action-panel h3 { font-size: 17px; }
  body #hud .v24-caption { font-size: 11px; }
  body #hud #turn-actions .v24-action-panel .gold-btn, body #hud #turn-actions .v24-action-panel .quiet-btn { min-height: 38px; font-size: 12px; padding: 6px; }
  body #hud:has(.v24-action-panel) .estate-tools { bottom: auto; top: 285px; }
}
@media (max-width: 360px) and (min-height: 501px) {
  body #players { top: 96px; left: 12px; right: 12px; gap: 9px; }
  body #players .player { grid-template-columns: 30px minmax(0,1fr); gap: 1px 3px; }
  body #players .avatar.character-avatar { width: 30px; height: 43px; }
  body #players .player-name { font-size: 11px; }
  body #players .player-cash { --v33-cash-size: 14px; }
  body #players .v33-cash-art { width: 14px; height: 18px; }
  body #hud { left: 11px; right: 11px; grid-template-columns: 42% minmax(0,1fr); }
  body #hud .neon-dice-die { --neon-die-size: 53px; }
  body #hud #turn-actions > .gold-btn:only-child { font-size: 23px; }
  body #hud #cards-toggle { width: 173px; font-size: 16px; gap: 5px; }
  body #hud .estate-tools > button { width: 48px; }
  body #hud .estate-tools { gap: 9px; }
  body #hud .v26-round-status { font-size: 14px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  body #players { top: 66px; left: 16px; right: 16px; width: auto; gap: 10px; grid-template-columns: repeat(4,minmax(0,1fr)); }
  body #players .player { grid-template-columns: 31px minmax(0,1fr); min-height: 51px; gap: 1px 4px; padding: 3px 4px; border-width: 3px; border-top-width: 4px; }
  body #players .avatar.character-avatar { width: 31px; height: 38px; }
  body #players .player-name { font-size: 11px; }
  body #players .player-cash { --v33-cash-size: 14px; gap: 2px; }
  body #players .v33-cash-art { width: 16px; height: 18px; }
  body #players .player::before { width: 13px; height: 19px; left: -7px; top: -9px; border-width: 2px; }
  body #players .v26-player-row.has-spirit > .player { padding-bottom: 21px; }
  body #players .v26-player-spirit { min-height: 19px; font-size: 8px; left: 4px; right: 3px; bottom: 1px; gap: 2px; }
  body #players .v26-player-spirit .v26-spirit-art { width: 16px; height: 18px; }
  body #hud { left: auto; right: 13px; bottom: max(12px, env(safe-area-inset-bottom)); width: 310px; max-height: calc(100dvh - 145px); grid-template-columns: 125px minmax(0,1fr); grid-template-rows: 28px auto; padding: 5px 7px 8px; gap: 5px 7px; border-width: 4px; }
  body #hud::after { top: 39px; bottom: 5px; left: 5px; right: 5px; }
  body #hud .hud-head { grid-column: 1/-1; grid-row: 1; padding: 2px 73px 2px 6px; border: 2px solid #086bc0; margin: 0; justify-content: flex-start; }
  body #hud .v26-round-status { font-size: 13px; }
  body #hud .turn-row { top: 5px; right: 7px; height: 28px; width: 73px; }
  body #hud #turn-timer { font-size: 17px; border-width: 2px; gap: 4px; }
  body #hud #turn-timer::before { width: 12px; height: 19px; }
  body #hud #dice-display { grid-row: 2; height: 68px; }
  body #hud .neon-dice-die { --neon-die-size: 56px; }
  body #hud .neon-dice-view { gap: 0; }
  body #hud #turn-actions { grid-row: 2; padding: 5px 2px 4px 0; max-height: calc(100dvh - 195px); overflow: auto; gap: 5px; }
  body #hud #turn-actions > .gold-btn, body #hud #turn-actions > .quiet-btn { min-height: 34px; font-size: 13px; padding: 5px 4px; border-width: 3px; }
  body #hud #turn-actions > .gold-btn:only-child { min-height: 60px; font-size: 22px; }
  body #hud #cards-toggle { top: -43px; right: -4px; height: 43px; width: 169px; border-width: 4px; padding: 3px 7px; font-size: 17px; gap: 6px; }
  body #hud #cards-toggle .v33-cards-art { width: 27px; height: 29px; }
  body #hud .compact-cards-count { min-width: 27px; height: 29px; font-size: 22px; border-width: 2px; }
  body #hud .estate-tools { left: 16px; bottom: 14px; gap: 12px; }
  body #hud .estate-tools > button { width: 60px; min-height: 65px; padding: 4px 2px; font-size: 13px; border-width: 3px; }
  body #hud .estate-tools .v31-pixel-icon { width: 30px; height: 30px; }
  body #view-tools, body:has(#hud .v24-action-panel) #view-tools { right: 15px; left: auto; bottom: calc(var(--v33-console-height, 123px) + 62px); }
  body #view-tools .locate-me { width: 54px; min-height: 57px; border-width: 3px; padding: 4px 2px; font-size: 10px; }
  body #view-tools .locate-me .v31-pixel-icon { width: 25px; height: 27px; }
  body #hud .v24-action-panel { padding: 6px; gap: 5px; }
  body #hud .v24-action-panel h3 { font-size: 13px; }
  body #hud .v24-caption { display: none; }
  body #hud #turn-actions .v24-action-panel .gold-btn, body #hud #turn-actions .v24-action-panel .quiet-btn { min-height: 32px; padding: 5px; font-size: 11px; }
}
@media (max-width: 600px) and (max-height: 500px) and (orientation: landscape) {
  body #players { top: 61px; left: 12px; right: 12px; gap: 8px; }
  body #players .player { grid-template-columns: 24px minmax(0,1fr); padding: 3px; gap: 1px 2px; }
  body #players .avatar.character-avatar { width: 24px; height: 33px; }
  body #players .player-name { font-size: 9px; }
  body #players .player-cash { --v33-cash-size: 12px; }
  body #players .v33-cash-art { width: 12px; height: 15px; }
  body #hud { width: 283px; grid-template-columns: 109px minmax(0,1fr); }
  body #hud .neon-dice-die { --neon-die-size: 49px; }
  body #hud .estate-tools > button { width: 49px; min-height: 60px; font-size: 11px; }
  body #hud .estate-tools { left: 13px; gap: 10px; }
  body #view-tools, body:has(#hud .v24-action-panel) #view-tools { right: auto; left: 143px; bottom: 14px; }
}
body #players .player-name, body #players .player-cash, body #hud .v26-round-status, body #hud #turn-timer, body #hud #cards-toggle, body #hud .estate-tools, body #view-tools .locate-me, body #hud #turn-actions > button { font-family: var(--v33-display, inherit); }
/* Nine-slice artwork preserves real 3px stair-step corners at every panel size. */
body #hud, body #hud #cards-toggle, body #hud .estate-tools > button, body #view-tools .locate-me {
  background-clip: padding-box;
  border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath fill='%23072d73' fill-rule='evenodd' d='M6 0H26V3H29V6H32V26H29V29H26V32H6V29H3V26H0V6H3V3H6ZM8 8V24H24V8Z'/%3E%3Cpath fill='%232faefa' fill-rule='evenodd' d='M6 3H26V6H29V26H26V29H6V26H3V6H6ZM8 8V24H24V8Z'/%3E%3Cpath fill='%23c2faff' d='M6 3H26V5H6ZM3 6H5V26H3Z'/%3E%3C/svg%3E");
  border-image-slice: 8; border-image-width: 8px; border-image-outset: 2px; border-image-repeat: stretch;
}
body #hud { box-shadow: inset 0 4px #cbf9ff, inset 4px 0 #88eaff, inset -4px -4px #0571d8; }
body #hud #cards-toggle { box-shadow: inset 0 4px #faffff, inset 4px 0 #78dcff, inset -4px 0 #40b8fa; }
body #hud .estate-tools > button, body #view-tools .locate-me { box-shadow: inset 3px 3px #fff, inset -3px -4px #8edfff; }
@media (min-width: 1301px) {
  body #players .player-name { font-size: 24px; }
  body #players .player-cash { --v33-cash-size: 24px; }
  body #hud .v26-round-status { font-size: 24px; }
  body #hud #turn-timer { font-size: 24px; }
  body #hud #turn-actions > .gold-btn:only-child { font-size: 36px; }
}
