:root {
  --bg: #0b0d10;
  --panel: rgba(255,255,255,.055);
  --line: rgba(255,255,255,.12);
  --text: #f5f1e8;
  --muted: #bfc6c1;
  --gold: #f3d58a;
  --gold2: #b98b3a;
  --green: #b9ffd6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 50% 8%, rgba(243,213,138,.10), transparent 34%),
    radial-gradient(circle at 20% 70%, rgba(150,160,170,.11), transparent 30%),
    linear-gradient(180deg, #111418 0%, #080a0d 100%);
}

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .5px;
  color: var(--text);
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #101215;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  box-shadow: 0 16px 42px rgba(0,0,0,.3);
}

.main-game {
  min-height: calc(100vh - 150px);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 20px 0 18px;
}

.game-shell {
  width: 100%;
  border-radius: 34px;
  padding: clamp(18px, 3vw, 34px);
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(243,213,138,.18);
  box-shadow: 0 26px 90px rgba(0,0,0,.34);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: clamp(18px, 2.3vw, 30px);
}

.cat-card {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 190px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.11);
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.14), transparent 35%),
    linear-gradient(145deg, rgba(150,156,164,.20), rgba(48,53,60,.20));
  cursor: pointer;
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: transform .18s ease, border-color .18s ease, opacity .18s ease;
}

.cat-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(243,213,138,.45);
}

.cat-card.disabled {
  pointer-events: none;
}

.cat {
  width: clamp(128px, 14vw, 190px);
  height: clamp(128px, 14vw, 190px);
  position: relative;
  animation: wheelSpin 2.8s linear infinite;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.42));
}

.cat-face {
  width: 100%;
  height: 82%;
  background: linear-gradient(145deg, #c1c6cc, #707982);
  border-radius: 48% 48% 42% 42%;
  position: absolute;
  bottom: 0;
  left: 0;
}

.cat-face:before,
.cat-face:after {
  content: "";
  position: absolute;
  top: -20%;
  width: 0;
  height: 0;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-bottom: 52px solid #969da6;
}

.cat-face:before {
  left: 8%;
  transform: rotate(-18deg);
}

.cat-face:after {
  right: 8%;
  transform: rotate(18deg);
}

.eye {
  position: absolute;
  top: 40%;
  width: 11%;
  height: 14%;
  border-radius: 50%;
  background: #111418;
}

.eye.left {
  left: 29%;
}

.eye.right {
  right: 29%;
}

.nose {
  position: absolute;
  top: 58%;
  left: 50%;
  width: 11%;
  height: 8%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #34383d;
}

.cat-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  text-align: center;
  color: #101215;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.reveal {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 100%;
}

.money-bag {
  font-size: clamp(64px, 8vw, 118px);
  line-height: 1;
  margin-bottom: 12px;
}

.bag-value {
  color: var(--gold);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 900;
}

.result-panel {
  margin: 28px auto 0;
  max-width: 720px;
  text-align: center;
  color: var(--text);
  font-size: 22px;
  line-height: 1.5;
}

.result-panel strong {
  color: var(--gold);
}

.small-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn, button {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 900;
  font-size: 15px;
  color: #101215;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  text-decoration: none;
  display: inline-block;
  transition: transform .16s ease;
}

.btn:hover, button:hover {
  transform: translateY(-2px);
}

button.secondary {
  background: rgba(255,255,255,.12);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.18);
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 32px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

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

.content-wrap {
  width: min(900px, calc(100% - 32px));
  margin: 34px auto 60px;
}

.content-card {
  padding: 34px;
  border-radius: 30px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(243,213,138,.2);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  color: var(--muted);
  line-height: 1.72;
}

.content-card h1,
.content-card h2 {
  color: var(--gold);
}

.content-card h1 {
  margin-top: 0;
  font-size: clamp(32px, 4vw, 48px);
}

.content-card a {
  color: var(--gold);
}

@keyframes wheelSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

  .cat-card {
    min-height: 240px;
  }

  .site-header {
    padding-top: 18px;
  }

  .main-game {
    min-height: auto;
    padding-top: 18px;
  }
}