/* Fredoka (OFL-1.1, assets/fonts/LICENSE-fredoka.txt): huruf bulat tebal untuk HUD tema Cerah. */
@font-face { font-family: 'Fredoka'; src: url('assets/fonts/fredoka-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: block; }
@font-face { font-family: 'Fredoka'; src: url('assets/fonts/fredoka-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: block; }

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --navy: #0f2f52;
  --navy-deep: #0a1f38;
  --ice: #e8f6ff;
  --sun: #ffd23f;
  --red: #ff5a4e;
  --safe-t: max(10px, env(safe-area-inset-top));
  --safe-b: max(12px, env(safe-area-inset-bottom));
}

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #1d6fb0;
  color: var(--ice);
  font-family: 'Fredoka', 'Arial Rounded MT Bold', sans-serif;
  font-weight: 500;
}
body { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }

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

#hud { position: fixed; inset: 0; pointer-events: none; }
#topbar {
  position: absolute; top: var(--safe-t); left: 12px; right: 70px;
  display: flex; gap: 8px;
}
.chip {
  padding: 4px 12px; border-radius: 10px;
  background: rgba(10, 31, 56, 0.78);
  border: 2px solid rgba(255, 255, 255, 0.18);
  font-weight: 700; font-size: 17px; letter-spacing: 0.5px; line-height: 1.3; white-space: nowrap;
}
#hud-alive::before { content: '● '; color: var(--sun); }

#banner {
  position: absolute; top: calc(var(--safe-t) + 44px); left: 0; right: 0;
  text-align: center;
}
#banner-text {
  font-weight: 700; font-size: clamp(30px, 9vw, 46px); line-height: 1.05; letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 3px 0 var(--navy), 2px 0 0 var(--navy), -2px 0 0 var(--navy), 0 -2px 0 var(--navy), 0 6px 14px rgba(0,0,0,0.35);
  transform-origin: 50% 60%;
}
#banner-text.pop { animation: pop 0.38s cubic-bezier(.2,1.6,.4,1); }
#banner-text.warn { color: var(--sun); }
#banner-sub { margin-top: 2px; font-size: 15px; font-weight: 500; color: #dff1ff; text-shadow: 0 2px 0 var(--navy); }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

#feed {
  position: absolute; top: calc(var(--safe-t) + 132px); left: 10px; list-style: none;
  display: flex; flex-direction: column; gap: 4px; max-width: 70vw;
}
#feed li {
  padding: 3px 9px; border-radius: 8px; background: rgba(10, 31, 56, 0.72);
  font-size: 13px; font-weight: 500; animation: slidein 0.25s ease-out;
}
#feed li b { font-weight: 700; }
@keyframes slidein { from { transform: translateX(-20px); opacity: 0; } to { transform: none; opacity: 1; } }

#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.tag {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -100%);
  padding: 1px 6px; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: rgba(10, 31, 56, 0.6); color: #fff;
}
.tag.you { background: var(--sun); color: var(--navy-deep); font-size: 13px; }
.tag.locked::after { content: ' ✓'; color: #8dff9e; }
.tag.you.locked::after { color: #0a7a2a; }

.icon-btn {
  position: fixed; top: calc(var(--safe-t) - 4px); right: 10px;
  width: 48px; height: 48px; border: 2px solid rgba(255,255,255,0.18); border-radius: 14px;
  background: rgba(10, 31, 56, 0.78); color: var(--ice); font-size: 22px; cursor: pointer;
}
.pill-btn {
  position: fixed; top: calc(var(--safe-t) - 4px); right: 66px; height: 48px; padding: 0 12px;
  display: flex; align-items: center; gap: 6px;
  border: 2px solid rgba(255,255,255,0.18); border-radius: 14px;
  background: rgba(10, 31, 56, 0.78); color: var(--ice);
  font: 700 15px/1 'Fredoka', sans-serif; letter-spacing: 1px; cursor: pointer;
}
.pill-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cam-ico { position: relative; width: 18px; height: 12px; border-radius: 3px; background: var(--sun); }
.cam-ico::after { content: ''; position: absolute; left: 5px; top: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--navy-deep); }
.cam-ico::before { content: ''; position: absolute; right: -5px; top: 3px; border: 3px solid transparent; border-left: 5px solid var(--sun); border-right: 0; }
.pill-btn[data-mode="top"] .cam-ico { background: #8fd3ff; }
.icon-btn[aria-pressed="true"] { opacity: 0.5; text-decoration: line-through; }

#controls {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 10px 14px var(--safe-b);
  background: linear-gradient(to top, rgba(10, 31, 56, 0.92) 70%, rgba(10, 31, 56, 0));
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
#hint { font-size: 14px; color: #cfe8ff; text-align: center; min-height: 20px; }
#controls .row { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 420px; }
.round-btn {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid #fff; background: var(--navy); color: #fff;
  font: 700 28px/1 'Fredoka', sans-serif; cursor: pointer;
}
#power { flex: 1; min-width: 0; }
#power-label { font-size: 14px; letter-spacing: 1px; margin-bottom: 3px; }
#power-label b { color: var(--sun); font-size: 20px; }
#power-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; height: 22px; }
#power-bar i { border-radius: 4px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.18); }
#power-bar i.on { border-color: rgba(0,0,0,0.25); }

.btn {
  min-width: 180px; min-height: 54px; padding: 0 28px; border: 0; border-radius: 16px;
  background: var(--sun); color: var(--navy-deep);
  font: 700 22px/1 'Fredoka', sans-serif; letter-spacing: 1.5px; cursor: pointer;
  box-shadow: 0 5px 0 #c99a12;
}
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #c99a12; }
.btn:disabled { opacity: 0.55; cursor: default; }
#lock { width: 100%; max-width: 420px; }
#lock.done { background: #8fd3a0; box-shadow: 0 5px 0 #4f9a63; }
.btn:focus-visible, .icon-btn:focus-visible, .round-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

#spectate {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 10px 14px var(--safe-b);
  background: linear-gradient(to top, rgba(10, 31, 56, 0.92) 70%, rgba(10, 31, 56, 0));
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
#spec-label { font-size: 13px; letter-spacing: 3px; color: #cfe8ff; }
#spectate .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; max-width: 420px; }
#spec-name { flex: 1; text-align: center; font-weight: 700; font-size: 26px; letter-spacing: 1px; text-shadow: 0 2px 0 var(--navy-deep); }
#spec-again { width: 100%; max-width: 420px; }
.round-btn:disabled { opacity: 0.35; }
.tag.watch { outline: 2px solid #fff; background: rgba(10, 31, 56, 0.9); }

.overlay {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(8, 28, 52, 0.55);
}
.panel {
  width: 100%; max-width: 400px; padding: 26px 22px 24px; border-radius: 22px;
  background: var(--navy); border: 3px solid rgba(255,255,255,0.2);
  text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,0.4);
}
.panel h1 { margin-bottom: 10px; font-weight: 700; font-size: clamp(38px, 11vw, 56px); letter-spacing: 1px; color: var(--sun); text-shadow: 0 4px 0 var(--navy-deep); }
.panel p { margin-bottom: 20px; color: #d6ebff; font-size: 17px; line-height: 1.45; white-space: pre-line; }

.maps { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; justify-content: flex-start; }
.maps::-webkit-scrollbar { display: none; }
.map-chip {
  flex: none; width: 76px; padding: 6px 4px 5px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06); color: var(--ice); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 12px/1.1 'Fredoka', sans-serif;
}
.map-chip canvas, .map-rand { width: 52px; height: 52px; border-radius: 6px; image-rendering: pixelated; }
.map-rand { display: grid; place-items: center; background: rgba(255,255,255,0.12); font-size: 28px; color: var(--sun); }
.map-chip[aria-pressed="true"] { border-color: var(--sun); background: rgba(255, 210, 63, 0.14); }
.map-chip:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.map-blurb { min-height: 34px; margin-top: 8px; font-size: 15px; color: #cfe3f6; line-height: 1.3; text-align: center; }

#debug {
  position: fixed; left: 8px; bottom: 210px; padding: 4px 8px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.6); font: 12px ui-monospace, Menlo, monospace; white-space: pre;
}

/* ---------- lobi ---------- */
.ico-coin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: -2px; margin-right: 5px;
  background: radial-gradient(circle at 35% 35%, #fff3b0 0 18%, #ffd23f 19% 62%, #d99a12 63%); box-shadow: inset 0 0 0 2px #b9780a; }
.ico-dia { display: inline-block; width: 13px; height: 13px; margin: 0 7px 0 2px; transform: rotate(45deg); vertical-align: -1px;
  background: linear-gradient(135deg, #e6fbff, #5fd8ff 55%, #2a8fd8); box-shadow: inset 0 0 0 1.5px #1d6fb0; }
#lobby { position: fixed; inset: 0; pointer-events: none; }
#lobby > * { pointer-events: auto; }
.lobby-top { position: absolute; top: var(--safe-t); left: 12px; display: flex; gap: 8px; }
.wallet { padding: 6px 12px 6px 9px; border-radius: 12px; background: rgba(10, 31, 56, 0.8); border: 2px solid rgba(255,255,255,0.18);
  font-weight: 700; font-size: 18px; display: flex; align-items: center; }
.wallet.dia { opacity: 0.75; }
.lobby-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 14px var(--safe-b);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: linear-gradient(to top, rgba(10, 31, 56, 0.95) 62%, rgba(10, 31, 56, 0)); padding-top: 40px; }
.lobby-hero { text-align: center; max-width: 420px; }
.hero-tag { display: flex; gap: 8px; justify-content: center; align-items: center; }
#hero-stars { color: var(--sun); letter-spacing: 2px; font-size: 16px; }
#hero-name { font-weight: 700; font-size: 34px; line-height: 1.1; text-shadow: 0 3px 0 var(--navy-deep); }
#hero-skill { font-size: 14px; color: #cfe3f6; line-height: 1.3; min-height: 36px; }
#hero-skill b { color: #fff; }
.rar { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #0a1f38; }
.rar.biasa { background: #cfd8e3; } .rar.langka { background: #4fc3ff; } .rar.epik { background: #c07bff; } .rar.legenda { background: #ffc928; }
.rar.big { font-size: 18px; padding: 4px 14px; }
.lobby-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; max-width: 420px; }
.nav-btn { position: relative; min-height: 50px; border-radius: 14px; border: 2px solid rgba(255,255,255,0.22); background: #17406b;
  color: #fff; font: 700 14px/1 'Fredoka', sans-serif; letter-spacing: 1px; cursor: pointer; }
.nav-btn .dot { position: absolute; top: -4px; right: -4px; width: 14px; height: 14px; border-radius: 50%; background: #ff4a4a; border: 2px solid #fff; }
.lobby-sub { display: flex; gap: 8px; width: 100%; max-width: 420px; }
.sub-btn { flex: 1; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08);
  color: #e8f4ff; font: 500 14px/1.1 'Fredoka', sans-serif; letter-spacing: 0.5px; cursor: pointer; }
.sub-btn b { color: var(--sun); font-weight: 700; }
.sub-btn:disabled { opacity: 0.45; cursor: default; }
.sub-btn.small, .btn.small { flex: none; min-height: 44px; min-width: 92px; padding: 0 12px; font-size: 15px; }
.btn-play { width: 100%; max-width: 420px; min-height: 60px; font-size: 28px; letter-spacing: 3px; }

/* ---------- panel ---------- */
.sheet { position: fixed; inset: 0; background: rgba(5, 15, 30, 0.55); display: flex; align-items: flex-end; justify-content: center; z-index: 5; }
.sheet-card { width: 100%; max-width: 520px; max-height: 86vh; display: flex; flex-direction: column; background: var(--navy);
  border-radius: 22px 22px 0 0; border: 2px solid rgba(255,255,255,0.18); border-bottom: 0; padding-bottom: var(--safe-b); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.sheet-head h2 { font-size: 22px; letter-spacing: 2px; color: var(--sun); }
.icon-btn.small { position: static; width: 44px; height: 44px; font-size: 18px; }
#sheet-body { overflow-y: auto; padding: 4px 14px 14px; }
.sheet-sub { margin: 14px 2px 8px; font-size: 13px; letter-spacing: 2px; color: #9cc8ee; }
.note { margin-top: 12px; font-size: 13px; color: #a9c6e2; text-align: center; line-height: 1.35; }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.char-card { position: relative; padding: 8px 8px 10px; border-radius: 14px; border: 2px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05);
  color: #fff; font: 500 13px/1.2 'Fredoka', sans-serif; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
.char-card.selected { border-color: var(--sun); background: rgba(255, 210, 63, 0.12); }
.char-card.selected::after { content: 'DIPAKAI'; position: absolute; top: 6px; right: 6px; font-size: 11px; font-weight: 700; color: var(--navy-deep); background: var(--sun); border-radius: 5px; padding: 1px 5px; }
.char-card.locked { opacity: 0.75; }
.thumb { width: 96px; height: 96px; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #2c5f93, #12304f); overflow: hidden; }
.thumb img { width: 100%; height: 100%; display: block; }
.thumb.locked img { filter: brightness(0) opacity(0.55); }
.cc-name { font-size: 17px; font-weight: 700; }
.cc-stars { color: var(--sun); letter-spacing: 1px; }
.cc-cards, .cc-skill { color: #a9c6e2; font-size: 12px; }
.cc-skill { color: #fff; }
.egg-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.egg-card { padding: 12px 10px; border-radius: 16px; background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.15);
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.egg-card.soon { opacity: 0.55; }
.egg-art { width: 74px; height: 92px; border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; position: relative;
  background: radial-gradient(circle at 35% 30%, #ffffff, #fff1cf 45%, #e8c98a); box-shadow: inset -6px -8px 0 rgba(0,0,0,0.08); }
.egg-art::before, .egg-art::after { content: ''; position: absolute; border-radius: 50%; background: #f2b632; }
.egg-art::before { width: 16px; height: 13px; left: 16px; top: 28px; } .egg-art::after { width: 12px; height: 10px; right: 16px; top: 52px; }
.egg-art.dia { background: radial-gradient(circle at 35% 30%, #ffffff, #b9f0ff 45%, #4fb6e8); }
.egg-art.dia::before, .egg-art.dia::after { background: #2a8fd8; }
.egg-title { font-weight: 700; font-size: 18px; }
.egg-odds { font-size: 12px; color: #cfe3f6; line-height: 1.3; }
.egg-pity { font-size: 12px; color: var(--sun); line-height: 1.3; }
.egg-buy { width: 100%; min-width: 0; min-height: 48px; font-size: 17px; letter-spacing: 1px; padding: 0 8px; }
.egg-free { width: 100%; flex: none; font-size: 13px; }
.egg-free.ready { border-color: #8dff9e; color: #8dff9e; }
.pool { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pool-item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; padding: 4px; border-radius: 10px; border: 2px solid transparent; }
.pool-item .thumb { width: 60px; height: 60px; }
.pool-item.langka { border-color: rgba(79,195,255,0.6); } .pool-item.epik { border-color: rgba(192,123,255,0.7); } .pool-item.legenda { border-color: rgba(255,201,40,0.9); }
.shop-list { display: flex; flex-direction: column; gap: 10px; }
.shop-row { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.12); }
.shop-row.equipped { border-color: var(--sun); }
.shop-info { flex: 1; min-width: 0; }
.shop-name { font-weight: 700; font-size: 18px; }
.shop-desc { font-size: 13px; color: #cfe3f6; line-height: 1.3; }
.shop-own { font-size: 12px; color: var(--sun); margin-top: 2px; }
.shop-act { display: flex; flex-direction: column; gap: 6px; }
.login-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 10px; }
.login-day { padding: 6px 2px; border-radius: 10px; background: rgba(255,255,255,0.06); text-align: center; border: 2px solid transparent; }
.login-day.done { opacity: 0.45; } .login-day.today { border-color: var(--sun); background: rgba(255,210,63,0.14); }
.ld-n { font-size: 11px; color: #a9c6e2; } .ld-r { font-size: 13px; font-weight: 700; }
.sheet .btn { width: 100%; min-width: 0; }
.mission { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.06); margin-bottom: 8px; }
.mission.claimed { opacity: 0.55; }
.mission-info { flex: 1; min-width: 0; }
.mission-text { font-size: 15px; font-weight: 700; }
.mission-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.12); margin: 6px 0 2px; overflow: hidden; }
.mission-bar i { display: block; height: 100%; background: var(--sun); }
.mission-prog { font-size: 12px; color: #a9c6e2; }
.mission .btn.small, .mission .sub-btn.small { width: auto; }

/* ---------- menetas ---------- */
#hatch { position: fixed; inset: 0; z-index: 6; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 0 16px var(--safe-b); }
#hatch-tip { margin-bottom: 18vh; font-size: 16px; color: #e8f4ff; text-shadow: 0 2px 0 var(--navy-deep); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }
#hatch-card { width: 100%; max-width: 440px; padding: 16px; border-radius: 20px; background: rgba(10, 31, 56, 0.92); border: 2px solid rgba(255,255,255,0.18);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; animation: rise 0.35s ease-out; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
#hatch-name { font-weight: 700; font-size: 38px; line-height: 1; text-shadow: 0 3px 0 var(--navy-deep); }
#hatch-note { font-weight: 700; font-size: 17px; color: #fff; }
#hatch-skill { font-size: 14px; color: #cfe3f6; line-height: 1.35; }
#hatch-card .row { display: flex; gap: 8px; width: 100%; margin-top: 6px; }
#hatch-card .btn { flex: 1.4; min-width: 0; font-size: 17px; padding: 0 8px; }
#flash { position: fixed; inset: 0; background: #fff; z-index: 7; pointer-events: none; animation: flash 0.6s ease-out forwards; }
@keyframes flash { from { opacity: 0.95; } to { opacity: 0; } }

/* ---------- hasil ---------- */
#result { z-index: 4; }
#res-title { color: #ff8a7a; } #res-title.win { color: var(--sun); }
#res-sub { margin-bottom: 12px !important; white-space: pre-line; }
#res-lines { list-style: none; text-align: left; margin: 0 auto 8px; max-width: 300px; }
#res-lines li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 16px;
  opacity: 0; animation: rise 0.3s ease-out forwards; }
#res-total { font-weight: 700; font-size: 30px; color: var(--sun); margin: 8px 0; }
.res-mission { font-size: 14px; color: #8dff9e; margin-bottom: 4px; }
#result .row { display: flex; gap: 10px; margin-top: 14px; }
#result .btn { flex: 1.5; min-width: 0; }

#item-chip { position: fixed; top: calc(var(--safe-t) + 44px); left: 12px; pointer-events: none; color: var(--sun); font-size: 13px; }
#item-chip.used { text-decoration: line-through; opacity: 0.6; }
#toast { position: fixed; left: 50%; top: 22%; transform: translateX(-50%); padding: 10px 18px; border-radius: 14px; background: rgba(10,31,56,0.92);
  border: 2px solid var(--sun); font-weight: 700; font-size: 18px; z-index: 8; pointer-events: none; }
#toast.show { animation: rise 0.25s ease-out; }

#feed li.skill { border-left: 3px solid var(--sun); }

/* ---------- poles Fase 1 ---------- */
.lvl { padding: 5px 10px; border-radius: 12px; background: rgba(10, 31, 56, 0.8); border: 2px solid rgba(255,255,255,0.18);
  display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 72px; }
.lvl b { font-size: 14px; line-height: 1; color: #fff; }
.lv-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.15); overflow: hidden; }
.lv-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7be0a0, #4fc3ff); transition: width 0.6s ease-out; }
.wallet.bump { animation: bump 0.35s ease-out; }
@keyframes bump { 40% { transform: scale(1.18); } }
.guide { position: fixed; z-index: 3; padding: 8px 12px; border-radius: 12px; background: #fff; color: var(--navy-deep);
  font-weight: 700; font-size: 14px; pointer-events: none; transform: translate(-50%, -100%); animation: bob 1s ease-in-out infinite; white-space: nowrap; }
.guide::after { content: ''; position: absolute; left: 50%; bottom: -8px; margin-left: -8px; border: 8px solid transparent; border-top-color: #fff; border-bottom: 0; }
@keyframes bob { 50% { margin-top: -6px; } }
.nav-btn.pulse, .btn.pulse { animation: glow 1.1s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.55), 0 5px 0 #c99a12; } }
.egg-bonus { width: 100%; min-width: 0; min-height: 46px; font-size: 15px; background: linear-gradient(180deg, #ffe58a, #ffc928); }
#res-xp { font-size: 15px; color: #9fe0ff; margin-bottom: 6px; }
#res-xp .lvup { display: block; color: var(--sun); font-weight: 700; font-size: 17px; margin-top: 4px; }
.tag .sk { display: none; font-size: 10px; font-weight: 500; color: #ffe08a; text-align: center; }
.tag.show-sk .sk { display: block; }
.tag.peek { outline: 2px dashed #9fe0ff; }
#skill-chip { position: fixed; top: calc(var(--safe-t) + 44px); left: 12px; pointer-events: none; color: #9fe0ff; font-size: 13px; }
#item-chip:not([hidden]) + #skill-chip { top: calc(var(--safe-t) + 76px); }
#skill-chip.used { opacity: 0.55; }

/* ---------- upgrade ---------- */
.power { font-size: 13px; font-weight: 700; color: #9fe0ff; letter-spacing: 0.5px; }
.train-btn { position: relative; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 2px solid var(--sun); background: rgba(255, 210, 63, 0.15);
  color: var(--sun); font: 700 13px/1 'Fredoka', sans-serif; letter-spacing: 1px; cursor: pointer; }
.train-btn .dot, .char-card .dot { position: absolute; top: -5px; right: -5px; width: 13px; height: 13px; border-radius: 50%; background: #ff4a4a; border: 2px solid #fff; }
.cc-power { font-size: 12px; color: #9fe0ff; font-weight: 700; }
.detail-head { display: flex; gap: 12px; align-items: center; }
.detail-head .thumb { width: 104px; height: 104px; flex: none; }
.dh-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dh-name { font-size: 26px; font-weight: 700; line-height: 1; }
.dh-stars { color: var(--sun); letter-spacing: 2px; }
.dh-skill { margin-top: 10px; font-size: 14px; color: #cfe3f6; line-height: 1.35; }
.dh-skill b { color: #fff; }
.dh-cards { margin-top: 6px; font-size: 13px; color: var(--sun); }
.up-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.06); margin-top: 8px; }
.up-info { flex: 1; min-width: 0; }
.up-name { font-weight: 700; font-size: 17px; letter-spacing: 1px; }
.up-desc { font-size: 12px; color: #cfe3f6; line-height: 1.3; }
.up-eff { font-size: 12px; color: #9fe0ff; margin-top: 2px; }
.pips { display: flex; gap: 4px; margin-top: 5px; }
.pips i { width: 18px; height: 8px; border-radius: 3px; background: rgba(255,255,255,0.14); }
.pips i.on { background: linear-gradient(90deg, #ffe58a, #ffc928); }
.pips i.lock { background: repeating-linear-gradient(45deg, rgba(255,255,255,0.12) 0 3px, transparent 3px 6px); }
.up-row .btn.small, .up-row .sub-btn.small { min-width: 104px; }
.up-row.flash { animation: upflash 0.5s ease-out; }
@keyframes upflash { 0% { background: rgba(255, 210, 63, 0.45); } 100% { background: rgba(255,255,255,0.06); } }
.back-btn { margin-bottom: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 2px solid rgba(255,255,255,0.2); background: transparent; color: #cfe3f6;
  font: 500 14px/1 'Fredoka', sans-serif; cursor: pointer; }
.detail-use { margin-top: 12px; }
.up-row .btn.small, .up-row .sub-btn.small { width: auto; flex: none; }
.hero-tag { flex-wrap: wrap; row-gap: 4px; }
#lobby > .guide { pointer-events: none; }
.guide.right { transform: translate(0, -50%); }
.guide.right::after { left: -8px; top: 50%; bottom: auto; margin: -8px 0 0; border: 8px solid transparent; border-right-color: #fff; border-left: 0; }

/* ========== TEMA CERAH (default, dipilih 2026-11-30) ==========
   Gaya HUD game simulator: warna cerah, teks putih bergaris tebal, tombol ikon bundar, panel putih berbingkai biru,
   tombol hijau/merah mengkilap. Ikon SVG digambar sendiri. Opsi lain diarsipkan di design/hud-arsip/. */
:root { --o: #1d3b57; --sky: #6ad1ff; --sun: #ffd23f; --navy: #1d3b57; --navy-deep: #1d3b57;
  /* garis tepi teks: 16 arah + sedikit blur supaya pinggirannya halus (dulu 4-8 arah tanpa blur: bergerigi) */
  --stroke: 2.6px 0px 0.6px var(--o), 2.4px 0.99px 0.6px var(--o), 1.84px 1.84px 0.6px var(--o), 0.99px 2.4px 0.6px var(--o), 0px 2.6px 0.6px var(--o), -0.99px 2.4px 0.6px var(--o), -1.84px 1.84px 0.6px var(--o), -2.4px 0.99px 0.6px var(--o), -2.6px 0px 0.6px var(--o), -2.4px -0.99px 0.6px var(--o), -1.84px -1.84px 0.6px var(--o), -0.99px -2.4px 0.6px var(--o), -0px -2.6px 0.6px var(--o), 0.99px -2.4px 0.6px var(--o), 1.84px -1.84px 0.6px var(--o), 2.4px -0.99px 0.6px var(--o), 0 5px 0.6px var(--o);
  --stroke-s: 1.8px 0px 0.6px var(--o), 1.66px 0.69px 0.6px var(--o), 1.27px 1.27px 0.6px var(--o), 0.69px 1.66px 0.6px var(--o), 0px 1.8px 0.6px var(--o), -0.69px 1.66px 0.6px var(--o), -1.27px 1.27px 0.6px var(--o), -1.66px 0.69px 0.6px var(--o), -1.8px 0px 0.6px var(--o), -1.66px -0.69px 0.6px var(--o), -1.27px -1.27px 0.6px var(--o), -0.69px -1.66px 0.6px var(--o), -0px -1.8px 0.6px var(--o), 0.69px -1.66px 0.6px var(--o), 1.27px -1.27px 0.6px var(--o), 1.66px -0.69px 0.6px var(--o), 0 2.8px 0.6px var(--o); }
/* teks melayang bergaris tebal */
#banner-text, #hero-name, #spec-name, .panel h1, .sheet-head h2, #hatch-name, #res-total { color: #fff; text-shadow: var(--stroke); letter-spacing: 0.5px; }
#banner-text { font-size: clamp(34px, 10vw, 50px); } #banner-text.warn { color: #ffd23f; }
#banner-sub, #hint, #power-label, #spec-label, #hero-skill, #hero-stars, .power, #skill-chip, #item-chip { color: #fff; text-shadow: var(--stroke-s); }
#hero-skill b { color: #ffe066; } #power-label b { color: #ffe066; font-size: 22px; } .power { color: #bff0ff; }
/* chip/dompet: teks besar bergaris di atas pil biru langit */
.chip, .wallet, .lvl, #skill-chip, #item-chip { background: linear-gradient(180deg, #8fe0ff, #3fb3f0); color: #fff; border: 3px solid var(--o); border-radius: 999px; box-shadow: 0 3px 0 var(--o); text-shadow: var(--stroke-s); }
.wallet b, .lvl b { color: #fff; } .lv-bar { background: rgba(255,255,255,0.4); border: 2px solid var(--o); height: 9px; } .lv-bar i { background: linear-gradient(90deg, #ff4b4b, #ffb02e, #ffe03a, #43e04a, #3fc8ff, #b45cff); }
#hud-alive::before { color: #ffe03a; }
.icon-btn, .pill-btn { background: linear-gradient(180deg, #8fe0ff, #3fb3f0); color: #fff; border: 3px solid var(--o); box-shadow: 0 3px 0 var(--o); text-shadow: var(--stroke-s); }
#feed li { background: #fff; color: var(--o); border: 3px solid var(--o); border-radius: 14px; box-shadow: 0 3px 0 var(--o); }
/* label nama ala nametag: teks bergaris tanpa kotak */
.tag { background: none; color: #fff; text-shadow: var(--stroke-s); font-size: 13px; padding: 0; }
.tag.you { background: none; color: #ffe03a; } .tag .sk { color: #bff0ff; text-shadow: var(--stroke-s); }
/* tanpa panel gelap di bawah: biar cerah */
#controls, #spectate, .lobby-bottom { background: none; }
/* tombol mengkilap: hijau utama, merah bahaya, putih sekunder */
.btn, .sub-btn, .round-btn, .train-btn { --face: #39d64b; --hi: #7af08a; --lip: #1f9a30; --hiH: 10px;
  background: linear-gradient(var(--hi), var(--hi)) center 3px / calc(100% - 10px) var(--hiH) no-repeat, var(--face);
  border: 3px solid var(--o); border-radius: 16px; color: #fff; text-shadow: var(--stroke-s);
  box-shadow: 0 4px 0 0 var(--lip), 0 7px 0 0 var(--o), 0 10px 10px rgba(20, 40, 60, 0.25); }
.btn:active, .sub-btn:active, .round-btn:active, .train-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 0 var(--lip), 0 3px 0 0 var(--o); }
.btn-play { font-size: 32px; letter-spacing: 2px; min-height: 64px; }
.btn:disabled { --face: #c9d3dc; --hi: #dde5ec; --lip: #9aa6b2; opacity: 1; }
#lock.done { --face: #3fb3f0; --hi: #8fe0ff; --lip: #1f7fb8; }
#res-lobby, #hatch-close, #spec-again { --face: #ff4b55; --hi: #ff8a91; --lip: #c0202c; }
.sub-btn { --face: #ffffff; --hi: #ffffff; --lip: #b9c6d2; color: var(--o); text-shadow: none; }
.sub-btn b { color: #ff7a1f; }
.round-btn { --face: #ffffff; --hi: #ffffff; --lip: #b9c6d2; color: var(--o); text-shadow: none; border-radius: 50%; }
.train-btn { --face: #39d64b; --hi: #7af08a; --lip: #1f9a30; padding-left: 34px; position: relative; }
.train-btn::before { content: ''; position: absolute; left: 6px; top: 50%; width: 24px; height: 24px; margin-top: -12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 6 L56 32 H42 V56 H22 V32 H8 Z' fill='%234cd964' stroke='%231d3b57' stroke-width='3.5' stroke-linejoin='round'/%3E%3Cpath d='M28 34 V50' stroke='%23c8ffd2' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
#power-bar { gap: 0; padding: 3px; border: 3px solid var(--o); border-radius: 12px; background: rgba(255,255,255,0.35); height: 28px; }
#power-bar i { border: 0; border-radius: 0; background: rgba(29,59,87,0.15); } #power-bar i:first-child { border-radius: 7px 0 0 7px; } #power-bar i:last-child { border-radius: 0 7px 7px 0; }
/* nav lobi: tombol ikon bundar di kiri, label di bawah */
.lobby-nav { position: fixed; left: 8px; top: calc(var(--safe-t) + 64px); width: 78px; grid-template-columns: 1fr; gap: 6px; }
.nav-btn { min-height: 0; height: auto; padding: 66px 0 0; background: none; border: 0; box-shadow: none; color: #fff; text-shadow: var(--stroke-s); font-size: 14px; letter-spacing: 0; }
.nav-btn::before { content: ''; position: absolute; left: 50%; top: 0; width: 62px; height: 62px; margin-left: -31px; border-radius: 50%;
  border: 3.5px solid var(--o); box-shadow: inset 0 0 0 3px rgba(255,255,255,0.55), 0 4px 0 var(--o);
  background-size: 64% auto, auto; background-position: center 55%, center; background-repeat: no-repeat; }
.nav-btn[data-sheet='chars']::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M14 26 L16 8 L28 18 Z M50 26 L48 8 L36 18 Z' fill='%23ffcf3a' stroke='%231d3b57' stroke-width='3.5' stroke-linejoin='round'/%3E%3Ccircle cx='32' cy='36' r='21' fill='%23ffcf3a' stroke='%231d3b57' stroke-width='3.5'/%3E%3Cellipse cx='32' cy='44' rx='12' ry='8' fill='%23fff4d2'/%3E%3Ccircle cx='24' cy='33' r='4.5' fill='%231d3b57'/%3E%3Ccircle cx='40' cy='33' r='4.5' fill='%231d3b57'/%3E%3Ccircle cx='25.5' cy='31.5' r='1.6' fill='%23fff'/%3E%3Ccircle cx='41.5' cy='31.5' r='1.6' fill='%23fff'/%3E%3Cpath d='M28 42 Q32 46 36 42' fill='none' stroke='%231d3b57' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='17' cy='41' r='3' fill='%23ff8f9e'/%3E%3Ccircle cx='47' cy='41' r='3' fill='%23ff8f9e'/%3E%3C/svg%3E"), radial-gradient(circle at 50% 30%, #9fe6ff, #2f9be8); }
.nav-btn[data-sheet='eggs']::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 6 C46 6 54 26 54 38 C54 51 44 58 32 58 C20 58 10 51 10 38 C10 26 18 6 32 6 Z' fill='%23fff4dc' stroke='%231d3b57' stroke-width='3.5'/%3E%3Cpath d='M20 20 C24 14 28 12 32 12' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round'/%3E%3Ccircle cx='40' cy='30' r='5' fill='%23f2a63a'/%3E%3Ccircle cx='22' cy='40' r='4' fill='%23f2a63a'/%3E%3Ccircle cx='36' cy='47' r='3.5' fill='%23f2a63a'/%3E%3C/svg%3E"), radial-gradient(circle at 50% 30%, #ffe08a, #ff9a2e); }
.nav-btn[data-sheet='shop']::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='13' y='30' width='38' height='24' rx='3' fill='%235ab0f2' stroke='%231d3b57' stroke-width='3.5'/%3E%3Crect x='26' y='38' width='12' height='16' fill='%23fff' stroke='%231d3b57' stroke-width='3'/%3E%3Cpath d='M8 22 L14 10 H50 L56 22 Q56 30 49 30 Q44 30 43 25 Q41 30 36.5 30 Q32 30 32 25 Q31 30 27.5 30 Q23 30 21 25 Q20 30 15 30 Q8 30 8 22 Z' fill='%23f24b4b' stroke='%231d3b57' stroke-width='3.5' stroke-linejoin='round'/%3E%3Cpath d='M21 11 L19 25 M32 10 V25 M43 11 L45 25' stroke='%23fff' stroke-width='5'/%3E%3C/svg%3E"), radial-gradient(circle at 50% 30%, #9fe6ff, #2f9be8); }
.nav-btn[data-sheet='missions']::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='14' y='10' width='36' height='44' rx='4' fill='%23ffe7b0' stroke='%231d3b57' stroke-width='3.5'/%3E%3Crect x='10' y='6' width='44' height='9' rx='4.5' fill='%23e0a24a' stroke='%231d3b57' stroke-width='3.5'/%3E%3Crect x='10' y='49' width='44' height='9' rx='4.5' fill='%23e0a24a' stroke='%231d3b57' stroke-width='3.5'/%3E%3Cpath d='M21 31 L29 39 L44 23' fill='none' stroke='%232fbf3a' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), radial-gradient(circle at 50% 30%, #9fe6ff, #2f9be8); }
.nav-btn .dot { top: 0; right: 6px; width: 18px; height: 18px; border: 3px solid var(--o); }
.nav-btn.pulse::before { animation: navbounce 0.9s ease-in-out infinite; } @keyframes navbounce { 50% { transform: translateY(-4px) scale(1.05); } }
.nav-btn.pulse { animation: none; box-shadow: none; }
/* panel putih berbingkai biru langit, judul menonjol, X merah */
.overlay { background: rgba(29, 59, 87, 0.35); }
.panel, .sheet-card, #hatch-card { background: #fff; color: var(--o); border: 3px solid var(--o); box-shadow: inset 0 0 0 6px var(--sky), 0 6px 0 var(--o); border-radius: 22px; }
.sheet-card { border-radius: 22px 22px 0 0; border-bottom: 0; box-shadow: inset 0 0 0 6px var(--sky); padding-top: 4px; }
.sheet-head { margin-top: -26px; } .sheet-head h2 { font-size: 34px; }
.sheet { padding-top: 30px; }
#sheet-close { --face: #ff4b55; background: linear-gradient(#ff8a91, #ff8a91) center 3px / calc(100% - 8px) 8px no-repeat, #ff4b55; border: 3px solid var(--o); border-radius: 12px; color: #fff; text-shadow: var(--stroke-s); box-shadow: 0 3px 0 #c0202c, 0 6px 0 var(--o); }
.panel h1 { font-size: clamp(40px, 12vw, 56px); }
.panel p, #res-lines li, .shop-desc, .up-desc, .egg-odds, .mission-prog, .ld-n, .cc-cards, .dh-skill, #hatch-skill, .note, #hatch-note { color: #35607f; }
#res-lines li b, .cc-skill, .cc-power, .dh-cards, .up-eff, .shop-own, .egg-pity { color: #1f9a30; }
#res-xp { color: #2f9be8; } .res-mission { color: #1f9a30; }
.char-card, .egg-card, .shop-row, .mission, .login-day, .up-row { background: #eaf8ff; color: var(--o); border: 3px solid var(--o); border-radius: 16px; box-shadow: 0 3px 0 var(--o); }
.char-card.selected { background: #fff6c2; }
.thumb { background: radial-gradient(circle at 50% 35%, #c9f1ff, #6ad1ff); border: 3px solid var(--o); border-radius: 50%; }
.cc-name, .dh-name, .egg-title, .shop-name, .mission-text, .up-name { color: var(--o); }
.sheet .sub-btn, .panel .sub-btn { color: var(--o); }
.rar { border: 2px solid var(--o); color: var(--o); }
.map-chip { background: #eaf8ff; color: var(--o); border: 3px solid var(--o); box-shadow: 0 3px 0 var(--o); } .map-chip[aria-pressed='true'] { background: #fff6c2; }
#toast { background: #fff; color: var(--o); border: 3px solid var(--o); box-shadow: inset 0 0 0 4px var(--sky), 0 4px 0 var(--o); }
.guide { background: #fff; color: var(--o); border: 3px solid var(--o); } .guide::after { border-top-color: var(--o); }
#map-btn { padding-left: 38px; position: relative; } #map-btn::before { content: ''; position: absolute; left: 8px; top: 50%; width: 24px; height: 24px; margin-top: -12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M8 14 L24 8 L40 14 L56 8 V50 L40 56 L24 50 L8 56 Z' fill='%238fdc7a' stroke='%231d3b57' stroke-width='3.5' stroke-linejoin='round'/%3E%3Cpath d='M24 8 V50 M40 14 V56' stroke='%231d3b57' stroke-width='3'/%3E%3Ccircle cx='33' cy='28' r='5' fill='%23f24b4b' stroke='%231d3b57' stroke-width='2.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.guide.right::after { border-right-color: var(--o); border-top-color: transparent; }
.lobby-nav { gap: 14px; width: 74px; top: calc(var(--safe-t) + 60px); }
.nav-btn { padding-top: 60px; font-size: 13px; }
.nav-btn::before { width: 56px; height: 56px; margin-left: -28px; }
/* penyesuaian ukuran untuk Fredoka (lebih lebar dari font sebelumnya) */
.btn, .sub-btn, .nav-btn, .chip, .wallet b { white-space: nowrap; }
.egg-buy { font-size: 15px; letter-spacing: 0.5px; padding: 0 6px; }
.egg-free { font-size: 12px; white-space: normal; line-height: 1.15; }
#hatch-card .row .sub-btn { flex: 0.8; padding: 0 6px; font-size: 14px; }
#hatch-card .btn { flex: 1.5; font-size: 15px; letter-spacing: 0.5px; }
#result .btn, #result .sub-btn { font-size: 18px; letter-spacing: 0.5px; }
.sheet-head h2 { font-size: 28px; line-height: 1.05; }
.lobby-nav { gap: 18px; }
.nav-btn { font-size: 12px; }
#hero-name { font-size: 32px; }
.btn-play { font-size: 30px; }
#lock { font-size: 22px; }
.nav-btn { padding-top: 68px; }   /* label di bawah lingkaran + bayangannya (lingkaran digambar di atas teks) */
.lobby-nav { gap: 10px; }

/* ==========================================================================
   PERBAIKAN DETAIL TAMPILAN (QA visual 2026-11-30)
   ========================================================================== */
/* --- lobi: blok karakter --- */
.lobby-hero { display: flex; flex-direction: column; align-items: center; gap: 4px; }
#hero-name { order: 1; line-height: 1; margin-bottom: 2px; }
.hero-tag { order: 2; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: nowrap; }
#hero-skill { order: 3; max-width: 340px; min-height: 0; margin-top: 2px; }
.stars { display: inline-flex; gap: 1px; font-size: 17px; line-height: 1; text-shadow: none !important; }
.stars i { font-style: normal; color: rgba(29, 59, 87, 0.28); -webkit-text-stroke: 1.5px var(--o); paint-order: stroke fill; }
.stars i.on { color: #ffd23f; }
.lobby-hero .power, .hero-tag .power { padding: 2px 9px; border-radius: 999px; background: #fff; color: var(--o); border: 2.5px solid var(--o);
  box-shadow: 0 2px 0 var(--o); font-size: 12px; text-shadow: none; }
.hero-tag .rar { box-shadow: 0 2px 0 var(--o); }
/* tombol UPGRADE: lingkaran ikon di kolom kanan (pasangan kolom kiri) */
.lobby-side { position: fixed; right: 8px; top: calc(var(--safe-t) + 64px); width: 74px; display: flex; flex-direction: column; gap: 10px; }
.side-btn { position: relative; padding: 68px 0 0; background: none; border: 0; color: #fff; text-shadow: var(--stroke-s);
  font: 700 12px/1 'Fredoka', sans-serif; cursor: pointer; }
.side-btn::before { content: ''; position: absolute; left: 50%; top: 0; width: 56px; height: 56px; margin-left: -28px; border-radius: 50%;
  border: 3.5px solid var(--o); box-shadow: inset 0 0 0 3px rgba(255,255,255,0.55), 0 4px 0 var(--o);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 6 L56 32 H42 V56 H22 V32 H8 Z' fill='%234cd964' stroke='%231d3b57' stroke-width='3.5' stroke-linejoin='round'/%3E%3Cpath d='M28 34 V50' stroke='%23c8ffd2' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center 52% / 62% auto no-repeat, radial-gradient(circle at 50% 30%, #b9f7a8, #2fbf3a); }
.side-btn .dot { position: absolute; top: 0; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: #ff4a4a; border: 3px solid var(--o); }
.side-btn.pulse::before { animation: navbounce 0.9s ease-in-out infinite; }
/* PETA / ITEM: ikon + dua baris */
.pick { display: flex; align-items: center; gap: 8px; text-align: left; padding: 0 10px !important; min-height: 50px; }
.pick .pk-ico { flex: none; width: 28px; height: 28px; background-size: contain; background-repeat: no-repeat; }
#map-btn .pk-ico { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M8 14 L24 8 L40 14 L56 8 V50 L40 56 L24 50 L8 56 Z' fill='%238fdc7a' stroke='%231d3b57' stroke-width='3.5' stroke-linejoin='round'/%3E%3Cpath d='M24 8 V50 M40 14 V56' stroke='%231d3b57' stroke-width='3'/%3E%3Ccircle cx='33' cy='28' r='5' fill='%23f24b4b' stroke='%231d3b57' stroke-width='2.5'/%3E%3C/svg%3E"); } #item-btn .pk-ico { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M22 20 Q22 8 32 8 Q42 8 42 20' fill='none' stroke='%231d3b57' stroke-width='4'/%3E%3Crect x='10' y='18' width='44' height='38' rx='9' fill='%23ffb347' stroke='%231d3b57' stroke-width='3.5'/%3E%3Crect x='20' y='30' width='24' height='12' rx='4' fill='%23ffe0a8' stroke='%231d3b57' stroke-width='3'/%3E%3C/svg%3E"); }
.pick .pk-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.pick small { font-size: 11px; color: #5b7a92; letter-spacing: 1px; }
.pick b { font-size: 15px; color: #ff7a1f !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#map-btn::before { display: none; }
/* dompet & level */
.lvl { flex-direction: row; align-items: center; gap: 6px; min-width: 0; padding: 4px 10px; }
.lvl b { font-size: 15px; white-space: nowrap; }
.lv-bar { width: 44px; }
/* panel terbuka: sembunyikan menu lobi supaya tidak menyembul */
body.sheet-open .lobby-nav, body.sheet-open .lobby-side, body.sheet-open .lobby-bottom, body.sheet-open #guide { visibility: hidden; }
/* --- panel/sheet umum --- */
.sheet-sub { color: #2f6f99; font-weight: 700; }
.map-blurb { color: #35607f; }
.back-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 2.5px solid var(--o);
  background: #fff; color: var(--o); box-shadow: 0 3px 0 var(--o); font: 700 13px/1 'Fredoka', sans-serif; margin-bottom: 12px; }
.mission-bar { background: #cfe3ef; border: 2px solid var(--o); height: 12px; border-radius: 6px; }
.mission-bar i { background: linear-gradient(90deg, #ffd23f, #ff9a2e); }
.pips i { background: #cfe3ef; border: 1.5px solid var(--o); height: 10px; }
.pips i.on { background: linear-gradient(180deg, #7af08a, #39d64b); }
.pips i.lock { background: repeating-linear-gradient(45deg, #cfe3ef 0 3px, #eaf3f8 3px 6px); border-style: dashed; }
/* --- halaman upgrade --- */
.dh-skill { text-align: left; color: #35607f; }
.dh-skill b { color: var(--o) !important; }
.detail-head .power { color: var(--o); text-shadow: none; background: #fff; border: 2px solid var(--o); border-radius: 999px; padding: 1px 8px; font-size: 12px; align-self: flex-start; }
.detail-head .stars { font-size: 18px; }
.detail-use:disabled { --face: #eaf3f8; --hi: #eaf3f8; --lip: #b9c6d2; color: #5b7a92; text-shadow: none; font-size: 18px; }
/* --- kartu karakter --- */
.char-card .dot { top: -6px; left: -6px; right: auto; border: 3px solid var(--o); width: 16px; height: 16px; }
.cc-stars { font-size: 14px; }
/* --- telur --- */
.egg-free { color: var(--o); font-size: 13px !important; }
.egg-free.ready { --face: #ffd23f; --hi: #ffe98a; --lip: #c99a12; color: var(--o) !important; border-color: var(--o) !important; }
.egg-card.soon { opacity: 1; position: relative; }
.egg-card.soon > * { opacity: 0.55; }
.egg-card.soon::after { content: 'SEGERA HADIR'; position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-8deg);
  padding: 4px 12px; border-radius: 10px; background: #ffd23f; color: var(--o); border: 3px solid var(--o); box-shadow: 0 3px 0 var(--o);
  font: 700 15px/1 'Fredoka', sans-serif; white-space: nowrap; }
/* --- toko: ikon item --- */
.shop-ico { flex: none; width: 52px; height: 52px; border-radius: 14px; border: 2.5px solid var(--o); background: #fff center / 74% no-repeat; box-shadow: 0 2px 0 var(--o); }
.shop-ico.pelampung { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='24' fill='%23ff5a5a' stroke='%231d3b57' stroke-width='3.5'/%3E%3Ccircle cx='32' cy='32' r='11' fill='%23bfe9ff' stroke='%231d3b57' stroke-width='3.5'/%3E%3Cpath d='M15 15 L23 23 M49 15 L41 23 M15 49 L23 41 M49 49 L41 41' stroke='%23fff' stroke-width='8'/%3E%3Ccircle cx='32' cy='32' r='24' fill='none' stroke='%231d3b57' stroke-width='3.5'/%3E%3C/svg%3E"); } .shop-ico.turbo { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M36 4 L12 36 H30 L26 60 L52 26 H34 Z' fill='%23ffd23f' stroke='%231d3b57' stroke-width='3.5' stroke-linejoin='round'/%3E%3Cpath d='M33 12 L21 30' stroke='%23fff6c0' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.shop-ico.teropong { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='6' y='24' width='22' height='26' rx='9' fill='%235ab0f2' stroke='%231d3b57' stroke-width='3.5'/%3E%3Crect x='36' y='24' width='22' height='26' rx='9' fill='%235ab0f2' stroke='%231d3b57' stroke-width='3.5'/%3E%3Crect x='24' y='28' width='16' height='10' rx='3' fill='%233b7cc0' stroke='%231d3b57' stroke-width='3'/%3E%3Ccircle cx='17' cy='42' r='5' fill='%23d6f3ff'/%3E%3Ccircle cx='47' cy='42' r='5' fill='%23d6f3ff'/%3E%3Cpath d='M10 24 L14 12 H24 L26 24 M38 24 L40 12 H50 L54 24' fill='%233b7cc0' stroke='%231d3b57' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E"); } .shop-ico.magnet { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M10 10 H24 V34 Q24 42 32 42 Q40 42 40 34 V10 H54 V34 Q54 56 32 56 Q10 56 10 34 Z' fill='%23ff4b55' stroke='%231d3b57' stroke-width='3.5' stroke-linejoin='round'/%3E%3Crect x='10' y='10' width='14' height='10' fill='%23e6edf3' stroke='%231d3b57' stroke-width='3'/%3E%3Crect x='40' y='10' width='14' height='10' fill='%23e6edf3' stroke='%231d3b57' stroke-width='3'/%3E%3C/svg%3E"); }
/* --- peta: grid, tidak terpotong --- */
.maps { flex-wrap: wrap; overflow: visible; justify-content: center; gap: 10px; }
.map-chip { width: calc(33.3% - 10px); max-width: 110px; }
.map-chip canvas, .map-rand { width: 60px; height: 60px; }
/* --- menetas --- */
#hatch-name { font-size: 42px; }
#hatch-card { gap: 8px; }
#hatch-card .row { align-items: stretch; }
#hatch-again { white-space: nowrap; }
#hatch-again .ico-coin { margin: 0 4px 0 8px; }
/* --- saat main: chip item/skill di kanan bawah banner, tidak menabrak teks --- */
#item-chip, #skill-chip { left: auto !important; right: 10px; top: calc(var(--safe-t) + 132px) !important; font-size: 12px; }
#item-chip:not([hidden]) + #skill-chip { top: calc(var(--safe-t) + 164px) !important; }
#feed { max-width: 64vw; }
/* nama di kill feed: pil berwarna dengan teks gelap supaya warna terang (panda, kucing) tetap terbaca */
#feed li b { display: inline-block; padding: 0 6px; border-radius: 7px; color: var(--o) !important; border: 1.5px solid var(--o); line-height: 1.35; }
/* label nama tidak keluar layar */
.tag { max-width: 120px; }
/* layar hasil: sembunyikan HUD match di belakangnya */
body.result-open #hud, body.result-open #labels, body.result-open #cam, body.result-open #item-chip, body.result-open #skill-chip, body.result-open #spectate { visibility: hidden; }
/* jeda */
#overlay .panel h1 { margin-bottom: 18px; }
.egg-card.soon::after { top: auto; bottom: 18%; }
#feed li { line-height: 1.5; }
#feed li b { margin: 0 1px; }

/* ---------- tingkat Mitos ---------- */
.rar.mitos { background: linear-gradient(90deg, #ff8ad8, #ffd36a, #8af0c8, #8ac8ff, #c79bff) !important; color: var(--o) !important; }
.pool-item.mitos { border-color: #ff6ad5; background: linear-gradient(160deg, rgba(255,106,213,0.12), rgba(138,200,255,0.12)); }
.pool-item.legenda { background: rgba(255, 201, 40, 0.1); }
.char-card.mitos .thumb { background: radial-gradient(circle at 50% 35%, #fff0fb, #ffb3ec 55%, #b9a0ff); }
.char-card.legenda .thumb { background: radial-gradient(circle at 50% 35%, #fff8d6, #ffd96a); }
.char-card.mitos { border-color: #ff6ad5; }
.char-card.legenda { border-color: #e0a800; }

/* ==========================================================================
   HUD MATCH SEDERHANA + PENGATURAN (2026-11-30)
   ========================================================================== */
/* pil atas: ronde + sisa pemain, di tengah */
#topbar { left: 50% !important; right: auto !important; transform: translateX(-50%); top: var(--safe-t) !important;
  display: flex !important; align-items: center; gap: 10px; padding: 5px 16px; border-radius: 999px;
  background: linear-gradient(180deg, #8fe0ff, #3fb3f0); border: 3px solid var(--o); box-shadow: 0 3px 0 var(--o);
  color: #fff; text-shadow: var(--stroke-s); font-weight: 700; font-size: 16px; white-space: nowrap; }
#topbar::before { content: none !important; }
#hud-round, #hud-alive { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.tb-sep { width: 3px; height: 18px; border-radius: 2px; background: rgba(29, 59, 87, 0.45); }
#hud-alive { display: inline-flex; align-items: center; gap: 5px; }
#hud-alive::before { content: '' !important; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='20' r='12' fill='%23ffffff' stroke='%231d3b57' stroke-width='5'/%3E%3Cpath d='M10 58 Q10 36 32 36 Q54 36 54 58 Z' fill='%23ffffff' stroke='%231d3b57' stroke-width='5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
#banner { top: calc(var(--safe-t) + 50px) !important; }
/* tombol ikon bundar (jeda di match, gerigi di lobi) */
.round-ico { position: fixed; top: calc(var(--safe-t) - 2px); right: 10px; width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid var(--o); background: radial-gradient(circle at 50% 30%, #9fe6ff, #2f9be8); box-shadow: 0 3px 0 var(--o);
  cursor: pointer; z-index: 2; background-repeat: no-repeat; }
#pause-btn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='16' y='12' width='11' height='40' rx='4' fill='%23ffffff' stroke='%231d3b57' stroke-width='4'/%3E%3Crect x='37' y='12' width='11' height='40' rx='4' fill='%23ffffff' stroke='%231d3b57' stroke-width='4'/%3E%3C/svg%3E"), radial-gradient(circle at 50% 30%, #9fe6ff, #2f9be8); background-size: 52% auto, auto; background-position: center; }
#settings-btn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 6 l5 0 l2 7 l6 3 l6 -4 l4 4 l-4 6 l3 6 l7 2 l0 6 l-7 2 l-3 6 l4 6 l-4 4 l-6 -4 l-6 3 l-2 7 l-6 0 l-2 -7 l-6 -3 l-6 4 l-4 -4 l4 -6 l-3 -6 l-7 -2 l0 -6 l7 -2 l3 -6 l-4 -6 l4 -4 l6 4 l6 -3 Z' fill='%23e9f3fb' stroke='%231d3b57' stroke-width='4' stroke-linejoin='round'/%3E%3Ccircle cx='34.5' cy='34.5' r='9' fill='%237fc8f0' stroke='%231d3b57' stroke-width='4'/%3E%3C/svg%3E"), radial-gradient(circle at 50% 30%, #9fe6ff, #2f9be8); background-size: 64% auto, auto; background-position: center; }
.round-ico:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--o); }
body.result-open #pause-btn, body.sheet-open #settings-btn { visibility: hidden; }
/* info skill & item: label datar (bukan tombol) di atas petunjuk */
#status-row { display: flex; justify-content: center; gap: 16px; width: 100%; max-width: 420px; min-height: 0; }
#status-row:not(:has(.stat:not([hidden]))) { display: none; }
.stat { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-shadow: var(--stroke-s); font-weight: 700; font-size: 13px; letter-spacing: 0.5px;
  background: none; border: 0; box-shadow: none; padding: 0; pointer-events: none; }
.stat::before { content: ''; flex: none; width: 18px; height: 18px; background-size: contain; background-repeat: no-repeat; }
#stat-skill::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 4 L39 24 L60 25 L43 38 L49 59 L32 47 L15 59 L21 38 L4 25 L25 24 Z' fill='%23ffd23f' stroke='%231d3b57' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M28 20 L32 12 L35 20' fill='none' stroke='%23fff6c0' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E"); }
#stat-item::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M22 20 Q22 8 32 8 Q42 8 42 20' fill='none' stroke='%231d3b57' stroke-width='5'/%3E%3Crect x='10' y='18' width='44' height='38' rx='9' fill='%23ffb347' stroke='%231d3b57' stroke-width='4'/%3E%3Crect x='20' y='30' width='24' height='12' rx='4' fill='%23ffe0a8' stroke='%231d3b57' stroke-width='3.5'/%3E%3C/svg%3E"); }
.stat.used { opacity: 0.5; text-decoration: line-through; }
/* menu jeda */
#overlay .panel { display: flex; flex-direction: column; align-items: center; gap: 12px; }
#overlay .panel p:empty { display: none; }
#overlay .btn, #overlay .quit { width: 100%; max-width: 280px; min-height: 52px; }
#overlay .quit { --face: #ff4b55; --hi: #ff8a91; --lip: #c0202c; color: #fff; text-shadow: var(--stroke-s); flex: none; }
.quit-note { font-size: 13px; color: #5b7a92; }
/* panel pengaturan */
.set-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #eaf8ff; border: 3px solid var(--o);
  box-shadow: 0 3px 0 var(--o); margin-bottom: 10px; }
.set-info { flex: 1; min-width: 0; }
.set-name { font-weight: 700; font-size: 18px; color: var(--o); }
.set-desc { font-size: 12px; color: #35607f; line-height: 1.3; }
.toggle { flex: none; width: 84px; min-height: 46px; font-size: 18px !important; letter-spacing: 1px; }
.toggle.off { --face: #ff4b55; --hi: #ff8a91; --lip: #c0202c; }
.set-foot { margin-top: 6px; text-align: center; font-size: 12px; color: #5b7a92; }

/* ---------- tenaga: [−][ bar dengan label di dalam ][+], satu tinggi ---------- */
#controls { gap: 8px; }
#controls .row { align-items: center; gap: 8px; }
#controls .round-btn.step { width: 54px; height: 54px; border-radius: 16px !important; font-size: 0 !important; position: relative; flex: none; padding: 0; }
#pow-down::before, #pow-up::before, #pow-up::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 6px; margin: -5px 0 0 -11px;
  border-radius: 3px; background: var(--o); }
#pow-up::after { width: 6px; height: 22px; margin: -13px 0 0 -3px; }
#controls .round-btn.step:disabled { opacity: 0.45; }
#power { position: relative; height: 54px; flex: 1; min-width: 0; }
#power-bar { height: 54px !important; border-radius: 16px !important; padding: 5px !important; gap: 3px !important; box-sizing: border-box;
  background: rgba(255, 255, 255, 0.4) !important; border: 3px solid var(--o) !important; box-shadow: 0 3px 0 var(--o); }
#power-bar i { border-radius: 5px !important; border: 0 !important; }
#power-bar i.on { box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45); }
#power-bar i:first-child { border-radius: 10px 5px 5px 10px !important; }
#power-bar i:last-child { border-radius: 5px 10px 10px 5px !important; }
#power-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 !important;
  pointer-events: none; z-index: 1; font-size: 14px; letter-spacing: 1px; color: #fff; text-shadow: var(--stroke-s); }
#power-label b { font-size: 24px; color: #ffe066; line-height: 1; }
#hint { font-size: 13px; min-height: 0; }
/* ---------- kepala panel: judul & tombol tutup di dalam panel, rapi ---------- */
.sheet { padding-top: 0 !important; }
.sheet-card { padding-top: 0 !important; overflow: hidden; }
.sheet-head { position: relative; margin: 0 !important; padding: 16px 64px 12px !important; justify-content: center !important;
  background: linear-gradient(180deg, #6ad1ff, #3fb3f0); border-bottom: 3px solid var(--o); }
.sheet-head h2 { font-size: 26px !important; line-height: 1.1; text-align: center; margin: 0; }
#sheet-close { position: absolute !important; right: 12px; top: 50%; transform: translateY(-50%); width: 42px !important; height: 42px !important; }
#sheet-close:active { transform: translateY(calc(-50% + 2px)); }
#sheet-body { padding-top: 14px !important; }
/* warna ruas tenaga diisi lewat style inline: aturan dasar tanpa !important supaya tidak menimpanya */
#controls #power-bar i { background: rgba(29, 59, 87, 0.14); }
#overlay .quit { font-size: 18px !important; letter-spacing: 1px; }
.sheet .btn.toggle { width: 84px !important; min-width: 84px; flex: none; padding: 0; }
.sheet .btn.toggle.off { --face: #e3eaf0; --hi: #f2f6f9; --lip: #aab8c4; color: #5b7a92; text-shadow: none !important; }

/* ==========================================================================
   PAPAN PERINGKAT (2026-11-30)
   ========================================================================== */
.ico-trophy { display: inline-block; width: 20px; height: 20px; margin-right: 5px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M18 8 H46 V22 Q46 38 32 40 Q18 38 18 22 Z' fill='%23ffd23f' stroke='%231d3b57' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M18 13 H8 Q8 28 20 28 M46 13 H56 Q56 28 44 28' fill='none' stroke='%231d3b57' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M28 40 H36 V48 H28 Z' fill='%23e0a800' stroke='%231d3b57' stroke-width='3.5'/%3E%3Crect x='18' y='48' width='28' height='9' rx='3' fill='%23ffd23f' stroke='%231d3b57' stroke-width='4'/%3E%3Cpath d='M25 14 Q24 26 30 32' fill='none' stroke='%23fff6c0' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; vertical-align: -4px; }
.wallet.trophy { cursor: pointer; font: inherit; color: #fff; }
.wallet.trophy b { color: #fff !important; }
.nav-btn[data-sheet='rank']::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M18 8 H46 V22 Q46 38 32 40 Q18 38 18 22 Z' fill='%23ffd23f' stroke='%231d3b57' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M18 13 H8 Q8 28 20 28 M46 13 H56 Q56 28 44 28' fill='none' stroke='%231d3b57' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M28 40 H36 V48 H28 Z' fill='%23e0a800' stroke='%231d3b57' stroke-width='3.5'/%3E%3Crect x='18' y='48' width='28' height='9' rx='3' fill='%23ffd23f' stroke='%231d3b57' stroke-width='4'/%3E%3Cpath d='M25 14 Q24 26 30 32' fill='none' stroke='%23fff6c0' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E"), radial-gradient(circle at 50% 30%, #ffe08a, #ff9a2e); }
/* liga */
.lg { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; border: 2px solid var(--o); font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px; color: var(--o); white-space: nowrap; }
.lg.perunggu { background: #e8a66a; } .lg.perak { background: #d7dee8; } .lg.emas { background: #ffd23f; }
.lg.berlian { background: #8fe0ff; } .lg.juara { background: linear-gradient(90deg, #ff8ad8, #c79bff); }
/* tab */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.tab { min-height: 44px; border-radius: 12px; border: 3px solid var(--o); background: #fff; color: var(--o); font: 700 15px/1 'Fredoka', sans-serif;
  box-shadow: 0 3px 0 var(--o); cursor: pointer; }
.tab[aria-selected='true'] { background: linear-gradient(180deg, #8fe0ff, #3fb3f0); color: #fff; text-shadow: var(--stroke-s); }
.rk-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 2px 10px; font-size: 13px; color: #35607f; font-weight: 700; }
/* baris */
.rk-list { display: flex; flex-direction: column; gap: 6px; }
.rk-row { display: grid; grid-template-columns: 38px 40px 1fr auto; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 14px;
  background: #fff; border: 2.5px solid #c9dcea; }
.rk-row.me { border-color: var(--o); background: #fff6c2; box-shadow: 0 3px 0 var(--o); }
.rk-pos { text-align: center; font-weight: 700; font-size: 16px; color: var(--o); }
.rk-pos.m1, .rk-pos.m2, .rk-pos.m3 { width: 32px; height: 32px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; border: 2.5px solid var(--o); font-size: 15px; }
.rk-pos.m1 { background: #ffd23f; } .rk-pos.m2 { background: #d7dee8; } .rk-pos.m3 { background: #e8a66a; }
.rk-face { width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--o); background: radial-gradient(circle at 50% 35%, #c9f1ff, #6ad1ff); overflow: hidden; }
.rk-face img { width: 100%; height: 100%; display: block; }
.rk-name { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rk-name b { color: var(--o); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-name b small { color: #8aa3b8; font-size: 12px; font-weight: 500; margin-left: 2px; }
.rk-name .lg { align-self: flex-start; font-size: 10px; padding: 0 6px; }
.rk-score { display: flex; align-items: center; gap: 4px; font-weight: 700; color: var(--o); font-size: 16px; }
.rk-score .ico-trophy { width: 18px; height: 18px; margin: 0; }
.rk-gap { text-align: center; color: #8aa3b8; font-weight: 700; letter-spacing: 3px; }
.rk-empty { padding: 24px 10px; text-align: center; color: #35607f; font-size: 15px; line-height: 1.4; }
.rk-sticky { position: sticky; bottom: -14px; padding: 8px 0 14px; background: linear-gradient(to top, #fff 70%, rgba(255,255,255,0)); margin-top: 6px; }
/* form nama */
.join { display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: center; }
.join h3 { color: var(--o); font-size: 22px; }
.join p { color: #35607f; font-size: 14px; line-height: 1.4; }
.join input { min-height: 52px; padding: 0 14px; border-radius: 14px; border: 3px solid var(--o); font: 700 20px 'Fredoka', sans-serif; color: var(--o);
  text-align: center; background: #fff; box-shadow: inset 0 3px 0 rgba(29,59,87,0.1); }
.join input:focus { outline: 3px solid #ffd23f; outline-offset: 2px; }
.join .err { min-height: 18px; color: #d8343f; font-size: 13px; font-weight: 700; }
.rules { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--o); margin-top: 4px; }
.rules td { padding: 4px 6px; border-bottom: 1px solid #d6e6f0; } .rules td:last-child { text-align: right; font-weight: 700; }
.rename { margin-top: 10px; font-size: 13px !important; min-height: 40px !important; width: auto !important; align-self: center; padding: 0 14px !important; flex: none; }
/* layar hasil */
#res-rank { margin: 6px auto 4px; padding: 8px 12px; border-radius: 14px; background: #eaf8ff; border: 2.5px solid var(--o); max-width: 300px;
  display: flex; flex-direction: column; gap: 4px; align-items: center; color: var(--o); font-weight: 700; }
.rr-main { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.rr-main .up { color: #1f9a30; } .rr-main .down { color: #d8343f; }
.rr-sub { font-size: 13px; color: #35607f; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; }
.rr-league { font-size: 15px; color: #c66a00; }
#res-rank .sub-btn { width: auto; min-height: 40px; font-size: 13px; padding: 0 12px; flex: none; }
.lobby-sub .busy { opacity: 0.6; }
.rules td:first-child { text-align: left; }
.join .rules { margin-bottom: 4px; }
/* baris atas lobi: 5 elemen muat di 390px */
.lobby-top { right: 66px; gap: 6px !important; flex-wrap: nowrap; }
.lobby-top .wallet, .lobby-top .lvl { padding: 4px 9px 4px 7px !important; font-size: 16px; }
.lobby-top .wallet b { font-size: 16px; }
.lobby-top .ico-coin { width: 15px; height: 15px; margin-right: 4px; }
.lobby-top .ico-trophy { width: 17px; height: 17px; margin-right: 4px; }
.lobby-top .lv-bar { width: 30px; }
#toast { top: calc(var(--safe-t) + 64px) !important; max-width: calc(100vw - 120px); text-align: center; }
.rk-meta span:first-child { flex: 1; min-width: 0; }
.rk-meta span:last-child { flex: none; white-space: nowrap; }
.rename { display: block; margin: 12px auto 0 !important; }
.rr-main .arrow { color: #8aa3b8; font-size: 16px; }

/* Online: dompet & level disembunyikan sampai profil dari server termuat */
.wait-server .lobby-top { visibility: hidden; }

/* ---------- akun: username + PIN ---------- */
#settings-btn .dot { position: absolute; top: -3px; right: -3px; width: 16px; height: 16px; border-radius: 50%; background: #ff4a4a; border: 3px solid var(--o); }
.join .fld { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.join .fld > span { font-weight: 700; font-size: 14px; color: var(--o); padding-left: 4px; }
.join .fld > small { font-size: 12px; color: #5b7a92; padding-left: 4px; }
/* PIN gaya OTP: 6 kotak, input asli transparan di atasnya */
.join .otp { position: relative; }
.otp-cells { display: grid; grid-template-columns: repeat(6, minmax(0, 56px)); justify-content: center; gap: 8px; }
.otp-cells i { position: relative; display: grid; place-items: center; height: 58px; border-radius: 14px; border: 3px solid var(--o); background: #fff;
  box-shadow: inset 0 3px 0 rgba(29, 59, 87, 0.1); transition: border-color 0.12s, box-shadow 0.12s; }
.otp-cells i.on::after { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--o); animation: otp-pop 0.16s ease-out; }
.otp.focus .otp-cells i.cur { border-color: #2f9be8; box-shadow: 0 0 0 3px #ffd23f, inset 0 3px 0 rgba(29, 59, 87, 0.1); }
.otp.focus:not(.full) .otp-cells i.cur::before { content: ''; position: absolute; width: 3px; height: 26px; border-radius: 2px; background: var(--o); animation: otp-blink 1s steps(1) infinite; }
.otp.bad .otp-cells i { border-color: #d8343f; background: #fff3f3; }
.join .otp input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 14px; background: transparent;
  box-shadow: none; outline: none; color: transparent; caret-color: transparent; font-size: 16px; letter-spacing: 0; cursor: pointer; }
.join .otp input::selection { background: transparent; }
@keyframes otp-pop { from { transform: scale(0.3); } to { transform: scale(1); } }
@keyframes otp-blink { 50% { opacity: 0; } }
.join input.bad { border-color: #d8343f; background: #fff3f3; }
.join .warn { background: #fff1d6; border: 2px solid #f0a020; border-radius: 12px; padding: 8px 10px; color: #8a4b00; font-weight: 700; font-size: 13px; }
.join .hint { font-size: 12px; color: #5b7a92; }
.sheet .sub-btn.link, .sub-btn.link { flex: none; align-self: center; width: auto; min-height: 44px; padding: 0 12px; background: none; border: none; box-shadow: none;
  color: #2f6f99; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sub-btn.link:active { transform: none; box-shadow: none; opacity: 0.7; }
.sheet-sub.first { margin-top: 0; }
.acc-card { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #eaf8ff; border: 3px solid var(--o);
  box-shadow: 0 3px 0 var(--o); margin-bottom: 6px; color: var(--o); }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acc-name { font-size: 20px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-name small { font-size: 14px; color: #5b7a92; margin-left: 2px; }
.acc-chip { flex: none; padding: 3px 10px; border-radius: 999px; border: 2px solid var(--o); font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.acc-chip.tamu { background: #ffd27a; color: #6b3d00; }
.acc-chip.aman { background: #7be08a; color: #0f4d1c; }
.acc-desc { font-size: 13px; line-height: 1.4; color: #35607f; }
.acc-desc b { color: var(--o); }
.acc-btns { display: flex; gap: 10px; }
.acc-btns .sub-btn { flex: 1; }
.sub-btn.danger { color: #c0202c !important; }
.sub-btn.danger.confirm { --face: #ff4b55; --hi: #ff8a91; --lip: #c0202c; color: #fff !important; text-shadow: var(--stroke-s); }
.join .ok-badge { align-self: center; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 700;
  color: #fff; background: radial-gradient(circle at 50% 30%, #7af08a, #2cb53d); border: 3px solid var(--o); box-shadow: 0 4px 0 var(--o); text-shadow: var(--stroke-s); }
.join .cred { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: baseline; text-align: left; padding: 12px 14px;
  border-radius: 14px; background: #fff6c2; border: 3px solid var(--o); color: var(--o); }
.join .cred span { font-size: 13px; color: #5b7a92; font-weight: 700; }
.join .cred b { font-size: 18px; word-break: break-all; }
.join .otp input.bad, .join .otp input:focus { background: transparent; border: 0; outline: none; box-shadow: none; }
.join .fld > span, .join .fld > small { text-align: center; padding-left: 0; }

/* ---------- Diamond: toko top-up, konfirmasi, status bayar ---------- */
.wallet.dia { opacity: 1; cursor: pointer; font: inherit; color: #fff; }
.wallet.dia b { color: #fff !important; }
.egg-buy.dia { --face: #3fb3f0; --hi: #8fe0ff; --lip: #1f7fb8; }
.egg-topup { width: 100%; flex: none; min-height: 46px !important; font-size: 13px !important; }
/* permata: belah ketupat mengkilap, ditumpuk makin tinggi untuk paket besar */
.gem-pile { position: relative; width: 64px; height: 50px; margin: 0 auto; }
.gem-pile .gem { position: absolute; width: 26px; height: 26px; left: 19px; top: 14px; transform: rotate(45deg); border-radius: 5px;
  background: linear-gradient(135deg, #f2fdff 0%, #8de8ff 35%, #3fb3f0 70%, #1f7fb8 100%); border: 3px solid var(--o);
  box-shadow: inset 4px 4px 0 rgba(255, 255, 255, 0.55); }
.gem-pile.n2 .gem:nth-child(1) { left: 8px; top: 18px; } .gem-pile.n2 .gem:nth-child(2) { left: 30px; top: 12px; }
.gem-pile.n3 .gem:nth-child(1) { left: 4px; top: 20px; } .gem-pile.n3 .gem:nth-child(2) { left: 34px; top: 20px; } .gem-pile.n3 .gem:nth-child(3) { left: 19px; top: 4px; }
.gem-pile.n4 .gem:nth-child(1) { left: 0; top: 22px; } .gem-pile.n4 .gem:nth-child(2) { left: 19px; top: 22px; }
.gem-pile.n4 .gem:nth-child(3) { left: 38px; top: 22px; } .gem-pile.n4 .gem:nth-child(4) { left: 19px; top: 2px; }
.gem-pile.n5 .gem:nth-child(1) { left: 0; top: 24px; } .gem-pile.n5 .gem:nth-child(2) { left: 19px; top: 24px; } .gem-pile.n5 .gem:nth-child(3) { left: 38px; top: 24px; }
.gem-pile.n5 .gem:nth-child(4) { left: 9px; top: 6px; } .gem-pile.n5 .gem:nth-child(5) { left: 29px; top: 6px; }
.gem-pile.big { transform: scale(1.6); margin: 18px auto 14px; }
.gem-pile.wait .gem { animation: gem-bob 1.1s ease-in-out infinite; }
.gem-pile.wait .gem:nth-child(2) { animation-delay: 0.18s; } .gem-pile.wait .gem:nth-child(3) { animation-delay: 0.36s; }
.gem-pile.done { animation: gem-pop 0.5s ease-out; }
.gem-pile.off .gem { filter: grayscale(1); opacity: 0.6; }
@keyframes gem-bob { 50% { translate: 0 -6px; } }
@keyframes gem-pop { 0% { transform: scale(0.8); } 60% { transform: scale(1.9); } 100% { transform: scale(1.6); } }
.dia-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 10px; margin: 20px 0 16px; }
.dia-pack { position: relative; width: calc((100% - 20px) / 3); min-width: 96px; padding: 14px 4px 10px; border-radius: 16px; border: 3px solid var(--o);
  background: linear-gradient(180deg, #ffffff, #e3f6ff); box-shadow: 0 4px 0 var(--o); color: var(--o); font-family: 'Fredoka', sans-serif;
  display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.dia-pack:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--o); }
.dia-pack:disabled { opacity: 0.5; cursor: default; }
.dia-pack.first { background: linear-gradient(180deg, #fffbe6, #ffeeb0); }
.dia-ribbon { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  background: #ff4b55; color: #fff; border: 2.5px solid var(--o); font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-shadow: var(--stroke-s); }
.dia-amt { font-size: 22px; font-weight: 700; line-height: 1.1; margin-top: 2px; }
.dia-bonus { font-size: 12px; font-weight: 700; color: #c66a00; min-height: 15px; }
.dia-pack:not(.first) .dia-bonus { color: #5b7a92; font-weight: 600; }
.dia-price { margin-top: 6px; width: calc(100% - 8px); padding: 5px 0; border-radius: 10px; background: #39d64b; color: #fff; border: 2.5px solid var(--o);
  font-size: 15px; font-weight: 700; text-shadow: var(--stroke-s); white-space: nowrap; }
.dia-pending { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.pend-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #fff6c2; border: 3px solid var(--o); color: var(--o); }
.pend-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pend-info b { font-size: 15px; } .pend-info small { font-size: 12px; color: #5b7a92; }
.pend-row .btn.small, .pend-row .sub-btn.small { min-width: 64px; width: auto; flex: none; }
.warn-note { color: #8a4b00 !important; font-weight: 700; }
.shop-ico.tukar { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M20 6 L32 18 L20 30 L8 18 Z' fill='%238de8ff' stroke='%231d3b57' stroke-width='3.5' stroke-linejoin='round'/%3E%3Ccircle cx='44' cy='44' r='14' fill='%23ffd23f' stroke='%231d3b57' stroke-width='3.5'/%3E%3Cpath d='M38 14 H50 V24 M50 14 L40 24' fill='none' stroke='%231d3b57' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.join.buy h3 { font-size: 28px; }
.buy-bonus { color: #c66a00 !important; font-weight: 700; }
.buy-price { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 14px; background: #eaf8ff; border: 3px solid var(--o); color: var(--o); }
.buy-price span { font-size: 14px; font-weight: 700; color: #35607f; } .buy-price b { font-size: 24px; }
.topup-st h3 { font-size: 26px; }
.topup-extra { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.order-code { font-size: 12px; color: #5b7a92; user-select: all; }
.egg-card .egg-buy { margin-top: auto; }
#hatch-again .ico-dia, .egg-buy .ico-dia { margin-left: 9px; }
.dia-grid.off .dia-ribbon { display: none; }

/* ---------- layar bayar QRIS ---------- */
.join.qris { gap: 8px; }
.qris-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; color: var(--o); }
.qris-head b { font-size: 20px; } .qris-head span { font-size: 15px; font-weight: 700; color: #35607f; }
.qris-card { align-self: center; width: min(100%, 300px); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 12px 12px;
  border-radius: 18px; background: #fff; border: 3px solid var(--o); box-shadow: 0 4px 0 var(--o); }
.qris-label { font-size: 15px; font-weight: 700; letter-spacing: 4px; color: var(--o); }
.qris-img { width: min(100%, 250px); aspect-ratio: 1; image-rendering: pixelated; display: block;
  -webkit-touch-callout: default; user-select: auto; }
.qris-amount { font-size: 26px; font-weight: 700; color: var(--o); }
.qris-timer { font-size: 15px; font-weight: 700; color: #35607f; }
.qris-timer.low { color: #d8343f; }
.qris-status { font-size: 14px; font-weight: 700; color: #2f6f99; display: flex; align-items: center; justify-content: center; gap: 8px; }
.qris-status::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 3px solid #9fd4f3; border-top-color: #2f6f99; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
a.sub-btn.qris-save { display: flex; align-items: center; justify-content: center; min-height: 46px; text-decoration: none; font-size: 15px; flex: none; }
.qris-help { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px; background: #eaf8ff; border: 2px solid #b9dcf0;
  font-size: 13px; line-height: 1.35; color: #35607f; }
.qris-help b { color: var(--o); font-size: 14px; }

/* ---------- jarak tombol 3D ----------
   .btn/.sub-btn punya bayangan ±7px di bawah kotaknya (bibir + garis luar). Elemen sesudahnya diberi jarak ekstra
   supaya bayangan tidak menempel ke kotak/teks di bawahnya (dicek otomatis: celah terlihat minimal 6px). */
.join > .btn:not(:last-child), .join > .sub-btn:not(.link):not(:last-child) { margin-bottom: 10px; }
.egg-card > .btn + .btn, .egg-card > .btn + .sub-btn, .egg-card > .sub-btn + .btn, .egg-card > .sub-btn + .sub-btn { margin-top: 9px; }
.acc-card > .btn:not(:last-child) { margin-bottom: 8px; }
.lobby-sub { margin-bottom: 7px; }   /* bayangan tombol PETA/ITEM tidak menempel ke tombol MAIN */

/* ---------- main online: pilih mode, mencari lawan, label pemain sungguhan ---------- */
.tag.human { color: #8ff3ff; }
.mode-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 16px 14px; border-radius: 16px;
  background: #eaf8ff; border: 3px solid var(--o); box-shadow: 0 3px 0 var(--o); color: var(--o); }
.mode-card h3 { font-size: 22px; } .mode-card p { font-size: 14px; color: #35607f; line-height: 1.4; }
.mode-ico { width: 72px; height: 56px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 56'%3E%3Ccircle cx='20' cy='30' r='14' fill='%23ffd23f' stroke='%231d3b57' stroke-width='3.5'/%3E%3Ccircle cx='52' cy='30' r='14' fill='%238de8ff' stroke='%231d3b57' stroke-width='3.5'/%3E%3Ccircle cx='36' cy='22' r='16' fill='%23ff8aa8' stroke='%231d3b57' stroke-width='3.5'/%3E%3Ccircle cx='31' cy='19' r='2.5' fill='%231d3b57'/%3E%3Ccircle cx='41' cy='19' r='2.5' fill='%231d3b57'/%3E%3C/svg%3E") center / contain no-repeat; }
.mode-live { margin-top: 4px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 2px solid #b9dcf0; font-size: 13px; font-weight: 700; color: #1f9a30; }
.mode-note { margin: 0 0 10px; color: #35607f !important; }
.search { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 6px 0 4px; }
.slots { display: grid; grid-template-columns: repeat(4, 54px); gap: 10px; margin: 6px 0 4px; }
.slot { width: 54px; height: 54px; border-radius: 50%; border: 3px dashed #9fc5dd; background: #f4fbff; }
.slot.on { border: 3px solid var(--o); background: radial-gradient(circle at 40% 35%, #fff2a8, #ffc928); box-shadow: 0 3px 0 var(--o); animation: slot-pop 0.25s ease-out; }
.slot.next { animation: slot-pulse 1.1s ease-in-out infinite; }
@keyframes slot-pop { from { transform: scale(0.6); } to { transform: scale(1); } }
@keyframes slot-pulse { 50% { border-color: #2f9be8; background: #dff3ff; } }
.search-count { font-size: 26px; font-weight: 700; color: var(--o); }
.search-sub { font-size: 14px; font-weight: 700; color: #35607f; min-height: 18px; }
.search .sub-btn { width: 100%; max-width: 320px; flex: none; min-height: 48px; margin: 6px 0 10px; }

/* fokus keyboard pada tombol 3D: cincin kuning DI BELAKANG bibir tombol (outline putih menutupi bayangan di panel terang) */
.btn:focus-visible, .sub-btn:focus-visible { outline: none; box-shadow: 0 4px 0 0 var(--lip), 0 7px 0 0 var(--o), 0 0 0 4px rgba(255, 210, 63, 0.95), 0 10px 10px rgba(20, 40, 60, 0.25); }
#result .row { margin-bottom: 8px; }
.search-bar { width: 100%; max-width: 320px; height: 10px; border-radius: 999px; background: #e3f1fa; border: 2px solid #b9dcf0; overflow: hidden; }
.search-bar i { display: block; height: 100%; width: 30%; background: linear-gradient(90deg, #8de8ff, #2f9be8); border-radius: 999px; animation: search-scan 1.3s ease-in-out infinite alternate; }
@keyframes search-scan { from { transform: translateX(0); } to { transform: translateX(233.4%); } }   /* hanya tanda sedang mencari, bukan sisa waktu */
@media (prefers-reduced-motion: reduce) { .search-bar i { animation: none; width: 100%; opacity: 0.55; } }
#feed li b.dark { color: #ffffff !important; }   /* pil nama di warna badan gelap (Kucing Hitam, Cendrawasih, Rusa Bulan, ...) */
.btn + .note, .sub-btn + .note { margin-top: 16px; }   /* catatan di bawah tombol 3D: jangan menempel ke bayangannya */
.join .mode-ico { align-self: center; }
#item-btn { justify-content: center; }   /* tombol pilih peta dihapus (peta selalu acak): ITEM sendirian, isinya di tengah */

/* ---------- main bareng teman (ruang privat) ---------- */
#room-btn .pk-ico { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='43' cy='19' r='9' fill='%23ffb347' stroke='%231d3b57' stroke-width='3.5'/%3E%3Cpath d='M29 52 Q29 33 43 33 Q58 33 58 52 Z' fill='%23ffb347' stroke='%231d3b57' stroke-width='3.5' stroke-linejoin='round'/%3E%3Ccircle cx='22' cy='23' r='10' fill='%238fe0ff' stroke='%231d3b57' stroke-width='3.5'/%3E%3Cpath d='M5 56 Q5 37 22 37 Q39 37 39 56 Z' fill='%238fe0ff' stroke='%231d3b57' stroke-width='3.5' stroke-linejoin='round'/%3E%3C/svg%3E"); }
#room-btn { justify-content: center; }
#room-btn.in { --face: #fff6c9; --hi: #fffbe6; --lip: #e0b93a; }
.room { gap: 12px; }
.room .rm-intro { margin: 2px 0 2px; }
.rm-or { font-size: 13px; font-weight: 700; color: #5b7a92; margin-top: 4px; }
.rm-wait { padding: 34px 0; font-size: 17px; font-weight: 700; color: #35607f; }
.otp.code .otp-cells { grid-template-columns: repeat(5, minmax(0, 56px)); }
.otp.code .otp-cells i { font: 700 28px 'Fredoka', sans-serif; color: var(--o); }
.rm-code { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 6px 12px 8px; border-radius: 16px; border: 3px dashed #7cc4ea; background: #eef9ff;
  font-family: inherit; color: var(--o); cursor: pointer; }
.rm-code small { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: #5b7a92; }
.rm-code b { font-size: 38px; line-height: 1.05; letter-spacing: 8px; padding-left: 8px; font-weight: 700; color: var(--o); }
.rm-code:active { transform: translateY(2px); }
.rm-code:focus-visible { outline: 3px solid #ffd23f; outline-offset: 2px; }
.rm-share { display: flex; gap: 10px; margin-bottom: 10px; }
.sheet .rm-share .btn, .sheet .rm-share .sub-btn { flex: 1; width: auto; min-width: 0; min-height: 48px; font-size: 16px; }
.rm-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.rm-slot { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 8px; border-radius: 14px; border: 2.5px solid var(--o); background: #fff; text-align: left; }
.rm-slot.me { background: #fff6c9; }
.rm-slot.empty { border: 2.5px dashed #b9d6e8; background: #f6fbfe; }
.rm-slot.off { opacity: 0.55; }
.rm-face { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; background: #dff1fb; border: 2.5px solid var(--o); }
.rm-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.rm-slot.empty .rm-face { border: 2.5px dashed #b9d6e8; background: #fff; }
.rm-crown { position: absolute; top: -11px; left: -7px; width: 22px; height: 18px; transform: rotate(-18deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 36'%3E%3Cpath d='M4 30 L2 8 L13 17 L22 3 L31 17 L42 8 L40 30 Z' fill='%23ffd23f' stroke='%231d3b57' stroke-width='3.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.rm-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.rm-name b { font-size: 15px; color: var(--o); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-name small { font-size: 12px; font-weight: 700; color: #5b7a92; }
.rm-slot.empty .rm-name small { color: #6f8ca1; }
.rm-foot { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 2px; }
.sheet .rm-go { min-height: 60px; font-size: 26px; max-width: none; }
.rm-hint { font-size: 13px; font-weight: 700; color: #35607f; }
.rm-hint.wait { padding: 12px 0 4px; font-size: 15px; }
.room .err:empty { display: none; }
.rm-out { margin-top: 2px; }
.rm-invite { padding: 8px 12px; border-radius: 12px; background: #fff6c9; border: 2.5px solid #e0b93a; color: var(--o); font-weight: 700; font-size: 15px; }
.sheet .rm-opt { margin: 0 0 4px; padding: 8px 10px 16px 14px; text-align: left; }
.rm-opt .set-name { font-size: 17px; }
.rm-opt .set-desc { font-size: 13px; }
.rm-chip { flex: none; min-width: 60px; padding: 6px 10px; border-radius: 12px; border: 2.5px solid var(--o); font-weight: 700; font-size: 15px; text-align: center; color: #fff; background: #39d64b; text-shadow: var(--stroke-s); }
.rm-chip.off { background: #e3eaf0; color: #5b7a92; text-shadow: none; }

/* ---------- kabar match ringkas (2026-12-01): tidak menutupi arena di HP ---------- */
#feed { gap: 3px; max-width: min(64vw, 320px); top: calc(var(--safe-t) + 124px); pointer-events: none; }
#feed li { display: flex; align-items: center; gap: 4px; padding: 2px 8px 2px 4px; background: rgba(10, 31, 56, 0.55); color: #fff; border: 0; box-shadow: none;
  border-radius: 10px; font-size: 12px; font-weight: 700; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: none;
  animation: slidein 0.2s ease-out, feed-out 0.5s ease-in 3.7s forwards; }
#feed li.me { background: rgba(255, 196, 40, 0.88); color: var(--o); }
#feed li.skill { border-left: 0; }
#feed li b { font-size: 11.5px; padding: 0 5px; border-width: 1px; border-radius: 6px; margin: 0; line-height: 1.35; flex: none; max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
@keyframes feed-out { to { opacity: 0; transform: translateX(-10px); } }
#feed .fx { flex: none; width: 14px; height: 14px; background: center / contain no-repeat; }
#feed .fx.push { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h9M8 4l4 4-4 4' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
#feed li.me .fx.push { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h9M8 4l4 4-4 4' fill='none' stroke='%231d3b57' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
#feed .fx.drop { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5C6 5 3.5 7.5 3.5 10.2a4.5 4.5 0 0 0 9 0C12.5 7.5 10 5 8 1.5z' fill='%236cd0ff' stroke='%231d3b57' stroke-width='1.2'/%3E%3C/svg%3E"); }
#feed .fx.crack { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1.5' y='4' width='13' height='9' rx='2' fill='%23c9a27a' stroke='%231d3b57' stroke-width='1.2'/%3E%3Cpath d='M8 4l-1.5 3 2.5 1.5L7 13' fill='none' stroke='%231d3b57' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E"); }
#feed .fx.star { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.2l2 4.3 4.6.5-3.4 3.1 1 4.6L8 11.4l-4.2 2.3 1-4.6L1.4 6l4.6-.5z' fill='%23ffd23f' stroke='%231d3b57' stroke-width='1.1' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: reduce) { #feed li { animation: feed-out 0.3s linear 3.9s forwards; } }

/* ---------- monetisasi P1 (2026-12-01): Paket Pemula, label hemat, Telur Event, ×10, pilih Epik ---------- */
.starter-card { position: relative; display: block; width: 100%; margin: 14px 0 6px; padding: 18px 12px 12px; border-radius: 18px; border: 3px solid var(--o);
  background: linear-gradient(160deg, #fff3b0, #ffd45a 55%, #ffb347); box-shadow: 0 4px 0 var(--o); color: var(--o); font: inherit; cursor: pointer; text-align: left; }
.starter-card:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--o); }
.starter-tag { position: absolute; top: -12px; left: 12px; padding: 2px 10px; border-radius: 999px; background: #ff4b55; color: #fff; border: 2.5px solid var(--o);
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-shadow: var(--stroke-s); white-space: nowrap; }
.starter-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.starter-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; background: rgba(255, 255, 255, 0.7); border: 2px solid rgba(29, 59, 87, 0.25); text-align: center; }
.starter-item b { font-size: 18px; line-height: 1.1; }
.starter-item span { font-size: 11.5px; font-weight: 700; color: #35607f; line-height: 1.15; }
.starter-item .ico-dia.big { width: 18px; height: 18px; margin: 4px 0 3px; }
.egg-mini { display: block; width: 18px; height: 23px; border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; background: radial-gradient(circle at 35% 30%, #fff, #b9f0ff 45%, #4fb6e8); border: 2px solid var(--o); }
.star-mini { display: block; width: 24px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.2l2 4.3 4.6.5-3.4 3.1 1 4.6L8 11.4l-4.2 2.3 1-4.6L1.4 6l4.6-.5z' fill='%23b06bff' stroke='%231d3b57' stroke-width='1.1' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.starter-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.starter-ends { font-size: 12.5px; font-weight: 700; color: #7a3b00; }
.starter-foot .dia-price { width: auto; margin: 0; padding: 6px 16px; font-size: 17px; }
.dia-save { position: absolute; bottom: 52px; right: -6px; padding: 1px 6px; border-radius: 8px; background: #1f9a30; color: #fff; border: 2px solid var(--o);
  font-size: 10.5px; font-weight: 700; white-space: nowrap; transform: rotate(6deg); }
.starter-list { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-direction: column; gap: 6px; text-align: left; max-width: 280px; }
.starter-list li { padding: 7px 12px; border-radius: 12px; background: #eaf8ff; border: 2px solid var(--o); font-weight: 700; color: var(--o); }
.starter-list li::before { content: '✓ '; color: #1f9a30; }
/* Telur Event */
.egg-card.event { position: relative; margin: 14px 0 12px; padding-top: 18px; background: linear-gradient(170deg, #e9f8ff, #c8ecff 60%, #a6dcff); }
.event-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 999px; background: #2f7fe8; color: #fff;
  border: 2.5px solid var(--o); font-size: 12px; font-weight: 700; white-space: nowrap; text-shadow: var(--stroke-s); }
.event-hero { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; }
.event-hero .thumb { flex: none; width: 74px; height: 74px; border-radius: 16px; background: #fff; border: 3px solid var(--o); }
.event-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.event-star { font-size: 13px; font-weight: 700; color: #b0287a; }
.event-skill { font-size: 12px; color: #35607f; line-height: 1.3; }
.egg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-bottom: 4px; }
.egg-btns .egg-buy.ten { --face: #ffb347; --hi: #ffd38a; --lip: #c9771f; }
.egg-note { font-size: 11.5px; font-weight: 700; color: #35607f; }
.egg-pity.near { color: #d8343f !important; font-weight: 700; }
.pick-epik { width: 100%; margin: 4px 0 14px; --face: #b06bff; --hi: #d2a6ff; --lip: #7d3fc9; }
.cc-event { position: absolute; top: 6px; left: 6px; padding: 1px 6px; border-radius: 6px; background: #2f7fe8; color: #fff; font-size: 10.5px; font-weight: 700; border: 1.5px solid var(--o); }
.near-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 12px; padding: 8px 10px 14px 12px; border-radius: 14px;
  background: #fff3c4; border: 2.5px solid #e0b93a; font-weight: 700; color: var(--o); }
#hatch-note.near { color: #ffd23f; }
/* hasil ×10 */
.res10-sum { text-align: center; font-weight: 700; color: var(--o); margin: 2px 0 10px; }
.res10 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.res10-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 2px 6px; border-radius: 12px; background: #eaf8ff; border: 2.5px solid #b9d6e8; text-align: center; min-width: 0; }
.res10-item .thumb { width: 100%; aspect-ratio: 1; height: auto; }
.res10-item b { font-size: 11px; color: var(--o); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res10-item small { font-size: 10px; font-weight: 700; color: #5b7a92; line-height: 1.1; }
.res10-item.epik { border-color: #b06bff; } .res10-item.legenda { border-color: #ff9f1c; background: #fff4df; } .res10-item.mitos { border-color: #ff4fa3; background: #ffeaf5; }
.res10-item.new small { color: #1f9a30; }
.res10-item.featured { box-shadow: 0 0 0 3px #ffd23f; }
.res10-btns { display: flex; gap: 10px; margin: 14px 0 6px; }
.sheet .res10-btns .btn, .sheet .res10-btns .sub-btn { flex: 1; width: auto; min-width: 0; }
.pick-intro { color: #35607f; font-size: 14px; text-align: center; margin: 0 0 10px; }
.pick-grid { margin-bottom: 14px; }
@media (max-width: 380px) { .res10 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; } .res10-item b { font-size: 10px; } }
.egg-btns { margin: 8px 0 12px; }
.egg-card .egg-bonus + .egg-btns { margin-top: 14px; }
/* perbaikan QA: label hemat di sudut atas kartu (tidak menutupi teks bonus); tombol telur bertumpuk di kartu setengah lebar */
.egg-wrap .egg-card { min-width: 0; }
.egg-wrap .egg-btns { grid-template-columns: 1fr; gap: 10px; }
.egg-wrap .egg-btns { gap: 16px; }
.dia-save { position: static; transform: none; display: inline-block; margin: 4px 0 0; padding: 1px 7px; font-size: 10.5px; border-radius: 8px; }
.dia-save.none { visibility: hidden; }
.sheet .res10-btns .btn, .sheet .res10-btns .sub-btn { font-size: 16px; padding: 0 8px; letter-spacing: 0; }

/* ---------- perbaikan sapu tampilan HP (2026-12-01) ---------- */
/* toast: ditengahkan tanpa transform (animasi masuk dulu menggeser toast ke kanan dan menutupi tombol UPGRADE / judul panel) */
#toast { left: 0 !important; right: 0; margin: 0 auto; width: max-content; transform: none !important; max-width: calc(100vw - 150px); }
#toast.show { animation: toast-in 0.25s ease-out; }
@keyframes toast-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
body.sheet-open #toast { top: calc(var(--safe-t) + 8px) !important; max-width: calc(100vw - 32px); }
/* label nama di arena: baris skill dipotong rapi, label yang menimpa banner/kabar disamarkan */
.tag .sk { overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.tag { transition: opacity 0.15s; }
.tag.dim { opacity: 0.2; }
/* kotak "1 kartu lagi": teks dan tombol berdampingan rapi di HP kecil */
.near-row { flex-wrap: wrap; }
.near-row span { flex: 1 1 140px; min-width: 0; }
.sheet .near-row .btn { width: auto; flex: none; min-width: 0; padding: 0 14px; }
/* toko item: jarak tombol harga dan PASANG */
.shop-act { gap: 14px; }
/* nama dua baris di isi telur tetap di tengah */
.pool-item span { text-align: center; line-height: 1.15; }
/* tombol merah: teks putih bergaris seperti tombol lain */
#res-lobby, #hatch-close, #spec-again { color: #fff !important; text-shadow: var(--stroke-s) !important; }
/* kontras teks kecil */
#res-lines li b, .cc-skill, .cc-power, .dh-cards, .up-eff, .shop-own, .egg-pity, .res-mission { color: #157a26; }
.dia-save { background: #157a26; }
.rk-name b small { color: #4f6b80; }
.rm-code small, .rm-name small { color: #4f6b80; }
.rm-slot.empty .rm-name small { color: #567085; }
#res-xp { color: #1d6fb5; }
.rr-main .arrow { color: #5b7a92; }
.char-card.selected .stars i.on { color: #ffb300; }
.rk-name b { display: flex; align-items: baseline; min-width: 0; }
.rk-name b .rk-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-name b small { flex: none; }
#toast { max-width: calc(100vw - 180px); }
.starter-card:disabled { opacity: 0.5; cursor: default; }

/* ---------- chat (2026-12-01) ---------- */
#chat-btn { right: auto; left: 10px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M10 14 h44 a6 6 0 0 1 6 6 v20 a6 6 0 0 1 -6 6 h-24 l-12 10 v-10 h-8 a6 6 0 0 1 -6 -6 v-20 a6 6 0 0 1 6 -6z' fill='%23ffffff' stroke='%231d3b57' stroke-width='4' stroke-linejoin='round'/%3E%3Ccircle cx='22' cy='30' r='3.5' fill='%231d3b57'/%3E%3Ccircle cx='32' cy='30' r='3.5' fill='%231d3b57'/%3E%3Ccircle cx='42' cy='30' r='3.5' fill='%231d3b57'/%3E%3C/svg%3E"), radial-gradient(circle at 50% 30%, #9fe6ff, #2f9be8); background-size: 56% auto, auto; background-position: center; }
#chat-btn.on { box-shadow: 0 0 0 3px #ffd23f, 0 3px 0 var(--o); }
body.result-open #chat-btn, body.result-open #chat-bar { visibility: hidden; }
#chat-bar { position: fixed; z-index: 4; top: calc(var(--safe-t) + 52px); left: 8px; right: 8px; max-width: 520px; margin: 0 auto; padding: 8px; border-radius: 16px;
  background: #fff; border: 3px solid var(--o); box-shadow: 0 4px 0 var(--o); display: flex; flex-direction: column; gap: 8px; pointer-events: auto; }
.chat-quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-chip { flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--o); background: #eaf8ff; color: var(--o); font: 700 15px 'Fredoka', sans-serif; cursor: pointer; }
.chat-chip:active { transform: translateY(1px); }
.chat-row { display: flex; gap: 8px; align-items: center; }
#chat-input, .rm-chat-input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 2.5px solid var(--o); background: #fff; color: var(--o);
  font: 600 16px 'Fredoka', sans-serif; }                 /* 16px: iPhone tidak memperbesar halaman saat mengetik */
#chat-input:focus, .rm-chat-input:focus { outline: 3px solid #ffd23f; outline-offset: 1px; }
#chat-send, .rm-chat-form .btn { flex: none; min-width: 0; width: auto; min-height: 44px; padding: 0 14px; font-size: 15px; }
#chat-close { flex: none; width: 44px; height: 44px; }
.chat-bubble { position: absolute; left: 0; top: 0; max-width: 170px; padding: 4px 9px; border-radius: 12px; background: #fff; color: var(--o); border: 2px solid var(--o);
  font-size: 12.5px; font-weight: 700; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; box-shadow: 0 2px 0 var(--o);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; pointer-events: none; }
.chat-bubble.me { background: #fff6c2; }
#feed li.chat { background: rgba(255, 255, 255, 0.92); color: var(--o); }
#feed li.chat.me { background: rgba(255, 246, 194, 0.95); }
#feed li .chat-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
/* chat ruang + tombol MULAI menempel di bawah panel */
.rm-chat { border: 2.5px solid var(--o); border-radius: 14px; background: #f6fbfe; padding: 6px; text-align: left; }
.rm-chat-list { max-height: 118px; min-height: 44px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 2px 4px; }
.rm-msg { font-size: 14px; line-height: 1.3; color: #35607f; overflow-wrap: anywhere; }
.rm-msg b { color: var(--o); margin-right: 6px; }
.rm-msg.me b { color: #b05a00; }
.rm-chat-empty { color: #567085; font-size: 13px; text-align: center; padding: 8px 0; }
.rm-chat-form { display: flex; gap: 8px; margin-top: 6px; }
.sheet .rm-chat-form .btn { margin-bottom: 4px; }
.rm-foot { position: sticky; bottom: -14px; z-index: 2; background: #fff; padding: 10px 0 14px; margin-bottom: -14px; box-shadow: 0 -8px 10px -6px rgba(29, 59, 87, 0.18); }
#room-btn .dot { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%; background: #ff4a4a; border: 3px solid var(--o); }
#room-btn { position: relative; }

/* bar chat di bawah banner: hitung mundur BIDIK tetap terlihat saat mengetik (keyboard HP menutup separuh bawah) */
#chat-bar { top: calc(var(--safe-t) + 126px); }
