/* World map game: things specific to this page (the rest comes from css/game.css). */
body.game.world {
  background:
    radial-gradient(800px 650px at 55% 50%, rgba(60, 110, 220, 0.28), transparent 65%),
    radial-gradient(700px 500px at 90% 0%, rgba(130, 90, 255, 0.16), transparent 60%),
    linear-gradient(180deg, #0f1430, #070916);
}

/* Names on the map (CSS2DRenderer layer) */
.labels-layer { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.map-label {
  font: 900 .9rem var(--font); color: #fff; white-space: nowrap; pointer-events: auto; cursor: pointer;
  text-shadow: 0 1px 2px #000c, 0 0 8px #000a; transition: opacity .25s;
}
.map-label.ocean { font-style: italic; font-weight: 800; color: #bfe6ff; letter-spacing: .5px; }
.map-label.continent { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 1.5px; }
.map-label.country { font-size: .78rem; font-weight: 800; }
.labels-layer.off .map-label { opacity: 0 !important; pointer-events: none !important; }
/* Very small countries get a dot you can click (even during the quiz) */
.tiny-dot {
  width: 12px; height: 12px; border-radius: 50%; cursor: pointer; pointer-events: auto;
  background: var(--c, #ffb86b); border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(0, 0, 0, .35), 0 0 10px var(--c, #ffb86b);
  transition: transform .15s, opacity .25s;
}
.tiny-dot:hover, .tiny-dot.hot { transform: scale(1.5); }

/* Left panel: levels + list of places */
.world-panel { width: 230px; max-height: calc(100dvh - 190px); display: flex; flex-direction: column; }
.level-buttons { display: flex; flex-direction: column; gap: 6px; }
.level-btn small { font-weight: 900; opacity: .7; margin-right: 2px; }
.level-btn .ico { background: color-mix(in srgb, var(--c) 18%, transparent); width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.item-list {
  margin-top: 10px; overflow-y: auto; flex: 1; min-height: 60px;
  display: flex; flex-direction: column; gap: 2px; padding-right: 4px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
.item {
  font: inherit; font-weight: 700; font-size: .92rem; color: var(--text); text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 10px; border: none;
  background: transparent;
}
.item:hover { background: rgba(255, 255, 255, .07); }
.item.active { background: color-mix(in srgb, var(--c) 22%, transparent); }
.item .sw { width: 12px; height: 12px; border-radius: 4px; background: var(--c); flex: none; box-shadow: 0 0 8px color-mix(in srgb, var(--c) 60%, transparent); }
.item .flag { font-size: 1.1rem; width: 20px; text-align: center; flex: none; }
.item-group { font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin: 8px 8px 2px; }
.item:disabled { cursor: default; opacity: .55; }

.info-emoji { font-size: 2.2rem; line-height: 1; }
.hint small { opacity: .75; }

@media (max-width: 860px) {
  .world-panel { max-height: none; width: auto; }
  .world-panel .level-btn > span:last-child { line-height: 1.15; }
  .world-panel .level-buttons { flex-direction: row; }
  .world-panel .level-btn { flex-direction: row; min-width: 0; font-size: .8rem; }
  .world-panel .level-btn .ico { width: 28px; height: 28px; font-size: 1.1rem; }
  .item-list { display: none; }
  .map-label.continent { font-size: .82rem; }
  .map-label.country { font-size: .68rem; }
}
@media (min-width: 861px) and (max-height: 780px) {
  .world-panel { top: 76px; transform: none; max-height: calc(100dvh - 90px); }
}
