:root {
  color-scheme: dark;
  --bg: #030305;
  --panel: #0d0d13;
  --panel-2: #11111a;
  --panel-3: #151520;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(240, 192, 64, 0.46);
  --text: #f6f1e8;
  --muted: #8f8d9b;
  --gold: #f6bd22;
  --gold-2: #ffd764;
  --cyan: #29d7f5;
  --green: #27d89a;
  --red: #ff4c67;
  --pink: #ff6b91;
  --purple: #9a6cff;
  --shadow-gold: 0 0 28px rgba(246, 189, 34, 0.24);
  --app-frame: 480px;
  --app-backdrop-frame: 540px;
  --page-pad-x: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 18%, rgba(246, 189, 34, 0.028) 100%),
    linear-gradient(128deg, rgba(246, 189, 34, 0.17), transparent 28%),
    linear-gradient(232deg, rgba(39, 216, 154, 0.085), transparent 34%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 13px),
    #030305;
  background-attachment: fixed;
  color: var(--text);
  overscroll-behavior: none;
}

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

body::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 215, 104, 0.09), transparent 18%, transparent 82%, rgba(41, 215, 245, 0.05)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 31%, rgba(4, 4, 7, 0.58));
}

body::after {
  z-index: 0;
  opacity: 0.18;
  background:
    linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 72%);
}

button,
input {
  font: inherit;
}

select,
textarea {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

.page-shell {
  min-height: 100svh;
  padding: 0 var(--page-pad-x) 34px;
  position: relative;
  z-index: 1;
}

.app-container {
  width: min(100%, var(--app-frame));
  min-height: 100svh;
  margin: 0 auto;
  position: relative;
  isolation: isolate;
}

.app-container::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: max(0px, calc(50% - (var(--app-backdrop-frame) / 2)));
  width: min(100vw, var(--app-backdrop-frame));
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(246, 189, 34, 0.1), transparent 10%, transparent 90%, rgba(246, 189, 34, 0.07)),
    linear-gradient(180deg, rgba(5, 5, 9, 0.18), rgba(9, 8, 10, 0.72) 34%, rgba(3, 3, 5, 0.94));
  box-shadow:
    -18px 0 44px rgba(0, 0, 0, 0.58),
    18px 0 44px rgba(0, 0, 0, 0.58);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  min-height: 86px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(246, 189, 34, 0.13);
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(246, 189, 34, 0.13), transparent 43%),
    radial-gradient(95% 120% at 100% 18%, rgba(39, 216, 154, 0.09), transparent 48%),
    linear-gradient(180deg, rgba(10, 10, 14, 0.9), rgba(6, 7, 10, 0.74) 66%, rgba(5, 5, 8, 0.44));
  backdrop-filter: blur(20px) saturate(1.14);
  justify-content: space-between;
  gap: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(255, 255, 255, 0.025),
    0 18px 38px rgba(0, 0, 0, 0.22);
  isolation: isolate;
}

.app-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -28px;
  height: 28px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 3, 5, 0.46), rgba(3, 3, 5, 0));
}

.home-hero-header {
  min-height: 126px;
  padding: 18px 28px 20px;
  background:
    radial-gradient(100% 130% at 10% 10%, rgba(246, 189, 34, 0.16), transparent 45%),
    radial-gradient(100% 110% at 100% 18%, rgba(39, 216, 154, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(8, 8, 12, 0.94), rgba(4, 5, 8, 0.73) 72%, rgba(4, 5, 8, 0.36));
  backdrop-filter: blur(10px) saturate(1.08);
}

.home-hero-header .header-content {
  gap: 22px;
}

.home-hero-header .header-icon {
  width: clamp(88px, 22vw, 112px);
  min-height: 88px;
  max-height: 112px;
  border-radius: 20px;
  padding: 7px;
  background: linear-gradient(145deg, #191925, #08080d);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 34px rgba(0, 0, 0, 0.28);
}

.home-hero-header .header-title {
  font-size: clamp(30px, 6vw, 38px);
  line-height: 1;
  font-weight: 950;
  color: #f8f4ee;
}

.home-hero-header .header-sub {
  margin-top: 9px;
  color: #9897a6;
  font-size: clamp(17px, 3.8vw, 22px);
  line-height: 1.18;
  white-space: nowrap;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
  position: relative;
  z-index: 1;
}

.header-icon {
  width: clamp(72px, 17vw, 96px);
  aspect-ratio: var(--logo-ratio, 1);
  min-height: 64px;
  max-height: 96px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(34, 34, 48, 0.92), rgba(8, 8, 13, 0.9)),
    #09090f;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 18px 34px rgba(0, 0, 0, 0.24);
  flex: 0 0 auto;
  padding: 4px;
}

.header-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.title-stack {
  min-width: 0;
}

.header-title {
  margin: 0;
  font-size: clamp(18px, 5vw, 22px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.topbar {
  justify-content: space-between;
  gap: 12px;
}

.topbar .title-stack {
  flex: 1;
}

.round-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(34, 34, 49, 0.96), rgba(14, 14, 22, 0.9)),
    #141421;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d9d7e7;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 26px rgba(0, 0, 0, 0.24);
  position: relative;
  z-index: 1;
}

.round-btn:hover {
  border-color: rgba(246, 189, 34, 0.5);
  color: var(--gold-2);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: #cbc8d6;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.pill.live {
  color: #40eaa9;
  border-color: rgba(39, 216, 154, 0.22);
  background: rgba(39, 216, 154, 0.12);
}

.pill.gold {
  color: var(--gold-2);
  border-color: rgba(246, 189, 34, 0.24);
  background: rgba(246, 189, 34, 0.1);
}

.pill.cyan {
  color: var(--cyan);
  border-color: rgba(41, 215, 245, 0.2);
  background: rgba(41, 215, 245, 0.1);
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 16px;
}

.admin-chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  background: rgba(246, 189, 34, 0.1);
  border: 1px solid rgba(246, 189, 34, 0.4);
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.tab-btn {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(13, 13, 19, 0.72);
  color: #f7f2eb;
  transition: transform 160ms ease, border 160ms ease, color 160ms ease;
}

.tab-btn.active {
  background: #0e0e14;
  border-color: var(--gold);
  color: var(--gold-2);
  box-shadow: var(--shadow-gold);
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px 20px 42px;
}

.single-provider {
  grid-template-columns: minmax(0, min(100%, 240px));
  justify-content: start;
  padding-top: 18px;
}

.pg-only-card {
  width: min(100%, 230px);
}

.provider-card {
  position: relative;
  aspect-ratio: var(--provider-ratio, 1);
  border-radius: 11px;
  padding: 7px;
  background: linear-gradient(145deg, #151522, #07070c 70%);
  border: 1px solid rgba(255, 255, 255, 0.055);
  overflow: visible;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.018);
  animation: rise 420ms ease both;
}

.provider-card:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 189, 34, 0.38);
}

.provider-img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    #09090f;
}

.provider-img-wrap::after {
  content: "";
  position: absolute;
  inset: -35%;
  background: linear-gradient(125deg, transparent 30%, rgba(255, 255, 255, 0.16), transparent 55%);
  transform: translateX(-55%);
  transition: transform 520ms ease;
}

.provider-card:hover .provider-img-wrap::after {
  transform: translateX(55%);
}

.provider-card-info {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  display: grid;
  gap: 1px;
  padding: 7px 8px;
  border-radius: 9px;
  background: rgba(3, 3, 7, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.provider-card-info strong {
  color: #fff6df;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.provider-card-info span {
  color: var(--gold-2);
  font-size: 9px;
  font-weight: 850;
}

.provider-img {
  width: auto;
  height: auto;
  max-width: 94%;
  max-height: 92%;
  object-fit: contain;
}

.text-logo {
  width: 82%;
  min-height: 42px;
  display: grid;
  place-items: center;
  font-weight: 950;
  font-size: clamp(12px, 2.8vw, 16px);
  line-height: 1;
  text-align: center;
  color: var(--gold-2);
  text-shadow: 0 0 14px rgba(246, 189, 34, 0.22);
}

.image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 10px;
  text-align: center;
  color: var(--gold-2);
  font-size: clamp(13px, 3vw, 17px);
  font-weight: 950;
  line-height: 1.15;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    #09090f;
}

.hot-badge {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 28px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 8px 8px 8px 3px;
  background: linear-gradient(180deg, #ff4d76, #c90037);
  color: #fff;
  font-size: 9px;
  font-weight: 950;
  box-shadow: 0 0 12px rgba(255, 56, 103, 0.72);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 12px 36px;
}

.recommend-panel {
  margin: 0 12px 16px;
  padding: 13px;
  overflow: hidden;
}

.recommend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.recommend-head span {
  color: var(--gold-2);
  font-size: 15px;
  font-weight: 950;
}

.recommend-head strong {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.recommend-window {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.recommend-track {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: recommendMove 24s linear infinite;
}

.recommend-window:hover .recommend-track {
  animation-play-state: paused;
}

.recommend-card {
  position: relative;
  width: 206px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(246, 189, 34, 0.18);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.recommend-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.16), transparent 42%);
  transform: translateX(-120%);
  animation: recommendShine 3.8s ease-in-out infinite;
  animation-delay: var(--pulse-delay, 0s);
  pointer-events: none;
}

.recommend-card.featured {
  border-color: rgba(246, 189, 34, 0.42);
  animation: recommendPulse 2.8s ease-in-out infinite;
  animation-delay: var(--pulse-delay, 0s);
}

.recommend-art {
  aspect-ratio: var(--recommend-ratio, 360 / 472);
  width: 54px;
  max-height: 62px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #080910;
}

.recommend-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.recommend-art .image-placeholder {
  min-height: 54px;
  font-size: 9px;
}

.recommend-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: left;
}

.recommend-copy strong {
  color: #fff6df;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommend-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

@keyframes recommendMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes recommendShine {
  0%,
  48% {
    transform: translateX(-120%);
  }
  78%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes recommendPulse {
  0%,
  100% {
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.22), 0 0 0 rgba(246, 189, 34, 0);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.28), 0 0 22px rgba(246, 189, 34, 0.16);
    transform: translateY(-2px);
  }
}

.empty-panel {
  grid-column: 1 / -1;
  padding: 22px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.game-card {
  min-width: 0;
  text-align: left;
  background: transparent;
  border-radius: 13px;
  overflow: hidden;
  animation: rise 420ms ease both;
}

.game-card.motion-game {
  overflow: visible;
}

.game-art {
  position: relative;
  aspect-ratio: var(--game-ratio, 360 / 472);
  overflow: hidden;
  border-radius: 11px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}

.motion-game .game-art {
  border-color: rgba(246, 189, 34, 0.34);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34), 0 0 24px rgba(246, 189, 34, 0.12);
  transform-origin: center;
  animation: coverMotion 4.2s ease-in-out infinite;
  animation-delay: var(--motion-delay, 0s);
  will-change: transform, box-shadow;
}

.game-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #09090f;
}

.game-art .image-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.game-art::after {
  content: "";
  position: absolute;
  inset: 44% 0 0;
  background: linear-gradient(transparent, rgba(3, 3, 5, 0.85));
  z-index: 1;
  pointer-events: none;
}

.motion-game .game-art::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: 1;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.24), transparent 18%),
    linear-gradient(118deg, transparent 38%, rgba(255, 255, 255, 0.2), transparent 56%);
  transform: translateX(-44%) rotate(10deg);
  opacity: 0.72;
  animation: coverSweep 3.6s ease-in-out infinite;
  animation-delay: var(--motion-delay, 0s);
  pointer-events: none;
}

.motion-game .game-percent {
  animation: percentGlow 2.8s ease-in-out infinite;
  animation-delay: var(--motion-delay, 0s);
}

.game-status {
  position: absolute;
  top: 5px;
  left: 5px;
  max-width: calc(100% - 33px);
  z-index: 2;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(17, 17, 26, 0.74);
  color: #6af0ca;
  font-size: 8px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heart {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 13px;
  backdrop-filter: blur(6px);
}

.game-percent {
  position: absolute;
  left: 7px;
  bottom: 7px;
  z-index: 3;
  color: #ff708b;
  font-size: 11px;
  font-weight: 950;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.game-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 6px 1px 0;
  color: #c6c3d0;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.2;
}

.game-meta span:nth-child(2) {
  text-align: right;
}

@keyframes coverMotion {
  0%,
  100% {
    transform: perspective(440px) translateY(0) rotateX(0deg) rotateY(0deg) scale(1);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34), 0 0 18px rgba(246, 189, 34, 0.08);
  }
  34% {
    transform: perspective(440px) translateY(-4px) rotateX(2.5deg) rotateY(-4deg) scale(1.028);
    box-shadow: 0 22px 38px rgba(0, 0, 0, 0.4), 0 0 28px rgba(246, 189, 34, 0.18);
  }
  68% {
    transform: perspective(440px) translateY(-2px) rotateX(-1.5deg) rotateY(4deg) scale(1.018);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.36), 0 0 24px rgba(41, 215, 245, 0.12);
  }
}

@keyframes coverSweep {
  0%,
  45% {
    transform: translateX(-48%) rotate(10deg);
    opacity: 0;
  }
  62% {
    opacity: 0.75;
  }
  100% {
    transform: translateX(48%) rotate(10deg);
    opacity: 0;
  }
}

@keyframes percentGlow {
  0%,
  100% {
    color: #ff708b;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  }
  50% {
    color: #ffd764;
    text-shadow: 0 0 14px rgba(246, 189, 34, 0.42);
  }
}

.detail-stack,
.baccarat-stack {
  padding: 16px 12px 38px;
  display: grid;
  gap: 20px;
}

.hero-panel,
.metric-strip,
.form-panel,
.result-panel,
.road-panel,
.recommend-panel,
.budget-panel {
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(15, 15, 23, 0.78);
  border-radius: 13px;
}

.hero-panel {
  overflow: hidden;
}

.hero-stage {
  position: relative;
  min-height: 218px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(110deg, rgba(30, 33, 69, 0.7), rgba(11, 11, 22, 0.92)),
    #0b0b14;
}

.hero-stage img {
  width: auto;
  height: auto;
  max-width: 72%;
  max-height: 176px;
  border-radius: 3px;
  object-fit: contain;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.46);
}

.hero-stage .image-placeholder {
  width: 132px;
  height: 176px;
  border-radius: 5px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.46);
}

.season-pill {
  position: absolute;
  top: 13px;
  right: 13px;
  color: #73ecff;
  border-color: rgba(41, 215, 245, 0.25);
  background: rgba(41, 215, 245, 0.14);
}

.spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  color: #31d9ff;
  box-shadow: 0 0 10px currentColor, 0 0 22px rgba(49, 217, 255, 0.36);
  opacity: 0.74;
  pointer-events: none;
  animation: starOrbit var(--star-speed, 8.8s) linear infinite;
  animation-delay: var(--star-delay, 0s);
  will-change: transform, opacity;
}

.spark.s1 {
  --star-start: 164deg;
  --star-radius: clamp(118px, 31vw, 228px);
  --star-speed: 9.6s;
  --star-delay: -1.4s;
}

.spark.s2 {
  --star-start: 32deg;
  --star-radius: clamp(102px, 28vw, 194px);
  --star-speed: 8.4s;
  --star-delay: -4.8s;
}

.spark.s3 {
  --star-start: 286deg;
  --star-radius: clamp(92px, 24vw, 176px);
  --star-speed: 10.8s;
  --star-delay: -7.2s;
  width: 6px;
  height: 6px;
  opacity: 0.62;
}

@keyframes starOrbit {
  0% {
    transform: translate(-50%, -50%) rotate(var(--star-start, 0deg)) translateX(var(--star-radius, 170px)) scale(0.78);
    opacity: 0.48;
  }
  35% {
    opacity: 0.86;
  }
  70% {
    opacity: 0.68;
  }
  100% {
    transform: translate(-50%, -50%) rotate(calc(var(--star-start, 0deg) + 360deg)) translateX(var(--star-radius, 170px)) scale(0.78);
    opacity: 0.48;
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 62px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stat {
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 8px;
  text-align: center;
}

.hero-stat + .hero-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-number {
  color: var(--pink);
  font-weight: 950;
  font-size: 14px;
}

.stat-label {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 14px 10px;
  gap: 8px;
}

.metric-box {
  text-align: center;
}

.metric-box .label {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 5px;
}

.metric-box .value {
  font-weight: 950;
  color: var(--gold-2);
  font-size: 14px;
}

.hit-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  color: #aaa6b7;
  font-size: 11px;
}

.bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: var(--value, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, #2de2ff, #6df2c5);
}

.form-panel {
  padding: 20px;
}

.form-label {
  display: block;
  margin: 0 0 10px;
  color: #aaa7b8;
  font-size: 12px;
  font-weight: 750;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 10px;
}

.field {
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.input-wrap {
  position: relative;
}

.currency {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-weight: 900;
}

input[type="number"] {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  background: #12121c;
  color: #f6f2ea;
  padding: 0 12px 0 36px;
  outline: 0;
  font-weight: 850;
}

input[type="number"]:focus {
  border-color: rgba(246, 189, 34, 0.58);
  box-shadow: 0 0 0 3px rgba(246, 189, 34, 0.09);
}

.style-title {
  margin: 18px 0 10px;
  color: #aaa7b8;
  font-size: 12px;
  font-weight: 800;
}

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

.style-btn {
  min-height: 88px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #12121c;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 10px 4px;
  color: #d9d5e0;
}

.style-btn.active {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold), inset 0 0 0 1px rgba(246, 189, 34, 0.15);
  color: var(--gold-2);
}

.style-icon {
  font-size: 21px;
}

.style-name {
  font-size: 13px;
  font-weight: 850;
}

.style-desc {
  font-size: 9px;
  color: var(--muted);
}

.primary-btn {
  width: 100%;
  min-height: 56px;
  margin-top: 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffd34e, #f2a900);
  color: #090804;
  font-weight: 950;
  box-shadow: 0 18px 38px rgba(246, 189, 34, 0.24);
}

.result-panel {
  padding: 16px;
  border-color: rgba(246, 189, 34, 0.48);
  box-shadow: 0 0 36px rgba(246, 189, 34, 0.12);
  scroll-margin-top: 96px;
  animation: resultRefresh 360ms ease both;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--gold-2);
  font-weight: 900;
  font-size: 13px;
}

@keyframes resultRefresh {
  from {
    opacity: 0.78;
    transform: translateY(8px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mini-stats div {
  text-align: center;
}

.mini-stats span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 5px;
}

.mini-stats strong {
  color: var(--gold-2);
  font-size: 14px;
}

.bet-focus {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 16px 0 12px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(246, 189, 34, 0.18);
}

.bet-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(246, 189, 34, 0.15);
  color: var(--gold-2);
  font-size: 25px;
}

.bet-focus p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.bet-focus strong {
  color: var(--gold-2);
  font-size: 30px;
  line-height: 1;
}

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

.result-metric {
  min-height: 74px;
  padding: 12px;
  border-radius: 9px;
  background: #12121c;
  border: 1px solid rgba(255, 255, 255, 0.065);
}

.result-metric p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
}

.result-metric strong {
  font-size: 22px;
  color: var(--cyan);
}

.method {
  margin-top: 12px;
  padding: 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
}

.method-title {
  margin: 0 0 10px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
}

.method-step {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  align-items: start;
  color: #c8c5d2;
  font-size: 12px;
  line-height: 1.55;
}

.method-step + .method-step {
  margin-top: 8px;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(246, 189, 34, 0.14);
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 950;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.secondary-btn {
  min-height: 44px;
  border-radius: 9px;
  background: #14141d;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #eee9dd;
  font-weight: 850;
}

.table-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.table-tabs::-webkit-scrollbar {
  display: none;
}

.table-tab {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 9px;
  background: #0f0f16;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #aaa7b8;
  font-size: 12px;
  font-weight: 850;
}

.table-tab.active {
  color: var(--gold-2);
  border-color: var(--gold);
  background: rgba(246, 189, 34, 0.08);
}

.road-panel {
  padding: 9px;
}

.bead-road {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  grid-auto-rows: 25px;
  gap: 1px;
  padding: 8px;
  border-radius: 9px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #101016;
  background-size: 26px 26px;
}

.bead {
  width: 22px;
  height: 22px;
  margin: auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 950;
  color: white;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.35);
}

.bead.empty {
  background: transparent;
  box-shadow: none;
}

.bead.b {
  background: linear-gradient(180deg, #ff526d, #d70e2e);
}

.bead.p {
  background: linear-gradient(180deg, #4aa8ff, #126be7);
}

.bead.t {
  background: linear-gradient(180deg, #35e6ac, #0aa173);
}

.baccarat-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.count-card {
  min-height: 92px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(15, 15, 22, 0.9);
  text-align: center;
}

.count-card strong {
  display: block;
  font-size: 27px;
  line-height: 1;
}

.count-card span {
  display: block;
  margin-top: 8px;
  color: #aaa7b8;
  font-size: 10px;
  text-transform: uppercase;
}

.count-card small {
  display: block;
  margin-top: 5px;
  color: #777383;
  font-size: 10px;
}

.budget-panel {
  padding: 18px;
}

.legacy-recommend-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.recommend-label {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
}

.recommend-value {
  margin: 0;
  font-size: 31px;
  color: var(--red);
  font-weight: 950;
}

.confidence {
  text-align: right;
  color: var(--muted);
  font-size: 11px;
}

.confidence strong {
  display: block;
  margin-top: 5px;
  color: var(--gold-2);
  font-size: 23px;
}

.recommend-text {
  margin: 7px 0 13px;
  color: #8e8b99;
  font-size: 12px;
}

.progress-red span {
  background: linear-gradient(90deg, #ff3156, #ff6f89);
}

.budget-title {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}

.budget-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 14px;
}

.budget-stat p {
  margin: 0 0 4px;
  color: #8f8c9a;
  font-size: 11px;
}

.budget-stat strong {
  color: var(--gold-2);
  font-size: 21px;
}

.budget-stat strong.good {
  color: var(--green);
}

.budget-stat strong.bad {
  color: var(--red);
}

.budget-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.win-btn,
.lose-btn,
.reset-btn {
  min-height: 44px;
  border-radius: 9px;
  color: #fff;
  font-weight: 950;
}

.win-btn {
  background: #0fa575;
}

.lose-btn {
  background: #ed001c;
}

.reset-btn {
  grid-column: 1 / -1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #aaa7b8;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 90;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  min-width: min(320px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(15, 15, 23, 0.95);
  border: 1px solid rgba(246, 189, 34, 0.35);
  color: #f8f1df;
  text-align: center;
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: var(--shadow-gold);
}

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

.floating-actions {
  position: fixed;
  right: max(12px, calc((100vw - var(--app-frame)) / 2 + 12px));
  bottom: 14px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: min(360px, calc(100vw - 22px));
}

.line-float,
.signup-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px 6px 7px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 950;
  backdrop-filter: blur(12px);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.line-float {
  background: rgba(7, 42, 24, 0.76);
  border: 1px solid rgba(63, 235, 137, 0.52);
  color: #e9fff2;
  box-shadow: 0 10px 22px rgba(8, 169, 79, 0.18), 0 0 18px rgba(34, 211, 118, 0.12);
  flex: 0 1 auto;
}

.signup-float {
  min-width: 0;
  background: linear-gradient(135deg, #ffd95a 0%, #ffb312 48%, #f58a00 100%);
  border: 1px solid rgba(255, 236, 151, 0.86);
  color: #171007;
  box-shadow: 0 11px 24px rgba(246, 189, 34, 0.26), 0 0 19px rgba(255, 211, 81, 0.18);
  animation: signupGlow 2.8s ease-in-out infinite;
  flex: 0 1 auto;
}

.line-float:hover,
.signup-float:hover {
  transform: translateY(-2px);
}

.line-float:hover {
  background: rgba(10, 97, 48, 0.9);
  box-shadow: 0 14px 26px rgba(8, 169, 79, 0.24);
}

.signup-float:hover {
  background: linear-gradient(135deg, #ffe47d 0%, #ffc126 48%, #ffa10a 100%);
  box-shadow: 0 14px 28px rgba(246, 189, 34, 0.34), 0 0 26px rgba(255, 224, 108, 0.26);
}

.line-float span,
.signup-float span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 9px;
}

.line-float span {
  background: rgba(44, 235, 131, 0.24);
  color: #96ffc4;
}

.signup-float span {
  width: 26px;
  height: 26px;
  background: rgba(30, 20, 4, 0.18);
  color: #120c04;
  font-size: 9px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.line-float strong,
.signup-float strong {
  font-size: 11px;
  letter-spacing: 0;
}

.signup-float strong {
  font-size: 11px;
  color: #120c04;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
}

@keyframes signupGlow {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 14px 30px rgba(246, 189, 34, 0.3), 0 0 22px rgba(255, 211, 81, 0.2);
  }

  50% {
    transform: translateY(-1px) scale(1.025);
    box-shadow: 0 18px 34px rgba(246, 189, 34, 0.42), 0 0 34px rgba(255, 211, 81, 0.34);
  }
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 900;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.admin-stack {
  display: grid;
  gap: 16px;
  padding: 16px 12px 96px;
}

.admin-panel {
  padding: 16px;
  border-radius: 13px;
  background: rgba(15, 15, 23, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.admin-overview .secondary-btn {
  grid-column: 1 / -1;
}

.admin-stat {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.admin-stat strong {
  color: var(--gold-2);
  font-size: 24px;
  line-height: 1;
}

.admin-stat span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-title,
.admin-title-row strong {
  color: var(--gold-2);
  font-size: 15px;
  font-weight: 950;
  margin-bottom: 12px;
}

.admin-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.admin-field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: #aaa7b8;
  font-size: 12px;
  font-weight: 750;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: #12121c;
  color: #f6f2ea;
  padding: 0 12px;
  outline: 0;
  font-weight: 750;
}

.admin-field input[type="file"] {
  min-height: auto;
  padding: 12px;
  cursor: pointer;
}

.file-field {
  padding: 10px;
  border-radius: 10px;
  background: rgba(246, 189, 34, 0.045);
  border: 1px dashed rgba(246, 189, 34, 0.28);
}

.bulk-drop {
  position: relative;
  min-height: 112px;
  display: grid;
  place-items: center;
  gap: 5px;
  text-align: center;
  padding: 18px;
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(246, 189, 34, 0.12), rgba(41, 215, 245, 0.055)),
    rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(246, 189, 34, 0.42);
  cursor: pointer;
}

.bulk-drop input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.bulk-drop strong {
  color: #fff6df;
  font-size: 16px;
  font-weight: 950;
}

.bulk-drop span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 750;
}

.bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.provider-editor {
  display: grid;
  gap: 10px;
}

.provider-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-field textarea {
  min-height: 94px;
  padding-top: 10px;
  resize: vertical;
  line-height: 1.55;
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
  border-color: rgba(246, 189, 34, 0.58);
  box-shadow: 0 0 0 3px rgba(246, 189, 34, 0.09);
}

.game-editor {
  display: grid;
  gap: 12px;
}

.quick-add {
  display: flex;
  gap: 8px;
  align-items: center;
}

.quick-add select,
[data-bulk-provider] {
  min-height: 36px;
  min-width: 120px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: #12121c;
  color: #f6f2ea;
  padding: 0 10px;
  outline: 0;
  font-weight: 850;
}

.admin-game {
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: clip;
}

.admin-game[open] {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(246, 189, 34, 0.2);
}

.admin-game summary::-webkit-details-marker {
  display: none;
}

.admin-game-summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 10px;
  cursor: pointer;
  list-style: none;
}

.admin-thumb {
  aspect-ratio: var(--admin-thumb-ratio, 360 / 472);
  inline-size: 58px;
  max-block-size: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: #080912;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-thumb .image-placeholder {
  font-size: 9px;
  font-weight: 950;
  color: var(--gold-2);
  text-align: center;
  padding: 5px;
}

.admin-game-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-game-main strong {
  color: var(--gold-2);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-game-main span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-open {
  min-width: 52px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #080808;
  background: var(--gold);
  text-align: center;
  font-size: 11px;
  font-weight: 950;
}

.admin-game[open] .admin-open {
  background: rgba(41, 215, 245, 0.14);
  color: var(--cyan);
}

.admin-game-body {
  padding: 4px 12px 12px;
}

.daily-preview {
  margin-top: 8px;
  padding: 10px;
  border-radius: 9px;
  background: rgba(41, 215, 245, 0.07);
  border: 1px solid rgba(41, 215, 245, 0.16);
  color: #8eeaff;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 800;
}

.small-danger {
  width: 30px;
  height: 30px;
  color: #ff708b;
}

.admin-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 10px;
}

.compact {
  width: auto;
  min-height: 36px;
  padding: 0 12px;
}

.danger-outline {
  color: #ff708b;
  border-color: rgba(255, 112, 139, 0.26);
  background: rgba(255, 112, 139, 0.055);
}

@media (min-width: 700px) {
  :root {
    --app-frame: 720px;
    --app-backdrop-frame: 820px;
    --page-pad-x: 20px;
  }

  .app-header {
    min-height: 104px;
    padding: 18px 28px;
  }

  .home-hero-header {
    min-height: 148px;
    padding: 22px 34px;
  }

  .home-hero-header .header-content {
    gap: 24px;
  }

  .home-hero-header .header-icon {
    width: clamp(104px, 14vw, 122px);
    min-height: 104px;
    max-height: 122px;
  }

  .home-hero-header .header-title {
    font-size: clamp(38px, 5vw, 44px);
  }

  .home-hero-header .header-sub {
    font-size: clamp(19px, 2.7vw, 23px);
  }

  .provider-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 18px 20px 56px;
  }

  .single-provider {
    grid-template-columns: minmax(0, min(100%, 260px));
  }

  .provider-card {
    border-radius: 14px;
    padding: 8px;
  }

  .provider-img-wrap {
    border-radius: 11px;
  }

  .provider-card-info strong {
    font-size: 12px;
  }

  .provider-card-info span {
    font-size: 10px;
  }

  .recommend-panel {
    margin: 0 20px 18px;
    padding: 16px;
  }

  .recommend-card {
    width: 240px;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
  }

  .recommend-art {
    width: 62px;
    max-height: 72px;
  }

  .game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 0 20px 52px;
  }

  .game-status {
    top: 7px;
    left: 7px;
    font-size: 9px;
  }

  .heart {
    top: 7px;
    right: 7px;
    width: 26px;
    height: 26px;
  }

  .game-percent {
    left: 9px;
    bottom: 9px;
    font-size: 13px;
  }

  .game-meta {
    gap: 4px;
    padding-top: 7px;
    font-size: 10px;
  }

  .detail-stack,
  .baccarat-stack {
    padding: 20px;
  }

  .hero-stage {
    min-height: 270px;
  }

  .hero-stage img {
    max-height: 220px;
  }

  .form-panel,
  .result-panel {
    padding: 24px;
  }

  .admin-stack {
    padding: 20px 20px 110px;
  }

  .admin-panel {
    padding: 20px;
  }

  .admin-game-summary {
    grid-template-columns: 68px minmax(0, 1fr) auto;
    min-height: 84px;
  }

  .admin-thumb {
    inline-size: 68px;
    max-block-size: 68px;
  }
}

@media (min-width: 1080px) {
  :root {
    --app-frame: 860px;
    --app-backdrop-frame: 980px;
    --page-pad-x: 32px;
  }

  .app-header {
    min-height: 108px;
    padding-inline: 36px;
  }

  .provider-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding-inline: 22px;
  }

  .game-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    padding-inline: 22px;
  }

  .detail-stack,
  .baccarat-stack {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    padding: 22px;
  }

  .hero-panel,
  .metric-strip {
    grid-column: 1;
  }

  .form-panel {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .result-panel,
  .road-panel,
  .budget-panel {
    grid-column: 1 / -1;
  }

  .admin-stack {
    padding-inline: 22px;
  }
}

@media (max-width: 520px) {
  :root {
    --app-frame: 100vw;
    --app-backdrop-frame: 100vw;
    --page-pad-x: 0px;
  }

  .page-shell {
    padding-inline: 0;
  }

  .app-container {
    width: 100%;
  }

  .app-container::before {
    left: 0;
    width: 100vw;
    background:
      radial-gradient(95% 52% at 0% 8%, rgba(246, 189, 34, 0.11), transparent 62%),
      radial-gradient(95% 52% at 100% 8%, rgba(39, 216, 154, 0.09), transparent 62%),
      linear-gradient(180deg, rgba(7, 7, 10, 0.26), rgba(4, 4, 7, 0.92) 38%, rgba(3, 3, 5, 0.98));
    box-shadow: none;
  }

  .app-header {
    border-radius: 0;
    border-inline: 0;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.035),
      inset 0 -1px 0 rgba(246, 189, 34, 0.055),
      0 16px 30px rgba(0, 0, 0, 0.16);
  }

  .home-hero-header {
    background:
      radial-gradient(95% 115% at 7% 8%, rgba(246, 189, 34, 0.13), transparent 48%),
      radial-gradient(95% 105% at 100% 12%, rgba(39, 216, 154, 0.105), transparent 48%),
      linear-gradient(180deg, rgba(8, 8, 12, 0.88), rgba(4, 5, 8, 0.62) 74%, rgba(4, 5, 8, 0.24));
  }

  .admin-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-overview .secondary-btn {
    grid-column: 1 / -1;
  }

  .admin-game-summary {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .admin-open {
    grid-column: 1 / -1;
    width: 100%;
  }

  .quick-add {
    width: 100%;
    display: grid;
  }

  .quick-add select {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .page-shell {
    padding-inline: 0;
  }

  .app-header {
    padding-inline: 18px;
  }

  .provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-inline: 18px;
  }

  .single-provider {
    grid-template-columns: minmax(0, min(100%, 220px));
  }

  .pg-only-card {
    width: min(100%, 210px);
  }

  .game-grid {
    gap: 8px;
    padding-inline: 6px;
  }

  .floating-actions {
    right: 10px;
    gap: 6px;
    max-width: calc(100vw - 20px);
  }

  .line-float,
  .signup-float {
    min-height: 38px;
    gap: 5px;
    padding: 6px 9px 6px 6px;
  }

  .line-float span,
  .signup-float span {
    width: 24px;
    height: 24px;
    font-size: 8px;
  }

  .line-float strong,
  .signup-float strong {
    font-size: 10px;
  }

  .game-meta {
    font-size: 8px;
  }

  .game-status {
    font-size: 7px;
    max-width: calc(100% - 29px);
  }

  .heart {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }

  .game-percent {
    font-size: 10px;
  }

  .field-grid,
  .result-grid,
  .budget-stats {
    gap: 10px 8px;
  }

  .style-grid {
    gap: 7px;
  }

  .style-btn {
    min-height: 82px;
  }

  .admin-title-row {
    display: grid;
  }
}
