:root {
  --green: #123f39;
  --green-deep: #072e2a;
  --ivory: #fbf7f1;
  --card: #fffdf9;
  --gold: #b8893e;
  --gold-soft: #f3e6c8;
  --ink: #1c1915;
  --muted: #6d6458;
  --line: #eadfce;
  --danger: #9c2b2b;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(232, 201, 138, 0.22), transparent 55%),
    var(--green-deep);
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
}

body.bn {
  font-family: "Noto Sans Bengali", "Nirmala UI", "Segoe UI", sans-serif;
}

button, input { font: inherit; }

.sheet {
  width: min(440px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 180px),
    var(--ivory);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 6px;
}

.logo {
  height: 64px;
  width: auto;
  display: block;
}

.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.lang button.on {
  background: var(--green);
  color: #f6ecd8;
}

.hero {
  padding: 4px 20px 8px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

body.bn .eyebrow {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 13px;
}

.hero h1 {
  margin: 6px 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 54px;
  font-weight: 600;
  line-height: 0.9;
  color: var(--green);
}

body.bn .hero h1 {
  font-family: "Noto Sans Bengali", "Nirmala UI", sans-serif;
  font-size: 36px;
  line-height: 1.25;
  font-weight: 700;
}

.hero-sub {
  margin: 0 auto;
  max-width: 34em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.stage-wrap {
  position: relative;
  width: min(360px, calc(100% - 28px));
  margin: 16px auto 8px;
}

.wheel-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.wheel-rotor {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  will-change: transform;
}

.wheel-face {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 11px #f0d7a4,
    inset 0 0 0 15px #8d6840,
    0 16px 34px rgba(7, 30, 27, 0.28);
}

.slice {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  text-align: center;
}

.slice-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.slice img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
}

.slice span {
  display: block;
  max-width: 72px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  color: #f7f1e4;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.slice.light span {
  color: var(--green);
  text-shadow: none;
}

.pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  z-index: 3;
  width: 26px;
  height: 34px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fff4d8, #c4964a);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
}

.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #f8f1e2;
  background:
    radial-gradient(circle at 35% 30%, #2a6b62, var(--green) 58%);
  box-shadow:
    0 0 0 6px #f6edd9,
    0 0 0 8px #b8893e,
    0 8px 16px rgba(0, 0, 0, 0.2);
}

.hub span {
  display: block;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.hub small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.hub:disabled { cursor: default; }

.chance {
  margin: 0;
  text-align: center;
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 16px 6px;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 8px 12px;
  text-align: center;
}

.step b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: #6d4e1e;
  font-size: 12px;
}

.step p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
}

.pool {
  padding: 8px 16px 28px;
}

.pool h2 {
  margin: 10px 0 12px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.prize {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 10px 12px;
  text-align: center;
}

.prize.won {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(184, 137, 62, 0.35);
}

.prize .thumb {
  height: 108px;
  display: grid;
  place-items: center;
}

.prize img {
  max-width: 100%;
  max-height: 108px;
  object-fit: contain;
}

.prize .name {
  margin: 4px 0 0;
  min-height: 2.6em;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.prize .price {
  margin: 4px 0 0;
  color: var(--green);
  font-weight: 750;
  font-size: 14px;
}

.prize .sku {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--green);
  color: #f6ecd8;
  font-size: 10px;
  font-weight: 700;
}

.foot {
  margin: 0;
  padding: 0 22px 28px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.mask {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(6, 22, 20, 0.62);
}

.mask[hidden] { display: none !important; }

.dialog {
  position: relative;
  width: min(380px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  background: #fffdf9;
  border-radius: 22px;
  padding: 22px 18px 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f3eee6;
  color: var(--ink);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.kicker {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.bn .kicker {
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}

.dialog h2 {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 26px;
  line-height: 1.2;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 650;
}

body.bn .dialog h2 {
  font-family: "Noto Sans Bengali", "Nirmala UI", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.dialog p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.phone-input {
  width: 100%;
  border: 1px solid #e4d6c2;
  background: #fff;
  border-radius: 12px;
  padding: 14px 12px;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.phone-input:focus {
  outline: 2px solid rgba(18, 63, 57, 0.35);
  border-color: var(--green);
}

.dialog-error {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffe4e4;
  border: 1px solid #e10600;
  color: #d40000;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
}

.gold {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  cursor: pointer;
  color: #2a2116;
  font-weight: 750;
  background: linear-gradient(180deg, #f6e3b8, #d7ae62 42%, #b8893e);
  box-shadow: 0 8px 16px rgba(184, 137, 62, 0.28);
}

.gold:disabled { opacity: 0.7; cursor: default; }

.win-photo {
  height: 160px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  background:
    radial-gradient(circle, #fff, #f4ecdf 70%);
  border-radius: 16px;
}

.win-photo img {
  max-width: 86%;
  max-height: 148px;
  object-fit: contain;
}

.win-name {
  margin: 0;
  color: var(--ink) !important;
  font-size: 16px !important;
  font-weight: 750;
  text-align: center;
}

.win-price {
  margin: 2px 0 8px !important;
  color: var(--green) !important;
  font-size: 20px !important;
  font-weight: 750;
  text-align: center;
}

.win-copy { color: var(--ink) !important; }

.fine {
  margin: 8px 0 0 !important;
  font-size: 12px !important;
  text-align: center;
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti i {
  position: absolute;
  top: -8px;
  width: 7px;
  height: 12px;
  border-radius: 2px;
  animation: fall 1.8s ease-in forwards;
}

@keyframes fall {
  to { transform: translateY(110vh) rotate(240deg); opacity: 0.2; }
}
