/* =========================================================
   霓虹砖域 · NEON BRICK
   Dark neon cyberpunk · mobile first · no external assets
   ========================================================= */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --bg: #05020f;
  --bg-2: #0a0622;
  --panel: rgba(9, 12, 38, .9);
  --panel-2: rgba(14, 19, 56, .94);
  --line: rgba(74, 216, 255, .34);
  --line-strong: rgba(112, 232, 255, .72);
  --cyan: #31e7ff;
  --cyan-soft: #9df7ff;
  --magenta: #c45bff;
  --violet: #7658ff;
  --orange: #ff8a3d;
  --gold: #ffc84a;
  --pink: #ff5a9e;
  --danger: #ff476f;
  --text: #f3f7ff;
  --muted: #8e9cc9;
  --muted-2: #5e6a95;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --dock-h: 78px;
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
[hidden] { display: none !important; }
html, body {
  margin: 0; padding: 0; height: 100%; width: 100%;
  background: var(--bg); color: var(--text);
  font-family: var(--font);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none; user-select: none;
}
body { height: 100vh; height: 100dvh; }
button, input { font-family: inherit; }
button { color: inherit; border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
button:active { transform: translateY(1px) scale(.985); }
input { outline: none; }
em, i { font-style: normal; }
.app {
  position: fixed; inset: 0; overflow: hidden; overflow: clip; isolation: isolate;
  background: radial-gradient(90% 60% at 50% 32%, #120b34 0%, #070318 52%, #03010c 100%);
}

/* ---------- ambient background ---------- */
.bg-art {
  position: absolute; inset: -40px;
  background: url("images/gen/gptimg_1795240130_look.png") center 34% / cover no-repeat;
  filter: blur(34px) saturate(1.35) brightness(.52);
  transform: scale(1.08);
  opacity: .62;
  pointer-events: none;
  z-index: 0;
}
.bg-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(45, 205, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 205, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 62% at 50% 44%, #000 8%, transparent 78%);
  mask-image: radial-gradient(80% 62% at 50% 44%, #000 8%, transparent 78%);
  opacity: .8;
}
.bg-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 1, 12, .62) 0%, rgba(4, 2, 16, .06) 26%, rgba(4, 2, 14, .22) 64%, rgba(2, 1, 10, .94) 100%),
    radial-gradient(92% 70% at 50% 38%, transparent 0%, rgba(4, 2, 16, .28) 55%, rgba(2, 1, 10, .88) 100%);
}
#game { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; display: block; touch-action: none; }

/* ---------- HUD ---------- */
.hud {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  padding: calc(8px + var(--safe-top)) 12px 0;
  pointer-events: none;
}
.hud-row { display: flex; align-items: center; gap: 8px; }
.hud-row-top { align-items: flex-start; }
.hud-row-sub { margin-top: 8px; }
.hud button, .hud .res-pill { pointer-events: auto; }

.brand { min-width: 0; flex: 0 0 auto; max-width: 43%; }
.brand-logo { position: relative; line-height: .9; transform: skewX(-6deg); }
.brand-cn {
  display: block;
  font-size: clamp(21px, 6.4vw, 28px);
  font-weight: 900;
  letter-spacing: .04em;
  background: linear-gradient(180deg, #ffffff 2%, #a9f9ff 28%, #58d8ff 53%, #c36bff 78%, #ff8a3d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: .5px rgba(255, 255, 255, .34);
  filter: drop-shadow(0 0 4px rgba(61, 226, 255, .95)) drop-shadow(0 0 15px rgba(130, 66, 255, .72));
  white-space: nowrap;
}
.brand-en {
  display: block; margin-top: 3px;
  font-size: 7.5px; font-weight: 800; letter-spacing: .36em;
  color: rgba(151, 240, 255, .78);
  text-shadow: 0 0 8px rgba(49, 231, 255, .7);
}
.brand-player { display: flex; align-items: center; gap: 5px; margin-top: 5px; min-width: 0; }
.avatar {
  width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #e8fbff;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.42), transparent 30%),
    conic-gradient(from 220deg, #22dcff, #7d55ff, #ff5fc8, #ff9a42, #22dcff);
  box-shadow: 0 0 0 1px rgba(154, 244, 255, .55), 0 0 10px rgba(74, 208, 255, .5);
  font-size: 10px; font-weight: 900; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.55);
  background-size: cover; background-position: center;
}
.avatar.has-photo { box-shadow: 0 0 0 1.5px rgba(154, 244, 255, .7), 0 0 12px rgba(74, 208, 255, .55); }
.avatar .mp-icon { width: 12px; height: 12px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.avatar-lg { width: 54px; height: 54px; flex-basis: 54px; }
.avatar-lg .mp-icon { width: 28px; height: 28px; }
.nick { font-size: 10.5px; font-weight: 700; color: #cfe2ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 78px; letter-spacing: .02em; }
.title-tag {
  font-size: 8px; font-weight: 800; color: #ffd27a; white-space: nowrap;
  border: 1px solid rgba(255, 194, 93, .45); border-radius: 3px;
  padding: 1px 4px; background: rgba(255, 157, 51, .1);
  text-shadow: 0 0 8px rgba(255, 170, 60, .7);
}

.res-row { margin-left: auto; display: flex; gap: 6px; padding-top: 2px; }
.res-pill {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 7px 0 8px; min-width: 66px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 10px) 100%, 0 100%, 0 9px);
  background: linear-gradient(180deg, rgba(35, 44, 104, .88), rgba(8, 11, 36, .94));
  box-shadow: inset 0 0 0 1px rgba(105, 218, 255, .34), inset 0 1px 0 rgba(255,255,255,.14), 0 3px 12px rgba(0,0,0,.4);
  border-radius: 3px;
}
.res-pill .res-ico { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; flex: 0 0 18px; }
.res-pill .res-ico .mp-icon { width: 15px; height: 15px; }
.res-coin .res-ico { color: #3a2200; background: radial-gradient(circle at 34% 28%, #fff7c2, #ffc63f 48%, #d8860d); box-shadow: 0 0 9px rgba(255, 190, 55, .8); }
.res-shard .res-ico { color: #2a073a; background: radial-gradient(circle at 34% 28%, #ffd9f5, #ff73d9 48%, #a312a3); box-shadow: 0 0 9px rgba(255, 96, 225, .75); }
.res-shard .res-ico .mp-icon { width: 13px; height: 13px; }
.res-num { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .01em; min-width: 26px; text-align: left; color: #f5f8ff; text-shadow: 0 1px 2px #000; }
.res-plus { margin-left: auto; width: 14px; height: 14px; display: grid; place-items: center; border-radius: 3px; color: #a9f4ff; background: rgba(61, 221, 255, .14); box-shadow: inset 0 0 0 1px rgba(94, 234, 255, .3); }
.res-plus .mp-icon { width: 10px; height: 10px; }
.round-btn {
  width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center;
  color: #b7d9ff;
  background: linear-gradient(180deg, rgba(37, 48, 106, .86), rgba(8, 11, 34, .92));
  box-shadow: inset 0 0 0 1px rgba(106, 216, 255, .34), 0 3px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.1);
}
.round-btn .mp-icon { width: 18px; height: 18px; }
.btn-settings { margin-left: 1px; }
.btn-settings .mp-icon { width: 17px; height: 17px; }

.btn-pause { width: 38px; height: 38px; border-radius: 10px; color: #d5ecff; flex: 0 0 38px; }
.btn-pause .mp-icon { width: 21px; height: 21px; }

.wave-wrap { flex: 1 1 auto; min-width: 0; }
.wave-title { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 800; letter-spacing: .09em; color: #dff6ff; text-shadow: 0 0 12px rgba(74, 221, 255, .6); }
.wave-title b { font-size: 15px; color: #fff; }
.lv-chip { font-size: 9px; font-weight: 800; color: #191000; background: linear-gradient(180deg, #ffe89a, #ffab2e); border-radius: 4px; padding: 2px 5px; letter-spacing: .02em; box-shadow: 0 0 10px rgba(255, 169, 43, .55); }
.wave-bar {
  position: relative; height: 9px; margin-top: 4px; border-radius: 6px; overflow: hidden;
  background: rgba(7, 9, 30, .9);
  box-shadow: inset 0 0 0 1px rgba(74, 217, 255, .48), 0 0 12px rgba(56, 191, 255, .16);
}
.wave-fill {
  display: block; width: 0%; height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, #29ddff 0%, #a956ff 54%, #ff8a3d 100%);
  box-shadow: 0 0 10px rgba(148, 99, 255, .9);
  transition: width .24s ease;
}
.wave-glint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.34), transparent 52%); pointer-events: none; }
.lives-wrap { display: flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 9px; background: rgba(12, 10, 38, .72); box-shadow: inset 0 0 0 1px rgba(255, 108, 148, .26); flex: 0 0 auto; }
.lives-icons { display: flex; gap: 2px; }
.life-ball {
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff, #78efff 36%, #2a86ff 76%, #163378);
  box-shadow: 0 0 6px rgba(85, 222, 255, .9);
}
.life-ball.is-off { background: #2b2447; box-shadow: inset 0 0 0 1px rgba(124, 113, 170, .3); opacity: .65; }
.lives-num { font-size: 13px; font-weight: 800; color: #ffd4df; }
.lives-wrap.is-low { box-shadow: inset 0 0 0 1px rgba(255, 71, 111, .7), 0 0 12px rgba(255, 51, 92, .18); animation: lowPulse 1.1s ease-in-out infinite; }
.lives-wrap.is-low .lives-num { color: #ff6b8d; }

.run-coin {
  position: absolute; z-index: 18; top: calc(116px + var(--safe-top)); right: 13px;
  display: flex; align-items: center; gap: 4px; padding: 4px 8px 4px 6px; border-radius: 20px;
  background: rgba(20, 14, 4, .7); color: #ffd86f; font-size: 11px; font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 192, 64, .3), 0 0 10px rgba(255, 174, 40, .12);
  pointer-events: none;
}
.run-coin .mp-icon { width: 12px; height: 12px; color: #ffcd4f; }
.combo {
  position: absolute; z-index: 18; left: 50%; top: 44%; transform: translate(-50%, -50%);
  display: flex; align-items: baseline; gap: 4px; pointer-events: none;
  color: #fff; text-shadow: 0 0 12px rgba(255, 138, 61, .95), 0 0 26px rgba(255, 85, 158, .55);
  animation: comboPop .34s cubic-bezier(.2,1.7,.5,1);
}
.combo b { font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: -.02em; }
.combo em { font-size: 9px; font-weight: 900; letter-spacing: .12em; color: #ffb45f; }
.combo span { font-size: 16px; font-weight: 900; color: #ffd09a; }

.launch-hint {
  position: absolute; z-index: 16; left: 50%; bottom: calc(var(--dock-h) + var(--safe-bottom) + 96px);
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 7px 13px; border-radius: 20px; font-size: 11px; font-weight: 700; color: #d8f8ff;
  background: rgba(6, 12, 38, .72); box-shadow: inset 0 0 0 1px rgba(76, 221, 255, .3), 0 0 20px rgba(47, 177, 255, .12);
  animation: hintFloat 2.2s ease-in-out infinite;
  pointer-events: none;
}
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: #58eaff; box-shadow: 0 0 8px #58eaff; animation: dotPulse 1.15s infinite; }
.launch-hint.is-hidden { opacity: 0; animation: none; transition: opacity .35s; }

/* ---------- dock ---------- */
.dock {
  position: absolute; z-index: 25; left: 0; right: 0; bottom: 0;
  height: calc(var(--dock-h) + var(--safe-bottom));
  padding: 5px 5px calc(4px + var(--safe-bottom));
  display: flex; align-items: flex-start; justify-content: space-around; gap: 2px;
  background: linear-gradient(180deg, rgba(6, 5, 26, .2) 0%, rgba(5, 4, 22, .82) 25%, rgba(3, 2, 14, .98) 100%);
  box-shadow: 0 -1px 0 rgba(68, 204, 255, .14), 0 -12px 34px rgba(2, 0, 10, .5);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
}
.dock::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 229, 255, .7), rgba(195, 91, 255, .5), transparent);
  box-shadow: 0 0 8px rgba(83, 221, 255, .55);
}
.dock-btn {
  position: relative; flex: 1 1 0; max-width: 76px; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding-top: 1px; color: #92b5e4;
}
.dock-shape {
  position: relative; width: 46px; height: 43px; display: grid; place-items: center;
  clip-path: polygon(25% 0, 75% 0, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0 75%, 0 25%);
  background:
    linear-gradient(180deg, rgba(92, 199, 255, .62), rgba(37, 52, 128, .55));
  color: #b6eaff;
  filter: drop-shadow(0 0 7px rgba(52, 174, 255, .3));
}
.dock-shape::before {
  content: ""; position: absolute; inset: 1px;
  clip-path: polygon(25% 0, 75% 0, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0 75%, 0 25%);
  background: linear-gradient(180deg, rgba(9, 15, 46, .95), rgba(14, 13, 50, .94));
  z-index: 0;
}
.dock-shape::after {
  content: ""; position: absolute; left: 9px; right: 9px; top: 5px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(144, 236, 255, .6), transparent);
  z-index: 2;
}
.dock-shape .mp-icon { position: relative; z-index: 2; width: 22px; height: 22px; filter: drop-shadow(0 0 5px currentColor); }
.dock-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #a8c2e8; text-shadow: 0 1px 4px #000; }
.dock-btn.is-on .dock-shape { color: #fff; background: linear-gradient(180deg, rgba(51, 207, 255, .6), rgba(46, 33, 120, .5)); filter: drop-shadow(0 0 12px rgba(57, 211, 255, .45)); }
.dock-btn.is-on .dock-label { color: #fff; text-shadow: 0 0 8px rgba(77, 223, 255, .8); }
.dock-badge {
  position: absolute; z-index: 3; top: 2px; right: 5px; width: 7px; height: 7px; border-radius: 50%;
  background: #ff4d6f; box-shadow: 0 0 7px #ff4d6f;
}
.dock-gacha .dock-shape { color: #ffb0f2; filter: drop-shadow(0 0 9px rgba(255, 79, 213, .38)); }
.dock-gacha .dock-shape::before { background: linear-gradient(180deg, rgba(48, 13, 63, .96), rgba(18, 9, 47, .95)); }
.dock-gacha .dock-shape .mp-icon { width: 25px; height: 25px; }
.dock-progress {
  position: relative; width: 40px; height: 4px; margin-top: 2px; border-radius: 3px; overflow: hidden;
  background: rgba(16, 12, 40, .95); box-shadow: inset 0 0 0 1px rgba(214, 91, 255, .26);
}
.dock-progress i { display: block; height: 100%; width: 0%; border-radius: 3px; background: linear-gradient(90deg, #b75bff, #ff5fc8); box-shadow: 0 0 6px #d45bff; }
.dock-pity { font-size: 7px; font-weight: 800; color: #cf8cff; letter-spacing: .05em; margin-top: 1px; }

/* ---------- sheets ---------- */
.sheet-layer { position: absolute; inset: 0; z-index: 60; }
.sheet-backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 34%, rgba(23, 12, 62, .4), rgba(2, 1, 10, .82) 78%);
  backdrop-filter: blur(4px) saturate(1.08); -webkit-backdrop-filter: blur(4px) saturate(1.08);
  animation: fadeIn .2s ease-out;
}
.sheet-layer.is-upgrade .sheet-backdrop {
  bottom: calc(var(--dock-h) + var(--safe-bottom));
  background:
    linear-gradient(180deg, rgba(4, 3, 18, .1) 0%, rgba(4, 3, 18, .3) 44%, rgba(3, 2, 14, .82) 100%);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.sheet {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
  padding: 0; pointer-events: none;
}
.sheet-frame {
  pointer-events: auto;
  position: relative; width: 100%; max-width: 560px;
  max-height: 92dvh; display: flex; flex-direction: column;
  padding: 17px 15px calc(13px + var(--safe-bottom));
  border-radius: 26px 26px 0 0;
  border: 1px solid rgba(91, 218, 255, .34); border-bottom: 0;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(52, 41, 128, .42), transparent 64%),
    linear-gradient(180deg, rgba(12, 14, 46, .98), rgba(7, 7, 26, .99));
  box-shadow: 0 -1px 0 rgba(176, 246, 255, .38), 0 0 46px rgba(77, 58, 201, .34), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: sheetUp .3s cubic-bezier(.18, .9, .3, 1);
}
.sheet-frame::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(135, 242, 255, .85), rgba(202, 105, 255, .7), transparent);
  box-shadow: 0 0 12px rgba(93, 227, 255, .6);
}
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex: 0 0 auto; }
.sheet-kicker { font-size: 8px; font-weight: 900; letter-spacing: .32em; color: #5bd9ff; text-shadow: 0 0 10px rgba(54, 216, 255, .55); }
.sheet-head h2, .upgrade-head h2, .result-frame h2 { margin: 3px 0 0; font-size: 23px; font-weight: 900; letter-spacing: .04em; color: #f4fbff; text-shadow: 0 0 16px rgba(91, 211, 255, .38); }
.sheet-close { flex: 0 0 34px; }
.sheet-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 2px 1px 10px; margin-top: 6px; flex: 1 1 auto; min-height: 0; scrollbar-width: none; }
.sheet-scroll::-webkit-scrollbar { display: none; }

/* wallet */
.wallet-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 11px; padding: 8px 11px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(31, 39, 96, .4), rgba(12, 12, 38, .5));
  box-shadow: inset 0 0 0 1px rgba(76, 205, 255, .16);
}
.wallet-strip > span { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; }
.wallet-strip > span .mp-icon { width: 14px; height: 14px; color: #ffcc4d; }
.wallet-strip > span:nth-child(2) .mp-icon { color: #ff7bdd; }
.wallet-strip b { font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums; }
.wallet-strip em { font-size: 9px; color: var(--muted); }
.wallet-note { margin-left: auto; font-size: 9px !important; color: #7e8fbb; letter-spacing: .02em; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 800; letter-spacing: .03em;
  transition: filter .15s, transform .12s;
}
.btn .mp-icon { width: 18px; height: 18px; }
.btn-primary {
  color: #1c0e00; background: linear-gradient(135deg, #ffca6a, #ff8a3d 62%, #ff6b3d);
  box-shadow: 0 0 0 1px rgba(255, 218, 150, .6) inset, 0 6px 20px rgba(255, 124, 45, .28);
  text-shadow: 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary .mp-icon { color: #3c1a00; }
.btn-ghost {
  color: #c8e8ff; background: linear-gradient(180deg, rgba(39, 62, 123, .5), rgba(12, 17, 47, .75));
  box-shadow: inset 0 0 0 1px rgba(87, 200, 255, .3), 0 3px 12px rgba(0,0,0,.3);
}
.btn-danger-ghost {
  width: 100%; color: #ff9bb0; background: rgba(64, 10, 30, .36);
  box-shadow: inset 0 0 0 1px rgba(255, 74, 112, .32);
}
.btn-mini { min-height: 34px; padding: 0 12px; font-size: 11px; border-radius: 8px; color: #082331; background: linear-gradient(180deg, #95f6ff, #31d6f5); box-shadow: 0 0 14px rgba(49, 214, 245, .3); }
.sheet-actions { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; margin-top: 12px; }
.sheet-actions.row-2 { display: grid; grid-template-columns: 1fr 1fr; }
.fine-print { margin: 9px 0 0; font-size: 9.5px; line-height: 1.5; color: #6f7dab; text-align: center; }

/* pause */
.pause-hero { display: flex; align-items: center; gap: 13px; margin: 16px 0 4px; }
.pause-orb {
  width: 58px; height: 58px; border-radius: 50%; flex: 0 0 58px; display: grid; place-items: center;
  color: #9ff4ff; background: radial-gradient(circle at 34% 30%, rgba(100, 234, 255, .35), rgba(18, 23, 68, .9) 62%);
  box-shadow: inset 0 0 0 1px rgba(98, 230, 255, .5), 0 0 26px rgba(67, 202, 255, .22);
}
.pause-orb .mp-icon { width: 27px; height: 27px; }
.pause-copy { display: flex; flex-direction: column; gap: 3px; }
.pause-copy b { font-size: 17px; font-weight: 900; color: #eaf9ff; }
.pause-copy span { font-size: 11px; color: var(--muted); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 13px 0 4px; }
.mini-stat {
  padding: 9px 7px; border-radius: 9px; text-align: center;
  background: linear-gradient(180deg, rgba(31, 44, 98, .36), rgba(10, 13, 42, .45));
  box-shadow: inset 0 0 0 1px rgba(76, 195, 255, .14);
}
.mini-stat b { display: block; font-size: 16px; font-weight: 900; color: #fbffff; font-variant-numeric: tabular-nums; }
.mini-stat span { display: block; margin-top: 2px; font-size: 9px; color: var(--muted); letter-spacing: .04em; }

/* upgrade */
.sheet-upgrade { align-items: flex-end; padding: 0 10px calc(var(--dock-h) + var(--safe-bottom) + 8px); }
.sheet-upgrade .sheet-frame {
  width: 100%; max-width: 460px; border-radius: 18px;
  border: 1px solid rgba(102, 220, 255, .52);
  max-height: 78dvh; padding: 14px 11px 10px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(58, 54, 152, .5), transparent 62%),
    linear-gradient(180deg, rgba(12, 16, 52, .985), rgba(6, 6, 25, .995));
  box-shadow: inset 0 0 0 4px rgba(20, 28, 78, .55), inset 0 0 24px rgba(50, 121, 255, .18),
    0 -1px 0 rgba(176, 246, 255, .5), 0 0 34px rgba(64, 130, 255, .3), 0 14px 44px rgba(0, 0, 0, .6);
  animation: upgradeIn .28s cubic-bezier(.18, .9, .3, 1);
}
.sheet-upgrade .sheet-frame::after {
  content: ""; position: absolute; inset: 5px; border-radius: 14px;
  border: 1px solid rgba(88, 216, 255, .18); pointer-events: none;
}
.upgrade-head { text-align: center; }
.upgrade-head h2 { font-size: 21px; letter-spacing: .09em; text-shadow: 0 0 20px rgba(113, 99, 255, .6); }
.upgrade-head h2::before, .upgrade-head h2::after {
  color: #63e6ff; font-weight: 700; font-size: 15px; letter-spacing: -.12em;
  text-shadow: 0 0 10px rgba(84, 228, 255, .95); opacity: .95;
}
.upgrade-head h2::before { content: "‹‹"; margin-right: 9px; }
.upgrade-head h2::after { content: "››"; margin-left: 9px; }
.upgrade-head p { margin: 4px 0 0; font-size: 10px; color: #8092c4; letter-spacing: .06em; }
.upgrade-ornament {
  position: absolute; left: 50%; top: -1px; transform: translateX(-50%);
  width: 62%; height: 1px;
  background: linear-gradient(90deg, transparent, #6eeaff, #c45bff, transparent);
  box-shadow: 0 0 14px rgba(119, 227, 255, .8);
}
.upgrade-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 11px; }
.up-card {
  position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center;
  padding: 11px 6px 9px; min-height: 166px; border-radius: 10px;
  color: var(--c, #6fe9ff);
  background: linear-gradient(180deg, rgba(19, 27, 70, .9), rgba(8, 10, 32, .97));
  background:
    radial-gradient(90% 50% at 50% 0%, color-mix(in srgb, var(--c, #6fe9ff) 18%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(19, 27, 70, .9), rgba(8, 10, 32, .97));
  box-shadow: 0 0 0 1px var(--c, #6fe9ff), inset 0 0 24px rgba(7, 9, 28, .7), 0 0 20px rgba(64, 155, 255, .12);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, #6fe9ff) 55%, transparent), 0 0 22px color-mix(in srgb, var(--c, #6fe9ff) 13%, transparent);
  overflow: hidden; transition: transform .16s, box-shadow .16s;
}
.up-card::before {
  content: ""; position: absolute; inset: 4px; border-radius: 8px;
  border: 1px solid rgba(137, 214, 255, .16);
  border-color: color-mix(in srgb, var(--c, #6fe9ff) 18%, transparent);
  pointer-events: none;
}
.up-card:active { transform: scale(.965); }
.up-card .up-lv { align-self: flex-end; font-size: 8px; font-weight: 900; color: #0b0d20; background: var(--c, #6fe9ff); border-radius: 3px; padding: 1px 4px; letter-spacing: .03em; opacity: .92; }
.up-card .up-ico {
  width: 48px; height: 48px; margin: 3px 0 8px; display: grid; place-items: center; border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 38% 30%, rgba(255,255,255,.9), var(--c, #6fe9ff) 14%, #0b1230 64%);
  background: radial-gradient(circle at 38% 30%, rgba(255,255,255,.9), var(--c, #6fe9ff) 14%, color-mix(in srgb, var(--c, #6fe9ff) 55%, #0b1230) 64%);
  box-shadow: 0 0 18px var(--c, #6fe9ff), inset 0 0 12px rgba(255,255,255,.48);
  box-shadow: 0 0 18px color-mix(in srgb, var(--c, #6fe9ff) 70%, transparent), inset 0 0 12px rgba(255,255,255,.48);
}
.up-card .up-ico .mp-icon { width: 25px; height: 25px; color: #071222; filter: drop-shadow(0 0 3px rgba(255,255,255,.8)); }
.up-card b {
  font-size: 13px; font-weight: 900; letter-spacing: .02em; color: #fff;
  text-shadow: 0 0 9px var(--c, #6fe9ff);
  text-shadow: 0 0 9px color-mix(in srgb, var(--c, #6fe9ff) 75%, transparent);
}
.up-card em { margin-top: 6px; font-size: 9.5px; font-weight: 500; line-height: 1.48; color: #aab8df; text-align: center; }
.up-card .up-level { margin-top: auto; padding-top: 7px; font-size: 8px; color: var(--c, #6fe9ff); color: color-mix(in srgb, var(--c, #6fe9ff) 84%, #fff); letter-spacing: .04em; }
.upgrade-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 8px; letter-spacing: .1em; color: #6978a8; }

/* result */
.sheet-result { align-items: center; padding: 12px; }
.sheet-result .sheet-frame { border-radius: 20px; border: 1px solid rgba(255, 126, 168, .36); text-align: center; max-width: 440px; animation: upgradeIn .3s cubic-bezier(.18,.9,.3,1); }
.result-glyph {
  width: 66px; height: 66px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center;
  color: #ffd7e2; background: radial-gradient(circle at 38% 30%, rgba(255, 143, 174, .55), rgba(91, 13, 45, .7) 64%);
  box-shadow: inset 0 0 0 1px rgba(255, 111, 150, .55), 0 0 30px rgba(255, 36, 100, .25);
}
.result-glyph .mp-icon { width: 31px; height: 31px; }
.result-frame h2 { font-size: 27px; }
.result-sub { margin: 5px 0 0; font-size: 10.5px; color: #8e9cc9; }
.result-score { margin: 14px 0 10px; padding: 11px; border-radius: 11px; background: linear-gradient(180deg, rgba(45, 37, 102, .35), rgba(12, 12, 38, .5)); box-shadow: inset 0 0 0 1px rgba(124, 220, 255, .18); }
.result-score > span:first-child { display: block; font-size: 9px; letter-spacing: .2em; color: #8a9ac7; }
.result-score b { display: block; margin: 2px 0 1px; font-size: 38px; line-height: 1; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(255, 186, 77, .5), 0 0 36px rgba(255, 119, 61, .25); }
.score-best { font-size: 9px; color: #b99068; }
.result-stats { margin-top: 2px; }
.result-bank { margin: 11px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: #e8d8a8; }
.result-bank .mp-icon { width: 15px; height: 15px; color: #ffcd4f; }
.result-bank b { font-size: 18px; font-weight: 900; color: #ffd76d; text-shadow: 0 0 12px rgba(255, 190, 55, .6); }
.new-record { margin-top: 9px; padding: 7px; border-radius: 8px; font-size: 10.5px; font-weight: 800; color: #ffe6a8; background: rgba(255, 156, 42, .1); box-shadow: inset 0 0 0 1px rgba(255, 185, 74, .32); }
.new-record .mp-icon { width: 14px; height: 14px; vertical-align: -2px; color: #ffd05a; }
.text-link { margin: 10px auto 0; display: inline-flex; align-items: center; gap: 2px; font-size: 10.5px; color: #7cc8ff; }
.text-link .mp-icon { width: 14px; height: 14px; }

/* tabs */
.tabs { display: flex; gap: 5px; margin-top: 11px; padding: 4px; border-radius: 11px; background: rgba(6, 8, 28, .6); box-shadow: inset 0 0 0 1px rgba(74, 171, 255, .12); flex: 0 0 auto; }
.tab {
  flex: 1; height: 33px; border-radius: 8px; font-size: 11px; font-weight: 700; color: #7f90bd;
  letter-spacing: .04em; transition: .16s;
}
.tab.is-on { color: #0b1e28; background: linear-gradient(180deg, #b5fbff, #44dbf3); box-shadow: 0 0 14px rgba(68, 219, 243, .34); }

/* shop cards */
.shop-grid { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.shop-section-title { display: flex; align-items: center; gap: 6px; margin: 4px 1px 0; font-size: 10px; font-weight: 800; letter-spacing: .16em; color: #7d90c2; }
.shop-section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(87, 199, 255, .22), transparent); }
.shop-card {
  display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 12px;
  background: linear-gradient(110deg, rgba(26, 35, 84, .55), rgba(9, 11, 33, .8));
  box-shadow: inset 0 0 0 1px rgba(83, 192, 255, .15);
}
.shop-card.is-epic { box-shadow: inset 0 0 0 1px rgba(255, 178, 69, .36), 0 0 16px rgba(255, 140, 36, .08); }
.shop-preview {
  position: relative; width: 66px; height: 56px; flex: 0 0 66px; border-radius: 9px; overflow: hidden;
  background: radial-gradient(80% 90% at 50% 40%, rgba(39, 82, 160, .4), rgba(6, 8, 26, .85));
  box-shadow: inset 0 0 0 1px rgba(90, 204, 255, .16);
  display: grid; place-items: center;
}
.shop-preview .mp-icon { width: 25px; height: 25px; }
.skin-beam {
  width: 46px; height: 9px; border-radius: 6px;
  background: linear-gradient(90deg, var(--c1, #27e6ff), var(--c2, #7c5cff));
  box-shadow: 0 0 12px var(--c1, #27e6ff), 0 0 22px color-mix(in srgb, var(--c2, #7c5cff) 55%, transparent);
  transform: perspective(30px) rotateX(18deg);
}
.skin-orb {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 33% 28%, #fff, var(--c1, #7df9ff) 38%, var(--c2, #2a5cff) 78%);
  box-shadow: 0 0 13px var(--c1, #7df9ff), 0 0 26px color-mix(in srgb, var(--c1, #7df9ff) 48%, transparent);
}
.skin-fx { position: relative; width: 46px; height: 30px; }
.skin-fx i { position: absolute; width: 5px; height: 5px; border-radius: 1px; background: var(--c1, #8ff7ff); box-shadow: 0 0 8px var(--c1, #8ff7ff); transform: rotate(35deg); }
.skin-fx i:nth-child(1) { left: 7px; top: 6px; }
.skin-fx i:nth-child(2) { left: 23px; top: 16px; width: 4px; height: 4px; }
.skin-fx i:nth-child(3) { left: 34px; top: 4px; width: 3px; height: 3px; }
.skin-fx i:nth-child(4) { left: 12px; top: 22px; width: 3px; height: 3px; }
.shop-mid { flex: 1 1 auto; min-width: 0; }
.shop-mid .shop-name { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; color: #f1f8ff; }
.rarity { font-size: 7.5px; font-weight: 900; padding: 1px 4px; border-radius: 3px; letter-spacing: .03em; color: #aebad8; background: rgba(112, 131, 177, .18); border: 1px solid rgba(139, 158, 207, .22); }
.rarity.rare { color: #8fe8ff; background: rgba(45, 176, 255, .14); border-color: rgba(87, 211, 255, .38); }
.rarity.epic { color: #ffd47d; background: rgba(255, 160, 47, .13); border-color: rgba(255, 188, 80, .42); text-shadow: 0 0 6px rgba(255, 177, 61, .55); }
.shop-desc { margin-top: 3px; font-size: 9.5px; line-height: 1.35; color: #8796c1; }
.shop-buy { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.price { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 900; color: #ffd873; font-variant-numeric: tabular-nums; }
.price .mp-icon { width: 12px; height: 12px; color: #ffcb4e; }
.price.is-shard { color: #ff9ce8; }
.price.is-shard .mp-icon { color: #ff7bdd; }
.buy-btn { min-height: 29px; padding: 0 11px; border-radius: 7px; font-size: 10px; font-weight: 800; color: #2a1200; background: linear-gradient(180deg, #ffd879, #ff9a3e); box-shadow: 0 0 12px rgba(255, 143, 51, .22); }
.buy-btn.owned { color: #91a9d6; background: rgba(101, 125, 179, .14); box-shadow: inset 0 0 0 1px rgba(122, 151, 213, .24); }
.buy-btn.equipped { color: #08222a; background: linear-gradient(180deg, #9df7ff, #39d5ee); box-shadow: 0 0 12px rgba(58, 214, 236, .28); }
.buy-btn:disabled { opacity: .55; }
.inv-count { font-size: 8px; color: #7d8fba; }

/* gacha */
.gacha-banner {
  position: relative; margin-top: 10px; height: 124px; border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(55% 90% at 72% 50%, rgba(192, 75, 255, .38), transparent 64%),
    radial-gradient(40% 70% at 20% 50%, rgba(56, 191, 255, .3), transparent 66%),
    linear-gradient(120deg, #15103c, #2a0e40 58%, #0c0b2d);
  box-shadow: inset 0 0 0 1px rgba(199, 113, 255, .25);
}
.gacha-banner::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 18px, rgba(255,255,255,.025) 18px 19px);
  pointer-events: none;
}
.gacha-rings { position: absolute; right: 17px; top: 50%; width: 100px; height: 100px; transform: translateY(-50%); }
.gacha-rings i {
  position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(150, 224, 255, .46);
  border-left-color: transparent; border-right-color: rgba(255, 122, 226, .75);
  animation: ringSpin 8s linear infinite;
}
.gacha-rings i:nth-child(2) { inset: 11px; border-color: rgba(217, 126, 255, .55); border-top-color: transparent; animation-direction: reverse; animation-duration: 5.6s; }
.gacha-rings i:nth-child(3) { inset: 23px; border-color: rgba(117, 235, 255, .6); border-bottom-color: transparent; animation-duration: 4.2s; }
.gacha-rings span {
  position: absolute; inset: 37px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff, #b8f8ff 22%, #a34bff 62%, #3b137e);
  box-shadow: 0 0 24px rgba(165, 97, 255, .8), 0 0 48px rgba(76, 183, 255, .35);
}
.gacha-banner-copy { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); z-index: 2; }
.rarity-flag { display: inline-block; font-size: 8px; font-weight: 900; letter-spacing: .15em; color: #160b00; background: linear-gradient(90deg, #ffe290, #ffae42); border-radius: 3px; padding: 2px 5px; }
.gacha-banner-copy b { display: block; margin-top: 6px; font-size: 24px; font-weight: 900; letter-spacing: .06em; color: #fff; text-shadow: 0 0 16px rgba(181, 112, 255, .88), 0 0 28px rgba(95, 201, 255, .55); }
.gacha-banner-copy p { margin: 3px 0 0; font-size: 9px; color: #b5a7e2; letter-spacing: .02em; }
.pity-panel { margin-top: 10px; padding: 9px 11px; border-radius: 10px; background: rgba(12, 12, 38, .58); box-shadow: inset 0 0 0 1px rgba(176, 103, 255, .16); }
.pity-top { display: flex; justify-content: space-between; font-size: 10px; color: #b4a7da; }
.pity-top b { font-size: 11.5px; color: #ffc4f1; letter-spacing: .05em; }
.pity-bar { position: relative; height: 6px; margin: 6px 0 5px; border-radius: 4px; background: rgba(31, 20, 66, .95); overflow: hidden; }
.pity-bar i { display: block; height: 100%; width: 0%; border-radius: 4px; background: linear-gradient(90deg, #7c5cff, #e15bff, #ff8a3d); box-shadow: 0 0 8px #d45bff; transition: width .35s ease; }
.pity-mark { position: absolute; top: 0; width: 1px; height: 100%; background: rgba(255, 255, 255, .32); }
.pity-mark.m10 { left: 33.33%; }
.pity-mark.m20 { left: 66.66%; }
.pity-panel p { margin: 0; font-size: 8.5px; color: #6f7ea9; }
.gacha-actions { display: grid; grid-template-columns: 1fr 1.14fr; gap: 8px; margin-top: 10px; }
.btn-draw { flex-direction: column; gap: 2px; min-height: 56px; border-radius: 11px; color: #e9f8ff; background: linear-gradient(180deg, rgba(37, 58, 126, .8), rgba(11, 14, 46, .92)); box-shadow: inset 0 0 0 1px rgba(91, 209, 255, .32), 0 0 18px rgba(44, 153, 255, .1); }
.btn-draw-10 { color: #1e0a00; background: linear-gradient(135deg, #ffd071, #ff8a3d 60%, #ff6a45); box-shadow: 0 0 0 1px rgba(255, 226, 160, .55) inset, 0 6px 22px rgba(255, 124, 48, .25); }
.draw-title { font-size: 13px; font-weight: 900; }
.draw-price { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 800; opacity: .82; }
.draw-price .mp-icon { width: 11px; height: 11px; }
.draw-price em { font-size: 8px; font-style: normal; opacity: .8; }
.shard-melt {
  display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 9px; border-radius: 10px;
  background: linear-gradient(100deg, rgba(70, 30, 94, .56), rgba(12, 12, 38, .66));
  box-shadow: inset 0 0 0 1px rgba(216, 112, 255, .22);
}
.melt-ico { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 7px; color: #ff9ce8; background: rgba(146, 50, 151, .22); }
.melt-ico .mp-icon { width: 16px; height: 16px; }
.melt-copy { flex: 1; min-width: 0; }
.melt-copy b { display: block; font-size: 11px; font-weight: 900; color: #f4e5ff; }
.melt-copy em { display: block; margin-top: 1px; font-size: 8.5px; color: #a58ac6; }
.btn-melt { flex: 0 0 auto; min-height: 32px; padding: 0 10px; border-radius: 7px; font-size: 10px; font-weight: 800; color: #2a0730; background: linear-gradient(180deg, #ffc4f2, #e36bdd); box-shadow: 0 0 12px rgba(227, 107, 221, .24); }
.btn-melt.is-poor { opacity: .42; }
.btn-melt:disabled { opacity: .42; }
.gacha-stage { margin-top: 12px; padding: 18px 10px; border-radius: 12px; text-align: center; background: radial-gradient(60% 80% at 50% 40%, rgba(134, 66, 255, .28), rgba(8, 9, 30, .6)); box-shadow: inset 0 0 0 1px rgba(167, 100, 255, .22); }
.stage-rings { position: relative; width: 84px; height: 84px; margin: 0 auto 8px; }
.stage-rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(111, 230, 255, .55); border-right-color: transparent; animation: ringSpin 1s linear infinite; }
.stage-rings i:nth-child(2) { inset: 10px; border-color: rgba(221, 112, 255, .65); border-left-color: transparent; animation-direction: reverse; animation-duration: .7s; }
.stage-rings i:nth-child(3) { inset: 21px; border-color: rgba(255, 174, 71, .65); border-top-color: transparent; animation-duration: 1.4s; }
.stage-rings span { position: absolute; inset: 34px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #fff, #bcfaff 25%, #b75bff 70%, #391170); box-shadow: 0 0 22px rgba(179, 93, 255, .8); animation: corePulse .7s ease-in-out infinite alternate; }
.gacha-stage b { font-size: 11px; letter-spacing: .16em; color: #c6b8ff; }
.gacha-results { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 11px; }
.gacha-results.is-ten { grid-template-columns: repeat(5, 1fr); }
.loot-card {
  position: relative; min-width: 0; padding: 8px 3px 7px; border-radius: 8px; text-align: center;
  background: linear-gradient(180deg, rgba(22, 30, 73, .75), rgba(8, 10, 30, .9));
  box-shadow: inset 0 0 0 1px rgba(88, 155, 255, .2);
  animation: lootIn .38s cubic-bezier(.2, 1.2, .4, 1) both;
}
.loot-card[data-rarity="rare"] { box-shadow: inset 0 0 0 1px rgba(77, 211, 255, .55), 0 0 14px rgba(45, 173, 255, .12); }
.loot-card[data-rarity="epic"] { box-shadow: inset 0 0 0 1px rgba(255, 189, 74, .66), 0 0 16px rgba(255, 145, 40, .2); background: linear-gradient(180deg, rgba(79, 42, 30, .64), rgba(20, 10, 26, .93)); }
.loot-ico { width: 30px; height: 30px; margin: 0 auto 4px; border-radius: 7px; display: grid; place-items: center; color: #9fe9ff; background: rgba(50, 85, 150, .22); }
.loot-ico .mp-icon { width: 17px; height: 17px; }
.loot-card[data-rarity="epic"] .loot-ico { color: #ffd576; background: rgba(255, 159, 44, .17); }
.loot-name { display: block; font-size: 8px; font-weight: 700; line-height: 1.25; color: #d3e3ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loot-kind { display: block; margin-top: 2px; font-size: 6.5px; color: #7484ae; }
.loot-card .loot-rarity { position: absolute; top: 3px; right: 3px; width: 9px; height: 9px; border-radius: 50%; background: #7383b1; font-size: 0; }
.loot-card[data-rarity="rare"] .loot-rarity { background: #45d6ff; box-shadow: 0 0 6px #45d6ff; }
.loot-card[data-rarity="epic"] .loot-rarity { background: #ffbe46; box-shadow: 0 0 7px #ffbe46; }
.loot-empty { grid-column: 1/-1; padding: 16px; text-align: center; font-size: 10px; color: #7180a8; }
.pool-list { margin-top: 12px; }
.pool-title { margin: 0 0 5px; font-size: 9px; font-weight: 800; letter-spacing: .16em; color: #7585b2; }
.pool-row { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-top: 1px solid rgba(94, 122, 180, .1); font-size: 9.5px; color: #a5b5dc; }
.pool-row i { width: 6px; height: 6px; border-radius: 50%; background: #6f7fa9; flex: 0 0 6px; }
.pool-row i.rare { background: #45d6ff; box-shadow: 0 0 5px #45d6ff; }
.pool-row i.epic { background: #ffbe46; box-shadow: 0 0 5px #ffbe46; }
.pool-row span { margin-left: auto; color: #66749e; font-size: 8px; }

/* tasks */
.task-list { display: flex; flex-direction: column; gap: 8px; padding-top: 11px; }
.task-card {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 10px;
  border-radius: 11px; background: linear-gradient(110deg, rgba(27, 36, 84, .5), rgba(9, 11, 32, .78));
  box-shadow: inset 0 0 0 1px rgba(86, 188, 255, .14);
}
.task-card.is-ready { box-shadow: inset 0 0 0 1px rgba(255, 190, 76, .48), 0 0 16px rgba(255, 144, 42, .08); }
.task-ico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 9px; display: grid; place-items: center; color: #9fefff; background: rgba(45, 111, 180, .22); box-shadow: inset 0 0 0 1px rgba(89, 200, 255, .16); }
.task-ico .mp-icon { width: 20px; height: 20px; }
.task-mid { flex: 1; min-width: 0; }
.task-name { font-size: 12px; font-weight: 800; color: #eef7ff; }
.task-progress-text { display: flex; justify-content: space-between; margin-top: 4px; font-size: 8.5px; color: #7887b1; }
.task-progress-text b { color: #a9bde8; }
.task-bar { height: 4px; margin-top: 3px; border-radius: 3px; background: rgba(30, 35, 74, .9); overflow: hidden; }
.task-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #37dff5, #a158ff); box-shadow: 0 0 7px rgba(74, 217, 255, .7); }
.task-reward { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.task-reward .price { font-size: 11px; }
.claim-btn { min-height: 27px; padding: 0 9px; border-radius: 6px; font-size: 9.5px; font-weight: 800; color: #2a1500; background: linear-gradient(180deg, #ffd979, #ff9f3f); }
.claim-btn.done { color: #7f8fb5; background: rgba(98, 119, 166, .12); box-shadow: inset 0 0 0 1px rgba(112, 135, 186, .2); }
.task-date-note { padding: 12px 4px 4px; text-align: center; font-size: 9px; color: #5e6c98; }

/* achievements */
.ach-summary { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 11px; border-radius: 11px; background: linear-gradient(100deg, rgba(52, 39, 103, .55), rgba(11, 12, 36, .65)); box-shadow: inset 0 0 0 1px rgba(162, 121, 255, .2); }
.ach-summary .ach-orb { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; display: grid; place-items: center; color: #ffdb82; background: radial-gradient(circle at 36% 28%, rgba(255, 232, 156, .7), rgba(126, 65, 16, .55) 60%); box-shadow: 0 0 18px rgba(255, 180, 56, .22), inset 0 0 0 1px rgba(255, 208, 103, .38); }
.ach-summary .ach-orb .mp-icon { width: 22px; height: 22px; }
.ach-summary b { display: block; font-size: 17px; font-weight: 900; color: #fff4d7; }
.ach-summary p { margin: 2px 0 0; font-size: 9px; color: #a497ca; }
.ach-body { display: flex; flex-direction: column; gap: 8px; padding-top: 11px; }
.ach-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 11px; background: linear-gradient(110deg, rgba(27, 34, 80, .48), rgba(9, 11, 30, .78)); box-shadow: inset 0 0 0 1px rgba(88, 171, 255, .12); }
.ach-card.is-on { box-shadow: inset 0 0 0 1px rgba(255, 192, 79, .34); background: linear-gradient(110deg, rgba(73, 52, 37, .4), rgba(12, 11, 30, .8)); }
.ach-card .ach-ico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; display: grid; place-items: center; color: #7f90b8; background: rgba(44, 55, 102, .3); }
.ach-card.is-on .ach-ico { color: #ffd578; background: rgba(123, 77, 25, .36); box-shadow: 0 0 13px rgba(255, 178, 46, .15); }
.ach-ico .mp-icon { width: 20px; height: 20px; }
.ach-mid { flex: 1; min-width: 0; }
.ach-name { font-size: 12px; font-weight: 800; color: #e8f2ff; }
.ach-desc { margin-top: 2px; font-size: 8.5px; color: #818fb9; line-height: 1.35; }
.ach-bar { height: 3px; margin-top: 5px; border-radius: 2px; background: rgba(31, 37, 77, .9); overflow: hidden; }
.ach-bar i { display: block; height: 100%; background: linear-gradient(90deg, #b05bff, #ffc04a); }
.ach-state { flex: 0 0 auto; text-align: right; }
.ach-title { display: block; font-size: 8.5px; font-weight: 800; color: #ffd782; }
.ach-shard { display: block; margin-top: 2px; font-size: 8px; color: #d38cff; }
.equip-title { margin-top: 4px; min-height: 24px; padding: 0 7px; border-radius: 5px; font-size: 8px; font-weight: 800; color: #dff9ff; background: rgba(51, 180, 255, .16); box-shadow: inset 0 0 0 1px rgba(83, 202, 255, .28); }
.equip-title.on { color: #2b1a00; background: linear-gradient(180deg, #ffe18d, #ffb153); }
.equip-title.locked { color: #65749c; background: rgba(79, 91, 130, .14); box-shadow: none; }

/* leaderboard */
.board-note { display: flex; align-items: center; gap: 5px; margin-top: 9px; padding: 7px 9px; border-radius: 8px; font-size: 8.5px; color: #8ea2cd; background: rgba(28, 43, 88, .3); box-shadow: inset 0 0 0 1px rgba(79, 165, 255, .12); }
.board-note .mp-icon { width: 13px; height: 13px; color: #5fd8ff; flex: 0 0 13px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 7px; padding: 17px 2px 13px; }
.podium-item { flex: 1 1 0; max-width: 100px; text-align: center; }
.podium-avatar { position: relative; width: 41px; height: 41px; margin: 0 auto 5px; border-radius: 50%; display: grid; place-items: center; color: #dff8ff; font-size: 15px; font-weight: 900; background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.3), rgba(49, 80, 160, .6) 60%); box-shadow: inset 0 0 0 1px rgba(121, 217, 255, .35), 0 0 15px rgba(57, 161, 255, .15); }
.podium-item.p1 .podium-avatar { width: 52px; height: 52px; color: #3a2200; background: radial-gradient(circle at 34% 28%, #fff4bf, #ffc547 48%, #d88313); box-shadow: 0 0 20px rgba(255, 183, 49, .35), inset 0 0 0 2px rgba(255, 240, 172, .55); }
.podium-name { font-size: 9.5px; font-weight: 800; color: #dbe9ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-score { font-size: 8.5px; color: #ffd176; font-weight: 800; }
.podium-base { margin-top: 5px; border-radius: 6px 6px 0 0; font-size: 9px; font-weight: 900; color: #dffaff; background: linear-gradient(180deg, rgba(40, 92, 162, .7), rgba(16, 25, 64, .8)); box-shadow: inset 0 0 0 1px rgba(96, 205, 255, .24); display: flex; align-items: flex-start; justify-content: center; padding-top: 5px; }
.podium-item.p1 .podium-base { height: 69px; background: linear-gradient(180deg, rgba(135, 85, 22, .7), rgba(48, 32, 15, .8)); box-shadow: inset 0 0 0 1px rgba(255, 193, 79, .38); color: #ffe6a7; }
.podium-item.p2 .podium-base { height: 54px; }
.podium-item.p3 .podium-base { height: 44px; }
.podium-item.is-me .podium-name { color: #ffb06b; }
.board-list { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; }
.board-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; background: rgba(16, 21, 52, .42); }
.board-row.is-me { background: linear-gradient(90deg, rgba(255, 139, 61, .14), rgba(16, 21, 52, .42)); box-shadow: inset 0 0 0 1px rgba(255, 159, 71, .3); }
.board-rank { width: 18px; flex: 0 0 18px; font-size: 10px; font-weight: 900; color: #7181ab; text-align: center; }
.board-row.is-me .board-rank { color: #ffb66c; }
.board-who { flex: 1; min-width: 0; }
.board-who b { display: block; font-size: 10.5px; color: #e2edff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-who span { display: block; font-size: 7.5px; color: #7583ac; }
.board-wave { font-size: 8.5px; color: #8fc7ff; flex: 0 0 auto; }
.board-score { width: 58px; flex: 0 0 58px; text-align: right; font-size: 11px; font-weight: 900; color: #ffd47b; font-variant-numeric: tabular-nums; }
.board-empty { padding: 22px; text-align: center; font-size: 10px; color: #7180a8; }

/* settings */
.setting-group { margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(92, 126, 188, .14); }
.setting-group:first-child { border-top: 0; margin-top: 10px; padding-top: 0; }
.setting-group-title { margin-bottom: 7px; font-size: 9px; font-weight: 800; letter-spacing: .18em; color: #7083b3; }
.profile-edit { display: flex; align-items: center; gap: 12px; }
.nick-edit { flex: 1; min-width: 0; }
.nick-edit label { display: block; margin-bottom: 4px; font-size: 9px; color: #7d8db8; }
.nick-row { display: flex; gap: 6px; }
.nick-row input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border: 0; border-radius: 7px; font-size: 12px; color: #effaff; background: rgba(5, 8, 26, .8); box-shadow: inset 0 0 0 1px rgba(90, 190, 255, .24); }
.nick-row input:focus { box-shadow: inset 0 0 0 1px rgba(93, 224, 255, .7), 0 0 12px rgba(62, 212, 255, .12); }
.setting-row { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 0 2px; border-bottom: 1px solid rgba(91, 119, 174, .1); cursor: pointer; }
.setting-row > span { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #ccddf9; }
.setting-row > span .mp-icon { width: 17px; height: 17px; color: #76b9f0; }
.setting-row input { position: absolute; opacity: 0; pointer-events: none; }
.setting-row > i { width: 38px; height: 21px; border-radius: 12px; background: rgba(41, 47, 82, .9); position: relative; box-shadow: inset 0 0 0 1px rgba(112, 134, 186, .25); transition: .18s; flex: 0 0 38px; }
.setting-row > i::after { content: ""; position: absolute; width: 15px; height: 15px; border-radius: 50%; left: 3px; top: 3px; background: #7987ad; transition: .18s; }
.setting-row input:checked + i { background: linear-gradient(90deg, #22c9ed, #7a5cff); box-shadow: 0 0 12px rgba(52, 210, 255, .3); }
.setting-row input:checked + i::after { left: 20px; background: #fff; box-shadow: 0 0 5px #fff; }
.help-card { padding: 10px 11px; border-radius: 9px; background: rgba(12, 15, 43, .55); box-shadow: inset 0 0 0 1px rgba(78, 165, 255, .12); }
.help-card p { margin: 0 0 5px; font-size: 9.5px; line-height: 1.5; color: #91a1ca; }
.help-card p:last-child { margin-bottom: 0; }
.help-card b { color: #e2f6ff; font-weight: 800; }
.version-line { margin: 18px 0 4px; text-align: center; font-size: 8px; letter-spacing: .18em; color: #465477; }

/* toasts, countdown */
.toasts { position: absolute; z-index: 120; left: 50%; top: calc(132px + var(--safe-top)); transform: translateX(-50%); width: min(86%, 380px); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
body.sheet-open .toasts { top: calc(10px + var(--safe-top)); }
.toast {
  display: flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 7px 12px; border-radius: 8px; font-size: 10.5px; font-weight: 700; color: #e5f9ff;
  background: rgba(8, 13, 39, .94); box-shadow: inset 0 0 0 1px rgba(84, 209, 255, .3), 0 5px 20px rgba(0,0,0,.45);
  animation: toastIn .25s cubic-bezier(.2,1.2,.4,1);
}
.toast .mp-icon { width: 14px; height: 14px; color: #66e9ff; flex: 0 0 14px; }
.toast.warn { box-shadow: inset 0 0 0 1px rgba(255, 174, 60, .44); color: #ffedc4; }
.toast.warn .mp-icon { color: #ffc14a; }
.toast.good { box-shadow: inset 0 0 0 1px rgba(89, 255, 190, .38); }
.toast.good .mp-icon { color: #58ffc0; }
.toast.bad { box-shadow: inset 0 0 0 1px rgba(255, 93, 128, .44); }
.toast.bad .mp-icon { color: #ff6a8c; }
.toast.is-out { animation: toastOut .22s ease-in forwards; }
.countdown { position: absolute; inset: 0; z-index: 58; display: grid; place-items: center; pointer-events: none; }
.countdown::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(38, 205, 255, .08), transparent 55%); }
.countdown span { font-size: 92px; font-weight: 900; line-height: 1; color: #fff; text-shadow: 0 0 30px rgba(72, 220, 255, .9), 0 0 70px rgba(140, 77, 255, .6); animation: countPop .42s cubic-bezier(.2,1.4,.4,1); }
.countdown em { position: absolute; top: calc(50% + 56px); font-size: 10px; letter-spacing: .28em; color: #9fefff; }

/* =========================================================
   LOBBY · 大厅
   ========================================================= */
#app.is-lobby .hud,
#app.is-lobby #dock,
#app.is-lobby #game,
#app.is-lobby .run-coin,
#app.is-lobby .combo,
#app.is-lobby .launch-hint { display: none !important; }

.lobby {
  position: absolute; inset: 0; z-index: 34; overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(80% 46% at 50% 4%, rgba(38, 24, 92, .6), transparent 66%),
    linear-gradient(180deg, #08041c 0%, #060316 46%, #03010c 100%);
}
.lobby-art {
  position: absolute; inset: -36px;
  background: url("images/gen/gptimg_1795240130_look.png") center 24% / cover no-repeat;
  filter: blur(11px) saturate(1.28) brightness(.5);
  transform: scale(1.12);
  opacity: .82; pointer-events: none;
}
.lobby-scan {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(90% 60% at 50% 20%, transparent 0%, rgba(4, 2, 16, .5) 64%, rgba(2, 1, 10, .94) 100%),
    repeating-linear-gradient(180deg, rgba(103, 226, 255, .028) 0 1px, transparent 1px 4px);
}
.lobby-scan::after {
  content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(109, 231, 255, .7), rgba(206, 104, 255, .55), transparent);
  box-shadow: 0 0 14px rgba(87, 222, 255, .65);
}
.lobby-scroll {
  position: relative; z-index: 2;
  height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(10px + var(--safe-top)) 16px calc(24px + var(--safe-bottom));
  display: flex; flex-direction: column; gap: 10px;
  max-width: 560px; margin: 0 auto;
  scrollbar-width: none;
}
.lobby-scroll::-webkit-scrollbar { display: none; }
.lobby-scroll > * { flex: 0 0 auto; }

.lobby-top { display: flex; align-items: center; gap: 8px; min-height: 42px; }
.lobby-profile { display: flex; align-items: center; gap: 9px; min-width: 0; }
.avatar-lobby {
  width: 42px; height: 42px; flex: 0 0 42px; font-size: 17px;
  box-shadow: 0 0 0 2px rgba(140, 240, 255, .55), 0 0 20px rgba(76, 204, 255, .45);
}
.avatar-lobby .mp-icon { width: 20px; height: 20px; }
.lobby-id { min-width: 0; }
.lobby-id b {
  display: block; font-size: 14px; font-weight: 900; letter-spacing: .02em;
  color: #f2fbff; text-shadow: 0 0 12px rgba(80, 218, 255, .42);
  max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lobby-id span {
  display: inline-block; margin-top: 3px; padding: 1px 6px; border-radius: 4px;
  font-size: 8px; font-weight: 900; letter-spacing: .08em; color: #ffd88a;
  background: rgba(255, 156, 43, .12); box-shadow: inset 0 0 0 1px rgba(255, 192, 94, .36);
}
.lobby-wallet { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lobby-coin, .lobby-shard {
  display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 9px;
  border-radius: 8px; font-size: 12px; font-weight: 900;
  background: linear-gradient(180deg, rgba(35, 44, 104, .82), rgba(8, 11, 36, .92));
  box-shadow: inset 0 0 0 1px rgba(105, 218, 255, .3), inset 0 1px 0 rgba(255,255,255,.1);
}
.lobby-coin { color: #ffe08a; }
.lobby-shard { color: #ffb2ef; }
.lobby-coin .mp-icon { width: 14px; height: 14px; color: #ffcb4d; }
.lobby-shard .mp-icon { width: 14px; height: 14px; color: #ff7bdd; }
.lobby-coin b, .lobby-shard b { font-variant-numeric: tabular-nums; }
.lobby-settings { width: 30px; height: 30px; border-radius: 8px; }
.lobby-settings .mp-icon { width: 16px; height: 16px; }

.lobby-hero {
  position: relative; margin-top: 3px; padding: 17px 15px 14px;
  border-radius: 22px; overflow: hidden; text-align: center;
  background:
    radial-gradient(88% 80% at 50% -8%, rgba(86, 63, 192, .5), transparent 62%),
    linear-gradient(160deg, rgba(17, 19, 60, .82), rgba(7, 7, 26, .9));
  box-shadow:
    inset 0 0 0 1px rgba(101, 222, 255, .24), inset 0 1px 0 rgba(255, 255, 255, .12),
    0 18px 44px rgba(2, 0, 14, .5);
}
.lobby-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(118deg, transparent 0 22px, rgba(126, 234, 255, .022) 22px 23px);
}
.lobby-hero::after {
  content: ""; position: absolute; left: 14%; right: 14%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(133, 243, 255, .9), rgba(205, 108, 255, .7), transparent);
  box-shadow: 0 0 13px rgba(96, 228, 255, .75);
}
.hero-ring { position: absolute; right: -52px; top: -52px; width: 178px; height: 178px; opacity: .36; pointer-events: none; }
.hero-ring i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(93, 224, 255, .42);
  animation: ringSpin 24s linear infinite;
}
.hero-ring i:nth-child(2) { inset: 20px; border-style: solid; border-color: rgba(196, 103, 255, .3); animation-direction: reverse; animation-duration: 16s; }
.hero-ring i:nth-child(3) { inset: 42px; border-color: rgba(255, 166, 80, .24); animation-duration: 11s; }
.hero-ring span {
  position: absolute; inset: 58px; display: block; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg,
    #ffc23a 0 8deg, transparent 8deg 12deg,
    #35e5ff 12deg 20deg, transparent 20deg 24deg,
    #bd5cff 24deg 33deg, transparent 33deg 37deg);
  -webkit-mask: radial-gradient(circle, transparent 0 42%, #000 43%);
  mask: radial-gradient(circle, transparent 0 42%, #000 43%);
  filter: drop-shadow(0 0 9px rgba(120, 214, 255, .55));
}
.hero-ring::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff, #bdf9ff 24%, #9b4bff 66%, #35107b);
  box-shadow: 0 0 18px rgba(156, 104, 255, .75), 0 0 34px rgba(75, 199, 255, .3);
}
.hero-kicker {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  font-size: 7.5px; font-weight: 900; letter-spacing: .3em; color: #78e9ff;
  text-shadow: 0 0 10px rgba(72, 220, 255, .6);
}
.hero-kicker em { width: 15px; height: 1px; background: linear-gradient(90deg, transparent, #68e6ff); }
.hero-kicker em:last-child { background: linear-gradient(90deg, #68e6ff, transparent); }
.lobby-logo {
  position: relative; margin: 7px 0 0; line-height: 1;
  font-size: clamp(34px, 10.6vw, 46px); font-weight: 900; letter-spacing: .055em;
  background: linear-gradient(180deg, #ffffff 2%, #a9f9ff 26%, #57d8ff 52%, #c36bff 76%, #ff8a3d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: .5px rgba(255, 255, 255, .26);
  filter: drop-shadow(0 0 5px rgba(61, 226, 255, .95)) drop-shadow(0 0 20px rgba(130, 66, 255, .75));
}
.hero-sub { position: relative; margin: 7px 0 0; font-size: 10px; letter-spacing: .06em; color: #94a8d8; }
.hero-stats {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin: 13px 0 12px;
}
.hero-stats span {
  padding: 7px 3px 6px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(36, 46, 106, .38), rgba(10, 11, 36, .5));
  box-shadow: inset 0 0 0 1px rgba(81, 194, 255, .14);
}
.hero-stats b {
  display: block; font-size: 17px; font-weight: 900; color: #f5fdff; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(90, 215, 255, .4);
}
.hero-stats em { display: block; margin-top: 2px; font-size: 8px; font-style: normal; letter-spacing: .08em; color: #8394bf; }
.lobby-play {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 62px; padding: 8px 12px; border-radius: 15px; text-align: left;
  color: #2a1400;
  background: linear-gradient(132deg, #ffd584 0%, #ff9a45 52%, #ff6a34 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 233, 182, .65), inset 0 1px 0 rgba(255, 255, 255, .55),
    0 8px 26px rgba(255, 120, 40, .34);
  overflow: hidden;
}
.lobby-play::after {
  content: ""; position: absolute; top: -50%; bottom: -50%; left: -40%; width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-18deg); animation: playShine 3.6s ease-in-out infinite;
}
.lobby-play:active { transform: translateY(1px) scale(.99); filter: brightness(1.04); }
.play-orb {
  position: relative; z-index: 2; width: 42px; height: 42px; flex: 0 0 42px;
  border-radius: 50%; display: grid; place-items: center; color: #431f00;
  background: radial-gradient(circle at 35% 28%, #fffdf1, #ffe29a 38%, #ffb347 72%, #ff7a2e);
  box-shadow: 0 0 18px rgba(255, 195, 95, .9), inset 0 0 0 1px rgba(255,255,255,.7);
}
.play-orb .mp-icon { width: 24px; height: 24px; }
.play-copy { position: relative; z-index: 2; flex: 1; min-width: 0; }
.play-copy b { display: block; font-size: 19px; font-weight: 900; letter-spacing: .06em; text-shadow: 0 1px 0 rgba(255,255,255,.34); }
.play-copy em { display: block; margin-top: 2px; font-size: 9.5px; font-style: normal; font-weight: 800; color: rgba(60, 27, 0, .7); letter-spacing: .02em; }
.play-go {
  position: relative; z-index: 2; width: 27px; height: 27px; flex: 0 0 27px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(68, 31, 0, .16); color: #4b2200;
}
.play-go .mp-icon { width: 18px; height: 18px; }
.lobby-quick { position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lobby-quick span { display: inline-flex; align-items: center; gap: 3px; font-size: 8px; color: #8fa2cf; }
.lobby-quick .mp-icon { width: 11px; height: 11px; color: #65e6ff; }

.lobby-daily {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 10px 11px; border-radius: 14px; text-align: left;
  background: linear-gradient(108deg, rgba(29, 40, 92, .7), rgba(10, 12, 36, .9));
  box-shadow: inset 0 0 0 1px rgba(89, 206, 255, .18);
}
.daily-ico {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; display: grid; place-items: center;
  color: #8ff0b4; background: rgba(39, 120, 88, .24);
  box-shadow: inset 0 0 0 1px rgba(96, 231, 159, .22);
}
.daily-ico .mp-icon { width: 18px; height: 18px; }
.daily-copy { flex: 1; min-width: 0; }
.daily-copy b { display: block; font-size: 12px; font-weight: 900; color: #eefaff; }
.daily-copy em { display: block; margin-top: 2px; font-size: 8.5px; font-style: normal; color: #8193bd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.daily-reward { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 900; color: #ffd475; }
.daily-reward .mp-icon { width: 12px; height: 12px; color: #ffc94d; }
.daily-go { display: inline-flex; align-items: center; gap: 1px; font-size: 9px; font-weight: 800; color: #82d9ff; }
.daily-go .mp-icon { width: 13px; height: 13px; }

.lobby-promo {
  display: flex; align-items: center; gap: 9px; padding: 10px 11px; border-radius: 14px;
  cursor: pointer; text-align: left;
  background:
    radial-gradient(70% 120% at 18% 50%, rgba(151, 76, 255, .3), transparent 70%),
    linear-gradient(108deg, rgba(61, 30, 92, .74), rgba(14, 10, 40, .92));
  box-shadow: inset 0 0 0 1px rgba(200, 121, 255, .26);
}
.lobby-promo:active { transform: scale(.994); }
.promo-art { position: relative; width: 64px; height: 46px; flex: 0 0 64px; }
.promo-card {
  position: absolute; top: 6px; width: 26px; height: 34px; border-radius: 5px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(67, 48, 130, .96), rgba(18, 13, 44, .98));
  box-shadow: inset 0 0 0 1px rgba(197, 139, 255, .46), 0 4px 10px rgba(0,0,0,.4);
}
.promo-card .mp-icon { width: 14px; height: 14px; }
.promo-card.pc1 { left: 1px; transform: rotate(-15deg); color: #ffcf6a; }
.promo-card.pc2 { left: 19px; top: 1px; z-index: 2; color: #ff8ae1; box-shadow: inset 0 0 0 1px rgba(255, 139, 225, .6), 0 0 14px rgba(255, 92, 210, .28); }
.promo-card.pc3 { left: 37px; transform: rotate(15deg); color: #74f0ff; }
.promo-copy { flex: 1; min-width: 0; }
.promo-copy b { display: block; font-size: 13px; font-weight: 900; color: #f8eaff; text-shadow: 0 0 10px rgba(202, 117, 255, .5); }
.promo-copy span { display: block; margin-top: 2px; font-size: 8.5px; color: #a693cd; }
.promo-go { display: inline-flex; align-items: center; gap: 1px; font-size: 10px; font-weight: 900; color: #ffc98a; white-space: nowrap; }
.promo-go .mp-icon { width: 14px; height: 14px; }

.lobby-ad {
  display: flex; align-items: center; gap: 9px; padding: 10px 11px; border-radius: 14px;
  background: linear-gradient(108deg, rgba(98, 56, 12, .56), rgba(20, 13, 36, .9));
  box-shadow: inset 0 0 0 1px rgba(255, 174, 62, .26);
}
.ad-tag {
  flex: 0 0 auto; display: inline-grid; place-items: center;
  height: 15px; padding: 0 4px; border-radius: 3px;
  font-size: 7px; font-weight: 900; letter-spacing: .06em;
  color: #241000; background: linear-gradient(180deg, #ffdc86, #ffae3d);
  box-shadow: 0 0 8px rgba(255, 171, 56, .35);
}
.ad-copy { flex: 1; min-width: 0; }
.ad-copy b { display: block; font-size: 12px; font-weight: 900; color: #ffedc8; }
.ad-copy span { display: block; margin-top: 2px; font-size: 8.5px; color: #b39a78; }
.ad-copy em { font-style: normal; font-weight: 900; color: #ffd071; }
.ad-btn {
  min-height: 34px; padding: 0 14px; border-radius: 8px; flex: 0 0 auto;
  font-size: 11px; font-weight: 900; color: #2b1500;
  background: linear-gradient(180deg, #ffdd8c, #ffab3f);
  box-shadow: 0 0 14px rgba(255, 171, 58, .28), inset 0 1px 0 rgba(255,255,255,.5);
}
.ad-btn:active { transform: translateY(1px) scale(.98); }
.ad-btn:disabled { opacity: .42; filter: grayscale(.4); }

.lobby-nav {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  padding: 8px 4px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(13, 17, 46, .8), rgba(6, 7, 24, .88));
  box-shadow: inset 0 0 0 1px rgba(83, 190, 255, .16);
}
.lobby-nav button {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 5px 1px; border-radius: 9px; color: #a9c1e8;
  font-size: 9px; font-weight: 800; letter-spacing: .04em;
}
.lobby-nav button:active { background: rgba(80, 190, 255, .1); }
.lobby-nav .mp-icon { width: 22px; height: 22px; filter: drop-shadow(0 0 6px rgba(78, 214, 255, .35)); }
.lobby-nav button:nth-child(1) .mp-icon { color: #ffd371; }
.lobby-nav button:nth-child(2) .mp-icon { color: #ff9fe8; }
.lobby-nav button:nth-child(3) .mp-icon { color: #83f0b0; }
.lobby-nav button:nth-child(4) .mp-icon { color: #ffb35f; }
.lobby-nav button:nth-child(5) .mp-icon { color: #7fe3ff; }
.lobby-nav .dock-badge { top: 1px; right: calc(50% - 20px); }
.lobby-foot { margin: 2px 0 0; text-align: center; font-size: 8px; letter-spacing: .1em; color: #4c5a82; }

/* dock action layout */
.dock-action { gap: 0; }
.dock-action .dock-btn { max-width: none; flex: 1 1 0; }
.dock-lobby { flex: 1.55 1 0 !important; justify-content: center; }
.lobby-pill {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%; height: 40px; margin-top: 2px; border-radius: 12px; color: #2c1400;
  background: linear-gradient(135deg, #ffd582, #ff9a43 58%, #ff6f36);
  box-shadow: inset 0 0 0 1px rgba(255, 230, 172, .55), 0 0 18px rgba(255, 128, 40, .3);
}
.lobby-pill .mp-icon { width: 17px; height: 17px; color: #371a00; }
.lobby-pill span { font-size: 10.5px; font-weight: 900; letter-spacing: .05em; }
.dock-upgrade .dock-shape { color: #9ff3b9; filter: drop-shadow(0 0 8px rgba(80, 240, 155, .3)); }
.dock-upgrade .dock-shape::before { background: linear-gradient(180deg, rgba(13, 50, 40, .96), rgba(10, 22, 45, .95)); }

/* =========================================================
   本局强化总览
   ========================================================= */
.upg-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.upg-summary > span {
  padding: 8px 4px 7px; border-radius: 9px; text-align: center;
  background: linear-gradient(180deg, rgba(32, 45, 100, .38), rgba(10, 12, 40, .5));
  box-shadow: inset 0 0 0 1px rgba(80, 195, 255, .14);
}
.upg-summary b { display: block; font-size: 15px; font-weight: 900; color: #f7fdff; font-variant-numeric: tabular-nums; }
.upg-summary em { display: block; margin-top: 2px; font-size: 8px; font-style: normal; color: #8596c1; }
.upg-xp { height: 5px; margin: 7px 0 2px; border-radius: 4px; background: rgba(28, 33, 76, .9); overflow: hidden; }
.upg-xp i { display: block; height: 100%; width: 0%; border-radius: 4px; background: linear-gradient(90deg, #3edff5, #a158ff); box-shadow: 0 0 8px rgba(81, 219, 255, .7); transition: width .28s; }
.upg-pick { width: 100%; margin-top: 9px; }
.upg-list { display: flex; flex-direction: column; gap: 6px; padding: 9px 1px 4px; }
.upg-row {
  display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 10px;
  background: linear-gradient(108deg, rgba(28, 38, 86, .48), rgba(9, 11, 32, .78));
  box-shadow: inset 0 0 0 1px rgba(82, 184, 255, .12);
}
.upg-ico {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; display: grid; place-items: center;
  color: var(--c, #7fe8ff); background: rgba(35, 77, 128, .24);
  box-shadow: inset 0 0 0 1px rgba(118, 210, 255, .18);
}
.upg-ico .mp-icon { width: 18px; height: 18px; }
.upg-mid { flex: 1; min-width: 0; }
.upg-mid b { display: block; font-size: 11.5px; font-weight: 900; color: #eaf6ff; }
.upg-mid em { display: block; margin-top: 2px; font-size: 8.5px; font-style: normal; line-height: 1.4; color: #8c9cc5; }
.upg-lvtag {
  flex: 0 0 auto; padding: 2px 6px; border-radius: 4px; font-size: 8px; font-weight: 900;
  color: var(--c, #7fe8ff); background: rgba(74, 210, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(112, 222, 255, .24);
}
.upg-empty { padding: 20px 10px; text-align: center; font-size: 10px; color: #7585ae; }

/* =========================================================
   PAUSE / RESULT AD SLOTS
   ========================================================= */
.pause-ad-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px;
  padding: 9px 10px; border-radius: 10px; text-align: left;
  background: linear-gradient(100deg, rgba(103, 58, 12, .5), rgba(14, 11, 32, .82));
  box-shadow: inset 0 0 0 1px rgba(255, 169, 57, .25);
}
.pause-ad-copy { flex: 1; min-width: 0; }
.pause-ad-copy b { display: block; font-size: 11px; font-weight: 900; color: #ffedc4; }
.pause-ad-copy em { display: block; margin-top: 1px; font-size: 8.5px; font-style: normal; color: #b09878; }
.pause-ad-go { color: #ffc35a; }
.pause-ad-go .mp-icon { width: 22px; height: 22px; }
.pause-ad-btn:disabled { opacity: .42; }

.result-ad {
  margin-top: 10px; padding: 9px 10px; border-radius: 11px; text-align: left;
  background: linear-gradient(100deg, rgba(72, 45, 10, .4), rgba(12, 12, 34, .72));
  box-shadow: inset 0 0 0 1px rgba(255, 176, 67, .2);
}
.result-ad-head { display: flex; align-items: center; gap: 6px; }
.result-ad-head b { font-size: 9px; font-weight: 900; color: #ffd492; }
.result-ad-head em { margin-left: auto; font-size: 8px; font-style: normal; color: #94805f; }
.result-ad-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 7px; }
.result-ad-btn {
  display: flex; align-items: center; gap: 7px; padding: 7px 8px; border-radius: 8px; text-align: left;
  background: linear-gradient(180deg, rgba(51, 45, 91, .58), rgba(14, 13, 40, .82));
  box-shadow: inset 0 0 0 1px rgba(255, 181, 88, .28);
}
.result-ad-btn .mp-icon { width: 20px; height: 20px; flex: 0 0 20px; color: #ffd071; }
.result-ad-btn span { min-width: 0; }
.result-ad-btn b { display: block; font-size: 10px; font-weight: 900; color: #ffe4b2; }
.result-ad-btn em { display: block; margin-top: 1px; font-size: 8px; font-style: normal; color: #a79578; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-ad-btn:active { transform: scale(.985); }
.result-ad-btn:disabled { opacity: .42; }
.result-main-actions { margin-top: 10px; }
.result-links {
  display: flex; justify-content: center; gap: 14px; margin-top: 10px; padding-top: 9px;
  border-top: 1px solid rgba(110, 137, 190, .13);
}
.result-links button { display: inline-flex; align-items: center; gap: 3px; padding: 4px 2px; font-size: 10px; font-weight: 700; color: #82c8ff; }
.result-links .mp-icon { width: 13px; height: 13px; }

/* =========================================================
   GACHA AD FREE DRAW
   ========================================================= */
.ad-free-draw {
  display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 8px;
  padding: 9px 10px; border-radius: 11px; text-align: left;
  background: linear-gradient(100deg, rgba(105, 55, 9, .5), rgba(17, 11, 34, .86));
  box-shadow: inset 0 0 0 1px rgba(255, 172, 58, .28);
}
.ad-free-draw > .mp-icon { width: 25px; height: 25px; flex: 0 0 25px; color: #ffc45a; }
.afd-copy { flex: 1; min-width: 0; }
.afd-copy b { display: block; font-size: 11.5px; font-weight: 900; color: #ffedc9; }
.afd-copy em { display: block; margin-top: 1px; font-size: 8.5px; font-style: normal; color: #b09a7a; }
.afd-go { flex: 0 0 auto; padding: 5px 10px; border-radius: 7px; font-size: 10px; font-weight: 900; color: #2b1500; background: linear-gradient(180deg, #ffdd8c, #ffab3f); }
.ad-free-draw:disabled { opacity: .5; }
.ad-free-draw.is-used { opacity: .62; }

/* =========================================================
   REWARDED AD OVERLAY
   ========================================================= */
.ad-overlay {
  position: absolute; inset: 0; z-index: 170; display: grid; place-items: center;
  padding: 18px; background: rgba(2, 1, 9, .84);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .18s ease-out;
}
.ad-panel {
  position: relative; width: 100%; max-width: 340px; padding: 18px 16px 15px;
  border-radius: 20px; text-align: center;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(67, 55, 177, .5), transparent 66%),
    linear-gradient(180deg, rgba(14, 16, 50, .99), rgba(6, 6, 24, .995));
  box-shadow:
    inset 0 0 0 1px rgba(101, 219, 255, .32), inset 0 0 30px rgba(58, 113, 255, .12),
    0 24px 64px rgba(0, 0, 0, .7);
}
.ad-panel::before {
  content: ""; position: absolute; left: 16%; right: 16%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(134, 243, 255, .85), rgba(204, 107, 255, .7), transparent);
  box-shadow: 0 0 13px rgba(95, 227, 255, .65);
}
.ad-close {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; z-index: 3;
  display: grid; place-items: center; border-radius: 8px; color: #a8b9dd;
  background: rgba(76, 92, 140, .16); box-shadow: inset 0 0 0 1px rgba(112, 140, 200, .22);
}
.ad-close .mp-icon { width: 15px; height: 15px; }
.ad-kicker { font-size: 7.5px; font-weight: 900; letter-spacing: .26em; color: #64e2ff; text-shadow: 0 0 9px rgba(60, 220, 255, .55); }
.ad-visual { padding: 12px 0 4px; }
.ad-holo { position: relative; width: 96px; height: 96px; margin: 0 auto 10px; }
.ad-holo i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(103, 231, 255, .55); border-right-color: transparent;
  animation: ringSpin 3.4s linear infinite;
}
.ad-holo i:nth-child(2) { inset: 12px; border-color: rgba(211, 115, 255, .6); border-left-color: transparent; animation-direction: reverse; animation-duration: 2.3s; }
.ad-holo i:nth-child(3) { inset: 24px; border-color: rgba(255, 176, 71, .55); border-top-color: transparent; animation-duration: 1.7s; }
.ad-holo span {
  position: absolute; inset: 34px; border-radius: 50%; display: grid; place-items: center; color: #3c1a00;
  background: radial-gradient(circle at 35% 28%, #fff9e2, #ffd58a 40%, #ff9a3d 75%);
  box-shadow: 0 0 22px rgba(255, 174, 67, .85), 0 0 44px rgba(255, 111, 61, .34);
}
.ad-holo span .mp-icon { width: 18px; height: 18px; }
.ad-visual b { display: block; font-size: 17px; font-weight: 900; letter-spacing: .1em; color: #f3fbff; text-shadow: 0 0 14px rgba(87, 216, 255, .5); }
.ad-visual > span { display: block; margin-top: 3px; font-size: 9px; color: #8fa2cd; }
.ad-bar { height: 6px; margin: 13px 0 6px; border-radius: 4px; background: rgba(26, 30, 68, .95); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(78, 122, 200, .2); }
.ad-bar i { display: block; height: 100%; width: 0%; border-radius: 4px; background: linear-gradient(90deg, #36e1ff, #a158ff, #ff9a3d); box-shadow: 0 0 9px rgba(104, 218, 255, .7); }
.ad-panel > em { font-style: normal; font-size: 9px; letter-spacing: .08em; color: #97a9d3; }

@keyframes playShine { 0%, 62% { left: -45%; } 88%, 100% { left: 118%; } }

/* animation */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(42px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
@keyframes upgradeIn { from { transform: translateY(16px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastIn { from { transform: translateY(-8px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateY(-6px); opacity: 0; } }
@keyframes ringSpin { to { transform: rotate(360deg); } }
@keyframes corePulse { from { transform: scale(.9); opacity: .8; } to { transform: scale(1.08); opacity: 1; } }
@keyframes hintFloat { 0%,100% { transform: translateX(-50%) translateY(0); opacity: .86; } 50% { transform: translateX(-50%) translateY(-4px); opacity: 1; } }
@keyframes dotPulse { 0%,100% { opacity: .4; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes lowPulse { 0%,100% { box-shadow: inset 0 0 0 1px rgba(255, 71, 111, .55); } 50% { box-shadow: inset 0 0 0 1px rgba(255, 71, 111, .95), 0 0 14px rgba(255, 51, 92, .3); } }
@keyframes comboPop { from { transform: translate(-50%,-50%) scale(1.5); opacity: .3; } to { transform: translate(-50%,-50%) scale(1); opacity: 1; } }
@keyframes lootIn { from { transform: translateY(9px) scale(.86); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes countPop { from { transform: scale(1.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes coinPop { 0% { transform: scale(1); } 35% { transform: scale(1.16); } 100% { transform: scale(1); } }
.res-coin.is-pop { animation: coinPop .28s ease-out; }

@media (min-width: 600px) {
  .sheet-upgrade { align-items: flex-end; padding: 0 16px calc(var(--dock-h) + var(--safe-bottom) + 12px); }
  .sheet-upgrade .sheet-frame { border-radius: 18px; max-width: 460px; }
}

/* narrow / short */
@media (max-width: 359px) {
  .brand-cn { font-size: 19px; }
  .brand-player { max-width: 100px; }
  .nick { max-width: 62px; font-size: 9.5px; }
  .res-pill { min-width: 58px; height: 30px; padding: 0 5px 0 6px; }
  .res-num { font-size: 11px; min-width: 22px; }
  .res-pill .res-ico { width: 16px; height: 16px; flex-basis: 16px; }
  .res-plus { width: 12px; height: 12px; }
  .round-btn { width: 31px; height: 31px; }
  .btn-pause { width: 34px; height: 34px; flex-basis: 34px; }
  .wave-title { font-size: 11px; }
  .up-card { min-height: 174px; padding-left: 4px; padding-right: 4px; }
  .up-card b { font-size: 11.5px; }
  .up-card em { font-size: 8.5px; }
  .gacha-results { gap: 4px; }
  .loot-name { font-size: 7px; }
}
@media (max-height: 680px) {
  .hud-row-sub { margin-top: 5px; }
  .brand-player { margin-top: 3px; }
  .run-coin { top: calc(104px + var(--safe-top)); }
  .pause-hero { margin-top: 10px; }
  .sheet-frame { padding-top: 13px; }
  .sheet-head h2, .upgrade-head h2 { font-size: 20px; }
  .gacha-banner { height: 105px; }
  .gacha-banner-copy b { font-size: 21px; }
  .upgrade-cards { margin-top: 8px; }
  .up-card { min-height: 150px; padding-top: 9px; }
  .up-card .up-ico { width: 40px; height: 40px; margin-bottom: 5px; }
  .sheet-upgrade .sheet-frame { padding-top: 11px; }
  .upgrade-head h2 { font-size: 19px; }
}
@media (min-width: 600px) {
  .sheet:not(.sheet-upgrade) { align-items: center; padding: 20px; }
  .sheet-frame { border-radius: 22px; border: 1px solid rgba(91, 218, 255, .34); max-height: 88dvh; }
  .hud { max-width: 560px; margin: 0 auto; }
  .dock { max-width: 560px; margin: 0 auto; border-radius: 18px 18px 0 0; }
}

/* ---------- lobby responsive ---------- */
@media (max-width: 359px) {
  .lobby-scroll { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .avatar-lobby { width: 36px; height: 36px; flex-basis: 36px; font-size: 15px; }
  .avatar-lobby .mp-icon { width: 17px; height: 17px; }
  .lobby-id b { max-width: 84px; font-size: 12.5px; }
  .lobby-coin, .lobby-shard { height: 27px; padding: 0 6px; font-size: 10.5px; }
  .lobby-coin .mp-icon, .lobby-shard .mp-icon { width: 12px; height: 12px; }
  .lobby-settings { width: 27px; height: 27px; }
  .lobby-settings .mp-icon { width: 14px; height: 14px; }
  .lobby-hero { padding: 14px 11px 12px; border-radius: 18px; }
  .lobby-logo { font-size: 33px; }
  .hero-stats b { font-size: 15px; }
  .lobby-play { min-height: 56px; padding: 7px 9px; gap: 8px; }
  .play-orb { width: 36px; height: 36px; flex-basis: 36px; }
  .play-copy b { font-size: 16.5px; }
  .play-copy em { font-size: 8.5px; }
  .lobby-quick span { font-size: 7.5px; }
  .lobby-daily { padding: 8px 9px; gap: 7px; }
  .daily-reward { font-size: 10px; }
  .daily-go { font-size: 8px; }
  .lobby-promo, .lobby-ad { padding: 8px 9px; }
  .lobby-nav { padding: 6px 2px; }
  .lobby-nav button { font-size: 8px; gap: 4px; }
  .lobby-nav .mp-icon { width: 20px; height: 20px; }
  .result-links { gap: 10px; }
}
@media (max-height: 700px) {
  .lobby-scroll { gap: 8px; padding-top: calc(8px + var(--safe-top)); }
  .lobby-hero { padding-top: 13px; padding-bottom: 11px; }
  .lobby-logo { font-size: 32px; }
  .hero-stats { margin: 10px 0 9px; }
  .hero-sub { margin-top: 5px; }
  .lobby-quick { margin-top: 8px; }
  .hero-ring { width: 160px; height: 160px; right: -38px; top: -40px; }
  .hero-ring span { inset: 60px; }
  .result-glyph { width: 54px; height: 54px; margin-bottom: 6px; }
  .result-glyph .mp-icon { width: 26px; height: 26px; }
  .result-score { margin: 9px 0 7px; padding: 8px; }
  .result-score b { font-size: 31px; }
  .result-ad { margin-top: 7px; padding: 7px 8px; }
  .result-main-actions { margin-top: 7px; }
  .result-links { margin-top: 7px; padding-top: 7px; }
}

/* lobby how-to */
.lobby-guide {
  padding: 10px 11px 10px; border-radius: 14px;
  background: linear-gradient(108deg, rgba(24, 35, 82, .58), rgba(8, 10, 30, .88));
  box-shadow: inset 0 0 0 1px rgba(83, 194, 255, .15);
}
.guide-title { display: flex; align-items: center; gap: 7px; }
.guide-title span { font-size: 7px; font-weight: 900; letter-spacing: .24em; color: #63e0ff; text-shadow: 0 0 8px rgba(60, 218, 255, .5); }
.guide-title b { font-size: 11px; font-weight: 900; color: #dfeaff; letter-spacing: .04em; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.guide-grid > span {
  display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 7px;
  border-radius: 8px; background: rgba(23, 33, 72, .5);
  box-shadow: inset 0 0 0 1px rgba(91, 176, 255, .1);
}
.guide-grid .mp-icon { width: 16px; height: 16px; flex: 0 0 16px; color: #78e6ff; }
.guide-grid > span:nth-child(3) .mp-icon { color: #ffc66c; }
.guide-grid > span:nth-child(4) .mp-icon { color: #d590ff; }
.guide-copy { min-width: 0; }
.guide-copy b { display: block; font-size: 10px; font-weight: 900; color: #e8f4ff; }
.guide-copy em { display: block; margin-top: 1px; font-size: 8px; font-style: normal; color: #8192bd; }
.guide-note {
  display: flex; align-items: center; gap: 5px; margin: 8px 0 0;
  font-size: 8.5px; line-height: 1.4; color: #b09a72;
}
.guide-note .mp-icon { width: 13px; height: 13px; flex: 0 0 13px; color: #ffb35c; }

/* short screens: result must stay fully visible */
@media (max-height: 700px) {
  .result-glyph { display: none; }
  .sheet-result { align-items: center; padding: 8px; }
  .sheet-result .sheet-frame { padding-top: 14px; }
  .result-frame h2 { font-size: 23px; }
  .result-score { margin: 8px 0 7px; }
  .result-score b { font-size: 28px; }
  .result-sub { font-size: 9.5px; }
  .result-ad { margin-top: 6px; }
  .result-links { margin-top: 6px; padding-top: 6px; }
}
