:root {
  --bg-night: #12080a;
  --bg-ink: #050203;
  --bg-card: rgba(19, 8, 10, 0.84);
  --bg-card-strong: rgba(11, 4, 6, 0.93);
  --line: rgba(195, 66, 66, 0.4);
  --line-strong: rgba(245, 109, 109, 0.72);
  --gold: #ffd27a;
  --gold-deep: #ad731e;
  --mint: #cf3f4f;
  --mint-strong: #f86060;
  --rose: #ff9e72;
  --text-main: #f7f3e8;
  --text-soft: #e0c7c7;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--text-main);
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 18% -12%, rgba(255, 210, 122, 0.2), transparent 42%),
    radial-gradient(circle at 92% 0%, rgba(246, 92, 92, 0.18), transparent 42%),
    radial-gradient(circle at 50% 120%, rgba(255, 180, 110, 0.12), transparent 48%),
    linear-gradient(145deg, var(--bg-night), var(--bg-ink));
  padding: 28px;
  animation: pageRise 480ms ease;
}

@media (max-width: 900px) {
  body {
    padding: 16px;
  }
}

a {
  color: #ffb3b3;
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

.layout {
  max-width: 1220px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand__title {
  margin: 0;
  font-family: "Copperplate", "Baskerville", serif;
  letter-spacing: 0.08em;
  font-size: clamp(1.4rem, 1.9vw, 2rem);
  color: var(--gold);
  text-transform: uppercase;
}

.brand__subtitle {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a,
.nav button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 22, 26, 0.7);
  color: var(--text-main);
  font-size: 0.9rem;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 160ms ease;
}

.nav a:hover,
.nav button:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(127, 205, 171, 0.13);
}

.panel {
  background: linear-gradient(155deg, rgba(26, 11, 13, 0.96), rgba(11, 4, 6, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}

.panel + .panel {
  margin-top: 18px;
}

.panel__title {
  margin: 0 0 12px;
  font-family: "Copperplate", "Baskerville", serif;
  color: var(--gold);
  letter-spacing: 0.06em;
  font-size: 1.22rem;
}

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

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.col-4 {
  grid-column: span 4;
}

.col-5 {
  grid-column: span 5;
}

.col-6 {
  grid-column: span 6;
}

.col-7 {
  grid-column: span 7;
}

.col-8 {
  grid-column: span 8;
}

.col-12 {
  grid-column: span 12;
}

@media (max-width: 980px) {
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-12 {
    grid-column: span 1;
  }
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

label {
  font-size: 0.9rem;
  color: var(--text-soft);
}

input,
select {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(127, 205, 171, 0.35);
  background: rgba(7, 19, 24, 0.85);
  color: var(--text-main);
  padding: 11px 12px;
  font-size: 0.98rem;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--mint-strong);
  box-shadow: 0 0 0 3px rgba(57, 184, 127, 0.18);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.button--primary {
  background: linear-gradient(120deg, var(--gold), #ffeaad);
  color: #2f2200;
  box-shadow: 0 12px 22px rgba(255, 213, 107, 0.2);
}

.button--accent {
  background: linear-gradient(120deg, var(--mint), #9aebc8);
  color: #002014;
  box-shadow: 0 12px 22px rgba(127, 205, 171, 0.2);
}

.button--ghost {
  background: transparent;
  color: var(--text-main);
  border-color: var(--line);
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-value {
  font-family: "Copperplate", "Baskerville", serif;
  font-size: clamp(1.4rem, 2.1vw, 2.2rem);
  color: var(--gold);
}

.status {
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 12px;
  font-size: 0.94rem;
}

.status--info {
  background: rgba(230, 95, 95, 0.13);
  border: 1px solid rgba(230, 95, 95, 0.52);
}

.status--success {
  background: rgba(255, 210, 122, 0.16);
  border: 1px solid rgba(255, 210, 122, 0.66);
}

.status--error {
  background: rgba(255, 125, 119, 0.14);
  border: 1px solid rgba(255, 125, 119, 0.6);
}

.muted {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 8px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 5px 10px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100;
  padding: 16px;
}

.modal.is-open {
  display: flex;
}

.modal__content {
  width: min(430px, 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-card-strong);
  box-shadow: var(--shadow);
  padding: 18px;
}

.roulette-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
}

@media (max-width: 1100px) {
  .roulette-layout {
    grid-template-columns: 1fr;
  }
}

.roulette-board {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 12px;
  background: rgba(18, 6, 8, 0.75);
}

.roulette-board--simple {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.roulette-wheel-wrap {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.roulette-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 24px solid var(--gold);
  transform: translateX(-50%);
  z-index: 4;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.roulette-wheel-shell {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid rgba(255, 213, 107, 0.6);
  box-shadow:
    inset 0 0 0 8px rgba(5, 14, 17, 0.75),
    0 18px 30px rgba(0, 0, 0, 0.35);
  background: radial-gradient(circle at 50% 50%, rgba(4, 12, 15, 0.35), rgba(4, 12, 15, 0.92));
  overflow: hidden;
}

.roulette-wheel {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  transition: transform 4s cubic-bezier(0.08, 0.74, 0.15, 1);
  transform: rotate(0deg);
}

.roulette-number-ring {
  position: absolute;
  inset: 0;
}

.wheel-number {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(4, 12, 15, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.wheel-number--red {
  color: #ff9f9f;
}

.wheel-number--black {
  color: #f1f1f1;
}

.wheel-number--green {
  color: #95ffbf;
}

.roulette-wheel-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe8a4, #b5852a 65%, #6a4a15);
  transform: translate(-50%, -50%);
  border: 5px solid rgba(11, 20, 24, 0.88);
  display: grid;
  place-items: center;
  color: #2d1e02;
  font-family: "Copperplate", "Baskerville", serif;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  z-index: 2;
}

.roulette-last-result {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.roulette-color-button {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 44px;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 130ms ease, box-shadow 130ms ease, border-color 130ms ease;
}

.roulette-color-button:hover {
  transform: translateY(-1px);
}

.roulette-color-button.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 213, 107, 0.2);
}

.roulette-color-button--red {
  background: linear-gradient(140deg, rgba(143, 28, 28, 0.9), rgba(101, 22, 22, 0.82));
}

.roulette-color-button--black {
  background: linear-gradient(140deg, rgba(40, 40, 40, 0.92), rgba(18, 18, 18, 0.88));
}

.roulette-color-button--green {
  background: linear-gradient(140deg, rgba(31, 128, 78, 0.92), rgba(22, 95, 60, 0.88));
}

.blackjack-table {
  background: linear-gradient(165deg, rgba(21, 8, 10, 0.95), rgba(9, 3, 5, 0.95));
}

.blackjack-lane {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.blackjack-seat {
  border: 1px solid rgba(255, 210, 122, 0.28);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.22);
  padding: 12px;
}

.blackjack-seat--player {
  border-color: rgba(248, 96, 96, 0.38);
}

.blackjack-seat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--gold);
  font-family: "Copperplate", "Baskerville", serif;
  letter-spacing: 0.05em;
}

.blackjack-cards {
  min-height: 60px;
}

.jackpot-hero {
  position: relative;
  overflow: hidden;
}

.jackpot-pot-wrap {
  position: relative;
  display: grid;
  place-items: center;
  margin: 12px 0;
}

.jackpot-pot-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 122, 0.34), rgba(255, 210, 122, 0));
  filter: blur(4px);
}

.jackpot-pot-card {
  position: relative;
  min-width: 260px;
  border-radius: 20px;
  border: 1px solid rgba(255, 210, 122, 0.4);
  background: linear-gradient(160deg, rgba(47, 18, 8, 0.92), rgba(21, 7, 6, 0.9));
  padding: 22px 18px;
  text-align: center;
  box-shadow: inset 0 0 18px rgba(255, 210, 122, 0.12);
}

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

.jackpot-metric {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.jackpot-metric span {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.jackpot-metric strong {
  color: var(--gold);
  font-size: 1.1rem;
}

.fineprint {
  margin: 8px 0 0;
  color: #cdb6b6;
  font-size: 0.78rem;
  line-height: 1.45;
}

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

.bet-field {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  min-height: 46px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(5, 16, 21, 0.7);
  cursor: pointer;
  user-select: none;
  transition: border-color 120ms ease, transform 120ms ease;
}

.bet-field:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.bet-field--red {
  background: linear-gradient(140deg, rgba(133, 22, 22, 0.85), rgba(105, 18, 18, 0.75));
}

.bet-field--black {
  background: linear-gradient(140deg, rgba(33, 35, 36, 0.9), rgba(18, 20, 20, 0.85));
}

.bet-field--green {
  background: linear-gradient(140deg, rgba(21, 81, 58, 0.95), rgba(18, 69, 47, 0.86));
}

.bet-chip {
  position: absolute;
  right: 4px;
  top: 4px;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 213, 107, 0.92);
  color: #2a1b00;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  padding: 0 5px;
  font-weight: 700;
}

.chip-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(10, 30, 35, 0.8);
  color: var(--text-main);
  cursor: pointer;
}

.chip-button.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 213, 107, 0.2);
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 10px;
}

.card {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(236, 236, 236, 0.95));
  color: #141414;
  font-family: "Courier New", monospace;
  font-weight: 700;
  padding: 10px;
  text-align: center;
}

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

.slot-reel {
  border-radius: 14px;
  min-height: 90px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(165deg, rgba(255, 213, 107, 0.14), rgba(22, 41, 47, 0.8));
}

.slot-reel.is-spinning {
  animation: slotPulse 220ms ease-in-out infinite;
}

.jackpot-count {
  font-family: "Copperplate", "Baskerville", serif;
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  color: var(--gold);
}

.kicker {
  margin: 0;
  color: var(--mint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.rulebox {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.18);
  padding: 12px;
}

.page-animate {
  animation: riseItem 430ms ease both;
}

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

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

@keyframes slotPulse {
  from {
    transform: translateY(0);
    filter: brightness(0.95);
  }
  to {
    transform: translateY(-1px);
    filter: brightness(1.15);
  }
}
