/* Where on Earth — game styles. Uses the site's theme variables. */
.woe-wrap { display: grid; gap: 16px; }
.woe-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.woe-modes { display: inline-flex; gap: 6px; background: var(--card2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.woe-modes button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.woe-modes button.active { background: var(--accent); color: #fff; }
.woe-meta { color: var(--muted); font-size: .92rem; }
.woe-meta b { color: var(--ink); }

.woe-map-card { padding: 10px; overflow: hidden; position: relative; }
.woe-zoom { position: absolute; top: 16px; right: 16px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }
.woe-zoom button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.25rem; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: var(--shadow); padding: 0; }
.woe-zoom button:hover { border-color: var(--accent); }
.woe-zoom button:active { transform: scale(.94); }
.woe-map { width: 100%; height: auto; display: block; border-radius: 12px; background: var(--bg2); touch-action: none; cursor: grab; }
.woe-map:active { cursor: grabbing; }
.woe-map .graticule { stroke: rgba(100, 116, 139, .28); stroke-width: .5; }
[data-theme="dark"] .woe-map .graticule { stroke: rgba(148, 163, 184, .26); }
.woe-map .ocean-stop1 { stop-color: #cfe3f5; }
.woe-map .ocean-stop2 { stop-color: #9cc3e5; }
.woe-map .ocean-stop3 { stop-color: #6fa3d2; }
.woe-map .atmo-stop1 { stop-color: rgba(147, 197, 253, 0); }
.woe-map .atmo-stop2 { stop-color: rgba(147, 197, 253, .35); }
.woe-map .atmo-stop3 { stop-color: rgba(147, 197, 253, 0); }
[data-theme="dark"] .woe-map .ocean-stop1 { stop-color: #2c5280; }
[data-theme="dark"] .woe-map .ocean-stop2 { stop-color: #1e3d64; }
[data-theme="dark"] .woe-map .ocean-stop3 { stop-color: #142c4e; }
[data-theme="dark"] .woe-map .atmo-stop2 { stop-color: rgba(96, 165, 250, .30); }
.woe-map .ctry { fill: #e8edf2; stroke: rgba(100, 116, 139, .5); stroke-width: .5; stroke-linejoin: round; cursor: pointer; transition: fill .25s ease; }
[data-theme="dark"] .woe-map .ctry { fill: #3b4759; stroke: rgba(10, 14, 20, .8); }
.woe-map .ctry:hover { fill: var(--accent2); }
.woe-map .ctry.g0 { fill: #D6A15E; }
.woe-map .ctry.g1 { fill: #ea580c; }
.woe-map .ctry.g2 { fill: #eab308; }
.woe-map .ctry.g3 { fill: #84cc16; }
.woe-map .ctry.g4 { fill: #14b8a6; }
.woe-map .ctry.g5 { fill: #64748b; }
.woe-map .ctry.answer { fill: #16a34a; }
.woe-map .ctry.last { stroke: var(--ink); stroke-width: 1.4; }
[data-theme="dark"] .woe-map .ctry { stroke: var(--bg); }
[data-theme="dark"] .woe-map .ctry.g5 { fill: #475569; }

.woe-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .85rem; color: var(--muted); }
.woe-legend span { display: inline-flex; align-items: center; gap: 6px; }
.woe-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.woe-guess { position: relative; }
.woe-row { display: flex; gap: 10px; flex-wrap: wrap; }
.woe-row input { flex: 1 1 220px; min-width: 200px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-size: 1rem; }
.woe-row input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.woe-row button { flex: 0 0 auto; white-space: nowrap; }
.woe-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); list-style: none; margin: 0; padding: 6px; display: none; max-height: 260px; overflow-y: auto; }
.woe-suggest.open { display: block; }
.woe-suggest li { padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.woe-suggest li.sel, .woe-suggest li:hover { background: var(--card2); }
.woe-suggest .alias { color: var(--muted); font-size: .85rem; }
.woe-msg { min-height: 1.4em; font-size: .92rem; color: var(--muted); margin-top: 8px; }
.woe-msg.err { color: var(--bad); }
.woe-msg.ok { color: var(--good); }
.woe-row.shake input { animation: woeshake .3s ease; }
@keyframes woeshake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.woe-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.woe-list li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.woe-list .chip { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.woe-list .gname { font-weight: 600; white-space: nowrap; }
.woe-list .gdist { margin-left: auto; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.woe-list .gdir { font-size: 1.05rem; }

.woe-win { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--card2); }
.woe-win h3 { margin: 0 0 6px; }
.woe-win p { margin: 0 0 12px; }
.woe-share { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.woe-share-preview { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: .88rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.woe-platforms { display: flex; flex-wrap: wrap; gap: 10px; }
.woe-platforms button { width: 48px; height: 48px; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: transform .15s ease, filter .15s ease; }
.woe-platforms button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.woe-platforms button:active { transform: translateY(0); }
.woe-platforms button svg { width: 22px; height: 22px; fill: #fff; display: block; }
.plat-x { background: #000; }
.plat-whatsapp { background: #25d366; }
.plat-facebook { background: #1877f2; }
.plat-threads { background: #000; }
.plat-more { background: var(--muted); }
.plat-more svg { fill: none; }
.woe-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.woe-stat { text-align: center; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.woe-stat b { display: block; font-size: 1.4rem; }
.woe-stat span { color: var(--muted); font-size: .8rem; }
.woe-dist { display: grid; gap: 5px; margin-top: 12px; }
.woe-dist-row { display: grid; grid-template-columns: 28px 1fr 30px; align-items: center; gap: 8px; font-size: .85rem; }
.woe-dist-bar { height: 16px; border-radius: 6px; background: var(--accent); min-width: 4px; }
.woe-dist-bar.dim { background: var(--card2); border: 1px solid var(--line); }
.woe-dist-row .n { text-align: right; color: var(--muted); }

@media (max-width: 640px) {
  .woe-stats { grid-template-columns: repeat(2, 1fr); }
  .woe-row { flex-direction: column; flex-wrap: nowrap; }
  .woe-row input { flex-basis: auto; min-width: 0; }
  .woe-row button { width: 100%; }
  .woe-list .glabel { display: none; }
  .woe-list .gname { font-size: .92rem; }
  .woe-list .gdist { font-size: .8rem; }
}
.hidden { display: none !important; }

/* ================= Netflix-style accents (game page) ================= */
/* The site theme now carries the Netflix tokens; these tune the globe for the near-black stage. */
/* Netflix-style wordmark: heavy grotesque, tight, red finish */
body.woe-flix .kicker { color: var(--accent2); font-weight: 700; }
/* Globe tuned for the near-black stage */
html[data-theme="dark"] body.woe-flix .woe-map .ocean-stop1 { stop-color: #33506b; }
html[data-theme="dark"] body.woe-flix .woe-map .ocean-stop2 { stop-color: #243a52; }
html[data-theme="dark"] body.woe-flix .woe-map .ocean-stop3 { stop-color: #141f30; }
html[data-theme="dark"] body.woe-flix .woe-map .atmo-stop2 { stop-color: rgba(96, 165, 250, .14); }
html[data-theme="dark"] body.woe-flix .woe-map .ctry { fill: #4e5966; }
/* bucket colors + hover must outrank the dark base above (higher specificity) */
html[data-theme="dark"] body.woe-flix .woe-map .ctry.g0 { fill: #D6A15E; }
html[data-theme="dark"] body.woe-flix .woe-map .ctry.g1 { fill: #ea580c; }
html[data-theme="dark"] body.woe-flix .woe-map .ctry.g2 { fill: #eab308; }
html[data-theme="dark"] body.woe-flix .woe-map .ctry.g3 { fill: #84cc16; }
html[data-theme="dark"] body.woe-flix .woe-map .ctry.g4 { fill: #14b8a6; }
html[data-theme="dark"] body.woe-flix .woe-map .ctry.g5 { fill: #64748b; }
/* winning country must stay green in dark mode too (outranks the g0 bucket above) */
html[data-theme="dark"] body.woe-flix .woe-map .ctry.answer { fill: #16a34a; }
html[data-theme="dark"] body.woe-flix .woe-map .ctry:hover { fill: #7d93a8; }
body.woe-flix .woe-map .ctry.g0 { fill: #D6A15E; }
