/* Map, settings and listen screens (spec §6). */
.screen-head { display: flex; align-items: center; gap: 12px; }
.screen-head h1 { margin: 0; flex: 1; text-align: center; }
.screen-head h1 .em { --em: 36px; }
.map { display: flex; flex-direction: column; gap: 8px; padding-bottom: 24px; }
.map-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.map-tile { position: relative; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); padding: 2px; transition: transform .15s; }
.map-tile:active { transform: scale(.95); }
.map-tile.locked { background: var(--surface-2); box-shadow: none; }
.map-tile.locked .stage { filter: grayscale(1) brightness(.35) opacity(.35); }
.map-tile .lock { position: absolute; right: 4px; bottom: 4px; --em: 16px; opacity: .7; }
.map-tile.fading { opacity: .7; }
.map-tile.good { box-shadow: 0 0 0 2px color-mix(in srgb, var(--good) 50%, transparent), var(--shadow); }
.map-tile.strong { box-shadow: 0 0 0 3px var(--good), 0 0 16px color-mix(in srgb, var(--good) 60%, transparent); }
.map-tile.nope { animation: shake .4s; }
.sheet { position: fixed; inset: 0; background: rgb(0 0 0 / .45); display: grid; place-items: end center; z-index: 40; padding: 16px; }
.sheet-card {
  width: min(100%, 520px); background: var(--bg); border-radius: 28px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px; align-items: center; animation: sheet-up .25s ease-out;
}
.sheet-card > div:first-child { width: 100%; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.settings { display: flex; flex-direction: column; gap: 10px; }
.settings h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 12px 4px 0; }
.setting {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 16px;
  border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600;
}
.setting span { flex: 1; }
.switch { appearance: none; width: 52px; height: 30px; border-radius: 99px; background: var(--surface-2); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .2s;
}
.switch:checked { background: var(--good); }
.switch:checked::after { transform: translateX(22px); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; border-radius: 18px; background: var(--surface-2); }
.seg { min-height: 48px; border-radius: 14px; font-weight: 700; font-size: 15px; color: var(--muted); }
.seg.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.credits { color: var(--muted); font-size: 13px; text-align: center; }
.listen { display: flex; flex-direction: column; gap: 16px; }
.big-play { width: 96px; height: 96px; }
.sync-card { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.qr { flex: none; width: 128px; background: #fff; border-radius: 12px; padding: 4px; }
.qr svg { width: 100%; height: auto; display: block; }
.sync-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sync-info p { margin: 0; font-size: 14px; color: var(--muted); }
.code { font: 700 16px/1.3 ui-monospace, Consolas, monospace; word-break: break-all; user-select: all; }
.code-input { flex: 1; min-width: 0; min-height: 44px; border: 0; border-radius: 12px; padding: 0 12px; background: var(--surface-2); color: var(--text); font: 600 15px ui-monospace, Consolas, monospace; }
.sync-msg { margin: 0 4px; min-height: 1.4em; }
