/* World shell: web world canvas, HUD, labels, dialogue, overlays, intro, touch controls. */
html, body { height: 100%; overflow: hidden; }
body.world { background: #BFEAE6; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
canvas[role="img"] { image-rendering: pixelated; display: block; }

/* ---------- stage ---------- */
.shell { position: fixed; inset: 0; }
.stage { position: absolute; inset: 0; overflow: hidden; }
.stage .layer { position: absolute; inset: 0; transition: opacity .35s; }
.stage .layer.off { opacity: 0; pointer-events: none; }
.world-gl { position: absolute; inset: 0; display: block; }
.world-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.stream-layer { background: #0E1419; }
.stream-video { position: absolute; inset: 0; }
.stream-video video { width: 100%; height: 100%; object-fit: contain; background: #0E1419; }

/* in-world labels */
.wlabel { position: absolute; left: 0; top: 0; pointer-events: auto; background: #FFFFFF; border: 2px solid var(--ink); border-radius: 6px; box-shadow: 0 3px 0 var(--ink); padding: 4px 6px 3px; cursor: pointer; white-space: nowrap; will-change: transform; }
.wlabel canvas { height: 11px; width: auto; }
.wlabel { padding: 3px 5px 2px; }
.wlabel.place { background: var(--ink); cursor: default; }
.wlabel.place canvas { filter: invert(1); }
.wlabel.room::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 10px; height: 10px; background: #FFF; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
.wlabel.room:hover, .wlabel.room.sel { background: #E8FFD6; transform-origin: 50% 100%; }
.wlabel.room.sel { box-shadow: 0 3px 0 var(--ink), 0 0 0 4px rgba(126,224,74,.55); }
.wlabel.plot { font: 900 10px/1 var(--font-game); letter-spacing: .06em; color: var(--ink); background: #CFF7B5; padding: 5px 7px; border-style: dashed; box-shadow: none; opacity: .92; }
.wlabel.plot:hover { background: #7EE04A; opacity: 1; }
.wtag { position: absolute; left: 0; top: 0; background: rgba(31,38,48,.82); color: #fff; font: 800 11px/1 var(--font-ui); letter-spacing: .04em; padding: 4px 7px; border-radius: 5px; white-space: nowrap; will-change: transform; }
.wtag.near { background: #7EE04A; color: var(--ink); border: 2px solid var(--ink); }
.wbubble { position: absolute; left: 0; top: 0; background: #FFF; border: 2.5px solid var(--ink); border-radius: 10px; padding: 6px 12px; font: 900 18px/1 var(--font-game); color: var(--ink); box-shadow: 0 3px 0 var(--ink); will-change: transform; animation: pop .35s cubic-bezier(.2,.9,.3,1.4); }
.wbubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 12px; height: 12px; background: #FFF; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

/* ---------- HUD ---------- */
.hud { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.hud > * { pointer-events: auto; }
.hud-tl { position: absolute; left: 12px; top: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; max-width: calc(100vw - 260px); }
.hud-tr { position: absolute; right: 12px; top: 12px; display: flex; gap: 8px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; background: #FFFFFF; border: 2px solid var(--ink); border-radius: 999px; box-shadow: var(--shadow); padding: 0 14px; font: 900 12px/1 var(--font-game); letter-spacing: .07em; text-transform: uppercase; color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
.pill:hover { background: #F2FFE9; }
.pill:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.pill:focus-visible, .sq:focus-visible { outline: 3px solid var(--turq); outline-offset: 2px; }
.pill.dark { background: var(--ink); color: #fff; }
.pill.lime { background: #7EE04A; }
.pill.lime:hover { background: #95EC66; }
.pill .ava { width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 12px; border: 1.5px solid var(--ink); margin-left: -8px; }
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #9AA3AD; }
.dot.live { background: var(--green); } .dot.warn { background: var(--gold); } .dot.bad { background: var(--red); }
.logo { padding: 0 14px 0 8px; gap: 6px; }
.logo canvas { height: 20px; width: auto; }
.logo .gem { width: 24px; height: 24px; border-radius: 6px; background: #7EE04A; border: 2px solid var(--ink); display: grid; place-items: center; font-size: 12px; }
.seg { display: inline-flex; background: #fff; border: 2px solid var(--ink); border-radius: 999px; box-shadow: var(--shadow); padding: 3px; gap: 2px; height: 40px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 0 12px; font: 900 11px/1 var(--font-game); letter-spacing: .07em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.clock { font-variant-numeric: tabular-nums; }
.sq { width: 44px; height: 44px; display: grid; place-items: center; background: #FFFFFF; border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow); font-size: 19px; cursor: pointer; padding: 0; color: var(--ink); position: relative; }
.sq:active { transform: translateY(3px); box-shadow: none; }
.sq[disabled] { opacity: .45; cursor: not-allowed; }
.sq[aria-pressed="true"] { background: var(--ink); color: #fff; }
.sq .badge { position: absolute; right: -4px; top: -4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: #9AA3AD; }
.rail { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: grid; gap: 9px; z-index: 5; }
.menu { position: absolute; right: 0; top: 50px; min-width: 230px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; z-index: 9; }
.menu a, .menu button { text-align: left; font: 700 14px var(--font-ui); color: var(--ink); background: none; border: 0; padding: 10px 12px; border-radius: 6px; cursor: pointer; text-decoration: none; }
.menu a:hover, .menu button:hover { background: var(--mint-2); }
.menu hr { border: 0; border-top: 1.5px solid #D9D2BF; margin: 4px 6px; width: auto; }

/* district caption (bottom-left) */
.district { position: absolute; left: 18px; bottom: 84px; pointer-events: none; z-index: 4; display: grid; gap: 6px; }
.district canvas { height: 34px; width: auto; }
.district .sub canvas { height: 13px; }
.district.show { animation: districtIn 3.6s ease both; }
@keyframes districtIn { 0% { opacity: 0; transform: translateX(-24px); } 10%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(-8px); } }

/* hint + proximity prompts (bottom centre) */
.prompts { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; z-index: 4; pointer-events: none; }
.prompts > * { pointer-events: auto; }
.prompt-row { display: flex; gap: 8px; }
.prompt { display: inline-flex; align-items: center; gap: 8px; background: #7EE04A; border: 2px solid var(--ink); border-radius: 10px; box-shadow: var(--shadow); padding: 8px 12px; font: 900 12px/1 var(--font-game); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); cursor: pointer; animation: pop .25s ease-out; }
.prompt kbd { background: var(--ink); color: #fff; border-radius: 4px; padding: 3px 6px; font: inherit; }
.prompt.alt { background: #fff; }
.hint { margin: 0; background: rgba(31,38,48,.72); color: #fff; border-radius: 8px; padding: 6px 12px; font: 600 12px/1.3 var(--font-ui); text-align: center; }
.debug { position: absolute; left: 12px; top: 60px; font: 600 11px var(--font-mono); color: var(--ink); background: rgba(255,255,255,.75); padding: 3px 7px; border-radius: 5px; z-index: 4; pointer-events: none; }
.web-badge { position: absolute; right: 12px; bottom: 8px; font: 700 10.5px var(--font-ui); color: var(--ink-2); background: rgba(255,255,255,.7); padding: 3px 8px; border-radius: 5px; z-index: 3; pointer-events: none; }

/* quests */
.quests { position: absolute; left: 12px; top: 64px; width: 250px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow); z-index: 4; overflow: hidden; }
.quests h3 { margin: 0; display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; background: var(--ink); color: #fff; font: 900 12px/1 var(--font-game); letter-spacing: .08em; cursor: pointer; }
.quests ol { list-style: none; margin: 0; padding: 6px 10px 10px; display: grid; gap: 5px; }
.quests li { display: flex; gap: 8px; align-items: center; font: 600 13px/1.25 var(--font-ui); color: var(--ink); }
.quests li::before { content: ""; flex: none; width: 15px; height: 15px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; }
.quests li.done { color: var(--muted); text-decoration: line-through; }
.quests li.done::before { background: #7EE04A; box-shadow: inset 0 0 0 2px #fff; }
.quests.min ol { display: none; }
.quest-toast { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); z-index: 12; background: #fff; border: 3px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px 18px; display: grid; justify-items: center; gap: 4px; animation: questIn 2.8s ease both; pointer-events: none; }
.quest-toast canvas { height: 18px; width: auto; }
.quest-toast span { font: 700 14px var(--font-ui); }
@keyframes questIn { 0% { transform: translate(-50%, -30px) scale(.8); opacity: 0; } 10%, 85% { transform: translate(-50%, 0) scale(1); opacity: 1; } 100% { transform: translate(-50%, -10px); opacity: 0; } }

/* map controls */
.mapctl { position: absolute; right: 12px; bottom: 34px; display: grid; gap: 8px; z-index: 5; }
.side-card { position: absolute; left: 12px; bottom: 14px; width: min(340px, calc(100vw - 24px)); background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 6; overflow: hidden; animation: pop .25s ease-out; }
.side-card header { background: var(--accent, #7EE04A); padding: 12px 14px; border-bottom: 2px solid var(--ink); display: grid; gap: 4px; }
.side-card header canvas { height: 18px; width: auto; }
.side-card header small { font: 800 11px var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.side-card .body { padding: 12px 14px 14px; display: grid; gap: 10px; }
.side-card .body p { margin: 0; font-size: 14px; }
.side-card .row { display: flex; gap: 8px; flex-wrap: wrap; }
.side-card .x { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--ink); background: #fff; cursor: pointer; font-weight: 900; }
.btn-game { font: 900 12px/1 var(--font-game); letter-spacing: .06em; text-transform: uppercase; border: 2px solid var(--ink); border-radius: 10px; box-shadow: var(--shadow); padding: 10px 12px; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-game.go { background: #7EE04A; }
.btn-game:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

/* stream status (only shown when the user opens the Unreal stream view) */
.status-card { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(560px, calc(100vw - 110px)); background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 14px 16px; z-index: 6; display: grid; gap: 6px; }
.status-card h2 { font: 900 15px/1.2 var(--font-game); letter-spacing: .06em; text-transform: uppercase; margin: 0; display: flex; align-items: center; gap: 8px; }
.status-card p { margin: 0; font-size: 13.5px; }
.status-card .dot { width: 10px; height: 10px; border-radius: 50%; background: #9AA3AD; flex: none; }

/* dialogue (talking to a host) */
.dialog { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(640px, calc(100vw - 24px)); z-index: 7; }
.dialog .cap { display: inline-flex; gap: 8px; align-items: center; background: var(--ink); color: #fff; border-radius: 10px 10px 0 0; padding: 8px 14px 7px; }
.dialog .cap canvas { height: 14px; width: auto; filter: invert(1); }
.dialog .cap small { font: 700 10px var(--font-ui); letter-spacing: .14em; color: #B6F59A; text-transform: uppercase; }
.dialog .box { background: #fff; border: 2.5px solid var(--ink); border-radius: 0 14px 14px 14px; box-shadow: var(--shadow-lg); padding: 14px 16px; }
.dialog .say { font: 600 17px/1.4 var(--font-ui); margin: 0 0 10px; min-height: 1.4em; }
.dialog .opts { display: grid; gap: 2px; }
.dialog .opts button { text-align: left; background: none; border: 0; font: 900 15px/1.2 var(--font-game); letter-spacing: .05em; text-transform: uppercase; padding: 8px 10px 8px 30px; border-radius: 6px; cursor: pointer; color: var(--ink); position: relative; }
.dialog .opts button:hover, .dialog .opts button:focus-visible { background: #EAFBDF; outline: none; }
.dialog .opts button:hover::before, .dialog .opts button:focus-visible::before { content: "►"; position: absolute; left: 9px; color: #4FAE2B; }

/* overlays (profiles, settings, interiors) */
.overlay { position: fixed; inset: 0; z-index: 20; background: rgba(16,21,29,.55); display: grid; place-items: start center; overflow: auto; padding: 4vh 14px; animation: fade .2s ease-out; }
.overlay > .profile { width: min(1000px, 100%); }
.overlay .sheet { width: min(460px, 100%); background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 20px; display: grid; gap: 12px; }
.overlay .sheet input[type=range] { padding: 0; border: 0; accent-color: var(--teal); }
@keyframes fade { from { opacity: 0; } }
.interior { position: fixed; inset: 0; z-index: 15; background: radial-gradient(120% 90% at 50% 40%, #FFF9EE, #EADFC8); animation: fade .35s ease-out; }
.interior .room-gl { position: absolute; inset: 0; }
.interior .bar { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; gap: 8px; align-items: center; z-index: 2; }
.interior .bar .grow { flex: 1; }
.interior .note { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); font: 600 12px var(--font-ui); background: rgba(255,255,255,.85); padding: 5px 10px; border-radius: 6px; }
.door-wipe { position: fixed; inset: 0; z-index: 16; background: var(--ink); pointer-events: none; animation: wipe .7s ease-in-out both; }
@keyframes wipe { 0% { clip-path: circle(0% at 50% 60%); } 45%, 55% { clip-path: circle(120% at 50% 60%); } 100% { clip-path: circle(0% at 50% 60%); } }

/* touch controls (walk mode on touch screens) */
.touch { display: none; position: absolute; inset: auto 0 18px 0; z-index: 6; pointer-events: none; padding: 0 18px; justify-content: space-between; align-items: end; }
.touch.on { display: flex; }
.touch > * { pointer-events: auto; }
.touch .stick { width: 124px; height: 124px; border-radius: 50%; background: rgba(255,255,255,.35); border: 2px solid rgba(27,36,48,.6); display: grid; place-items: center; touch-action: none; }
.touch .knob { width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow); }
.touch .actions { display: grid; grid-template-columns: repeat(2, 58px); gap: 10px; margin-right: 56px; }
.touch .actions button { width: 58px; height: 58px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow); font: 900 16px var(--font-game); touch-action: none; }
.touch .actions button.big { background: #7EE04A; }

/* touch controls for the Unreal stream (stream-player.js) */
.touch-controls { display: none; position: absolute; inset: auto 0 18px 0; z-index: 6; pointer-events: none; padding: 0 18px; justify-content: space-between; align-items: end; }
.touch-controls.on { display: flex; }
.touch-controls > * { pointer-events: auto; }
.touch-controls .stick { width: 120px; height: 120px; border-radius: 50%; background: rgba(247,243,232,.35); border: 2px solid rgba(27,36,48,.6); display: grid; place-items: center; touch-action: none; }
.touch-controls .knob { width: 52px; height: 52px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); box-shadow: var(--shadow); }
.touch-controls .actions { display: grid; grid-template-columns: repeat(2, 56px); gap: 10px; margin-right: 60px; }
.touch-controls .actions button { width: 56px; height: 56px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); box-shadow: var(--shadow); font: 900 18px var(--font-game); touch-action: none; }

/* ---------- intro ---------- */
.intro { position: fixed; inset: 0; z-index: 30; pointer-events: none; transition: opacity .6s; }
.intro.fade-out { opacity: 0; }
.intro-titlebox { position: absolute; left: 0; right: 0; top: 9vh; display: grid; justify-items: center; gap: 10px; transition: transform .8s cubic-bezier(.6,0,.2,1), opacity .5s; }
.intro.titles-up .intro-titlebox { transform: translateY(-3vh) scale(.62); }
.intro.flying .intro-titlebox { opacity: 0; transform: translateY(-12vh) scale(.5); }
.intro-kicker canvas { height: clamp(18px, 3vw, 30px); width: auto; }
.intro-title { margin: 0; display: flex; gap: clamp(2px, .5vw, 8px); }
.intro-title .ltr canvas { height: clamp(46px, 8.5vw, 104px); width: auto; filter: drop-shadow(0 6px 0 rgba(31,38,48,.25)); }
.intro-tag { margin: 0; font: 800 clamp(13px, 1.6vw, 17px)/1.3 var(--font-ui); color: var(--ink); background: rgba(255,255,255,.86); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; }
.intro-names { position: absolute; inset: 0; }
.intro-name { position: absolute; left: 0; top: 0; background: #fff; border: 2px solid var(--ink); border-radius: 8px; box-shadow: 0 4px 0 var(--ink), inset 0 -4px 0 #7EE04A; padding: 7px 12px 9px; font: 900 clamp(12px, 1.6vw, 18px)/1 var(--font-game); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.intro-flash { position: absolute; inset: 0; background: #F7FFFC; opacity: 0; transition: opacity .55s ease-in; }
.intro-flash.on { opacity: 1; transition: opacity .25s ease-in; }
.intro-flash.pop { opacity: .85; transition: none; }
.intro-ui > * { pointer-events: auto; }
.intro-sound { position: absolute; left: 14px; top: 14px; }
.intro-skip { position: absolute; right: 14px; top: 14px; }
.intro-cta { position: absolute; left: 50%; bottom: 9vh; transform: translateX(-50%); display: grid; justify-items: center; gap: 12px; width: min(92vw, 560px); }
.intro-start { font: 900 clamp(20px, 3.2vw, 34px)/1 var(--font-game); letter-spacing: .08em; color: #fff; background: #4FB52B; border: 3px solid var(--ink); border-radius: 16px; padding: 20px 34px 22px; box-shadow: 0 7px 0 var(--ink); cursor: pointer; text-shadow: 0 3px 0 rgba(0,0,0,.3); animation: pulse 1.6s ease-in-out .6s infinite; }
.intro-start:hover { background: #5CC536; }
.intro-start:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); }
.intro-start:focus-visible { outline: 4px solid #fff; outline-offset: 4px; }
.intro-hint { margin: 0; font: 700 12.5px var(--font-ui); color: var(--ink); background: rgba(255,255,255,.86); border-radius: 6px; padding: 4px 10px; }
@keyframes pulse { 50% { box-shadow: 0 7px 0 var(--ink), 0 0 0 12px rgba(126,224,74,.35); } }

@media (max-width: 1100px) { .hud-tr .hide-md { display: none; } .hud-tr .pill .nm { display: none; } .pill .ava { margin: 0 -6px; } }
@media (max-width: 860px) { .hud-tr .hide-sm { display: none; } }
@media (max-width: 720px) {
  .hud-tl { max-width: calc(100vw - 120px); }
  .hud-tl .seg, .hud-tr .hide-sm { display: none; }
  .rail { top: auto; bottom: 160px; transform: none; gap: 8px; }
  .sq { width: 40px; height: 40px; font-size: 17px; }
  .quests { display: none; }
  .hint { display: none; }
  .district canvas { height: 24px; }
  .district { bottom: 160px; }
  .side-card { bottom: 160px; }
  .prompts { bottom: 160px; }
}
@media (prefers-reduced-motion: reduce) { .intro-start { animation: none; } .district.show { animation-duration: .01s; opacity: 1; } }

/* ================= v3: archipelago HUD, devices, mini-games ================= */
.wlabel.civic { background: #FFF6DC; }
.wtag.npc { background: rgba(31,38,48,.66); font-size: 10.5px; }
.wtag.npc.quest { background: #F2C06B; color: var(--ink); border: 2px solid var(--ink); }
.wtag.npc.quest::before { content: "! "; font-weight: 900; }

/* coins */
.pill.coins { gap: 6px; padding: 0 14px 0 10px; background: #FFF6D6; }
.pill.coins .cn { font-size: 17px; }
.pill.coins b { font: 900 15px/1 var(--font-game); font-variant-numeric: tabular-nums; min-width: 2ch; }
.pill.coins.bump { animation: bump .45s cubic-bezier(.2,.9,.3,1.6); }
@keyframes bump { 30% { transform: scale(1.16); background: #F2C06B; } }
.coin-pop { position: absolute; right: 120px; top: 56px; font: 900 20px var(--font-game); color: #F2C06B; -webkit-text-stroke: 1.5px var(--ink); pointer-events: none; animation: coinUp .9s ease-out both; z-index: 9; }
@keyframes coinUp { from { transform: translateY(10px); opacity: 0; } 25% { opacity: 1; } to { transform: translateY(-34px); opacity: 0; } }
.sq .badge.num { width: auto; min-width: 18px; height: 18px; padding: 0 4px; font: 900 10px/14px var(--font-ui); color: #fff; background: var(--red); text-align: center; }

/* minimap */
.minimap { position: absolute; right: 14px; bottom: 30px; width: 150px; height: 150px; border-radius: 50%; box-shadow: var(--shadow-lg); cursor: pointer; z-index: 4; background: #3E9FC0; }
.minimap:focus-visible { outline: 3px solid var(--turq); outline-offset: 3px; }
.mapctl { bottom: 196px; }

/* quests tracker (v3) */
.quests li { display: block; }
.quests li::before { display: none; }
.quests li > div { display: grid; gap: 2px; padding: 6px 8px; border-radius: 8px; background: #F6F2E6; border-left: 4px solid #F2C06B; }
.quests li.ready > div { background: #EAFBDF; border-left-color: #7EE04A; }
.quests li.empty > div { border-left-color: #9AA3AD; }
.quests li b { font: 900 12px/1.2 var(--font-game); letter-spacing: .04em; text-transform: uppercase; }
.quests li small { font: 600 12px/1.3 var(--font-ui); color: var(--ink-2); }
.quests li.more button { background: none; border: 0; font: 800 12px var(--font-ui); color: var(--teal, #2FA394); cursor: pointer; padding: 2px 2px 0; }

/* live event banner + inside/ride bar */
.ev-banner { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 999px; padding: 5px 6px 5px 14px; box-shadow: 0 4px 0 rgba(0,0,0,.25); font: 700 12.5px var(--font-ui); z-index: 5; white-space: nowrap; animation: pop .3s ease-out; }
.ev-banner b { font: 900 12px var(--font-game); letter-spacing: .06em; color: #FF8AB0; }
.ev-banner .pill { height: 30px; padding: 0 12px; }
.ev-banner .ok { color: #B6F59A; }
.ev-banner .meter { position: relative; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.ev-banner .meter i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(126,224,74,.45); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #FF5A8A; box-shadow: 0 0 0 0 rgba(255,90,138,.7); animation: livePulse 1.4s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 10px rgba(255,90,138,0); } }
.where { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; z-index: 6; }
.where .nm { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; background: var(--ink); border-radius: 999px; box-shadow: var(--shadow); }
.where .nm canvas { height: 14px; width: auto; }
.stage[data-mode] { }
body:has(.where:not(.hidden)) .hud-tl .seg { display: none; }

/* emote wheel */
.emote-wheel { position: absolute; right: 66px; top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: repeat(3, 76px); gap: 6px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 8; animation: pop .2s ease-out; }
.emote-wheel button { display: grid; justify-items: center; gap: 3px; padding: 8px 4px; border: 2px solid var(--ink); border-radius: 10px; background: #F6F2E6; font: 800 11px var(--font-ui); text-transform: capitalize; cursor: pointer; color: var(--ink); }
.emote-wheel button b { font: 900 14px var(--font-game); }
.emote-wheel button:hover { background: #EAFBDF; }
.emote-wheel button.locked { opacity: .45; }

/* photo mode hides every overlay */
body.photo .hud, body.photo .world-labels, body.photo .toast-wrap { visibility: hidden; }

/* sleep */
.sleep-fade { position: fixed; inset: 0; z-index: 40; background: #0D1222; display: grid; place-items: center; animation: sleepFade 2.4s ease both; pointer-events: none; }
.sleep-fade canvas { height: 46px; width: auto; animation: pop 1s ease-out .3s both; }
@keyframes sleepFade { 0% { opacity: 0; } 30%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- devices ---------- */
.devices { position: fixed; inset: 0; z-index: 18; pointer-events: none; }
.device-wrap { position: absolute; inset: 0; pointer-events: auto; display: grid; place-items: center; background: rgba(16,21,29,.28); animation: fade .2s ease-out; }
.device-wrap.dw-phone { place-items: end end; padding: 0 84px 26px 0; background: transparent; pointer-events: none; }
.device-wrap.dw-phone > * { pointer-events: auto; }
.device-wrap.out { animation: fadeOut .2s ease-in both; }
@keyframes fadeOut { to { opacity: 0; } }
.device { color: var(--ink); font: 500 14px/1.35 var(--font-ui); }
.gbtn { font: 900 11.5px/1 var(--font-game); letter-spacing: .05em; text-transform: uppercase; border: 2px solid var(--ink); border-radius: 9px; box-shadow: 0 2px 0 var(--ink); padding: 8px 11px; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.gbtn:active { transform: translateY(2px); box-shadow: none; }
.gbtn.go { background: #7EE04A; }
.gbtn.on { background: var(--ink); color: #fff; }
.gbtn.danger { background: #FFE1DC; }
.device .note { font: 600 12.5px/1.4 var(--font-ui); color: var(--muted); margin: 6px 0; }
.device .tabs { display: flex; gap: 4px; background: #EFE8D6; border-radius: 10px; padding: 3px; margin: 0 0 10px; }
.device .tabs.wrap { flex-wrap: wrap; }
.device .tabs button { flex: 1; border: 0; background: none; border-radius: 8px; padding: 7px 8px; font: 900 11px var(--font-game); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; color: var(--ink); white-space: nowrap; }
.device .tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ph-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.ph-row .grow, .grow { flex: 1; text-align: center; }

/* phone */
.phone { width: 330px; height: min(640px, calc(100vh - 60px)); background: #12161D; border-radius: 42px; padding: 12px; box-shadow: 0 0 0 2px #3A4150, 0 18px 40px rgba(0,0,0,.45), var(--shadow-lg); display: flex; flex-direction: column; position: relative; animation: phoneUp .35s cubic-bezier(.2,.9,.3,1.15); }
@keyframes phoneUp { from { transform: translateY(60px) rotate(4deg); opacity: 0; } }
.ph-notch { position: absolute; left: 50%; top: 16px; width: 96px; height: 22px; background: #12161D; border-radius: 0 0 14px 14px; transform: translateX(-50%); z-index: 2; }
.ph-bar { display: flex; gap: 8px; align-items: center; padding: 8px 22px 6px; background: linear-gradient(#F7F3E8, #F7F3E8); border-radius: 30px 30px 0 0; font: 700 12px var(--font-ui); }
.ph-bar .grow { flex: 1; }
.ph-screen { flex: 1; overflow: auto; background: #F7F3E8; padding: 12px 14px 16px; scrollbar-width: thin; }
.ph-screen[data-app="home"] { background: radial-gradient(130% 80% at 20% 0%, #BFEAE6, #7FC4D9 55%, #3E7FA8); }
.ph-nav { display: flex; justify-content: space-around; align-items: center; background: #F7F3E8; border-radius: 0 0 30px 30px; padding: 6px 0 10px; border-top: 1.5px solid #E2DAC6; }
.ph-nav button { width: 44px; height: 30px; border: 0; background: none; font: 900 18px var(--font-ui); color: var(--ink); cursor: pointer; border-radius: 8px; }
.ph-nav .ph-homebtn { width: 90px; height: 6px; background: var(--ink); border-radius: 99px; }
.ph-widget { background: rgba(255,255,255,.85); border: 2px solid var(--ink); border-radius: 16px; padding: 10px 12px; display: grid; gap: 6px; font: 700 12.5px/1.3 var(--font-ui); box-shadow: var(--shadow); margin-bottom: 14px; }
.ph-widget small { display: block; font-weight: 600; color: var(--muted); }
.ph-widget .live { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: #C2185B; }
.ph-widget .live i { width: 9px; height: 9px; border-radius: 50%; background: #FF5A8A; animation: livePulse 1.4s infinite; }
.ph-widget .q { font-weight: 600; }
.ph-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; }
.ph-app { border: 0; background: none; display: grid; justify-items: center; gap: 5px; font: 700 11px var(--font-ui); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); cursor: pointer; padding: 0; }
.ph-app .ic { position: relative; width: 54px; height: 54px; border-radius: 15px; background: var(--c); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); display: grid; place-items: center; font-size: 26px; text-shadow: none; transition: transform .12s; }
.ph-app:hover .ic { transform: translateY(-2px) scale(1.05); }
.ph-app .ic em { position: absolute; right: -6px; top: -6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font: 900 10px/18px var(--font-ui); font-style: normal; border: 2px solid #fff; }
.ap-head { display: grid; gap: 4px; margin-bottom: 10px; }
.ap-head canvas { height: 18px; width: auto; }
.ap-head small { font: 600 12px/1.35 var(--font-ui); color: var(--muted); }
.ph-map { width: 100%; height: auto; aspect-ratio: 1; border-radius: 14px; border: 2px solid var(--ink); touch-action: none; cursor: grab; display: block; }
.ph-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font: 600 11.5px var(--font-ui); }
.ph-legend li { display: flex; align-items: center; gap: 5px; }
.ph-legend i { width: 11px; height: 11px; border: 1.5px solid var(--ink); border-radius: 50%; }
.lg-me { background: #FF5A8A; } .lg-portal { background: #7EE04A; border-radius: 2px !important; transform: rotate(45deg); } .lg-ferry { background: #F2C06B; } .lg-quest { background: #fff; } .lg-live { background: #FF5A8A; box-shadow: 0 0 0 3px rgba(255,90,138,.35); }
.qlist, .alist, .evlist, .trlist, .rlist, .mlist, .rooms, .isl, .how { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qlist li { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 9px 11px; display: grid; gap: 5px; }
.qlist li.new { opacity: .7; border-style: dashed; }
.qlist li.ready { background: #EAFBDF; }
.qlist li.done { opacity: .6; }
.qlist .qt { display: flex; gap: 6px; align-items: center; }
.qlist .qt b { flex: 1; font: 900 12.5px var(--font-game); text-transform: uppercase; letter-spacing: .03em; }
.qlist p { margin: 0; font-size: 12.5px; }
.tag { font: 800 10px var(--font-ui); text-transform: uppercase; letter-spacing: .06em; padding: 3px 6px; border-radius: 5px; background: #EFE8D6; white-space: nowrap; }
.rw { font: 900 11px var(--font-ui); white-space: nowrap; }
.qlist .bar { position: relative; height: 16px; border-radius: 8px; background: #EFE8D6; overflow: hidden; border: 1.5px solid var(--ink); }
.qlist .bar i { position: absolute; inset: 0 auto 0 0; background: #7EE04A; }
.qlist .bar span { position: relative; font: 800 10.5px/13px var(--font-ui); padding-left: 6px; }
.alist li { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 10px; padding: 8px 10px; border: 1.5px solid #DCD3BD; }
.alist li > b { font-size: 18px; color: #C9BFA6; }
.alist li.done > b { color: #F2B632; }
.alist li > div { flex: 1; display: grid; }
.alist small { color: var(--muted); font-size: 12px; }
.alist li:not(.done) strong { color: var(--ink-2); }
.evlist li, .trlist li, .rlist li, .rooms li { display: flex; gap: 8px; align-items: center; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 10px; }
.evlist li > div, .trlist li > div, .rlist li > div, .rooms li > div { flex: 1; display: grid; min-width: 0; }
.evlist li.live { background: #FFE6EF; }
.evlist .when { font: 800 11.5px var(--font-ui); font-variant-numeric: tabular-nums; }
.evlist small, .trlist small, .rlist small, .rooms small, .isl small { color: var(--muted); font-size: 12px; }
.trlist li { display: grid; grid-template-columns: 1fr auto; }
.trlist li.locked { opacity: .6; border-style: dashed; }
.trlist .lock { grid-row: span 2; align-self: center; }
.trlist li > b, .trlist li > small { grid-column: 1; }
.trlist li > button { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.rlist li.on { background: #FFF1E0; }
.mlist li { background: #fff; border-radius: 12px; padding: 8px 11px; border: 1.5px solid #DCD3BD; }
.mlist li b { font: 900 11px var(--font-game); letter-spacing: .05em; }
.mlist li p { margin: 2px 0; font-size: 13px; }
.mlist small { color: var(--muted); font-size: 11px; }
.wal .big { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 38px; padding: 14px; background: #FFF6D6; border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow); }
.wal .big b { font: 900 44px var(--font-game); }
.wal .stats { display: flex; justify-content: space-around; font: 700 12.5px var(--font-ui); margin: 10px 0; }
.how li { font-size: 13px; padding-left: 18px; position: relative; }
.how li::before { content: "\1FA99"; position: absolute; left: 0; font-size: 11px; }
.emo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.emo button { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; font: 800 12px var(--font-ui); text-transform: capitalize; cursor: pointer; color: var(--ink); }
.emo button b { font: 900 16px var(--font-game); }
.emo button.locked { opacity: .55; border-style: dashed; }
.set { display: grid; gap: 6px; margin: 0 0 12px; }
.set > label { font: 900 11px var(--font-game); letter-spacing: .06em; text-transform: uppercase; }
.set small { color: var(--muted); font-size: 12px; }
.sl { display: grid; grid-template-columns: 1fr 1.3fr 40px; gap: 8px; align-items: center; font: 700 12.5px var(--font-ui); margin: 0 0 8px; text-transform: none; }
.sl input { padding: 0; border: 0; accent-color: #2FA394; }
.cam img { width: 100%; border-radius: 12px; border: 2px solid var(--ink); margin: 6px 0; display: block; }
.cam .gbtn { width: 100%; justify-content: center; }

/* shop + wardrobe */
.shop .coins { font: 900 13px var(--font-game); margin: 0 0 8px; }
.shop .items { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.shop .items li { display: flex; gap: 10px; align-items: center; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 7px 9px; }
.shop .items li.own { background: #F2FBEA; }
.shop .items li > div { flex: 1; display: grid; }
.shop .items small { color: var(--muted); font: 800 11.5px var(--font-ui); }
.shop .sw { width: 38px; height: 38px; display: grid; place-items: center; font-size: 22px; background: #EFE8D6; border-radius: 10px; }
.wardrobe .wrow { display: grid; gap: 5px; margin: 0 0 10px; }
.wardrobe label { font: 900 10.5px var(--font-game); letter-spacing: .06em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { border: 2px solid var(--ink); border-radius: 99px; background: #fff; padding: 5px 10px; font: 800 11.5px var(--font-ui); text-transform: capitalize; cursor: pointer; color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; }
.swatches { display: flex; flex-wrap: wrap; gap: 5px; }
.swc { width: 24px; height: 24px; border-radius: 50%; background: var(--c); border: 2px solid var(--ink); cursor: pointer; padding: 0; }
.swc.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }

/* kiosk / book / cabinet / screen panels */
.kiosk, .book, .cabinet, .screen { width: min(460px, calc(100vw - 24px)); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow-lg), 0 20px 50px rgba(0,0,0,.35); overflow: hidden; animation: pop .25s ease-out; }
.kh { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 10px 12px 10px 16px; }
.kh canvas { height: 16px; width: auto; }
.kh small { flex: 1; font: 700 11px var(--font-ui); color: #B6F59A; letter-spacing: .05em; }
.kx { width: 32px; height: 32px; border-radius: 9px; border: 2px solid var(--ink); background: #fff; font: 900 14px var(--font-ui); cursor: pointer; color: var(--ink); flex: none; }
.kb { padding: 14px; overflow: auto; }
.book { background: #FBF6E9; }
.book article h3 { font: 900 18px var(--font-game); margin: 0 0 8px; }
.book article p { font: 500 15px/1.55 Georgia, serif; margin: 0 0 10px; }
.cabinet { width: auto; background: #2A1F4A; border-color: #120C24; }
.cabinet .kh { background: #120C24; }
.cabinet .kb { padding: 12px; }
.arcade { display: grid; justify-items: center; gap: 6px; }
.arcade .note { color: #CFC6F0; }
.arc-cv { width: min(360px, calc(100vw - 60px)); height: auto; border-radius: 10px; border: 3px solid #F2C06B; box-shadow: 0 0 30px rgba(242,192,107,.35); touch-action: none; outline: none; }
.screen { width: min(760px, calc(100vw - 24px)); background: #0E0F14; border-color: #000; }
.screen .kh { background: #000; }
.film { display: grid; gap: 8px; }
.film-cv { width: 100%; height: auto; border-radius: 6px; display: block; }
.film-sub { margin: 0; min-height: 1.4em; text-align: center; color: #F7F3E8; font: 600 15px/1.4 var(--font-ui); }

/* tablet */
.tablet { width: min(720px, calc(100vw - 24px)); height: min(520px, calc(100vh - 40px)); background: #F7F3E8; border: 14px solid #1B2028; border-radius: 26px; box-shadow: 0 0 0 2px #3A4150, var(--shadow-lg), 0 24px 60px rgba(0,0,0,.4); padding: 14px; display: flex; flex-direction: column; animation: pop .3s ease-out; }
.tb-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tb-top canvas { height: 18px; width: auto; }
.tb-body { flex: 1; overflow: auto; }
.tb-body input[type=search] { width: 100%; margin-bottom: 10px; }
.rooms li > i { width: 14px; height: 38px; border-radius: 5px; background: var(--c); border: 1.5px solid var(--ink); flex: none; }
.isl li { background: #fff; border-radius: 10px; padding: 8px 12px; border: 1.5px solid #DCD3BD; display: grid; }
.isl li b { font: 900 12.5px var(--font-game); letter-spacing: .04em; }

/* laptop · TribeOS */
.laptop { width: min(900px, calc(100vw - 24px)); animation: pop .28s ease-out; }
.lp-screen { background: #141922; border-radius: 18px 18px 4px 4px; padding: 10px; height: min(540px, calc(100vh - 84px)); display: flex; flex-direction: column; gap: 6px; box-shadow: 0 0 0 2px #3A4150, var(--shadow-lg); }
.lp-base { height: 18px; margin: 0 -40px; background: linear-gradient(#C9CED6, #8E96A3); border-radius: 0 0 22px 22px; box-shadow: var(--shadow-lg); }
.tos-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; background: #1E2532; border-radius: 10px; color: #F5F7FA; border: 1px solid #2D3648; }
.tos-brand { display: flex; align-items: center; gap: 8px; font: 800 13px var(--font-game); letter-spacing: .04em; }
.tos-brand small { font: 600 11.5px var(--font-ui); color: #9DB0C8; }
.tos-dot { width: 9px; height: 9px; border-radius: 50%; background: #7EE04A; box-shadow: 0 0 8px #7EE04A99; }
.tos-status { display: flex; align-items: center; gap: 6px; }
.tos-pill { background: #2B3445; border: 1px solid #3C475C; color: #E9EEF6; border-radius: 99px; padding: 4px 10px; font: 700 11.5px var(--font-ui); }
.tos-btn { cursor: pointer; } .tos-btn:hover { background: #364156; }
.tos-shell { flex: 1; min-height: 0; display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.tos-dock { background: #1A202B; border-radius: 10px; padding: 8px 6px; display: flex; flex-direction: column; gap: 6px; border: 1px solid #2A3242; }
.tos-app { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: #B9C4D6; cursor: pointer; font: 700 11px var(--font-ui); transition: .15s; }
.tos-app:hover { background: #252E3E; color: #fff; }
.tos-app.on { background: #7EE04A; color: #12200D; border-color: #A8F27D; box-shadow: 0 3px 0 #489722; }
.tos-ico { font-size: 18px; line-height: 1; }
.tos-main { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #FAF7EF; border-radius: 10px; overflow: hidden; border: 1px solid #2A3242; }
.tos-browser { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tos-pad { flex: 1; overflow: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.tos-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tos-head h2, .tos-pad h2, .tos-pad h3 { font: 900 16px var(--font-game); margin: 0; letter-spacing: .03em; }
.tos-badge { background: #EFE8D6; border: 1px solid #D8CEB6; color: var(--ink-2); border-radius: 99px; padding: 3px 10px; font: 800 11px var(--font-ui); text-transform: uppercase; letter-spacing: .05em; }
.tos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.tos-card { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; box-shadow: 0 3px 0 var(--ink); }
.tos-card.on { background: #F1FCE8; border-color: #2B7A12; }
.tos-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tos-card b { font: 800 13px var(--font-ui); }
.tos-card small { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.tos-actions { margin-top: auto; padding-top: 4px; display: flex; gap: 6px; }
.tos-tag { background: #F0EAE0; border-radius: 6px; padding: 2px 7px; font: 800 10.5px var(--font-ui); white-space: nowrap; }
.tos-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tos-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1.5px solid #DED5C2; border-radius: 10px; padding: 8px 12px; }
.tos-list li.done { background: #EFFAE7; border-color: #9DD679; }
.tos-list li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tos-list li b { font: 800 12.5px var(--font-ui); }
.tos-list li small { color: var(--muted); font-size: 11.5px; }
.tos-specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tos-specs li { display: flex; justify-content: space-between; gap: 12px; background: #fff; border: 1.5px solid #DED5C2; border-radius: 10px; padding: 9px 12px; font-size: 12.5px; }
.tos-specs li b { font: 800 12.5px var(--font-ui); color: var(--ink); white-space: nowrap; }
.tos-specs li span { text-align: right; color: var(--ink-2); }
.lp-chrome { display: flex; align-items: center; gap: 6px; background: #E6E1D3; padding: 7px 10px; border-bottom: 1px solid #D3CCB9; }
.lp-chrome > i { width: 10px; height: 10px; border-radius: 50%; background: #E2574C; } .lp-chrome > i:nth-child(2) { background: #F2C06B; } .lp-chrome > i:nth-child(3) { background: #7EE04A; }
.lp-addr { flex: 1; background: #fff; border-radius: 7px; padding: 5px 10px; font: 600 12.5px var(--font-mono, monospace); color: var(--ink-2); margin-left: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lp-page { flex: 1; overflow: auto; background: #FAF7EF; padding: 16px 18px; }
.lp-page h2, .lp-page h3 { font: 900 16px var(--font-game); margin: 14px 0 8px; letter-spacing: .03em; }
.lp-hero { background: var(--c); border: 2px solid var(--ink); border-radius: 14px; padding: 16px; display: grid; gap: 6px; box-shadow: var(--shadow); }
.lp-hero canvas { height: 22px; width: auto; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); }
.lp-hero small { font: 800 11px var(--font-ui); text-transform: uppercase; letter-spacing: .1em; }
.lp-page .tag { display: block; background: none; padding: 0; font: 600 15px var(--font-ui); text-transform: none; letter-spacing: 0; margin: 10px 0; }
.gb { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.gb li { background: #fff; border: 1.5px solid #E5DDD0; border-radius: 10px; padding: 8px 12px; }
.gb li b { font: 800 12.5px var(--font-ui); }
.gb li p { margin: 2px 0; }
.gb li small { color: var(--muted); font-size: 11px; }
.gbf { display: flex; gap: 6px; }
.gbf input { flex: 1; }

@media (max-width: 720px) {
  .minimap { width: 104px; height: 104px; right: 10px; bottom: auto; top: 64px; }
  .device-wrap.dw-phone { place-items: center; padding: 0; background: rgba(16,21,29,.28); pointer-events: auto; }
  .phone { width: min(360px, calc(100vw - 16px)); height: calc(100vh - 24px); }
  .ev-banner { top: auto; bottom: 230px; font-size: 11px; max-width: calc(100vw - 20px); }
  .ev-banner > span:not(.meter):not(.ok) { display: none; }
  .emote-wheel { right: 56px; top: auto; bottom: 160px; transform: none; }
  .coin-pop { right: 70px; }
  .tablet { border-width: 8px; }
}
body:has(.where:not(.hidden)) .ev-banner { top: 114px; }

/* world v4: hide busy HUD bits during rocket, space and other full-screen sequences */
.ev-banner.gone { display: none !important; }
.hud.ext .rail { opacity: .55; }
.hud.ext .hint { display: none; }

/* PDF motion bonus: pulsing ON AIR badge + live animated SVG signal waveform */
.onair-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; background: #1B2028; color: #FF5A65; border: 1.5px solid #FF5A65; font: 900 10.5px var(--font-game); letter-spacing: .08em; animation: onAirPulse 1.3s ease-in-out infinite; }
.onair-badge svg { width: 42px; height: 14px; stroke: #72C6BD; fill: none; stroke-width: 2; stroke-dasharray: 64; animation: sigDraw 1.6s linear infinite; }
@keyframes onAirPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,90,101,.55); transform: scale(1); } 50% { box-shadow: 0 0 14px 2px rgba(255,90,101,.65); transform: scale(1.03); } }
@keyframes sigDraw { 0% { stroke-dashoffset: 64; } 100% { stroke-dashoffset: 0; } }


/* island film */
.hud.filming { display: none !important; }
.intro-film { font: 800 13px var(--font-ui, system-ui); letter-spacing: .1em; color: #fff; background: rgba(16,21,29,.75); border: 2px solid rgba(255,255,255,.7); border-radius: 999px; padding: 9px 18px; cursor: pointer; pointer-events: auto; }
.intro-film:hover, .intro-film:focus-visible { background: #10151D; outline: 2px solid #72C6BD; }
