@font-face {
  font-family: "Bahnschrift Custom";
  src: url("Bahnschrift%20Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #020917;
  --panel: rgba(7, 17, 43, 0.68);
  --line: rgba(102, 153, 255, 0.28);
  --text: #f8fbff;
  --muted: #7f94bf;
  --blue: #4ba0ff;
  --blue-2: #8dc5ff;
  --green: #70f16d;
  --nav-h: 92px;
  --radius-xl: 30px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Bahnschrift Custom", Bahnschrift, "DIN Medium", "DIN Alternate", "Arial Narrow", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 50% 12%, rgba(30, 88, 235, 0.24), transparent 18%),
              radial-gradient(circle at 50% 90%, rgba(11, 65, 255, 0.17), transparent 24%),
              linear-gradient(180deg, #01050d 0%, #031027 35%, #010712 100%);
  color: var(--text);
  overflow-x: hidden;
}


.symbol-rain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

img { display: block; max-width: 100%; }
button { font: inherit; }

.app-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100vh;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 18px calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
}

.ambient {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  filter: blur(50px);
  opacity: .65;
}
.ambient-a {
  width: 180px; height: 180px;
  background: rgba(28, 116, 255, 0.3);
  top: 140px; left: 40px;
}
.ambient-b {
  width: 170px; height: 170px;
  background: rgba(25, 95, 255, 0.27);
  bottom: 110px; left: 130px;
}

.topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.brand {
  width: 88px;
  height: auto;
}
.economy-pill {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(6, 18, 46, 0.96), rgba(4, 13, 34, 0.86));
  border: 1px solid rgba(74, 124, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(5, 12, 33, 0.85) inset, 0 12px 40px rgba(1, 10, 26, 0.55);
  color: rgba(233, 243, 255, 0.92);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #c6e2ff 0%, #69b8ff 42%, #1e82ff 100%);
  box-shadow: 0 0 12px #3b9eff;
}
.avatar-button {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(87, 150, 255, 0.16) inset;
}
.avatar-button img { width: 100%; height: 100%; object-fit: cover; }

.screen {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-glow {
  position: relative;
}
.card-glow::after {
  content: "";
  position: absolute;
  inset: auto 10% -14px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 113, 255, 0.55), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
  opacity: 0.6;
}

.balance-panel-wrap, .stats-panel-wrap {
  position: relative;
}
.balance-panel {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(14, 58, 161, .18));
}
.balance-symbol {
  position: absolute;
  animation: symbolFloat 5.8s ease-in-out infinite, symbolGlow 3.8s ease-in-out infinite;
  left: 50%;
  top: 37.6%;
  transform: translate(-50%, -50%);
  width: 42.5%;
  filter: drop-shadow(0 0 22px rgba(74, 155, 255, 0.35));
}
.balance-value {
  position: absolute;
  left: 50%;
  top: 79.2%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 800;
  font-size: clamp(44px, 11vw, 68px);
  letter-spacing: -0.04em;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(41, 122, 255, 0.18);
}
.balance-value small {
  color: #58a7ff;
  font-size: clamp(22px, 5.6vw, 34px);
  letter-spacing: 0;
  font-weight: 700;
}

.stats-panel {
  width: 100%;
  aspect-ratio: 1917 / 614;
  object-fit: contain;
}
.stat-overlay {
  position: absolute;
  top: 65.4%;
  transform: translate(-50%, -50%);
  width: 26%;
  text-align: center;
}
.stat-time { left: 12.6%; }
.stat-range { left: 47.6%; }
.stat-boost { left: 77.9%; }
.stat-value {
  font-size: clamp(17px, 4.4vw, 27px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #4eabff;
  text-shadow: 0 0 12px rgba(33, 115, 255, .12);
}
.stat-value small {
  font-size: .62em;
  color: #5eaefc;
  font-weight: 700;
}
.stat-value.boost {
  color: var(--green);
  text-shadow: 0 0 12px rgba(99, 240, 94, .14);
}
.mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.04em;
}

.claim-section { margin-top: 2px; }
.claim-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 12px 22px rgba(33, 117, 255, 0.2));
  transition: transform .18s ease, filter .18s ease;
}
.claim-button:active { transform: scale(0.987); }
.claim-button.is-ready {
  filter: drop-shadow(0 16px 28px rgba(72, 164, 255, 0.35));
}

.info-strip {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  border-radius: 22px;
  border: 1px solid rgba(66, 120, 255, 0.2);
  background: linear-gradient(180deg, rgba(6, 12, 28, 0.9), rgba(4, 8, 18, 0.88));
  color: rgba(204, 219, 255, 0.82);
  box-shadow: 0 8px 30px rgba(2, 10, 28, 0.45);
}
.info-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
}
.icon-box {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #58a7ff;
}
.icon-box svg { width: 21px; height: 21px; }
.chevron {
  font-size: 28px;
  line-height: 1;
  color: rgba(150, 183, 255, 0.65);
}
.dot-sep { padding: 0 5px; color: rgba(128, 154, 214, 0.7); }

.toast-holder {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
  transform: translateX(-50%);
  width: calc(100% - 36px);
  max-width: 404px;
  pointer-events: none;
  z-index: 50;
}
.toast {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .25s ease, transform .25s ease;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(80, 135, 255, 0.28);
  background: rgba(6, 14, 34, 0.96);
  box-shadow: 0 18px 40px rgba(1, 8, 24, 0.5);
  color: #f3f8ff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.bottom-nav {
  position: relative;
  z-index: 2;
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  padding: 12px 18px calc(env(safe-area-inset-bottom, 0px) + 10px);
  background: linear-gradient(180deg, rgba(1, 7, 19, 0), rgba(1, 7, 19, .92) 18%, rgba(1, 7, 19, 1) 45%);
}
.bottom-nav::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  border-radius: 28px;
  border: 1px solid rgba(73, 124, 255, 0.18);
  background: rgba(5, 10, 24, 0.85);
  box-shadow: 0 0 0 1px rgba(6, 13, 30, 0.9) inset, 0 15px 30px rgba(1, 8, 24, 0.48);
}
.bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.nav-item {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: rgba(195, 208, 239, 0.68);
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 22px;
  padding: 8px 2px;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.nav-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-icon svg { width: 100%; height: 100%; }
.nav-item span:last-child {
  font-size: 11px;
  font-weight: 500;
}
.nav-item.active {
  color: #4ca8ff;
  background: linear-gradient(180deg, rgba(16, 42, 110, 0.75), rgba(8, 24, 66, 0.55));
  box-shadow: inset 0 0 0 1px rgba(79, 150, 255, 0.18), 0 8px 18px rgba(6, 35, 112, 0.18);
}



@keyframes symbolFloat {
  0% { transform: translate(-50%, -50%) translateY(0px) scale(1); }
  25% { transform: translate(-50%, -50%) translateY(-5px) scale(1.008); }
  50% { transform: translate(-50%, -50%) translateY(-10px) scale(1.014); }
  75% { transform: translate(-50%, -50%) translateY(-4px) scale(1.008); }
  100% { transform: translate(-50%, -50%) translateY(0px) scale(1); }
}

@keyframes symbolGlow {
  0%, 100% {
    filter: drop-shadow(0 0 18px rgba(74, 155, 255, 0.26)) drop-shadow(0 0 34px rgba(74, 155, 255, 0.10));
  }
  50% {
    filter: drop-shadow(0 0 26px rgba(96, 181, 255, 0.42)) drop-shadow(0 0 46px rgba(74, 155, 255, 0.16));
  }
}
@media (max-width: 376px) {
  .app-shell { padding-inline: 14px; }
  .brand { width: 80px; }
  .economy-pill { padding-inline: 14px; font-size: 12px; }
  .avatar-button { width: 52px; height: 52px; }
  .info-left { font-size: 12px; }
  .bottom-nav { padding-inline: 14px; }
  .bottom-nav::before { left: 14px; right: 14px; }
}
