/* Internet-company workplace, rendered from real board IDs. Generated cutaway
   rooms are decorative; real HTML road buttons remain authoritative. */
:root { --bg: #edf1f6; --surface: #fcfdff; --subtle: #e6edf5; --text: #1d3044; --muted: #52667b; --line: #becbd8; --accent: #255e91; }
.music-volume { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; min-width: 140px; font-size: 12px; }
.music-volume input { grid-column: 1 / -1; width: 100%; min-height: 44px; margin: 0; padding: 0; accent-color: var(--accent); }
.character-banter { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 10px 0; padding: 12px 16px; border-left: 4px solid var(--accent); border-radius: 4px 12px 12px 12px; background: var(--surface); color: var(--text); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.character-banter strong { color: var(--accent); }
.banter-avatar { display: inline-block; width: 34px; height: 34px; flex: 0 0 34px; align-self: center; }
.banter-avatar .role-portrait { width: 100%; height: 100%; }
.voice-picker { display: grid; gap: 4px; min-width: 0; font-size: 12px; }
.voice-picker select { width: 100%; min-width: 0; max-width: 220px; min-height: 44px; font-size: 16px; }
.audio-settings { grid-column: 1 / -1; width: 100%; padding: 0; }
.audio-settings > summary { min-height: 44px; padding: 12px; cursor: pointer; font-size: 14px; font-weight: 650; }
.audio-settings-body { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.audio-settings-body > small { grid-column: 1 / -1; white-space: normal; }
.bot-lobby-controls { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 12px; margin: 16px 0; padding: 14px; background: var(--subtle); border-radius: 8px; }
.bot-lobby-controls label { display: grid; gap: 6px; min-width: 0; }
.bot-lobby-controls select { min-width: 0; width: 100%; min-height: 44px; font-size: 16px; }
.bot-lobby-controls p { grid-column: 1 / -1; margin: 0; }
.bot-badge { display: inline-block; color: var(--accent); font-size: 12px; font-weight: 650; white-space: nowrap; }
.member.is-bot { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 8px 14px; }
.member.is-bot > .bot-badge, .member.is-bot > [data-remove-bot] { grid-column: 2; }
.member.is-bot > [data-remove-bot] { width: fit-content; max-width: 100%; white-space: nowrap; }
.member.is-bot > div:not(.member-figure) { min-width: 0; }
.town-viewport { padding: 0; background: #ced7df; }
.map.town-map { --town-scale: 1; position: relative; display: block; padding: 0; gap: 0; isolation: isolate; z-index: 0; background-color: #d5dde4; background-image: repeating-linear-gradient(26.565deg,transparent 0 71px,rgb(92 116 137 / .12) 72px,transparent 73px),repeating-linear-gradient(-26.565deg,transparent 0 71px,rgb(92 116 137 / .12) 72px,transparent 73px),radial-gradient(ellipse at 40% 35%,#eef2f5,transparent 75%); }
.town-map .town-roads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.town-road { fill: none; stroke: #aebecb; stroke-width: 48; stroke-linecap: round; stroke-linejoin: round; paint-order: stroke; }
.town-road.walked { stroke: #a1c5e6; }
.town-map .town-district { position: absolute; display: block; border: 0; background: none; pointer-events: none; }
.town-district-title { position: absolute; top: calc(310px * var(--town-scale)); left: calc(360px * var(--town-scale)); width: calc(360px * var(--town-scale)); text-align: center; color: #23394e; text-shadow: 0 1px 0 #f5f8fb; }
.town-district-title strong { display: block; font-size: calc(25px * var(--town-scale)); font-weight: 800; letter-spacing: .1em; }
.town-district-title small { display: block; color: #465b70; font-size: calc(12px * var(--town-scale)); margin-top: 6px; }
.town-garden { position: absolute; left: calc(390px * var(--town-scale)); top: calc(400px * var(--town-scale)); width: calc(300px * var(--town-scale)); height: calc(140px * var(--town-scale)); overflow: visible; }
.town-garden .town-sprite { position: absolute; width: calc(140px * var(--town-scale)); height: calc(140px * var(--town-scale)); left: calc(80px * var(--town-scale)); }
.town-garden .town-sprite:nth-child(2) { left: calc(-35px * var(--town-scale)); top: calc(-36px * var(--town-scale)); width: calc(110px * var(--town-scale)); }
.town-garden .town-sprite:nth-child(3) { left: calc(220px * var(--town-scale)); top: calc(-36px * var(--town-scale)); width: calc(110px * var(--town-scale)); }
#app .town-map .town-tile { position: absolute; display: block; grid-area: auto; width: calc(120px * var(--town-scale)); height: calc(60px * var(--town-scale)); min-height: 0; padding: 0; border: 0 solid transparent; border-radius: 0; overflow: visible; background: transparent; box-shadow: none; outline: none; color: #233328; font-weight: 600; }
.town-tile::before { content: ''; position: absolute; inset: 0; clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); background: linear-gradient(155deg,#fff 0%,#dce6ee 75%); box-shadow: inset 0 0 0 3px #9fb0bf; }
.town-tile:nth-of-type(even)::before { background: linear-gradient(155deg,#f0f5f9,#c9d8e4); }
#app .town-map .town-tile:hover { background: none; }
.town-map .town-tile:hover::before, .town-map .town-tile:focus-visible::before { background: #c3e4ff; box-shadow: inset 0 0 0 5px #215c91; }
.town-map .town-tile.selected::before { background: #aad7ff; box-shadow: inset 0 0 0 5px #215c91; }
.town-map .town-tile.path::before { background: #d2e8fb; }
.town-map .town-tile.possible-destination::before { background: #b8e3df; box-shadow: inset 0 0 0 4px #246c68; }
.town-map .town-tile .tile-heading { position: absolute; top: calc(6px * var(--town-scale)); left: 0; width: 100%; justify-content: center; display: flex; gap: 4px; flex-basis: auto; line-height: 1; pointer-events: none; }
.town-map .town-tile .tile-heading small { font: 700 calc(10px * var(--town-scale))/1.1 system-ui,sans-serif; color: #344b38; }
.town-map .town-tile .tile-name { position: absolute; top: calc(27px * var(--town-scale)); left: calc(18px * var(--town-scale)); width: calc(92px * var(--town-scale)); display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; font-size: calc(11px * var(--town-scale)); line-height: 1.3; pointer-events: none; }
.town-map .project-tier { height: 9px; }
.town-map .tile-status { font-size: 9px; }
.town-map .town-owner { position: absolute; top: calc(43px * var(--town-scale)); left: calc(57px * var(--town-scale)); width: calc(16px * var(--town-scale)); height: calc(14px * var(--town-scale)); border-radius: 3px; background: #f7f1d7; color: #5b6847; font: 800 calc(10px * var(--town-scale))/1.3 system-ui,sans-serif; text-align: center; }
.town-map .owner-0 { --lot-owner: var(--p0); border-bottom-color: var(--p0) !important; }
.town-map .owner-1 { --lot-owner: var(--p1); border-bottom-color: var(--p1) !important; }
.town-map .owner-2 { --lot-owner: var(--p2); border-bottom-color: var(--p2) !important; }
.town-map .owner-3 { --lot-owner: var(--p3); border-bottom-color: var(--p3) !important; }
.town-map .town-tile[class*="owner-"] .town-owner { background: var(--lot-owner); color: #fff; border: 1px solid #f4f0d5; }
.town-map .town-tile[class*="owner-"]::after { content: ''; position: absolute; inset: calc(4px * var(--town-scale)); clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%,50% 0,50% 8%,8% 50%,50% 92%,92% 50%,50% 8%); background: var(--lot-owner); pointer-events: none; }
.town-map .town-model { position: absolute; width: calc(120px * var(--town-scale)); height: calc(130px * var(--town-scale)); pointer-events: none; z-index: 0; }
.town-sprite { display: block; width: 100%; height: 100%; pointer-events: none; }
.town-sprite .art-raster { display: block; width: 100%; height: 100%; object-fit: contain; }
.town-model.unclaimed { opacity: .78; }
.town-map .tokens { position: absolute; display: block; left: 50%; top: 50%; width: 0; height: 0; min-height: 0; padding: 0; overflow: visible; z-index: 2; pointer-events: none; }
#app .town-map .town-pawn { position: absolute; display: block; left: calc(-18px * var(--town-scale)); top: calc(-80px * var(--town-scale)); width: calc(36px * var(--town-scale)); height: calc(84px * var(--town-scale)); border: 0; border-radius: 0; background: none; margin: 0 !important; }
.town-pawn .role-figure { height: 100%; width: 100%; overflow: visible; filter: drop-shadow(0 3px 2px rgb(28 43 22 / .35)); }
#app .town-map .tokens:has(.town-pawn:nth-child(2)) .town-pawn:first-child { left: calc(-56px * var(--town-scale)); }
#app .town-map .tokens .town-pawn:nth-child(2) { left: calc(-28px * var(--town-scale)); }
#app .town-map .tokens .town-pawn:nth-child(3) { left: 0; }
#app .town-map .tokens .town-pawn:nth-child(4) { left: calc(28px * var(--town-scale)); }
#app .town-map .town-pawn .pawn-number { left: calc(11px * var(--town-scale)); bottom: calc(-4px * var(--town-scale)); min-width: calc(15px * var(--town-scale)); font-size: calc(11px * var(--town-scale)); line-height: 1.2; border-color: #f8f1dc; }
.town-map .movement-ghost { width: calc(36px * var(--town-scale)); height: calc(84px * var(--town-scale)); border: 0; background: none; border-radius: 0; }
.town-map .movement-ghost .role-figure { width: 100%; height: 100%; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #111c2b; --surface: #192839; --subtle: #25384c; --text: #e2edf7; --muted: #b1c2d3; --line: #425a70; --accent: #9dcefa; --accent-text: #122a41; }
  .town-viewport { background: #72869a; }
  .town-map .town-district-title { color: #23394e; }
  .town-map .town-tile[class*="owner-"] .town-owner { color: #183323; }
}
