/* সমিতি লটারি বোর্ড */
:root {
  --bg: #101612;
  --surface: #1a2820;
  --fg: #f4efe4;
  --muted: #a8b5ab;
  --primary: #e0b15a;
  --primary-fg: #1c1408;
  --paid: #3aaa74;
  --alert: #e07a64;
  --border: #2d4036;
  --font-sans: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  --font-display: "Fraunces", "Hind Siliguri", ui-serif, serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}

p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button:not(:disabled), [role="button"]:not(:disabled), summary { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- লেআউট ---------- */
.container {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.narrow { max-width: 28rem; }
.center-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}
.center-page.column {
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  text-align: center;
}
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.row-start { align-items: flex-start; }
.row-end { align-items: flex-end; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.grid-2 { display: grid; gap: 16px; }
.grid-2-tight { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid-3 { display: grid; gap: 8px; }
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .span-3 { grid-column: span 3; }
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }

/* ---------- লেখা ---------- */
.xs { font-size: 12px; line-height: 16px; }
.small { font-size: 14px; line-height: 20px; }
.lg { font-size: 18px; line-height: 28px; }
.xl { font-size: 20px; line-height: 28px; }
.h-xl { font-size: 20px; line-height: 28px; }
.h-2xl { font-size: 24px; line-height: 32px; }
.h-3xl { font-size: 30px; line-height: 36px; font-family: var(--font-display); }
.strong { font-weight: 600; }
.muted { color: var(--muted); }
.primary-text { color: var(--primary); }
.tone-paid { color: var(--paid); }
.tone-alert { color: var(--alert); }
.tone-fg { color: var(--fg); }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pre-line { white-space: pre-line; overflow-wrap: anywhere; }
.muted-link { text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.notice { font-size: 14px; color: var(--alert); }

/* ---------- কার্ড, বাটন, ইনপুট ---------- */
.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 16px;
}
.card.highlight { border-color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: 0.5; }
.btn-ghost {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
}
.btn-alert { background: var(--alert); color: var(--fg); }
.btn-sm { height: 40px; padding: 0 12px; }
.btn-block { width: 100%; }

.link-button {
  border: 0;
  background: none;
  padding: 4px 0;
  font-size: 14px;
  color: var(--muted);
  text-underline-offset: 4px;
}
.link-button:hover { text-decoration: underline; }

.icon { width: 20px; height: 20px; }
.icon-xs { width: 12px; height: 12px; }
.icon-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
}
.icon-btn .when-muted { display: none; }
.icon-btn.is-muted .when-muted { display: grid; }
.icon-btn.is-muted .when-sound { display: none; }
.icon-btn span { display: grid; place-items: center; }

.field { display: block; }
.field-label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--muted);
}
.input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  outline: none;
  font-size: 16px;
}
.input::placeholder { color: var(--muted); opacity: 0.8; }
.input:focus { border-color: var(--primary); }
textarea.input { height: auto; min-height: 96px; padding: 8px 12px; resize: vertical; }
select.input { appearance: auto; }
.file-input { font-size: 14px; color: var(--muted); max-width: 100%; }
.file-label { position: relative; overflow: hidden; align-self: flex-start; }
.file-label input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-input::file-selector-button {
  margin-right: 12px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}

.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form .input { flex: 1; min-width: 0; }

.flash {
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.flash-ok { color: var(--paid); border-color: color-mix(in oklab, var(--paid) 45%, var(--border)); }
.flash-error { color: var(--alert); border-color: color-mix(in oklab, var(--alert) 45%, var(--border)); }
.page > .flash { margin-bottom: 16px; }
.flash-wrap { padding-top: 16px; }

.list { display: flex; flex-direction: column; gap: 8px; }
.list-row { min-height: 44px; }
.list-item { padding-top: 12px; border-top: 1px solid var(--border); }
.list-item:first-child { border-top: 0; padding-top: 0; }

.disclosure > summary {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.inline-details > summary { list-style: none; }
.inline-details > summary::-webkit-details-marker { display: none; }
.inline-details[open] { flex-basis: 100%; }

.bubble {
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  background: var(--bg);
}
.bubble-other { background: color-mix(in oklab, var(--primary) 15%, transparent); }
.bubble-author { display: block; color: var(--muted); font-size: 12px; }

/* ---------- শেল ---------- */
.app { min-height: 100dvh; padding-bottom: 128px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 95%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.topbar-title { font-size: 18px; line-height: 28px; }
.userbox { display: flex; align-items: center; gap: 8px; min-width: 0; }
.userbox-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  object-fit: cover;
}
.userbox-name { display: none; font-size: 14px; font-weight: 500; }
@media (min-width: 640px) { .userbox-name { display: inline; } }

.page { padding-top: 20px; padding-bottom: 20px; }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-list { display: flex; padding-left: 0; padding-right: 0; }
.tabbar-list li { flex: 1; }
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 64px;
  font-size: 12px;
  color: var(--muted);
}
.tab.is-active { color: var(--primary); }

/* ---------- প্রোফাইল ---------- */
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 24px;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--primary);
}
span.profile-avatar { box-shadow: 0 0 0 4px var(--border); }

/* ---------- ল্যান্ডিং ---------- */
.landing-page { padding-top: 32px; padding-bottom: 48px; }
.hero {
  margin-top: 40px;
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hero-title { font-size: 36px; line-height: 1.25; }
@media (min-width: 768px) { .hero { grid-template-columns: 1fr 1fr; } }
.steps { margin-top: 40px; display: grid; gap: 12px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-copy { margin-top: 8px; }
.example { margin-top: 24px; }
.example .small { margin-top: 8px; }

/* ---------- বোর্ড বৃত্ত ---------- */
.circle {
  position: relative;
  width: 100%;
  max-width: 36rem;
  aspect-ratio: 1 / 1;
  margin: 8px auto 0;
  --seat: 56px;
  --seat-w: 64px;
}
.circle.dense { --seat: 44px; --seat-w: 56px; }
.circle.very-dense { --seat: 34px; --seat-w: 44px; }
.circle-sample { max-width: 24rem; margin-top: 0; --seat: 48px; --seat-w: 56px; }

.circle-ring {
  position: absolute;
  inset: 14%;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.sample-ring { inset: 16%; }

.seat {
  position: absolute;
  width: var(--seat-w);
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}
.seat-avatar {
  --ring: var(--alert);
  position: relative;
  display: block;
  width: var(--seat);
  height: var(--seat);
  margin: 0 auto;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--ring);
}
.seat-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
}
.seat-initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.very-dense .seat-initials { font-size: 12px; }
.ring-paid { --ring: var(--paid); }
.ring-alert { --ring: var(--alert); }
.ring-primary { --ring: var(--primary); }
.seat-check {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-fg);
}
.seat-name {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.very-dense .seat-name { font-size: 10px; }

.circle-center {
  position: absolute;
  inset: 30%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-align: center;
}
.sample-center { inset: 32%; }
.circle-center .xl { font-family: var(--font-display); }
.circle-center .btn-sm { height: 36px; }
.legend { text-align: center; margin-top: 8px; }

@keyframes gold-pulse {
  50% {
    box-shadow: 0 0 0 4px var(--ring), 0 0 0 11px color-mix(in oklab, var(--primary) 45%, transparent);
  }
}
.seat-hot .seat-avatar {
  --ring: var(--primary);
  animation: gold-pulse 0.45s ease-in-out infinite;
}

.is-drawing .hide-while-drawing { display: none; }

.celebrate-name { font-size: 18px; line-height: 1.2; font-family: var(--font-display); }

@keyframes confetti-fall {
  to { transform: translateY(42vh) rotate(200deg); opacity: 0; }
}
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 20; }
.confetti-bit {
  position: absolute;
  top: 33%;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: confetti-fall 1.1s ease-in forwards;
}

@media (prefers-reduced-motion: reduce) {
  .seat-hot .seat-avatar, .confetti-bit { animation: none; }
  .btn { transition: none; }
}

/* ---------- হোমস্ক্রিন অ্যাপ ---------- */
.block { display: block; }
.center-text { text-align: center; }
.icon-inline { width: 16px; height: 16px; vertical-align: -3px; }
.icon-btn-sm { width: 36px; height: 36px; font-size: 14px; color: var(--muted); }
.install-card { display: flex; flex-direction: column; gap: 12px; border-color: color-mix(in oklab, var(--primary) 55%, var(--border)); }
.install-card[hidden] { display: none; }
.install-head { display: flex; align-items: center; gap: 12px; }
.install-head .min-w-0 { flex: 1; }
.install-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; }
.install-link .install-icon { width: 40px; height: 40px; border-radius: 10px; }
.row-start-flex { display: flex; align-items: center; gap: 12px; }
.install-steps { display: flex; flex-direction: column; gap: 10px; }
.install-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.step-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 13px;
  font-weight: 700;
}
.share-glyph {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--bg);
  color: #5aa9ff;
  vertical-align: middle;
}
.install-note { border-radius: 10px; background: var(--bg); padding: 10px 12px; }
.install-page { padding-top: 24px; padding-bottom: 48px; }
.install-hero { display: flex; gap: 16px; align-items: center; }
.install-hero-icon { flex: none; border-radius: 20px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); }
.installed-note { color: var(--paid); }
.offline-icon { border-radius: 16px; }
@media (display-mode: standalone) {
  .hide-in-app { display: none !important; }
}

/* ---------- খেলা ---------- */
.games-intro { border-style: dashed; }
.games-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .games-grid { grid-template-columns: 1fr 1fr; } }
.game-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.game-card:hover { border-color: var(--primary); }
.game-card:active { transform: scale(0.99); }
.game-emoji {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg);
  font-size: 28px;
}
.game-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.game-card-title { font-size: 17px; }

.leaders { display: flex; flex-direction: column; gap: 4px; }
.leader {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 14px;
}
.leader.is-me { background: color-mix(in oklab, var(--primary) 16%, transparent); }
.leader-rank { text-align: center; }
.leader-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-score { color: var(--primary); font-variant-numeric: tabular-nums; }

.game { position: relative; }
.game-head { align-items: flex-start; }
.game-status {
  min-height: 24px;
  text-align: center;
  font-size: 16px;
}
.score-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.score-row b { color: var(--fg); font-size: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--primary); }
.select-auto { width: auto; max-width: 100%; height: 40px; }
.actions-center { justify-content: center; }

/* চাকা */
.wheel-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}
.wheel-canvas { width: 100%; height: 100%; display: block; border-radius: 999px; cursor: pointer; touch-action: manipulation; }
.wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid var(--fg);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}
.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 26%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 4px solid var(--primary);
  background: var(--bg);
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.wheel-hub:disabled { opacity: 0.85; cursor: wait; }
.wheel-entries { min-height: 150px; line-height: 1.6; }
.wheel-winner { color: var(--primary); font-size: 22px; font-family: var(--font-display); }

/* কাপ */
.cups-stage {
  --swap-ms: 400ms;
  position: relative;
  height: 210px;
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 85%, #23392d 0%, var(--surface) 55%, var(--bg) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cups-table {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  background: linear-gradient(#1f3a2c, #15241b);
  border-top: 1px solid var(--border);
}
.cup-slot {
  position: absolute;
  bottom: 28px;
  z-index: 2;
  width: 27%;
  max-width: 110px;
  aspect-ratio: 100 / 115;
  padding: 0;
  border: 0;
  background: none;
  transform: translate(-50%, 0);
  transition: left var(--swap-ms) ease-in-out, transform calc(var(--swap-ms) / 2) ease-in-out;
}
.cup-slot:disabled { cursor: default; }
.cup-slot.arc-up { transform: translate(-50%, -26px); z-index: 3; }
.cup-slot.arc-down { transform: translate(-50%, 10px) scale(0.96); z-index: 1; }
.cups-stage.is-picking .cup-slot:hover .cup { transform: translateY(-6px); }
.cups-stage.is-picking .cup-slot { cursor: pointer; }
.cup {
  position: absolute;
  inset: 0;
  z-index: 2;
  transition: transform 0.35s cubic-bezier(.3,.7,.3,1);
}
.cup svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.35)); }
.cup-slot.is-lifted .cup { transform: translateY(-62%); }
.cup-slot.is-lifted .coin { visibility: visible; transition-delay: 0s; }
.coin {
  position: absolute;
  left: 50%;
  bottom: 9%;
  visibility: hidden;
  transition: visibility 0s linear 0.35s;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46%;
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #f6dd9e, #e0b15a 55%, #a9772c);
  color: #5c3d10;
  font-weight: 700;
  font-size: 20px;
  box-shadow: inset 0 0 0 3px rgba(92, 61, 16, 0.35);
}

/* সংখ্যা অনুমান */
.guess-range { display: flex; flex-direction: column; gap: 6px; }
.guess-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}
.guess-bar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--paid), var(--primary));
  transition: left 0.35s ease, width 0.35s ease;
}
.guess-input { font-size: 20px; text-align: center; }
.guess-hint { font-size: 20px; font-weight: 600; }
.guess-hint.is-win { color: var(--paid); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 8px; }
.chip {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 14px;
}
.chip-win { border-color: var(--paid); color: var(--paid); }

/* টস ও ছক্কা */
.coin-stage { perspective: 800px; display: grid; place-items: center; height: 180px; padding-top: 20px; }
.coin-stage.is-tossing { animation: toss-up 1.5s ease-in-out; }
@keyframes toss-up {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-40px); }
}
.coin3d {
  position: relative;
  width: 120px;
  height: 120px;
  transform-style: preserve-3d;
  transition: transform 1.5s cubic-bezier(.2,.7,.2,1);
}
.coin-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  font-size: 24px;
  font-weight: 700;
  color: #5c3d10;
  background: radial-gradient(circle at 35% 30%, #f6dd9e, #e0b15a 55%, #a9772c);
  box-shadow: inset 0 0 0 6px rgba(92, 61, 16, 0.3), 0 8px 18px rgba(0, 0, 0, 0.35);
}
.coin-back {
  transform: rotateY(180deg);
  color: #0d1a12;
  background: radial-gradient(circle at 35% 30%, #c9ecd9, #3aaa74 55%, #1f6e48);
  box-shadow: inset 0 0 0 6px rgba(13, 26, 18, 0.3), 0 8px 18px rgba(0, 0, 0, 0.35);
}
.dice-row { display: flex; justify-content: center; gap: 18px; min-height: 96px; align-items: center; }
.die {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  width: 84px;
  height: 84px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fbf7ee, #e5dccb);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), inset 0 -4px 0 rgba(0, 0, 0, 0.08);
}
.pip { border-radius: 999px; background: #1c1408; }
.pip-off { background: transparent; }
.die.is-rolling { animation: die-shake 0.18s linear infinite; }
@keyframes die-shake {
  0% { transform: rotate(-12deg) translateY(-4px); }
  50% { transform: rotate(10deg) translateY(2px); }
  100% { transform: rotate(-12deg) translateY(-4px); }
}
.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.segmented button {
  height: 44px;
  padding: 0 16px;
  border: 0;
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.segmented button.is-on { background: var(--surface); color: var(--primary); }
.history { display: flex; flex-direction: column; gap: 4px; }
.history li { padding: 4px 0; border-bottom: 1px dashed var(--border); }
.history li:last-child { border-bottom: 0; }

/* আজকের কার্ড */
.scratch-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  min-height: 230px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 0%, #23392d, var(--surface) 70%);
}
.scratch-under {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 230px;
  padding: 24px 20px;
  text-align: center;
}
.scratch-emoji { font-size: 40px; line-height: 1; }
.scratch-text { font-size: 18px; line-height: 1.55; font-weight: 500; }
.scratch-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  transition: opacity 0.5s ease;
}
.scratch-cover.is-gone { opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .cup-slot, .cup, .coin3d, .guess-bar-fill { transition: none; }
  .coin-stage.is-tossing, .die.is-rolling { animation: none; }
}
.guess-card { position: relative; overflow: hidden; }
