/* Comms and permissions (build 107): the real switches (Settings, the HUD, the "Get the full experience" sheet) and the
   nearby-players chip. Message lines are drawn on the map canvas (js/fx-diplomacy.js), so they have no CSS. */

/* One switch, one look: a square track with a square knob, in the game's pixel style. On is the theme's red, like a
   selected segment or tab (UI consistency, Gage 11-04: it was the only green control in Settings). */
.sw { position: relative; flex: none; width: 52px; height: 28px; padding: 0; background: #1b1814; border: 2px solid #5b4a34; cursor: pointer; transition: background-color 140ms ease-out, border-color 140ms ease-out; }
.sw > i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #d9d2c2; box-shadow: 0 2px 0 #0d0b09; transition: transform 140ms ease-out, background-color 140ms ease-out; }
.sw[aria-checked="true"] { background: linear-gradient(150deg, #aa272d, #651d24); border-color: #f17d62; box-shadow: inset 0 1px #fa9a7955; }
.sw[aria-checked="true"] > i { transform: translateX(24px); background: #fff4e6; }
.sw[aria-busy="true"] { opacity: .7; cursor: progress; }
.sw:focus-visible { outline: 3px solid #ffd36e; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .sw, .sw > i { transition: none; } }

/* A switch with its words, as in Settings and the first-launch sheet. */
.sw-line { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
.sw-line > span { flex: 1; min-width: 0; color: #d9cdb8; font-size: 13px; line-height: 1.35; }
.sw-line > span button { display: block; margin-top: 6px; }

/* The "Get the full experience" sheet (js/first.js full()). Switches only: nothing is turned on for you. */
.first-full h2 { margin: 0 0 6px; text-align: center; }
.first-full > p.ff-sub { margin: 0 0 12px; color: #d9cdb8; font-size: 14px; text-align: center; }
.ff-row { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 12px; background: #0f0c0a; border-left: 4px solid #d9b450; text-align: left; }
.ff-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; background: radial-gradient(#3a2414, #1a120c); border: 2px solid #0d0b09; border-radius: 50%; }
.ff-ic svg { width: 22px; height: 22px; }
.ff-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ff-txt b { color: #fff; font: 400 18px var(--display); letter-spacing: .05em; text-transform: uppercase; }
.ff-txt small { color: #cfc4ae; font-size: 12.5px; line-height: 1.35; }
.ff-note { min-height: 18px; margin: 0 0 8px; color: #e6c98a; font-size: 13px; text-align: center; }
.ff-note:empty { display: none; }
.first-full .btn { width: 100%; }
.first-full .btn + .btn { margin-top: 6px; }

/* The HUD voice control reads as a switch: a small pill on its corner shows on or off. The button toggles; a long press
   (or a right click) opens the nearby-players sheet. */
#h-voice::after { content: ''; position: absolute; top: 3px; right: 3px; z-index: 2; width: 17px; height: 9px; background: radial-gradient(circle at 4.5px 50%, #d9d2c2 3px, transparent 3.5px), #2a2620; border: 1px solid #5b4a34; }
#h-voice[aria-checked="true"]::after { background: radial-gradient(circle at 12.5px 50%, #fff4e6 3px, transparent 3.5px), #a52628; border-color: #f17d62; }
#h-voice[data-state="ready"] { color: #b9d9b4; }
#h-voice[data-state="off"] { color: #cfc8b8; }

/* Nearby players: only while nearby voice is on and someone is in range, where mute, block and report live. */
#h-near { position: fixed; left: 8px; top: calc(env(safe-area-inset-top) + 150px); z-index: 6; display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px 4px 6px; color: #fff; font: 400 15px var(--display); text-transform: uppercase; letter-spacing: .04em; background: rgba(10, 10, 10, .82); border: 1px solid #5b4a34; cursor: pointer; }
#h-near[hidden] { display: none; }
#h-near .wi { width: 16px; height: 16px; }
