/* Nordic world shell · phone-first 390 · calm pastels · no ads */
:root {
  --snow: #F4F7FA;
  --mist: #D9E6F2;
  --fjord: #7BA3B8;
  --pine: #8FAE9B;
  --moss: #C5D5C0;
  --aurora: #C9B8D9;
  --cream: #FFF6E8;
  --ink: #2C3A47;
  --lock: #B8C0C8;
  --safe-bottom: max(24px, env(safe-area-inset-bottom));
  --top: 56px;
  --hero: 180px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--snow); color: var(--ink);
  font-family: Fredoka, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 8px; top: 8px; z-index: 99; background: #fff; padding: 8px 12px; }

.nw-top {
  position: sticky; top: 0; z-index: 20; height: var(--top);
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: rgba(244,247,250,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(123,163,184,.28);
}
.nw-back, .nw-home {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 999px;
  background: #fff; border: 2px solid var(--mist); color: var(--ink);
  text-decoration: none; font-weight: 700; font-size: 14px;
}
.nw-title {
  flex: 1; margin: 0; font-size: 17px; line-height: 1.15; font-weight: 700;
  text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nw-lang { position: relative; }
.nw-lang summary {
  list-style: none; cursor: pointer; min-width: 44px; min-height: 44px;
  display: grid; place-items: center; border-radius: 999px; background: #fff;
  border: 2px solid var(--mist); font-weight: 700; font-size: 13px;
}
.nw-lang summary::-webkit-details-marker { display: none; }
.nw-lang ul {
  position: absolute; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px;
  list-style: none; background: #fff; border: 2px solid var(--mist); border-radius: 14px;
  box-shadow: 0 10px 24px rgba(44,58,71,.12); min-width: 120px; z-index: 30;
}
.nw-lang a { display: block; padding: 8px 10px; min-height: 40px; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 10px; }
.nw-lang a[aria-current="true"] { background: var(--mist); }

.nw-main { padding: 0 0 var(--safe-bottom); max-width: 430px; margin: 0 auto; }
.nw-lead { margin: 10px 16px 0; font-size: 15px; font-weight: 600; color: #4a5b6a; text-align: center; }
.nw-safe { margin: 8px 16px 0; font-size: 13px; font-weight: 600; color: #5a6b7a; text-align: center; }
.nw-paper { margin: 4px 16px 0; font-size: 12px; font-weight: 700; color: #7a6a4a; text-align: center; }

.nw-hero {
  position: relative; margin: 12px 16px 0; height: var(--hero); border-radius: 24px;
  overflow: hidden; border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(123,163,184,.22);
  background:
    radial-gradient(120px 80px at 70% 20%, rgba(201,184,217,.45), transparent 70%),
    linear-gradient(180deg, var(--mist) 0%, #e8f0f6 55%, var(--moss) 100%);
}
.nw-hero-art { position: absolute; inset: 0; pointer-events: none; }
.nw-station {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 150px; height: 54px;
}
.nw-cats {
  position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%);
  display: flex; gap: 8px; align-items: flex-end; pointer-events: none;
}
.nw-cats img { width: 42px; height: auto; filter: drop-shadow(0 3px 4px rgba(44,58,71,.2)); }

.nw-pin {
  position: absolute; width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid #fff; background: #fff; color: var(--ink);
  display: grid; place-items: center; font-size: 18px; cursor: pointer;
  box-shadow: 0 4px 10px rgba(44,58,71,.18); padding: 0; z-index: 2;
}
.nw-pin.open { background: linear-gradient(180deg, #fff, var(--cream)); }
.nw-pin.soon { background: var(--lock); color: #fff; opacity: .85; }
.nw-pin.active, .nw-pin:focus-visible {
  outline: none; box-shadow: 0 0 0 4px rgba(201,184,217,.85), 0 4px 10px rgba(44,58,71,.18);
}
.nw-pin[data-stop="snow"] { left: 18%; top: 18%; }      /* 10 o'clock */
.nw-pin[data-stop="hytte"] { left: 12%; top: 52%; }     /* 8 */
.nw-pin[data-stop="fjord"] { left: 22%; top: 72%; }     /* 7 */
.nw-pin[data-stop="midsummer"] { left: 68%; top: 68%; } /* 4 */
.nw-pin[data-stop="lucia"] { left: 76%; top: 28%; }     /* 2 */
.nw-pin[data-stop="aurora"] { left: 48%; top: 8%; }     /* 12 */

.nw-pick {
  margin: 14px 16px 8px; font-size: 16px; font-weight: 700; line-height: 28px; height: 28px;
}
.nw-cards { display: grid; gap: 12px; padding: 0 16px 8px; }
.nw-card {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center;
  min-height: 88px; padding: 12px; border-radius: 20px; text-align: start;
  background: #fff; border: 3px solid var(--mist); color: var(--ink);
  box-shadow: 0 4px 12px rgba(123,163,184,.14); cursor: pointer;
  font: inherit; width: 100%;
}
.nw-card.soon { border-color: #d5dce3; background: #f7f9fb; color: #667788; cursor: default; }
.nw-card.active { border-color: var(--fjord); box-shadow: 0 0 0 3px rgba(123,163,184,.35); }
.nw-card .ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 28px; background: var(--mist);
}
.nw-card.soon .ico { background: #e4e9ee; }
.nw-card .txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nw-card .txt b { font-size: 16px; line-height: 1.2; }
.nw-card .txt small { font-size: 13px; font-weight: 600; color: #5a6b7a; line-height: 1.25; }
.nw-card .go {
  min-width: 44px; min-height: 44px; border-radius: 999px; border: 0;
  background: var(--fjord); color: #fff; font-weight: 800; font-size: 14px;
  display: grid; place-items: center; pointer-events: none;
}
.nw-card.soon .go { background: var(--lock); font-size: 12px; padding: 0 8px; }

.nw-panel {
  display: none; margin: 8px 16px 16px; border-radius: 22px; overflow: hidden;
  border: 3px solid #fff; background: #fff;
  box-shadow: 0 10px 24px rgba(44,58,71,.12);
}
.nw-panel.show { display: block; }
.nw-panel-bar {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 10px;
  background: var(--mist); border-bottom: 1px solid rgba(123,163,184,.25);
}
.nw-panel-bar h2 { flex: 1; margin: 0; font-size: 16px; }
.nw-panel-close {
  min-width: 44px; min-height: 44px; border-radius: 999px; border: 2px solid #fff;
  background: #fff; font-weight: 700; cursor: pointer; color: var(--ink);
}
.nw-stage { position: relative; min-height: 220px; padding: 12px; }
.nw-status { margin: 0 0 8px; font-size: 14px; font-weight: 700; text-align: center; color: #4a5b6a; min-height: 20px; }
.nw-back-station {
  display: block; width: calc(100% - 24px); margin: 0 12px 12px; min-height: 44px;
  border-radius: 999px; border: 0; background: var(--pine); color: #fff;
  font-weight: 800; font-size: 15px; cursor: pointer;
}

/* Snow hill */
.snow-stage {
  background: linear-gradient(180deg, #e8f2fa 0%, #f4f7fa 55%, #fff 100%);
  border-radius: 16px; min-height: 200px; position: relative; overflow: hidden;
}
.snow-slope {
  position: absolute; left: -10%; right: -10%; bottom: 48px; height: 90px;
  background: linear-gradient(12deg, #dfeaf3, #fff); border-radius: 50% 50% 0 0;
  box-shadow: inset 0 8px 0 rgba(255,255,255,.7);
}
.sled-lane {
  position: absolute; height: 18px; border-radius: 999px; background: rgba(123,163,184,.18);
  cursor: pointer; border: 0; padding: 0;
}
.sled-lane:nth-child(1) { left: 8%; top: 42px; width: 70%; transform: rotate(8deg); }
.sled-lane:nth-child(2) { left: 12%; top: 78px; width: 74%; transform: rotate(10deg); }
.sled-lane:nth-child(3) { left: 6%; top: 114px; width: 78%; transform: rotate(12deg); }
.sled-dot {
  position: absolute; left: 8%; top: 50%; transform: translateY(-50%);
  width: 22px; height: 14px; border-radius: 8px; background: #c96b5c;
  box-shadow: 0 2px 0 #8d4338; transition: left .7s ease;
}
.sled-lane.go .sled-dot { left: 78%; }
.snowman-tray {
  position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 8px;
}
.snow-part {
  min-width: 44px; min-height: 44px; border-radius: 50%; border: 2px solid var(--mist);
  background: #fff; font-size: 18px; cursor: pointer;
}
.snowman-build {
  position: absolute; right: 16px; bottom: 58px; width: 54px; height: 70px;
  display: flex; flex-direction: column-reverse; align-items: center; gap: 2px;
}
.snowman-build .bit { width: 28px; height: 28px; border-radius: 50%; background: #fff;
  border: 2px solid #d7e2ec; opacity: .25; transition: opacity .2s; }
.snowman-build .bit.on { opacity: 1; }
.snowman-build .bit.b2 { width: 36px; height: 36px; }
.snowman-build .bit.b3 { width: 22px; height: 22px; }

/* Hytte */
.hytte-stage {
  background: linear-gradient(180deg, #efe6d8, var(--cream));
  border-radius: 16px; min-height: 210px; position: relative; overflow: hidden;
}
.hytte-room {
  position: absolute; inset: 16px 16px 52px; border-radius: 14px;
  background: linear-gradient(180deg, #f7efe4, #eddcc6); border: 3px solid #c9b297;
}
.hytte-window {
  position: absolute; right: 18px; top: 18px; width: 48px; height: 40px; border-radius: 8px;
  background: radial-gradient(circle at 40% 40%, #fff6d0, #f2c14e 70%);
  border: 3px solid #a88860; box-shadow: 0 0 16px rgba(255,214,120,.55);
}
.hytte-stove {
  position: absolute; left: 18px; bottom: 18px; width: 42px; height: 36px; border-radius: 8px;
  background: #8a7360; border: 2px solid #6a5648;
}
.hytte-stove::after {
  content: ''; position: absolute; left: 8px; right: 8px; top: 8px; height: 12px; border-radius: 6px;
  background: radial-gradient(circle, #ffe7a8, #e89a4a); opacity: .9;
}
.hytte-ladder {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  width: 28px; height: 70px; border-left: 4px solid #a88860; border-right: 4px solid #a88860;
  background: repeating-linear-gradient(180deg, transparent 0 10px, #a88860 10px 14px);
  opacity: .7;
}
.yarn {
  position: absolute; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: #fff; font-size: 18px; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.yarn.got { opacity: .35; transform: scale(.85); }
.yarn.y1 { left: 58%; top: 22px; }
.yarn.y2 { left: 72%; top: 48px; }
.yarn.y3 { left: 48%; top: 48px; }
.hytte-porch {
  position: absolute; left: 0; bottom: 0; width: 70px; height: 48px;
  background: linear-gradient(180deg, var(--pine), #6f927e); border-radius: 0 12px 0 0;
}

/* Fjord */
.fjord-stage {
  background: linear-gradient(180deg, var(--mist), #b7d0df 45%, var(--fjord));
  border-radius: 16px; min-height: 210px; position: relative; overflow: hidden;
}
.fjord-pier {
  position: absolute; left: 8%; right: 8%; top: 42%; height: 28px; border-radius: 8px;
  background: linear-gradient(180deg, #c9a57a, #a88860); border: 2px solid #8d6e4c;
}
.fjord-boat {
  position: absolute; left: 18%; top: 34%; width: 56px; height: 28px; border-radius: 40% 40% 50% 50%;
  background: #c45c4a; border: 2px solid #8d3b30;
}
.fjord-boat::before {
  content: ''; position: absolute; left: 22px; bottom: 20px; width: 4px; height: 22px; background: #5a4638;
}
.stone {
  position: absolute; width: 28px; height: 22px; border-radius: 50% 50% 40% 40%;
  background: #9aa8b4; border: 0; cursor: pointer; top: 58%;
}
.stone:nth-of-type(1) { left: 12%; }
.stone:nth-of-type(2) { left: 28%; }
.stone:nth-of-type(3) { left: 46%; }
.stone:nth-of-type(4) { left: 64%; }
.stone:nth-of-type(5) { left: 80%; }
.stone.on { background: #ffe27a; box-shadow: 0 0 0 3px rgba(255,226,122,.5); }
.fish {
  position: absolute; bottom: 18px; width: 34px; height: 28px; border: 0; background: transparent;
  font-size: 22px; cursor: pointer; opacity: .95;
}
.fish.found { filter: grayscale(1); opacity: .4; transform: scale(.9); }
.fish.f1 { left: 14%; } .fish.f2 { left: 30%; } .fish.f3 { left: 48%; }
.fish.f4 { left: 64%; } .fish.f5 { left: 78%; }

.nw-foot {
  margin: 8px 16px 0; text-align: center; font-size: 12px; color: #6a7a88; font-weight: 600;
}
[dir="rtl"] .nw-title { text-align: center; }
[dir="rtl"] .nw-lang ul { right: auto; left: 0; }
[dir="rtl"] .nw-card { text-align: start; }

@media (prefers-reduced-motion: reduce) {
  .sled-dot { transition: none; }
}
