/* ---------- Pixel fonts (self-hosted via trusted jsdelivr CDN) ---------- */
@font-face {
  font-family: 'Silkscreen';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/silkscreen@5.2.8/files/silkscreen-latin-400-normal.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/@fontsource/silkscreen@5.2.8/files/silkscreen-latin-400-normal.woff') format('woff');
}
@font-face {
  font-family: 'Silkscreen';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/silkscreen@5.2.8/files/silkscreen-latin-700-normal.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/@fontsource/silkscreen@5.2.8/files/silkscreen-latin-700-normal.woff') format('woff');
}
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/press-start-2p@5.2.7/files/press-start-2p-latin-400-normal.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/@fontsource/press-start-2p@5.2.7/files/press-start-2p-latin-400-normal.woff') format('woff');
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #0e1620;
  font-family: 'Segoe UI', system-ui, sans-serif;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

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

#water-overlay {
  position: fixed; inset: 0; pointer-events: none;
  background: rgba(30, 80, 180, 0.35);
  opacity: 0; transition: opacity 0.2s;
}

/* ---------- login ---------- */
#login {
  position: fixed; inset: 0; z-index: 30;
  display: flex; align-items: center; justify-content: flex-start;
  padding-left: 4vw;
  overflow: hidden;
  background: linear-gradient(180deg, #8fd3f0 0%, #a8def2 45%, #cdeaf7 70%, #7ec850 70%, #5fae3a 100%);
}
/* maliit na screen: i-gitna ang panel */
@media (max-width: 760px) { #login { justify-content: center; padding-left: 0; } }

/* ---- TUNAY na 3D na tanawin ng bayan (galing sa engine) ---- */
#login-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#login-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(8,12,18,0.55) 100%);
}

/* ---- MC-style panel ---- */
#login .panel {
  position: relative; z-index: 2;
  background: rgba(18, 26, 36, 0.94);
  padding: 26px 30px;
  width: min(560px, 94vw);
  text-align: left;
  color: #ecf0f1;
}
.mc-frame {
  border: 3px solid #0c1118;
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 3px #3a4a5e,
    inset 0 0 0 6px #243140,
    0 22px 60px rgba(0,0,0,0.55);
}
#login h1 {
  font-size: 2.3rem; letter-spacing: 2px; margin-bottom: 4px;
  text-shadow: 0 3px 0 #0c1118, 0 0 18px rgba(95,174,58,0.5);
}
#login .sub { color: #9fb0bd; font-size: 0.9rem; margin-bottom: 18px; }

.login-row { display: flex; gap: 22px; align-items: flex-start; text-align: left; }
#char-preview-wrap {
  flex: 0 0 auto; width: 168px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: linear-gradient(180deg, #7cc1ee 0%, #aedcb4 70%, #8fcf8a 100%);
  border: 3px solid #0c1118; border-radius: 6px; padding: 10px 10px 8px;
  box-shadow: inset 0 0 0 2px #2a3a4a, 0 6px 18px rgba(0,0,0,0.35);
}
#char-preview { width: 148px; height: 258px; display: block; }
.cp-label { font-size: 0.72rem; color: #14222e; font-weight: 700; letter-spacing: 0.5px; }
#auth-views { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; }
.auth-view { display: flex; flex-direction: column; }
.auth-view[hidden] { display: none; }
#profile-fields { display: block; }
.auth-msg { color: #b9c7d2; font-size: 0.88rem; line-height: 1.45; margin: 0 0 14px; }
.auth-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.link-btn {
  background: none; border: none; color: #6cc0f0; font-size: 0.85rem;
  cursor: pointer; padding: 4px 2px; text-decoration: underline;
}
.link-btn:hover { color: #9fd8ff; }
.field-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: #8fa3b2; margin: 0 0 5px 2px; }

/* Roblox-style tabbed customizer */
#customizer { margin-bottom: 14px; }
.cz-tabs { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 2px solid #0c1118; padding-bottom: 8px; flex-wrap: wrap; }
.cz-tab {
  padding: 6px 10px; font-size: 0.82rem; font-weight: 600;
  border: 2px solid #0c1118; border-radius: 4px;
  background: #1b2838; color: #9fb3c2; cursor: pointer;
}
.cz-tab:hover { background: #233547; color: #cfe0ec; }
.cz-tab.active { background: linear-gradient(180deg, #4e9e2c, #3a7a20); color: #fff; border-color: #2a5a16; }
.cz-panel { min-height: 86px; }
.cz-panel .field-label { margin-top: 8px; }
.cz-panel .field-label:first-child { margin-top: 0; }
.cz-swatches { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.cz-swatches .swatch { width: 26px; height: 26px; aspect-ratio: auto; }
.cz-buttons { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.cz-btn {
  padding: 6px 12px; min-width: 34px; font-size: 0.9rem;
  border: 2px solid #0c1118; border-radius: 4px;
  background: #1b2838; color: #cfe0ec; cursor: pointer;
  box-shadow: inset -2px -2px 0 rgba(0,0,0,0.25), inset 2px 2px 0 rgba(255,255,255,0.08);
}
.cz-btn:hover { background: #233547; }
.cz-btn.sel { border-color: #fff; background: #2e623a; color: #fff; }
#name-input,
.auth-view input[type="email"],
.auth-view input[type="password"] {
  width: 100%; padding: 12px 14px; margin-bottom: 16px;
  border-radius: 4px; border: 2px solid #0c1118;
  background: #0e1620; color: #ecf0f1;
  font-size: 1rem; outline: none;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
}
#name-input:focus,
.auth-view input:focus { border-color: #5fae3a; }
#color-grid {
  display: grid; grid-template-columns: repeat(8, 1fr);
  gap: 6px; margin: 0 0 14px;
}
.swatch {
  aspect-ratio: 1; border-radius: 3px; border: 2px solid #0c1118;
  cursor: pointer; transition: transform 0.1s;
  box-shadow: inset -3px -3px 0 rgba(0,0,0,0.22), inset 3px 3px 0 rgba(255,255,255,0.18);
}
.swatch:hover { transform: scale(1.14); }
.swatch.sel { border-color: #fff; box-shadow: 0 0 0 2px #5fae3a, inset -3px -3px 0 rgba(0,0,0,0.22); }
#play-btn,
.auth-go {
  width: 100%; padding: 14px; margin-top: 4px;
  border: 2px solid #0c1118; border-radius: 4px;
  background: linear-gradient(180deg, #6cc63f 0%, #4e9e2c 100%);
  color: #fff; font-size: 1.1rem; font-weight: 800; letter-spacing: 1px; cursor: pointer;
  text-shadow: 0 2px 0 rgba(0,0,0,0.35);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.35), inset 0 -3px 0 rgba(0,0,0,0.25);
}
#view-choose .auth-go { margin-top: 0; margin-bottom: 12px; }
.auth-go.alt { background: linear-gradient(180deg, #4a708f 0%, #2f4a63 100%); }
#play-btn:hover:not(:disabled),
.auth-go:hover:not(:disabled) { filter: brightness(1.1); }
#play-btn:active:not(:disabled),
.auth-go:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 2px 8px rgba(0,0,0,0.4); }
#play-btn:disabled,
.auth-go:disabled { background: #566573; cursor: wait; }
.error { color: #e74c3c; font-size: 0.85rem; margin: 10px 0 0; }

/* ===== GAMIFIED login/auth: pixel fonts across the whole panel ===== */
#login h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.5rem; letter-spacing: 0; line-height: 1.25;
}
#login .sub, #login .auth-msg, #login .field-label, #login .cp-label,
#login .link-btn, #login .error,
#login #name-input, #login .auth-view input,
#login .cz-tab, #login .cz-btn,
#login #play-btn, #login .auth-go {
  font-family: 'Silkscreen', monospace;
}
#login #play-btn, #login .auth-go { font-weight: 700; letter-spacing: 0.5px; font-size: 0.95rem; }
#login .sub { letter-spacing: 0.5px; }

/* Solana-logo wallet buttons (login + choose views) */
.auth-go.wallet { display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.wbtn-ico { display: inline-flex; flex: 0 0 auto; }
.wbtn-ico svg { width: 20px; height: auto; display: block; }

/* ===== Mobile-friendly auth (login / register / guest) ===== */
/* Maliit/maikling screen: i-gitna + scrollable ang panel, compact lahat */
@media (max-width: 600px), (max-height: 600px) {
  #login { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px; justify-content: center; }
  #login .panel { width: min(560px, 96vw); padding: 14px 16px; margin: auto; }
  #login h1 { font-size: 0.92rem; line-height: 1.3; }
  #login .sub { font-size: 0.6rem; margin-bottom: 10px; }
  .login-row { gap: 12px; }
  #login .field-label { font-size: 0.55rem; margin-bottom: 3px; }
  #login #name-input,
  #login .auth-view input { font-size: 0.78rem; padding: 9px 10px; margin-bottom: 10px; }
  #login .auth-go, #login #play-btn { font-size: 0.82rem; padding: 11px; }
  #view-choose .auth-go { font-size: 0.88rem; padding: 12px; margin-bottom: 8px; }
  .cz-tabs { gap: 3px; margin-bottom: 8px; padding-bottom: 6px; }
  .cz-tab { padding: 5px 7px; font-size: 0.7rem; }
  .cz-panel { min-height: 60px; }
  .cz-swatches .swatch { width: 22px; height: 22px; }
  .cz-btn { padding: 5px 9px; min-width: 28px; font-size: 0.8rem; }
  #login .auth-msg { font-size: 0.62rem; line-height: 1.5; }
  #login .link-btn { font-size: 0.64rem; }
}

/* Portrait phone: i-stack pababa ang preview + form */
@media (max-width: 540px) {
  .login-row { flex-direction: column; align-items: center; gap: 12px; }
  #char-preview { width: 110px; height: 170px; }
  #char-preview-wrap { width: auto; flex-direction: row; padding: 6px; }
  #auth-views { width: 100%; }
}

/* Landscape phone (maluwang pero maikli): panatilihing pahalang, liitin ang preview */
@media (min-width: 541px) and (max-height: 560px) {
  #char-preview { width: 92px; height: 150px; }
  #char-preview-wrap { width: 112px; padding: 6px; }
  .cp-label { font-size: 0.55rem; }
}

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }

#crosshair {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff; font-size: 22px; text-shadow: 0 0 3px #000;
}

/* crop look-at hint (lumalabas kapag naka-target ang crosshair sa isang tanim) */
#crop-hint {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, 28px);
  pointer-events: none; white-space: nowrap; z-index: 7;
  padding: 4px 11px; border-radius: 999px;
  font: 600 13px/1.2 system-ui, sans-serif; color: #f3ead2;
  background: rgba(28, 20, 10, 0.82);
  border: 1px solid rgba(193, 154, 91, 0.7);
  text-shadow: 0 1px 2px #000;
}
#crop-hint.ready {
  color: #1c2a12;
  background: rgba(180, 230, 120, 0.95);
  border-color: #8fd14a;
  box-shadow: 0 0 10px rgba(150, 230, 90, 0.6);
}
#crop-hint b { font-weight: 800; }

/* online players: pill + clickable list (upper-left) */
#online-wrap { position: absolute; top: 10px; right: 12px; z-index: 8; }
#online-count {
  display: flex; align-items: center; gap: 7px;
  background: linear-gradient(180deg, #243345, #131c26);
  color: #d6f5e0; cursor: pointer; pointer-events: auto;
  padding: 6px 11px; border: 2px solid #060a0f; border-radius: 6px;
  box-shadow: inset 0 0 0 2px #36546f, 0 4px 12px rgba(0,0,0,0.4);
  font-family: 'Silkscreen', 'Courier New', monospace; font-size: 0.62rem; letter-spacing: 0.5px;
}
#online-count:hover { box-shadow: inset 0 0 0 2px #4a82ad, 0 4px 12px rgba(0,0,0,0.4); }
#online-count .oc-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 6px #2ecc71; }
#online-count #oc-num { color: #8af0a8; font-weight: 700; }
#online-list {
  position: absolute; top: 100%; right: 0; margin-top: 5px;
  min-width: 132px; max-width: 200px;
  background: linear-gradient(180deg, #1c2735, #11181f);
  border: 2px solid #060a0f; border-radius: 6px;
  box-shadow: inset 0 0 0 2px #2b3f54, 0 6px 16px rgba(0,0,0,0.5);
  padding: 6px; pointer-events: auto;
  font-family: 'Silkscreen', 'Courier New', monospace;
}
#online-list .ol-row { display: flex; align-items: center; gap: 7px; padding: 3px 4px; font-size: 0.6rem; color: #dfe8ef; }
#online-list .ol-dot { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto; border: 1px solid #060a0f; }
#online-list .ol-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#online-list .ol-you { color: #ffe39a; }

/* ===== Status-effect screen feedback (border vignette + chips) ===== */
#fx-vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 30;
  opacity: 0; transition: opacity 0.25s ease; --fxc: transparent;
}
#fx-vignette.on {
  opacity: 1;
  box-shadow: inset 0 0 95px 16px var(--fxc), inset 0 0 32px 4px var(--fxc);
  animation: fxPulse 1.5s ease-in-out infinite;
}
@keyframes fxPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.95; } }
#status-fx {
  position: fixed; top: 60px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 31; pointer-events: none;
  font-family: 'Silkscreen', 'Courier New', monospace;
}
.fx-chip {
  display: flex; align-items: center; gap: 6px;
  background: rgba(8, 12, 18, 0.72); border: 2px solid var(--c); border-radius: 6px;
  padding: 4px 9px; color: #fff; font-size: 0.6rem; letter-spacing: 0.5px;
  box-shadow: 0 0 12px -3px var(--c), inset 0 0 0 1px rgba(255,255,255,0.08);
  animation: fxChipIn 0.2s ease-out;
}
.fx-chip .fx-ic { font-size: 0.85rem; line-height: 1; }
.fx-chip .fx-nm { color: var(--c); font-weight: 700; }
.fx-chip .fx-t { opacity: 0.75; }
@keyframes fxChipIn { from { transform: translateY(-6px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
body.mobile #status-fx { top: 42px; gap: 5px; }
body.mobile .fx-chip { font-size: 0.52rem; padding: 3px 6px; }

/* ===== Guild ===== */
#btn-guild {
  position: absolute; bottom: 132px; right: 16px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center; color: #d9b8ff;
  background: linear-gradient(180deg, #3a2d50, #1c1530);
  border: 2px solid #060a0f; border-radius: 8px;
  box-shadow: inset 0 0 0 2px #6a4a8a, 0 4px 12px rgba(0,0,0,0.4);
  cursor: pointer; pointer-events: auto;
}
#btn-guild:hover { box-shadow: inset 0 0 0 2px #9a6fc4, 0 4px 12px rgba(0,0,0,0.4); }
#guild-modal {
  position: fixed; inset: 0; z-index: 37;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.6);
}
#guild-modal[hidden] { display: none; }
.guild-panel {
  background: linear-gradient(180deg, #2a2440, #14101f);
  border: 3px solid #060a0f; border-radius: 10px;
  box-shadow: inset 0 0 0 3px #6a4a8a, 0 12px 40px rgba(0,0,0,0.6);
  padding: 8px 12px 12px; width: min(94vw, 460px); max-width: 94vw;
  font-family: 'Silkscreen', 'Courier New', monospace; color: #ece0fb;
}
.guild-panel .cm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; border-bottom: 3px solid #6a4a8a; padding-bottom: 6px; }
.guild-panel .cm-head h2 { font-size: 0.7rem; color: #d9b8ff; text-shadow: 1px 1px 0 #000; }
#guild-close {
  background: #3a2d50; color: #fff; border: 2px solid #060a0f; border-radius: 5px;
  width: 28px; height: 28px; cursor: pointer; font-size: 0.85rem;
}
#guild-close:hover { background: #553a78; }
.gd-sec { margin-bottom: 12px; }
.gd-h { font-size: 0.6rem; color: #b79de0; margin-bottom: 6px; letter-spacing: 0.5px; }
.guild-panel input {
  background: #120e1d; color: #ece0fb; border: 2px solid #060a0f; border-radius: 5px;
  padding: 6px 8px; font-family: inherit; font-size: 0.62rem; margin: 2px 0;
}
.gd-btn {
  background: linear-gradient(180deg, #5a3f86, #38275a); color: #fff;
  border: 2px solid #060a0f; border-radius: 5px; cursor: pointer;
  padding: 6px 12px; font-family: inherit; font-size: 0.6rem; margin-top: 4px;
  box-shadow: inset 0 0 0 1px #8a6ab0;
}
.gd-btn:hover { background: linear-gradient(180deg, #6e4fa0, #45316e); }
.gd-leave { background: linear-gradient(180deg, #7a2f3a, #4a1c24); box-shadow: inset 0 0 0 1px #b06070; margin-top: 10px; }
.gd-leave:hover { background: linear-gradient(180deg, #9a3f4a, #5a242c); }
.gd-title { font-size: 0.72rem; color: #ffd98a; text-shadow: 1px 1px 0 #000; margin-bottom: 8px; }
.gd-tag { color: #b79de0; font-size: 0.6rem; }
.gd-members { display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow-y: auto; margin-bottom: 4px; }
.gd-mem { display: flex; align-items: center; gap: 7px; padding: 4px 4px; font-size: 0.6rem; color: #dfe8ef; border-bottom: 1px solid #2a2440; }
.gd-mem .ol-dot { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto; border: 1px solid #060a0f; }
.gd-mn { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-crown { flex: 0 0 auto; }
.gd-lv { color: #8af0a8; flex: 0 0 auto; }
.gd-msg { font-size: 0.58rem; color: #ff9aa8; margin-top: 6px; min-height: 14px; }
.gd-info { font-size: 0.58rem; color: #b8acd0; line-height: 1.5; margin-top: 4px; }
.gd-info b { color: #e6d6ff; }
.gd-toggle { display: flex; align-items: center; gap: 7px; font-size: 0.6rem; color: #dfe8ef; margin: 4px 0; cursor: pointer; }
.gd-toggle input { width: auto; margin: 0; }
.gd-recruit input#gd-rec-msg { display: block; width: 100%; box-sizing: border-box; margin: 4px 0; }
.gd-app { display: flex; align-items: center; gap: 7px; padding: 4px 4px; font-size: 0.6rem; color: #dfe8ef; border-bottom: 1px solid #2a2440; }
.gd-app .gd-mn { flex: 1; }
.gd-mini { width: 24px; height: 24px; border: 2px solid #060a0f; border-radius: 5px; cursor: pointer; font-size: 0.7rem; color: #fff; flex: 0 0 auto; }
.gd-acc { background: linear-gradient(180deg, #2f7a3f, #1c4a26); box-shadow: inset 0 0 0 1px #5fb070; }
.gd-acc:hover { background: linear-gradient(180deg, #3f9a4f, #245c2c); }
.gd-rej { background: linear-gradient(180deg, #7a2f3a, #4a1c24); box-shadow: inset 0 0 0 1px #b06070; }
.gd-rej:hover { background: linear-gradient(180deg, #9a3f4a, #5a242c); }
/* recruit board cards */
.rc-card { background: #1a1528; border: 2px solid #060a0f; border-radius: 6px; box-shadow: inset 0 0 0 1px #4a3a6a; padding: 8px 10px; margin-bottom: 8px; }
.rc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rc-top .gd-title { margin-bottom: 0; font-size: 0.64rem; }
.rc-msg { font-size: 0.58rem; color: #cdbef0; font-style: italic; margin: 4px 0; }
.rc-by { font-size: 0.54rem; color: #8e82a8; margin-bottom: 6px; }
.rc-card .gd-btn { margin-top: 2px; }
#recruit-modal { position: fixed; inset: 0; z-index: 37; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.6); }
#recruit-modal[hidden] { display: none; }
#recruit-body { max-height: 60vh; overflow-y: auto; }
#recruit-close { background: #3a2d50; color: #fff; border: 2px solid #060a0f; border-radius: 5px; width: 28px; height: 28px; cursor: pointer; font-size: 0.85rem; }
#recruit-close:hover { background: #553a78; }
body.mobile .guild-panel { width: 94vw; }

#mode-badge {
  position: absolute; top: 108px; left: 12px;
  background: rgba(155, 89, 182, 0.85); color: #fff;
  padding: 5px 12px; border-radius: 6px;
  font-size: 0.8rem; font-weight: 700;
  pointer-events: none;
}

#btn-down {
  /* posisyon/hugis: nasa shared round-button rule; ipinapakita lang habang lumilipad (JS) */
  /* dating pwesto ng dodge (naalis na) — arc sa pagitan ng attack at jump */
  right: 74px; bottom: 134px;
  width: 58px; height: 58px;
  display: none;
}

/* minimap — clickable, nasa ilalim ng RPG player panel (upper-right) */
#minimap-wrap {
  position: absolute; top: 48px; right: 12px;
  width: 120px; height: 120px;
  border: 2px solid #060a0f; border-radius: 8px;
  box-shadow: inset 0 0 0 2px #36546f, 0 4px 12px rgba(0,0,0,0.4);
  background: #0a1018; overflow: hidden;
  cursor: pointer; pointer-events: auto;
}
#minimap-wrap:hover { box-shadow: inset 0 0 0 2px #4a82ad, 0 4px 12px rgba(0,0,0,0.4); }
#minimap { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
#minimap-exp {
  position: absolute; right: 3px; bottom: 2px;
  color: #fff; font-size: 0.8rem; line-height: 1;
  text-shadow: 0 0 3px #000, 1px 1px 0 #000; opacity: 0.85; pointer-events: none;
}
body.mobile #minimap-wrap { width: 84px; height: 84px; top: 38px; right: 6px; }

/* full world map modal */
#map-modal {
  position: fixed; inset: 0; z-index: 36;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.6);
}
.map-panel {
  background: linear-gradient(180deg, #22303f, #121a24);
  border: 3px solid #060a0f; border-radius: 10px;
  box-shadow: inset 0 0 0 3px #36546f, 0 12px 40px rgba(0,0,0,0.6);
  padding: 8px 12px 10px; width: min(96vw, 940px); max-width: 96vw;
  font-family: 'Silkscreen', 'Courier New', monospace; color: #ecf0f1;
}
.map-panel .cm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; gap: 16px; }
.map-panel h2 { font-size: 0.72rem; color: #ffe39a; text-shadow: 1px 1px 0 #000; }
#map-close {
  background: #2b455d; color: #fff; border: 2px solid #060a0f; border-radius: 5px;
  width: 30px; height: 30px; cursor: pointer; font-size: 0.9rem;
}
#map-close:hover { background: #3a6488; }
#map-stage {
  width: 100%; height: 58vh;
  border: 2px solid #060a0f; box-shadow: inset 0 0 0 2px #36546f; background: #0a1018;
}
#map-canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
#map-legend {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px;
  font-size: 0.55rem; color: #cdd8e1;
}
#map-legend span { display: flex; align-items: center; gap: 5px; }
#map-legend .lg { width: 11px; height: 11px; display: inline-block; border: 1px solid #060a0f; }

/* materials panel (ores) — sa ilalim ng minimap */
#materials {
  position: absolute; top: 176px; right: 12px;
  display: flex; flex-direction: column; gap: 4px;
  pointer-events: none;
}
#materials .mat {
  display: none; align-items: center; gap: 6px;
  background: rgba(0,0,0,0.5); color: #fff;
  padding: 3px 8px; border-radius: 6px;
  font-size: 0.8rem; font-weight: 700;
}
#materials .mat canvas { image-rendering: pixelated; border-radius: 3px; }

#hint {
  position: absolute; top: 10px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85); font-size: 0.78rem;
  background: rgba(0,0,0,0.4); padding: 4px 12px; border-radius: 6px;
  white-space: nowrap;
}

/* hotbar + XP bar na magkasama sa baba-gitna (gaya ng RPG hotbar) */
#hotbar-wrap {
  position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  pointer-events: none; max-width: 94vw;
}
#hotbar {
  display: flex; gap: 3px; justify-content: center;
  pointer-events: auto;
  max-width: 94vw;
  overflow-x: auto;
  scrollbar-width: thin;
}
#hotbar .slot { flex-shrink: 0; }

/* XP bar sa ILALIM ng hotbar: LV sa kaliwa, berdeng progress, EXP sa kanan */
#hotbar-xp {
  position: relative; height: 18px; border-radius: 6px;
  background: linear-gradient(180deg, #14361c, #0c2413);
  border: 2px solid #07140b;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 2px 6px rgba(0,0,0,0.45);
  overflow: hidden;
  font-family: 'Silkscreen', 'Courier New', monospace;
}
#hx-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  background: linear-gradient(180deg, #7fe34a 0%, #46c24f 55%, #2f9c3c 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
  transition: width 0.3s ease;
}
#hx-lv, #hx-exp {
  position: absolute; top: 0; bottom: 0; display: flex; align-items: center;
  z-index: 1; color: #fff; font-size: 0.62rem; font-weight: 700;
  text-shadow: 1px 1px 0 #000, 0 0 2px #000; letter-spacing: 0.4px;
}
#hx-lv { left: 8px; }
#hx-exp { right: 8px; color: #fffbdc; }
.slot {
  position: relative;
  width: 42px; height: 42px;
  background: rgba(0,0,0,0.55);
  border: 2px solid #555; border-radius: 6px;
  cursor: pointer; padding: 3px;
}
.slot canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.slot.sel { border-color: #ffd24a; box-shadow: 0 0 9px rgba(255,210,74,0.75), inset 0 0 0 1px rgba(255,210,74,0.4); }
.slot.empty canvas { opacity: 0.28; }
/* walang stock = blangkong box gaya ng Minecraft (number nananatiling kita) */
.slot.blank canvas, .slot.blank .count { visibility: hidden; }
.bag-hot-slot.blank canvas, .bag-hot-slot.blank .count { visibility: hidden; }
/* slot number (1-9) sa kaliwang-baba */
.slot .slot-num {
  position: absolute; left: 3px; bottom: 0;
  color: #d6e4f0; font-size: 0.58rem; font-weight: 700;
  text-shadow: 1px 1px 0 #000; pointer-events: none; line-height: 1;
}
.slot .count {
  position: absolute; right: 3px; bottom: 0;
  color: #ffe14d; font-size: 0.68rem; font-weight: 700;
  text-shadow: 1px 1px 0 #000;
  pointer-events: none;
}

/* ===== RPG player nameplate (upper-right) ===== */
#player-panel {
  position: absolute; top: 10px; left: 10px; z-index: 7;
  display: flex; gap: 9px;
  padding: 8px;
  background: linear-gradient(180deg, #243345 0%, #121a24 100%);
  border: 2px solid #060a0f; border-radius: 7px;
  box-shadow: inset 0 0 0 2px #36546f, inset 0 2px 0 rgba(255,255,255,0.07),
              0 6px 18px rgba(0,0,0,0.55);
  font-family: 'Silkscreen', 'Courier New', monospace;
  pointer-events: none;
}

#pp-portrait {
  flex: 0 0 auto; width: 60px; height: 60px; align-self: center; /* SQUARE */
  padding: 2px; border: 2px solid #060a0f; border-radius: 6px;
  background: linear-gradient(180deg, #9fd2f0 0%, #c3e7c7 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.28);
  overflow: hidden;
}
#pp-avatar { width: 100%; height: 100%; display: block; image-rendering: pixelated; object-fit: cover; }

#pp-info { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 176px; }
#pp-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
#pp-name {
  color: #ffe39a; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.5px;
  text-shadow: 1px 1px 0 #000;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#pp-level {
  flex: 0 0 auto; color: #cfe6ff; font-size: 0.5rem;
  background: #2b455d; border: 1px solid #060a0f; border-radius: 3px;
  padding: 2px 5px; text-shadow: 1px 1px 0 #000;
}

.pp-row { display: flex; align-items: center; gap: 6px; }
.pp-ico { width: 15px; text-align: center; font-size: 0.8rem; line-height: 1; flex: 0 0 auto; }
.pp-bar {
  position: relative; flex: 1; height: 14px;
  background: #0a0f15; border: 2px solid #060a0f; border-radius: 3px;
  overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.75);
}
.pp-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transition: width 0.25s ease; }
/* glossy highlight sa taas ng fill */
.pp-fill::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 45%; background: rgba(255,255,255,0.22); }
.pp-hp     .pp-fill { background: #e0392f; }
.pp-energy .pp-fill { background: linear-gradient(180deg, #4aa6f0 0%, #2b7fd6 60%, #1f66bd 100%); }
.pp-food   .pp-fill { background: #d08a32; }   /* legacy (di na ginagamit) */
.pp-xp     .pp-fill { background: #46c24f; width: 0%; }
/* coins row: walang bar — gintong numero lang */
.pp-coins { gap: 7px; }
#pp-coins { color: #ffd24a; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.5px; text-shadow: 1px 1px 0 #000; }
.pp-coins .pp-ico { font-size: 0.95rem; }
.pp-val {
  position: absolute; right: 4px; top: 0; bottom: 0; z-index: 1;
  display: flex; align-items: center;
  font-size: 0.5rem; color: #fff; text-shadow: 1px 1px 0 #000, 0 0 2px #000;
}
.pp-hidden { display: none !important; }

/* mobile: paliitin ang nameplate */
body.mobile #player-panel { top: 6px; left: 6px; gap: 6px; padding: 5px; border-radius: 5px; }
/* SQUARE na profile avatar sa mobile (hindi na stretched/tall) */
body.mobile #pp-portrait { width: 42px; height: 42px; align-self: center; }
body.mobile #pp-avatar { object-fit: cover; }
body.mobile #pp-info { width: 120px; gap: 3px; }
body.mobile #pp-name { font-size: 0.62rem; }
body.mobile #pp-level { font-size: 0.42rem; padding: 1px 4px; }
body.mobile .pp-row { gap: 4px; }
body.mobile .pp-ico { width: 12px; font-size: 0.66rem; }
body.mobile .pp-bar { height: 11px; }
body.mobile .pp-val { font-size: 0.42rem; }

#mine-prog {
  -webkit-mask: radial-gradient(closest-side, transparent 58%, #000 60%);
  mask: radial-gradient(closest-side, transparent 58%, #000 60%);
}

/* mining progress ring (sa crosshair o sa touch point) */
#mine-prog {
  position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  display: none;
  pointer-events: none;
}

/* damage flash */
#damage-flash {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(200,0,0,0.18), rgba(160,0,0,0.5));
  opacity: 0; transition: opacity 0.4s;
}
#damage-flash.hit { opacity: 1; transition: opacity 0.05s; }

#chat {
  position: absolute; bottom: 76px; left: 12px;
  width: min(340px, 28vw);
  pointer-events: auto;
  /* IISANG unified panel para sa buong chat (tabs + messages + input) */
  background: rgba(8, 12, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 6px;
}
#chat-tabs {
  display: flex; gap: 2px; margin-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12); padding: 0 2px 3px;
}
.chat-tab {
  flex: 1; padding: 5px 4px;
  background: none; border: none; cursor: pointer;
  color: #8fa3b2; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px;
  border-bottom: 2px solid transparent; border-radius: 4px 4px 0 0;
}
.chat-tab:hover { color: #cfe0ec; }
.chat-tab.active { color: #ffe14d; border-bottom-color: #ffe14d; background: rgba(255,225,77,0.08); }
.chat-tab .unread { color: #5fd35f; margin-left: 2px; }
#chat-messages {
  max-height: 180px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
  margin-bottom: 6px;
  scrollbar-width: thin;
}
.chat-line {
  background: transparent; color: #fff;          /* blend sa iisang panel bg */
  font-size: 0.82rem; padding: 2px 6px; border-radius: 4px;
  word-wrap: break-word;
}
.chat-line.sys { color: #f1c40f; }
.chat-line span { font-weight: 700; }

/* pixel-art HUD button icons */
#btn-craft, #btn-bag, #btn-jump, #btn-down, #btn-chat {
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.pix { width: 56%; height: 56%; display: block; image-rendering: pixelated; }
.ico { width: 54%; height: 54%; display: block; }   /* smooth vector icons (jump/down/attack) */
#chat-input {
  width: 100%; padding: 8px 10px;
  background: rgba(0, 0, 0, 0.35); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 6px;
  font-size: 0.85rem; outline: none;
}
#chat-input:focus { border-color: #3498db; background: rgba(0, 0, 0, 0.55); }

/* ---------- crafting ---------- */
#btn-craft {
  position: absolute; bottom: 16px; right: 16px;
  width: 48px; height: 48px;
  background: linear-gradient(180deg, #243345, #131c26);
  border: 2px solid #060a0f; border-radius: 8px;
  box-shadow: inset 0 0 0 2px #36546f, 0 4px 12px rgba(0,0,0,0.4);
  font-size: 1.3rem; cursor: pointer; pointer-events: auto;
}
#btn-craft:hover { box-shadow: inset 0 0 0 2px #4a82ad, 0 4px 12px rgba(0,0,0,0.4); }

#craft-modal {
  position: fixed; inset: 0; z-index: 35;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}
.cm-panel {
  background: rgba(14, 22, 32, 0.97);
  border: 2px solid #2c3e50; border-radius: 12px;
  width: min(420px, 92vw);
  max-height: 80vh;
  display: flex; flex-direction: column;
  color: #ecf0f1;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}
.cm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 14px;
  border-bottom: 1px solid #2c3e50;
}
.cm-head h2 { font-size: 0.85rem; }
#craft-close {
  background: none; border: none; color: #95a5a6;
  font-size: 1.1rem; cursor: pointer;
}
#craft-list { overflow-y: auto; padding: 8px; }
.craft-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
}
.craft-row:hover { background: rgba(255, 255, 255, 0.05); }
.craft-row canvas { image-rendering: pixelated; flex-shrink: 0; }
.craft-info { flex: 1; }
.craft-info div:first-child { font-weight: 700; font-size: 0.92rem; }
.craft-need { font-size: 0.76rem; color: #95a5a6; }
.craft-row button {
  padding: 7px 16px; border: none; border-radius: 6px;
  background: #27ae60; color: #fff; font-weight: 700; cursor: pointer;
}
.craft-row button:disabled { background: #566573; cursor: not-allowed; opacity: 0.7; }

/* ===== GAMIFIED CRAFTING MODAL (forge theme: orange/rust on charcoal) =====
   Same RPG frame recipe bilang Tavern (gold) at Quest (blue) — magkakatugma. */
#craft-modal .cm-panel {
  font-family: 'Silkscreen', monospace;
  background: #241a14; color: #f0e2d0;
  border: 4px solid #e8902c; border-radius: 0;
  box-shadow: 0 0 0 4px #241a14, 0 0 0 8px #7a3a1e, 0 16px 0 8px rgba(0,0,0,0.5);
  image-rendering: pixelated;
}
#craft-modal .cm-head { border-bottom: 3px solid #7a3a1e; }
#craft-modal .cm-head h2 { font-family: 'Press Start 2P', monospace; font-size: 0.6rem; color: #ffb347; text-shadow: 2px 2px 0 #000; }
#craft-modal #craft-close { color: #ffb347; font-size: 1rem; }
/* category tabs */
#craft-tabs { display: flex; gap: 4px; padding: 10px 12px 2px; flex-wrap: wrap; border-bottom: 3px solid #7a3a1e; }
.craft-tab {
  font-family: 'Silkscreen', monospace; font-size: 0.72rem; font-weight: 700;
  padding: 7px 9px; border: 2px solid #5a2e16; border-radius: 0;
  background: #3a281a; color: #c99a72; cursor: pointer; image-rendering: pixelated;
}
.craft-tab:hover { background: #4a3422; color: #f0d2a8; }
.craft-tab.active { background: linear-gradient(180deg, #f0a23c, #d07a1e); color: #2a160a; border-color: #8a4a1e; }
#craft-modal #craft-list { padding: 10px 12px; }
#craft-modal .craft-row { border: 2px solid #3a2616; margin-bottom: 6px; background: #2e2014; padding: 9px 10px; }
#craft-modal .craft-row:hover { background: #3a2a1a; }
#craft-modal .craft-info div:first-child { font-family: 'Silkscreen', monospace; font-weight: 700; color: #f4ead8; }
#craft-modal .craft-need { font-family: 'Silkscreen', monospace; color: #c9a886; }
#craft-modal .craft-row button {
  font-family: 'Press Start 2P', monospace; font-size: 0.54rem;
  border-radius: 0; background: #e0852c; color: #2a160a;
  border: 2px solid #8a4a1e; padding: 8px 12px;
}
#craft-modal .craft-row button:disabled { background: #4a4036; color: #8a7c68; border-color: #2a2018; }

/* Tavern shop (barkeeper NPC) — reuses .cm-panel / .craft-row */
#tavern-modal {
  position: fixed; inset: 0; z-index: 35;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}
#tavern-close {
  background: none; border: none; color: #95a5a6;
  font-size: 1.1rem; cursor: pointer;
}
.tavern-gold {
  padding: 8px 16px; font-weight: 700; color: #f4d35e;
  border-bottom: 1px solid #2c3e50;
}
#tavern-list { overflow-y: auto; padding: 8px; }
#tavern-list .craft-row button { background: #c0883a; }
#tavern-list .craft-row button:disabled { background: #566573; }

/* GAMIFIED tavern shop modal (pixel font + RPG frame) */
#tavern-modal .cm-panel {
  font-family: 'Silkscreen', monospace;
  background: #1b1330; color: #f4ecd8;
  border: 4px solid #f4d35e; border-radius: 0;
  box-shadow: 0 0 0 4px #1b1330, 0 0 0 8px #6b4a8a, 0 16px 0 8px rgba(0,0,0,0.5);
  image-rendering: pixelated;
}
#tavern-modal .cm-head { border-bottom: 3px solid #6b4a8a; }
#tavern-modal .cm-head h2 {
  font-family: 'Press Start 2P', monospace; font-size: 0.6rem; color: #f4d35e;
  text-shadow: 2px 2px 0 #000;
}
#tavern-modal #tavern-close { color: #f4d35e; font-size: 1rem; }
#tavern-gold {
  font-family: 'Press Start 2P', monospace; font-size: 0.62rem; color: #ffe27a;
  border-bottom: 3px solid #6b4a8a; padding: 12px 16px;
}
#tavern-list .craft-row { border: 2px solid #2a1e45; margin-bottom: 6px; background: #221842; }
#tavern-list .craft-row:hover { background: #2c2152; }
#tavern-list .craft-info div:first-child { font-family: 'Silkscreen', monospace; font-weight: 700; color: #f4ecd8; }
#tavern-list .craft-need { font-family: 'Silkscreen', monospace; color: #b9a7d0; }
#tavern-list .craft-row button {
  font-family: 'Press Start 2P', monospace; font-size: 0.56rem;
  border-radius: 0; background: #e0a93c; color: #1b1330;
  border: 2px solid #8a5a1e; padding: 8px 12px;
}
#tavern-list .craft-row button:disabled { background: #4a4060; color: #8a82a0; border-color: #2a2440; }

/* ===== GUILD QUEST PANEL (gamified, parehong frame ng tavern) ===== */
#quest-modal {
  position: fixed; inset: 0; z-index: 35;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}
#quest-modal .cm-panel {
  font-family: 'Silkscreen', monospace;
  background: #14202e; color: #e9f0f5;
  border: 4px solid #6cc0f0; border-radius: 0;
  box-shadow: 0 0 0 4px #14202e, 0 0 0 8px #2c5a7a, 0 16px 0 8px rgba(0,0,0,0.5);
  width: min(460px, 94vw); max-height: 80vh; display: flex; flex-direction: column;
}
#quest-modal .cm-head { border-bottom: 3px solid #2c5a7a; }
#quest-modal .cm-head h2 { font-family: 'Press Start 2P', monospace; font-size: 0.6rem; color: #8fd0f5; text-shadow: 2px 2px 0 #000; }
#quest-modal #quest-close { color: #8fd0f5; font-size: 1rem; background: none; border: none; cursor: pointer; }
#quest-gold { font-family: 'Press Start 2P', monospace; font-size: 0.6rem; color: #ffe27a; padding: 12px 16px; border-bottom: 3px solid #2c5a7a; }
#quest-list { overflow-y: auto; padding: 8px; }
.quest-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-bottom: 6px; border: 2px solid #20384c; background: #18283a; }
.quest-info { flex: 1; min-width: 0; }
.quest-name { font-weight: 700; font-size: 0.82rem; color: #e9f0f5; }
.quest-desc { font-size: 0.72rem; color: #9ab3c6; margin-top: 3px; }
.quest-row button {
  font-family: 'Press Start 2P', monospace; font-size: 0.54rem;
  padding: 8px 10px; border: 2px solid #1c3346; border-radius: 0; cursor: pointer;
  background: #3a86c8; color: #fff; flex-shrink: 0; min-width: 64px;
}
.quest-row button.q-claim { background: #2fae5a; border-color: #1c6a38; }
.quest-row button.q-prog { background: #46506a; color: #aeb8cc; cursor: default; }
.quest-row button.q-done { background: #2a3444; color: #6a7488; cursor: default; }
.quest-actions { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; align-items: stretch; }
.quest-row button.q-drop { background: #5a2d2d; border-color: #3a1c1c; color: #f0c0c0; min-width: 64px; padding: 5px 10px; font-size: 0.5rem; }
.quest-slots { font-family: 'Press Start 2P', monospace; font-size: 0.56rem; color: #ffd27a; padding: 4px 6px 10px; opacity: 0.92; }

/* ===== THE EXCHANGE — gamified marketplace (green/gold "ticker" theme) ===== */
#exchange-modal { position: fixed; inset: 0; z-index: 35; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.55); }
#exchange-modal .cm-panel {
  font-family: 'Silkscreen', monospace;
  background: #102219; color: #e8f0e2;
  border: 4px solid #4ec27a; border-radius: 0;
  box-shadow: 0 0 0 4px #102219, 0 0 0 8px #1f6b42, 0 16px 0 8px rgba(0,0,0,0.5);
  width: min(480px, 95vw); max-height: 82vh; display: flex; flex-direction: column;
  image-rendering: pixelated;
}
#exchange-modal .cm-head { border-bottom: 3px solid #1f6b42; }
#exchange-modal .cm-head h2 { font-family: 'Press Start 2P', monospace; font-size: 0.6rem; color: #ffe27a; text-shadow: 2px 2px 0 #000; }
#exchange-modal #exchange-close { color: #ffe27a; font-size: 1rem; background: none; border: none; cursor: pointer; }
/* gold ay nasa tabi na ng header (hindi na hiwalay na row) */
#exchange-modal .cm-head { gap: 10px; }
#exchange-modal .cm-head h2 { flex: 1; }
#exchange-gold { font-family: 'Press Start 2P', monospace; font-size: 0.62rem; color: #ffe27a; text-shadow: 1px 1px 0 #000; white-space: nowrap; }
#exchange-tabs { display: flex; gap: 4px; padding: 10px 12px 2px; flex-wrap: wrap; border-bottom: 3px solid #1f6b42; }
#exchange-tabs .craft-tab { font-family: 'Silkscreen', monospace; font-size: 0.72rem; font-weight: 700; padding: 7px 9px; border: 2px solid #1c5236; border-radius: 0; background: #16331f; color: #9ccba8; cursor: pointer; }
#exchange-tabs .craft-tab:hover { background: #1d4429; color: #d6f0d8; }
#exchange-tabs .craft-tab.active { background: linear-gradient(180deg, #58c87c, #2f9a54); color: #08210f; border-color: #1c6a38; }
#exchange-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px 12px; }
.ex-empty { padding: 22px 8px; text-align: center; color: #8fb89a; font-size: 0.8rem; }
.ex-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 6px; border: 2px solid #1c4630; background: #16301f; }
.ex-row canvas.ex-ic { image-rendering: pixelated; flex-shrink: 0; }
.ex-info { flex: 1; min-width: 0; }
.ex-l1 { font-weight: 700; font-size: 0.84rem; color: #eaf4e6; }
.ex-l2 { font-size: 0.7rem; color: #9ccba8; margin-top: 2px; }
.ex-qty { width: 46px; padding: 5px; border: 2px solid #1c5236; background: #0c1b12; color: #eaf4e6; font-family: 'Silkscreen', monospace; text-align: center; }
.ex-kind { font-family: 'Press Start 2P', monospace; font-size: 0.42rem; padding: 4px 5px; border: 2px solid #2a2a2a; }
.ex-kind.k-sell { background: #5a3a18; color: #ffce8a; border-color: #8a5a1e; }
.ex-kind.k-buy { background: #1c4a5a; color: #9fe0ff; border-color: #2a6a8a; }
.ex-btn { font-family: 'Press Start 2P', monospace; font-size: 0.52rem; padding: 8px 10px; border: 2px solid #1c3a26; border-radius: 0; cursor: pointer; color: #fff; flex-shrink: 0; }
.ex-btn.ex-buy { background: #2fae5a; border-color: #1c6a38; }
.ex-btn.ex-sell { background: #c0883a; border-color: #8a5a1e; color: #1b1330; }
.ex-btn.ex-cancel { background: #b04a4a; border-color: #7a2a2a; }
.ex-btn.ex-post-btn { background: linear-gradient(180deg, #58c87c, #2f9a54); border-color: #1c6a38; color: #08210f; width: 100%; padding: 12px; margin-top: 10px; font-size: 0.6rem; }
/* post form */
.ex-post { display: flex; flex-direction: column; }
.ex-post-kind { display: flex; gap: 6px; margin-bottom: 10px; }
.ex-kbtn { flex: 1; font-family: 'Silkscreen', monospace; font-weight: 700; font-size: 0.78rem; padding: 9px; border: 2px solid #1c5236; background: #16331f; color: #9ccba8; cursor: pointer; }
.ex-kbtn.active { background: linear-gradient(180deg, #58c87c, #2f9a54); color: #08210f; border-color: #1c6a38; }
.ex-lab { font-family: 'Silkscreen', monospace; font-size: 0.72rem; color: #9ccba8; margin: 8px 0 4px; }
.ex-sel, .ex-in { width: 100%; padding: 9px; border: 2px solid #1c5236; background: #0c1b12; color: #eaf4e6; font-family: 'Silkscreen', monospace; font-size: 0.82rem; }
.ex-hint { font-family: 'Silkscreen', monospace; font-size: 0.72rem; color: #ffe27a; background: #0c1b12; border: 2px dashed #1f6b42; padding: 9px; margin-top: 12px; line-height: 1.5; }
/* item PICKER: search box + icon grid */
.ex-search { width: 100%; padding: 9px; border: 2px solid #1c5236; background: #0c1b12; color: #eaf4e6; font-family: 'Silkscreen', monospace; font-size: 0.82rem; margin-bottom: 6px; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; max-height: 188px; overflow-y: auto; padding: 6px; border: 2px solid #1c4630; background: #0c1b12; }
.ex-cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 3px 5px; border: 2px solid #1c4630; background: #16301f; color: #cfe8d2; cursor: pointer; }
.ex-cell:hover { background: #1d4429; }
.ex-cell.sel { border-color: #58c87c; background: #244e30; box-shadow: inset 0 0 0 2px #58c87c; }
.ex-cell-ic { image-rendering: pixelated; }
.ex-cell-nm { font-family: 'Silkscreen', monospace; font-size: 0.58rem; text-align: center; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-cell-cnt { position: absolute; top: 2px; right: 3px; font-family: 'Silkscreen', monospace; font-size: 0.54rem; color: #ffe27a; text-shadow: 1px 1px 0 #000; }
/* MOBILE: mas malaking modal + scroll area para madaling maghanap sa maraming items */
body.mobile #exchange-modal .cm-panel { width: 96vw; max-height: 94vh; }
body.mobile #exchange-body { padding: 8px 10px; }
/* THE BANK modal (banker NPC) — mirror ng Exchange modal styling */
#bank-modal { position: fixed; inset: 0; z-index: 35; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.55); }
#bank-modal .cm-panel {
  font-family: 'Silkscreen', monospace;
  background: #102219; color: #e8f0e2;
  border: 4px solid #4ec27a; border-radius: 0;
  box-shadow: 0 0 0 4px #102219, 0 0 0 8px #1f6b42, 0 16px 0 8px rgba(0,0,0,0.5);
  width: min(480px, 95vw); max-height: 82vh; display: flex; flex-direction: column;
  image-rendering: pixelated;
}
#bank-modal .cm-head { border-bottom: 3px solid #1f6b42; gap: 10px; }
#bank-modal .cm-head h2 { font-family: 'Press Start 2P', monospace; font-size: 0.6rem; color: #ffe27a; text-shadow: 2px 2px 0 #000; flex: 1; }
#bank-modal #bank-close { color: #ffe27a; font-size: 1rem; background: none; border: none; cursor: pointer; }
#bank-gold { font-family: 'Press Start 2P', monospace; font-size: 0.62rem; color: #ffe27a; text-shadow: 1px 1px 0 #000; white-space: nowrap; }
#bank-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px 12px; }
body.mobile #bank-modal .cm-panel { width: 96vw; max-height: 94vh; }
body.mobile #bank-body { padding: 8px 10px; }
body.mobile .ex-grid { max-height: 46vh; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); }
/* category filter chips (Buy/Sell) */
.ex-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.ex-cat { font-family: 'Silkscreen', monospace; font-size: 0.64rem; font-weight: 700; padding: 5px 7px; border: 2px solid #1c5236; border-radius: 0; background: #14291c; color: #8fb89a; cursor: pointer; }
.ex-cat:hover { background: #1d4429; color: #d6f0d8; }
.ex-cat.active { background: linear-gradient(180deg, #58c87c, #2f9a54); color: #08210f; border-color: #1c6a38; }

/* ===== MARKET BULLETIN BOARD (proximity price ticker HUD) ===== */
#market-board {
  position: fixed; left: 50%; top: 14%; transform: translateX(-50%); z-index: 24;
  width: min(520px, 94vw); max-height: 64vh; overflow-y: auto;
  font-family: 'Silkscreen', monospace;
  background: #2a1c10; color: #f0e2c8;
  border: 4px solid #6e4a22;
  box-shadow: 0 0 0 4px #2a1c10, 0 0 0 7px #4a3018, 0 12px 28px rgba(0,0,0,0.5);
  padding-bottom: 8px; pointer-events: none; image-rendering: pixelated;
}
.mb-head { font-family: 'Press Start 2P', monospace; font-size: 0.72rem; color: #ffd98a; text-shadow: 2px 2px 0 #000; padding: 12px; border-bottom: 3px solid #4a3018; text-align: center; }
.mb-cols { display: grid; grid-template-columns: 28px 1fr 92px 92px; gap: 10px; padding: 8px 14px; font-size: 0.7rem; color: #c9a86a; border-bottom: 2px solid #4a3018; }
.mb-cols .mb-buy, .mb-cols .mb-sell { text-align: right; }
#market-board-list { padding: 4px 0; }
.mb-row { display: grid; grid-template-columns: 28px 1fr 92px 92px; gap: 10px; align-items: center; padding: 6px 14px; font-size: 0.86rem; }
/* GOLD COIN icon (CSS) — tunay na coin look: gintong disc + raised rim ring + "$" emboss */
.gc { position: relative; display: inline-block; width: 1.15em; height: 1.15em; border-radius: 50%;
  box-sizing: border-box; vertical-align: -0.24em;
  background: radial-gradient(circle at 37% 30%, #ffe888 0%, #f1ba22 58%, #bb850f 100%);
  border: 0.1em solid #6e4a05;
  box-shadow: inset 0 0 0 0.06em #ffe89a; }
.gc::before { content: ""; position: absolute; inset: 0.17em; border-radius: 50%;
  border: 0.055em solid rgba(110,74,5,0.55); }
.gc::after { content: "$"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font: 700 0.66em/1 Georgia, 'Times New Roman', serif; color: #7a5408; }
.mb-row:nth-child(even) { background: rgba(255,255,255,0.04); }
.mb-ic { image-rendering: pixelated; width: 24px; height: 24px; }
.mb-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f0e2c8; }
.mb-buy { color: #7fd99a; text-align: right; }   /* cheapest sell offer = where you BUY */
.mb-sell { color: #ffce6a; text-align: right; }  /* highest buy offer = where you SELL */
.mb-empty { padding: 18px 12px; text-align: center; color: #b59a6a; font-size: 0.78rem; }

/* ===== APARTMENT FLOOR PICKER (concierge) + exit hint ===== */
#floor-picker { position: fixed; inset: 0; z-index: 35; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.55); }
#floor-picker .cm-panel {
  font-family: 'Silkscreen', monospace;
  background: #1a1426; color: #f0e6d8;
  border: 4px solid #c8a83a; border-radius: 0;
  box-shadow: 0 0 0 4px #1a1426, 0 0 0 8px #6a4a8a, 0 16px 0 8px rgba(0,0,0,0.5);
  width: min(360px, 90vw); max-height: 80vh; display: flex; flex-direction: column;
}
#floor-picker .cm-head { border-bottom: 3px solid #6a4a8a; }
#floor-picker .cm-head h2 { font-family: 'Press Start 2P', monospace; font-size: 0.62rem; color: #ffd98a; text-shadow: 2px 2px 0 #000; }
#floor-picker #floor-close { color: #ffd98a; font-size: 1rem; background: none; border: none; cursor: pointer; }
#floor-list { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.fp-btn {
  font-family: 'Press Start 2P', monospace; font-size: 0.66rem;
  padding: 14px 16px; border: 2px solid #8a6a2a; border-radius: 0;
  background: linear-gradient(180deg, #e0c25a, #c8a83a); color: #2a1a08; cursor: pointer; text-align: left;
}
.fp-btn:hover { filter: brightness(1.08); }
#apt-exit-hint {
  position: fixed; left: 50%; bottom: 24%; transform: translateX(-50%); z-index: 24;
  font-family: 'Press Start 2P', monospace; font-size: 0.66rem; color: #ffd98a;
  background: rgba(26,20,38,0.92); border: 3px solid #c8a83a;
  padding: 10px 16px; text-shadow: 2px 2px 0 #000; pointer-events: none;
}

/* Quest HUD tracker (left side, ilalim ng hint) */
#quest-tracker {
  position: absolute; left: 12px; top: 150px; z-index: 9;
  pointer-events: none; max-width: 240px;
  background: rgba(10, 18, 26, 0.6); border-left: 3px solid #6cc0f0;
  padding: 6px 10px; border-radius: 0 6px 6px 0;
  font-family: 'Silkscreen', monospace; color: #e9f0f5;
}
.qt-title { font-family: 'Press Start 2P', monospace; font-size: 0.52rem; color: #8fd0f5; margin-bottom: 4px; }
.qt-row { font-size: 0.74rem; color: #cfe0ec; line-height: 1.5; }
.qt-row b { color: #ffe27a; }
.qt-row.qt-done { color: #6cf09a; }
/* mobile: itaas ng konti ang quest details (mula sa default na top:150px) */
body.mobile #quest-tracker { top: 92px; left: 6px; max-width: 200px; padding: 5px 9px; } /* sa ilalim ng profile card (bottom ~82px) — di na nag-ooverlap */
body.mobile .qt-row { font-size: 0.66rem; line-height: 1.45; }

/* RPG-style NPC dialog prompt (bottom-center) — gamified + pixel font */
#npc-dialog {
  position: fixed; left: 50%; bottom: 128px; transform: translateX(-50%);
  z-index: 28; pointer-events: none;
  width: min(620px, 94vw);
}
.npc-box {
  pointer-events: auto; cursor: pointer;
  display: flex; gap: 14px; align-items: stretch;
  background: #1b1330; color: #f4ecd8;
  padding: 14px;
  /* blocky RPG frame (gold + purple) gamit ang layered box-shadow */
  border: 4px solid #f4d35e;
  box-shadow:
    0 0 0 4px #1b1330,
    0 0 0 8px #6b4a8a,
    0 12px 0 8px rgba(0,0,0,0.45);
  image-rendering: pixelated;
  animation: npcPop 0.14s steps(2) both;
}
@keyframes npcPop { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.npc-portrait {
  flex: 0 0 auto; width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; line-height: 1;
  background: #2a1e45; border: 3px solid #6b4a8a;
}
.npc-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.npc-name {
  font-family: 'Press Start 2P', 'Silkscreen', monospace;
  font-size: 0.72rem; color: #f4d35e; margin-bottom: 9px; letter-spacing: 1px;
  text-shadow: 2px 2px 0 #000;
}
.npc-text {
  font-family: 'Silkscreen', monospace;
  font-size: 0.95rem; line-height: 1.5; color: #efe6d2;
}
.npc-prompt {
  margin-top: 10px; text-align: right;
  font-family: 'Silkscreen', monospace; font-size: 0.74rem; color: #b9a7d0;
  animation: npcBlink 1.05s steps(1) infinite;
}
@keyframes npcBlink { 50% { opacity: 0.3; } }
.npc-key {
  display: inline-block; min-width: 14px; text-align: center;
  background: #f4d35e; color: #1b1330;
  padding: 2px 6px; margin: 0 2px;
  font-family: 'Press Start 2P', monospace; font-size: 0.6rem;
}

/* ---------- bag / inventory (Minecraft-style) ---------- */
#btn-bag {
  position: absolute; bottom: 74px; right: 16px;
  width: 48px; height: 48px;
  background: linear-gradient(180deg, #243345, #131c26);
  border: 2px solid #060a0f; border-radius: 8px;
  box-shadow: inset 0 0 0 2px #36546f, 0 4px 12px rgba(0,0,0,0.4);
  font-size: 1.3rem; cursor: pointer; pointer-events: auto;
}
#btn-bag:hover { box-shadow: inset 0 0 0 2px #4a82ad, 0 4px 12px rgba(0,0,0,0.4); }

/* camera POV toggle (1st / 3rd person) — isalansan sa ibabaw ng guild button */
#btn-pov {
  position: absolute; bottom: 190px; right: 16px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(180deg, #243345, #131c26);
  border: 2px solid #060a0f; border-radius: 8px;
  box-shadow: inset 0 0 0 2px #36546f, 0 4px 12px rgba(0,0,0,0.4);
  cursor: pointer; pointer-events: auto;
}
#btn-pov:hover { box-shadow: inset 0 0 0 2px #4a82ad, 0 4px 12px rgba(0,0,0,0.4); }

#bag-modal {
  position: fixed; inset: 0; z-index: 35;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}

/* MC gray panel na may bevel */
.mc-panel {
  background: #c6c6c6 !important;
  border: 3px solid !important;
  border-color: #ffffff #555555 #555555 #ffffff !important;
  border-radius: 4px !important;
  color: #3f3f3f !important;
  width: min(660px, 96vw);
  max-height: 92vh;
  display: flex; flex-direction: column;
}
.mc-panel .cm-head { border-bottom: 2px solid #9a9a9a; padding: 6px 12px; }
.mc-panel .cm-head h2 { color: #3f3f3f; font-size: 0.8rem; }
.mc-panel #bag-close { color: #5a5a5a; }

.bag-body { display: flex; gap: 10px; padding: 10px; overflow-y: auto; min-height: 0; }
#bag-left { flex: 1.4; min-width: 0; }
#bag-right { flex: 1; }
.bag-right-title { text-align: center; font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; }

/* category tabs: floating vertical sidebar sa LABAS ng panel (Bedrock-style) */
#bag-wrap {
  display: flex; gap: 6px; align-items: flex-start;
  max-height: 92vh;
}
#bag-tabs {
  display: flex; flex-direction: column; gap: 6px;
  flex: 0 0 auto;
  margin-top: 36px;
}
.bag-tab {
  width: 48px; height: 48px;
  background: #c6c6c6;
  border: 3px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.8;
  display: flex; align-items: center; justify-content: center;
  padding: 4px;
}
.bag-tab canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.bag-tab.active {
  background: #e8e8e8;
  opacity: 1;
  transform: translateX(4px);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.6);
}
.bag-item.empty canvas { opacity: 0.3; }

#bag-assign-hint {
  background: #ffe9a8; border: 1px solid #c8a435; color: #5a4a10;
  padding: 4px 8px; margin-bottom: 6px;
  font-size: 0.75rem; border-radius: 4px;
}
.bag-empty-msg {
  grid-column: 1 / -1;
  color: #6b6b6b; font-size: 0.82rem;
  padding: 16px 8px; text-align: center;
}

#bag-items {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 3px; align-content: start;
}
.bag-item {
  position: relative;
  background: #8b8b8b;
  border: 2px solid;
  border-color: #373737 #ffffff #ffffff #373737;
  padding: 3px; text-align: center;
  cursor: pointer;
}
.bag-item.no-assign { cursor: default; opacity: 0.8; }
.bag-item.sel { outline: 3px solid #fff; box-shadow: 0 0 6px rgba(255,255,255,0.9); }
.bag-item canvas { width: 100%; image-rendering: pixelated; display: block; }
.bag-item span {
  position: absolute; right: 2px; bottom: 0;
  color: #fff; font-size: 0.68rem; font-weight: 700;
  text-shadow: 1px 1px 0 #000;
}

/* Detailed item tooltip — Minecraft-style dark panel w/ purple bevel */
#item-tip {
  position: fixed; left: 0; top: 0; z-index: 60;
  pointer-events: none;
  max-width: 230px;
  background: rgba(16, 8, 32, 0.96);
  border: 2px solid;
  border-color: #4a1d8a #2a0f5a #2a0f5a #4a1d8a;
  border-radius: 3px;
  padding: 7px 9px;
  color: #d8d8e6;
  font-size: 0.72rem;
  line-height: 1.35;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}
#item-tip .it-name {
  font-weight: 700;
  font-size: 0.82rem;
  text-shadow: 1px 1px 0 #000;
  margin-bottom: 1px;
}
#item-tip .it-type {
  color: #9a86c8;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}
#item-tip .it-stats { margin-bottom: 5px; }
#item-tip .it-stat {
  display: flex; justify-content: space-between; gap: 12px;
}
#item-tip .it-stat span { color: #a8a8bc; }
#item-tip .it-stat b { color: #f0f0f8; font-weight: 700; }
#item-tip .it-flavor {
  color: #b8a8d8; font-style: italic;
}
#item-tip .it-hint {
  color: #8a9ad0; font-size: 0.66rem; margin-top: 4px;
}

#bag-char-wrap {
  display: flex; gap: 6px;
  background: #1a1a1a;
  border: 2px solid;
  border-color: #373737 #ffffff #ffffff #373737;
  padding: 6px;
  justify-content: center;
}
#bag-armor-slots { display: flex; flex-direction: column; gap: 4px; }
.armor-slot {
  width: 42px; height: 42px;
  background: #8b8b8b;
  border: 2px solid;
  border-color: #373737 #ffffff #ffffff #373737;
  display: flex; align-items: center; justify-content: center;
}
.armor-slot canvas { image-rendering: pixelated; }
.armor-slot.none canvas { opacity: 0.35; }
.armor-slot.clickable { cursor: pointer; }
.armor-slot.clickable:hover { border-color: #5fae3a; box-shadow: 0 0 0 2px #5fae3a; }
.armor-slot.off canvas { opacity: 0.32; } /* owned pero naka-remove (dimmed) */
.armor-slot.off { background: #6e6e6e; }
/* equip/remove badge sa equipment tab */
.armor-cell { position: relative; cursor: pointer; }
.armor-cell .eq-badge {
  position: absolute; top: 1px; right: 1px;
  width: 15px; height: 15px; line-height: 15px; text-align: center;
  font-size: 11px; font-weight: 800; border-radius: 3px;
}
.armor-cell .eq-badge.on { background: #2e8b34; color: #fff; }
.armor-cell .eq-badge.off { background: #444; color: #cfe0ec; }
.armor-cell.equipped { outline: 2px solid #2e8b34; }
/* per-slot equipment cells (each crafted instance = its own slot) */
.equip-cell { position: relative; cursor: pointer; }
.equip-cell .eq-badge {
  position: absolute; top: 1px; right: 1px;
  width: 15px; height: 15px; line-height: 15px; text-align: center;
  font-size: 11px; font-weight: 800; border-radius: 3px;
}
.equip-cell .eq-badge.on { background: #2e8b34; color: #fff; }
.equip-cell .eq-badge.off { background: #444; color: #cfe0ec; }
.equip-cell.equipped { outline: 2px solid #c8932e; }     /* active instance */
.equip-cell.worn { outline: 2px solid #2e8b34; }          /* armor worn on body */
.equip-cell .equip-sell, .equip-cell .equip-list {
  position: absolute; bottom: 1px;
  width: 17px; height: 17px; padding: 0; line-height: 15px;
  font-size: 10px; border: 0; border-radius: 3px; cursor: pointer; color: #fff;
}
.equip-cell .equip-sell { right: 1px; background: #b8862b; }
.equip-cell .equip-sell:hover { background: #d8a23a; }
.equip-cell .equip-list { left: 1px; background: #2e6db8; }
.equip-cell .equip-list:hover { background: #3a86db; }
/* durability bar sa ilalim ng equipment cell */
.dura-bar { position: absolute; left: 3px; right: 3px; bottom: 2px; height: 3px; background: rgba(0,0,0,0.55); border-radius: 2px; overflow: hidden; }
.dura-fill { height: 100%; border-radius: 2px; }
.equip-cell.broken { outline: 2px solid #b23a2a; }
.equip-cell.broken canvas { opacity: 0.5; }
/* section header sa Exchange Gear tab */
.ex-sec-hdr { font-size: 12px; font-weight: 700; opacity: 0.8; margin: 8px 2px 4px; letter-spacing: 0.5px; }
#sleep-overlay {
  position: fixed; inset: 0; z-index: 25; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(8,10,20,0.85), #04050a);
  opacity: 0; transition: opacity 0.6s;
}
#bag-char { image-rendering: pixelated; }
#bag-reduction {
  text-align: center; font-weight: 700; font-size: 0.82rem;
  color: #2a6e2a; padding: 6px 0 0;
}

#bag-hotbar {
  display: flex; gap: 4px; justify-content: center;
  padding: 8px; border-top: 2px solid #9a9a9a;
  overflow-x: auto;
}
.bag-hot-slot {
  position: relative; flex-shrink: 0;
  width: 44px; height: 44px;
  background: #8b8b8b;
  border: 2px solid;
  border-color: #373737 #ffffff #ffffff #373737;
  padding: 3px; cursor: pointer;
}
.bag-hot-slot.sel { outline: 3px solid #fff; }
.bag-hot-slot canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.bag-hot-slot .count {
  position: absolute; right: 2px; bottom: 0;
  color: #fff; font-size: 0.65rem; font-weight: 700;
  text-shadow: 1px 1px 0 #000;
}

/* ---------- mobile (Minecraft Bedrock style) ---------- */
#mobile-controls { position: fixed; inset: 0; z-index: 20; pointer-events: none; }

body.mobile #crosshair { display: block; opacity: 0.5; }  /* may attack/mine button kaya kailangan ng target sa gitna */
body.mobile #hint { display: none; }

/* Floating analog joystick (ML-style): invisible hanggang hawakan ang kaliwang bahagi */
#joy-zone {
  position: absolute; left: 0; top: 28%; bottom: 60px;
  width: 42%;
  pointer-events: auto;
  touch-action: none;
}
#joy-base {
  position: absolute;
  width: 124px; height: 124px;
  margin: -62px 0 0 -62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 2px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}
#joy-stick {
  position: absolute; left: 50%; top: 50%;
  width: 54px; height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ML-style round action buttons (kanang bahagi, naka-arc cluster) */
#btn-attack, #btn-jump, #btn-down {
  position: absolute;
  background: rgba(60, 60, 60, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;            /* BILOG gaya ng Mobile Legends */
  color: rgba(255, 255, 255, 0.9);
  align-items: center; justify-content: center;
  pointer-events: auto;
  touch-action: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
#btn-attack, #btn-jump { display: flex; }
#btn-down { display: none; }   /* nakatago by default; JS = 'flex' habang lumilipad */
#btn-attack:active, #btn-jump:active, #btn-down:active {
  background: rgba(255, 255, 255, 0.55); color: #1b2838;
}

/* primary attack/mine (pinakamalaki, sa kanang-baba na sulok) */
#btn-attack {
  right: 28px; bottom: 38px;
  width: 84px; height: 84px;
  background: rgba(150, 40, 40, 0.5);
  border-color: rgba(255, 150, 150, 0.6);
}
#btn-attack:active { background: rgba(220, 70, 70, 0.65); color: #fff; }
#btn-attack.mining { background: rgba(255, 200, 60, 0.6); border-color: rgba(255, 230, 140, 0.9); }

/* jump: mas maliit, naka-arc sa paligid ng attack */
#btn-jump  { right: 124px; bottom: 56px; width: 64px; height: 64px; }

#btn-chat {
  position: absolute; top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 36px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  font-size: 1rem;
  pointer-events: auto;
}

/* Portrait warning (kapag hindi kayang i-lock ang landscape, e.g. iOS Safari) */
#rotate-overlay {
  position: fixed; inset: 0; z-index: 40;
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  overflow: hidden; color: #ecf0f1; text-align: center;
  padding: 28px 26px; box-sizing: border-box;
  background: linear-gradient(#a9e1fb 0%, #8fd3f0 46%, #6cc63f 46%, #5fae3a 100%);
  font-family: 'Silkscreen', 'Courier New', monospace;
}
/* drifting pixel clouds */
#rotate-overlay .ro-clouds span {
  position: absolute; height: 14px; background: #ffffff; opacity: 0.65; border-radius: 8px;
  animation: ro-drift 9s linear infinite;
}
#rotate-overlay .ro-clouds span:nth-child(1) { width: 70px; top: 14%; left: -80px; animation-duration: 11s; }
#rotate-overlay .ro-clouds span:nth-child(2) { width: 48px; top: 26%; left: -80px; animation-delay: 3s; }
#rotate-overlay .ro-clouds span:nth-child(3) { width: 60px; top: 8%;  left: -80px; animation-delay: 6s; animation-duration: 13s; }
@keyframes ro-drift { from { transform: translateX(0); } to { transform: translateX(120vw); } }

/* the rotating-phone + slime scene */
#rotate-overlay .ro-scene {
  position: relative; width: 220px; height: 200px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
}
#rotate-overlay .ro-phone {
  position: relative; width: 78px; height: 138px; border-radius: 14px;
  background: #16212e; border: 5px solid #0c1118;
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.08), inset 0 -4px 0 rgba(0,0,0,0.4), 0 8px 0 rgba(0,0,0,0.25);
  transform-origin: 50% 50%;
  animation: ro-rotate 3.6s cubic-bezier(0.5,0,0.2,1) infinite;
}
#rotate-overlay .ro-phone-screen {
  position: absolute; inset: 8px; border-radius: 6px;
  background: linear-gradient(135deg, #2a6df0 0%, #6cc63f 100%);
  box-shadow: inset 0 0 0 2px #0c1118;
}
#rotate-overlay .ro-phone-cam {
  position: absolute; top: 4px; left: 50%; width: 8px; height: 4px; margin-left: -4px;
  background: #0c1118; border-radius: 3px;
}
@keyframes ro-rotate {
  0%, 22%   { transform: rotate(0deg); }
  45%, 78%  { transform: rotate(-90deg); }
  100%      { transform: rotate(0deg); }
}
/* circular rotate arrow, pulsing in the corner */
#rotate-overlay .ro-arrow {
  position: absolute; right: 26px; bottom: 30px; width: 46px; height: 46px;
  animation: ro-spin 3.6s ease-in-out infinite;
}
#rotate-overlay .ro-arrow svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 0 #0c1118); }
@keyframes ro-spin { 0%,22% { transform: rotate(0); } 45%,100% { transform: rotate(-90deg); } }
/* bouncing slime mascot */
#rotate-overlay .ro-slime {
  position: absolute; left: 18px; bottom: 6px; width: 80px; height: 80px;
  transform-origin: 50% 100%;
  animation: ro-bounce 1.1s ease-in-out infinite;
}
#rotate-overlay .ro-slime svg { width: 100%; height: 100%; shape-rendering: geometricPrecision; filter: drop-shadow(0 4px 0 rgba(0,0,0,0.2)); }
@keyframes ro-bounce {
  0%,100% { transform: translateY(0) scale(1, 0.94); }
  35%     { transform: translateY(-26px) scale(0.96, 1.05); }
  70%     { transform: translateY(0) scale(1.04, 0.92); }
}
#rotate-overlay .ro-title {
  font-family: 'Press Start 2P', monospace; font-size: 1rem; line-height: 1.5;
  color: #fff; margin: 0; text-shadow: 0 3px 0 #0c1118;
  max-width: 16ch;
}
#rotate-overlay .ro-sub {
  font-family: 'Silkscreen', monospace; font-size: 0.86rem; line-height: 1.5;
  color: #0e2a16; margin: 6px 0 0; max-width: 30ch;
}
#rotate-overlay .ro-sub b { color: #0c1118; }
@media (prefers-reduced-motion: reduce) {
  #rotate-overlay .ro-phone { animation: none; transform: rotate(-90deg); }
  #rotate-overlay .ro-arrow, #rotate-overlay .ro-slime, #rotate-overlay .ro-clouds span { animation: none; }
}
@media (orientation: portrait) and (pointer: coarse) {
  body.playing #rotate-overlay { display: flex; }
}

/* ---------- single-session "kicked" overlay ---------- */
#kicked-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 12, 18, 0.92); color: #ecf0f1;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
#kicked-overlay[hidden] { display: none; }
#kicked-overlay .kicked-box {
  max-width: 360px; padding: 28px 26px; text-align: center;
  background: #18222e; border: 1px solid #2c3b4d; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
#kicked-overlay .kicked-icon { font-size: 2.6rem; margin-bottom: 6px; }
#kicked-overlay h2 { margin: 6px 0 10px; font-size: 1.25rem; }
#kicked-overlay p { margin: 0 0 18px; line-height: 1.5; color: #b6c2cf; }
#kicked-overlay #kicked-reload {
  padding: 11px 22px; font-size: 1rem; font-weight: 600; cursor: pointer;
  color: #fff; background: #2d77d6; border: 0; border-radius: 9px;
}
#kicked-overlay #kicked-reload:hover { background: #3a86e8; }

/* ---------- Connection status banner ---------- */
#net-status {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  z-index: 11000; pointer-events: none;
  display: flex; align-items: center; gap: 9px;
  margin-top: 8px; padding: 8px 16px;
  font-size: 0.92rem; font-weight: 700; color: #fff; white-space: nowrap;
  background: rgba(20, 14, 16, 0.92); border: 1px solid #7a2535; border-radius: 999px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: ns-drop 0.3s ease;
}
#net-status[hidden] { display: none; }
@keyframes ns-drop { from { transform: translate(-50%, -14px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
/* kulay-state (set sa JS via class) */
#net-status.lagging { border-color: #c79b2e; background: rgba(46, 36, 12, 0.92); }
#net-status.reconnecting { border-color: #c8861a; background: rgba(48, 30, 8, 0.92); }
#net-status.offline { border-color: #b23b3b; background: rgba(48, 12, 12, 0.94); }
#net-status .ns-spin {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28); border-top-color: #fff;
  animation: ns-spin 0.8s linear infinite;
}
#net-status.offline .ns-spin { animation: none; border: 0; width: auto; height: auto; }
#net-status.offline .ns-spin::before { content: '⚠'; font-size: 1rem; }
@keyframes ns-spin { to { transform: rotate(360deg); } }

/* ---------- Death overlay (gamified, see-through) ---------- */
/* Walang full-screen blackout — kita pa rin ang paligid at ang sariling bangkay.
   Buong overlay ay humaharang ng clicks (pointer-events: auto) para hindi mabuksan ang
   ibang panel habang patay; transparent lang ang background para kita ang mundo sa likod. */
#death-overlay {
  position: fixed; inset: 0; z-index: 10000; pointer-events: auto;
  display: flex; align-items: center; justify-content: center;
  animation: death-fade 0.7s ease;
}
#death-overlay[hidden] { display: none; }
@keyframes death-fade { from { opacity: 0; } to { opacity: 1; } }

/* pula-pulang vignette sa gilid (subtle) — pang-drama, hindi humaharang sa view */
#death-overlay .death-vignette {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 220px 60px rgba(90, 0, 8, 0.55);
  background: radial-gradient(ellipse at 50% 42%, rgba(0,0,0,0) 45%, rgba(40,0,4,0.45) 100%);
  animation: death-vig 2.6s ease-in-out infinite alternate;
}
@keyframes death-vig { from { opacity: 0.75; } to { opacity: 1; } }

#death-overlay .death-card {
  position: relative; pointer-events: auto; top: 9vh;   /* bahagyang pababa mula sa gitna */
  max-width: 380px; width: 90%; margin: 0; padding: 20px 24px 22px;
  text-align: center; color: #f3e9e9;
  background: linear-gradient(180deg, rgba(28,17,20,0.94) 0%, rgba(18,11,13,0.96) 100%);
  border: 1px solid #7a2535; border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,80,90,0.08),
              inset 0 0 46px rgba(150,20,30,0.16);
  animation: death-pop 0.45s cubic-bezier(.18,.9,.32,1.2) both;
}
@keyframes death-pop { from { transform: translateY(26px) scale(0.92); opacity: 0; } to { transform: none; opacity: 1; } }

#death-overlay .death-skull {
  font-size: 2.7rem; line-height: 1; color: #ff5a5a;
  filter: drop-shadow(0 0 16px rgba(255,60,60,0.7));
  animation: death-skull 1.8s ease-in-out infinite;
}
@keyframes death-skull { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-5px) rotate(3deg); } }

#death-overlay .death-title {
  margin: 4px 0 12px; font-size: 1.85rem; font-weight: 900; letter-spacing: 4px;
  color: #ff6b6b; text-shadow: 0 2px 0 #5a0d14, 0 0 22px rgba(255,70,70,0.55);
}
#death-overlay .death-sub {
  font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; color: #c79aa0;
}
#death-overlay .death-timer {
  margin: 2px 0 12px; font-family: 'Press Start 2P', monospace, sans-serif;
  font-size: 1.7rem; font-weight: 700; color: #ffd479;
  text-shadow: 2px 2px 0 #000, 0 0 18px rgba(255,200,90,0.4);
  font-variant-numeric: tabular-nums;
}
#death-overlay .death-timer.ready { color: #6dffa6; text-shadow: 2px 2px 0 #000, 0 0 18px rgba(90,255,150,0.55); }

/* progress bar — napupuno habang lumilipas ang 1 oras */
#death-overlay .death-bar {
  height: 8px; border-radius: 6px; margin: 0 4px 16px;
  background: rgba(255,255,255,0.09); overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}
#death-overlay .death-bar-fill {
  height: 100%; width: 0%; border-radius: 6px;
  background: linear-gradient(90deg, #c8861a, #ffd479);
  box-shadow: 0 0 10px rgba(255,200,90,0.6);
  transition: width 0.4s linear;
}

#death-overlay .death-btn {
  display: block; width: 100%; margin: 0 0 4px;
  padding: 13px 16px; font-size: 1rem; font-weight: 800; cursor: pointer;
  color: #fff; border: 0; border-radius: 11px;
  transition: transform 0.1s, box-shadow 0.15s, filter 0.15s;
}
#death-overlay .death-btn.pay {
  background: linear-gradient(135deg, #f0bb3e 0%, #c8861a 100%); color: #2a1c00;
  box-shadow: 0 5px 0 #946012, 0 8px 18px rgba(0,0,0,0.4);
}
#death-overlay .death-btn.pay:hover:not(:disabled) { filter: brightness(1.08); }
#death-overlay .death-btn.pay:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #946012; }
#death-overlay .death-btn.pay.cant { background: linear-gradient(135deg, #6a5a3a 0%, #4f4327 100%); color: #d9cba8; box-shadow: 0 5px 0 #2e2715; }
#death-overlay .death-btn.free {
  background: linear-gradient(135deg, #3fd07a 0%, #2e9e57 100%); color: #06250f;
  box-shadow: 0 5px 0 #1c6738, 0 8px 18px rgba(0,0,0,0.4);
  animation: death-freepulse 1.3s ease-in-out infinite;
}
#death-overlay .death-btn.free:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #1c6738; }
@keyframes death-freepulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.15); } }
#death-overlay .death-btn:disabled { cursor: not-allowed; }
#death-overlay .death-coin { filter: drop-shadow(0 0 4px rgba(255,220,120,0.8)); }
#death-overlay .death-hint { margin-top: 8px; font-size: 0.82rem; color: #c9b69a; }
#death-overlay .death-note { margin: 10px 0 0; font-size: 0.85rem; color: #9fb0a6; }

/* ---------- Solana wallet button + 'or' divider ---------- */
.auth-go.wallet {
  background: linear-gradient(135deg, #ab9ff2 0%, #7c5cff 100%);
  color: #fff; border: 0;
}
.auth-go.wallet:hover { filter: brightness(1.07); }
.auth-or {
  display: flex; align-items: center; gap: 8px;
  margin: 6px 0; color: #9aa7b4; font-size: 0.8rem;
}
.auth-or::before, .auth-or::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.18);
}

/* ---------- clickable player profile panel ---------- */
/* clickable profile: re-enable hit-testing (base #player-panel is pointer-events:none) */
#player-panel.clickable { cursor: pointer; pointer-events: auto; }
#player-panel.clickable * { pointer-events: none; } /* clicks always count as the panel */
#player-panel.clickable:hover { filter: brightness(1.08); }
#player-panel.clickable::after {
  content: '⚙'; position: absolute; top: 3px; right: 5px;
  font-size: 0.7rem; color: #9fb3c6; opacity: 0.7; pointer-events: none;
}

/* ---------- Account modal (gamified RPG / Solana theme) ---------- */
#account-modal {
  position: fixed; inset: 0; z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 8, 14, 0.78);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  font-family: 'Silkscreen', monospace;
}
#account-modal[hidden] { display: none; }
#account-modal .am-box {
  width: 380px; max-width: 92vw; max-height: 88vh; overflow-y: auto;
  background: #15131f; color: #ece8f6;
  border: 4px solid #9945ff; border-radius: 0;
  box-shadow: 0 0 0 4px #15131f, 0 0 0 8px #3a2a66, 0 16px 0 8px rgba(0,0,0,0.5);
  image-rendering: pixelated;
}
/* header bar */
#account-modal .am-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 3px solid #3a2a66;
  background: linear-gradient(180deg, #241a3e 0%, #15131f 100%);
}
#account-modal .am-head h2 {
  margin: 0; font-family: 'Press Start 2P', monospace; font-size: 0.6rem; letter-spacing: 0.5px;
  background: linear-gradient(90deg, #14f195, #9945ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
#account-modal .am-close {
  width: 28px; height: 28px; border: 2px solid #5a3aa0; border-radius: 0; cursor: pointer;
  background: #2a1f4a; color: #c9b8ff; font-size: 0.85rem; line-height: 1;
}
#account-modal .am-close:hover { background: #3a2a66; }
#account-modal .am-body { padding: 14px; }
/* hero (name + level) */
#account-modal .am-hero { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
#account-modal .am-hero-name { font-size: 1.1rem; color: #9fe870; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#account-modal .am-hero-lvl {
  font-family: 'Press Start 2P', monospace; font-size: 0.5rem; color: #ffe27a;
  background: #3a2e10; border: 2px solid #6a571c; padding: 5px 7px; white-space: nowrap;
}
/* status card */
#account-modal .am-card { background: #100e1a; border: 2px solid #2e2348; padding: 2px 12px; margin-bottom: 12px; }
#account-modal .am-sep { height: 2px; background: #221a38; }
#account-modal .am-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; }
#account-modal .am-ico { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
#account-modal .am-ico-sol svg { width: 22px; height: auto; display: block; }
#account-modal .am-detail { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 3px; }
#account-modal .am-detail b { font-size: 0.6rem; color: #7d6fae; letter-spacing: 0.5px; }
#account-modal .am-detail span { font-size: 0.74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#account-modal .am-badge {
  font-family: 'Press Start 2P', monospace; font-size: 0.42rem; letter-spacing: 0.5px;
  padding: 6px 7px; border: 2px solid #6a3030; background: #2e1a1a; color: #e09a9a; white-space: nowrap;
}
#account-modal .am-badge.ok { border-color: #2a6a3a; background: #16301f; color: #7fe39a; }
/* add-email form */
#account-modal .am-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
#account-modal .am-form input {
  font-family: 'Silkscreen', monospace; font-size: 0.78rem;
  padding: 10px; border-radius: 0; border: 2px solid #2e2348;
  background: #0c0a14; color: #ece8f6;
}
#account-modal .am-form input:focus { outline: none; border-color: #9945ff; }
/* chunky pixel buttons */
#account-modal .am-actions { display: flex; flex-direction: column; gap: 9px; }
.am-btn {
  width: 100%; padding: 13px; border: 2px solid #0c1118; border-radius: 0; cursor: pointer;
  font-family: 'Press Start 2P', monospace; font-size: 0.56rem; letter-spacing: 0.5px; color: #fff;
  display: flex; align-items: center; justify-content: flex-start; gap: 9px; padding-left: 16px;
  text-shadow: 0 2px 0 rgba(0,0,0,0.4);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.22), inset 0 -3px 0 rgba(0,0,0,0.3);
}
.am-btn:hover { filter: brightness(1.1); }
.am-btn:active { transform: translateY(2px); box-shadow: inset 0 2px 8px rgba(0,0,0,0.4); }
.am-btn.sol  { background: linear-gradient(135deg, #9945ff 0%, #14f195 145%); border-color: #2a1a4a; }
.am-btn.blue { background: linear-gradient(180deg, #4a90d9, #2f6bb0); }
.am-btn.green{ background: linear-gradient(180deg, #6cc63f, #4e9e2c); }
.am-btn.red  { background: linear-gradient(180deg, #c0504a, #8f3a35); }
.am-btn .am-btn-ico { display: inline-flex; }
.am-btn .am-btn-ico svg { width: 17px; height: auto; display: block; }
#account-modal .am-msg { margin: 0 0 11px; font-size: 0.72rem; color: #7fe39a; }
#account-modal .am-msg.err { color: #ff9a9a; }

/* ---------- compact mobile HUD (Minecraft Bedrock style) ---------- */
/* chat: maliit, taas-kaliwa, transparent; input nakatago hangga't hindi kailangan */
/* chat = modal: nakatago hangga't hindi pinipindot ang 💬 (iwas-overlap sa HUD) */
body.mobile #chat {
  display: none;
  position: absolute; left: 0; right: 0; bottom: var(--kb, 0px); top: auto;
  width: auto; padding: 44px 12px 12px;
  transition: bottom 0.12s ease;
  background: linear-gradient(180deg, rgba(8,12,18,0) 0%, rgba(8,12,18,0.92) 38%);
  pointer-events: none; z-index: 31;
}
body.mobile.chat-active #chat { display: flex; flex-direction: column; pointer-events: auto; }
body.mobile #chat-messages { max-height: 42vh; gap: 3px; margin-bottom: 8px; }
body.mobile .chat-line { font-size: 0.72rem; padding: 4px 8px; background: rgba(0, 0, 0, 0.55); border-radius: 4px; }
body.mobile #chat-input { display: none; pointer-events: auto; font-size: 0.9rem; padding: 10px 12px; }
body.mobile.chat-active #chat-input { display: block; }

/* ===== Mobile-friendly modals (bag / craft / tavern / map) ===== */
body.mobile #bag-wrap { max-width: 100vw; max-height: 94vh; }
body.mobile .mc-panel { width: min(540px, 82vw); max-height: 94vh; }
body.mobile #bag-tabs { margin-top: 26px; gap: 4px; }
body.mobile .bag-tab { width: 36px; height: 36px; border-width: 2px; }
body.mobile .bag-body { gap: 6px; padding: 8px; }
body.mobile #bag-char { width: 76px; height: 132px; }
body.mobile .cm-panel { max-height: 88vh; }
body.mobile .map-panel { padding: 6px 10px 8px; width: 96vw; max-width: 96vw; }
body.mobile #map-stage { width: 100%; height: 62vh; }
body.mobile #map-legend { font-size: 0.5rem; gap: 4px 10px; }

/* hotbar: maliit at compact gaya ng Bedrock */
body.mobile .slot { width: 32px; height: 32px; padding: 2px; border-width: 1px; border-radius: 4px; }
body.mobile .slot .count { font-size: 0.55rem; }
body.mobile .slot .slot-num { font-size: 0.5rem; }
body.mobile #hotbar-wrap { bottom: 6px; gap: 3px; }
body.mobile #hotbar { gap: 2px; }
body.mobile #hotbar-xp { height: 15px; }
body.mobile #hx-lv, body.mobile #hx-exp { font-size: 0.55rem; }

/* buttons: chat + bag naka-VERTICAL stack sa ILALIM ng minimap (kanan) */
/* minimap mobile: top 38px, taas 84px -> bottom ~122px; isentro sa lapad ng map (right 31px) */
body.mobile #btn-chat {
  top: 130px; right: 6px; left: auto; transform: none;
  width: 38px; height: 38px; font-size: 0.9rem;
}
body.mobile #btn-bag {
  bottom: auto; top: 174px; right: 6px; left: auto; transform: none;
  width: 38px; height: 38px; font-size: 0.9rem; border-width: 1px;
}
body.mobile #btn-guild {
  bottom: auto; top: 130px; right: 6px; left: auto; transform: none;
  width: 38px; height: 38px; border-width: 1px;
}
/* camera/POV: KATABI ng bag button (bag=174 → pov=218), para magkagrupo */
body.mobile #btn-pov {
  bottom: auto; top: 218px; right: 6px; left: auto; transform: none;
  width: 38px; height: 38px; border-width: 1px;
}
/* craft (kadalasang nakatago — NPC-only): ilagay sa pinakababa para di mag-gap ang pov */
body.mobile #btn-craft {
  bottom: auto; top: 262px; right: 6px; left: auto;
  transform: none;
  width: 38px; height: 38px; font-size: 0.9rem; border-width: 1px;
}

/* iba pang HUD: pakaliitin */
body.mobile #online-wrap { top: 6px; right: 6px; }
body.mobile #online-count { font-size: 0.54rem; padding: 4px 8px; }
body.mobile #mode-badge { font-size: 0.6rem; padding: 3px 8px; top: 66px; left: 8px; }
body.mobile #materials { top: 128px; right: 6px; gap: 2px; }
body.mobile #materials .mat { font-size: 0.6rem; padding: 2px 5px; gap: 4px; }
body.mobile #materials .mat canvas { width: 12px; height: 12px; }
body.mobile #joy-zone { bottom: 48px; }

/* ===== RPG: damage numbers, level-up ===== */

#dmg-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:7}
.dmg-num{position:absolute;font:bold 22px Impact,sans-serif;color:#fff;text-shadow:0 0 3px #000,1px 1px 0 #000;transform:translate(-50%,-50%);white-space:nowrap}
.dmg-num.crit{color:#ffd23f;font-size:30px}
.dmg-num.kill{color:#ff5a5a}
.dmg-num.xp{color:#a3ff5a;font-size:18px}
.dmg-num.coin{color:#ffcf3f;font-size:19px}

#levelup-fx{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:8}
#levelup-text{font:900 64px Impact,sans-serif;color:#ffe14d;text-shadow:0 0 18px #ffb300,0 4px 6px #000;letter-spacing:3px;animation:luPop 1.6s ease-out forwards}
#levelup-fx::before,#levelup-fx::after{content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;border-radius:50%;box-shadow:0 0 40px 20px rgba(255,210,80,.7);animation:luRing 1.6s ease-out forwards}
#levelup-fx::after{animation-delay:.25s}
@keyframes luPop{0%{transform:scale(.3);opacity:0}25%{transform:scale(1.15);opacity:1}70%{transform:scale(1);opacity:1}100%{transform:scale(1.05);opacity:0}}
@keyframes luRing{0%{transform:translate(-50%,-50%) scale(.2);opacity:.9;border:3px solid #ffe14d}100%{transform:translate(-50%,-50%) scale(40);opacity:0;border:3px solid #ffe14d}}

/* ============================================================
   PIXEL THEME — login screen (font + blocky layout)
   ============================================================ */
#login { font-family: 'Silkscreen', 'Courier New', monospace; }

/* Crisp pixel edges — walang rounded corners sa loob ng login */
#login .panel,
#login .mc-frame,
#login #char-preview-wrap,
#login #name-input,
#login .auth-view input,
#login .auth-go,
#login #play-btn,
#login .cz-tab,
#login .cz-btn,
#login .swatch { border-radius: 0 !important; }

/* Pixel avatar — crisp na hindi malabo */
#char-preview { image-rendering: pixelated; image-rendering: crisp-edges; }

/* Title — arcade pixel font */
#login h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.5rem; line-height: 1.4; letter-spacing: 0;
  text-shadow: 3px 3px 0 #0c1118, 0 0 18px rgba(95,174,58,0.5);
}
#login .sub {
  font-family: 'Silkscreen', monospace; font-size: 0.7rem;
  letter-spacing: 0.5px; margin-bottom: 18px;
}

/* Labels + inputs */
#login .field-label { font-family: 'Silkscreen', monospace; font-size: 0.62rem; letter-spacing: 0.5px; }
#login #name-input,
#login .auth-view input {
  font-family: 'Silkscreen', monospace; font-size: 0.82rem;
  border-width: 3px;
}

/* Buttons — chunky pixel bevel */
#login .auth-go,
#login #play-btn {
  font-family: 'Silkscreen', monospace; font-weight: 700;
  font-size: 0.92rem; letter-spacing: 0.5px;
  border-width: 3px;
  box-shadow:
    inset -3px -3px 0 rgba(0,0,0,0.32),
    inset 3px 3px 0 rgba(255,255,255,0.28);
}
#login .auth-go:active:not(:disabled),
#login #play-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: inset 3px 3px 0 rgba(0,0,0,0.4);
}

/* The 3 landing buttons — slightly taller, arcade feel */
#view-choose .auth-go { font-size: 1rem; padding: 16px; }

/* Customizer tabs/buttons — pixel */
#login .cz-tab,
#login .cz-btn { font-family: 'Silkscreen', monospace; border-width: 2px; }

/* Helper text + errors */
#login .auth-msg,
#login .error,
#login .link-btn,
#login .cp-label { font-family: 'Silkscreen', monospace; }
#login .auth-msg { font-size: 0.74rem; line-height: 1.6; }
#login .link-btn { font-size: 0.72rem; }

/* ===== SVG button icons (replace emoji); ::before survives textContent label-swap ===== */
.auth-go, #play-btn { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding-left: 20px; }
.ic-key::before,
.ic-edit::before,
.ic-gamepad::before,
.ic-play::before,
.ic-send::before,
.ic-check::before,
.ic-mail::before,
.ic-logout::before,
.ic-save::before {
  content: ''; flex: 0 0 auto; width: 1.15em; height: 1.15em;
  background-position: center; background-repeat: no-repeat; background-size: contain;
}
.ic-key::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'white'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M21%202l-2%202m-7.61%207.61a5.5%205.5%200%201%201-7.778%207.778%205.5%205.5%200%200%201%207.777-7.777zm0%200L15.5%207.5m0%200l3%203L22%207l-3-3'%2F%3E%3C%2Fsvg%3E"); }
.ic-edit::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'white'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M12%2020h9'%2F%3E%3Cpath%20d%3D'M16.5%203.5a2.12%202.12%200%200%201%203%203L7%2019l-4%201%201-4%2012.5-12.5z'%2F%3E%3C%2Fsvg%3E"); }
.ic-gamepad::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'white'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'2'%20y%3D'7'%20width%3D'20'%20height%3D'11'%20rx%3D'4'%2F%3E%3Cpath%20d%3D'M7%2011v4M5%2013h4M15%2012h.01M18%2014h.01M16%2016h.01M17%2011h.01'%2F%3E%3C%2Fsvg%3E"); }
.ic-play::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'white'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M6%204l14%208-14%208z'%2F%3E%3C%2Fsvg%3E"); }
.ic-send::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'white'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M22%202%2011%2013'%2F%3E%3Cpath%20d%3D'M22%202%2015%2022l-4-9-9-4z'%2F%3E%3C%2Fsvg%3E"); }
.ic-check::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'white'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M20%206%209%2017l-5-5'%2F%3E%3C%2Fsvg%3E"); }
.ic-mail::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'white'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'3'%20y%3D'5'%20width%3D'18'%20height%3D'14'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'm3%207%209%206%209-6'%2F%3E%3C%2Fsvg%3E"); }
.ic-logout::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'white'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M9%2021H5a2%202%200%200%201-2-2V5a2%202%200%200%201%202-2h4'%2F%3E%3Cpath%20d%3D'm16%2017%205-5-5-5'%2F%3E%3Cpath%20d%3D'M21%2012H9'%2F%3E%3C%2Fsvg%3E"); }
.ic-save::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'white'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M19%2021H5a2%202%200%200%201-2-2V5a2%202%200%200%201%202-2h11l5%205v11a2%202%200%200%201-2%202z'%2F%3E%3Cpath%20d%3D'M17%2021v-8H7v8'%2F%3E%3Cpath%20d%3D'M7%203v5h8'%2F%3E%3C%2Fsvg%3E"); }
.am-btn.ic-mail::before, .am-btn.ic-logout::before, .am-btn.ic-save::before { width: 14px; height: 14px; }

/* inline (non-button) SVG icons: title pickaxe, account header, email row */
#login h1 { display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.h1-ic { width: 1.05em; height: 1.05em; flex: 0 0 auto; filter: drop-shadow(0 3px 0 #0c1118); }
#account-modal .am-head h2 { display: flex; align-items: center; gap: 8px; }
.am-head-ic { width: 16px; height: 16px; flex: 0 0 auto; }
.am-mail-ic { width: 20px; height: 20px; display: block; }

/* ============ Gamified onboarding ("First Steps") ============ */
#onb-card {
  position: absolute; right: 12px; top: 180px; z-index: 12;
  width: 232px; pointer-events: auto;
  background: rgba(10, 18, 26, 0.82);
  border: 2px solid #060a0f; border-radius: 8px;
  box-shadow: inset 0 0 0 2px #36546f, 0 6px 16px rgba(0,0,0,0.45);
  color: #e9f0f5; padding: 9px 10px 10px;
  font-family: 'Silkscreen', monospace;
}
#onb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
#onb-title { font-family: 'Press Start 2P', monospace; font-size: 0.54rem; color: #ffd34d; letter-spacing: 0.5px; }
#onb-skip {
  font-family: 'Silkscreen', monospace; font-size: 0.62rem;
  color: #9fb4c8; background: rgba(255,255,255,0.06);
  border: 1px solid #36546f; border-radius: 5px; padding: 2px 7px; cursor: pointer;
}
#onb-skip:hover { color: #fff; background: rgba(255,90,90,0.22); border-color: #c0524a; }
#onb-steps { display: flex; gap: 3px; margin-bottom: 8px; flex-wrap: wrap; }
.onb-pip {
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  line-height: 1; border-radius: 5px;
  background: rgba(255,255,255,0.05); border: 1px solid #2b4257;
  color: #6f8499; opacity: 0.6; transition: all 0.18s ease;
}
.onb-pip svg { width: 14px; height: 14px; display: block; }
.onb-pip.done { opacity: 1; color: #4caf50; border-color: #4caf50; background: rgba(76,175,80,0.18); }
.onb-pip.active {
  opacity: 1; color: #ffd34d; border-color: #ffd34d; background: rgba(255,211,77,0.18);
  box-shadow: 0 0 0 1px #ffd34d, 0 0 8px rgba(255,211,77,0.5); transform: scale(1.12);
}
#onb-current { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
#onb-cur-ico { flex: 0 0 auto; color: #8fd0f5; }
#onb-cur-ico svg { width: 22px; height: 22px; display: block; }
#onb-cur-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#onb-cur-title { font-family: 'Press Start 2P', monospace; font-size: 0.5rem; color: #8fd0f5; line-height: 1.4; }
#onb-cur-hint { font-size: 0.72rem; color: #cfe0ec; line-height: 1.45; }
#onb-progress { height: 6px; border-radius: 4px; background: rgba(0,0,0,0.45); overflow: hidden; }
#onb-progress-fill {
  height: 100%; width: 0%; border-radius: 4px;
  background: linear-gradient(90deg, #6cc0f0, #ffd34d); transition: width 0.35s ease;
}

/* screen-edge directional arrow → tumuturo sa target NPC/lugar */
#onb-arrow {
  position: absolute; z-index: 11; transform: translate(-50%, -50%);
  pointer-events: none; text-align: center;
}
#onb-arrow-tri {
  width: 30px; height: 30px; margin: 0 auto; color: #ffd34d;
  filter: drop-shadow(0 0 5px rgba(255,211,77,0.85)) drop-shadow(0 1px 1px #000);
  animation: onb-pulse 0.9s ease-in-out infinite;
}
#onb-arrow-tri svg { width: 100%; height: 100%; display: block; }
#onb-arrow-dist {
  font-family: 'Silkscreen', monospace; font-size: 0.66rem; color: #fff; margin-top: 1px;
  text-shadow: 0 0 3px #000, 1px 1px 0 #000;
}
@keyframes onb-pulse { 0%,100% { transform: scale(1); opacity: 0.92; } 50% { transform: scale(1.22); opacity: 1; } }

/* toast feedback (step complete / skip) */
#onb-toast {
  position: absolute; left: 50%; top: 86px; transform: translateX(-50%);
  z-index: 13; pointer-events: none;
  font-family: 'Press Start 2P', monospace; font-size: 0.56rem; color: #fff;
  background: rgba(10,18,26,0.9); border: 2px solid #4caf50; border-radius: 7px;
  padding: 7px 14px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  opacity: 0;
}
#onb-toast.show { animation: onb-toast-in 1.8s ease forwards; }
@keyframes onb-toast-in {
  0% { opacity: 0; transform: translate(-50%, -8px); }
  12% { opacity: 1; transform: translate(-50%, 0); }
  82% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -8px); }
}

body.mobile #onb-card { right: 6px; top: 128px; width: 168px; padding: 7px 8px 8px; }
body.mobile #onb-cur-hint { font-size: 0.64rem; }
body.mobile .onb-pip { width: 18px; height: 18px; font-size: 0.66rem; }

/* ===== Wallet picker (lists all detected wallets + mobile app options) ===== */
#wallet-picker {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6,8,14,0.82); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  font-family: 'Silkscreen', monospace;
}
#wallet-picker[hidden] { display: none; }
#wallet-picker .wp-box {
  width: 360px; max-width: 92vw; max-height: 88vh; overflow-y: auto;
  background: #15131f; color: #ece8f6; border: 4px solid #9945ff; border-radius: 0;
  box-shadow: 0 0 0 4px #15131f, 0 0 0 8px #3a2a66, 0 16px 0 8px rgba(0,0,0,0.5);
  image-rendering: pixelated;
}
#wallet-picker .wp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 3px solid #3a2a66;
  background: linear-gradient(180deg, #241a3e, #15131f);
}
#wallet-picker .wp-head h2 {
  margin: 0; display: flex; align-items: center; gap: 8px;
  font-family: 'Press Start 2P', monospace; font-size: 0.6rem;
  background: linear-gradient(90deg, #14f195, #9945ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
#wallet-picker .wp-head h2 svg { width: 16px; height: auto; flex: 0 0 auto; }
#wallet-picker .wp-body { padding: 14px; }
#wallet-picker #wp-list { display: flex; flex-direction: column; gap: 9px; }
.wp-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 13px; cursor: pointer; text-align: left;
  background: #1d1830; color: #ece8f6; border: 2px solid #3a2a66; border-radius: 0;
  font-family: 'Silkscreen', monospace; font-size: 0.95rem; font-weight: 700;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.06), inset 0 -3px 0 rgba(0,0,0,0.3);
}
.wp-item:hover { background: #2a2147; }
.wp-item:active { transform: translateY(2px); }
.wp-item img, .wp-item svg { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 4px; }
.wp-item .wp-tag { margin-left: auto; font-family: 'Press Start 2P', monospace; font-size: 0.42rem; color: #9a8fce; }
#wallet-picker .wp-hint { margin: 10px 2px 0; font-size: 0.74rem; color: #b6c2cf; line-height: 1.5; }
#wallet-picker .am-msg { margin: 10px 0 0; font-size: 0.74rem; color: #7fe39a; }
#wallet-picker .am-msg.err { color: #ff9a9a; }

/* =========================================================================
   LANDING PAGE (/)  — gamified hero na may TUNAY na 3D na bayan sa likod.
   Ginagamit ang #login-bg canvas (parehong engine ng login scene).
   ========================================================================= */
.landing-body {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  touch-action: auto; user-select: none; -webkit-user-select: none;
  /* fallback na langit habang nilo-load pa ang 3D scene */
  background: linear-gradient(180deg, #8fd3f0 0%, #a8def2 42%, #cdeaf7 66%, #7ec850 66%, #5fae3a 100%);
  font-family: 'Silkscreen', 'Courier New', monospace;
}
/* #login-bg ay naka-position:absolute na (nasa login section sa itaas) — reused dito */
#landing-vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(ellipse at 50% 38%, transparent 40%, rgba(8,12,18,0.55) 100%),
    linear-gradient(180deg, rgba(8,12,18,0.10) 0%, transparent 22%, transparent 60%, rgba(8,12,18,0.45) 100%);
}

#landing {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 22px; padding: 32px 18px 22px;
  box-sizing: border-box;
}

.lp-hero {
  background: rgba(18, 26, 36, 0.92);
  width: min(560px, 94vw);
  padding: 30px 34px 26px;
  text-align: center;
  color: #ecf0f1;
  animation: lp-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes lp-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.lp-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Press Start 2P', monospace; font-size: 0.5rem; letter-spacing: 1px;
  color: #b8f0c2; background: rgba(46, 120, 60, 0.28);
  border: 2px solid #2a5a16; border-radius: 3px;
  padding: 6px 10px; margin-bottom: 16px;
}
.lp-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #46e06a; box-shadow: 0 0 8px #46e06a;
  animation: lp-pulse 1.4s ease-in-out infinite;
}
@keyframes lp-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }

.lp-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.7rem; line-height: 1.25; letter-spacing: 2px;
  margin: 0 0 12px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  text-shadow: 0 3px 0 #0c1118, 0 0 20px rgba(95,174,58,0.55);
}
.lp-pick { width: 30px; height: 30px; flex: 0 0 auto; }

.lp-tag {
  font-family: 'Silkscreen', monospace; font-weight: 700;
  font-size: 0.9rem; letter-spacing: 0.5px; color: #cfe0ec; margin: 0 0 8px;
}
.lp-desc {
  font-family: 'Silkscreen', monospace; font-size: 0.78rem; line-height: 1.55;
  color: #9fb3c2; margin: 0 auto 22px; max-width: 42ch;
}

.lp-cta { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none;
  font-family: 'Press Start 2P', monospace; font-weight: 700; letter-spacing: 1px;
  border: 2px solid #0c1118; border-radius: 4px;
  cursor: pointer; text-shadow: 0 2px 0 rgba(0,0,0,0.35);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.35), inset 0 -3px 0 rgba(0,0,0,0.25);
  transition: filter 0.1s, transform 0.05s;
}
.lp-btn:hover { filter: brightness(1.1); }
.lp-btn:active { transform: translateY(2px); box-shadow: inset 0 2px 8px rgba(0,0,0,0.4); }
.lp-btn.play {
  padding: 18px; font-size: 0.92rem; color: #fff;
  background: linear-gradient(180deg, #6cc63f 0%, #4e9e2c 100%);
}
.lp-btn-ic { width: 20px; height: 20px; flex: 0 0 auto; }
.lp-cta-row { display: flex; gap: 12px; }
.lp-btn.login, .lp-btn.reg {
  flex: 1; padding: 13px; font-size: 0.66rem; color: #ecf0f1;
  background: linear-gradient(180deg, #4a708f 0%, #2f4a63 100%);
}
.lp-btn.reg { background: linear-gradient(180deg, #b06a2e 0%, #8a4d1c 100%); }
.lp-link {
  font-family: 'Silkscreen', monospace; font-size: 0.78rem; color: #6cc0f0;
  text-decoration: none; margin-top: 2px; padding: 4px;
}
.lp-link:hover { color: #9fd8ff; text-decoration: underline; }

.lp-features {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px;
  margin-top: 22px; padding-top: 18px; border-top: 2px solid #0c1118;
}
.lp-feat {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Silkscreen', monospace; font-weight: 700; font-size: 0.72rem;
  color: #b9c7d2;
}
.lp-feat b { font-size: 0.92rem; font-weight: 400; line-height: 1; }
.lp-feat-sol { width: 15px; height: 11px; display: inline-flex; }
.lp-feat-sol svg { width: 100%; height: 100%; }

.lp-foot {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  font-family: 'Silkscreen', monospace; font-size: 0.72rem; color: #dfeaf2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
#lp-online { display: inline-flex; align-items: center; gap: 7px; }
#lp-online b { color: #fff; }
.lp-foot-sep { opacity: 0.5; }

@media (max-width: 600px) {
  #landing { padding: 24px 12px 18px; gap: 16px; }
  .lp-hero { padding: 22px 18px 20px; }
  .lp-title { font-size: 1.25rem; gap: 9px; }
  .lp-pick { width: 22px; height: 22px; }
  .lp-tag { font-size: 0.78rem; }
  .lp-desc { font-size: 0.7rem; margin-bottom: 18px; }
  .lp-btn.play { padding: 15px; font-size: 0.8rem; }
  .lp-btn.login, .lp-btn.reg { padding: 12px; font-size: 0.6rem; }
  .lp-feat { font-size: 0.64rem; }
}
@media (max-height: 560px) and (min-width: 601px) {
  #landing { justify-content: flex-start; }
}

/* ---- gamified in-panel feature carousel ---- */
.lp-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 16px;
}
.lp-wordmark {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Press Start 2P', monospace; font-size: 1rem; letter-spacing: 1px;
  color: #ecf0f1; text-shadow: 0 2px 0 #0c1118, 0 0 14px rgba(95,174,58,0.5);
}
.lp-wordmark .lp-pick { width: 36px; height: 36px; margin: -6px 0; }
.lp-top .lp-badge { margin-bottom: 0; }

.lp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* item-tooltip spotlight (nagbabago ayon sa napiling slot) */
.lp-spot {
  display: flex; align-items: center; gap: 16px;
  background: rgba(8, 12, 18, 0.5);
  border: 2px solid #0c1118; border-radius: 6px;
  box-shadow: inset 0 0 0 2px #2a3a4a;
  padding: 14px 16px; margin: 14px 0 16px; min-height: 96px;
}
.lp-spot-frame {
  flex: 0 0 auto; width: 74px; height: 74px;
  display: flex; align-items: center; justify-content: center;
  background: #0e1620; border: 3px solid #0c1118; border-radius: 5px;
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.08), inset 0 -3px 0 rgba(0,0,0,0.4);
}
.lp-spot-ic { width: 52px; height: 52px; shape-rendering: crispEdges; }
.lp-spot-body { flex: 1; min-width: 0; text-align: left; }
.lp-spot-name {
  font-family: 'Press Start 2P', monospace; font-size: 0.84rem; line-height: 1.3;
  color: #ffe27a; margin: 0 0 8px; text-shadow: 0 2px 0 #0c1118;
}
.lp-spot-desc {
  font-family: 'Silkscreen', monospace; font-size: 0.8rem; line-height: 1.5;
  color: #b9c7d2; margin: 0;
}

/* Minecraft-style hotbar */
.lp-hotbar {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px;
  padding: 7px; margin-bottom: 18px;
  background: rgba(8, 12, 18, 0.5);
  border: 2px solid #0c1118; border-radius: 6px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
}
.lp-slot {
  position: relative; aspect-ratio: 1; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: #0e1620; border: 2px solid #324356; border-radius: 4px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.06), inset 0 -3px 0 rgba(0,0,0,0.35);
  transition: border-color 0.12s, transform 0.05s, background 0.12s;
}
.lp-slot svg { width: 80%; height: 80%; shape-rendering: crispEdges; }
.lp-slot:hover { background: #16212e; border-color: #5a7793; }
.lp-slot:active { transform: translateY(1px); }
.lp-slot.is-sel {
  border-color: #ffd24a;
  box-shadow: 0 0 0 2px rgba(255,210,74,0.4), inset 0 2px 0 rgba(255,255,255,0.1);
}
.lp-slot-n {
  position: absolute; top: 1px; left: 3px;
  font-family: 'Silkscreen', monospace; font-size: 0.56rem; font-weight: 700;
  color: #7e8a98; pointer-events: none;
}
.lp-slot.is-sel .lp-slot-n { color: #ffd24a; }

@media (max-width: 600px) {
  .lp-wordmark { font-size: 0.82rem; }
  .lp-spot { gap: 12px; padding: 11px 12px; min-height: 86px; }
  .lp-spot-frame { width: 60px; height: 60px; }
  .lp-spot-ic { width: 42px; height: 42px; }
  .lp-spot-name { font-size: 0.7rem; }
  .lp-spot-desc { font-size: 0.72rem; }
  .lp-hotbar { gap: 4px; padding: 5px; }
  .lp-slot-n { font-size: 0.5rem; }
}

/* =========================================================================
   LANDING v2 — multi-section scrolling redesign
   ($CRAFT tokenomics, roadmap, features, bestiary). Fixed 3D town backdrop.
   ========================================================================= */

/* Backdrop now stays fixed behind the scrolling page (landing only). */
.landing-body { scroll-behavior: smooth; }
.landing-body #login-bg { position: fixed; }
.landing-body #landing-vignette { z-index: 1; }

/* override the old single-screen centering — page now flows in sections */
#landing {
  display: block;
  min-height: 100svh;
  padding: 0 0 40px;
  gap: 0;
}

/* ---- sticky top nav ---- */
.lp-nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 9px clamp(12px, 4vw, 34px);
  background: rgba(10, 15, 22, 0.82);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid #0c1118;
  box-shadow: 0 2px 0 rgba(0,0,0,0.3);
}
.lp-nav-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Press Start 2P', monospace; font-size: 0.74rem; letter-spacing: 1px;
  color: #ecf0f1; text-decoration: none; text-shadow: 0 2px 0 #0c1118;
}
.lp-nav-brand .lp-pick { width: 28px; height: 28px; margin: -6px 0; }
.lp-nav-links { display: flex; gap: 6px; margin-left: auto; }
.lp-nav-links a {
  font-family: 'Silkscreen', monospace; font-size: 0.74rem; color: #b9c7d2;
  text-decoration: none; padding: 6px 9px; border-radius: 4px;
}
.lp-nav-links a:hover { color: #ffe27a; background: rgba(255,255,255,0.06); }
.lp-nav-cta {
  font-family: 'Press Start 2P', monospace; font-size: 0.6rem; letter-spacing: 1px;
  color: #fff; text-decoration: none; padding: 9px 14px; border-radius: 4px;
  border: 2px solid #0c1118;
  background: linear-gradient(180deg, #6cc63f 0%, #4e9e2c 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.35), inset 0 -3px 0 rgba(0,0,0,0.25);
}
.lp-nav-cta:hover { filter: brightness(1.1); }
@media (max-width: 680px) { .lp-nav-links { display: none; } .lp-nav-cta { margin-left: auto; } }

/* ---- hero screen wrapper (first viewport) ---- */
.lp-screen {
  position: relative; z-index: 2;
  min-height: calc(100svh - 52px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 28px 16px 22px;
  box-sizing: border-box;
}
.lp-screen .lp-hero { animation: lp-rise 0.5s cubic-bezier(0.2,0.8,0.2,1) both; }

.lp-scroll {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: 'Silkscreen', monospace; font-size: 0.66rem; letter-spacing: 1px;
  color: #dfeaf2; text-decoration: none; text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  opacity: 0.9;
}
.lp-scroll svg { width: 22px; height: 22px; animation: lp-bob 1.6s ease-in-out infinite; }
@keyframes lp-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---- generic section shell ---- */
.lp-sec {
  position: relative; z-index: 2;
  width: min(1080px, 94vw); margin: 0 auto;
  padding: 56px 4px;
}
.lp-sec-head { text-align: center; max-width: 60ch; margin: 0 auto 34px; }
.lp-kicker {
  font-family: 'Press Start 2P', monospace; font-size: 0.55rem; letter-spacing: 2px;
  color: #6cc63f; text-shadow: 0 2px 0 #0c1118;
}
.lp-h2 {
  font-family: 'Press Start 2P', monospace; font-size: clamp(1.05rem, 3.4vw, 1.6rem);
  line-height: 1.4; color: #ecf0f1; margin: 14px 0 12px;
  text-shadow: 0 3px 0 #0c1118, 0 0 18px rgba(95,174,58,0.4);
}
.lp-sub {
  font-family: 'Silkscreen', monospace; font-size: 0.82rem; line-height: 1.6;
  color: #b9c7d2; margin: 0;
}
.lp-sub b { color: #ecf0f1; }

/* ---- features grid ---- */
.lp-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.lp-card {
  background: rgba(18, 26, 36, 0.92);
  padding: 20px 18px; color: #ecf0f1; text-align: left;
}
.lp-card-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 12px;
  background: #0e1620; border: 3px solid #0c1118; border-radius: 5px;
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.08), inset 0 -3px 0 rgba(0,0,0,0.4);
}
.lp-card-ic svg { width: 36px; height: 36px; shape-rendering: crispEdges; }
.lp-card h3 {
  font-family: 'Press Start 2P', monospace; font-size: 0.72rem; line-height: 1.4;
  color: #ffe27a; margin: 0 0 10px; text-shadow: 0 2px 0 #0c1118;
}
.lp-card p {
  font-family: 'Silkscreen', monospace; font-size: 0.78rem; line-height: 1.55;
  color: #b9c7d2; margin: 0;
}

/* ---- bestiary ---- */
.lp-group {
  font-family: 'Press Start 2P', monospace; font-size: 0.74rem; letter-spacing: 1px;
  color: #cfe0ec; margin: 26px 0 14px; text-shadow: 0 2px 0 #0c1118;
}
.lp-group.danger { color: #ff9a8a; }
.lp-beast-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}
.lp-beast {
  margin: 0; padding: 14px 8px 10px; text-align: center;
  background: rgba(18, 26, 36, 0.9);
  border: 2px solid #0c1118; border-radius: 6px;
  box-shadow: inset 0 0 0 2px #2a3a4a;
  transition: transform 0.12s, box-shadow 0.12s;
}
.lp-beast:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px #4a6a4a, 0 6px 0 rgba(0,0,0,0.3); }
.lp-beast svg { width: 74px; height: 74px; shape-rendering: geometricPrecision; }
.lp-beast figcaption {
  font-family: 'Silkscreen', monospace; font-size: 0.74rem; color: #cfe0ec; margin-top: 8px;
}
.lp-beast.hostile figcaption { color: #f0b6ad; }
.lp-beast.boss { box-shadow: inset 0 0 0 2px #b5462f; }
.lp-beast.boss figcaption { color: #ffb066; }
.lp-beast figcaption b {
  font-family: 'Press Start 2P', monospace; font-size: 0.42rem; color: #fff;
  background: #b5462f; padding: 2px 4px; border-radius: 3px; margin-left: 4px; vertical-align: middle;
}
.lp-note {
  font-family: 'Silkscreen', monospace; font-size: 0.78rem; line-height: 1.6;
  color: #9fb3c2; text-align: center; margin: 22px auto 0; max-width: 70ch;
}

/* ---- tokenomics ---- */
.lp-craft { color: #b066ff; text-shadow: 0 2px 0 #0c1118, 0 0 12px rgba(176,102,255,0.5); }
.lp-gold  { color: #ffd24a; }

.lp-flow {
  display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap;
  gap: 10px; margin: 0 auto 34px;
}
.lp-flow-step {
  flex: 1 1 180px; max-width: 230px;
  background: rgba(18, 26, 36, 0.92);
  border: 2px solid #0c1118; border-radius: 6px;
  box-shadow: inset 0 0 0 2px #2a3a4a;
  padding: 16px 14px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.lp-flow-step.convert { box-shadow: inset 0 0 0 2px #2f6f5a; }
.lp-flow-step.craft { box-shadow: inset 0 0 0 2px #7a3fb0; background: rgba(30, 18, 42, 0.92); }
.lp-flow-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; background: #0e1620;
  border: 3px solid #0c1118; border-radius: 5px;
}
.lp-flow-ic svg { width: 32px; height: 32px; shape-rendering: crispEdges; }
.lp-craft-coin {
  font-family: 'Press Start 2P', monospace; font-size: 0.42rem; color: #fff;
  background: linear-gradient(135deg, #00FFA3, #DC1FFF);
}
.lp-flow-step b {
  font-family: 'Press Start 2P', monospace; font-size: 0.64rem; color: #ecf0f1;
}
.lp-flow-step small {
  font-family: 'Silkscreen', monospace; font-size: 0.72rem; line-height: 1.5; color: #b9c7d2;
}
.lp-flow-step small i { color: #ffe27a; font-style: normal; }
.lp-flow-arrow {
  display: flex; align-items: center; font-size: 1.4rem; color: #6cc63f;
}
@media (max-width: 720px) { .lp-flow-arrow { transform: rotate(90deg); } .lp-flow-step { max-width: none; } }

.lp-token-cols {
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.lp-alloc h3, .lp-utility h3 {
  font-family: 'Press Start 2P', monospace; font-size: 0.7rem; color: #ffe27a;
  margin: 0 0 16px; text-shadow: 0 2px 0 #0c1118;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.lp-tbd {
  font-family: 'Silkscreen', monospace; font-size: 0.5rem; letter-spacing: 1px;
  color: #0e1620; background: #ffd24a; padding: 3px 6px; border-radius: 3px;
}
.lp-bars { display: flex; flex-direction: column; gap: 11px; }
.lp-bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.lp-bar-l { font-family: 'Silkscreen', monospace; font-size: 0.74rem; color: #cfe0ec; }
.lp-bar-v { font-family: 'Press Start 2P', monospace; font-size: 0.56rem; color: #b066ff; }
.lp-bar-track {
  grid-column: 1 / -1; height: 12px; background: #0e1620;
  border: 2px solid #0c1118; border-radius: 3px; overflow: hidden;
}
.lp-bar-track i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #00FFA3, #DC1FFF);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.25);
}
.lp-fine, .lp-disclaimer {
  font-family: 'Silkscreen', monospace; font-size: 0.7rem; line-height: 1.6; color: #9fb3c2;
}
.lp-fine { margin: 16px 0 0; }
.lp-fine b { color: #ecf0f1; }
.lp-util-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.lp-util-list li {
  font-family: 'Silkscreen', monospace; font-size: 0.78rem; line-height: 1.5; color: #b9c7d2;
  padding-left: 18px; position: relative;
}
.lp-util-list li::before { content: '◆'; position: absolute; left: 0; color: #6cc63f; font-size: 0.7rem; }
.lp-util-list b { color: #ecf0f1; }
.lp-sink {
  font-family: 'Silkscreen', monospace; font-size: 0.76rem; line-height: 1.55; color: #cfe0ec;
  background: rgba(46, 120, 60, 0.18); border: 2px solid #2a5a16; border-radius: 5px;
  padding: 12px 14px;
}
.lp-sink b { color: #b8f0c2; }
.lp-disclaimer { text-align: center; margin: 26px auto 0; max-width: 72ch; opacity: 0.85; }

/* ---- roadmap ---- */
.lp-road { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; position: relative; }
.lp-road::before {
  content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 3px;
  background: #2a3a4a;
}
.lp-road li { position: relative; padding: 0 0 22px 36px; }
.lp-road-dot {
  position: absolute; left: 0; top: 4px; width: 17px; height: 17px;
  background: #0e1620; border: 3px solid #5a7793; border-radius: 50%; z-index: 1;
}
.lp-road li.done .lp-road-dot { border-color: #46e06a; background: #46e06a; }
.lp-road li.active .lp-road-dot { border-color: #ffd24a; box-shadow: 0 0 0 4px rgba(255,210,74,0.25); }
.lp-road li.token .lp-road-dot { border-color: #b066ff; background: #b066ff; }
.lp-road-body {
  background: rgba(18, 26, 36, 0.92);
  border: 2px solid #0c1118; border-radius: 6px;
  box-shadow: inset 0 0 0 2px #2a3a4a;
  padding: 14px 16px;
}
.lp-road li.token .lp-road-body { box-shadow: inset 0 0 0 2px #7a3fb0; }
.lp-road-tag {
  display: inline-block; font-family: 'Press Start 2P', monospace; font-size: 0.46rem;
  letter-spacing: 1px; padding: 4px 7px; border-radius: 3px; margin-bottom: 9px; color: #0e1620;
}
.lp-road-tag.live  { background: #46e06a; }
.lp-road-tag.prog  { background: #ffd24a; }
.lp-road-tag.soon  { background: #5a7793; color: #ecf0f1; }
.lp-road-tag.craft { background: linear-gradient(135deg, #00FFA3, #DC1FFF); color: #fff; }
.lp-road-tag.future{ background: #324356; color: #cfe0ec; }
.lp-road-body h3 {
  font-family: 'Press Start 2P', monospace; font-size: 0.68rem; line-height: 1.45;
  color: #ecf0f1; margin: 0 0 9px; text-shadow: 0 2px 0 #0c1118;
}
.lp-road-body p {
  font-family: 'Silkscreen', monospace; font-size: 0.78rem; line-height: 1.55; color: #b9c7d2; margin: 0;
}

/* ---- final CTA ---- */
.lp-final { display: flex; justify-content: center; }
.lp-final-card { width: min(520px, 94vw); text-align: center; padding: 32px 30px 28px; }
.lp-final-card .lp-h2 { margin-top: 0; }
.lp-final-card .lp-sub { margin-bottom: 22px; }

/* footer spacing in flow layout */
#landing > .lp-foot { margin: 30px auto 0; padding: 0 16px; }

@media (max-width: 600px) {
  .lp-sec { padding: 42px 4px; }
  .lp-card h3 { font-size: 0.64rem; }
  .lp-beast svg { width: 46px; height: 46px; }
  .lp-road-body h3 { font-size: 0.6rem; }
}

/* ---- live gold-sink showcase (tokenomics) ---- */
.lp-tbd.live-tag { background: #46e06a; color: #0e1620; }
.lp-sink-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 4px;
}
.lp-sink-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: rgba(18, 26, 36, 0.92);
  border: 2px solid #0c1118; border-radius: 6px;
  box-shadow: inset 0 0 0 2px #2a3a4a;
  padding: 13px 14px;
}
.lp-sink-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; background: #0e1620;
  border: 2px solid #0c1118; border-radius: 5px;
}
.lp-sink-ic svg { width: 26px; height: 26px; shape-rendering: crispEdges; }
.lp-sink-chip b { font-family: 'Press Start 2P', monospace; font-size: 0.56rem; line-height: 1.4; color: #ffe27a; }
.lp-sink-chip small { font-family: 'Silkscreen', monospace; font-size: 0.74rem; line-height: 1.45; color: #b9c7d2; }

/* ---- "more monsters coming" placeholder tile ---- */
.lp-beast.soon { border-style: dashed; border-color: #3a4a5a; box-shadow: none; background: rgba(18,26,36,0.55); }
.lp-beast.soon .lp-soon {
  width: 74px; height: 74px; display: flex; align-items: center; justify-content: center;
}
.lp-beast.soon .lp-soon span {
  font-family: 'Press Start 2P', monospace; font-size: 1.7rem; color: #5a7793;
  text-shadow: 0 2px 0 #0c1118;
}
.lp-beast.soon figcaption { color: #8aa0b2; }

/* ---- reserved $CRAFT contract-address card ---- */
.lp-ca h3 {
  font-family: 'Press Start 2P', monospace; font-size: 0.7rem; color: #ffe27a;
  margin: 0 0 14px; text-shadow: 0 2px 0 #0c1118; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.lp-ca-sub { font-family: 'Silkscreen', monospace; font-size: 0.78rem; line-height: 1.55; color: #b9c7d2; margin: 0 0 14px; }
.lp-ca-sub b { color: #ecf0f1; }
.lp-ca-box {
  display: flex; flex-direction: column; gap: 6px;
  background: #0e1620; border: 2px dashed #7a3fb0; border-radius: 6px;
  padding: 14px 14px; margin-bottom: 14px;
}
.lp-ca-label { font-family: 'Press Start 2P', monospace; font-size: 0.5rem; letter-spacing: 1px; color: #b066ff; }
.lp-ca-code {
  font-family: 'Silkscreen', monospace; font-size: 0.82rem; color: #8aa0b2;
  word-break: break-all; letter-spacing: 0.5px;
}

/* ---- hero lead + highlight chips (replaces the old feature carousel) ---- */
.lp-lead {
  font-family: 'Silkscreen', monospace; font-size: 0.84rem; line-height: 1.6;
  color: #cfe0ec; margin: 0 auto 18px; max-width: 46ch;
}
.lp-lead b { color: #ecf0f1; }
.lp-hl {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 0 0 22px;
}
.lp-hl-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Silkscreen', monospace; font-size: 0.72rem; color: #cfe0ec;
  background: rgba(8,12,18,0.5); border: 2px solid #0c1118; border-radius: 5px;
  box-shadow: inset 0 0 0 2px #2a3a4a; padding: 7px 11px;
}
.lp-hl-chip svg { width: 18px; height: 18px; shape-rendering: crispEdges; }
@media (max-width: 600px) { .lp-lead { font-size: 0.78rem; } .lp-hl-chip { font-size: 0.66rem; padding: 6px 9px; } }
