/* Global layout */
:root {
  --bg: #0b0f1a;
  --panel: #101628;
  --text: #e9f0ff;
  --muted: #9fb0d0;
  --neon-pink: #ff4dd2;
  --neon-cyan: #33ffe0;
  --neon-yellow: #ffe066;
  --accent: #5ad1ff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: radial-gradient(1200px 800px at 70% 20%, #0f1530, var(--bg));
  color: var(--text);
  font-family: 'Noto Sans Hebrew', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
}

.app {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

/* CRT overlay vibe */
.crt-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.04) 0px,
    rgba(255,255,255,0.04) 1px,
    rgba(0,0,0,0.05) 2px,
    rgba(0,0,0,0.05) 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.25;
}

.app__header {
  text-align: center;
  margin-bottom: 20px;
}

.title {
  margin: 0;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(255,77,210,0.35), 0 0 18px rgba(51,255,224,0.25);
}

.subtitle { color: var(--muted); margin-top: 6px; }

/* Choice */
.choice {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px;
  margin: 16px 0 20px;
}

.choice__title { margin: 0 0 10px; font-size: 18px; }
.choice__hint { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.choice__buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.choice__btn {
  flex: 1 1 220px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.14);
  background: #0c1326;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
  text-align: center;
  font-size: 18px; /* 👈 added line */
}

.choice__btn:hover { transform: translateY(-1px); }
.choice__btn:active { transform: translateY(0); }

.choice__btn--active {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 2px rgba(51,255,224,0.25), 0 0 16px rgba(51,255,224,0.18) inset;
}

/* Slot machine */
.slot {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
}

.slot__intro {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}


.slot__display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.reel {
  position: relative;
  display: grid;
  place-items: center;
  height: 80px;
  font-size: 26px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, #0f1831, #0b1122);
  overflow: hidden;
  text-shadow: 0 0 10px rgba(255,224,102,0.25);
}

.reel--spinning::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,224,102,0.07) 0px,
    rgba(255,224,102,0.07) 3px,
    rgba(0,0,0,0) 4px,
    rgba(0,0,0,0) 7px
  );
  animation: scan 0.9s linear infinite;
}

@keyframes scan {
  0% { background-position-y: 0; }
  100% { background-position-y: 14px; }
}

.slot__controls {
  display: flex;
  justify-content: center;
  margin-bottom: 16px; /* 👈 add this line */
}

.spin-btn {
  cursor: pointer;
  padding: 14px 22px; /* slightly bigger */
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: linear-gradient(180deg, rgba(255,77,210,0.12), rgba(51,255,224,0.1));
  color: var(--text);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .3px;
  box-shadow: 0 0 0 2px rgba(255,77,210,0.15), 0 0 22px rgba(51,255,224,0.15);
}

.spin-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.results { margin-top: 14px; display: grid; gap: 10px; }

.result-card {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.result-card__heading { margin: 0 0 6px; font-weight: 700; }
.result-card__row { display: flex; gap: 10px; align-items: baseline; }
.result-card__label { color: var(--muted); }
.result-card__value { font-weight: 700; }

/* Chart */
.chart {
  margin-top: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px;
}

.chart__title { margin: 0 0 10px; font-size: 18px; }
.chart__note { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.footer { color: var(--muted); text-align: center; margin-top: 18px; font-size: 13px; }

/* Explicit canvas sizing to avoid oversized charts */
#comparisonChart {
  display: block;
  width: 100% !important;
  height: 320px !important; /* reasonable default height */
  max-height: 60vh;         /* cap on very tall screens */
}

/* Restart button */
.restart-btn {
  display: block;
  margin: 20px auto 0;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(255,77,210,0.15), rgba(51,255,224,0.12));
  border: 2px solid rgba(255,77,210,0.3);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 20px rgba(51,255,224,0.2);
}

.restart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(51,255,224,0.3);
}

/* Staged reveal helpers */
.stage {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease, max-height .45s ease;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.stage--visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 2000px; /* large enough to show content */
  pointer-events: auto;
}

