* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
:root {
  --ink: #2b2f3a;
  --muted: #9097a5;
  --accent: #5b76d4;
  --accent-2: #7e93e6;
  --accent-soft: #e8ecfb;
  --glass: rgba(255, 255, 255, 0.72);
  --glass2: rgba(255, 255, 255, 0.55);
  --line: rgba(30, 40, 80, 0.07);
  --soft: #eef1f8;
  --bg: #f3f4f8;
}
body.dark {
  --ink: #e7eaf2;
  --muted: #828998;
  --accent: #8098ee;
  --accent-2: #93a8f2;
  --accent-soft: #1b2336;
  --glass: rgba(255, 255, 255, 0.05);
  --glass2: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.08);
  --soft: #161c29;
  --bg: #0b0e15;
}
html,
body {
  height: 100%;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  transition: opacity 0.17s ease;
  will-change: opacity;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}
body.theme-switching {
  opacity: 0;
}
.bgwrap {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}
.blob.b1 {
  width: 340px;
  height: 340px;
  background: #9db4ee;
  top: -110px;
  left: -70px;
}
.blob.b2 {
  width: 300px;
  height: 300px;
  background: #bcccf4;
  bottom: -90px;
  right: -70px;
}
.blob.b3 {
  width: 240px;
  height: 240px;
  background: #d0d9f4;
  top: 46%;
  left: 48%;
  opacity: 0.16;
}
body.dark .blob {
  opacity: 0.15;
}
body.dark .blob.b1 {
  background: #3a4f82;
}
body.dark .blob.b2 {
  background: #33406a;
}
body.dark .blob.b3 {
  display: none;
}
body.dark .bgwrap {
  background:
    radial-gradient(
      circle at 25% 10%,
      rgba(72, 98, 165, 0.16),
      transparent 52%
    ),
    radial-gradient(circle at 82% 90%, rgba(58, 74, 128, 0.12), transparent 48%);
}
.bgwrap .paw {
  position: absolute;
  bottom: -40px;
  font-size: 24px;
  opacity: 0.08;
  animation: pawFloat linear infinite;
  will-change: transform, opacity;
}
@keyframes pawFloat {
  0% {
    transform: translateY(0) rotate(0);
    opacity: 0;
  }
  12% {
    opacity: 0.1;
  }
  88% {
    opacity: 0.1;
  }
  100% {
    transform: translateY(-108vh) rotate(22deg);
    opacity: 0;
  }
}
body.dark .bgwrap .paw {
  opacity: 0.14;
}
.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 14px 92px;
  min-height: 100vh;
}
.screen {
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 6px 20px rgba(40, 55, 90, 0.07);
}
.glass-soft {
  background: var(--glass2);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
}
.title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 6px 0 16px;
}
.section-h {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 4px 11px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.home-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex: none;
}
.lvl-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
  flex: none;
}
.xp-wrap {
  flex: 1;
  min-width: 0;
}
.xp-bar {
  height: 8px;
  border-radius: 8px;
  background: var(--soft);
  overflow: hidden;
}
.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #9fd0ff);
  border-radius: 8px;
  transition: width 0.5s ease;
}
.xp-text {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.home-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex: none;
}
.home-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.home-ava-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: none;
}
.home-ava {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  overflow: hidden;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 17px;
}
.home-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-ava i {
  width: 20px;
  height: 20px;
}
.home-xp {
  width: 42px;
  height: 4px;
  border-radius: 4px;
  background: var(--soft);
  overflow: hidden;
}
.home-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #9fd0ff);
  border-radius: 4px;
  transition: width 0.5s ease;
}
.home-uinfo {
  min-width: 0;
}
.home-name {
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.home-lvl {
  font-size: 12px;
  color: var(--muted);
}
.home-stats {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}
.hstat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
}
.hstat i {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.icon-btn-sm {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--line);
  cursor: pointer;
  flex: none;
}
.icon-btn-sm i {
  width: 17px;
  height: 17px;
}
.home-tasks {
  margin-top: 4px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex: none;
  cursor: pointer;
}
.icon-btn i,
.lvl-badge i {
  width: 20px;
  height: 20px;
}
.pill-row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  flex: none;
}
.pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  font-size: 13px;
}
.pill i {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: none;
}
.pill-c {
  flex: 1;
  min-width: 0;
}
.ebar {
  height: 6px;
  border-radius: 6px;
  background: var(--soft);
  overflow: hidden;
  margin-bottom: 3px;
}
.ebar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffcf5e, #ff9f43);
  border-radius: 6px;
  transition: width 0.4s ease;
}
.pill b {
  color: var(--ink);
}
.energy-timer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  height: 16px;
  margin-bottom: 6px;
  flex: none;
}
.cat-frame {
  position: relative;
  width: 100%;
  height: 44vh;
  min-height: 230px;
  border-radius: 22px;
  overflow: hidden;
  margin: 8px 0 12px;
  background: var(--soft);
}
.catimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.catimg.fade {
  animation: catfade 0.35s ease;
}
@keyframes catfade {
  from {
    opacity: 0.2;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.shimmer {
  background: linear-gradient(
    100deg,
    var(--soft) 30%,
    rgba(255, 255, 255, 0.5) 50%,
    var(--soft) 70%
  );
  background-size: 200% 100%;
  animation: shim 1.2s infinite;
}
@keyframes shim {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.catfx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 22px;
}
.catfx.run-legendary {
  animation: fxgold 0.9s ease;
}
.catfx.run-superleg {
  animation: fxsuper 1.1s ease;
}
.catfx.run-epic {
  animation: fxepic 0.8s ease;
}
@keyframes fxgold {
  0% {
    box-shadow: inset 0 0 0 0 rgba(245, 196, 81, 0);
  }
  30% {
    box-shadow: inset 0 0 45px 10px rgba(245, 196, 81, 0.85);
  }
  100% {
    box-shadow: inset 0 0 0 0 rgba(245, 196, 81, 0);
  }
}
@keyframes fxsuper {
  0% {
    box-shadow: inset 0 0 0 0 rgba(255, 107, 107, 0);
  }
  25% {
    box-shadow: inset 0 0 60px 14px rgba(160, 107, 240, 0.9);
  }
  60% {
    box-shadow: inset 0 0 50px 12px rgba(91, 224, 138, 0.7);
  }
  100% {
    box-shadow: inset 0 0 0 0 rgba(94, 155, 224, 0);
  }
}
@keyframes fxepic {
  0% {
    box-shadow: inset 0 0 0 0 rgba(145, 115, 222, 0);
  }
  30% {
    box-shadow: inset 0 0 38px 8px rgba(145, 115, 222, 0.7);
  }
  100% {
    box-shadow: inset 0 0 0 0 rgba(145, 115, 222, 0);
  }
}
.catfx-ring {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  border: 0 solid transparent;
}
.catfx-ring.run {
  border: 3px solid #f5c451;
  animation: ringpulse 0.9s ease;
}
.catfx-ring.superleg {
  border-color: #a06bf0;
}
@keyframes ringpulse {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}
.cat-frame.shake {
  animation: shake 0.5s ease;
}
@keyframes shake {
  0%,
  100% {
    transform: none;
  }
  20% {
    transform: translateX(-6px) rotate(-2deg);
  }
  40% {
    transform: translateX(6px) rotate(2deg);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}
.catflash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  border-radius: 22px;
  z-index: 6;
}
.catflash.run {
  animation: flash 0.32s ease;
}
@keyframes flash {
  0% {
    opacity: 0;
  }
  28% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
  }
}
.catching {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 7;
  background: rgba(20, 26, 40, 0.8);
  color: #fff;
  padding: 9px 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  opacity: 0;
  pointer-events: none;
}
.catching i {
  width: 17px;
  height: 17px;
}
.catching.run {
  animation: catchin 0.6s ease;
}
@keyframes catchin {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.05);
  }
}
.rarity-chip {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  padding: 7px 15px;
  border-radius: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 5;
  transition: 0.3s;
}
.rarity-chip i {
  width: 16px;
  height: 16px;
}
.rarity-chip.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.rarity-chip.pop {
  animation: rpop 0.4s ease;
}
@keyframes rpop {
  0% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  45% {
    transform: translateX(-50%) translateY(0) scale(1.13);
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
.cat-share {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 8;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: none;
  background: rgba(20, 26, 40, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: scale(0.8);
  transition: 0.25s;
}
.cat-share.show {
  opacity: 1;
  transform: scale(1);
}
.cat-share:active {
  transform: scale(0.9);
}
.cat-share i {
  width: 18px;
  height: 18px;
}
.catch-btn {
  width: 100%;
  flex: none;
  padding: 16px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(91, 118, 212, 0.3);
  transition:
    transform 0.12s ease,
    box-shadow 0.2s,
    opacity 0.2s;
}
.catch-btn:active {
  transform: scale(0.97);
}
.catch-btn:disabled {
  opacity: 0.5;
}
.catch-btn i {
  width: 20px;
  height: 20px;
}
.t-common {
  background: #a8b1c1;
}
.t-rare {
  background: #5e87d4;
}
.t-epic {
  background: #9173de;
}
.t-legendary {
  background: linear-gradient(135deg, #f5c451, #e89b2b);
}
.t-superleg {
  background: linear-gradient(
    135deg,
    #ff6b6b,
    #f59e0b,
    #f5e04b,
    #4be08a,
    #5e9be0,
    #a06bf0
  );
  background-size: 300% 300%;
  animation: slslide 4s linear infinite;
}
@keyframes slslide {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}
.profile-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  margin-bottom: 12px;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex: none;
  font-weight: 800;
  font-size: 24px;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar i {
  width: 28px;
  height: 28px;
}
.pname {
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pstreak {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 3px 0;
}
.pstreak i,
.pstreak svg {
  width: 14px;
  height: 14px;
  color: #ffcf5e;
  stroke: #ffcf5e;
}
svg.lucide-flame {
  color: #ffcf5e;
  stroke: #ffcf5e;
}
.pid {
  font-size: 12px;
  color: var(--muted);
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge i {
  width: 11px;
  height: 11px;
  cursor: pointer;
}
.plevel {
  padding: 14px;
  margin-bottom: 12px;
}
.plevel-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pxpbar {
  height: 9px;
  border-radius: 9px;
  background: var(--soft);
  overflow: hidden;
}
.pxpbar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #9fd0ff);
  border-radius: 9px;
  transition: width 0.5s ease;
}
.stat-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.stat {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 20px;
  font-weight: 800;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.btn-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.wbtn {
  flex: 1;
  padding: 13px;
  border: none;
  border-radius: 16px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.wbtn i {
  width: 17px;
  height: 17px;
  color: var(--accent);
}
.wbtn:active {
  transform: scale(0.97);
}
.admin-entry {
  margin-top: 14px;
  width: 100%;
}
.promo-row {
  display: flex;
  gap: 8px;
  padding: 8px;
  align-items: center;
  margin-bottom: 4px;
}
.promo-row input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  padding: 8px;
  outline: none;
}
.mini {
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.mini:active {
  transform: scale(0.96);
}
.mini.on {
  background: #4be08a;
}
.mini.danger {
  background: #ff6b6b;
}
.pp-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  margin-bottom: 8px;
}
.pp-cat .nm {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 14px;
}
.pp-cat .ic {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
}
.pp-cat .ic i {
  width: 18px;
  height: 18px;
}
.pp-cat .cn {
  font-weight: 700;
}
.pp-cat .ch {
  font-size: 11px;
  color: var(--muted);
}
.pp-cat .cnt {
  font-weight: 800;
  color: var(--accent);
  font-size: 17px;
}
.lb-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  margin-bottom: 8px;
  cursor: pointer;
  animation: rise 0.4s ease both;
}
.lb-row.me {
  outline: 2px solid var(--accent);
}
.lb-rank {
  width: 26px;
  text-align: center;
  font-weight: 800;
  color: var(--muted);
  flex: none;
}
.lb-rank.g1 {
  color: #f5c451;
}
.lb-rank.g2 {
  color: #b9c2d0;
}
.lb-rank.g3 {
  color: #e0925e;
}
.lb-ava {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
  flex: none;
}
.lb-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lb-nw {
  flex: 1;
  min-width: 0;
}
.lb-name {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-sub {
  font-size: 11px;
  color: var(--muted);
}
.lb-total {
  font-weight: 800;
  color: var(--accent);
}
.q-row {
  padding: 12px 14px;
  margin-bottom: 9px;
}
.q-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.q-bar {
  height: 7px;
  border-radius: 7px;
  background: var(--soft);
  overflow: hidden;
}
.q-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #9fd0ff);
  border-radius: 7px;
  transition: width 0.5s ease;
}
.q-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.q-rew {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.q-done {
  font-size: 12px;
  color: #4be08a;
  font-weight: 700;
}
.level-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  margin-bottom: 6px;
}
.lh-num {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), #7db4ee);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  flex: none;
}
.lh-bar {
  flex: 1;
}
.adm-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.as {
  flex: 1;
  min-width: 70px;
  padding: 12px 6px;
  text-align: center;
}
.as b {
  display: block;
  font-size: 18px;
  font-weight: 800;
}
.as span {
  font-size: 10px;
  color: var(--muted);
}
.admin-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.back-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: var(--glass2);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.promo-create {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px;
  margin-bottom: 10px;
}
.promo-create input,
.promo-create select {
  border: none;
  background: var(--soft);
  color: var(--ink);
  border-radius: 10px;
  padding: 9px;
  font-size: 13px;
  outline: none;
}
.promo-create #pmCode {
  flex: 1;
  min-width: 90px;
}
.pm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  margin-bottom: 8px;
}
.adm-search {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.adm-search input {
  flex: 1;
  border: none;
  background: var(--glass2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  color: var(--ink);
  outline: none;
}
.ar-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  margin-bottom: 8px;
  cursor: pointer;
}
.ar-row img,
.ar-row span {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  object-fit: cover;
}
.ap-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 14px 0 12px;
}
.ap-head img,
.ap-head span {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}
.ap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.gl {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--glass2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 9px;
  margin-bottom: 7px;
  font-size: 12px;
}
.gl span {
  flex: 1;
}
.gl input {
  width: 60px;
  border: none;
  background: var(--soft);
  border-radius: 8px;
  padding: 6px;
  color: var(--ink);
  outline: none;
}
.gl input[type="color"] {
  width: 34px;
  height: 30px;
  padding: 2px;
}
.ap-badges #admBadges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.shop-pack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  margin-bottom: 9px;
}
.shop-pack b {
  font-size: 15px;
}
.shop-pack .pr {
  color: var(--accent);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tabbar {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  width: calc(100% - 24px);
  max-width: 456px;
  display: flex;
  justify-content: space-around;
  padding: 8px 4px;
  z-index: 50;
}
.tabbar-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 92px;
  z-index: 48;
  pointer-events: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(
    to top,
    #000 30%,
    rgba(0, 0, 0, 0.6) 70%,
    transparent
  );
  mask-image: linear-gradient(
    to top,
    #000 30%,
    rgba(0, 0, 0, 0.6) 70%,
    transparent
  );
}
.tab {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
  padding: 4px 0;
}
.tab i {
  width: 21px;
  height: 21px;
}
.tab.active {
  color: var(--accent);
}
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 26, 40, 0.92);
  color: #fff;
  padding: 11px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  max-width: 90%;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.banner {
  position: sticky;
  top: 0;
  background: #ff6b6b;
  color: #fff;
  text-align: center;
  padding: 10px;
  font-weight: 700;
  font-size: 13px;
  border-radius: 12px;
  margin-bottom: 10px;
  z-index: 40;
}
.caughtVal.bump,
#caughtVal.bump {
  animation: bump 0.3s ease;
}
@keyframes bump {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}
.reward-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 4px;
  margin: 10px 0 2px;
}
.reward-row i {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex: none;
}
.reward-row .rw-c {
  flex: 1;
  min-width: 0;
}
.reward-row .rw-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.reward-row .rw-top b {
  color: var(--accent);
}
.rbar {
  height: 6px;
  border-radius: 6px;
  background: var(--soft);
  overflow: hidden;
}
.rfill {
  height: 100%;
  background: linear-gradient(90deg, #7ddf9e, #4be08a);
  border-radius: 6px;
  transition: width 0.4s ease;
}
.shop-bal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  font-size: 14px;
  margin-bottom: 12px;
}
.shop-bal i {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.shop-bal b {
  color: var(--accent);
}
.ref-info {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  font-size: 13px;
  margin: 0 0 10px;
}
.ref-info i {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex: none;
}
.ref-info b {
  color: var(--accent);
}
.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gift-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 10px;
  text-align: center;
}
.gift-emoji {
  font-size: 34px;
  line-height: 1;
}
.gift-name {
  font-weight: 700;
  font-size: 14px;
}
.gift-price {
  font-weight: 800;
  color: var(--accent);
  font-size: 14px;
}
.gift-sub {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.gift-card .mini {
  width: 100%;
}
.gift-card .mini.empty {
  background: var(--soft);
  color: var(--muted);
}
.order-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  margin-bottom: 8px;
}
.ord-emoji {
  font-size: 24px;
  flex: none;
}
.ord-nw {
  flex: 1;
  min-width: 0;
}
.ord-st {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.ord-act {
  display: flex;
  gap: 6px;
  flex: none;
}
.sub-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  margin-bottom: 8px;
}
.sub-ic {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.sub-ic i {
  width: 18px;
  height: 18px;
}
.sub-nw {
  flex: 1;
  min-width: 0;
}
.sub-nw b {
  font-size: 14px;
}
.game-menu {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.game-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  border-radius: 20px;
}
.game-card:active {
  transform: scale(0.98);
}
.gc-emoji {
  font-size: 34px;
  line-height: 1;
  flex: none;
}
.game-card > div:not(.gc-emoji) {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gc-nm {
  font-weight: 800;
  font-size: 17px;
}
.gc-sub {
  font-size: 12px;
  color: var(--muted);
}
.bet-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 14px;
  font-weight: 700;
}
.bet-row span {
  color: var(--muted);
}
.bet-row input {
  flex: 1;
  min-width: 0;
  border: none;
  background: var(--soft);
  border-radius: 10px;
  padding: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  outline: none;
}
.bet-row .mini {
  padding: 9px 15px;
  font-size: 18px;
}
img.emoji {
  height: 1em;
  width: 1em;
  margin: 0 0.03em;
  vertical-align: -0.12em;
  display: inline-block;
}
.gc-emoji img.emoji {
  height: 1em;
  width: 1em;
}
.gift-emoji img.emoji,
.ord-emoji img.emoji {
  height: 1em;
  width: 1em;
  vertical-align: -0.12em;
}
