:root {
  --bg-top: #050d19;
  --bg-bottom: #0b1e38;
  --panel: #0c182b;
  --panel-soft: #10213a;
  --panel-strong: #0d1b31;
  --shell-panel-fill:
    linear-gradient(180deg, rgba(20, 39, 68, 0.95), rgba(11, 26, 48, 0.975) 52%, rgba(8, 19, 38, 0.992));
  --shell-panel-glow:
    radial-gradient(circle at 82% 0%, rgba(110, 173, 235, 0.1), transparent 30%),
    radial-gradient(circle at 12% 100%, rgba(64, 103, 194, 0.09), transparent 42%);
  --subpanel-fill:
    linear-gradient(180deg, rgba(18, 34, 58, 0.92), rgba(9, 19, 36, 0.97));
  --subpanel-glow:
    radial-gradient(circle at 16% 0%, rgba(100, 171, 231, 0.08), transparent 34%);
  --line: rgba(109, 154, 205, 0.16);
  --line-strong: rgba(132, 188, 236, 0.26);
  --shell-line: rgba(102, 144, 194, 0.24);
  --shell-line-strong: rgba(148, 204, 244, 0.24);
  --ink: #eef4fb;
  --muted: #91a6c0;
  --blue: #84c2ff;
  --blue-deep: #2f6fd8;
  --blue-soft: rgba(92, 159, 230, 0.16);
  --violet-soft: rgba(78, 107, 198, 0.14);
  --red: #d08d97;
  --green: #74c4a6;
  --gold: #d8ba7a;
  --shadow: 0 24px 56px rgba(2, 10, 24, 0.5);
  --primary-fill:
    linear-gradient(180deg, rgba(124, 205, 255, 0.98) 0%, rgba(63, 143, 230, 0.96) 56%, rgba(35, 89, 177, 0.95) 100%);
  --primary-glow: 0 0 18px rgba(90, 167, 236, 0.12);
  --cut: 14px;
  --cut-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: "Segoe UI Variable Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 12%, rgba(146, 205, 255, 0.08), transparent 22%),
    radial-gradient(circle at 50% 54%, rgba(84, 136, 210, 0.08), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(20, 74, 150, 0.1), transparent 42%),
    linear-gradient(180deg, #06111d 0%, #09162a 38%, #0d2140 72%, #123154 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  content: none;
  z-index: -1;
}

body::after {
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 226, 160, 0.03), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 24%, transparent 78%, rgba(2, 10, 24, 0.12));
  opacity: 1;
  z-index: -1;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[v-cloak] {
  display: none;
}

.panel {
  position: relative;
  border: 1px solid var(--shell-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% -20%, rgba(145, 228, 255, 0.06), transparent 42%),
    linear-gradient(180deg, rgba(11, 23, 43, 0.94), rgba(6, 14, 28, 0.98));
  box-shadow:
    0 22px 38px rgba(1, 8, 21, 0.46),
    inset 0 1px 0 rgba(176, 238, 255, 0.04);
  overflow: hidden;
  isolation: isolate;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(134, 230, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 24%, transparent 72%, rgba(85, 184, 255, 0.04));
  pointer-events: none;
}

.login-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}

.login-card {
  width: min(100%, 420px);
  padding: 26px;
}

.login-card h1,
.section-title,
.wheel-core-title,
.brand-title {
  margin: 0;
  font-family: "Bahnschrift", "Segoe UI Variable Display", "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.login-card h1 {
  font-size: 34px;
}

.login-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.form-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.mini-title,
.stat-chip span,
.footer-note,
.section-meta {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.field input,
.bet-input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 15px;
  border: 1px solid var(--line);
  outline: none;
  background:
    linear-gradient(180deg, rgba(18, 35, 66, 0.72), rgba(6, 13, 29, 0.92)),
    rgba(4, 13, 27, 0.78);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(158, 235, 255, 0.08),
    inset 0 -8px 18px rgba(3, 10, 23, 0.28);
}

.field input:focus,
.bet-input:focus {
  border-color: rgba(89, 219, 255, 0.66);
  box-shadow: 0 0 0 3px rgba(53, 180, 255, 0.18), inset 0 1px 0 rgba(163, 234, 255, 0.08);
}

.btn,
.icon-btn,
.quick-btn,
.pill,
.action-main,
.wave-card,
.zodiac-card {
  position: relative;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(22, 44, 78, 0.92), rgba(8, 18, 35, 0.94)),
    linear-gradient(180deg, rgba(121, 230, 255, 0.1), transparent);
  color: var(--ink);
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
  clip-path: polygon(
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px),
    0 10px
  );
}

.btn,
.quick-btn {
  min-height: 38px;
  border-radius: 0;
  font-weight: 800;
  padding: 0 14px;
  box-shadow:
    0 10px 18px rgba(1, 10, 25, 0.2),
    inset 0 1px 0 rgba(139, 230, 255, 0.1),
    inset 0 -10px 14px rgba(2, 8, 20, 0.22);
}

.btn.primary,
.action-main {
  background: var(--primary-fill);
  color: #fff;
  border-color: rgba(122, 225, 255, 0.58);
  box-shadow:
    0 16px 28px rgba(5, 68, 138, 0.28),
    var(--primary-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -10px 16px rgba(10, 82, 174, 0.24);
}

.btn:hover,
.icon-btn:hover,
.quick-btn:hover,
.wave-card:hover,
.zodiac-card:hover,
.toolbar-btn:hover,
.history-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(144, 229, 255, 0.46);
  box-shadow:
    0 16px 24px rgba(1, 10, 25, 0.28),
    0 0 22px rgba(67, 208, 255, 0.1),
    inset 0 1px 0 rgba(158, 235, 255, 0.12);
}

.btn::after,
.icon-btn::after,
.quick-btn::after,
.wave-card::after,
.zodiac-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 12%, rgba(255, 255, 255, 0.14) 28%, transparent 44%);
  opacity: 0.36;
  pointer-events: none;
}

.app-fit-frame {
  min-height: 100dvh;
  height: 100dvh;
  padding: 4px 6px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.app-shell.compact-shell {
  position: relative;
  width: min(100%, 438px);
  min-height: 0;
  height: auto;
  margin: 0 auto;
  padding: 8px;
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  gap: 8px;
  align-content: start;
  overflow: visible;
  isolation: isolate;
}

.app-shell.compact-shell::before,
.app-shell.compact-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.app-shell.compact-shell::before {
  inset: -40px -80px 18%;
  background:
    radial-gradient(circle at 50% 20%, rgba(108, 220, 255, 0.14), transparent 32%),
    radial-gradient(circle at 50% 44%, rgba(70, 111, 255, 0.12), transparent 42%);
  filter: blur(30px);
}

.app-shell.compact-shell::after {
  content: none;
}

.topbar-panel {
  padding: 10px 12px 12px;
  background: var(--shell-panel-glow), var(--shell-panel-fill);
  clip-path: polygon(
    16px 0,
    calc(100% - 16px) 0,
    100% 16px,
    100% calc(100% - 16px),
    calc(100% - 16px) 100%,
    16px 100%,
    0 calc(100% - 16px),
    0 16px
  );
}

.topbar-panel::after,
.compact-bet-panel::after,
.compact-zodiac-panel::after,
.compact-action-panel::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(127, 213, 255, 0.07);
  clip-path: polygon(
    var(--cut-sm) 0,
    calc(100% - var(--cut-sm)) 0,
    100% var(--cut-sm),
    100% calc(100% - var(--cut-sm)),
    calc(100% - var(--cut-sm)) 100%,
    var(--cut-sm) 100%,
    0 calc(100% - var(--cut-sm)),
    0 var(--cut-sm)
  );
  pointer-events: none;
}

.topbar-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.topbar-copy {
  min-width: 0;
}

.brand-title {
  font-size: 22px;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 0%, #dfeeff 52%, #a9bfd9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.05em;
  text-shadow: 0 0 16px rgba(83, 204, 255, 0.08);
}

.toolbar-sub {
  margin-top: 4px;
  color: rgba(153, 174, 199, 0.88);
  font-size: 10px;
  line-height: 1.25;
  word-break: break-all;
}

.toolbar-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.toolbar-btn {
  min-width: 54px;
  height: 32px;
  border-radius: 0;
  padding: 0 12px;
  font-size: 12px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.stat-chip {
  position: relative;
  padding: 8px 10px;
  border-radius: 0;
  border: 1px solid rgba(120, 207, 255, 0.14);
  background:
    var(--subpanel-glow),
    var(--subpanel-fill),
    var(--panel-soft);
  box-shadow:
    inset 0 1px 0 rgba(146, 231, 255, 0.06),
    inset 0 -12px 18px rgba(3, 10, 23, 0.16);
  min-width: 0;
  overflow: hidden;
  clip-path: polygon(
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px),
    0 10px
  );
}

.stat-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 22%, rgba(255,255,255,0.1) 32%, transparent 46%);
  opacity: 0.3;
  pointer-events: none;
}

.stat-chip strong {
  display: block;
  margin-top: 4px;
  font-size: 19px;
  line-height: 1.02;
  text-shadow: 0 0 10px rgba(92, 209, 255, 0.08);
}

.stat-chip.slim strong {
  font-size: 13px;
  line-height: 1.35;
  word-break: break-all;
}

.positive {
  color: var(--red);
}

.negative {
  color: var(--green);
}

.compact-wheel-panel {
  position: relative;
  padding: 0;
  background: none;
  box-shadow: none;
  clip-path: none;
  overflow: visible;
  isolation: isolate;
  border: 0;
}

.compact-wheel-panel::before {
  content: none;
}

.compact-wheel-panel::after {
  content: none;
}

.wheel-wrap {
  position: relative;
  width: min(100%, 328px);
  aspect-ratio: 1 / 1.08;
  margin: 0 auto;
  perspective: 1700px;
  perspective-origin: 50% 16%;
  transform-style: preserve-3d;
  overflow: visible;
}

.wheel-aura {
  position: absolute;
  inset: 6px -12px 24px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 22%, rgba(200, 239, 255, 0.12), transparent 28%),
    radial-gradient(circle at 50% 56%, rgba(55, 124, 208, 0.08), transparent 48%),
    radial-gradient(circle at 50% 84%, rgba(255, 194, 120, 0.05), transparent 60%);
  filter: blur(30px);
  opacity: 0.42;
  z-index: 0;
  transform: translateZ(-80px);
}

.wheel-floor {
  display: none;
}

.wheel-stage {
  position: absolute;
  inset: -2px -54px -86px -54px;
  border-radius: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
  filter:
    drop-shadow(0 14px 20px rgba(0, 0, 0, 0.26))
    drop-shadow(0 0 10px rgba(82, 188, 255, 0.08));
}

.wheel-stage canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.wheel-pointer {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 28px;
  height: 40px;
  transform: translateX(-50%);
  z-index: 6;
  filter:
    drop-shadow(0 10px 16px rgba(17, 69, 132, 0.3))
    drop-shadow(0 0 14px rgba(116, 211, 255, 0.2));
}

.wheel-pointer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 20px;
  height: 13px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle at 50% 28%, #fff7df, #d8c18b 54%, #3c5577 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 231, 0.8),
    0 0 0 1px rgba(102, 167, 226, 0.34),
    0 6px 14px rgba(62, 132, 210, 0.22);
}

.wheel-pointer::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 22px solid #d7c184;
}

.wheel-pedestal {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 172px;
  height: 84px;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.wheel-pedestal-neck,
.wheel-pedestal-body,
.wheel-pedestal-base {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 235, 191, 0.98), rgba(176, 105, 42, 0.94) 52%, rgba(73, 30, 11, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 230, 0.82),
    inset 0 -12px 16px rgba(59, 21, 6, 0.28),
    0 12px 18px rgba(13, 3, 1, 0.22);
}

.wheel-pedestal-neck {
  top: 0;
  width: 72px;
  height: 30px;
}

.wheel-pedestal-body {
  top: 18px;
  width: 116px;
  height: 34px;
}

.wheel-pedestal-base {
  bottom: 0;
  width: 172px;
  height: 28px;
}

.wheel-pedestal-neck::before,
.wheel-pedestal-body::before,
.wheel-pedestal-base::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  border: 1px solid rgba(255, 239, 205, 0.34);
}

.wheel-depth,
.wheel-rim,
.wheel-face,
.wheel-crest-ring {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.wheel-depth {
  position: absolute;
  inset: 0;
  transform: translateZ(-26px) scale(1.03);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 235, 192, 0.22), transparent 26%),
    linear-gradient(180deg, #b97a35 0%, #8d551f 28%, #4a2209 72%, #2a0d03 100%);
  box-shadow:
    inset 0 -18px 22px rgba(33, 8, 1, 0.4),
    0 26px 24px rgba(22, 5, 1, 0.26);
}

.wheel-depth::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 231, 184, 0.18);
}

.wheel-rim {
  position: absolute;
  inset: -3px;
  transform: translateZ(-1px);
  background:
    radial-gradient(circle at 50% 50%, transparent 0 70%, rgba(255, 225, 166, 0.96) 70% 74%, rgba(138, 82, 31, 0.94) 74% 80%, rgba(64, 28, 9, 0.92) 80% 85%, transparent 85%),
    conic-gradient(
      from -15deg,
      rgba(255, 244, 214, 0.92) 0deg 8deg,
      rgba(141, 78, 28, 0.9) 8deg 20deg,
      rgba(255, 226, 169, 0.9) 20deg 30deg
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 231, 0.64),
    0 12px 20px rgba(40, 12, 3, 0.18);
  pointer-events: none;
}

.wheel-rim::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 236, 196, 0.24);
}

.wheel-face {
  position: absolute;
  inset: 14px;
  transform: translateZ(16px);
  border: 4px solid rgba(255, 233, 188, 0.82);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 246, 224, 0.4), transparent 24%),
    radial-gradient(circle at 70% 76%, rgba(26, 9, 2, 0.74), transparent 56%),
    radial-gradient(circle at center, rgba(20, 8, 2, 0.96) 0 12%, rgba(67, 30, 10, 0.95) 12% 19%, rgba(191, 145, 75, 0.78) 19% 21%, rgba(66, 28, 10, 0.94) 21% 47%, transparent 47%),
    repeating-conic-gradient(from -15deg, rgba(255, 233, 188, 0.24) 0deg 1deg, transparent 1deg 30deg),
    conic-gradient(
      from -15deg,
      #7b4617 0deg 30deg,
      #5d310e 30deg 60deg,
      #6d3e15 60deg 90deg,
      #57300f 90deg 120deg,
      #764719 120deg 150deg,
      #5e3311 150deg 180deg,
      #78481a 180deg 210deg,
      #613511 210deg 240deg,
      #734316 240deg 270deg,
      #5c320f 270deg 300deg,
      #7a491a 300deg 330deg,
      #613613 330deg 360deg
    );
  box-shadow:
    0 18px 28px rgba(29, 8, 2, 0.18),
    inset 0 1px 0 rgba(255, 246, 222, 0.72),
    inset 0 -16px 20px rgba(41, 11, 3, 0.24);
  overflow: hidden;
}

.wheel-face::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 223, 168, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(110, 57, 19, 0.24),
    0 0 18px rgba(239, 180, 97, 0.08);
}

.wheel-face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 248, 225, 0.24), transparent 24%, transparent 72%, rgba(28, 10, 2, 0.08)),
    radial-gradient(circle at 50% 16%, rgba(255, 243, 213, 0.52), transparent 28%);
  pointer-events: none;
}

.wheel-crest-ring {
  position: absolute;
  inset: 88px;
  transform: translateZ(22px);
  border: 3px solid rgba(218, 169, 89, 0.46);
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 248, 227, 0.16), transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(78, 36, 12, 0.88), rgba(26, 9, 2, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(255, 235, 186, 0.18),
    0 0 16px rgba(229, 171, 89, 0.08);
}

.wheel-spoke,
.wheel-label,
.wheel-icon,
.wheel-wave,
.wheel-dot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transform-style: preserve-3d;
}

.wheel-spoke::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 32px;
  width: 2px;
  height: 84px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 241, 204, 0.92), rgba(175, 112, 47, 0.82) 58%, rgba(52, 19, 6, 0.12));
  box-shadow: 0 0 6px rgba(239, 180, 97, 0.18);
}

.wheel-label {
  font-size: 12px;
  font-weight: 900;
  color: #f7ddb4;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 0 rgba(255, 251, 235, 0.7), 0 6px 10px rgba(28, 9, 2, 0.2);
  pointer-events: none;
}

.wheel-label span {
  display: inline-block;
}

.wheel-icon {
  pointer-events: none;
}

.wheel-badge {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter:
    drop-shadow(0 3px 6px rgba(18, 4, 1, 0.26))
    drop-shadow(0 0 4px rgba(255, 226, 166, 0.08));
}

.wheel-wave {
  pointer-events: none;
}

.wheel-wave-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12px;
  min-height: 12px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 228, 177, 0.18);
  background: rgba(37, 14, 4, 0.38);
  box-shadow: 0 4px 8px rgba(18, 4, 1, 0.14);
}

.wheel-wave-pill i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 247, 231, 0.76);
}

.wheel-wave-pill.red i {
  background: linear-gradient(180deg, #ffb3bf, #d93c57);
}

.wheel-wave-pill.blue i {
  background: linear-gradient(180deg, #afc8ff, #4c7bff);
}

.wheel-wave-pill.green i {
  background: linear-gradient(180deg, #bbf6d4, #2cab67);
}

.wheel-dot {
  pointer-events: none;
}

.wheel-dot span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 249, 235, 0.92);
  box-shadow:
    0 4px 10px rgba(32, 9, 2, 0.22),
    0 0 14px rgba(255, 213, 142, 0.16);
}

.wheel-dot span.red {
  background: radial-gradient(circle at 34% 28%, rgba(255, 245, 248, 0.92), transparent 26%), linear-gradient(180deg, #ff97a9, #d73853);
}

.wheel-dot span.blue {
  background: radial-gradient(circle at 34% 28%, rgba(246, 250, 255, 0.92), transparent 26%), linear-gradient(180deg, #98b9ff, #4470ff);
}

.wheel-dot span.green {
  background: radial-gradient(circle at 34% 28%, rgba(247, 255, 250, 0.92), transparent 26%), linear-gradient(180deg, #9bedbf, #2ca861);
}

.wheel-core {
  position: absolute;
  inset: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%) translateZ(52px);
  border: 3px solid rgba(255, 224, 163, 0.48);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 247, 227, 0.3), transparent 22%),
    radial-gradient(circle at 50% 50%, rgba(145, 86, 37, 0.38), transparent 62%),
    linear-gradient(180deg, rgba(96, 49, 17, 0.98) 0%, rgba(41, 16, 5, 0.98) 100%);
  color: #fff4d6;
  box-shadow:
    0 24px 28px rgba(11, 3, 1, 0.42),
    0 0 20px rgba(230, 172, 90, 0.16),
    inset 0 0 0 1px rgba(255, 239, 204, 0.08),
    inset 0 -12px 20px rgba(19, 5, 1, 0.56);
  z-index: 5;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wheel-core.blocked {
  border-color: rgba(255, 152, 92, 0.38);
  box-shadow:
    0 24px 28px rgba(11, 3, 1, 0.42),
    0 0 20px rgba(255, 148, 82, 0.18),
    inset 0 0 0 1px rgba(255, 219, 175, 0.08),
    inset 0 -12px 20px rgba(19, 5, 1, 0.56);
}

.wheel-core::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 230, 184, 0.22);
  box-shadow:
    inset 0 0 24px rgba(255, 213, 132, 0.08),
    0 0 16px rgba(255, 206, 121, 0.06);
}

.wheel-core.blocked::before {
  border-color: rgba(255, 185, 127, 0.22);
  box-shadow:
    inset 0 0 24px rgba(255, 152, 92, 0.08),
    0 0 14px rgba(255, 152, 92, 0.04);
}

.wheel-wrap.spinning .wheel-core {
  transform: translate(-50%, -50%) translateZ(58px) scale(0.97);
  box-shadow:
    0 28px 32px rgba(11, 3, 1, 0.5),
    0 0 26px rgba(255, 190, 102, 0.24),
    inset 0 -12px 18px rgba(19, 5, 1, 0.64);
}

.wheel-wrap.spinning .wheel-aura {
  animation: wheel-aura-pulse 0.9s ease-in-out infinite;
}

.wheel-wrap.spinning .wheel-pedestal {
  transform: translateX(-50%) translateY(3px);
}

.wheel-wrap.spinning .wheel-pointer {
  animation: wheel-pointer-tick 0.22s ease-in-out infinite alternate;
}

.wheel-wrap.result-holding .wheel-pointer {
  opacity: 0;
  animation: none;
}

.wheel-wrap.result-holding .wheel-pointer::before {
  opacity: 0;
}

.wheel-wrap.result-holding .wheel-pointer::after {
  opacity: 0;
}

.wheel-core > div {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.wheel-core-title {
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-shadow: 0 0 12px rgba(255, 214, 136, 0.28);
}

.wheel-core-sub {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 226, 172, 0.88);
  text-shadow: 0 0 10px rgba(255, 194, 97, 0.18);
  white-space: nowrap;
}

.wheel-core.blocked .wheel-core-sub {
  color: rgba(255, 194, 140, 0.94);
  text-shadow: 0 0 10px rgba(255, 152, 92, 0.18);
}

@keyframes wheel-aura-pulse {
  0% {
    opacity: 0.58;
    transform: translateZ(-96px) scale(0.96);
  }

  100% {
    opacity: 0.94;
    transform: translateZ(-96px) scale(1.08);
  }
}

@keyframes wheel-pointer-tick {
  0% {
    transform: translateX(-50%) rotate(-7deg);
  }

  100% {
    transform: translateX(-50%) rotate(7deg);
  }
}

.compact-bet-panel {
  padding: 8px 10px;
  display: grid;
  gap: 6px;
  background: var(--shell-panel-glow), var(--shell-panel-fill);
  clip-path: polygon(
    14px 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    14px 100%,
    0 calc(100% - 14px),
    0 14px
  );
}

.compact-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.compact-result {
  min-width: 0;
  flex: 1;
  position: relative;
  padding: 8px 10px 9px;
  border: 1px solid rgba(120, 207, 255, 0.14);
  background: var(--subpanel-glow), var(--subpanel-fill);
  box-shadow:
    inset 0 1px 0 rgba(166, 234, 255, 0.05),
    inset 0 -12px 16px rgba(2, 8, 20, 0.14);
  clip-path: polygon(
    12px 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    12px 100%,
    0 calc(100% - 12px),
    0 12px
  );
}

.wheel-result-card {
  width: 100%;
  margin: -10px auto 0;
  z-index: 5;
}

.result-row.compact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.pill {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
  background:
    linear-gradient(180deg, rgba(22, 44, 78, 0.9), rgba(9, 18, 35, 0.94)),
    linear-gradient(180deg, rgba(121, 230, 255, 0.08), transparent);
  border-color: rgba(139, 221, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(168, 237, 255, 0.06),
    inset 0 -8px 12px rgba(2, 8, 20, 0.14);
  clip-path: polygon(
    10px 0,
    calc(100% - 10px) 0,
    100% 50%,
    calc(100% - 10px) 100%,
    10px 100%,
    0 50%
  );
}

.pill.red {
  color: var(--red);
}

.pill.blue {
  color: #466cff;
}

.pill.green {
  color: var(--green);
}

.history-toggle.compact {
  min-width: 56px;
  padding-inline: 12px;
  align-self: center;
  min-height: 42px;
  border-radius: 0;
}

.compact-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 8px;
}

.compact-amount,
.compact-wave {
  position: relative;
  padding: 8px 8px 9px;
  border: 1px solid rgba(120, 207, 255, 0.14);
  background: var(--subpanel-glow), var(--subpanel-fill);
  box-shadow:
    inset 0 1px 0 rgba(166, 234, 255, 0.05),
    inset 0 -12px 16px rgba(2, 8, 20, 0.14);
  clip-path: polygon(
    12px 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    12px 100%,
    0 calc(100% - 12px),
    0 12px
  );
}

.metric-line.compact {
  margin-top: 5px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 6px;
  align-items: center;
}

.metric-box {
  position: relative;
  min-height: 38px;
  border-radius: 0;
  border: 1px dashed rgba(104, 222, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(20, 43, 77, 0.88), rgba(8, 17, 35, 0.96)),
    rgba(7, 16, 34, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: var(--gold);
  box-shadow:
    inset 0 1px 0 rgba(141, 232, 255, 0.08),
    inset 0 -12px 14px rgba(3, 9, 20, 0.24);
  clip-path: polygon(
    12px 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    12px 100%,
    0 calc(100% - 12px),
    0 12px
  );
}

.icon-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 0;
  font-size: 17px;
  font-weight: 800;
  box-shadow:
    0 10px 16px rgba(1, 11, 26, 0.18),
    inset 0 1px 0 rgba(139, 230, 255, 0.1),
    inset 0 -10px 14px rgba(2, 8, 20, 0.2);
}

.wave-grid.compact {
  margin-top: 5px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.wave-card {
  min-height: 50px;
  border-radius: 0;
  padding: 3px 4px 5px;
  text-align: center;
  box-shadow:
    0 10px 16px rgba(2, 8, 20, 0.12),
    inset 0 1px 0 rgba(150, 234, 255, 0.06);
  clip-path: polygon(
    12px 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    12px 100%,
    0 calc(100% - 12px),
    0 12px
  );
}

.wave-card > div {
  display: grid;
  gap: 2px;
}

.wave-card strong {
  font-size: 15px;
  line-height: 1;
}

.wave-card small {
  font-size: 10px;
  color: rgba(182, 208, 234, 0.88);
  font-weight: 800;
}

.wave-card.red.active {
  background:
    radial-gradient(circle at 50% 0%, rgba(225, 196, 201, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(172, 111, 126, 0.94), rgba(110, 58, 74, 0.9));
  color: #fff;
  box-shadow: 0 0 10px rgba(173, 118, 132, 0.08), inset 0 1px 0 rgba(255,255,255,0.16);
}

.wave-card.blue.active {
  background:
    radial-gradient(circle at 50% 0%, rgba(225, 241, 255, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(113, 181, 232, 0.95), rgba(48, 102, 191, 0.91));
  color: #fff;
  box-shadow: 0 0 10px rgba(92, 165, 228, 0.08), inset 0 1px 0 rgba(255,255,255,0.18);
}

.wave-card.green.active {
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 232, 219, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(93, 154, 133, 0.92), rgba(38, 92, 74, 0.9));
  color: #fff;
  box-shadow: 0 0 10px rgba(90, 151, 130, 0.08), inset 0 1px 0 rgba(255,255,255,0.16);
}

.wave-card.active small {
  color: rgba(255, 255, 255, 0.9);
}

.quick-row.compact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.quick-btn {
  min-height: 32px;
  padding: 0;
  border-radius: 0;
  font-size: 13px;
  clip-path: polygon(
    10px 0,
    calc(100% - 10px) 0,
    100% 50%,
    calc(100% - 10px) 100%,
    10px 100%,
    0 50%
  );
}

.quick-btn.active {
  background:
    radial-gradient(circle at 50% 0%, rgba(236, 246, 255, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(120, 196, 245, 0.98) 0%, rgba(58, 130, 217, 0.92) 100%);
  color: #fff;
  border-color: rgba(120, 194, 238, 0.4);
  box-shadow: 0 0 12px rgba(92, 167, 229, 0.1), inset 0 1px 0 rgba(255,255,255,0.16);
}

.bet-row.compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 6px;
}

.bet-row .btn {
  min-height: 42px;
}

.compact-zodiac-panel {
  padding: 7px 9px 9px;
  display: grid;
  grid-template-rows: auto auto;
  gap: 5px;
  background: var(--shell-panel-glow), var(--shell-panel-fill);
  clip-path: polygon(
    14px 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    14px 100%,
    0 calc(100% - 14px),
    0 14px
  );
}

.section-head.compact {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 0 1px 3px;
}

.section-title {
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 9px rgba(64, 196, 255, 0.18);
}

.compact-zodiac-panel .section-meta {
  max-width: 64%;
  padding-top: 1px;
  font-size: 9px;
  line-height: 1.15;
  color: rgba(176, 200, 223, 0.88);
  text-align: right;
  letter-spacing: 0.01em;
}

.zodiac-grid.compact {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

.zodiac-card {
  min-height: 64px;
  border-radius: 0;
  padding: 5px 2px 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-color: rgba(123, 199, 255, 0.2);
  background:
    radial-gradient(circle at 50% -24%, rgba(138, 222, 255, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(24, 54, 93, 0.96), rgba(13, 32, 59, 0.97) 54%, rgba(11, 25, 47, 0.98));
  box-shadow:
    0 8px 14px rgba(2, 8, 20, 0.12),
    inset 0 1px 0 rgba(170, 236, 255, 0.07),
    inset 0 -10px 16px rgba(2, 8, 20, 0.18);
  clip-path: polygon(
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px),
    0 10px
  );
}

.zodiac-card::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210, 246, 255, 0.46), transparent);
  opacity: 0.8;
  pointer-events: none;
}

.zodiac-card > div {
  display: grid;
  gap: 0;
  justify-items: center;
  align-content: center;
  transform: translateY(-2px);
}

.zodiac-card-icon {
  width: 29px;
  height: 29px;
  object-fit: contain;
  filter:
    drop-shadow(0 5px 12px rgba(4, 10, 24, 0.44))
    saturate(1.18)
    contrast(1.06)
    brightness(1.06);
  transform: translateY(1px);
}

.zodiac-card strong {
  margin-top: -1px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: rgba(226, 237, 248, 0.86);
  text-shadow:
    0 1px 0 rgba(5, 16, 31, 0.72),
    0 2px 4px rgba(2, 8, 20, 0.16);
}

.zodiac-card small {
  margin-top: -1px;
  font-size: 6px;
  font-weight: 700;
  color: rgba(184, 206, 229, 0.56);
  letter-spacing: 0.02em;
}

.zodiac-card.active {
  background:
    radial-gradient(circle at 50% -10%, rgba(236, 246, 255, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(101, 171, 224, 0.96) 0%, rgba(43, 104, 192, 0.93) 58%, rgba(24, 76, 160, 0.9) 100%);
  color: #fff;
  border-color: rgba(148, 200, 237, 0.56);
  box-shadow:
    0 0 12px rgba(90, 162, 229, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.24),
    inset 0 -12px 18px rgba(17, 67, 145, 0.18);
}

.zodiac-card.active .zodiac-card-icon {
  filter:
    drop-shadow(0 7px 14px rgba(255, 255, 255, 0.16))
    saturate(1.14)
    brightness(1.09);
}

.zodiac-card.active small {
  color: rgba(255, 255, 255, 0.62);
}

.compact-action-panel {
  padding: 7px 10px 8px;
  display: grid;
  gap: 5px;
  background: var(--shell-panel-glow), var(--shell-panel-fill);
  clip-path: polygon(
    14px 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    14px 100%,
    0 calc(100% - 14px),
    0 14px
  );
}

.footer-note.compact {
  line-height: 1.25;
  color: rgba(171, 197, 222, 0.9);
  padding: 8px 10px;
  border: 1px solid rgba(118, 208, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(17, 34, 61, 0.78), rgba(8, 18, 35, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(173, 236, 255, 0.04),
    inset 0 -10px 14px rgba(2, 8, 20, 0.12);
  clip-path: polygon(
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px),
    0 10px
  );
}

.actions-bar.compact {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 6px;
}

.action-main {
  min-height: 42px;
  border-radius: 0;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 8px;
  background: rgba(2, 10, 24, 0.72);
}

.sheet-panel {
  width: min(100%, 430px);
  max-height: min(72dvh, 640px);
  padding: 14px 14px 16px;
  border-radius: 22px 22px 18px 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(110, 219, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(8, 20, 40, 0.96), rgba(5, 13, 28, 0.98)),
    var(--panel);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.sheet-body {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  max-height: calc(min(72dvh, 640px) - 88px);
  overflow: auto;
  padding-right: 2px;
}

.sheet-block {
  display: grid;
  gap: 8px;
}

.sheet-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.sheet-title-row strong {
  font-size: 15px;
  color: var(--ink);
}

.record-list.compact,
.settlement-list.compact {
  display: grid;
  gap: 8px;
}

.record-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 0%, rgba(111, 220, 255, 0.07), transparent 32%),
    linear-gradient(180deg, rgba(12, 28, 52, 0.88), rgba(6, 14, 28, 0.94));
  font-size: 12px;
  clip-path: polygon(
    12px 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    12px 100%,
    0 calc(100% - 12px),
    0 12px
  );
}

.record-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.record-item small {
  color: var(--muted);
}

.record-item .delta {
  flex-shrink: 0;
  text-align: right;
  font-weight: 800;
}

.empty-box {
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(97, 220, 255, 0.26);
  color: var(--muted);
  text-align: center;
  background: rgba(8, 20, 40, 0.64);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 12px);
  min-width: 180px;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(6, 18, 38, 0.94);
  color: #fff;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 18px 36px rgba(1, 9, 22, 0.42), 0 0 18px rgba(65, 215, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 25;
  border: 1px solid rgba(95, 220, 255, 0.16);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 400px) {
  .app-shell.compact-shell {
    padding: 7px;
    gap: 7px;
  }

  .topbar-panel,
  .compact-bet-panel,
  .compact-zodiac-panel,
  .compact-action-panel {
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand-title {
    font-size: 20px;
  }

  .stats-strip {
    gap: 6px;
  }

  .wheel-wrap {
    width: min(100%, 290px);
    height: 304px;
  }

  .wheel-core {
    width: 66px;
    height: 66px;
  }

  .wheel-core-title {
    font-size: 14px;
  }

  .metric-line.compact {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 6px;
  }

  .icon-btn {
    width: 32px;
    height: 32px;
  }

  .quick-row.compact {
    gap: 5px;
  }
}

@media (max-height: 860px) {
  .topbar-panel {
    padding-top: 9px;
    padding-bottom: 10px;
  }

  .stats-strip {
    margin-top: 8px;
  }

  .stat-chip strong {
    font-size: 20px;
  }

  .compact-wheel-panel {
    padding-top: 0;
    padding-bottom: 0;
  }

  .compact-bet-panel,
  .compact-zodiac-panel,
  .compact-action-panel {
    gap: 5px;
  }

  .wave-card {
    min-height: 46px;
  }

  .zodiac-card {
    min-height: 54px;
  }

  .footer-note.compact {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .footer-note.compact br {
    display: none;
  }
}

@media (max-height: 780px) {
  .app-shell.compact-shell {
    gap: 6px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .brand-title {
    font-size: 20px;
  }

  .toolbar-sub {
    font-size: 10px;
  }

  .toolbar-btn {
    min-width: 52px;
    height: 30px;
  }

  .stat-chip {
    padding: 7px 8px;
  }

  .stat-chip strong {
    font-size: 18px;
  }

  .stat-chip.slim strong {
    font-size: 12px;
  }

  .compact-wheel-panel {
    padding-top: 0;
    padding-bottom: 0;
  }

  .wheel-wrap {
    width: min(100%, 296px);
    height: 310px;
  }

  .compact-bet-panel,
  .compact-zodiac-panel,
  .compact-action-panel {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .zodiac-card {
    min-height: 58px;
  }

  .zodiac-card-icon {
    width: 25px;
    height: 25px;
  }

  .zodiac-card strong {
    font-size: 9px;
  }

  .zodiac-card small {
    font-size: 5.5px;
  }
}
