:root {
  --ui: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hg: rgba(34, 52, 46, 0.72);
  --hg2: rgba(20, 34, 48, 0.88);
  --hl: rgba(255, 255, 255, 0.2);
  --gold: #ffd23f;
  --ink: #0f1e3c;
  --card-bg: rgba(248, 250, 246, 0.96);
  --card-ink: #1e242b;
  --blue: #2563eb;
}

[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  background: #1b3860;
  overflow: hidden;
  font-family: var(--ui);
  color: #fff;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

#c {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.titleOn #hudL,
.titleOn #hudR,
.titleOn #prompt,
.titleOn #ctrlBar,
.titleOn #stick,
.titleOn #bAct,
.titleOn #bJump {
  display: none !important;
}

/* ==================== STARTER PAGE ==================== */
#starter {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 20%, rgba(110, 195, 255, 0.35), rgba(12, 24, 52, 0.62));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 20px;
  text-align: center;
}

body:not(.titleOn) #starter {
  display: none;
}

.starter-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 960px;
  width: 100%;
}

.starter-logo {
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  text-shadow: 0 4px 0 #14284c, 0 8px 24px rgba(0, 0, 0, 0.45);
}

.logo-e2 {
  font-size: clamp(46px, 7vw, 76px);
  color: #ffc61a;
}

.logo-world {
  font-size: clamp(46px, 7vw, 76px);
  color: #ffffff;
}

.logo-sub {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #bde6ff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.choose-pill {
  background: rgba(13, 32, 64, 0.72);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 8px 22px;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.char-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.who {
  width: 124px;
  padding: 12px 8px 10px;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(180deg, rgba(20, 62, 42, 0.9), rgba(11, 40, 26, 0.9));
  box-shadow: 0 8px 18px rgba(6, 20, 16, 0.4);
  color: #fff;
  font: 800 15px var(--ui);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.who:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.who.sel {
  border: 4px solid #ffc61a;
  background: linear-gradient(180deg, #173d63, #0e2742);
  box-shadow: 0 0 0 2px #8a5a00, 0 0 26px rgba(255, 198, 26, 0.55), 0 10px 24px rgba(0, 0, 0, 0.45);
}

.who canvas {
  width: 78px;
  height: 92px;
  image-rendering: crisp-edges;
}

.who .selmark {
  height: 18px;
  font-size: 16px;
  color: #ffc61a;
  visibility: hidden;
}

.who.sel .selmark {
  visibility: visible;
}

.who .subtag {
  font-size: 11px;
  font-weight: 700;
  color: #9ed8ff;
}

.more-chars-btn {
  background: rgba(20, 44, 88, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font: 800 13px var(--ui);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.more-chars-btn:hover { border-color: var(--gold); }
.more-chars-btn .chev {
  width: 7px; height: 7px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.15s;
}
.more-chars-btn.open .chev {
  transform: rotate(225deg) translateY(-1px);
}

.enter-btn {
  background: linear-gradient(180deg, #ffd84d, #f5a623);
  color: #162238;
  border: 3px solid #fff3c4;
  border-radius: 999px;
  padding: 13px 44px;
  font: 900 20px var(--ui);
  cursor: pointer;
  box-shadow: 0 6px 0 #b87408, 0 14px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.1s;
}

.enter-btn:hover { transform: translateY(-2px); }
.enter-btn:active { transform: translateY(2px); box-shadow: 0 3px 0 #b87408; }

.logged-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 28, 56, 0.68);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.logout-pill {
  background: #3b5598;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 4px 10px;
  font: 800 12px var(--ui);
  cursor: pointer;
}

.starter-ver {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

.starter-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 72vw;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  opacity: 0.9;
}

/* ==================== IN-GAME HUD ==================== */
.pill {
  background: var(--hg);
  border: 1px solid var(--hl);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(8, 18, 40, 0.3);
}

#hudL {
  position: fixed;
  left: 16px;
  top: 14px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.place-title {
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.hud-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hud-pill {
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

#walletHud { color: var(--gold); }
.mode-pill { background: rgba(23, 95, 160, 0.82); border-color: rgba(120, 220, 255, 0.5); }

/* ==================== TOP-RIGHT NAV (Exact E2 World) ==================== */
#hudR {
  position: fixed;
  right: 16px;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-circle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(54, 78, 66, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.12s, background 0.15s;
}

.nav-circle:hover {
  transform: translateY(-2px);
  background: rgba(68, 96, 82, 0.92);
}

.nav-circle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f5cc38;
  color: #18202c;
  border: 2px solid #1e2d28;
  font: 900 11px/16px var(--ui);
  text-align: center;
  box-sizing: border-box;
}

.nav-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  background: #8fd0f6;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
  transition: transform 0.12s;
}

.nav-avatar:hover { transform: scale(1.05); }
.nav-avatar canvas { width: 100%; height: 100%; display: block; }

/* ==================== PROFILE POPOVER ==================== */
.popover-card {
  position: fixed;
  right: 16px;
  top: 72px;
  z-index: 25;
  width: min(380px, calc(100vw - 32px));
  background: var(--card-bg);
  color: var(--card-ink);
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 20px 55px rgba(10, 20, 35, 0.42);
  box-sizing: border-box;
}

.small-pop {
  width: min(320px, calc(100vw - 32px));
}

.prof-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.prof-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #8fd0f6;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  flex: none;
}

.prof-meta { flex: 1; min-width: 0; }
.prof-name { font-size: 20px; font-weight: 900; line-height: 1.15; }
.prof-sub { font-size: 12.5px; color: #5b6672; font-weight: 600; margin-top: 2px; }

.prof-actions { display: flex; gap: 8px; }
.prof-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
  color: #1e242b;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}
.prof-icon-btn:hover { background: #eef2f6; }
.prof-icon-btn svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.prof-menu { display: flex; flex-direction: column; gap: 10px; }
.prof-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 15px;
  border-radius: 16px;
  border: 0;
  background: #ffffff;
  color: #1e242b;
  font: 800 15px var(--ui);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: background 0.12s, transform 0.1s;
}
.prof-row:hover { background: #f1f5f9; transform: translateX(2px); }
.prof-row-ic svg {
  width: 19px; height: 19px; display: block;
  fill: none; stroke: #2b3440; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.prof-row-lbl { flex: 1; }
.prof-chev { font-size: 20px; color: #7a8594; font-weight: 700; }

/* ==================== E2 CHAT MODAL ==================== */
.chat-card {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 26;
  width: min(560px, calc(100vw - 28px));
  background: rgba(246, 249, 244, 0.97);
  color: #1c242c;
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 24px 64px rgba(8, 18, 36, 0.48);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 19px;
  font-weight: 900;
  padding: 2px 4px;
}

.chat-close, .pop-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
  color: #2b3440;
  font: 800 20px/1 var(--ui);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
}

.chat-messages {
  max-height: 290px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.chat-msg canvas {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #8fd0f6;
  flex: none;
}

.chat-bubble {
  background: #ffffff;
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  max-width: 82%;
}

.chat-meta {
  font-size: 12px;
  font-weight: 800;
  color: #222933;
  margin-bottom: 3px;
}
.chat-meta span { color: #8c96a4; font-weight: 600; margin-left: 5px; }
.chat-text { font-size: 14.5px; line-height: 1.38; color: #2d3640; }

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

.chat-input-row input {
  flex: 1;
  border: 0;
  outline: none;
  font: 600 15px var(--ui);
  color: #1e242b;
  background: transparent;
}

.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.chat-send-btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2.2;
}

/* ==================== PEOPLE & MODALS ==================== */
.pop-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 10px;
}

.people-list { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow-y: auto; }
.person-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
}
.person-row canvas { width: 32px; height: 32px; border-radius: 50%; background: #8fd0f6; }
.person-loc { font-size: 11.5px; color: #5f6c7b; font-weight: 600; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 28;
  background: rgba(10, 20, 38, 0.65);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-box {
  width: min(680px, 100%);
  max-height: 85vh;
  background: var(--card-bg);
  color: var(--card-ink);
  border-radius: 26px;
  padding: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h2 { margin: 0; font-size: 21px; font-weight: 900; }
.modal-body { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.realm-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.12s, border-color 0.12s;
}
.realm-card:hover { transform: translateY(-2px); border-color: #2563eb; }
.realm-card.active { border-color: #eab308; background: #fefce8; }
.realm-card b { display: block; font-size: 15px; margin-bottom: 3px; color: #162032; }
.realm-card span { font-size: 12px; color: #586575; font-weight: 600; }

.quest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  padding: 12px 14px;
  border-radius: 16px;
}
.quest-row.done { opacity: 0.72; }
.quest-reward {
  background: #fef08a;
  color: #854d0e;
  font: 900 12px var(--ui);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ==================== PROMPT, BANNER, DIALOG, CONTROLS ==================== */
#prompt {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  z-index: 15;
  padding: 9px 18px;
  color: #fff;
  font: 800 15px var(--ui);
  cursor: pointer;
}
#prompt kbd {
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  padding: 2px 7px;
  margin-right: 8px;
  font: 900 12px var(--ui);
}

#banner {
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translate(-50%, -10px);
  z-index: 16;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s;
  text-align: center;
  padding: 12px 26px;
  background: rgba(9, 16, 34, 0.82);
  border: 1.5px solid rgba(255, 210, 63, 0.55);
  border-radius: 16px;
}
#banner.on { opacity: 1; transform: translate(-50%, 0); }
#banner small { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; color: var(--gold); }
#banner b { font-size: clamp(22px, 4vw, 34px); font-weight: 900; }

#dialog {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 22;
  width: min(92vw, 600px);
  background: var(--hg2);
  border: 1px solid var(--hl);
  border-radius: 22px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  cursor: pointer;
}
#dFace { width: 64px; height: 64px; border-radius: 50%; border: 2px solid #fff; background: #8fd0f6; }
#dName { font-weight: 900; color: var(--gold); font-size: 14px; text-transform: uppercase; }
#dText { font-size: 16.5px; font-weight: 600; line-height: 1.35; margin-top: 2px; }
.d-hint { grid-column: 2; font-size: 11px; color: rgba(255,255,255,0.6); font-weight: 700; }

#ctrlBar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  padding: 7px 16px;
  background: rgba(12, 24, 44, 0.62);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
#ctrlBar kbd {
  background: rgba(255, 255, 255, 0.9);
  color: #122038;
  border-radius: 5px;
  padding: 1px 6px;
  margin-right: 4px;
  font: 900 11px var(--ui);
}

/* Touch / Laptop On-Screen Stick */
#stick {
  position: fixed;
  left: 22px;
  bottom: 24px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.35);
  z-index: 14;
  display: none;
}
#knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
}
#bAct, #bJump {
  position: fixed;
  right: 22px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 0;
  font: 900 12px var(--ui);
  z-index: 14;
  display: none;
  cursor: pointer;
}
#bAct { bottom: 28px; background: var(--gold); color: var(--ink); box-shadow: 0 5px 0 #b88a12; }
#bJump { bottom: 104px; background: #38bdf8; color: #082f49; box-shadow: 0 5px 0 #0284c7; }

.touch #stick, .touch #bAct, .touch #bJump { display: block; }
.touch #ctrlBar { display: none; }

#fade {
  position: fixed;
  inset: 0;
  background: #0a1428;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  transition: opacity 0.3s;
}
#fade.go { opacity: 1; }
/* Refined full-screen world presentation */
#starter {background:linear-gradient(180deg,rgba(25,62,78,.08) 0%,rgba(23,55,56,.03) 32%,rgba(14,43,36,.52) 74%,rgba(8,28,29,.9) 100%);backdrop-filter:none;-webkit-backdrop-filter:none;justify-content:flex-end;box-sizing:border-box;padding:22px 24px 65px;overflow-y:auto}
.starter-top{position:absolute;top:25px;left:32px;right:32px;display:flex;align-items:center;justify-content:space-between;gap:20px;text-shadow:0 2px 6px #263d45}
.tiny-brand{font-size:16px;font-weight:900;letter-spacing:.13em}.edition{font-size:12px;font-weight:800;letter-spacing:.2em}#titleSound{border:1px solid #ffffff60;border-radius:24px;background:#25493790;color:white;padding:10px 18px;font:700 13px var(--ui);cursor:pointer;backdrop-filter:blur(10px)}
.starter-content{gap:10px;max-width:820px}.starter-logo{filter:drop-shadow(0 5px 0 #263e49);transform:rotate(-2deg);margin-bottom:0}.logo-e2,.logo-world{font-size:clamp(42px,5.9vw,78px);font-weight:1000;letter-spacing:-.055em;-webkit-text-stroke:1.5px #344650;text-shadow:0 3px 0 #8b672c,0 6px 0 #20343d}.logo-e2{color:#fff8df}.logo-world{color:#ffce51}.logo-sub{font-size:11px;letter-spacing:.28em;color:#fff4ce;margin-top:12px;-webkit-text-stroke:0;text-shadow:0 2px 5px #173c37}.welcome-line{margin:4px 0 7px;font-size:15px;font-weight:600;color:#e4f4e7;text-shadow:0 2px 6px #173c37}.choose-pill{font-size:14px;padding:7px 24px;border:1px solid #c8d88d88;background:#204d3ed9;box-shadow:0 3px 10px #16392c50}
.char-grid{gap:9px}.who{box-sizing:border-box;width:108px;height:166px;padding:3px 8px 5px;gap:0;border-radius:15px;border:1px solid #dbedbb75;background:linear-gradient(#4b795aaf,#153b30e8);box-shadow:inset 0 1px 0 #ffffff35,0 5px 16px #14352e55;font-size:14px;position:relative;backdrop-filter:blur(8px)}.who canvas{width:82px;height:108px;image-rendering:auto;filter:drop-shadow(0 5px 5px #0b271c50)}.who.sel{border:2px solid #ffd45b;background:linear-gradient(#3f755be6,#153d35ef);box-shadow:0 0 0 2px #f9d97330,inset 0 0 22px #e1c85415,0 8px 24px #102b2c66;transform:translateY(-5px)}.who.sel .selmark{position:absolute;right:7px;top:7px;border-radius:50%;width:17px;height:17px;background:#ffdb72;color:#27432d;font-size:12px}.who .subtag{font-size:10px;letter-spacing:.05em;color:#d1e5ce;font-weight:500;margin-top:3px}.more-chars-btn{font-size:11px;padding:5px 14px;border:0;background:#234e3caa;box-shadow:none}.char-grid-more .who{height:145px}.char-grid-more .who canvas{height:90px}
.enter-btn{width:350px;max-width:90vw;border:1px solid #ffedb0;border-radius:12px;font-size:18px;padding:12px 36px;background:linear-gradient(#ffe28a,#f1bb42);color:#30422b;box-shadow:0 4px 0 #9b752d,0 8px 20px #102c3050}.logged-row{font-size:11px;background:transparent;padding:6px;color:#d4e8d8}.logout-pill{font-size:10px;background:#ffffff20}.starter-hint{font-size:11px;max-width:none;width:80%;bottom:17px;line-height:1.6;color:#c1d8d5;font-weight:500}.starter-ver{font-size:9px;bottom:21px;left:24px;max-width:110px;text-align:left;line-height:1.5;color:#c2d6ca}
#hudL{left:28px;top:25px}.place-title{font-size:23px}.hud-pill{font-size:13px;padding:7px 14px}#hudR{top:22px;right:26px;gap:12px}.nav-circle{width:54px;height:54px;background:#3e6954d9;border:2px solid #d5ead04a;box-shadow:inset 0 2px 0 #ffffff20,0 4px 16px #183c3440}.nav-circle svg{width:25px;height:25px}.nav-avatar{width:59px;height:59px}.popover-card{top:94px;border:1px solid #ffffffb0;background:linear-gradient(135deg,#edf2edfa,#f6efdeef);backdrop-filter:blur(18px);padding:24px;border-radius:28px;width:min(460px,calc(100vw - 32px))}.prof-name{font-size:26px}.prof-sub{font-size:14px}.prof-row{padding:19px 18px;border-radius:20px;font-size:17px;background:#ffffffb8}.prof-header{flex-wrap:wrap}.prof-actions{margin-left:auto}.chat-card{width:min(740px,calc(100vw - 32px));border:1px solid #fff9;background:linear-gradient(135deg,#edf2edfa,#f6efdeef);padding:25px;gap:20px;border-radius:30px}.chat-header{font-size:24px}.chat-messages{max-height:360px;gap:17px}.chat-text{font-size:18px}.chat-meta{font-size:14px}.chat-msg canvas{width:44px;height:44px}.chat-bubble{padding:13px 18px;border-radius:21px}.chat-input-row{padding:8px 8px 8px 22px}.chat-input-row input{min-width:0;font-size:17px}.chat-send-btn{width:50px;height:50px}.realm-card{min-height:110px;border:1px solid #cddacb;background:linear-gradient(145deg,#fff,#e4eedf)}.realm-card b{font-size:17px}.realm-card span{font-size:14px}.modal-box{background:linear-gradient(135deg,#f0f4ed,#ebeede)}#ctrlBar{max-width:calc(100vw - 50px);width:max-content;font-size:11px;bottom:17px;background:#1b3d36c9;padding:10px 18px}button:focus-visible{outline:3px solid #ffdf78;outline-offset:4px}.titleOn #banner{display:none}#prompt{background:#264b3ae8;border:1px solid #e8d68e80}
@media(min-height:850px){#starter{padding-bottom:85px}.starter-content{gap:14px}.who{height:185px;width:120px}.who canvas{height:122px;width:94px}}
@media(max-height:650px){#starter{padding-top:60px;padding-bottom:42px}.starter-content{gap:5px}.logo-e2,.logo-world{font-size:42px}.logo-sub{font-size:9px;margin-top:6px}.welcome-line{font-size:12px;margin:2px}.who{height:127px;width:90px}.who canvas{height:78px;width:68px}.starter-top{top:14px}.enter-btn{padding:9px}.starter-hint{bottom:5px}.logged-row{padding:3px}}
@media(max-width:650px){.edition{display:none}.starter-top{left:18px;right:18px}.tiny-brand{font-size:12px}.who{width:17vw;max-width:100px;height:145px;padding:4px}.who canvas{width:65px;max-width:100%;height:94px}.char-grid{gap:5px}.logo-e2,.logo-world{font-size:10vw}.welcome-line{font-size:12px}#hudR{right:12px;top:12px;gap:6px}.nav-circle{width:40px;height:40px}.nav-circle svg{width:20px;height:20px}.nav-avatar{width:44px;height:44px}#hudL{left:14px;top:70px}.place-title{font-size:18px}.popover-card{top:68px;right:12px}.starter-hint{width:92%;font-size:9px}.starter-ver{display:none}.prof-actions{gap:5px}.chat-text{font-size:16px}}
#introVideo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;pointer-events:none}.starter-sky{position:absolute;inset:0;background:linear-gradient(180deg,#102c3610 20%,#102c3520 38%,#0d292bc9 95%);z-index:-1;pointer-events:none}.starter-content{position:relative}#sceneToggle{background:#244c4670;color:#fff;border:1px solid #ffffff40;border-radius:20px;padding:10px 17px;cursor:pointer;font-family:var(--ui);font-size:10px;letter-spacing:.12em;backdrop-filter:blur(10px)}@media(max-width:650px){#sceneToggle{display:block;font-size:8px;padding:7px;max-width:130px}.starter-top{gap:6px}#titleSound{padding:8px 10px;font-size:11px}}
#journeyHUD{position:fixed;right:24px;bottom:75px;z-index:12;border:1px solid #e7d69170;border-radius:14px;padding:12px 18px;background:#234936de;color:#fff4d7;font:700 13px var(--ui);cursor:pointer;box-shadow:0 4px 16px #102c3440}.titleOn #journeyHUD{display:none}.map-intro{margin:0;color:#556951;font-size:14px;line-height:1.5}.world-chart{position:relative;min-height:290px;border:2px solid #b5c4a0;border-radius:20px;background-color:#a9c77c;background-image:linear-gradient(90deg,transparent 21%,#ddd0a580 21%,#ddd0a580 24%,transparent 24%,transparent 49%,#ddd0a580 49%,#ddd0a580 52%,transparent 52%,transparent 76%,#ddd0a580 76%,#ddd0a580 79%,transparent 79%),linear-gradient(transparent 24%,#ddd0a580 24%,#ddd0a580 27%,transparent 27%,transparent 50%,#ddd0a580 50%,#ddd0a580 53%,transparent 53%,transparent 76%,#ddd0a580 76%,#ddd0a580 79%,transparent 79%);flex-shrink:0;box-shadow:inset 0 0 40px #4d805c40}.map-marker{position:absolute;transform:translate(-50%,-50%);font:700 11px var(--ui);padding:8px 10px;border:1px solid #fbefc5;border-radius:10px;background:#315c41;color:#fff7d7;cursor:pointer;max-width:110px}.map-marker:hover{background:#477c51}.map-you{position:absolute;background:#ffdd69;border:2px solid #fff9d4;border-radius:20px;color:#304729;font:900 11px var(--ui);padding:4px 9px;transform:translate(-50%,-50%);pointer-events:none;box-shadow:0 0 0 5px #ffdf6040}.modal-body{min-height:0}@media(max-width:650px){#journeyHUD{right:14px;bottom:96px;max-width:210px;font-size:11px;padding:9px}.world-chart{min-height:270px}.map-marker{font-size:9px;padding:6px;max-width:75px}}
.extended-map{min-height:430px;background-image:radial-gradient(ellipse at 85% 70%,#8fcbd3 0%,#8fcbd3 22%,transparent 23%),linear-gradient(150deg,#b1cc8a,#86b785)}.extended-map .map-marker{width:27px;height:27px;max-width:none;padding:0;border-radius:50%;font-size:13px;line-height:25px;background:#426b45;border:2px solid #fff4cc;box-shadow:0 2px 5px #34573e50}.extended-map .map-marker:hover,.extended-map .map-marker:focus-visible{background:#d6a43e;z-index:4;transform:translate(-50%,-50%) scale(1.3)}.extended-map .map-marker:hover:after,.extended-map .map-marker:focus-visible:after{content:attr(aria-label);position:absolute;left:50%;top:30px;transform:translateX(-50%);white-space:nowrap;border-radius:8px;background:#274c3f;color:#fff6db;font-size:10px;line-height:1.3;padding:7px 10px;pointer-events:none}.extended-map .map-you{z-index:3}.map-grid .realm-card{min-height:100px}@media(max-width:650px){.extended-map{min-height:370px}.extended-map .map-marker{width:23px;height:23px;line-height:20px;font-size:10px}}
.map-routes{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.map-routes polyline{fill:none;stroke:#f8e2a9;stroke-width:.65;stroke-linejoin:round;stroke-linecap:round;opacity:.9}

#modePill.dragon-flight-pill{position:fixed;left:28px;top:105px;max-width:calc(100vw - 56px);white-space:normal;line-height:1.5;background:#244c46db;pointer-events:none}@media(max-width:650px){#modePill.dragon-flight-pill{left:14px;top:141px;max-width:calc(100vw - 28px);font-size:11px}}
/* A terrain atlas with a dedicated map viewport and destination inspector. */
.atlas-modal{width:min(1180px,96vw);height:min(880px,94vh);max-height:94vh;padding:24px!important;box-sizing:border-box}.atlas-modal .modal-body{overflow:hidden;flex:1;display:flex;min-height:0}.atlas-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:20px;width:100%;min-height:0}.atlas-main{display:flex;flex-direction:column;min-width:0;min-height:0;gap:10px}.atlas-topline{display:flex;justify-content:space-between;gap:12px;color:#58716b;font-size:10px;font-weight:800;letter-spacing:.12em}.atlas-topline span:last-child{letter-spacing:0;font-weight:500}.atlas-viewport{position:relative;min-height:350px;flex:1;border-radius:16px;overflow:hidden;background:#294e60;box-shadow:inset 0 0 0 1px #ffffff40,0 5px 18px #183c3420;touch-action:none;cursor:grab}.atlas-viewport:active{cursor:grabbing}.atlas-canvas{position:absolute;inset:0;width:100%;height:100%}.atlas-pins{position:absolute;inset:0;pointer-events:none}.atlas-pin.map-marker{position:absolute;width:12px;height:12px;border-radius:50%;border:2px solid #edf1d9;background:#355e51;padding:0;transform:translate(-50%,-50%);box-shadow:0 1px 4px #122f3b;pointer-events:auto;max-width:none;z-index:2}.atlas-pin.map-marker:hover,.atlas-pin.selected{background:#f5ca62;border-color:#fff4cb;transform:translate(-50%,-50%);z-index:4}.atlas-pin span{position:absolute;box-sizing:border-box;height:21px;padding:4px 6px;border-radius:4px;background:#203f4bec;color:#edf3dc;font:600 10px/13px Arial,sans-serif;white-space:nowrap;text-align:center;pointer-events:auto;box-shadow:0 1px 4px #102b3540}.atlas-pin.selected span{background:#f6d68a;color:#293f43}.atlas-pin.dimmed{opacity:.23}.atlas-you{position:absolute;transform:translate(-50%,-50%);border-radius:12px;padding:3px 6px;background:#f9d475;border:2px solid #fff5c9;box-shadow:0 0 0 5px #ffdf6030;color:#263d42;font:900 9px Arial;z-index:5}.atlas-compass{position:absolute;right:17px;top:16px;display:flex;flex-direction:column;align-items:center;color:#f1eed3;font:700 10px Arial;text-shadow:0 2px 4px #17313c;pointer-events:none}.atlas-compass span{font-size:30px;font-weight:400;line-height:30px}.atlas-tools{position:absolute;left:14px;top:14px;display:flex;flex-direction:column;border-radius:9px;overflow:hidden;box-shadow:0 2px 9px #102c4240}.atlas-tools button{width:34px;height:32px;border:0;border-bottom:1px solid #c6d2c7;background:#f0f2e8;color:#304b4e;font:700 11px Arial;cursor:pointer}.atlas-tools button:first-child,.atlas-tools button:nth-child(2){font-size:21px}.atlas-tools button:hover{background:#ffe1a1}.atlas-scale{position:absolute;left:17px;bottom:16px;border:solid #e3ebd5;border-width:0 1px 2px;text-align:center;padding-bottom:4px;color:#e3ebd5;font:10px Arial;text-shadow:0 1px 3px #17313c;pointer-events:none}.atlas-legend{display:flex;flex-wrap:wrap;gap:12px;color:#586e67;font-size:10px}.atlas-legend span{display:flex;align-items:center;gap:5px}.atlas-legend span:last-child{margin-left:auto;color:#78877e}.atlas-legend i{display:inline-block;width:11px;height:8px;border-radius:2px}.land-key{background:#87996b}.road-key{background:#d8c598;height:3px!important}.you-key{background:#f5cc70;border-radius:50%!important}.atlas-sidebar{display:flex;flex-direction:column;gap:14px;min-height:0}.atlas-search-label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:800;color:#586e67}.atlas-search{box-sizing:border-box;width:100%;background:#fffdf5;border:1px solid #cbd4c6;border-radius:9px;padding:11px 12px;font:12px Arial;color:#304b45;outline-color:#b39551}.atlas-selected{padding:17px;border-radius:13px;background:#e4e9da;border:1px solid #d0d9c4}.atlas-selected small{font-size:9px;letter-spacing:.13em;font-weight:800;color:#74836a}.atlas-selected h3{margin:8px 0;font-size:19px;line-height:1.25;color:#243d40}.atlas-selected p{font-size:12px;line-height:1.5;color:#607367;margin:0 0 9px}.atlas-distance{display:block;color:#738273;font-size:10px}.atlas-go{width:100%;margin-top:14px;border:0;border-radius:8px;padding:11px;background:#315b4b;color:#fff3cb;font:700 12px Arial;cursor:pointer}.atlas-go:hover{background:#456f55}.atlas-places{display:flex;flex-direction:column;gap:5px;overflow:auto;min-height:0;padding-right:4px}.atlas-place{display:flex;flex-direction:column;gap:5px;flex-shrink:0;text-align:left;padding:11px 12px;background:#ffffff65;border:1px solid transparent;border-radius:8px;cursor:pointer;color:#354f49}.atlas-place b{font-size:12px}.atlas-place small{font-size:10px;color:#7a8876}.atlas-place.active{border-color:#c7aa61;background:#fff6d7}.atlas-place[hidden]{display:none}.atlas-place:hover{background:#fffdf0}
@media(max-width:750px){.atlas-modal{padding:16px!important;width:97vw;height:95vh}.atlas-layout{grid-template-columns:1fr;grid-template-rows:minmax(310px,1fr) 210px;gap:12px}.atlas-sidebar{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:48px 1fr;gap:8px}.atlas-search-label{grid-column:1/-1;display:block;font-size:0}.atlas-search{padding:9px}.atlas-selected{padding:10px;overflow:auto}.atlas-selected h3{font-size:15px;margin:4px 0}.atlas-selected p{font-size:10px}.atlas-selected small{font-size:8px}.atlas-go{margin-top:7px;padding:9px}.atlas-places{grid-column:2;grid-row:2}.atlas-viewport{min-height:290px}.atlas-legend span:last-child{display:none}.atlas-topline{font-size:9px}}

.atlas-layout{flex:1}.atlas-tools{z-index:8}.atlas-compass,.atlas-scale{z-index:7}
.place-eyebrow{font-size:11px;letter-spacing:.12em;color:#778870;font-weight:800}.place-purpose{color:#5a7066;line-height:1.6;font-size:14px;margin:0 0 8px}.place-services{display:flex;flex-direction:column;gap:8px;border-radius:15px;padding:15px;background:#e5eadc}.place-services:empty{display:none}.place-services h3{margin:0;font-size:16px}.place-services p{margin:0;color:#647565;font-size:13px;line-height:1.5}.place-action{border:1px solid #a8bd9e;border-radius:9px;background:#315d49;color:#fff2ca;padding:11px 15px;font:700 13px var(--ui);text-align:left;cursor:pointer}.place-action:disabled{background:#dce3d6;color:#809078;border-color:#ced8c5;cursor:default}.place-status,.place-progress{background:#fff5d4;border-radius:10px;padding:12px;font-size:13px;color:#586741;margin:0}.place-help{font-size:11px;color:#809078}.atlas-role{display:block;font-size:11px;line-height:1.5;color:#75825f;margin:8px 0}#activityHUD{position:fixed;left:28px;bottom:80px;z-index:12;max-width:450px;background:#244e42e8;border:1px solid #e2ce8b;border-radius:12px;color:#fff1c9;padding:10px 14px;font:700 12px var(--ui);cursor:pointer}.titleOn #activityHUD{display:none}@media(max-width:650px){#activityHUD{left:14px;bottom:145px;max-width:260px;font-size:11px}}
.atlas-teleport{background:#c19c49;color:#213d3d}.atlas-teleport:hover{background:#e0bd65}.atlas-travel-hint{display:block;font-size:9px!important;line-height:1.5;letter-spacing:0!important;margin-top:9px;font-weight:400!important}.atlas-selected .atlas-go:not(.atlas-teleport){background:transparent;border:1px solid #a2b39b;color:#42614e;margin-top:7px;padding:8px}
/* Adventure journal and compact live objective card. */
#adventureButton{position:fixed;left:28px;top:132px;z-index:13;background:#f9d47c;color:#253e37;border:1px solid #ffe9ac;border-radius:20px;padding:9px 18px;font:800 12px var(--ui);box-shadow:0 4px 16px #152d3833;cursor:pointer}.titleOn #adventureButton,.titleOn #adventureHUD{display:none}body:has(#modePill.dragon-flight-pill:not([hidden])) #adventureButton{top:166px}
.adventure-modal{width:min(1020px,95vw)!important}.adventure-intro{padding:24px;border-radius:16px;background:linear-gradient(90deg,#173c3ce8,#173c3c55),url('../assets/previews/hub.jpg') center 45%/cover;color:#fff5d5;margin-bottom:20px}.adventure-intro small{font-size:10px;letter-spacing:.18em;color:#efd38b}.adventure-intro h2{font-size:29px;line-height:1.15;margin:9px 0}.adventure-intro p{font-size:13px;line-height:1.6;margin:0;max-width:570px}.adventure-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.adventure-card{overflow:hidden;border:1px solid #c9d2bb;background:#f7f7eb;border-radius:15px}.adventure-art{height:98px;display:flex;align-items:end;padding:16px;background:linear-gradient(135deg,#477f8e88,#183f4a99),url('../assets/world-intro.jpg') 50% 30%/cover}.toast .adventure-art{background-position:20% 80%;background-color:#bd7f42}.books .adventure-art{background-position:80% 70%;background-color:#75608c}.gravity .adventure-art{background-position:90% 20%;transform:scaleX(-1)}.adventure-art span{font-size:23px;font-weight:900;letter-spacing:.04em;color:#ffe1a1;text-shadow:0 3px #244944}.gravity .adventure-art span{transform:scaleX(-1)}.adventure-content{padding:18px}.adventure-content small{font-size:9px;letter-spacing:.15em;color:#7e8969;font-weight:800}.adventure-content h3{font-size:22px;margin:6px 0;color:#28473e}.adventure-content p{font-size:13px;line-height:1.6;color:#647364;min-height:42px}.adventure-meta{font-size:11px;color:#8b7543;margin:14px 0}.adventure-content button{width:100%;text-align:center;background:#2e5b4c}#adventureHUD{position:fixed;left:28px;bottom:134px;z-index:12;width:290px;padding:16px;border:1px solid #ddc78a;border-radius:14px;background:#173b36ed;color:#fff0ca;box-shadow:0 8px 25px #17313040;font-family:var(--ui)}#adventureHUD[hidden]{display:none}#adventureHUD strong,#adventureHUD span,#adventureHUD small{display:block}#adventureHUD strong{font-size:14px}#adventureHUD span{font-size:13px;color:#ffdc80;margin:8px 0}#adventureHUD small{font-size:11px;color:#c7d5bf;line-height:1.5}#adventureHUD progress{width:100%;height:7px;accent-color:#ffcf6f;margin:12px 0}.adventure-actions{display:flex;gap:8px}.adventure-actions button{border:1px solid #718b70;background:transparent;border-radius:7px;padding:6px 10px;font:600 10px var(--ui);color:#e8dfbd;cursor:pointer}@media(max-width:650px){#adventureButton{left:14px;top:180px;padding:7px 12px}body:has(#modePill.dragon-flight-pill:not([hidden])) #adventureButton{top:204px}#adventureHUD{left:14px;bottom:182px;width:220px;padding:12px}.adventure-grid{grid-template-columns:1fr}.adventure-intro h2{font-size:24px}.adventure-art{height:65px}}
.collection-modal{width:min(960px,95vw)!important}.collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}.collection-card{border:1px solid #cbd5be;background:#f6f7eb;border-radius:13px;padding:18px;display:flex;flex-direction:column;align-items:stretch}.collection-card small{font-size:9px;letter-spacing:.13em;color:#8c8159}.collection-card h3{margin:8px 0;color:#294d41;font-size:18px}.collection-card p{font-size:12px;color:#73806b;line-height:1.5;flex:1}.collection-card button{text-align:center}.collection-link{border:1px solid #bac7b0;border-radius:9px;background:transparent;padding:10px 14px;color:#536c5c;font:600 11px var(--ui);cursor:pointer;margin:0 0 18px}@media(max-width:600px){.collection-grid{grid-template-columns:1fr}}
.collection-launch{display:block;width:100%;margin-top:16px;background:#c7a354;color:#213d36;text-align:center;padding:20px}.collection-player{width:97vw!important;height:95vh;max-height:95vh}.collection-player .modal-body{display:flex;flex-direction:column;overflow:hidden;min-height:0;flex:1}.collection-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.collection-toolbar a{font-size:12px;color:#496f5b}.original-blocky-frame{width:100%;flex:1;min-height:300px;border:0;border-radius:12px;background:#0d1020}
/* Keep destination actions from squeezing the destination list on smaller laptops. */
.atlas-selected{max-height:48%;overflow-y:auto;flex-shrink:1}.atlas-search-label{flex-shrink:0}.atlas-places{flex:1;min-height:84px}@media(max-width:750px){.atlas-selected{max-height:none}.atlas-places{min-height:0}}
.collection-modal{box-sizing:border-box}.collection-player{padding:20px!important}.collection-toolbar{flex-wrap:wrap}.collection-toolbar small{font-size:10px;color:#79816e}.collection-toolbar a{margin-left:auto}
/* A featured, direct entry to the original collection. */
.collection-feature{box-sizing:border-box;width:100%;display:flex;align-items:center;gap:20px;text-align:left;border:2px solid #f5cf70;border-radius:16px;padding:20px 24px;margin:0 0 22px;background:linear-gradient(115deg,#173e45,#285d57);color:#fff4d2;box-shadow:0 7px 18px #1c423629;cursor:pointer;font-family:var(--ui);transition:transform .15s,box-shadow .15s}.collection-feature:hover{transform:translateY(-2px);box-shadow:0 10px 24px #1c423640}.collection-feature:focus-visible{outline:3px solid #b97817;outline-offset:4px}.collection-feature-art{position:relative;width:76px;height:70px;flex-shrink:0;background:#ffffff0b;border-radius:12px;overflow:hidden}.collection-feature-art i{position:absolute;width:29px;height:25px;background:#79ba78;border-top:8px solid #b4dc7d;border-right:7px solid #4b8161;box-shadow:0 5px #102e3533;transform:skewY(-8deg);left:9px;top:29px}.collection-feature-art i:nth-child(2){left:35px;top:36px;background:#bd814d;border-top-color:#f1c673;border-right-color:#8c633e}.collection-feature-art i:nth-child(3){left:23px;top:8px;background:#548ea0;border-top-color:#9ed5d2;border-right-color:#356776}.collection-feature-copy{display:flex;flex-direction:column;gap:5px;flex:1}.collection-feature-copy small{font-size:10px;font-weight:800;letter-spacing:.14em;color:#f5d080}.collection-feature-copy strong{font-size:29px;font-weight:900;line-height:1.1;color:#fff4d1}.collection-feature-copy>span{font-size:13px;line-height:1.5;color:#d3e2d5}.collection-feature-cta{flex-shrink:0;background:linear-gradient(#ffe396,#f5c85f);border:1px solid #ffe8ab;border-bottom:4px solid #bd913c;border-radius:11px;padding:14px 20px;color:#243f38;font-size:14px;font-weight:900;white-space:nowrap}.collection-feature-cta:after{content:'\2192';margin-left:12px}@media(max-width:600px){.collection-feature{padding:16px;gap:12px;flex-wrap:wrap}.collection-feature-art{width:65px;height:65px}.collection-feature-copy strong{font-size:25px}.collection-feature-copy small{font-size:8px}.collection-feature-copy>span{font-size:11px}.collection-feature-cta{width:100%;box-sizing:border-box;text-align:center;padding:11px 15px}}
.adventure-modal{box-sizing:border-box}
.adventure-actions{flex-wrap:wrap}.cloud .adventure-art{background-position:35% 20%;background-color:#8799bc}.pin .adventure-art{background-position:95% 10%;background-color:#756e9b}.house .adventure-art{background-position:20% 65%;background-color:#b79b69}.umbrella .adventure-art{background-position:60% 80%;background-color:#6ca4ab}
#adventureHUD{width:250px;padding:13px}#adventureHUD strong{font-size:13px}#adventureHUD small{font-size:10px}@media(min-width:651px) and (max-width:1000px){#adventureHUD{width:205px;left:20px;padding:11px}#adventureHUD strong{font-size:12px}#adventureHUD span{font-size:12px}}@media(max-width:650px){#adventureHUD{width:210px;padding:11px}}
/* Persistent, high-contrast in-game navigation with room on smaller laptops. */
body:not(.titleOn) #hudL,body:not(.titleOn) #hudR{display:flex!important;visibility:visible!important;opacity:1!important}body:not(.titleOn) #hudR{z-index:26;padding:6px;border:1px solid #d4e4c550;border-radius:44px;background:#193e37c9;backdrop-filter:blur(8px)}#hudL{max-width:calc(100vw - 450px)}.place-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(min-width:651px) and (max-width:900px){#hudR{top:10px;right:14px}#hudL{top:88px;left:20px;max-width:calc(100vw - 40px)}.place-title{font-size:18px}#modePill.dragon-flight-pill{top:155px;left:20px;font-size:10px;line-height:1.3;padding:6px 10px}#adventureButton{top:158px;left:20px}body:has(#modePill.dragon-flight-pill:not([hidden])) #adventureButton{top:188px}#adventureHUD{bottom:92px}}@media(max-width:650px){#hudL{top:88px;max-width:calc(100vw - 28px)}#modePill.dragon-flight-pill{top:155px;font-size:10px;line-height:1.3}#adventureButton{top:165px}body:has(#modePill.dragon-flight-pill:not([hidden])) #adventureButton{top:205px}}
.atlas-preview{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px;margin-bottom:7px}.atlas-preview-caption{display:block!important;font-size:8px!important;letter-spacing:.12em!important;color:#758970!important;margin-bottom:12px}.adventure-art{background-position:center!important;background-size:cover!important}.gravity .adventure-art{transform:none}.gravity .adventure-art span{transform:none}.atlas-selected{max-height:55%}@media(max-width:750px){.atlas-selected{max-height:none}.atlas-preview{max-height:90px}}

.atlas-preview{max-height:110px}.atlas-selected h3{margin-top:6px}
/* Opening guide and live multiplayer status stay clear of the top navigation. */
#networkStatus,#helpGuide{position:fixed;z-index:24;background:#214c40ee;color:#fff;border:1px solid #b9d7bd88;border-radius:16px;padding:7px 12px;font-weight:700;cursor:pointer}#networkStatus{left:24px;top:112px}#helpGuide{left:24px;top:150px}body.titleOn #networkStatus,body.titleOn #helpGuide{display:none}#welcomeGuide{position:fixed;left:24px;bottom:110px;width:min(320px,calc(100vw - 48px));z-index:28;background:#f4f4e9f5;color:#183c30;padding:18px;border:1px solid #fff;border-radius:18px;box-shadow:0 8px 28px #102a2644}#welcomeGuide p{font:15px/1.5 Arial;margin:10px 0}#welcomeGuide button{border:0;border-radius:10px;padding:8px 12px;margin-right:8px;background:#285d4b;color:white;cursor:pointer}#welcomeGuide button:last-child{background:transparent;color:#285d4b}.atlas-you{z-index:10!important;box-shadow:0 0 0 5px #fff8,0 0 0 9px #edc54d66!important}.atlas-you:after{content:'';position:absolute;left:50%;top:-16px;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:12px solid #ffe279;transform-origin:6px 30px;transform:translateX(-50%) rotate(var(--heading,0rad))}@media(max-width:600px){#networkStatus{top:115px;left:12px;font-size:11px}#helpGuide{top:150px;left:12px}#welcomeGuide{left:12px;bottom:155px;width:260px;padding:12px}}
/* Keep the whole left HUD in document flow: controls may wrap without overlaps. */
#hudL{width:min(620px,calc(100vw - 450px));gap:9px}.hud-pills{flex:none}#hudTools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;pointer-events:auto}#hudTools #adventureButton,#hudTools #helpGuide,#hudTools #networkStatus{position:static!important;inset:auto!important;margin:0;font:700 12px var(--ui);padding:8px 13px;min-height:34px;white-space:nowrap;box-shadow:0 2px 8px #102a2633}#hudTools #networkStatus{background:#214c40ed;color:#e7f0e7}#hudL #modePill{position:static!important;inset:auto!important;max-width:100%;width:fit-content;white-space:normal;line-height:1.5;font-size:12px;box-sizing:border-box;padding:9px 13px;pointer-events:none}#hudL #modePill[hidden]{display:none!important}@media(max-width:900px){#hudL{width:calc(100vw - 40px);max-width:calc(100vw - 40px)}}@media(max-width:650px){#hudL{width:calc(100vw - 28px);max-width:calc(100vw - 28px);gap:7px}#hudTools{gap:6px}#hudTools #adventureButton,#hudTools #helpGuide,#hudTools #networkStatus{padding:7px 11px;font-size:11px;min-height:32px}#hudL #modePill{font-size:10px;line-height:1.5;padding:7px 10px}}

/* ==================== FLIGHT SETTINGS (profile popover) ==================== */
.prof-section{margin-top:16px;border-top:1px solid rgba(20,40,30,.09);padding-top:14px}
.prof-section-title{font-size:12.5px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:#5b6672;margin-bottom:10px}
.set-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.set-lbl{font-size:14.5px;font-weight:700;color:#22303e}
.seg{display:flex;background:rgba(15,30,50,.07);border-radius:999px;padding:3px;gap:2px;flex:none}
.seg button{border:0;background:transparent;padding:6px 12px;border-radius:999px;font:800 12.5px var(--ui);color:#43505e;cursor:pointer;transition:background .12s,color .12s}
.seg button:hover{color:#22303e}
.seg button.on{background:#2E7CF6;color:#fff;box-shadow:0 2px 8px rgba(46,124,246,.4)}
.nav-circle.flying{background:#ffd23f!important;color:#0f1e3c!important;border-color:#fff!important}

/* ==================== E2 WORLD 2D NAV + UI ====================
   Weird World's top-right nav rebuilt as E2 World 2D's actual nav:
   the same bare row (no bar behind it), the same dark navy glass
   pill buttons, the profile pic last at the corner, and the same
   white frosted popover panel under it. Values copied from the 2D
   game's own stylesheet (#hudR, .ib.pill, #bFace, #pmenu). */
body:not(.titleOn) #hudR{background:transparent;border:none;box-shadow:none;border-radius:0;padding:0;backdrop-filter:none;-webkit-backdrop-filter:none;gap:8px;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right))}
.nav-circle{width:42px;height:42px;background:rgba(20,44,88,.56);border:1px solid rgba(255,255,255,.16);border-radius:999px;backdrop-filter:blur(14px) saturate(1.25);-webkit-backdrop-filter:blur(14px) saturate(1.25);box-shadow:0 6px 20px rgba(8,18,40,.3);color:#fff}
.nav-circle:hover{background:rgba(16,34,70,.86);transform:none}
.nav-circle svg{width:20px;height:20px;stroke-width:2}
.nav-avatar{width:46px;height:46px;border:2px solid #fff;background:#8fd0f6;box-shadow:0 6px 20px rgba(8,18,40,.3)}
.nav-badge{background:#ffd23f;color:#0f1e3c;border:2px solid #fff}
.popover-card{top:calc(76px + env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));width:min(332px,calc(100vw - 28px));background:rgba(248,250,248,.86);backdrop-filter:blur(18px) saturate(1.35);-webkit-backdrop-filter:blur(18px) saturate(1.35);border:1px solid rgba(255,255,255,.65);border-radius:26px;box-shadow:0 18px 44px rgba(23,43,28,.35),inset 0 1px 0 rgba(255,255,255,.8);padding:16px;color:#23262b;max-height:calc(100vh - 110px);overflow-y:auto}
.prof-row{background:rgba(255,255,255,.62);border:1px solid rgba(30,40,30,.05);border-radius:16px;color:#23262b}
.prof-row:hover{background:rgba(255,255,255,.88)}
.chat-card,.modal-box{background:rgba(248,250,248,.86);backdrop-filter:blur(18px) saturate(1.35);-webkit-backdrop-filter:blur(18px) saturate(1.35);border:1px solid rgba(255,255,255,.65);box-shadow:0 18px 44px rgba(23,43,28,.35),inset 0 1px 0 rgba(255,255,255,.8);color:#23262b}
@media(max-width:650px){.nav-circle{width:40px;height:40px}.nav-avatar{width:44px;height:44px}.popover-card{top:calc(68px + env(safe-area-inset-top))}}
