/* RS Labs – gemensam stil för Dune och Depths (kit/engine.js). Samma formspråk som rymden: svart, varmvitt, orange #ff6a13, JetBrains Mono + Unbounded, L-hörn. */
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("/fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
:root { --bg: #000; --fg: #f5f2ec; --ember: #ff6a13; --hud: #ff6a13; --hud-rgb: 255, 106, 19; --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; --wide: "Unbounded", ui-sans-serif, system-ui, sans-serif; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); overflow: hidden; font-family: var(--mono); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  touch-action: none; user-select: none; -webkit-user-select: none; overscroll-behavior: none; }
body { background: var(--bg); }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
body.mouse-lock #gl { cursor: none; }
.nojs { position: fixed; inset: 0; display: grid; place-items: center; margin: 0; }
button { font: inherit; }

/* laddning */
.loader { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: #000; transition: opacity 1.1s ease, visibility 0s linear 1.1s; }
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-in { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.loader b { font: 300 clamp(26px, 6vw, 44px)/1 var(--wide); letter-spacing: .32em; text-indent: .32em; text-transform: uppercase; color: var(--fg); }
.loader p { margin: 0; font: 400 10px/1 var(--mono); letter-spacing: .32em; text-transform: lowercase; color: rgba(245, 242, 236, .45); }
.loader i { display: block; width: 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--ember), transparent); background-size: 200% 100%; animation: ldr 1.6s linear infinite; }
@keyframes ldr { from { background-position: 200% 0; } to { background-position: -200% 0; } }
html.nogl .loader i { display: none; }

/* loggan nere till vänster, ljud nere till höger */
.brand { position: fixed; z-index: 3; left: max(18px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); height: 24px; width: auto; opacity: .28; pointer-events: none; }
.sound { position: fixed; z-index: 6; cursor: pointer; right: max(16px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); width: 38px; height: 38px; padding: 0; margin: 0;
  display: flex; align-items: center; justify-content: center; color: rgba(245, 242, 236, .38); background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 106, 19, .22); border-radius: 50%; transition: color .3s, border-color .3s, box-shadow .3s; }
.sound:hover, .sound:focus-visible { color: var(--fg); border-color: rgba(255, 106, 19, .6); outline: none; }
.sound svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sound .spk { fill: currentColor; stroke: none; } .sound .x { display: none; }
.sound[aria-pressed="false"] .w1, .sound[aria-pressed="false"] .w2 { display: none; } .sound[aria-pressed="false"] .x { display: block; }
.sound[aria-pressed="true"] { color: var(--ember); border-color: rgba(255, 106, 19, .5); }
.snd-now { position: fixed; z-index: 4; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 90px); max-width: min(300px, calc(100vw - 32px)); pointer-events: none;
  font-size: 10px; letter-spacing: .14em; color: rgba(245, 242, 236, .6); opacity: 0; transform: translateY(4px); transition: opacity .8s ease, transform .8s ease; text-align: right; }
.snd-now.show { opacity: 1; transform: none; }

/* navigering uppe till vänster: worlds + places */
.wh-nav { position: fixed; z-index: 7; left: max(14px, env(safe-area-inset-left)); top: max(14px, env(safe-area-inset-top)); display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; max-width: calc(100vw - 28px); }
.wh-btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px 0 11px; cursor: pointer; text-decoration: none; font-size: 10px; letter-spacing: .2em; text-transform: lowercase;
  color: rgba(245, 242, 236, .75); background: rgba(0, 0, 0, .38); border: 1px solid rgba(255, 106, 19, .28); border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: color .3s, border-color .3s, box-shadow .3s; }
.wh-btn svg { fill: none; stroke: var(--ember); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wh-btn:hover, .wh-btn:focus-visible, .wh-btn[aria-expanded="true"] { color: #fff; border-color: rgba(255, 106, 19, .8); box-shadow: 0 0 1em rgba(255, 106, 19, .25); outline: none; }
.wh-btn .chev { stroke: currentColor; transition: transform .3s; } .wh-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.wh-list { flex-basis: 100%; width: min(300px, calc(100vw - 28px)); max-height: min(62vh, 520px); overflow-y: auto; overscroll-behavior: contain; padding: 8px 6px; background: rgba(8, 8, 10, .95);
  border: 1px solid rgba(255, 106, 19, .3); border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.wh-list[hidden] { display: none; }
.wh-lh { display: flex; justify-content: space-between; margin: 4px 10px 8px; font-size: 9px; letter-spacing: .24em; color: rgba(245, 242, 236, .5); }
.wh-lh span { color: var(--ember); }
.wh-list button { display: block; width: 100%; text-align: left; padding: 8px 10px; cursor: pointer; background: none; border: 0; border-radius: 9px; color: var(--fg); }
.wh-list button b { display: block; font-weight: 500; font-size: 11.5px; letter-spacing: .08em; }
.wh-list button small { display: block; margin-top: 2px; font-size: 10px; color: rgba(245, 242, 236, .45); letter-spacing: .04em; }
.wh-list button:hover:not(:disabled), .wh-list button:focus-visible { background: rgba(255, 106, 19, .12); outline: none; }
.wh-list button.here b { color: var(--ember); }
.wh-list button:disabled { cursor: default; } .wh-list button:disabled b { color: rgba(245, 242, 236, .35); letter-spacing: .2em; }

/* HUD */
.hud { position: fixed; inset: 0; z-index: 3; pointer-events: none; font: 400 12px/1.4 var(--mono); color: var(--fg); opacity: 0; transition: opacity 1.2s ease; }
body.ready .hud { opacity: 1; } body.hud-off .hud, body.hud-off .wh-tags { opacity: 0 !important; }
.hud p { margin: 0; }
.hud .t { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(var(--hud-rgb), .75); }
.hud b { font-weight: 400; color: var(--fg); }
.hd-br { position: absolute; padding: 14px 18px; }
.hd-br::before, .hd-br::after { content: ""; position: absolute; width: 14px; height: 14px; border: solid rgba(var(--hud-rgb), .7); }
.hd-br::before { left: 0; top: 0; border-width: 1px 0 0 1px; } .hd-br::after { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.hd-top { position: absolute; left: 50%; top: max(20px, calc(env(safe-area-inset-top) + 14px)); transform: translateX(-50%); text-align: center; }
.hd-mode { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(var(--hud-rgb), .8); white-space: nowrap; }
.hd-mode i { font-style: normal; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.wh-tape { position: relative; width: min(460px, 56vw); height: 34px; margin: 10px auto 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.wh-ticks { position: absolute; inset: 0; }
.wh-ticks i { position: absolute; top: 0; transform: translateX(-50%); font-style: normal; font-size: 9px; letter-spacing: .1em; color: rgba(var(--hud-rgb), .55); padding-top: 9px; }
.wh-ticks i::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 6px; background: rgba(var(--hud-rgb), .5); }
.wh-ticks i.c { color: var(--hud); font-weight: 600; }
.wh-ticks b { position: absolute; top: 19px; transform: translateX(-50%); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg); white-space: nowrap; }
.wh-ticks b small { margin-left: 5px; color: rgba(245, 242, 236, .45); font-size: 8px; }
.wh-ticks b::before { content: "▼"; position: absolute; left: 50%; top: -9px; transform: translateX(-50%); font-size: 6px; color: var(--hud); }
.wh-ticks b.q { color: rgba(245, 242, 236, .55); }
.wh-mid { position: absolute; left: 50%; top: 0; width: 1px; height: 12px; background: var(--fg); }
.wh-big { left: max(26px, calc(env(safe-area-inset-left) + 20px)); bottom: max(60px, calc(env(safe-area-inset-bottom) + 50px)); min-width: 180px; }
.hd-vn { display: flex; align-items: baseline; gap: 8px; margin-top: 6px !important; white-space: nowrap; }
.hd-vn b { font: 400 32px/1 var(--wide); letter-spacing: .02em; }
.hd-vn small { font-size: 11px; color: rgba(245, 242, 236, .5); }
.wh-row { position: absolute; right: max(26px, calc(env(safe-area-inset-right) + 20px)); bottom: max(108px, calc(env(safe-area-inset-bottom) + 98px)); display: flex; flex-direction: column; gap: 10px; text-align: right; }
.wh-row .t { margin-bottom: 2px !important; font-size: 9px; }
.wh-row b { font-size: 12px; }
@media (pointer: coarse) {
  .wh-big { bottom: auto; top: max(92px, calc(env(safe-area-inset-top) + 84px)); left: max(14px, env(safe-area-inset-left)); padding: 10px 14px; min-width: 0; }
  .hd-vn b { font-size: 22px; }
  .wh-row { top: max(92px, calc(env(safe-area-inset-top) + 84px)); bottom: auto; right: max(14px, env(safe-area-inset-right)); gap: 6px; }
  .hd-top { top: max(58px, calc(env(safe-area-inset-top) + 52px)); }
  .wh-tape { width: 78vw; }
}

/* sikte (pekaren låst) och etikett för saker att trycka på */
.wh-cross { position: fixed; z-index: 4; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.wh-cross i { position: absolute; inset: 7px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 8px rgba(255, 106, 19, .8); }
.wh-cross::before, .wh-cross::after { content: ""; position: absolute; width: 5px; height: 5px; border: solid rgba(var(--hud-rgb), .8); }
.wh-cross::before { left: 0; top: 0; border-width: 1px 0 0 1px; } .wh-cross::after { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
body.mouse-lock .wh-cross { opacity: .85; }
.wh-prompt { position: fixed; z-index: 4; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .4s; will-change: transform; }
.wh-prompt.show { opacity: 1; }
.wh-prompt i { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border: 1px solid rgba(var(--hud-rgb), .8); border-radius: 50%; animation: pr 1.8s ease-in-out infinite; }
.wh-prompt span { position: absolute; left: 18px; top: -7px; white-space: nowrap; font-size: 10px; letter-spacing: .18em; color: var(--fg); text-shadow: 0 0 6px #000, 0 0 12px #000; }
.wh-prompt span::before { content: "[ tap ] "; color: var(--hud); }
@media (pointer: fine) { .wh-prompt span::before { content: "[ click ] "; } }
.wh-prompt.got i { animation: none; opacity: .45; } .wh-prompt.got span { color: rgba(245, 242, 236, .6); } .wh-prompt.got span::before { content: ""; }
@keyframes pr { 0%, 100% { transform: scale(.85); opacity: .5; } 50% { transform: scale(1.1); opacity: 1; } }
.wh-tags { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.lock-hint { display: none; }
body.lock-hint-on:not(.mouse-lock) .wh-lock { opacity: .7; }
.wh-lock { position: fixed; z-index: 3; left: 50%; bottom: max(26px, env(safe-area-inset-bottom)); transform: translateX(-50%); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--fg); opacity: 0; transition: opacity .8s; pointer-events: none; }

/* rad när man hittar något */
.egg { position: fixed; z-index: 8; left: 0; top: 0; margin: 0; pointer-events: none; white-space: nowrap; font: 400 12.5px/1.45 var(--mono); letter-spacing: .04em; color: var(--fg); padding: 8px 14px; border-radius: 999px;
  background: rgba(8, 7, 7, .78); border: 1px solid rgba(255, 106, 19, .45); box-shadow: 0 0 22px rgba(255, 106, 19, .22); opacity: 0; transition: opacity .5s ease; }
.egg.show { opacity: 1; }
.egg.long { white-space: normal; width: max-content; max-width: min(380px, calc(100vw - 24px)); border-radius: 14px; text-align: center; }

/* citat */
.muse { position: fixed; z-index: 3; left: max(8vw, 40px); top: 58vh; width: min(520px, calc(100vw - 80px)); pointer-events: none; margin: 0;
  font: 300 18px/1.6 var(--mono); color: rgba(245, 242, 236, .92); text-shadow: 0 0 18px rgba(0, 0, 0, .6), 0 0 18px rgba(255, 106, 19, .2); opacity: 0; transform: translateY(6px); }
.muse.show { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s ease; }
.muse.out { opacity: 0; transform: translateY(-6px); transition: opacity 3.5s ease, transform 3.5s ease; }
.mu-p, .mu-c { color: var(--hud); } .mu-c { animation: blink 1.05s steps(1) infinite; }
@media (max-width: 640px), (max-height: 520px) { .muse { left: 26px; right: 26px; width: auto; top: calc(max(12px, env(safe-area-inset-top)) + 190px); font-size: 14px; } }

/* fyndjakten (samma som rymden) */
.hunt { position: fixed; z-index: 6; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 48px); display: flex; flex-direction: column-reverse; align-items: flex-end; opacity: 0; pointer-events: none; transition: opacity 1.2s ease; }
body.ready .hunt { opacity: 1; pointer-events: auto; }
.hunt-btn { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px; margin: 0; cursor: pointer; font-size: 10px; letter-spacing: .14em; white-space: nowrap;
  color: rgba(245, 242, 236, .62); background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 106, 19, .22); border-radius: 999px; transition: color .3s, border-color .3s, box-shadow .3s; }
.hunt-btn svg { flex: none; fill: none; stroke: var(--ember); stroke-width: 1.7; stroke-linejoin: round; }
.hunt-btn b { font-weight: 600; color: var(--fg); }
.hunt-btn:hover, .hunt-btn:focus-visible, .hunt-btn[aria-expanded="true"] { color: #fff; border-color: rgba(255, 106, 19, .8); box-shadow: 0 0 1em rgba(255, 106, 19, .25); outline: none; }
.hunt-btn.new { animation: huntGlow 2.4s ease; } .hunt-btn.new svg { animation: huntSpin 1.1s cubic-bezier(.2, .7, .2, 1); fill: var(--ember); }
@keyframes huntGlow { 0% { border-color: #ff6a13; box-shadow: 0 0 0 0 rgba(255, 106, 19, .8), 0 0 22px rgba(255, 106, 19, .7); color: #fff; } 100% { box-shadow: 0 0 0 14px rgba(255, 106, 19, 0); } }
@keyframes huntSpin { from { transform: rotate(-144deg) scale(1.5); } to { transform: none; } }
.hunt-panel { margin-bottom: 8px; padding: 10px 6px 8px; width: 310px; max-height: min(64vh, 560px); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y;
  background: rgba(8, 8, 10, .95); border: 1px solid rgba(255, 106, 19, .3); border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); font-size: 11px; letter-spacing: .03em; }
.hunt-panel[hidden] { display: none; }
.hunt-a { margin: 10px 10px 2px; padding-top: 8px; border-top: 1px solid rgba(255, 106, 19, .16); font-size: 8.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(245, 242, 236, .4); }
.hunt-panel ul { list-style: none; margin: 0; padding: 0; }
.hunt-panel li { display: grid; grid-template-columns: 14px 1fr; column-gap: 8px; padding: 6px 10px; line-height: 1.35; }
.hunt-panel li::before { content: ""; grid-row: 1 / 3; margin-top: 4px; width: 6px; height: 6px; border-radius: 50%; border: 1px solid rgba(245, 242, 236, .3); }
.hunt-panel li.got::before { background: var(--ember); border-color: var(--ember); box-shadow: 0 0 6px var(--ember); }
.hunt-panel li b { font-weight: 500; color: rgba(245, 242, 236, .45); letter-spacing: .1em; }
.hunt-panel li.got b { color: var(--fg); letter-spacing: .04em; }
.hunt-panel li span { grid-column: 2; color: rgba(245, 242, 236, .42); font-size: 10.5px; }
.hunt-panel li.got span { color: rgba(255, 170, 120, .85); font-style: italic; }
.hunt-rank { margin: 2px 6px 10px; padding: 9px 10px 8px; border: 1px solid rgba(255, 106, 19, .28); border-radius: 10px; background: rgba(255, 106, 19, .05); }
.hunt-rank p { margin: 0 0 6px; display: flex; align-items: baseline; justify-content: space-between; }
.hunt-rank b { font: 500 12px/1.2 var(--wide); letter-spacing: .14em; color: #ffb37a; }
.hunt-rank p span { font-size: 9.5px; letter-spacing: .14em; color: rgba(245, 242, 236, .55); }
.hunt-bar { display: block; height: 3px; border-radius: 3px; background: rgba(245, 242, 236, .1); overflow: hidden; }
.hunt-bar i { display: block; height: 100%; background: var(--ember); transform-origin: 0 50%; box-shadow: 0 0 6px var(--ember); }
.hunt-rank small { display: block; margin-top: 6px; font-size: 9px; letter-spacing: .1em; color: rgba(245, 242, 236, .42); }
.hunt-flash { position: fixed; z-index: 8; left: -60px; top: -60px; width: 120px; height: 120px; pointer-events: none; opacity: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 210, .95) 0%, rgba(255, 140, 60, .7) 18%, rgba(255, 106, 19, .22) 42%, rgba(255, 106, 19, 0) 70%); }
.hunt-flash.go { animation: huntFlash .9s cubic-bezier(.2, .7, .2, 1); }
@keyframes huntFlash { 0% { opacity: 0; scale: .2; } 18% { opacity: 1; scale: .9; } 100% { opacity: 0; scale: 2.4; } }
@media (pointer: coarse) { .hunt-btn { height: 34px; } .hunt { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 50px); } }
@media (max-width: 560px) { .hunt-l { display: none; } .hunt-panel { width: min(320px, calc(100vw - 32px)); max-height: min(58vh, 520px); } }

/* spakar (telefon) */
.stick { position: fixed; z-index: 4; display: none; left: 0; top: 0; width: 96px; height: 96px; pointer-events: none; will-change: transform, opacity; border-radius: 50%; border: 1px solid rgba(255, 106, 19, .45); opacity: 0; transition: opacity .9s ease; }
.stick::before, .stick::after { content: ""; position: absolute; width: 12px; height: 12px; border: solid rgba(255, 106, 19, .8); }
.stick::before { left: -8px; top: -8px; border-width: 1px 0 0 1px; } .stick::after { right: -8px; bottom: -8px; border-width: 0 1px 1px 0; }
.stick .knob { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 1px solid var(--ember); background: rgba(255, 106, 19, .28); box-shadow: 0 0 12px rgba(255, 106, 19, .45); }
.stick-l { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); font: 400 8.5px/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: rgba(255, 106, 19, .8); }
body.ready .stick.show { opacity: .6; } .stick.active { opacity: .8 !important; transition: opacity .12s ease; }
@media (pointer: coarse) { .stick { display: block; } }
.stick-zone { position: fixed; z-index: 3; display: none; bottom: 0; top: 52%; touch-action: none; -webkit-touch-callout: none; background: transparent; }
.sz-move { left: 0; width: 42%; } .sz-look { right: 0; width: 42%; }
@media (orientation: landscape) { .stick-zone { top: 38%; } }
@media (pointer: coarse) { body.ready .stick-zone { display: block; } }
.fly-btn { position: fixed; z-index: 5; left: 0; top: 0; width: 60px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center; touch-action: none; -webkit-touch-callout: none;
  font: 400 9px/1 var(--mono); letter-spacing: .2em; text-indent: .2em; text-transform: uppercase; color: var(--ember); background: rgba(0, 0, 0, .38); border: 1px solid rgba(255, 106, 19, .45);
  opacity: 0; pointer-events: none; transition: opacity .9s ease, background .15s ease; }
body.ready .fly-btn.show { opacity: .75; pointer-events: auto; }
.fly-btn.on { background: rgba(255, 106, 19, .3); opacity: 1 !important; }

/* guide */
.guide-q { position: fixed; z-index: 6; left: calc(max(18px, env(safe-area-inset-left)) + 64px); bottom: max(14px, env(safe-area-inset-bottom)); width: 28px; height: 28px; padding: 0; cursor: pointer;
  font-size: 12px; color: rgba(245, 242, 236, .55); background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 106, 19, .25); border-radius: 50%; }
.guide-q:hover, .guide-q:focus-visible { color: #fff; border-color: var(--ember); outline: none; }
.wh-guide { position: fixed; inset: 0; z-index: 12; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.wh-guide.show { opacity: 1; }
.wg-box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 32px)); padding: 22px 22px 18px; text-align: center; pointer-events: auto;
  background: rgba(6, 6, 8, .82); border: 1px solid rgba(255, 106, 19, .4); border-radius: 16px; box-shadow: 0 0 60px rgba(255, 106, 19, .12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.wg-box b { display: block; margin-bottom: 14px; font: 400 15px/1.2 var(--wide); letter-spacing: .26em; text-transform: uppercase; color: var(--fg); }
.wg-box p { margin: 7px 0; font-size: 11.5px; line-height: 1.55; letter-spacing: .06em; color: rgba(245, 242, 236, .78); }
.wg-box em { font-style: normal; color: var(--ember); }
.wg-box kbd { display: inline-block; min-width: 20px; margin: 0 2px; padding: 2px 5px; font: 500 10px/1.3 var(--mono); color: var(--fg); border: 1px solid rgba(255, 106, 19, .5); border-radius: 4px; }
.guide-x { margin-top: 12px; padding: 8px 20px; cursor: pointer; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: #000; background: var(--ember); border: 0; border-radius: 999px; }
.wg-th { position: absolute; bottom: 168px; width: 96px; height: 96px; border-radius: 50%; border: 1px dashed rgba(255, 106, 19, .8); display: grid; place-items: center;
  font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--ember); animation: pr 1.8s ease-in-out infinite; }
.wg-l { left: calc(max(24px, 5vw)); } .wg-r { right: calc(max(24px, 5vw)); }
@media (orientation: landscape) { .wg-th { bottom: 82px; } }

@media (prefers-reduced-motion: reduce) { .hunt-btn.new, .hunt-btn.new svg, .hunt-flash.go, .wh-prompt i, .wg-th { animation: none; } }

/* flerspelare (kit/mp.js): rad uppe till höger, andras ljus med namn, pratbubblor, logg */
.wm-chip { position: fixed; z-index: 6; right: max(14px, env(safe-area-inset-right)); top: max(14px, env(safe-area-inset-top)); display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 6px 0 14px;
  font-size: 9.5px; letter-spacing: .16em; color: rgba(245, 242, 236, .7); background: rgba(0, 0, 0, .38); border: 1px solid rgba(255, 106, 19, .28); border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.wm-chip[hidden] { display: none; }
.wm-n { color: var(--fg); } .wm-me { color: rgba(245, 242, 236, .45); }
.wm-say { width: 24px; height: 24px; padding: 0; display: grid; place-items: center; cursor: pointer; background: none; border: 1px solid rgba(255, 106, 19, .4); border-radius: 50%; }
.wm-say svg { width: 12px; height: 12px; fill: none; stroke: var(--ember); stroke-width: 1.4; stroke-linejoin: round; }
@media (max-width: 640px) { .wm-me { display: none; } .wm-chip { top: auto; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 4px); right: auto; left: 50%; transform: translateX(-50%); } }
.wm-sayf { position: fixed; z-index: 14; left: 50%; bottom: max(90px, calc(env(safe-area-inset-bottom) + 80px)); transform: translateX(-50%); display: flex; flex-wrap: wrap; gap: 8px; width: min(440px, calc(100vw - 28px)); }
.wm-sayf[hidden] { display: none; }
.wm-sayf input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; font: 400 14px var(--mono); color: var(--fg); background: rgba(8, 8, 10, .92); border: 1px solid rgba(255, 106, 19, .5); border-radius: 999px; outline: none; user-select: text; -webkit-user-select: text; }
.wm-sayf button { height: 40px; padding: 0 16px; cursor: pointer; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: #000; background: var(--ember); border: 0; border-radius: 999px; }
.wm-why { flex-basis: 100%; margin: 0; font-size: 10px; color: rgba(255, 170, 120, .9); text-align: center; min-height: 12px; }
.wm-log { position: fixed; z-index: 5; right: max(14px, env(safe-area-inset-right)); top: calc(max(14px, env(safe-area-inset-top)) + 42px); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; pointer-events: none; }
.wm-lr { margin: 0; padding: 4px 10px; font-size: 11px; color: var(--fg); background: rgba(0, 0, 0, .45); border-radius: 999px; transition: opacity 1.2s; max-width: min(360px, 80vw); }
.wm-lr b { font-weight: 500; color: var(--ember); } .wm-lr.me b { color: rgba(245, 242, 236, .5); } .wm-lr.old { opacity: 0; }
.wm-layer { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.wm-peer { position: absolute; left: 0; top: 0; will-change: transform; }
.wm-peer[hidden] { display: none; }
.wm-peer i { position: absolute; left: calc(var(--sz) / -2); top: calc(var(--sz) / -2); width: var(--sz); height: var(--sz); border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 220, 190, .95) 25%, rgba(255, 106, 19, .55) 55%, rgba(255, 106, 19, 0) 72%); box-shadow: 0 0 18px rgba(255, 140, 60, .7); animation: wmP 2.4s ease-in-out infinite; }
.wm-peer.wave i { animation: wmW .5s ease-in-out 3; }
.wm-peer b { position: absolute; left: 12px; top: -22px; white-space: nowrap; font-weight: 400; font-size: 9.5px; letter-spacing: .16em; color: var(--fg); text-shadow: 0 0 6px #000, 0 0 10px #000; }
.wm-peer span { position: absolute; left: 12px; top: -48px; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; padding: 4px 10px; font-size: 11px; color: var(--fg); background: rgba(8, 7, 7, .8); border: 1px solid rgba(255, 106, 19, .45); border-radius: 12px 12px 12px 2px; }
.wm-peer span[hidden] { display: none; }
@keyframes wmP { 50% { transform: scale(1.18); } } @keyframes wmW { 50% { transform: scale(1.8); } }
