:root {
  --navy:#0c2231;
  --deep:#071a27;
  --ink:#edf4f5;
  --muted:#a8bec8;
  --cyan:#73dced;
  --gold:#e5bf83;
  --line:rgba(149,204,222,.22);
  --panel:rgba(9,29,43,.91);
  --radius:14px;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  color:var(--ink);
  color-scheme:dark;
  font-synthesis:none
}
* {
  box-sizing:border-box
}
html,body {
  width:100%;
  height:100%;
  margin:0;
  overflow:hidden;
  background:var(--deep)
}
button,input,select {
  font:inherit
}
button {
  cursor:pointer;
  color:inherit;
  touch-action:manipulation
}
button:disabled {
  cursor:wait;
  opacity:.55
}
button:focus-visible,input:focus-visible,select:focus-visible {
  outline:2px solid var(--cyan);
  outline-offset:4px
}
button {
  border:0
}
button svg {
  vertical-align:middle
}
button:hover {
  filter:brightness(1.13)
}
[hidden] {
  display:none!important
}
#world {
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  outline:0;
  touch-action:none
}
#vignette {
  position:fixed;
  inset:0;
  pointer-events:none;
  background:radial-gradient(ellipse at 50% 40%,transparent 45%,rgba(3,14,23,.2) 100%);
  z-index:3
}
.glass {
  background:linear-gradient(115deg,rgba(8,26,39,.91),rgba(16,44,61,.84));
  border:1px solid var(--line);
  box-shadow:0 7px 22px #00101a22,inset 0 1px 0 #cce7ef0a;
  backdrop-filter:blur(12px);
  border-radius:var(--radius)
}
.eyebrow {
  font-size:10px;
  letter-spacing:2.6px;
  line-height:1.6;
  color:var(--gold);
  font-weight:650
}
.eyebrow i,.live-dot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--cyan);
  box-shadow:0 0 12px #6ad7ff88;
  margin-right:12px
}
.primary {
  border:1px solid #ecd19e;
  background:linear-gradient(120deg,#efd4a5,#cfa870);
  color:#102535;
  border-radius:8px;
  min-height:46px;
  padding:12px 18px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  box-shadow:0 6px 22px #07161f33
}
.primary.large {
  font-size:15px;
  padding:18px 23px;
  min-width:230px
}
.primary.large span {
  font-size:25px;
  line-height:1
}
.full {
  width:100%;
  justify-content:center
}
.text-button {
  background:none;
  border-bottom:1px solid #a7c1cc6b;
  padding:9px 0;
  color:#d6e4e8;
  font-size:12px
}
.icon-button {
  display:grid;
  place-items:center;
  background:#203e50;
  border:1px solid var(--line);
  border-radius:9px;
  width:34px;
  height:34px;
  flex-shrink:0
}
.loading-screen,.error-screen {
  position:fixed;
  inset:0;
  z-index:30;
  background:radial-gradient(ellipse at 70% 25%,#213f4e,#081d2a 60%);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
  padding:35px
}
.loading-mark {
  color:var(--gold);
  font-size:78px;
  line-height:1.1;
  margin-bottom:16px
}
.loading-screen h1 {
  font-size:clamp(28px,3vw,43px);
  font-weight:450;
  line-height:1.2;
  letter-spacing:-1px;
  margin:20px 0 30px
}
.load-track {
  width:240px;
  height:2px;
  background:#bfd3da22
}
.load-track i {
  display:block;
  width:8%;
  height:100%;
  background:var(--gold);
  transition:width .45s
}
.loading-screen p {
  font-size:12px;
  color:var(--muted);
  margin-top:18px
}
.loading-screen small {
  font-size:10px;
  color:#7d9ca9;
  margin-top:30px
}
.error-screen {
  z-index:50
}
.error-screen h1 {
  font-size:28px
}
.error-screen p {
  max-width:640px;
  line-height:1.7;
  color:#c8d9df
}
.error-screen pre {
  max-width:90%;
  max-height:35vh;
  overflow:auto;
  text-align:left;
  background:#05121a;
  padding:20px;
  border-radius:10px;
  font-size:12px;
  color:#f7cca1;
  white-space:pre-wrap
}
.error-screen button {
  background:var(--gold);
  color:var(--navy);
  padding:13px 25px;
  border-radius:8px
}
.intro-screen {
  position:fixed;
  inset:0;
  z-index:10;
  background:linear-gradient(90deg,rgba(5,20,31,.96) 0%,rgba(7,26,39,.87) 27%,rgba(5,22,32,.38) 60%,rgba(5,22,32,.04) 100%)
}
.intro-brand {
  position:absolute;
  top:6%;
  left:5%;
  display:flex;
  align-items:center;
  gap:12px;
  font-size:16px;
  font-weight:650;
  letter-spacing:4px
}
.brand-diamond {
  font-size:56px;
  font-weight:300;
  color:var(--gold);
  line-height:.9
}
.intro-brand small {
  display:block;
  margin-top:7px;
  font-size:7px;
  letter-spacing:2.25px;
  color:#9fbac8;
  font-weight:500
}
.intro-brand .edition {
  margin-left:20px;
  padding-left:28px;
  border-left:1px solid #749aa65c;
  letter-spacing:1.6px;
  font-size:8px;
  color:#c2d7df;
  font-weight:500
}
.intro-copy {
  position:absolute;
  top:28%;
  left:6%;
  max-width:580px
}
.intro-copy h1 {
  font-size:clamp(39px,4.7vw,78px);
  line-height:1.04;
  letter-spacing:-2.3px;
  font-weight:450;
  margin:22px 0 26px
}
.intro-copy h1 em {
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  color:#e6cda5;
  letter-spacing:-2px
}
.intro-copy>p {
  font-size:14px;
  line-height:1.85;
  color:#bcd0d8;
  letter-spacing:.1px
}
.intro-actions {
  display:flex;
  align-items:center;
  gap:28px;
  margin-top:30px
}
.intro-stats {
  display:flex;
  margin-top:36px;
  gap:38px
}
.intro-stats div {
  display:flex;
  align-items:center;
  gap:12px
}
.intro-stats div b {
  font-size:28px;
  font-weight:350;
  color:#ead5b3
}
.intro-stats div span {
  font-size:8px;
  letter-spacing:1.2px;
  max-width:86px;
  line-height:1.75;
  color:#adc7d2
}
.intro-bottom {
  position:absolute;
  bottom:30px;
  left:5%;
  right:5%;
  display:flex;
  justify-content:space-between;
  font-size:9px;
  letter-spacing:1.6px;
  color:#bad0d9;
  border-top:1px solid #a7cbd22b;
  padding-top:18px
}
.intro-bottom span:last-child {
  letter-spacing:.4px;
  font-size:10px
}
.intro-corner {
  position:absolute;
  bottom:16%;
  right:5%;
  font-size:9px;
  letter-spacing:2px;
  background:rgba(7,30,45,.75);
  border:1px solid #86bbcd2b;
  padding:16px 20px;
  border-radius:9px
}
.intro-corner small {
  display:block;
  font-size:9px;
  letter-spacing:.15px;
  margin-top:8px;
  color:#abc8d3
}
.hud {
  position:fixed;
  inset:0;
  z-index:5;
  pointer-events:none
}
.hud button,.hud a {
  pointer-events:auto
}
.player-card {
  position:absolute;
  top:18px;
  left:18px;
  width:267px;
  min-height:75px;
  display:flex;
  gap:12px;
  align-items:center;
  padding:11px 14px;
  border-top-color:#7fb1bb91
}
.avatar {
  width:48px;
  height:48px;
  border:1px solid #69c7df;
  box-shadow:0 0 0 4px #091f2d;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#e1f2f6;
  background:linear-gradient(145deg,#294558,#081f2f);
  flex-shrink:0
}
.avatar svg {
  width:29px;
  height:29px
}
.player-info {
  flex:1
}
.player-info strong {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:13px;
  font-weight:650
}
.player-info strong span {
  font-size:10px;
  color:var(--cyan);
  font-weight:550
}
.xp-track {
  height:4px;
  background:#6783994a;
  border-radius:3px;
  overflow:hidden;
  margin:9px 0 5px
}
.xp-track i {
  display:block;
  height:100%;
  background:linear-gradient(90deg,#49a7c5,#baf6f4);
  border-radius:3px;
  transition:width .6s
}
.player-info small {
  color:#a6c4d2;
  font-size:10px;
  letter-spacing:.4px
}
.compass {
  position:absolute;
  left:50%;
  top:18px;
  transform:translateX(-50%);
  padding:9px 24px 21px;
  width:235px;
  height:51px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-radius:0 0 12px 12px;
  background:linear-gradient(180deg,#0c273be6,#0c273b80);
  border-top:0
}
.compass span {
  font-size:9px;
  color:#91bbc8
}
.compass b {
  font-size:12px;
  font-weight:600
}
.compass i {
  width:1px;
  height:6px;
  background:#a4c5d15e
}
.compass small {
  position:absolute;
  left:0;
  right:0;
  bottom:7px;
  text-align:center;
  font-size:7px;
  letter-spacing:1.55px;
  color:#adc8ce
}
.world-time {
  position:absolute;
  right:18px;
  top:18px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  width:231px;
  border-top-color:#7fb1bb91
}
.weather-icon {
  color:#f2d088
}
.weather-icon svg {
  height:31px;
  width:31px
}
.world-time b {
  font-size:17px;
  letter-spacing:1px;
  font-weight:500
}
.world-time small {
  display:block;
  font-size:6.5px;
  letter-spacing:1.35px;
  color:#aec6d0;
  margin-top:4px
}
.quality-dot {
  width:5px;
  height:5px;
  border-radius:50%;
  background:#8cd9b1;
  margin-left:auto
}
.side-nav {
  position:absolute;
  left:18px;
  top:108px;
  display:flex;
  flex-direction:column;
  width:62px;
  padding:4px;
  border-radius:12px
}
.side-nav button {
  background:transparent;
  border:1px solid transparent;
  color:#a3bdc8;
  min-height:62px;
  padding:8px 1px;
  border-radius:8px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px
}
.side-nav button svg {
  width:22px;
  height:22px
}
.side-nav button small {
  font-size:7.3px;
  letter-spacing:.1px
}
.side-nav button.active {
  color:#82e2fb;
  background:linear-gradient(145deg,#33708d4d,#1a557420);
  border-color:#85d9ec40
}
.side-nav button:hover {
  background:#4c869044;
  color:#f4fbfd
}
.quests {
  position:absolute;
  top:108px;
  left:92px;
  width:258px;
  padding:14px 14px 8px;
  border-radius:12px
}
.quests header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid #9eced01f;
  padding-bottom:9px;
  margin-bottom:2px
}
.quests header strong {
  font-size:12px;
  font-weight:550
}
.quests header button {
  font-size:8px;
  background:none;
  color:#79c6db;
  padding:2px 0
}
.quests header button span {
  font-size:11px;
  margin-left:4px
}
.quest-row {
  display:flex;
  gap:9px;
  align-items:flex-start;
  font-size:10px;
  line-height:1.55;
  padding:10px 0;
  color:#d7e8ed;
  border-top:1px solid #a9cdcc0c
}
.quest-box {
  width:12px;
  height:12px;
  border:1px solid #79c5d8;
  border-radius:3px;
  flex-shrink:0;
  margin-top:2px
}
.quest-row em {
  margin-left:auto;
  white-space:nowrap;
  color:#a0bdc7;
  font-size:9px;
  font-style:normal
}
.quest-row.done {
  color:#85c3ad
}
.quest-row.done .quest-box {
  background:#79c5b6
}
.crosshair {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  height:15px;
  width:15px;
  border:1px solid #edfeff50;
  border-radius:50%;
  display:grid;
  place-items:center;
  transition:all .15s
}
.crosshair i {
  width:3px;
  height:3px;
  border-radius:50%;
  background:#effbfc;
  box-shadow:0 0 3px #03161f
}
.crosshair.target {
  border-color:#89e5f6;
  width:23px;
  height:23px;
  box-shadow:0 0 13px #3cc7ff38
}
.interaction {
  position:absolute;
  bottom:15.5%;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:13px;
  padding:11px 19px 11px 12px;
  min-width:275px;
  border-color:#84d2e997;
  box-shadow:0 0 25px #3bcae61e
}
.interaction kbd {
  font-size:21px;
  padding:7px 11px;
  border-color:#b6edff;
  background:#184057;
  min-width:41px;
  text-align:center;
  border-radius:5px
}
.interaction strong {
  display:block;
  font-size:13px;
  font-weight:550
}
.interaction small {
  display:block;
  color:#a5c2cd;
  font-size:8px;
  margin-top:5px
}
.toast-stack {
  position:absolute;
  right:18px;
  top:99px;
  width:300px;
  display:flex;
  flex-direction:column;
  gap:9px
}
.toast {
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:15px;
  animation:toast-in .35s ease-out;
  border-left:2px solid var(--gold)
}
.toast .toast-icon {
  color:var(--gold);
  padding:7px;
  background:#92c2c612;
  border-radius:8px
}
.toast small {
  display:block;
  font-size:8px;
  letter-spacing:1.25px;
  color:var(--gold);
  margin:0 0 5px
}
.toast strong {
  font-size:12px;
  font-weight:550
}
.toast p {
  font-size:9px;
  line-height:1.5;
  color:#a9c6d1;
  margin:5px 0 0
}
.toast .xp-badge {
  font-size:10px;
  color:var(--cyan);
  white-space:nowrap;
  margin-left:auto
}
.map-block {
  position:absolute;
  bottom:25px;
  left:18px;
  width:190px
}
.minimap-frame {
  position:relative;
  display:block;
  width:155px;
  height:155px;
  border-radius:50%;
  padding:0;
  background:#112d3caa;
  overflow:hidden;
  border:1px solid #9bbecdd9;
  box-shadow:0 0 0 6px #09253644
}
.minimap-frame canvas {
  width:100%;
  height:100%;
  display:block
}
.minimap-rim {
  position:absolute;
  inset:5px;
  border:1px solid #85aebe44;
  border-radius:50%;
  pointer-events:none
}
.area-label {
  display:flex;
  gap:9px;
  align-items:center;
  padding:11px 12px;
  margin-top:12px;
  min-width:195px;
  border-radius:9px
}
.area-label>span {
  color:#bcebf3
}
.area-label svg {
  width:17px;
  height:21px
}
.area-label small {
  font-size:6.8px;
  letter-spacing:1.6px;
  color:#8ab0c0;
  display:block;
  margin-bottom:5px
}
.area-label b {
  font-size:10px;
  font-weight:500;
  display:block
}
.keyboard-legend {
  position:absolute;
  right:18px;
  bottom:23px;
  padding:11px 13px;
  display:flex;
  gap:15px;
  align-items:center;
  border-radius:9px;
  font-size:9px;
  color:#c0d5de
}
.keyboard-legend button {
  background:none;
  font-size:9px;
  color:#c0d5de;
  padding:0
}
.keyboard-legend kbd {
  font-size:8px;
  letter-spacing:0;
  padding:3px 4px;
  margin-right:4px
}
kbd {
  font-family:inherit;
  font-size:10px;
  border:1px solid #a7cdd374;
  background:#0b2333b8;
  padding:3px 6px;
  border-radius:3px;
  color:#e3f2f6;
  box-shadow:0 2px 0 #04151b5c
}
.equipped {
  position:absolute;
  right:20px;
  bottom:86px;
  min-width:215px;
  padding:11px 14px;
  display:flex;
  gap:11px;
  align-items:center
}
.equipped svg {
  color:var(--gold);
  width:21px
}
.equipped small {
  font-size:7px;
  letter-spacing:1.4px;
  color:#8eb5c6;
  display:block;
  margin-bottom:5px
}
.equipped b {
  font-size:10px;
  font-weight:500
}
.equipped kbd {
  margin-left:auto
}
.free-mouse {
  position:absolute;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  padding:10px 14px;
  font-size:9px;
  color:#b4d6df
}
.touch-controls {
  display:none
}
.panel {
  position:fixed;
  z-index:15;
  right:18px;
  top:101px;
  bottom:87px;
  width:398px;
  background:linear-gradient(150deg,#0c2739f7,#071c2bf7);
  border:1px solid #86c7d94d;
  border-top-color:#b5d7dc80;
  border-radius:15px;
  box-shadow:0 15px 60px #00132366;
  backdrop-filter:blur(22px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  pointer-events:auto;
  animation:panel-in .23s ease-out
}
.panel-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:23px 22px 20px;
  border-bottom:1px solid #a4cbd62c
}
.panel-header .eyebrow {
  font-size:7px;
  letter-spacing:1.9px
}
.panel-header h2 {
  font-size:23px;
  letter-spacing:-.5px;
  font-weight:500;
  line-height:1.15;
  margin:9px 0 0
}
.panel-body {
  padding:20px 22px;
  overflow:auto;
  flex:1;
  overscroll-behavior:contain;
  scrollbar-color:#446a79 #102c3d;
  scrollbar-width:thin
}
.panel-body p {
  font-size:11px;
  line-height:1.75;
  color:#b9d0da;
  margin:0 0 17px
}
.panel-body h3 {
  font-size:13px;
  font-weight:600;
  margin:20px 0 12px;
  color:#e3edf0
}
.panel-body h3:first-child {
  margin-top:0
}
.panel-body .intro-text {
  font-size:13px;
  line-height:1.75;
  color:#d2e2e8
}
.panel-body .fineprint {
  font-size:9px;
  color:#8cafbe;
  margin:13px 0
}
.panel-body hr {
  border:0;
  border-top:1px solid #aac5d124;
  margin:22px 0
}
.panel-footer {
  padding:15px 22px;
  background:#071c29;
  border-top:1px solid #acc4ce22
}
.panel-footer>span {
  font-size:7px;
  letter-spacing:1.2px;
  color:#87aebe
}
.panel-footer button {
  background:transparent;
  padding:11px 0 0;
  display:flex;
  justify-content:space-between;
  width:100%;
  font-size:11px;
  color:#dbbf8e
}
.panel-footer button span {
  font-size:15px
}
.lab-panel .panel-header {
  border-top:2px solid var(--lab-accent,var(--cyan));
  padding-top:21px
}
.panel-open .toast-stack {
  right:434px;
  width:258px
}
.panel-open .keyboard-legend {
  opacity:.3;
  pointer-events:none
}
.panel-open .crosshair,.panel-open .interaction {
  display:none!important
}
.panel-open .equipped {
  display:none!important
}
.panel-open .free-mouse {
  display:none!important
}
.control {
  display:block;
  margin:0 0 19px
}
.control>span,.control .control-label {
  display:flex;
  justify-content:space-between;
  font-size:10px;
  color:#b9d2dc;
  margin-bottom:11px;
  line-height:1.5
}
.control output {
  color:var(--cyan);
  font-variant-numeric:tabular-nums;
  font-size:11px
}
input[type=range] {
  display:block;
  width:100%;
  height:4px;
  accent-color:#8bdddf;
  cursor:pointer;
  margin:8px 0 6px
}
input[type=number],select {
  width:100%;
  background:#173648;
  border:1px solid #7ba6b446;
  border-radius:7px;
  color:#deedf2;
  min-height:38px;
  padding:9px 11px;
  font-size:12px
}
select {
  margin:6px 0 19px
}
label.field-label {
  font-size:10px;
  color:#b0cbd6;
  display:block
}
.metric {
  padding:17px 18px;
  background:linear-gradient(115deg,#28566a75,#2544573d);
  border:1px solid #97d1d92e;
  border-radius:10px;
  margin:21px 0 13px
}
.metric small {
  display:block;
  font-size:7px;
  color:#94c2cf;
  letter-spacing:1.7px;
  margin-bottom:10px
}
.metric b {
  font-size:29px;
  letter-spacing:-.7px;
  font-weight:400;
  color:#dcf6f4;
  font-variant-numeric:tabular-nums
}
.formula {
  padding:11px 12px;
  border-left:2px solid var(--gold);
  background:#fff4cf06;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:14px!important;
  color:#e7cea5!important;
  line-height:1.55!important;
  margin-bottom:20px!important;
  word-wrap:break-word
}
.explanation,.explain {
  padding:15px;
  border:1px solid #759cac24;
  border-radius:9px;
  margin:17px 0;
  background:#537a8d08
}
.explanation strong,.explain strong {
  font-size:11px;
  font-weight:600;
  display:block;
  margin-bottom:8px
}
.explanation p,.explain p {
  font-size:10px;
  margin:0;
  color:#99bbc9;
  line-height:1.7
}
.task-callout {
  font-size:10px;
  line-height:1.8;
  color:#c8bd9a;
  padding:14px;
  border-radius:8px;
  background:#d5b26d0b;
  border:1px solid #dfbe872b;
  margin:15px 0
}
.two-col {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px
}
.two-col h3 {
  margin-top:0
}
.mint {
  color:#77ddb9!important
}
.gold {
  color:var(--gold)!important
}
.distribution {
  height:109px;
  display:flex;
  gap:6px;
  align-items:end;
  border-bottom:1px solid #77a4b346;
  padding-bottom:5px;
  margin:10px 0 20px
}
.dist-col {
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px
}
.dist-col i {
  width:100%;
  background:linear-gradient(#92e4cb,#38715e);
  border-radius:3px 3px 0 0
}
.dist-col span {
  font-size:8px;
  color:#c8e6d9
}
.dist-col small {
  font-size:8px;
  color:#8cb4c2
}
.list-card {
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 13px;
  margin-bottom:10px;
  border:1px solid #86bacb2d;
  border-radius:9px;
  background:#90c1d509;
  text-align:left;
  width:100%;
  color:inherit
}
.list-card .card-icon {
  color:var(--gold);
  display:grid;
  place-items:center;
  width:37px;
  height:37px;
  background:#88c3d00b;
  border-radius:8px;
  flex-shrink:0
}
.list-card strong {
  display:block;
  font-size:11px;
  font-weight:550;
  line-height:1.5
}
.list-card small {
  display:block;
  font-size:9px;
  color:#94b4c3;
  margin-top:4px;
  line-height:1.5
}
.list-card>svg {
  margin-left:auto;
  width:16px;
  color:#a7c5d3
}
.list-card.done {
  border-color:#74c3a73c
}
.list-card.done .card-icon {
  color:#96dec2
}
.card-actions {
  display:flex;
  gap:8px;
  margin:9px 0 21px
}
.secondary {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border:1px solid #8dbcca45;
  border-radius:7px;
  padding:10px 12px;
  background:#25485b4d;
  color:#c9e3eb;
  font-size:10px;
  min-height:37px
}
.danger {
  border-color:#e2a1a14d;
  color:#f0b5a5;
  background:#7e383814
}
.empty {
  padding:25px 8px;
  text-align:center
}
.empty svg {
  color:var(--gold);
  width:42px;
  height:42px
}
.empty h3 {
  margin-top:20px!important
}
.tip-row {
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid #b3d3d316;
  font-size:10px;
  color:#a9c7d3
}
.tip-row kbd {
  min-width:58px;
  text-align:center
}
.status-line {
  display:flex;
  justify-content:space-between;
  font-size:10px;
  padding:10px 0;
  border-bottom:1px solid #a5cbdb1c;
  color:#a9c9d2
}
.status-line b {
  font-weight:500;
  color:#e3eff2
}
.progress-track {
  height:5px;
  background:#9fbcc723;
  border-radius:4px;
  margin:15px 0 22px;
  overflow:hidden
}
.progress-track i {
  display:block;
  height:100%;
  background:linear-gradient(90deg,#c6a171,#f5dfac)
}
.settings-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:15px 0;
  border-bottom:1px solid #b4cdde1c;
  font-size:11px
}
.settings-row small {
  display:block;
  font-size:8px;
  color:#88aebb;
  line-height:1.6;
  margin-top:5px
}
.settings-row input[type=checkbox] {
  width:17px;
  height:17px;
  accent-color:#7bd8d8
}
.big-map {
  width:100%;
  border:1px solid #b6cfd64a;
  border-radius:10px;
  background:#193c47;
  margin-bottom:16px
}
.map-note {
  font-size:9px!important;
  color:#82b5c8!important
}
.lab-number {
  font-size:16px;
  color:var(--gold);
  width:28px;
  flex-shrink:0;
  font-weight:300
}
.map-link {
  display:flex;
  gap:9px;
  margin-top:7px
}
.map-link button {
  font-size:9px;
  background:none;
  color:#87d0e4;
  border:1px solid #7fbdcd35;
  border-radius:5px;
  padding:5px 8px
}
.result-success {
  padding:15px;
  background:#559b7b18;
  border:1px solid #87dcab63;
  border-radius:9px;
  font-size:11px;
  line-height:1.7;
  color:#b7ebce
}
.result-error {
  padding:13px;
  background:#9d5d4120;
  border:1px solid #c992625c;
  border-radius:9px;
  font-size:11px;
  line-height:1.7;
  color:#e7c298
}
.coordinate-table {
  width:100%;
  border-collapse:collapse;
  font-size:10px;
  color:#aecbd5
}
.coordinate-table td,.coordinate-table th {
  padding:9px 6px;
  text-align:left;
  border-bottom:1px solid #85b3c430
}
.coordinate-table th {
  font-size:8px;
  letter-spacing:1px;
  color:var(--gold)
}
@keyframes toast-in {
  from {
    transform:translateX(18px);
    opacity:0
  }
  to {
    transform:translateX(0);
    opacity:1
  }
}
@keyframes panel-in {
  from {
    transform:translateX(12px);
    opacity:0
  }
  to {
    transform:translateX(0);
    opacity:1
  }
}
@media(min-width:1600px) {
  .player-card {
    width:290px
  }
  .quests {
    width:280px
  }
  .side-nav {
    width:68px
  }
  .quests {
    left:100px
  }
  .side-nav button {
    min-height:68px
  }
  .world-time {
    width:245px
  }
  .panel {
    width:427px;
    bottom:85px
  }
  .panel-body {
    padding:24px 25px
  }
  .panel-open .toast-stack {
    right:465px
  }
  .minimap-frame {
    width:177px;
    height:177px
  }
  .map-block {
    width:220px
  }
  .area-label {
    width:220px
  }
  .keyboard-legend {
    font-size:10px;
    padding:13px 16px
  }
  .keyboard-legend button {
    font-size:10px
  }
  .quest-row {
    font-size:11px
  }
  .player-card {
    min-height:83px
  }
  .side-nav,.quests {
    top:116px
  }
}
@media(max-height:740px) {
  .intro-copy {
    top:24%
  }
  .intro-copy h1 {
    font-size:48px;
    margin:14px 0 15px
  }
  .intro-copy>p {
    font-size:12px
  }
  .intro-actions {
    margin-top:20px
  }
  .intro-stats {
    margin-top:22px
  }
  .intro-bottom {
    bottom:16px
  }
  .intro-brand {
    top:5%
  }
  .side-nav button {
    min-height:49px
  }
  .side-nav button svg {
    width:18px;
    height:18px
  }
  .side-nav button small {
    font-size:6.5px
  }
  .minimap-frame {
    width:122px;
    height:122px
  }
  .map-block {
    bottom:16px
  }
  .area-label {
    padding:9px;
    margin-top:8px
  }
  .panel {
    top:94px;
    bottom:73px
  }
  .panel-header {
    padding:16px 20px
  }
  .panel-header h2 {
    font-size:21px
  }
  .panel-body {
    padding:16px 20px
  }
  .panel-footer {
    padding:10px 20px
  }
  .quests {
    width:236px
  }
  .quest-row {
    font-size:9px;
    padding:8px 0
  }
  .keyboard-legend {
    bottom:16px
  }
  .world-time,.player-card {
    top:13px
  }
  .side-nav,.quests {
    top:99px
  }
}
@media(max-width:1000px) {
  .compass {
    width:170px
  }
  .world-time {
    width:185px
  }
  .world-time small {
    font-size:5.8px;
    letter-spacing:.9px
  }
  .player-card {
    width:226px
  }
  .quests {
    width:220px
  }
  .quest-row {
    font-size:9px
  }
  .keyboard-legend {
    gap:9px
  }
  .keyboard-legend>span:first-child {
    display:none
  }
  .panel {
    width:360px
  }
  .panel-open .toast-stack {
    right:390px;
    width:230px
  }
  .intro-brand .edition {
    display:none
  }
  .intro-corner {
    right:3%;
    bottom:19%;
    font-size:7px;
    padding:13px
  }
  .intro-corner small {
    font-size:8px
  }
  .intro-stats {
    gap:20px
  }
  .intro-stats div {
    gap:9px
  }
  .intro-stats div span {
    font-size:7px
  }
  .free-mouse {
    bottom:72px;
    left:auto;
    right:18px;
    transform:none
  }
}
@media(pointer:coarse) {
  .touch-controls {
    display:flex;
    position:absolute;
    bottom:35px;
    left:30px;
    right:30px;
    justify-content:space-between;
    align-items:end
  }
  .touch-pad {
    pointer-events:auto
  }
  .touch-pad>button {
    margin:0 auto 5px;
    display:block
  }
  .touch-pad button,#touch-interact {
    background:#0a293ad9;
    border:1px solid #93cad479;
    border-radius:13px;
    width:48px;
    height:48px;
    color:#b8e5ef;
    font-size:20px
  }
  .touch-pad div {
    display:flex;
    gap:5px
  }
  #touch-interact {
    width:62px;
    height:62px;
    font-size:24px
  }
  .map-block {
    bottom:135px;
    left:18px
  }
  .minimap-frame {
    display:none
  }
  .keyboard-legend,.free-mouse {
    display:none!important
  }
  .side-nav {
    flex-direction:row;
    width:auto;
    left:auto;
    right:18px;
    top:91px
  }
  .side-nav button {
    min-height:44px;
    min-width:43px
  }
  .side-nav button small {
    display:none
  }
  .side-nav button svg {
    width:20px;
    height:20px
  }
  .quests {
    left:18px;
    top:103px;
    width:214px
  }
  .interaction {
    bottom:115px
  }
  .panel {
    bottom:20px;
    top:145px
  }
  .panel-open .toast-stack {
    display:none
  }
  .equipped {
    bottom:116px
  }
  .compass {
    display:none
  }
  .intro-corner {
    display:none
  }
}
@media(max-width:600px) {
  .intro-brand {
    left:7%;
    top:5%
  }
  .intro-copy {
    left:7%;
    right:7%;
    top:24%
  }
  .intro-copy h1 {
    font-size:44px
  }
  .intro-copy>p {
    font-size:12px
  }
  .intro-screen {
    background:linear-gradient(90deg,#061c2af0,#071e2baa)
  }
  .intro-stats {
    gap:14px
  }
  .intro-stats div b {
    font-size:24px
  }
  .intro-stats div span {
    font-size:6px;
    max-width:60px
  }
  .intro-bottom span:last-child {
    display:none
  }
  .intro-bottom {
    left:7%;
    right:7%
  }
  .primary.large {
    min-width:203px
  }
  .intro-actions {
    gap:20px
  }
  .player-card {
    left:10px;
    top:10px;
    width:197px;
    min-height:63px;
    padding:8px 11px;
    gap:10px
  }
  .avatar {
    width:38px;
    height:38px
  }
  .avatar svg {
    width:23px;
    height:23px
  }
  .player-info strong {
    font-size:11px
  }
  .player-info strong span {
    font-size:8px
  }
  .xp-track {
    margin:7px 0 4px
  }
  .player-info small {
    font-size:8px
  }
  .world-time {
    right:10px;
    top:10px;
    width:145px;
    padding:11px 10px;
    gap:8px;
    min-height:63px
  }
  .weather-icon svg {
    width:23px;
    height:23px
  }
  .world-time b {
    font-size:14px
  }
  .world-time small {
    font-size:5px;
    letter-spacing:.4px
  }
  .quality-dot {
    display:none
  }
  .side-nav {
    top:83px;
    right:10px;
    left:10px;
    justify-content:space-around
  }
  .quests {
    top:141px;
    left:10px;
    width:222px;
    padding:10px 11px 5px
  }
  .quests header strong {
    font-size:10px
  }
  .quest-row {
    padding:8px 0;
    font-size:8.5px
  }
  .toast-stack {
    right:10px;
    left:10px;
    top:140px;
    width:auto
  }
  .panel {
    top:140px;
    right:10px;
    left:10px;
    bottom:15px;
    width:auto;
    max-height:none
  }
  .panel-open .quests {
    display:none
  }
  .panel-open .touch-controls {
    display:none
  }
  .map-block {
    left:12px;
    bottom:115px
  }
  .area-label {
    min-width:162px;
    padding:8px 9px;
    width:162px
  }
  .area-label b {
    font-size:9px
  }
  .interaction {
    min-width:0;
    max-width:96%;
    width:max-content;
    bottom:36%;
    padding:9px 12px;
    gap:10px
  }
  .interaction strong {
    font-size:11px
  }
  .interaction small {
    font-size:7px
  }
  .interaction kbd {
    font-size:18px
  }
  .equipped {
    right:12px;
    bottom:118px;
    min-width:155px;
    padding:9px;
    gap:7px
  }
  .equipped b {
    font-size:8px
  }
  .equipped small {
    font-size:5.5px
  }
  .equipped svg {
    width:17px
  }
  .equipped kbd {
    display:none
  }
  .touch-controls {
    left:15px;
    right:18px;
    bottom:24px
  }
  .touch-pad button {
    width:43px;
    height:39px;
    border-radius:10px
  }
  .touch-pad div {
    gap:4px
  }
  #touch-interact {
    width:55px;
    height:55px
  }
  .panel-body .intro-text {
    font-size:12px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    animation:none!important;
    transition:none!important
  }
}
.coordinate-table>div {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  padding:10px 3px;
  border-bottom:1px solid #85b3c42d;
  font-size:10px
}
.coordinate-table>div b {
  color:var(--gold);
  font-weight:400
}
.coordinate-table>div span:last-child {
  color:var(--cyan)
}
/* Portrait sheets fade without translating beyond the viewport edge. */
@keyframes panel-fade {
  from {
    opacity:0
  }
  to {
    opacity:1
  }
}
@media(max-width:600px) {
  .panel {
    animation:panel-fade .18s ease-out
  }
}

/* V2 · challenge-first learning */
.challenge-banner{display:flex;flex-direction:column;gap:5px;margin:0 0 18px;padding:13px 15px;border:1px solid #79d8ff3b;border-radius:9px;background:linear-gradient(135deg,#123649b8,#0c2636b8)}
.challenge-banner b{font-size:10px;letter-spacing:1.7px;color:#86e5ff}.challenge-banner span{font-size:12px;line-height:1.55;color:#c1d5dc}
.challenge-form{margin:18px 0;padding:15px;border:1px solid #d7b77a35;border-radius:9px;background:#0b2130a8}.challenge-form h3{margin-top:0}
.challenge-form input{width:100%;box-sizing:border-box;padding:11px 12px;margin:8px 0 12px;border:1px solid #7ba6b446;border-radius:7px;background:#173648;color:#deedf2;outline:none}
.answer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.answer-grid.two{grid-template-columns:1fr 1fr}.answer-grid input{min-width:0}
#vector-feedback,#geometry-feedback,#trig-feedback,#trans-feedback,#galton-feedback{margin:11px 0}

/* Adaptive HUD: after a few quiet seconds the world becomes the focus. */
.hud .quests,.hud .keyboard-legend,.hud .side-nav,.hud .world-time,.hud .player-card,.hud .map-block{transition:opacity .35s ease,transform .35s ease}
.hud.hud-calm .quests,.hud.hud-calm .keyboard-legend{opacity:0;pointer-events:none;transform:translateY(10px)}
.hud.hud-calm .side-nav{opacity:.28}.hud.hud-calm .world-time,.hud.hud-calm .player-card,.hud.hud-calm .map-block{opacity:.58}
.hud.hud-calm .interaction,.hud.hud-calm .equipped,.hud.hud-calm .compass{opacity:1}
@media(max-width:760px){.answer-grid{grid-template-columns:1fr 1fr}.hud.hud-calm .side-nav,.hud.hud-calm .player-card{opacity:.2}}

/* V2.1 · functional handheld instrument controls */
.instrument-controls{position:absolute;right:20px;bottom:133px;width:min(430px,calc(100vw - 40px));padding:10px 12px;display:flex;flex-direction:column;gap:8px;border-radius:10px;pointer-events:auto}
.instrument-status{display:flex;align-items:center;justify-content:space-between;gap:12px}.instrument-status small{font-size:7px;letter-spacing:1.5px;color:#8eb5c6}.instrument-status b{font-size:9px;font-weight:500;color:#e5eef1;text-align:right}
.instrument-buttons{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.instrument-buttons button{display:flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid #81bfd132;border-radius:7px;background:#102e40;color:#d9edf2;font-size:8px}.instrument-buttons button kbd{font-size:7px;padding:2px 4px}.instrument-buttons button span{white-space:nowrap}
.hud.hud-calm .instrument-controls{opacity:.82}
.panel-open .instrument-controls{display:none!important}
@media(max-width:760px){.instrument-controls{left:12px;right:12px;bottom:92px;width:auto;padding:9px 10px}.instrument-status b{font-size:8px}.instrument-buttons{justify-content:flex-start}.instrument-buttons button{font-size:8px;padding:7px 8px}.equipped{bottom:166px}}


/* V2.2 — every visible learning apparatus has a named purpose and entry point. */
.apparatus-guide{margin:0 0 16px;padding:14px 15px;border:1px solid rgba(111,215,246,.24);border-radius:10px;background:rgba(17,48,65,.64)}
.apparatus-guide>small{display:block;letter-spacing:.12em;opacity:.68;margin-bottom:5px}
.apparatus-guide>strong{display:block;font-size:1.05rem;margin-bottom:6px}
.apparatus-guide>p{margin:0 0 10px;line-height:1.45}
.apparatus-card small{line-height:1.45}.apparatus-card em{font-style:normal;opacity:.75}

/* V2.3 · Mobile-first + PWA */
:root{
  --safe-top:env(safe-area-inset-top,0px);
  --safe-right:env(safe-area-inset-right,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
  --safe-left:env(safe-area-inset-left,0px)
}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;overscroll-behavior:none}
html,body{height:100dvh;max-height:100dvh;overscroll-behavior:none}
body,#world,.hud,.intro-screen,.loading-screen,.error-screen,.panel,
button,.glass,.touch-controls,.move-stick,.stick-base{
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent
}
input,textarea,select,[contenteditable="true"]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
#world{width:100dvw;height:100dvh;overscroll-behavior:none}
.mobile-ready{display:none;margin-top:13px;font-size:8px;line-height:1.5;letter-spacing:1.15px;color:#8fcbd8}
.install-app{min-height:46px;padding:11px 15px;border:1px solid #73dced66;background:#102f42b8;border-radius:8px;color:#d9f3f7;font-size:11px;font-weight:650}
@media(display-mode:standalone){.install-app{display:none!important}}

/* New analog controls. */
.move-stick{display:none;pointer-events:auto;touch-action:none;width:112px;height:132px;align-items:center;justify-content:flex-end;flex-direction:column;gap:4px}
.stick-base{position:relative;width:104px;height:104px;border-radius:50%;border:1px solid #a6dbe56e;background:radial-gradient(circle at 50% 50%,#153d50aa 0 26%,#0a283aa8 27% 58%,#051a2870 59% 100%);box-shadow:inset 0 0 25px #62d9ef14,0 8px 24px #00131e66;touch-action:none}
.stick-base:before,.stick-base:after{content:"";position:absolute;background:#8fd5df20;pointer-events:none}
.stick-base:before{left:50%;top:12%;bottom:12%;width:1px}
.stick-base:after{top:50%;left:12%;right:12%;height:1px}
#move-stick-knob{position:absolute;left:50%;top:50%;margin:-26px 0 0 -26px;width:52px;height:52px;border-radius:50%;background:linear-gradient(145deg,#315d70e8,#102d3fe8);border:1px solid #b2ecf59c;box-shadow:0 5px 14px #00151f88,inset 0 1px 0 #e9fdff33;will-change:transform;transition:transform .06s linear;pointer-events:none}
.move-stick.active #move-stick-knob{transition:none;box-shadow:0 5px 16px #00151f99,0 0 18px #68dcef2c,inset 0 1px 0 #e9fdff44}
.move-stick>small{font-size:7px;letter-spacing:1.6px;color:#9bcbd5;text-shadow:0 2px 5px #00141f}
.touch-actions{display:flex;align-items:flex-end;gap:10px;pointer-events:auto;touch-action:none}
.touch-actions button{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:50%!important;padding:0!important;touch-action:none!important;background:linear-gradient(150deg,#123b50ee,#082638ee)!important;border:1px solid #a7e2ec80!important;box-shadow:0 7px 22px #00131e88,inset 0 1px 0 #d9fbff1f;color:#dff7fb!important}
.touch-actions button:active{transform:scale(.94);filter:brightness(1.15)}
.touch-actions button b{font-size:22px;line-height:1;font-weight:700}.touch-actions button small{font-size:6px;letter-spacing:1px;opacity:.82}
.touch-mode{width:56px!important;height:56px!important}.touch-mode b{font-size:17px!important}
#touch-jump{width:60px!important;height:60px!important}
#touch-interact{width:72px!important;height:72px!important}

@media(pointer:coarse){
  body{touch-action:none}
  button{touch-action:manipulation}
  input,textarea,select{font-size:16px!important;touch-action:manipulation}
  input[type="range"]{touch-action:pan-x}
  .mobile-ready{display:block}
  .intro-bottom span:last-child{display:none}
  .touch-controls{display:flex;position:absolute;left:calc(12px + var(--safe-left));right:calc(12px + var(--safe-right));bottom:calc(8px + var(--safe-bottom));align-items:flex-end;justify-content:space-between;z-index:8;pointer-events:none}
  .move-stick{display:flex}
  .player-card{top:calc(8px + var(--safe-top));left:calc(8px + var(--safe-left))}
  .world-time{top:calc(8px + var(--safe-top));right:calc(8px + var(--safe-right))}
  .side-nav{top:calc(8px + var(--safe-top));right:calc(8px + var(--safe-right));left:auto}
  .quests{top:calc(74px + var(--safe-top));left:calc(8px + var(--safe-left))}
  .toast-stack{top:calc(70px + var(--safe-top));right:calc(8px + var(--safe-right))}
  .interaction{bottom:calc(116px + var(--safe-bottom));max-width:min(70vw,430px)}
  .interaction kbd{display:none}
  .interaction:before{content:"AKSI";display:grid;place-items:center;min-width:44px;height:38px;padding:0 8px;border-radius:8px;background:#184057;border:1px solid #b6edff;color:#e2f8fb;font-size:7px;letter-spacing:1px;font-weight:700}
  .map-block{left:calc(8px + var(--safe-left));bottom:calc(140px + var(--safe-bottom))}
  .equipped{right:calc(8px + var(--safe-right));bottom:calc(91px + var(--safe-bottom))}
  .instrument-controls{left:50%;right:auto;transform:translateX(-50%);bottom:calc(8px + var(--safe-bottom));width:min(46vw,430px);max-height:104px;overflow:auto;padding:8px 9px;background:linear-gradient(115deg,rgba(8,26,39,.95),rgba(16,44,61,.92))}
  .instrument-status{gap:7px}.instrument-status small{font-size:6px}.instrument-status b{font-size:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .instrument-buttons{gap:5px;flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;padding-bottom:1px;scrollbar-width:none}.instrument-buttons::-webkit-scrollbar{display:none}
  .instrument-buttons button{min-height:38px;min-width:max-content;padding:6px 8px;font-size:8px;touch-action:manipulation}.instrument-buttons button kbd{display:none}
  .panel{z-index:20;inset:calc(6px + var(--safe-top)) calc(6px + var(--safe-right)) calc(6px + var(--safe-bottom)) calc(6px + var(--safe-left));width:auto;max-height:none;border-radius:15px;animation:panel-fade .16s ease-out}
  .panel-header{padding:15px 16px 13px}.panel-header h2{font-size:20px;margin-top:5px}.panel-body{padding:15px 16px 22px;-webkit-overflow-scrolling:touch;touch-action:pan-y}.panel-footer{padding:11px 15px}
  .panel input,.panel select,.panel button{min-height:44px}
  .panel input[type="range"]{min-height:36px}
  .panel-open .touch-controls,.panel-open .instrument-controls,.panel-open .interaction{display:none!important}
  .hud.hud-calm .side-nav{opacity:.65}.hud.hud-calm .player-card{opacity:.72}
}

/* Landscape phones: the primary play layout. */
@media(pointer:coarse) and (orientation:landscape) and (max-height:560px){
  .player-card{width:164px;min-height:46px;padding:6px 8px;gap:7px}.avatar{width:31px;height:31px}.avatar svg{width:18px;height:18px}.player-info strong{font-size:9px}.player-info strong span{font-size:7px}.xp-track{margin:4px 0 2px}.player-info small{font-size:6px}
  .world-time{display:none}
  .side-nav{flex-direction:row;width:auto;padding:4px;gap:2px}.side-nav button{min-width:38px;min-height:38px;padding:7px}.side-nav button small{display:none}.side-nav button svg{width:18px;height:18px}
  .quests{top:calc(61px + var(--safe-top));width:176px;padding:7px 9px 4px;max-height:86px;overflow:hidden}.quests header{margin-bottom:2px}.quests header strong{font-size:8px}.quests header button{font-size:6px}.quest-row{padding:5px 0;font-size:7px}.quest-row:nth-child(n+3){display:none}
  .toast-stack{width:230px;top:calc(55px + var(--safe-top))}.toast{padding:9px;gap:8px}.toast p{font-size:7px}.toast strong{font-size:9px}.toast small{font-size:6px}
  .map-block{display:none}
  .move-stick{width:104px;height:113px}.stick-base{width:94px;height:94px}#move-stick-knob{width:48px;height:48px;margin:-24px 0 0 -24px}
  #touch-interact{width:66px!important;height:66px!important}#touch-jump{width:54px!important;height:54px!important}.touch-mode{width:52px!important;height:52px!important}
  .equipped{bottom:calc(80px + var(--safe-bottom));right:calc(8px + var(--safe-right));min-width:126px;padding:7px 9px}.equipped small{font-size:5.5px;margin-bottom:3px}.equipped b{font-size:8px}.equipped svg{width:16px}.equipped kbd{display:none}
  .instrument-controls{width:min(48vw,390px);max-height:76px}.instrument-status{display:none}.instrument-buttons button{min-height:34px}
  .interaction{bottom:calc(87px + var(--safe-bottom));padding:7px 9px}.interaction:before{height:32px;min-width:38px}.interaction strong{font-size:9px}.interaction small{font-size:6px;margin-top:2px}
  .crosshair{transform:scale(.82)}
  .intro-brand{top:calc(5% + var(--safe-top));left:calc(5% + var(--safe-left))}.intro-copy{top:20%;left:6%;max-width:510px}.intro-copy h1{font-size:clamp(34px,7.2vh,52px);margin:10px 0 12px}.intro-copy>p{font-size:10px;line-height:1.6}.intro-actions{margin-top:16px}.primary.large{min-height:44px;padding:11px 16px;font-size:12px}.intro-stats{margin-top:16px}.intro-bottom{display:none}.mobile-ready{font-size:6.5px;margin-top:8px}
}

/* Portrait remains usable, but panels and controls are deliberately simplified. */
@media(pointer:coarse) and (orientation:portrait){
  .player-card{width:164px;min-height:51px;padding:7px 9px}.avatar{width:32px;height:32px}.avatar svg{width:19px;height:19px}.player-info strong{font-size:9px}.player-info strong span{font-size:7px}.player-info small{font-size:6px}
  .world-time{display:none}
  .side-nav{top:calc(66px + var(--safe-top));left:calc(8px + var(--safe-left));right:calc(8px + var(--safe-right));justify-content:space-around;overflow-x:auto}
  .quests{top:calc(116px + var(--safe-top));width:190px;max-height:90px;overflow:hidden}.quest-row:nth-child(n+3){display:none}
  .move-stick{width:104px;height:121px}.stick-base{width:96px;height:96px}
  #touch-interact{width:68px!important;height:68px!important}
  .instrument-controls{left:calc(10px + var(--safe-left));right:calc(10px + var(--safe-right));transform:none;width:auto;bottom:calc(126px + var(--safe-bottom));max-height:86px}
  .equipped{bottom:calc(208px + var(--safe-bottom));right:calc(10px + var(--safe-right))}
  .interaction{bottom:calc(224px + var(--safe-bottom));max-width:86vw}
  .map-block{display:none}
  .intro-copy{top:22%}.intro-copy h1{font-size:42px}.intro-stats{display:none}.mobile-ready{font-size:7px}
}
.touch-actions button[hidden]{display:none!important}

/* V2.3.1 · Mobile stability patch --------------------------------------- */
@media (pointer:coarse), (max-width:900px) {
  /* blur transparan di atas WebGL mahal pada Safari/iOS; gunakan panel solid-translucent */
  .glass,
  .panel,
  .intro-screen,
  .loading-screen,
  .error-screen {
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  .glass { background:rgba(8,29,43,.94)!important; }

  /* svh tidak ikut membesar-mengecil setiap animasi address bar browser. */
  html,body { height:100svh; max-height:100svh; }
  #world,.hud,.intro-screen,.loading-screen,.error-screen { height:100svh; max-height:100svh; }
}
