:root {
  --bg1: #102417;
  --bg2: #173322;
  --bg3: #0d1b13;
  --gold: #f5d67b;
  --gold2: #c79b3c;
  --gold3: #ffb84a;
  --green: #6fdf8f;
  --green2: #29523a;
  --panel: rgba(255,255,255,.10);
  --panel2: rgba(255,255,255,.06);
  --line: rgba(245, 214, 123, .22);
  --text: #f7f1de;
  --muted: #c5c8b8;
  --white: #fffdf5;
  --shadow: rgba(0,0,0,.30);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(245,214,123,.18), transparent 20%),
    radial-gradient(circle at 82% 14%, rgba(245,214,123,.11), transparent 22%),
    radial-gradient(circle at 22% 85%, rgba(111,223,143,.10), transparent 20%),
    radial-gradient(circle at 82% 80%, rgba(255,184,74,.10), transparent 22%),
    linear-gradient(135deg, var(--bg1) 0%, var(--bg2) 38%, #112a1d 62%, var(--bg3) 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(245,214,123,.10), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 30%);
  z-index: 0;
}

.main-game {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 26px 0 18px;
}

.game-card {
  width: 100%;
  padding: clamp(18px, 3vw, 34px);
  border-radius: 42px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border: 1px solid var(--line);
  box-shadow:
    0 36px 100px rgba(0,0,0,.26),
    inset 0 0 0 1px rgba(255,255,255,.03),
    0 0 80px rgba(245,214,123,.06);
  backdrop-filter: blur(10px);
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(500px, 1fr) 340px;
  gap: clamp(22px, 3vw, 36px);
  align-items: center;
}

.stage {
  display: grid;
  place-items: center;
  gap: 22px;
}

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

.pointer {
  position: absolute;
  top: -8px;
  z-index: 4;
  width: 0;
  height: 0;
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  border-top: 44px solid var(--gold);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
}

.wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    conic-gradient(
      #9a312d 0deg 45deg,
      #c79b3c 45deg 90deg,
      #2f7a45 90deg 135deg,
      #cc6a2a 135deg 180deg,
      #7f4da1 180deg 225deg,
      #8e345f 225deg 270deg,
      #457b2d 270deg 315deg,
      #e09b2d 315deg 360deg
    );
  box-shadow:
    0 28px 80px rgba(0,0,0,.30),
    inset 0 0 0 16px rgba(255,255,255,.12),
    inset 0 0 0 28px rgba(255,255,255,.05);
  border: 10px solid rgba(245,214,123,.45);
  transition: transform 3s cubic-bezier(.12,.75,.14,1);
}

.wheel.spinning {
  animation: idleSpin 1.8s linear infinite;
}

.slice-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  height: 66px;
  margin-left: -23%;
  margin-top: -33px;
  transform-origin: 50% 50%;
  text-align: right;
  padding-right: 8px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.24));
}

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

.l1 { transform: rotate(22.5deg) translateX(128px); }
.l2 { transform: rotate(67.5deg) translateX(128px); }
.l3 { transform: rotate(112.5deg) translateX(128px); }
.l4 { transform: rotate(157.5deg) translateX(128px); }
.l5 { transform: rotate(202.5deg) translateX(128px); }
.l6 { transform: rotate(247.5deg) translateX(128px); }
.l7 { transform: rotate(292.5deg) translateX(128px); }
.l8 { transform: rotate(337.5deg) translateX(128px); }

.wheel-center {
  position: absolute;
  width: 35%;
  height: 35%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  color: #173322;
  font-weight: 950;
  font-size: clamp(20px, 2vw, 28px);
  background: radial-gradient(circle at 35% 30%, #fff7dd, #f5d67b 78%);
  border: 8px solid rgba(245,214,123,.75);
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  z-index: 3;
}

.basket-zone {
  width: min(590px, 100%);
  min-height: 154px;
  border-radius: 32px;
  background: rgba(255,255,255,.08);
  border: 1px dashed rgba(245,214,123,.28);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px;
  box-shadow: inset 0 0 28px rgba(245,214,123,.06);
}

.basket-title {
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.collected-fruit {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(245,214,123,.20);
  display: grid;
  place-items: center;
  font-size: 44px;
  box-shadow: 0 14px 32px rgba(0,0,0,.16);
  animation: popIn .28s ease;
}

.side-panel {
  min-height: 100%;
  padding: 24px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.07));
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat {
  padding: 15px;
  border-radius: 22px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(245,214,123,.16);
  text-align: center;
  color: var(--muted);
  font-weight: 900;
  font-size: 14px;
}

.stat strong {
  display: block;
  margin-top: 5px;
  font-size: 26px;
  color: var(--text);
}

.message {
  min-height: 150px;
  display: grid;
  align-content: center;
  text-align: center;
  line-height: 1.5;
  font-size: 19px;
  color: var(--text);
}

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

.actions {
  display: grid;
  gap: 12px;
}

.btn, button {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 16px 26px;
  font-weight: 950;
  font-size: 18px;
  color: #173322;
  background: linear-gradient(135deg, var(--gold), var(--gold3));
  box-shadow: 0 16px 36px rgba(199,155,60,.26);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: transform .16s ease, opacity .16s ease;
}

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

.btn.secondary, button.secondary {
  background: rgba(255,255,255,.10);
  color: var(--text);
  border: 1px solid rgba(245,214,123,.16);
}

button:disabled {
  cursor: not-allowed;
  opacity: .56;
  transform: none;
}

.claim-offer {
  padding: 20px 30px;
  font-size: 24px;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff1a8, #f5d67b 36%, #ffb84a 100%);
  box-shadow: 0 22px 52px rgba(245,214,123,.28);
  border: 1px solid rgba(255,255,255,.18);
}

.fruit-fly {
  position: fixed;
  z-index: 20;
  font-size: 64px;
  pointer-events: none;
  animation: flyToBasket .8s ease forwards;
}

.text-brand {
  position: relative;
  z-index: 3;
  width: min(1160px, calc(100% - 32px));
  margin: 2px auto 0;
  text-align: center;
  color: var(--gold);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
  letter-spacing: .4px;
  text-shadow: 0 12px 28px rgba(0,0,0,.20);
}

.footer {
  position: relative;
  z-index: 3;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 34px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  opacity: .86;
}

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

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

.content-card {
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.07));
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  color: var(--muted);
  line-height: 1.72;
  backdrop-filter: blur(12px);
}

.content-card h1, .content-card h2 { color: var(--text); }
.content-card h1 { margin-top: 0; font-size: clamp(32px, 4vw, 48px); }
.content-card a { color: var(--gold); font-weight: 900; }

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

@keyframes popIn {
  from { transform: scale(.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes flyToBasket {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(.4) rotate(22deg); opacity: 0; }
}

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

@media (max-width: 680px) {
  .wheel-wrap { width: min(400px, 100%); }
  .slice-label { display: none; }
  .collected-fruit {
    width: 62px;
    height: 62px;
    font-size: 38px;
  }
}