/* Webcam Spotter (/play/webcam-spotter) - additions on top of hotcold.css (which provides the play tokens,
   header, pills, buttons, result screen, info sections and leaderboard table). Layout: camera frame, clue chips,
   guess map, confirm bar, reveal strip - one column. */

.sp-mark { background: linear-gradient(135deg, #2f7fd9, #129a63); }
.sp-cam { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--hc-r); overflow: hidden; background: #0b172d; box-shadow: var(--hc-shadow); }
.sp-cam img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-cam-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: #dbe6f6; font-size: 15px; }
.sp-live { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px;
    background: rgba(0, 0, 0, .55); color: #fff; font-family: var(--hc-font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.sp-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; }
.sp-stamp, .sp-credit { position: absolute; bottom: 9px; font-family: var(--hc-font-mono); font-size: 11px; color: rgba(255, 255, 255, .86); text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.sp-stamp { right: 12px; }
.sp-credit { left: 12px; opacity: .8; }

.sp-clues { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.sp-clues .hc-eyebrow { margin-right: 2px; }
.sp-clues button { border: 1px solid var(--hc-line-2); background: var(--hc-panel); color: var(--hc-ink); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; }
.sp-clues button[disabled] { cursor: default; background: var(--hc-panel-2); }
.sp-clues .cost { color: var(--hc-coral); font-family: var(--hc-font-mono); font-size: 12px; margin-left: 5px; }

.sp-map { position: relative; border-radius: var(--hc-r); overflow: hidden; border: 1px solid var(--hc-line-2); background: #cfe5fa; touch-action: none; }
.sp-map svg { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.sp-map .land { fill: #dcc48e; stroke: rgba(70, 56, 28, .38); stroke-width: .15; }
.sp-zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.sp-zoom button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--hc-line-2); background: var(--hc-panel); color: var(--hc-ink); font-size: 20px; font-weight: 700; }
@media (prefers-color-scheme: dark) {
    .sp-map { background: #173f6e; }
    .sp-map .land { fill: #c9b588; stroke: rgba(11, 23, 45, .6); }
}

.sp-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.sp-help { color: var(--hc-mute); font-size: 14px; flex: 1 1 260px; }
.sp-reveal h3 { font-size: 22px; }
.sp-reveal .sp-links { display: flex; gap: 12px; margin-top: 6px; font-size: 14px; }
.sp-reveal .sp-links a { color: var(--hc-sky); font-weight: 600; text-decoration: none; }
.sp-reveal .sp-pts { text-align: right; font-family: var(--hc-font-display); font-weight: 800; font-size: 30px; color: var(--hc-ok); }
.sp-reveal .sp-pts small { display: block; font-family: var(--hc-font-mono); font-size: 12px; font-weight: 400; color: var(--hc-mute); }

.sp-bars { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 460px; }
.sp-bars a, .sp-bars div { display: grid; grid-template-columns: 56px minmax(0, 1fr) 90px 52px; gap: 10px; align-items: center; font-size: 14px; text-align: left; color: var(--hc-ink); text-decoration: none; }
.sp-bars img { width: 56px; height: 32px; object-fit: cover; border-radius: 6px; }
.sp-bars span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-bars i { display: block; height: 10px; border-radius: 10px; background: var(--hc-line); overflow: hidden; }
.sp-bars i b { display: block; height: 100%; border-radius: 10px; background: var(--hc-sky); }
.sp-bars em { font-style: normal; font-family: var(--hc-font-mono); text-align: right; }

.sp-yday-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sp-yday-grid a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--hc-ink); }
.sp-yday-grid img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 4px; }
.sp-yday-grid small { color: var(--hc-mute); }
@media (max-width: 640px) {
    .sp-yday-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sp-bars a, .sp-bars div { grid-template-columns: 48px minmax(0, 1fr) 60px 46px; }
}
