:root {
  --bg-a: #0b1f2a;
  --bg-b: #112f25;
  --card: rgba(255, 255, 255, 0.14);
  --card-strong: rgba(255, 255, 255, 0.22);
  --line: rgba(255, 255, 255, 0.28);
  --txt: #f8fffd;
  --muted: #c7e3d8;
  --mint: #6be5c8;
  --gold: #ffd36e;
  --coral: #ff8b71;
  /* Premium Gold + Trust Green palette */
  --gold-bright: #ffd86b;
  --gold-deep: #d4a017;
  --green-trust: #18b66a;
  --green-deep: #0f8a4d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Space Grotesk", sans-serif;
  color: var(--txt);
  background: radial-gradient(circle at 20% 20%, #1f4d52 0%, var(--bg-a) 40%),
    linear-gradient(130deg, var(--bg-a), var(--bg-b));
}

body {
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 211, 110, 0.3), transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 100ms ease;
}

body.pot-flash::before {
  animation: screen-flash 2500ms ease-out;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.orb-a {
  width: 28rem;
  height: 28rem;
  background: rgba(107, 229, 200, 0.35);
  top: -7rem;
  right: -5rem;
  animation: drift 16s ease-in-out infinite alternate;
}

.orb-b {
  width: 22rem;
  height: 22rem;
  background: rgba(255, 139, 113, 0.3);
  bottom: -6rem;
  left: -4rem;
  animation: drift 20s ease-in-out infinite alternate-reverse;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
  z-index: 0;
  pointer-events: none;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1100px, 94vw);
  margin: 2rem auto 3rem;
  display: grid;
  gap: 1.2rem;
}

.glass {
  background: linear-gradient(160deg, var(--card-strong), var(--card));
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(135%);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.panel {
  border-radius: 1.15rem;
  padding: 1.15rem;
}

.header-panel {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}

h1,
h2 {
  margin: 0.15rem 0 0;
  font-family: "Syne", sans-serif;
}

h1 {
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
}

/* Premium gold/green gradient title */
.rainbow-title {
  background: linear-gradient(120deg, var(--gold-bright), #ffe9a8, var(--green-trust), var(--gold-deep));
  background-size: 220% 220%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gold-green-shift 6s ease infinite;
  font-weight: 800;
  text-shadow: none;
}

@keyframes gold-green-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.time-block {
  text-align: right;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.time-item {
  display: flex;
  flex-direction: column;
}

.time-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.time-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
}

.countdown-value {
  color: var(--mint);
  font-family: "Syne", sans-serif;
}

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

.secondary-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric {
  display: grid;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
}

/* Hero jackpot card */
.hero-pot {
  text-align: center;
  gap: 0.8rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(255, 216, 107, 0.4);
  background: linear-gradient(160deg, rgba(255, 216, 107, 0.14), rgba(24, 182, 106, 0.1)),
    linear-gradient(160deg, var(--card-strong), var(--card));
}

.hero-pot .metric-label {
  font-size: 0.85rem;
}

.hero-pot-value {
  font-size: clamp(2.4rem, 6vw, 4rem) !important;
  letter-spacing: -0.01em;
}

.hero-pot .metric-bar {
  max-width: 480px;
  margin: 0 auto;
}

.hero-pot-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* How it works */
.how-title {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.how-step-num {
  flex: 0 0 auto;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  color: #0b2a18;
  background: linear-gradient(135deg, var(--gold-bright), var(--green-trust));
}

.how-step-head {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}

.how-step-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(24, 182, 106, 0.3);
  background: rgba(24, 182, 106, 0.08);
}

.trust-item {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.metric.pot-shake {
  animation: shake 1800ms ease;
}

.pot-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
}

.pot-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border: 3px solid var(--gold);
  border-radius: 1.15rem;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.pot-ring.active {
  animation: ring-expand 3s ease-out forwards;
}

.metric-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  line-height: 1;
  position: relative;
  transition: transform 200ms ease;
}

/* Always-on premium gold glow for pot value */
#pot-value {
  color: var(--gold-bright);
  animation: pot-idle-glow 3.2s ease-in-out infinite;
}

.metric-value.pot-pulse {
  animation: pot-explosion 3.6s cubic-bezier(0.17, 0.84, 0.32, 1.22);
  text-shadow:
    0 0 20px rgba(255, 211, 110, 0.8),
    0 0 40px rgba(255, 211, 110, 0.5),
    0 0 60px rgba(255, 211, 110, 0.3);
}

.metric-sub {
  font-size: 1rem;
}

.metric-bar {
  width: 100%;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.metric-fill {
  width: 6%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--gold));
  transition: width 1200ms cubic-bezier(0.17, 0.84, 0.32, 1.22);
  box-shadow: 0 0 20px rgba(107, 229, 200, 0.5);
}

.metric-fill.fill-pulse {
  animation: fill-glow 3s ease-out;
}

.feed-panel {
  min-height: 340px;
}

.feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.pill.state-connecting {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

.pill.state-live {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
  color: #22c55e;
}

.feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.feed-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.8rem;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  animation: rise 420ms ease;
}

.feed-dot {
  width: 0.64rem;
  height: 0.64rem;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 0 7px rgba(107, 229, 200, 0.13);
}

.feed-main {
  font-size: 0.95rem;
}

.feed-meta {
  font-size: 0.74rem;
  color: var(--muted);
}

.feed-pot {
  font-family: "Syne", sans-serif;
  font-size: 0.92rem;
}

.splash-root {
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 9;
  width: min(370px, 92vw);
  display: grid;
  gap: 0.7rem;
}

.splash-card {
  padding: 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  transform-origin: top right;
  animation: pop-in 450ms cubic-bezier(0.17, 0.84, 0.32, 1.22);
}

.splash-title {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.splash-name {
  display: block;
  margin-top: 0.28rem;
  font-family: "Syne", sans-serif;
  font-size: 1.04rem;
}

.splash-ticket {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.84rem;
  color: var(--gold);
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* CTA Button */
.cta-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.95rem 2.2rem;
  font-family: "Syne", sans-serif;
  color: #0b2a18;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep) 55%, var(--green-trust));
  background-size: 180% 180%;
  border: none;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(212, 160, 23, 0.45);
  cursor: pointer;
  z-index: 100;
  animation: cta-sheen 5s ease infinite, pulse-cta 2.4s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-main {
  font-size: 1.25rem;
  font-weight: 700;
}

.cta-sub {
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(11, 42, 24, 0.82);
  letter-spacing: 0.01em;
}

.cta-button:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 44px rgba(24, 182, 106, 0.5);
}

.cta-button:active {
  transform: scale(0.98);
}

@keyframes cta-sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pulse-cta {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s ease;
}

.modal-overlay.hidden {
  display: none;
}

.purchase-step.hidden {
  display: none;
}

.modal-content {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  padding: 2rem;
  width: min(500px, 90vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  animation: slide-up 0.4s cubic-bezier(0.17, 0.84, 0.32, 1.22);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-family: "Syne", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 0.9rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: "Space Grotesk", sans-serif;
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--green-trust);
}

select.form-input {
  cursor: pointer;
  color: #1a1a1a;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #666 50%),
    linear-gradient(135deg, #666 50%, transparent 50%);
  background-position: calc(100% - 18px) 1.15rem, calc(100% - 13px) 1.15rem;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.form-checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--green-trust), var(--green-deep));
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(24, 182, 106, 0.3);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(24, 182, 106, 0.45);
}

.form-submit:active {
  transform: translateY(0);
}

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

/* Fintech-style payment summary */
.pay-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(24, 182, 106, 0.12), rgba(255, 216, 107, 0.16));
  border: 1px solid rgba(24, 182, 106, 0.25);
}

.pay-summary-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4f5b56;
}

.pay-summary-amount {
  font-family: "Syne", sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #0f3d2a;
  line-height: 1.1;
}

.pay-summary-meta {
  font-size: 0.85rem;
  color: #5a6b63;
}

.payment-info {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.payment-info-title {
  font-family: "Syne", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.payment-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.payment-detail:last-child {
  border-bottom: none;
}

.payment-detail-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #666;
}

.payment-detail-value {
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.payment-detail-copy {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.copy-btn {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-deep);
  background: rgba(24, 182, 106, 0.12);
  border: 1px solid rgba(24, 182, 106, 0.4);
  border-radius: 0.5rem;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.copy-btn:hover {
  background: rgba(24, 182, 106, 0.2);
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-btn.copied {
  background: var(--green-trust);
  color: #fff;
  border-color: var(--green-trust);
}

.modal-trust-strip {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.modal-trust-strip .trust-item {
  color: #4f5b56;
  font-size: 0.8rem;
}

.pay-note {
  font-size: 0.82rem;
  color: #5a6b63;
  text-align: center;
  margin: 0 0 0.9rem 0;
  line-height: 1.4;
}

.confirm-pay-btn {
  background: linear-gradient(135deg, var(--gold-deep), var(--green-trust));
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.35);
}

.confirm-pay-btn:hover {
  box-shadow: 0 8px 26px rgba(24, 182, 106, 0.45);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes drift {
  from {
    transform: translateY(-10px) translateX(-12px);
  }
  to {
    transform: translateY(12px) translateX(12px);
  }
}

/* Calm premium gold glow with subtle green accent */
@keyframes pot-idle-glow {
  0%, 100% {
    transform: scale(1);
    color: var(--gold-bright);
    text-shadow:
      0 0 14px rgba(255, 216, 107, 0.55),
      0 0 28px rgba(255, 216, 107, 0.35);
  }
  50% {
    transform: scale(1.035);
    color: #ffe9a8;
    text-shadow:
      0 0 20px rgba(24, 182, 106, 0.45),
      0 0 40px rgba(255, 216, 107, 0.45);
  }
}

@keyframes pot-explosion {
  0% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.25) rotate(-2deg);
  }
  30% {
    transform: scale(0.95) rotate(1deg);
  }
  45% {
    transform: scale(1.15) rotate(-1deg);
  }
  60% {
    transform: scale(0.98) rotate(0.5deg);
  }
  75% {
    transform: scale(1.05) rotate(-0.3deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-4px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(4px);
  }
}

@keyframes ring-expand {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.8);
  }
}

@keyframes particle-burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0);
  }
}

@keyframes screen-flash {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fill-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(107, 229, 200, 0.5);
  }
  50% {
    box-shadow:
      0 0 40px rgba(107, 229, 200, 0.9),
      0 0 60px rgba(255, 211, 110, 0.6),
      0 0 80px rgba(255, 211, 110, 0.3);
  }
}

/* Claim Wins Button - Mobile (hidden by default on desktop) */
.claim-wins-button-mobile {
  display: none;
}

/* Mobile Responsive Styles */
@media (max-width: 920px) {
  .metrics {
    grid-template-columns: 1fr;
  }

  .header-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .time-block {
    text-align: left;
    width: 100%;
    justify-content: space-between;
  }

  .time-item:first-child {
    text-align: left;
  }

  .time-item:last-child {
    text-align: right;
  }
}

@media (max-width: 768px) {
  /* Hide desktop claim wins button, show mobile version */
  .claim-wins-button {
    display: none;
  }

  .claim-wins-button-mobile {
    display: block;
    width: 100%;
    margin: 1rem 0;
    padding: 0.9rem 1.5rem;
    font-family: "Syne", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--green-trust), var(--green-deep));
    background-size: 200% 200%;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(24, 182, 106, 0.3);
    cursor: pointer;
    animation: claim-shift 3s ease infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .claim-wins-button-mobile:active {
    transform: scale(0.98);
  }

  /* Adjust shell padding for mobile */
  .shell {
    width: 96vw;
    margin: 1rem auto 2rem;
    gap: 1rem;
  }

  /* Reduce panel padding */
  .panel {
    padding: 1rem;
    border-radius: 1rem;
  }

  /* Smaller headings */
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  /* Stack metrics vertically */
  .metrics {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  /* Adjust metric values */
  .metric-value {
    font-size: 1.6rem;
  }

  /* Stack secondary metrics and how-it-works steps */
  .secondary-metrics {
    grid-template-columns: 1fr;
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    gap: 0.5rem 1rem;
    padding: 0.75rem;
  }

  /* CTA microcopy sizing */
  .cta-main {
    font-size: 1.05rem;
  }

  .cta-sub {
    font-size: 0.68rem;
  }

  /* Fintech payment summary on mobile */
  .pay-summary-amount {
    font-size: 2rem;
  }

  .modal-trust-strip {
    gap: 0.9rem;
  }

  /* Smaller feed items */
  .feed-item {
    padding: 0.6rem;
    gap: 0.5rem;
  }

  .feed-main {
    font-size: 0.85rem;
  }

  .feed-meta {
    font-size: 0.7rem;
  }

  .feed-pot {
    font-size: 0.85rem;
  }

  /* Adjust CTA button for mobile */
  .cta-button {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    width: calc(100% - 2rem);
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    text-align: center;
  }

  /* Adjust splash notifications */
  .splash-root {
    right: 0.5rem;
    top: 0.5rem;
    width: calc(100vw - 1rem);
  }

  .splash-card {
    padding: 0.8rem;
  }

  .splash-name {
    font-size: 0.95rem;
  }

  .splash-ticket {
    font-size: 0.78rem;
  }

  /* Modal adjustments */
  .modal-content {
    width: 95vw;
    padding: 1.5rem;
    border-radius: 1.25rem;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .form-input {
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  .form-submit {
    padding: 0.9rem;
    font-size: 1rem;
  }

  .payment-info {
    padding: 1rem;
  }

  .payment-info-title {
    font-size: 1.1rem;
  }

  .payment-detail {
    padding: 0.7rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .payment-detail-value {
    font-size: 1rem;
  }

  /* Reduce background orb sizes */
  .orb-a {
    width: 18rem;
    height: 18rem;
  }

  .orb-b {
    width: 14rem;
    height: 14rem;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .shell {
    width: 98vw;
    margin: 0.5rem auto 1.5rem;
  }

  h1 {
    font-size: 1.3rem;
  }

  .metric-value {
    font-size: 1.4rem;
  }

  .cta-button {
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
  }

  .modal-content {
    padding: 1.25rem;
  }

  .modal-title {
    font-size: 1.2rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .payment-detail-label,
  .payment-detail-value {
    font-size: 0.9rem;
  }

  .pay-summary-amount {
    font-size: 1.8rem;
  }

  .how-step-head {
    font-size: 0.9rem;
  }

  .trust-strip {
    gap: 0.4rem 0.8rem;
  }

  .trust-item {
    font-size: 0.76rem;
  }
}

/* Claim Wins Button - Desktop */
.claim-wins-button {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  padding: 1.2rem 2.5rem;
  font-family: "Syne", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--green-trust), var(--green-deep));
  background-size: 200% 200%;
  border: none;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(24, 182, 106, 0.4);
  cursor: pointer;
  z-index: 100;
  animation: claim-shift 3s ease infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.claim-wins-button:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 48px rgba(24, 182, 106, 0.6);
}

.claim-wins-button:active {
  transform: scale(0.98);
}



@keyframes claim-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Instant Win Check Modal */
.instant-check-modal {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
}

.instant-check-content h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
  color: #0b1f2a;
  margin-top: 1.5rem;
  font-weight: 700;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 211, 110, 0.3);
  border-top-color: #FFD700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Instant Win Celebration Modal */
.instant-win-modal {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #FFD700, #FFA500, #FF6B6B);
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
  position: relative;
  overflow: hidden;
  max-width: 600px;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.instant-win-content {
  position: relative;
  z-index: 2;
}

.instant-win-title {
  font-family: "Syne", sans-serif;
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin: 0 0 0.5rem 0;
  font-weight: 800;
}

.instant-win-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 1.5rem 0;
  font-weight: 500;
}

.instant-win-amount {
  font-family: "Syne", sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  margin: 1.5rem 0;
  animation: prize-pulse 1s ease-in-out infinite;
}

@keyframes prize-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.coins-container {
  height: 100px;
  position: relative;
  margin: 1rem 0;
}

.instant-win-divider {
  width: 80%;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  margin: 2rem auto;
}

.instant-win-jackpot {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 2rem 0;
  line-height: 1.6;
  font-weight: 500;
}

.instant-win-jackpot span {
  font-weight: 700;
  font-size: 1.3rem;
}

.instant-win-button {
  padding: 1rem 2.5rem;
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFD700;
  background: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.instant-win-button:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.instant-win-button:active {
  transform: scale(0.98);
}

/* Receipt Modal */
.receipt-modal {
  max-width: 600px;
}

.receipt-content {
  padding: 1.5rem 0;
}

.receipt-section {
  margin-bottom: 2rem;
}

.receipt-section h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
  color: #2b5c50; /* 60% darker than --mint */
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--line);
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.receipt-label {
  font-weight: 600;
  color: #4f5b56; /* 60% darker than --muted */
}

.receipt-value {
  font-weight: 700;
  color: #636765; /* 60% darker than --txt */
  text-align: right;
  word-break: break-all;
}

.receipt-tickets {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ticket-number {
  padding: 0.75rem 1rem;
  background: rgba(107, 229, 200, 0.1);
  border-left: 3px solid #2b5c50; /* 60% darker than --mint */
  border-radius: 4px;
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
  color: #636765; /* 60% darker than --txt */
}

.receipt-footer {
  text-align: center;
  color: #66541f; /* 60% darker than --gold */
  font-weight: 600;
  margin: 1.5rem 0 0 0;
  padding: 1rem;
  background: rgba(255, 211, 110, 0.1);
  border-radius: 8px;
}

.receipt-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.receipt-actions button {
  flex: 1;
}

.form-submit.secondary {
  background: rgba(255, 255, 255, 0.1);
}

.form-submit.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Claim Wins Modal */
.claim-step {
  min-height: 200px;
}

.claim-instruction {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.claim-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}

.claim-message.error {
  background: rgba(255, 107, 107, 0.2);
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: #ff6b6b;
}

.claim-message.success {
  background: rgba(74, 222, 128, 0.2);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

.winnings-summary {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(96, 165, 250, 0.2));
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  text-align: center;
  border: 2px solid rgba(74, 222, 128, 0.3);
}

.winnings-summary h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  color: var(--mint);
}

.winnings-summary p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: var(--txt);
}

.winnings-amount {
  font-size: 1.2rem !important;
  margin-top: 1rem !important;
}

.winnings-amount strong {
  color: var(--gold);
  font-size: 1.5rem;
}

/* Print Styles */
/* Mobile responsive styles for instant win modals */
@media (max-width: 768px) {
  .instant-check-modal {
    padding: 2rem 1.5rem;
  }

  .instant-check-content h2 {
    font-size: 1.2rem;
  }

  .spinner {
    width: 50px;
    height: 50px;
  }

  .instant-win-modal {
    padding: 2rem 1.5rem;
    max-width: 95vw;
  }

  .instant-win-title {
    font-size: 2rem;
  }

  .instant-win-subtitle {
    font-size: 1rem;
  }

  .instant-win-amount {
    font-size: 2.5rem;
  }

  .instant-win-jackpot {
    font-size: 1rem;
  }

  .instant-win-jackpot span {
    font-size: 1.1rem;
  }

  .instant-win-button {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
  }

  .coins-container {
    height: 80px;
  }
}

@media (max-width: 480px) {
  .instant-win-title {
    font-size: 1.75rem;
  }

  .instant-win-amount {
    font-size: 2rem;
  }

  .instant-win-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  .receipt-modal,
  .receipt-modal * {
    visibility: visible;
  }

  .receipt-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: white;
    color: black;
  }

  .modal-close,
  .receipt-actions {
    display: none !important;
  }

  .receipt-content {
    color: black;
  }

  .receipt-label,
  .receipt-value,
  .ticket-number {
    color: black;
  }
}

/* ============================================
   Sunday Mega Draw Sequence
   ============================================ */
.draw-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(20, 60, 45, 0.96), rgba(7, 18, 24, 0.99));
  animation: fade-in 0.4s ease;
}

.draw-overlay.hidden {
  display: none;
}

.draw-phase {
  width: min(900px, 94vw);
  text-align: center;
  padding: 1.5rem;
}

.draw-phase.hidden {
  display: none;
}

/* Phase 1 — Lockdown / closing vault gates */
.draw-lockdown {
  position: relative;
  z-index: 2;
}

.vault-gate {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 52%;
  z-index: 1;
  background: linear-gradient(135deg, var(--gold-deep), #8a6a12 45%, var(--green-deep));
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.5);
  border-image: repeating-linear-gradient(180deg, rgba(255, 216, 107, 0.5) 0 6px, transparent 6px 24px) 1;
}

.vault-gate-left {
  left: 0;
  border-right: 4px solid var(--gold-bright);
  animation: gate-close-left 2.2s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.vault-gate-right {
  right: 0;
  border-left: 4px solid var(--gold-bright);
  animation: gate-close-right 2.2s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes gate-close-left {
  from { transform: translateX(-101%); }
  to { transform: translateX(0); }
}

@keyframes gate-close-right {
  from { transform: translateX(101%); }
  to { transform: translateX(0); }
}

.lockdown-content {
  position: relative;
  z-index: 3;
  animation: slide-up 0.6s ease 1.4s both;
}

.lockdown-badge {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: #0b2a18;
  background: var(--gold-bright);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.lockdown-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 6vw, 3.6rem);
  margin: 1rem 0 0.4rem;
  background: linear-gradient(120deg, var(--gold-bright), #fff, var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lockdown-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Phase 2 — Lottery drum / swirling tickets */
.shuffle-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--gold-bright);
  margin-bottom: 1.5rem;
}

.lottery-drum {
  position: relative;
  width: min(340px, 80vw);
  height: min(340px, 80vw);
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(255, 216, 107, 0.25), 0 24px 60px rgba(0, 0, 0, 0.5),
    inset 0 0 60px rgba(0, 0, 0, 0.6);
  background: radial-gradient(circle at 50% 40%, rgba(24, 182, 106, 0.18), rgba(7, 18, 24, 0.9));
}

.drum-rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px dashed rgba(255, 216, 107, 0.45);
  animation: drum-spin 3.5s linear infinite;
  pointer-events: none;
  z-index: 3;
}

.drum-glow {
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 216, 107, 0.35), transparent 45%);
  animation: drum-spin 2.4s linear infinite;
  z-index: 1;
}

.drum-tickets {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  z-index: 2;
  filter: blur(0.6px);
  animation: reel-spin 0.9s linear infinite;
}

.drum-chip {
  flex: none;
  padding: 0.5rem 0.8rem;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0b2a18;
  background: linear-gradient(135deg, var(--gold-bright), #ffe9a8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes drum-spin {
  to { transform: rotate(360deg); }
}

@keyframes reel-spin {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.shuffle-sub {
  color: var(--muted);
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

/* Phase 3 — Winner reveal */
.reveal-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--gold-bright);
  margin-bottom: 1.5rem;
}

.winner-stage {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 70vh;
  overflow-y: auto;
  padding: 0.25rem;
}

.winner-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 216, 107, 0.16), rgba(24, 182, 106, 0.14));
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  transform-origin: center;
  animation: winner-pop 0.7s cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
}

.winner-card.top-winner {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep) 70%, var(--green-trust));
  color: #0b2a18;
  box-shadow: 0 18px 50px rgba(255, 216, 107, 0.45);
}

.winner-rank {
  font-family: "Syne", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  min-width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--gold-bright);
}

.top-winner .winner-rank {
  background: rgba(255, 255, 255, 0.4);
  color: #0b2a18;
}

.winner-info {
  flex: 1;
  text-align: left;
  min-width: 0;
}

.winner-name {
  display: block;
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winner-loc {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
}

.winner-prize {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--green-trust);
  white-space: nowrap;
}

.top-winner .winner-prize {
  color: #0b2a18;
}

@keyframes winner-pop {
  0% { opacity: 0; transform: scale(0.3) translateY(20px); }
  60% { opacity: 1; transform: scale(1.08) translateY(0); }
  100% { opacity: 1; transform: scale(1); }
}

/* Phase 4 — Congratulations summary */
.draw-summary {
  position: relative;
}

.summary-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.summary-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.2rem, 7vw, 4rem);
  margin: 0;
  background: linear-gradient(120deg, var(--gold-bright), #fff, var(--green-trust));
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-green-shift 5s ease infinite;
}

.summary-sub {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0.5rem 0 1.5rem;
}

.summary-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 0.5rem;
  max-width: 780px;
  width: 100%;
  margin: 0 auto 1.5rem;
}

.summary-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  min-width: 0;
}

.summary-top-row > span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.summary-top-row .winner-prize {
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.summary-reset {
  color: var(--gold-bright);
  font-weight: 600;
}

/* CTA disabled / sales closed state */
.cta-button.sales-closed {
  background: linear-gradient(135deg, #555, #333);
  color: #ddd;
  cursor: not-allowed;
  animation: none;
  box-shadow: none;
  pointer-events: none;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .draw-phase {
    padding: 1rem;
  }

  .winner-card {
    gap: 0.7rem;
    padding: 0.8rem 0.9rem;
  }

  .winner-name {
    font-size: 1rem;
  }

  .winner-prize {
    font-size: 1.1rem;
  }

  .winner-rank {
    font-size: 1.25rem;
    min-width: 2rem;
    height: 2rem;
  }

  .winner-stage {
    max-height: 62vh;
  }
}

@media (max-width: 480px) {
  .lottery-drum {
    width: 78vw;
    height: 78vw;
  }

  .winner-loc {
    font-size: 0.78rem;
  }

  .winner-prize {
    font-size: 1rem;
  }

  .summary-top {
    max-width: 92vw;
    grid-template-columns: 1fr;
  }
}

/* Demo: floating Simulate Draw trigger */
.simulate-draw-btn {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1205;
  background: linear-gradient(135deg, #ffd86b, #f5b942);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(24, 182, 106, 0.4);
  cursor: pointer;
  opacity: 0.92;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.simulate-draw-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(24, 182, 106, 0.6);
}

.simulate-draw-btn:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .simulate-draw-btn {
    font-size: 0.78rem;
    padding: 0.5rem 0.85rem;
  }
}

/* ---- Letter picker (Powerball-style picks) ---- */
.picks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.auto-pick-all-btn {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #1a1205;
  border: none;
  border-radius: 10px;
  padding: 6px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.auto-pick-all-btn:hover { filter: brightness(1.05); }
.picks-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}
.pick-row {
  background: rgba(0, 0, 0, 0.035);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
}
.pick-row-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pick-row-label {
  font-size: 0.78rem;
  color: #555;
  font-weight: 600;
  min-width: 58px;
}
.pick-chips {
  display: flex;
  gap: 5px;
  flex: 1;
  flex-wrap: wrap;
}
.pick-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #1a1205;
  font-weight: 700;
  font-size: 0.82rem;
}
.pick-chip.empty {
  background: rgba(0, 0, 0, 0.04);
  color: #999;
  border: 1px dashed rgba(0, 0, 0, 0.25);
}
.pick-row-actions { display: flex; gap: 6px; }
.pick-mini-btn {
  background: #fff;
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}
.pick-mini-btn:hover { background: rgba(0, 0, 0, 0.06); }
.letter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
  gap: 5px;
  margin-top: 10px;
}
.letter-btn {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #fff;
  color: #333;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}
.letter-btn:hover { background: rgba(0, 0, 0, 0.06); }
.letter-btn.selected {
  background: linear-gradient(135deg, var(--mint), var(--green-trust));
  color: #04231a;
  border-color: transparent;
}
.letter-grid-hint {
  font-size: 0.72rem;
  color: #666;
  margin-top: 8px;
  text-align: right;
}

/* ---- Letter Run phase ---- */
.draw-letters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.letters-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--gold-bright);
  margin: 0;
}
.letters-stage {
  display: flex;
  gap: clamp(8px, 2vw, 18px);
  flex-wrap: wrap;
  justify-content: center;
}
.letter-slot {
  width: clamp(54px, 13vw, 96px);
  height: clamp(54px, 13vw, 96px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 6vw, 3.4rem);
}
.letter-slot.revealed {
  color: #1a1205;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 0 32px rgba(255, 216, 107, 0.55);
  animation: letterPop 520ms cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes letterPop {
  0% { transform: scale(0.2) rotate(-12deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.letters-meters {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vw, 18px);
  align-items: center;
}
.letters-meter {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.letters-meter-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.survivor-count {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.4rem);
  color: var(--mint);
  /* Stable width + tabular digits so the count-down doesn't jiggle the layout. */
  display: inline-block;
  min-width: 6ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.letters-pot-value {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.4rem);
  color: var(--gold-bright);
}
.letters-sub {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

/* ---- Final 10 balls phase ---- */
.draw-balls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.balls-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--gold-bright);
  margin: 0;
}
.balls-subtitle {
  color: var(--mint);
  font-weight: 700;
  font-size: clamp(1rem, 3vw, 1.4rem);
  margin: 0 0 6px;
}
.balls-stage {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 2.5vw, 22px);
  justify-content: center;
  max-width: 880px;
}
.lotto-ball {
  width: clamp(86px, 20vw, 132px);
  height: clamp(86px, 20vw, 132px);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px;
  background: radial-gradient(circle at 32% 28%, #fff7df 0%, var(--gold-bright) 38%, var(--gold-deep) 100%);
  color: #1a1205;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), inset 0 -8px 16px rgba(160, 110, 10, 0.4);
  animation: ballDrop 720ms cubic-bezier(0.18, 1.5, 0.4, 1);
}
@keyframes ballDrop {
  0% { transform: translateY(-120vh) scale(0.6); opacity: 0; }
  70% { opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.ball-num {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  opacity: 0.7;
}
.ball-name {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(0.9rem, 2.6vw, 1.15rem);
  line-height: 1.05;
}
.ball-loc {
  font-size: 0.66rem;
  opacity: 0.75;
}

/* ---- Card raffle (transparent final draw) ---- */
.draw-raffle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.raffle-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--gold-bright);
  margin: 0;
}
.raffle-sub {
  color: var(--muted);
  margin: 4px 0;
  font-size: 0.95rem;
}
.raffle-viewport {
  position: relative;
  width: min(92vw, 760px);
  height: 196px;
  overflow: hidden;
  margin: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.raffle-reel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  will-change: transform;
}
.raffle-lens {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 168px;
  transform: translate(-50%, -50%);
  border: 3px solid var(--gold-bright);
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(255, 216, 107, 0.5), inset 0 0 22px rgba(255, 216, 107, 0.22);
  pointer-events: none;
  z-index: 3;
}
.raffle-card {
  flex: 0 0 132px;
  width: 132px;
  box-sizing: border-box;
  height: 150px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  transition: transform 200ms ease, background 200ms ease;
}
.rc-user {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--txt);
}
.rc-combo {
  display: flex;
  gap: 3px;
}
.rc-letter {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #1a1205;
  font-weight: 700;
  font-size: 0.7rem;
}
.rc-meta {
  font-size: 0.6rem;
  color: var(--muted);
}
.raffle-card.rc-winner {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  border-color: transparent;
  transform: scale(1.07);
  box-shadow: 0 0 26px rgba(255, 216, 107, 0.6);
}
.raffle-card.rc-winner .rc-user { color: #1a1205; }
.raffle-card.rc-winner .rc-meta { color: rgba(26, 18, 5, 0.7); }
.raffle-card.rc-winner .rc-letter { background: #1a1205; color: var(--gold-bright); }
.raffle-picked {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 780px;
  margin-top: 10px;
}
.raffle-won {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), var(--green-trust));
  color: #04231a;
  animation: wonPop 420ms cubic-bezier(0.2, 1.4, 0.4, 1);
}
.rw-name { font-weight: 800; }
.rw-prize { font-weight: 700; }
@keyframes wonPop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.raffle-fair {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: 0.04em;
}

/* ---- Letter run: cycling slots, survivor pulse, final-raffle call ---- */
.letter-slot.cycling {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  background: rgba(255, 216, 107, 0.12);
}
.survivor-count {
  display: inline-block;
}
.survivor-count.pulsing {
  animation: survivorPulse 700ms ease-in-out 3;
}
@keyframes survivorPulse {
  0%, 100% { transform: scale(1); color: var(--mint); }
  50% { transform: scale(1.5); color: var(--gold-bright); }
}
.letters-final-call {
  margin-top: 12px;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: var(--gold-bright);
  letter-spacing: 0.04em;
  text-shadow: 0 0 34px rgba(255, 216, 107, 0.6);
}
.letters-final-call.show {
  animation: finalCallIn 700ms cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes finalCallIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Masked phone on raffle winner pills */
.rw-phone {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(4, 35, 26, 0.72);
}

/* Staged build-up pulses before the final draw */
.letters-pot-value {
  display: inline-block;
}
.letters-pot-value.pulsing {
  animation: potPulse 700ms ease-in-out 3;
}
@keyframes potPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.32); text-shadow: 0 0 32px rgba(255, 216, 107, 0.7); }
}
.letters-final-call.pulsing {
  animation: finalCallPulse 700ms ease-in-out 3;
}
@keyframes finalCallPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.16); text-shadow: 0 0 40px rgba(255, 216, 107, 0.85); }
}
