:root {
  color-scheme: dark;
  --bg: #050b13;
  --panel: #0d1a28;
  --panel-2: #12263a;
  --text: #f7f8fc;
  --muted: #adc5dc;
  --accent: #65d8ff;
  --gold: #f6c544;
  --gold-2: #ffde7a;
  --diamond: #7be7ff;
  --diamond-2: #2e9dff;
  --green: #45c486;
  --border: rgba(123,231,255,.14);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 10%, rgba(123, 231, 255, .18), transparent 30%),
    radial-gradient(circle at 18% 25%, rgba(246, 197, 68, .13), transparent 28%),
    radial-gradient(circle at 44% 92%, rgba(46, 157, 255, .14), transparent 27%),
    var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

h1, h2, h3, .brand, .game-tab strong, .metric strong {
  font-family: Outfit, Inter, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(255,222,122,.28) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,.14) 0 1px, transparent 1.5px);
  background-size: 120px 120px, 190px 190px;
  background-position: 0 0, 44px 78px;
  opacity: .26;
  animation: sparkleDrift 20s linear infinite;
  pointer-events: none;
}

body.royal-night {
  background:
    radial-gradient(circle at 78% 10%, rgba(123, 231, 255, .22), transparent 31%),
    radial-gradient(circle at 24% 84%, rgba(246, 197, 68, .16), transparent 28%),
    radial-gradient(circle at 44% 92%, rgba(46, 157, 255, .14), transparent 27%),
    var(--bg);
}

.sidebar, .app {
  position: relative;
  z-index: 1;
}

.login-page {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 75% 22%, rgba(246,197,68,.22), transparent 25%),
    linear-gradient(90deg, rgba(8,10,15,.96), rgba(8,10,15,.72), rgba(8,10,15,.93)),
    url('baner.png') center 42% / cover,
    var(--bg);
}

.login-shell, .message-box {
  width: min(1040px, calc(100vw - 32px));
  padding: 34px;
  border: 1px solid rgba(246,197,68,.28);
  background:
    linear-gradient(135deg, rgba(18,23,34,.94), rgba(8,10,15,.78)),
    rgba(14,18,27,.82);
  backdrop-filter: blur(16px);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0,0,0,.54);
  overflow: hidden;
}

.login-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: center;
}

.login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(246,197,68,.08), transparent),
    radial-gradient(circle at 78% 18%, rgba(255,222,122,.2), transparent 28%);
  pointer-events: none;
}

.login-hero,
.login-art {
  position: relative;
  z-index: 1;
}

.login-hero h1, .message-box h1 {
  margin: 8px 0 16px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .95;
  text-shadow: 0 5px 26px rgba(0,0,0,.5);
}

.login-hero p, .message-box p { color: var(--muted); font-size: 18px; line-height: 1.6; }
.eyebrow { margin: 0; color: var(--gold-2); text-transform: uppercase; font-size: 12px; font-weight: 900; letter-spacing: 0; }
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  min-height: 50px;
  padding: 14px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffd86d, #d99612);
  color: #17110a;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(246,197,68,.25);
}

.login-button {
  gap: 10px;
  min-width: 220px;
}

.login-button span {
  padding: 5px 8px;
  border-radius: 6px;
  background: #5865f2;
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
}

.login-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.login-perks span {
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-art {
  min-height: 320px;
}

.login-prize-card {
  position: absolute;
  display: grid;
  place-items: center;
  gap: 8px;
  width: 150px;
  min-height: 150px;
  border: 1px solid rgba(246,197,68,.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 22%, rgba(246,197,68,.14), transparent 45%),
    rgba(12,16,23,.82);
  box-shadow: 0 24px 42px rgba(0,0,0,.42);
}

.login-prize-card img {
  width: 86px;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.42));
}

.login-prize-card strong {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}

.login-prize-card-wheel { top: 0; right: 96px; transform: rotate(-4deg); }
.login-prize-card-duck { top: 94px; right: 0; transform: rotate(4deg); }
.login-prize-card-crate { bottom: 0; right: 118px; transform: rotate(-2deg); }

.login-jackpot {
  position: absolute;
  left: 0;
  bottom: 28px;
  max-width: 190px;
  padding: 14px;
  border: 1px solid rgba(255,79,129,.36);
  border-radius: 8px;
  background: rgba(255,79,129,.12);
  box-shadow: 0 0 28px rgba(255,79,129,.16);
}

.login-jackpot span {
  display: inline-flex;
  margin-bottom: 6px;
  color: #ff9dbb;
  font-size: 11px;
  font-weight: 900;
}

.login-jackpot strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.1;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 246px;
  padding: 18px 12px 24px;
  background:
    linear-gradient(180deg, rgba(13, 35, 54, .98) 0%, rgba(5, 12, 20, .98) 100%);
  border-right: 1px solid var(--border);
}

.brand {
  padding: 0 0 36px;
  color: #f8fbff;
  font-size: 23px;
  line-height: 1.18;
  font-weight: 900;
  text-shadow:
    0 0 18px rgba(123,231,255,.32),
    0 2px 0 rgba(0,0,0,.42);
}
.nav {
  width: 100%;
  display: block;
  margin-bottom: 8px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #dfe7f8;
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.nav.active, .nav:hover {
  color: var(--text);
  background: linear-gradient(135deg, rgba(246,197,68,.16), rgba(255,255,255,.06));
  border-color: rgba(246,197,68,.34);
}
.logout {
  margin-top: 76px;
  color: #ff8088;
  text-shadow: 0 0 18px rgba(255,74,90,.3);
}

.app { margin-left: 246px; padding: 20px 28px 34px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.topbar h1 { margin: 4px 0 0; font-size: clamp(30px, 3vw, 42px); line-height: 1.05; }
.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(246,197,68,.14), 0 10px 28px rgba(0,0,0,.45);
}

.hero-banner {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 26px;
  margin-bottom: 20px;
  border: 1px solid rgba(246,197,68,.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(8,10,15,.78), rgba(8,10,15,.22) 58%, rgba(8,10,15,.75)),
    url('baner.png') center 46% / cover;
  box-shadow: 0 22px 55px rgba(0,0,0,.34);
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(246,197,68,.14), transparent 34%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 1px, transparent 1px 18px);
  mix-blend-mode: screen;
  opacity: .34;
  pointer-events: none;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -30%;
  width: 34%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  animation: bannerShine 7s ease-in-out infinite;
  pointer-events: none;
}

.hero-banner h2 {
  margin: 8px 0;
  font-size: clamp(30px, 4vw, 58px);
  line-height: .98;
  text-transform: uppercase;
  text-shadow: 0 4px 22px rgba(0,0,0,.55);
}

.hero-banner p:last-child {
  max-width: 620px;
  margin: 0;
  color: #d8dfed;
  font-weight: 700;
  line-height: 1.5;
}

.panel { display: none; opacity: 0; transform: translateY(10px); }
.panel.active { display: block; animation: panelIn .28s ease forwards; }
@keyframes panelIn {
  to { opacity: 1; transform: translateY(0); }
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.big-drop-bar {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255,79,129,.3);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,79,129,.14), rgba(246,197,68,.12), rgba(69,196,134,.08)),
    rgba(18,23,34,.9);
  box-shadow: 0 16px 34px rgba(0,0,0,.22), 0 0 36px rgba(255,79,129,.08);
  overflow: hidden;
}

.big-drop-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -22%;
  width: 18%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  animation: bannerShine 4.2s ease-in-out infinite;
}

.big-drop-bar span {
  color: #ffb1c9;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.big-drop-bar strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big-drop-bar small {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.event-card {
  position: relative;
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 18%, rgba(246,197,68,.16), transparent 34%),
    linear-gradient(135deg, rgba(18,23,34,.94), rgba(10,13,20,.94));
  box-shadow: 0 16px 34px rgba(0,0,0,.24);
  overflow: hidden;
}

.event-card::after {
  content: "◆";
  position: absolute;
  right: 16px;
  bottom: 10px;
  color: rgba(246,197,68,.16);
  font-size: 50px;
  line-height: 1;
}

.event-card span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(246,197,68,.1);
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.event-card strong,
.event-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.event-card strong {
  margin-bottom: 7px;
  color: #fff;
  font-size: 20px;
}

.event-card small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.event-card-hot {
  border-color: rgba(255,79,129,.34);
  background:
    radial-gradient(circle at 74% 12%, rgba(255,79,129,.2), transparent 34%),
    linear-gradient(135deg, rgba(246,197,68,.12), rgba(18,23,34,.94));
}

.event-card-hot span {
  color: #ffd6e3;
  background: rgba(255,79,129,.18);
  animation: megaPulse 1.4s ease-in-out infinite;
}

.vip-profile {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px;
  margin-bottom: 16px;
  border: 1px solid rgba(246,197,68,.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 18%, rgba(246,197,68,.16), transparent 34%),
    rgba(18,23,34,.86);
  box-shadow: 0 18px 42px rgba(0,0,0,.24);
}

.vip-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.vip-avatar {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border: 2px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 0 0 5px rgba(246,197,68,.1), 0 16px 34px rgba(0,0,0,.36);
  object-fit: cover;
}

.vip-profile h2 {
  margin: 8px 0;
  font-size: clamp(28px, 4vw, 48px);
}

.vip-profile p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.vip-badges {
  display: grid;
  gap: 8px;
  min-width: 190px;
}

.vip-badges span {
  padding: 10px 12px;
  border: 1px solid rgba(246,197,68,.2);
  border-radius: 8px;
  color: var(--gold-2);
  background: rgba(246,197,68,.08);
  font-weight: 900;
}

.live-badge {
  position: relative;
  padding-left: 28px !important;
  color: #c9f7df !important;
  border-color: rgba(69,196,134,.34) !important;
  background: rgba(69,196,134,.1) !important;
  text-transform: uppercase;
}

.live-badge::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(69,196,134,.55);
  transform: translateY(-50%);
  animation: livePulse 1.5s ease-in-out infinite;
}

.level-card {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  margin-bottom: 16px;
  border: 1px solid rgba(69,196,134,.25);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 10%, rgba(69,196,134,.18), transparent 34%),
    linear-gradient(135deg, rgba(246,197,68,.08), rgba(69,196,134,.08)),
    rgba(18,23,34,.9);
  box-shadow: 0 16px 38px rgba(0,0,0,.22);
}

.level-card h3 {
  margin: 6px 0;
  font-size: clamp(24px, 3vw, 34px);
}

.level-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.level-card > strong {
  color: var(--gold-2);
  white-space: nowrap;
}

.xp-shell {
  height: 18px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(0,0,0,.32);
  overflow: hidden;
}

.xp-shell span {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: linear-gradient(90deg, #45c486, #f6c544, #ff4f81);
  box-shadow: 0 0 18px rgba(246,197,68,.38);
}

.overview-extra {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 16px;
  margin-top: 16px;
}

.player-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.player-insights article {
  position: relative;
  min-height: 132px;
  padding: 20px;
  border: 1px solid rgba(246,197,68,.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 12%, rgba(246,197,68,.14), transparent 34%),
    rgba(18,23,34,.86);
  box-shadow: 0 16px 38px rgba(0,0,0,.2);
  overflow: hidden;
}

.player-insights article::after {
  content: "◆";
  position: absolute;
  right: 16px;
  bottom: 8px;
  color: rgba(246,197,68,.13);
  font-size: 44px;
}

.player-insights span,
.player-insights small {
  display: block;
  color: var(--muted);
  font-weight: 900;
}

.player-insights span {
  margin-bottom: 14px;
  font-size: 12px;
  text-transform: uppercase;
}

.player-insights strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 8px;
  font-family: Outfit, Inter, Arial, Helvetica, sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.luck-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(18,23,34,.86);
  box-shadow: 0 16px 38px rgba(0,0,0,.22);
}

.luck-card h3 {
  margin: 8px 0 16px;
  font-size: 28px;
}

.luck-card p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.luck-list {
  display: grid;
  gap: 10px;
}

.luck-list div, .luck-list > span {
  padding: 12px;
  border: 1px solid rgba(246,197,68,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}

.luck-list strong, .luck-list span {
  display: block;
}

.luck-list span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.best-card {
  background:
    linear-gradient(135deg, rgba(246,197,68,.14), rgba(69,196,134,.06)),
    rgba(18,23,34,.9);
}

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

.top-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(18,23,34,.86);
  box-shadow: 0 16px 38px rgba(0,0,0,.22);
}

.top-card h3 {
  margin: 8px 0 14px;
  font-size: 24px;
}

.top-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.top-row span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #161616;
  background: var(--gold);
  font-weight: 900;
}

.top-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-row small {
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}

.empty-top {
  grid-template-columns: 1fr;
}

.empty-top small {
  white-space: normal;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.metric, .result-card, .reward, .wheel-card, .duck-card, .case-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.metric { padding: 22px; min-height: 128px; box-shadow: 0 16px 38px rgba(0,0,0,.22); }
.metric span { display: block; color: var(--muted); margin-bottom: 18px; }
.metric strong { font-size: clamp(24px, 3vw, 36px); }

.metric {
  position: relative;
  overflow: hidden;
}

.metric::after {
  content: "◆";
  position: absolute;
  right: 16px;
  top: 12px;
  color: rgba(246,197,68,.14);
  font-size: 34px;
}

.daily-mission-card {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) 1fr auto auto;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(246,197,68,.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 18%, rgba(246,197,68,.15), transparent 34%),
    linear-gradient(135deg, rgba(88,101,242,.08), rgba(69,196,134,.08)),
    rgba(18,23,34,.9);
  box-shadow: 0 16px 38px rgba(0,0,0,.22);
}

.daily-mission-card h3 {
  margin: 6px 0;
  font-size: clamp(22px, 3vw, 32px);
}

.daily-mission-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.daily-mission-card > strong {
  color: var(--gold-2);
  white-space: nowrap;
}

.mission-claim-button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffd86d, #d99612);
  color: #17110a;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(246,197,68,.2);
}

.mission-claim-button:disabled {
  cursor: not-allowed;
  opacity: .55;
  filter: grayscale(.35);
}

.mission-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.mission-actions small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.mission-photo-form {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.mission-photo-form[hidden] {
  display: none;
}

.mission-photo-form input {
  max-width: 220px;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.daily-admin-summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(69,196,134,.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 14%, rgba(69,196,134,.14), transparent 34%),
    rgba(18,23,34,.9);
  box-shadow: 0 16px 38px rgba(0,0,0,.2);
}

.daily-admin-summary span,
.daily-admin-summary small {
  color: var(--muted);
  font-weight: 900;
}

.daily-admin-summary span {
  text-transform: uppercase;
  font-size: 12px;
}

.daily-admin-summary strong {
  color: #c9f7df;
  font-family: Outfit, Inter, Arial, Helvetica, sans-serif;
  font-size: 34px;
}

.royal-strip {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255,79,129,.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,79,129,.16), rgba(246,197,68,.1), rgba(69,196,134,.09)),
    rgba(18,23,34,.9);
  overflow: hidden;
}

.royal-strip::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -25%;
  width: 20%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  animation: bannerShine 4.8s ease-in-out infinite;
}

.royal-strip span {
  color: #ff9dbb;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.royal-strip strong {
  color: #fff;
}

.royal-strip small {
  color: var(--muted);
  font-weight: 800;
}

.wheel-layout {
  display: grid;
  grid-template-columns: minmax(320px, 720px) minmax(260px, 1fr);
  gap: 18px;
  align-items: stretch;
}
.game-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 16px;
  padding: 0;
  margin-bottom: 18px;
}
.game-tab {
  position: relative;
  min-height: 128px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 22px;
  background:
    radial-gradient(circle at 82% 18%, rgba(247, 201, 72, .18), transparent 32%),
    linear-gradient(135deg, rgba(32, 35, 43, .92), rgba(14, 16, 22, .92));
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,.2);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  overflow: hidden;
}

.game-tab::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, rgba(246,197,68,.92), transparent);
  opacity: 0;
  transition: opacity .18s ease;
}
.game-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 36%, rgba(246,197,68,.19), transparent 38%);
  pointer-events: none;
}
.game-tab img {
  position: absolute;
  right: -28px;
  bottom: -20px;
  width: 142px;
  height: 142px;
  opacity: .9;
  transform: rotate(-8deg) translateY(0);
  transition: transform .24s ease, opacity .24s ease;
  pointer-events: none;
}
.game-tab.active, .game-tab:hover {
  color: var(--text);
  border-color: rgba(247, 201, 72, .72);
  box-shadow: 0 0 0 1px rgba(247, 201, 72, .28), 0 18px 48px rgba(247, 201, 72, .18);
  transform: translateY(-2px);
}

.game-tab.active::after,
.game-tab:hover::after {
  opacity: 1;
}
.game-tab:hover img, .game-tab.active img {
  opacity: 1;
  transform: rotate(-5deg) translateY(-8px) scale(1.05);
}
.game-tab.disabled {
  cursor: not-allowed;
  opacity: .58;
  filter: grayscale(.35);
}
.game-tab.disabled:hover {
  transform: none;
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 18px 40px rgba(0,0,0,.2);
}
.game-tab.disabled img {
  opacity: .58;
}
.game-tab.disabled:hover img {
  transform: rotate(-8deg) translateY(0);
  opacity: .58;
}

.game-tab strong,
.game-tab small {
  position: relative;
  z-index: 1;
  max-width: calc(100% - 88px);
}

.game-tab strong {
  margin-top: 28px;
  font-size: 25px;
  line-height: 1.05;
}

.game-tab small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.game-view { display: none; opacity: 0; transform: translateY(12px) scale(.985); }
.game-view.active { display: grid; animation: gameIn .32s ease forwards; }
@keyframes gameIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.wheel-card { position: relative; padding: 18px; place-items: center; overflow: hidden; }
.wheel-card::before {
  content: "";
  position: absolute;
  width: min(740px, 96%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 201, 72, .34) 0%, rgba(247, 201, 72, .24) 45%, rgba(247, 201, 72, .13) 64%, transparent 80%);
  filter: blur(18px);
  pointer-events: none;
}
canvas { position: relative; z-index: 1; width: min(680px, 100%); height: auto; filter: drop-shadow(0 0 26px rgba(247, 201, 72, .58)); }
.wheel-pointer {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 50%;
  width: 6px;
  height: 62px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #ff335f;
  box-shadow: 0 0 18px rgba(255, 51, 95, .9), 0 0 34px rgba(255, 51, 95, .45);
}
.wheel-pointer::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 16px solid #ff335f;
  filter: drop-shadow(0 0 8px rgba(255, 51, 95, .85));
}
.spin-button {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 116px;
  height: 116px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: #111827;
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
}
.spin-button:disabled { opacity: .45; cursor: not-allowed; }
.duck-card {
  position: relative;
  min-height: 680px;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 12%, rgba(247, 201, 72, .26), transparent 18%),
    radial-gradient(circle at 18% 18%, rgba(85, 217, 255, .2), transparent 28%),
    linear-gradient(180deg, #1d2841 0%, #101929 44%, #06151f 100%);
}
.duck-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(72, 180, 210, .28), transparent 58%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.075) 0 2px, transparent 2px 42px);
  background-size: auto, 100% 42px;
  opacity: .7;
  pointer-events: none;
}
.duck-card::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 78px;
  height: 190px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(247,201,72,.22), transparent 34%),
    linear-gradient(180deg, rgba(50,142,172,.55), rgba(10,65,91,.92));
  border-top: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 -20px 80px rgba(85,217,255,.16);
  pointer-events: none;
}
.duck-hud {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(247, 201, 72, .28);
  border-radius: 8px;
  background: rgba(10, 12, 17, .72);
  color: var(--text);
}
.duck-hud strong { font-size: 20px; }
.duck-hud span { color: var(--muted); font-weight: 700; }
.duck-hud .duck-cost {
  color: var(--gold-2);
  padding: 7px 10px;
  border: 1px solid rgba(246,197,68,.24);
  border-radius: 8px;
  background: rgba(246,197,68,.08);
  white-space: nowrap;
}
.duck-range {
  position: absolute;
  inset: 86px 18px 102px;
  overflow: hidden;
  border-radius: 8px;
  z-index: 4;
  pointer-events: auto;
}
.duck-target {
  position: absolute;
  left: -160px;
  top: var(--lane);
  z-index: 6;
  width: 156px;
  height: 126px;
  border: 0;
  background: transparent;
  cursor: crosshair;
  animation: duckSwim var(--speed, 5.4s) linear infinite;
  animation-delay: var(--delay);
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.36));
  pointer-events: auto;
}
.duck-body {
  position: relative;
  display: grid;
  width: 126px;
  height: 82px;
  margin: 14px 0 0 14px;
  border-radius: 58% 52% 46% 48%;
  background: linear-gradient(145deg, #ffd45a 0%, #f7a92d 72%, #b9671f 100%);
  box-shadow: inset 0 -12px 18px rgba(0,0,0,.18), 0 0 24px rgba(247, 201, 72, .26);
}
.duck-head {
  position: absolute;
  right: 4px;
  top: -18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, #24744e, #0e402b);
  box-shadow: inset -5px -6px 0 rgba(0,0,0,.16);
}
.duck-head::before {
  content: "";
  position: absolute;
  right: -22px;
  top: 16px;
  width: 28px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb13b, #f4692f);
}
.duck-head::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px #101114;
}
.duck-wing {
  position: absolute;
  left: 34px;
  top: 24px;
  width: 52px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff4d6, #b7bac4);
  transform: rotate(-8deg);
}
.duck-tail {
  position: absolute;
  left: -12px;
  top: 22px;
  width: 28px;
  height: 28px;
  background: #ffd45a;
  clip-path: polygon(0 50%, 100% 0, 80% 100%);
}
.duck-shadow {
  display: block;
  width: 98px;
  height: 12px;
  margin: 10px 0 0 28px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
}
.duck-target.hit-empty, .duck-target.hit-prize {
  animation-play-state: paused;
  transform: rotate(-12deg) scale(.9);
}
.duck-target.hit-empty .duck-body {
  background: linear-gradient(135deg, #808894, #3c414b);
  opacity: .55;
}
.duck-target.hit-prize .duck-body {
  background: linear-gradient(135deg, #fff1a5, #ffbf2f);
  box-shadow: 0 0 26px rgba(247, 201, 72, .9), 0 0 52px rgba(239, 71, 111, .55);
}
.duck-shotgun {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: -18px;
  width: min(520px, 78%);
  height: 150px;
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 18px 20px rgba(0,0,0,.5));
}
.duck-barrel {
  position: absolute;
  left: 50%;
  bottom: 72px;
  width: 76%;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #596172, #111722);
  border: 1px solid rgba(255,255,255,.18);
  transform: translateX(-50%) rotate(-2deg);
}
.duck-stock {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 238px;
  height: 62px;
  border-radius: 18px 24px 32px 20px;
  background: linear-gradient(135deg, #8b4c24, #24110a);
  border: 1px solid rgba(247,201,72,.22);
  transform: translateX(-50%);
}
.duck-flash {
  position: absolute;
  left: 50%;
  bottom: 91px;
  width: 0;
  height: 0;
  opacity: 0;
  transform: translateX(-50%);
}
.duck-shotgun.shoot {
  animation: duckRecoil .18s ease-out;
}
.duck-shotgun.shoot .duck-flash {
  width: 76px;
  height: 76px;
  opacity: 1;
  background: radial-gradient(circle, #fff8cc 0 18%, #ffd35f 20% 45%, transparent 48%);
  clip-path: polygon(50% 0, 62% 34%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 34%);
  animation: duckFlash .16s ease-out forwards;
}
.duck-start-button {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 122px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 190px;
  border: 0;
  border-radius: 8px;
  padding: 15px 24px;
  background: linear-gradient(135deg, var(--gold), #ff9f3f);
  color: #141414;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(247, 201, 72, .34), 0 16px 28px rgba(0,0,0,.28);
}
.duck-start-button strong {
  font-size: 22px;
  line-height: 1;
}
.duck-start-button span {
  font-size: 12px;
  color: #3a2505;
}
.duck-start-button:disabled { opacity: .45; cursor: not-allowed; }
.case-card {
  min-height: 680px;
  padding: 18px;
  gap: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(85, 217, 255, .2), transparent 30%),
    radial-gradient(circle at 74% 18%, rgba(247, 201, 72, .18), transparent 28%),
    linear-gradient(180deg, #171b2c, #090b13 62%, #050508);
}

.case-card.royal-mode {
  border-color: rgba(255,222,122,.68);
  background:
    radial-gradient(circle at 50% 12%, rgba(255,222,122,.18), transparent 34%),
    linear-gradient(180deg, #201912 0%, #111722 58%);
  box-shadow: 0 0 0 1px rgba(255,222,122,.18), 0 0 70px rgba(246,197,68,.14);
}
.case-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 3;
}
.case-choice {
  min-height: 92px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 4px;
}
.case-choice.active {
  border-color: rgba(247,201,72,.72);
  box-shadow: 0 0 0 1px rgba(247,201,72,.25), 0 0 34px rgba(247,201,72,.14);
}
.case-choice span { color: var(--gold); font-size: 24px; }
.case-choice strong { font-size: 18px; }
.case-choice small { color: var(--muted); }
.case-machine {
  position: relative;
  min-height: 430px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.07), transparent 34%),
    radial-gradient(circle at 50% 40%, rgba(247,201,72,.18), transparent 36%),
    rgba(5,6,10,.72);
}
.case-lid {
  position: absolute;
  left: 50%;
  top: 42px;
  width: 210px;
  height: 76px;
  border-radius: 18px 18px 8px 8px;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  background: linear-gradient(135deg, #b77a32, #41200f);
  border: 2px solid rgba(255,255,255,.22);
  box-shadow: inset 0 -14px 0 rgba(0,0,0,.16), 0 0 34px rgba(247,201,72,.2);
}
.case-machine.opening .case-lid {
  animation: caseLidOpen .78s ease forwards;
}
.case-diamond {
  position: absolute;
  left: 50%;
  top: 120px;
  width: 146px;
  height: 146px;
  display: grid;
  place-items: center;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 18px;
  background:
    linear-gradient(45deg, transparent 0 36%, rgba(255,255,255,.16) 37% 38%, transparent 39% 61%, rgba(255,255,255,.16) 62% 63%, transparent 64%),
    radial-gradient(circle at center, rgba(247,201,72,.28), transparent 58%),
    rgba(255,255,255,.06);
  border: 2px solid rgba(247,201,72,.4);
  box-shadow: inset 0 0 44px rgba(0,0,0,.22), 0 0 28px rgba(247,201,72,.18);
}
.case-diamond span {
  transform: rotate(-45deg);
  color: var(--gold);
  font-size: 34px;
  font-weight: 900;
}
.case-machine.opening .case-diamond {
  animation: caseGlow .72s ease-in-out infinite;
}
.case-track-wrap {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 28px;
  height: 174px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(5,6,10,.78);
}
.case-pointer {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: var(--gold);
  box-shadow: 0 0 22px rgba(247,201,72,.85);
}
.case-track {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding-left: 22px;
  will-change: transform;
}
.case-item {
  flex: 0 0 176px;
  height: 138px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(85,217,255,.62);
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 40%), rgba(255,255,255,.06);
  box-shadow: inset 0 -4px 0 #55d9ff;
  text-align: center;
}
.case-item.rare-car {
  border-color: rgba(247,201,72,.98);
  box-shadow: inset 0 -4px 0 var(--gold), 0 0 42px rgba(247,201,72,.28);
}
.case-item img {
  width: 100%;
  height: 76px;
  object-fit: cover;
  border-radius: 6px;
}
.case-money {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #171009;
  background: linear-gradient(135deg, #fff0a8, var(--gold), #ff9b2f);
  font-size: 34px;
  font-weight: 900;
}
.case-item strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.case-item small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.case-open-button {
  justify-self: center;
  border: 0;
  border-radius: 999px;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--gold), #ff9f3f);
  color: #141414;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(247, 201, 72, .28);
}
.case-open-button:disabled { opacity: .45; cursor: not-allowed; }
@keyframes caseLidOpen {
  to { transform: translateX(-50%) rotateX(-64deg) translateY(-18px); }
}
@keyframes caseGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}

.case-card {
  min-height: 760px;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 71, 123, .18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(85, 217, 255, .16), transparent 30%),
    radial-gradient(circle at 50% 105%, rgba(247, 201, 72, .18), transparent 42%),
    linear-gradient(180deg, #161a2c, #090a12 62%, #050508);
  border-color: rgba(247,201,72,.18);
  box-shadow: 0 26px 90px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.035);
}
.case-picker {
  gap: 14px;
}
.case-choice {
  min-height: 120px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 34%),
    rgba(255,255,255,.055);
  box-shadow: 0 18px 44px rgba(0,0,0,.24);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.case-choice::before {
  content: "";
  position: absolute;
  inset: -80px -40px auto auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(247,201,72,.14);
  filter: blur(8px);
}
.case-choice:hover,
.case-choice.active {
  transform: translateY(-2px);
  border-color: rgba(247,201,72,.62);
  box-shadow: 0 0 0 1px rgba(247,201,72,.24), 0 22px 54px rgba(247,201,72,.14);
}
.case-choice span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff4be, #ffbd43, #ff477b);
  color: #171009;
  box-shadow: 0 0 28px rgba(247,201,72,.22), inset -8px -8px 0 rgba(0,0,0,.12);
}
.case-choice[data-case="100"] span {
  background: linear-gradient(135deg, #e8fbff, #55d9ff, #8b5cff);
}
.case-machine {
  min-height: 540px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,71,123,.13), rgba(85,217,255,.08)),
    rgba(10,12,22,.92);
  border-color: rgba(255,255,255,.1);
  box-shadow: inset 0 0 90px rgba(0,0,0,.28);
}
.case-machine::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: conic-gradient(from 0deg, transparent, rgba(247,201,72,.12), transparent, rgba(85,217,255,.1), transparent);
  animation: caseAura 10s linear infinite;
}
.case-stage {
  position: absolute;
  z-index: 2;
  inset: 18px 18px 190px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at center, rgba(247,201,72,.14), transparent 46%),
    linear-gradient(180deg, #0c0f19, #07080e);
  border: 1px solid rgba(255,255,255,.1);
}
.case-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 34%, rgba(255,255,255,.03) 35% 36%, transparent 37%),
    linear-gradient(90deg, transparent, rgba(247,201,72,.08), transparent);
  pointer-events: none;
}
.premium-diamond-case {
  position: relative;
  width: min(340px, 72%);
  aspect-ratio: 1.28;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.22), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 36%),
    linear-gradient(135deg, #4a1c24, #b47b2f 48%, #241018);
  border: 2px solid rgba(255,255,255,.38);
  box-shadow: 0 24px 80px rgba(0,0,0,.42), 0 0 70px rgba(247,201,72,.2), inset 0 -28px 0 rgba(0,0,0,.2);
  transform: perspective(900px) rotateX(7deg);
}
.case-machine[data-case="100"] .premium-diamond-case {
  background:
    linear-gradient(135deg, rgba(255,255,255,.22), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 36%),
    linear-gradient(135deg, #102e42, #2a85be 48%, #151339);
  box-shadow: 0 24px 80px rgba(0,0,0,.42), 0 0 86px rgba(85,217,255,.24), inset 0 -28px 0 rgba(0,0,0,.2);
}
.premium-diamond-case::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 18px;
  border: 2px solid rgba(247,201,72,.38);
  background:
    linear-gradient(45deg, transparent 0 36%, rgba(255,255,255,.16) 37% 38%, transparent 39% 61%, rgba(255,255,255,.16) 62% 63%, transparent 64%),
    linear-gradient(-45deg, transparent 0 36%, rgba(247,201,72,.2) 37% 38%, transparent 39% 61%, rgba(247,201,72,.18) 62% 63%, transparent 64%),
    radial-gradient(circle at center, rgba(247,201,72,.22), transparent 58%),
    rgba(255,255,255,.06);
  background-size: 72px 72px, 72px 72px, auto, auto;
  box-shadow: inset 0 0 44px rgba(0,0,0,.22), 0 0 28px rgba(247,201,72,.12);
}
.case-lid {
  left: 0;
  right: 0;
  top: 0;
  width: auto;
  height: 35%;
  transform: none;
  border-radius: 24px 24px 12px 12px;
  transform-origin: 50% 100%;
}
.case-lock {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 74px;
  height: 58px;
  transform: translateX(-50%);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffeaa8, #be8129);
  border: 2px solid rgba(255,255,255,.42);
  box-shadow: 0 0 34px rgba(247,201,72,.4), inset 0 -10px 0 rgba(0,0,0,.14);
}
.case-lock::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 24px;
  transform: translate(-50%, -50%);
  border-radius: 999px 999px 7px 7px;
  background: #5d3618;
}
.case-diamond {
  left: 50%;
  top: auto;
  bottom: 20px;
  width: auto;
  height: auto;
  display: block;
  transform: translateX(-50%);
  border: 0;
  background: none;
  box-shadow: none;
}
.case-diamond span {
  display: block;
  transform: none;
  font-size: 34px;
  text-shadow: 0 0 22px rgba(247,201,72,.44);
}
.case-machine.opening .premium-diamond-case { animation: caseCharge 1.45s ease-in-out infinite; }
.case-machine.opening .case-lid { animation: none; }
.case-machine.opening .case-lock { animation: caseLockGlow 1.1s ease-in-out infinite; }
.case-machine.breaking .case-lid { animation: caseLidPremiumOpen 1.15s cubic-bezier(.12,.8,.12,1) forwards; }
.case-machine.breaking .case-lock { animation: caseLockPop .72s ease-out forwards; }
.case-machine.breaking .premium-diamond-case { animation: caseOpenPremium .95s ease forwards; }
.case-shards {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.case-machine.breaking .case-shards { opacity: 1; }
.case-shards span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: linear-gradient(135deg, #fff4be, #ffbd43);
  box-shadow: 0 0 18px rgba(247,201,72,.42);
  animation: shardFly .75s ease-out forwards;
}
.case-shards span:nth-child(1) { --x: -170px; --y: -110px; --r: 25deg; }
.case-shards span:nth-child(2) { --x: 165px; --y: -130px; --r: 75deg; }
.case-shards span:nth-child(3) { --x: -205px; --y: 95px; --r: 130deg; }
.case-shards span:nth-child(4) { --x: 195px; --y: 130px; --r: 180deg; }
.case-shards span:nth-child(5) { --x: 0; --y: -190px; --r: 260deg; }
.case-light-burst {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 12%, var(--gold) 20%, rgba(247,201,72,.25) 48%, transparent 72%);
  transform: translate(-50%, -50%) scale(.2);
  opacity: 0;
}
.case-machine.breaking .case-light-burst { animation: caseBurst .9s ease-out forwards; }
.case-track-wrap {
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}
.case-track {
  gap: 14px;
  padding-left: 0;
}
.case-item {
  flex: 0 0 246px;
  width: 246px;
  height: 170px;
  grid-template-rows: 96px auto auto;
  border-color: rgba(247,201,72,.92);
  box-shadow: inset 0 -4px 0 var(--gold), 0 0 28px rgba(247,201,72,.18);
}
.case-item img {
  height: 96px;
  box-shadow: 0 0 22px rgba(247,201,72,.18);
}
.case-item.rare-car {
  background:
    radial-gradient(circle at center, rgba(247,201,72,.22), transparent 58%),
    linear-gradient(135deg, rgba(247,201,72,.22), rgba(255,171,53,.08)),
    rgba(255,255,255,.06);
  animation: mysteryGlow 1.7s ease-in-out infinite;
}
.case-final-prize {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 50%;
  width: min(420px, calc(100% - 42px));
  transform: translate(-50%, -50%) scale(.92);
  opacity: 0;
  pointer-events: none;
  padding: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(247,201,72,.18), rgba(255,71,123,.12)), rgba(12,14,24,.94);
  border: 1px solid rgba(247,201,72,.34);
  text-align: center;
  box-shadow: 0 24px 90px rgba(0,0,0,.6), 0 0 60px rgba(247,201,72,.14);
}
.case-final-prize.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity .45s ease, transform .45s ease;
}
.case-final-img {
  width: min(330px, 100%);
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(247,201,72,.42);
  box-shadow: 0 0 48px rgba(247,201,72,.22);
}
.case-final-icon {
  margin: 0 auto 12px;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #171009;
  font-size: 34px;
  font-weight: 900;
  background: linear-gradient(135deg, #fff4be, var(--gold), #ffab35);
}
.case-final-prize strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
}
.case-final-prize p {
  color: var(--muted);
}
@keyframes caseAura { to { transform: rotate(360deg); } }
@keyframes caseCharge {
  0%, 100% { transform: perspective(900px) rotateX(7deg) translateY(0); filter: brightness(1); }
  35% { transform: perspective(900px) rotateX(7deg) translateY(-6px) scale(1.015); filter: brightness(1.18); }
}
@keyframes caseLockGlow {
  0%, 100% { box-shadow: 0 0 34px rgba(247,201,72,.4), inset 0 -10px 0 rgba(0,0,0,.14); }
  50% { box-shadow: 0 0 70px rgba(247,201,72,.78), inset 0 -10px 0 rgba(0,0,0,.14); }
}
@keyframes caseLidPremiumOpen {
  to { transform: perspective(700px) rotateX(-72deg) translateY(-22px); }
}
@keyframes caseLockPop {
  to { transform: translateX(-50%) translateY(-80px) scale(.4) rotate(28deg); opacity: 0; }
}
@keyframes caseOpenPremium {
  74% { transform: perspective(900px) rotateX(12deg) scale(1.08); opacity: 1; filter: brightness(1.8); }
  100% { transform: perspective(900px) rotateX(18deg) scale(.92); opacity: 0; filter: brightness(2.4); }
}
@keyframes shardFly {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(45deg) scale(.6); }
  20% { opacity: 1; }
  to { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1.15); }
}
@keyframes caseBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(14); }
}
@keyframes mysteryGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.24); }
}
@keyframes duckSwim {
  0% { transform: translateX(0) translateY(0) rotate(-3deg); }
  25% { transform: translateX(260px) translateY(-38px) rotate(4deg); }
  55% { transform: translateX(560px) translateY(30px) rotate(-4deg); }
  80% { transform: translateX(820px) translateY(-28px) rotate(3deg); }
  100% { transform: translateX(1120px) translateY(8px) rotate(-2deg); }
}
@keyframes duckRecoil {
  0% { transform: translateX(-50%) translateY(0) rotate(0); }
  50% { transform: translateX(-50%) translateY(16px) rotate(-3deg); }
  100% { transform: translateX(-50%) translateY(0) rotate(0); }
}
@keyframes duckFlash {
  from { transform: translateX(-50%) scale(.55); opacity: 1; }
  to { transform: translateX(-50%) scale(1.18); opacity: 0; }
}
@keyframes bannerShine {
  0%, 58% { left: -36%; opacity: 0; }
  64% { opacity: .9; }
  84% { left: 120%; opacity: 0; }
  100% { left: 120%; opacity: 0; }
}
@keyframes sparkleDrift {
  to { background-position: 120px 120px, 234px 268px; }
}
@keyframes freshDrop {
  from { transform: translateY(-8px); border-color: rgba(246,197,68,.65); box-shadow: 0 0 34px rgba(246,197,68,.18); }
  to { transform: translateY(0); }
}
@keyframes rewardFlash {
  0% { border-color: rgba(246,197,68,.9); box-shadow: 0 0 0 rgba(246,197,68,0), 0 0 34px rgba(246,197,68,.32); }
  45% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(69,196,134,.55); }
  70% { box-shadow: 0 0 0 8px rgba(69,196,134,0); }
  100% { box-shadow: 0 0 0 0 rgba(69,196,134,0); }
}
@keyframes valuePulse {
  0% { color: #fff; text-shadow: 0 0 0 rgba(246,197,68,0); }
  40% { color: var(--gold-2); text-shadow: 0 0 18px rgba(246,197,68,.45); }
  100% { color: inherit; }
}
@keyframes megaPulse {
  from { transform: scale(.98); filter: brightness(1); }
  to { transform: scale(1.05); filter: brightness(1.25); }
}
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: translateY(110vh) rotate(var(--rot)); opacity: 0; }
}
.result-card { padding: 28px; overflow: hidden; }
.value-pulse {
  animation: valuePulse .8s ease;
}
.result-card h2 { font-size: 34px; margin: 10px 0 16px; }
.result-card p:last-child { color: var(--muted); line-height: 1.6; }

.sound-toggle {
  min-height: 40px;
  margin: 10px 0 16px;
  padding: 10px 13px;
  border: 1px solid rgba(246,197,68,.28);
  border-radius: 8px;
  background: rgba(246,197,68,.08);
  color: var(--gold-2);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.promo-box {
  display: grid;
  gap: 9px;
  margin: 12px 0 16px;
  padding: 13px;
  border: 1px solid rgba(246,197,68,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.promo-box label {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.promo-box div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.promo-box input {
  min-width: 0;
  height: 40px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: #0d1119;
  color: var(--text);
  padding: 0 11px;
  font: inherit;
  font-weight: 800;
}

.promo-box button {
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffd86d, #d99612);
  color: #17110a;
  padding: 0 12px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.promo-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.promo-countdown {
  display: inline-flex;
  width: fit-content;
  padding: 7px 9px;
  border: 1px solid rgba(69,196,134,.28);
  border-radius: 999px;
  background: rgba(69,196,134,.09);
  color: #c9f7df;
  font-size: 11px;
  font-weight: 900;
}

.promo-countdown[hidden] {
  display: none;
}

.sidebar-promo {
  margin: 16px 0 24px;
}

.sidebar-promo div {
  grid-template-columns: minmax(0, 1fr) 46px;
}

.sidebar-promo button {
  padding: 0;
}

.spin-needed {
  display: grid;
  gap: 8px;
  margin: 16px 0 22px;
}

.spin-needed span {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: #ffb4b4;
  background: rgba(255,77,96,.08);
  font-weight: 800;
  font-size: 13px;
}

.spin-needed span.ready {
  color: #c9f7df;
  border-color: rgba(69,196,134,.28);
  background: rgba(69,196,134,.08);
}

.no-spins-card {
  display: none;
  margin: 0 0 20px;
  padding: 14px;
  border: 1px solid rgba(255,128,136,.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,128,136,.12), rgba(246,197,68,.06)),
    rgba(255,255,255,.035);
}

.no-spins-card.show {
  display: block;
}

.no-spins-card strong {
  display: block;
  margin-bottom: 5px;
  color: #ffb4b4;
}

.no-spins-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.recent-drops {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.latest-wins {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.latest-win {
  padding: 12px;
  border: 1px solid rgba(246,197,68,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}

.latest-win.fresh { animation: freshDrop .9s ease; }
.latest-win strong { display: block; font-size: 15px; }
.latest-win span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.win-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4,6,10,.72);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.win-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.win-modal-card {
  position: relative;
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid rgba(246,197,68,.38);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(246,197,68,.24), transparent 38%),
    #111722;
  text-align: center;
  box-shadow: 0 28px 90px rgba(0,0,0,.65), 0 0 90px rgba(246,197,68,.16);
  transform: translateY(18px) scale(.96);
  transition: transform .24s ease;
}

.win-modal.show .win-modal-card {
  transform: translateY(0) scale(1);
}

.win-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: var(--text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.win-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 14px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff4be, var(--gold), #d89411);
  color: #17110a;
  font-size: 36px;
  font-weight: 900;
  box-shadow: 0 0 46px rgba(246,197,68,.38);
}

.win-modal-card h2 {
  margin: 10px 0;
  font-size: 36px;
}

.win-modal-card p:not(.eyebrow) {
  color: #d8dfed;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}

.win-action { margin-top: 14px; }

.mega-drop {
  display: none;
  margin: 0 auto 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #17110a;
  background: linear-gradient(135deg, #fff4be, var(--gold), #ff5b7b);
  font-size: clamp(24px, 6vw, 42px);
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 0 44px rgba(246,197,68,.45);
  animation: megaPulse .72s ease-in-out infinite alternate;
}

.mega-drop.show { display: inline-flex; }
.win-modal.mega-active .win-modal-card {
  border-color: rgba(255,222,122,.78);
  box-shadow: 0 28px 90px rgba(0,0,0,.65), 0 0 130px rgba(246,197,68,.34);
}

.win-modal.rarity-rare .win-icon {
  background: linear-gradient(135deg, #e8f1ff, #8fb7ff);
}

.win-modal.rarity-epic .win-icon {
  background: linear-gradient(135deg, #ffe7a6, #ff70a6, #9b5cff);
}

.win-modal.rarity-royal .win-icon {
  background: linear-gradient(135deg, #fff7c7, #f6c544, #ff4f81);
  box-shadow: 0 0 64px rgba(246,197,68,.55);
}

.info-body { text-align: left; }

.drop-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.drop-preview-list article {
  min-height: 152px;
  padding: 12px;
  border: 1px solid rgba(246,197,68,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  text-align: center;
}

.drop-preview-list img {
  width: 100%;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.drop-money {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border-radius: 50%;
  color: #17110a;
  background: linear-gradient(135deg, #fff4be, var(--gold));
  font-size: 34px;
  font-weight: 900;
}

.drop-preview-list strong,
.drop-preview-list small {
  display: block;
}

.drop-preview-list small {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 800;
}

.reward-details p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.confetti-piece {
  position: fixed;
  left: var(--x);
  top: -18px;
  z-index: 90;
  width: 9px;
  height: 15px;
  border-radius: 3px;
  background: linear-gradient(135deg, #fff4be, var(--gold), #ff7a80);
  box-shadow: 0 0 16px rgba(246,197,68,.32);
  animation: confettiFall var(--dur) ease-in var(--delay) forwards;
  pointer-events: none;
}

.reward-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.reward-filter {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.reward-filter.active,
.reward-filter:hover {
  border-color: rgba(246,197,68,.4);
  color: var(--gold-2);
  background: rgba(246,197,68,.1);
}

.reward-list { display: grid; gap: 12px; }

.reward-timeline {
  position: relative;
  gap: 14px;
  padding-left: 18px;
}

.reward-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(246,197,68,.75), rgba(69,196,134,.42), rgba(255,255,255,.08));
}

.reward {
  position: relative;
  padding: 18px 18px 18px 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0,0,0,.2);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.reward:hover {
  transform: translateX(3px);
  border-color: rgba(246,197,68,.28);
  box-shadow: 0 18px 38px rgba(0,0,0,.27);
}

.reward-timeline .reward {
  padding-left: 26px;
}

.reward-timeline .reward::after {
  content: "";
  position: absolute;
  left: -17px;
  top: 24px;
  width: 12px;
  height: 12px;
  border: 2px solid #10141d;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(246,197,68,.16);
}
.reward.filtered-out {
  display: none;
}
.reward.fresh-reward {
  animation: rewardFlash 1.4s ease;
}
.empty-rewards {
  min-height: 170px;
  display: grid;
  place-items: center;
  text-align: center;
  border-style: dashed !important;
  background:
    radial-gradient(circle at 50% 0, rgba(246,197,68,.13), transparent 42%),
    rgba(18,23,34,.86) !important;
}
.empty-rewards::before {
  content: "$";
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(246,197,68,.12);
  color: var(--gold-2);
  font-size: 26px;
  font-weight: 900;
}
.reward::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--gold);
}
.reward.pending {
  background:
    radial-gradient(circle at 90% 15%, rgba(246,197,68,.15), transparent 28%),
    var(--panel);
}
.reward.paid {
  opacity: .82;
}
.reward.paid::before {
  background: var(--green);
}

.reward-timeline .reward.paid::after {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(69,196,134,.14);
}
.reward-status {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(246,197,68,.12);
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.rarity-badge {
  display: inline-flex;
  margin: 0 7px 8px 0;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #dfe7f8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.reward.rarity-rare {
  border-color: rgba(143,183,255,.26);
  background:
    radial-gradient(circle at 90% 15%, rgba(143,183,255,.14), transparent 30%),
    var(--panel);
}

.reward.rarity-rare::before,
.reward-timeline .reward.rarity-rare::after {
  background: #8fb7ff;
}

.reward.rarity-rare .rarity-badge {
  background: rgba(143,183,255,.14);
  color: #cfe0ff;
}

.reward.rarity-epic {
  border-color: rgba(255,112,166,.3);
  background:
    radial-gradient(circle at 90% 15%, rgba(255,112,166,.15), transparent 30%),
    var(--panel);
}

.reward.rarity-epic::before,
.reward-timeline .reward.rarity-epic::after {
  background: #ff70a6;
}

.reward.rarity-epic .rarity-badge {
  background: rgba(255,112,166,.14);
  color: #ffd2e3;
}

.reward.rarity-royal {
  border-color: rgba(246,197,68,.42);
  background:
    radial-gradient(circle at 90% 15%, rgba(246,197,68,.2), transparent 30%),
    linear-gradient(135deg, rgba(246,197,68,.1), rgba(255,79,129,.08)),
    var(--panel);
  box-shadow: 0 18px 42px rgba(0,0,0,.28), 0 0 34px rgba(246,197,68,.1);
}

.reward.rarity-royal .rarity-badge {
  background: linear-gradient(135deg, rgba(246,197,68,.22), rgba(255,79,129,.18));
  color: #fff0b6;
}
.reward.paid .reward-status {
  background: rgba(69,196,134,.12);
  color: #c9f7df;
}
.reward strong { display: block; font-size: 20px; margin-bottom: 6px; }
.reward span { color: var(--muted); }

.management-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid rgba(246,197,68,.22);
  border-radius: 8px;
  background: rgba(18,23,34,.86);
}

.photo-review-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid rgba(246,197,68,.18);
  border-radius: 8px;
  background: rgba(18,23,34,.86);
  box-shadow: 0 16px 38px rgba(0,0,0,.2);
}

.photo-review-panel h3 {
  margin: 8px 0 0;
  font-size: 24px;
}

.photo-review-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.photo-review-card,
.photo-review-empty {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}

.photo-review-card img {
  width: 110px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
}

.photo-review-card strong,
.photo-review-card span,
.photo-review-empty strong,
.photo-review-empty span {
  display: block;
}

.photo-review-card span,
.photo-review-empty span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.photo-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.photo-review-actions button {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(246,197,68,.24);
  border-radius: 8px;
  background: rgba(246,197,68,.1);
  color: var(--gold-2);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.photo-review-actions button[data-review="rejected"] {
  border-color: rgba(255,128,136,.24);
  background: rgba(255,128,136,.1);
  color: #ffb4b4;
}

.photo-review-empty {
  grid-template-columns: 1fr;
}

.management-head h2 {
  margin: 8px 0;
  font-size: clamp(28px, 4vw, 46px);
}

.management-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.management-head > strong {
  min-width: 92px;
  padding: 12px;
  border-radius: 8px;
  color: var(--gold-2);
  background: rgba(246,197,68,.1);
  text-align: center;
}

.message-head {
  background:
    linear-gradient(120deg, rgba(246,197,68,.12), rgba(255,255,255,.03)),
    rgba(18,23,34,.9);
}

.management-message-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(246,197,68,.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 85% 0%, rgba(246,197,68,.14), transparent 34%),
    rgba(18,23,34,.88);
  box-shadow: 0 18px 44px rgba(0,0,0,.24);
}

.management-message-panel label {
  display: grid;
  gap: 8px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.message-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr);
  gap: 12px;
}

.management-message-panel input,
.management-message-panel select,
.management-message-panel textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(8,12,19,.94);
  color: #fff;
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
  outline: 0;
}

.management-message-panel textarea {
  min-height: 190px;
  padding: 14px;
  line-height: 1.5;
  resize: vertical;
  text-transform: none;
}

.management-message-panel input:focus,
.management-message-panel select:focus,
.management-message-panel textarea:focus {
  border-color: rgba(246,197,68,.72);
  box-shadow: 0 0 0 3px rgba(246,197,68,.12);
}

.mention-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mention-tools > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}

.mention-title {
  margin-bottom: 10px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mention-search {
  width: 100%;
  min-height: 38px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(8,12,19,.84);
  color: #fff;
  padding: 0 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  outline: 0;
}

.mention-search:focus {
  border-color: rgba(246,197,68,.62);
  box-shadow: 0 0 0 3px rgba(246,197,68,.1);
}

.mention-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 166px;
  overflow: auto;
  padding-right: 4px;
}

.mention-chip {
  min-height: 34px;
  max-width: 100%;
  border: 1px solid rgba(246,197,68,.2);
  border-radius: 999px;
  background: rgba(246,197,68,.09);
  color: #ffe6a3;
  padding: 0 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mention-chip:hover {
  border-color: rgba(246,197,68,.5);
  background: rgba(246,197,68,.16);
}

.person-chip {
  border-color: rgba(69,196,134,.24);
  background: rgba(69,196,134,.09);
  color: #c9f7df;
}

.mention-chip.hidden {
  display: none;
}

.mention-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.message-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.message-send-btn {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff0a7, #f6c544, #d99612);
  color: #17110a;
  padding: 0 18px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(246,197,68,.18);
}

.message-send-btn:disabled {
  cursor: wait;
  opacity: .62;
}

#managementMessageStatus {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.employee-table {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(18,23,34,.86);
}

.employee-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.employee-table th,
.employee-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.employee-table th {
  color: var(--gold-2);
  font-size: 12px;
  text-transform: uppercase;
}

.employee-table td span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.people-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(18,23,34,.86);
  overflow: hidden;
}

.people-search {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.people-search label {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.people-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font: inherit;
  font-weight: 800;
  outline: 0;
}

.people-search input:focus {
  border-color: rgba(246,197,68,.72);
  box-shadow: 0 0 0 3px rgba(246,197,68,.12);
}

.people-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  min-height: 520px;
}

.people-list {
  display: grid;
  align-content: start;
  max-height: 620px;
  overflow: auto;
  border-right: 1px solid var(--border);
}

.person-card {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 16px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.person-card:hover,
.person-card.active {
  background: linear-gradient(90deg, rgba(246,197,68,.18), rgba(246,197,68,.04));
}

.person-card.active {
  box-shadow: inset 3px 0 0 var(--gold);
}

.person-card strong {
  font-size: 16px;
}

.person-card span,
.person-card small {
  color: var(--muted);
  font-weight: 800;
}

.person-card.hidden {
  display: none;
}

.empty-person {
  cursor: default;
}

.person-profile {
  padding: 24px;
  background:
    radial-gradient(circle at 90% 5%, rgba(123,231,255,.12), transparent 26%),
    radial-gradient(circle at 12% 92%, rgba(246,197,68,.08), transparent 22%);
}

.person-profile h3 {
  margin: 8px 0;
  font-size: clamp(26px, 4vw, 42px);
}

.person-profile > p:not(.eyebrow) {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.person-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.person-stats span {
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(123,231,255,.13);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(123,231,255,.06), rgba(255,255,255,.035));
}

.person-stats small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.person-stats strong {
  display: block;
  margin-top: 8px;
  color: #f9fdff;
  font-size: clamp(20px, 3vw, 30px);
}

.person-payout-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}

.payout-btn {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, opacity .16s ease;
}

.payout-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.payout-cash {
  color: #062313;
  background: linear-gradient(135deg, #c9f7df, #45c486);
  box-shadow: 0 14px 32px rgba(69,196,134,.18);
}

.payout-rewards {
  color: #17110a;
  background: linear-gradient(135deg, #fff2ad, #f6c544, #d79b11);
  box-shadow: 0 14px 32px rgba(246,197,68,.18);
}

.payout-btn:disabled {
  cursor: not-allowed;
  opacity: .42;
  filter: saturate(.55);
  box-shadow: none;
}

.person-history {
  margin-top: 18px;
  border: 1px solid rgba(246,197,68,.22);
  border-radius: 8px;
  background: rgba(246,197,68,.06);
}

.person-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  color: var(--gold-2);
  font-weight: 900;
  cursor: pointer;
}

.person-history summary span {
  min-width: 32px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(246,197,68,.14);
  color: #fff;
  text-align: center;
}

.person-rewards {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.person-rewards article {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(6,9,14,.4);
}

.person-rewards strong {
  display: block;
  margin-bottom: 4px;
}

.person-rewards span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    inset: auto 10px 10px;
    width: auto;
    display: flex;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(246,197,68,.2);
    border-radius: 8px;
    background: rgba(12,16,23,.94);
    box-shadow: 0 16px 42px rgba(0,0,0,.5);
    backdrop-filter: blur(16px);
    z-index: 40;
  }
  .brand,
  .sidebar-promo,
  .logout {
    display: none;
  }
  .sidebar .nav {
    flex: 1 1 0;
    min-height: 48px;
    margin: 0;
    padding: 9px 10px;
    text-align: center;
    font-size: 12px;
    white-space: nowrap;
  }
  .app { margin-left: 0; padding: 18px 18px 96px; }
  .metric-grid, .wheel-layout, .overview-extra, .event-grid, .player-insights { grid-template-columns: 1fr; }
  .big-drop-bar { grid-template-columns: 1fr; align-items: start; }
  .big-drop-bar strong,
  .big-drop-bar small { white-space: normal; }
  .level-card, .top-grid, .daily-mission-card { grid-template-columns: 1fr; }
  .level-card > strong { white-space: normal; }
  .daily-mission-card > strong { white-space: normal; }
  .mission-actions,
  .mission-photo-form { justify-items: stretch; }
  .mission-actions small { text-align: left; }
  .mission-photo-form input { max-width: none; width: 100%; }
  .daily-admin-summary { grid-template-columns: 1fr; align-items: start; }
  .photo-review-card { grid-template-columns: 1fr; }
  .photo-review-card img { width: 100%; height: 180px; }
  .message-grid,
  .mention-tools { grid-template-columns: 1fr; }
  .management-message-panel { padding: 16px; }
  .mention-buttons { max-height: 132px; }
  .message-actions { align-items: stretch; flex-direction: column; }
  .message-send-btn { width: 100%; }
  .person-payout-actions { grid-template-columns: 1fr; }
  .people-layout { grid-template-columns: 1fr; }
  .people-list { max-height: 320px; border-right: 0; border-bottom: 1px solid var(--border); }
  .person-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vip-profile { align-items: stretch; flex-direction: column; }
  .vip-main { align-items: flex-start; }
  .vip-avatar { width: 62px; height: 62px; }
  .vip-badges { min-width: 0; }
  .game-switch { grid-template-columns: 1fr; }
  .game-tab strong,
  .game-tab small {
    max-width: calc(100% - 78px);
  }
  .royal-strip { grid-template-columns: 1fr; align-items: start; }
  .hero-banner { min-height: 190px; padding: 22px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-art { min-height: 310px; }
  .login-prize-card { width: 132px; min-height: 132px; }
  .login-prize-card img { width: 72px; }
  .login-prize-card-wheel { top: 0; left: 0; right: auto; }
  .login-prize-card-duck { top: 64px; right: 0; }
  .login-prize-card-crate { bottom: 0; left: 50%; right: auto; transform: translateX(-50%) rotate(-2deg); }
  .login-jackpot { left: 0; bottom: 16px; max-width: 160px; }
  .login-shell, .message-box { padding: 32px; }
}
