@font-face { font-family: "Bungee"; src: url("fonts/bungee.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }

:root {
  --ink: #14092e;
  --ink-deep: #0b061c;
  --plum: #3a104f;
  --pink: #ff2c86;
  --pink-soft: #ff80af;
  --yellow: #ffd12b;
  --paper: #fff1d5;
  --blue: #174b70;
  --white: #fff8ed;
  --muted: #a99fb6;
  --line: rgba(255, 248, 237, 0.2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-deep);
  color: var(--white);
  font-family: "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
}

button, a { font: inherit; }
select { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
button { color: inherit; cursor: pointer; }
a { color: inherit; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
}
.skip-link:focus { top: 12px; }

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 78%, rgba(23, 75, 112, 0.62) 0 16rem, transparent 16.1rem),
    radial-gradient(circle at 16% 8%, rgba(255, 44, 134, 0.16) 0 14rem, transparent 14.1rem),
    var(--ink);
}
.app-shell::before,
.app-shell::after {
  position: absolute;
  z-index: 0;
  width: 1rem;
  height: 1rem;
  border: 3px solid var(--yellow);
  border-radius: 50%;
  content: "";
  opacity: 0.8;
}
.app-shell::before { top: 14rem; left: -0.35rem; box-shadow: 6rem 8rem 0 -0.3rem var(--pink), 95vw 3rem 0 -0.2rem var(--yellow); }
.app-shell::after { right: 4rem; bottom: 8rem; box-shadow: -5rem 3rem 0 -0.3rem var(--pink), 3rem 6rem 0 -0.2rem var(--yellow); }

.topbar, .game-layout, .footer { position: relative; z-index: 1; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  font-family: "Bungee", Impact, sans-serif;
  font-size: 1.1rem;
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-align: left;
  text-transform: uppercase;
}
.brand em { color: var(--pink); font-style: normal; }
.brand__flag { display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--yellow); color: var(--yellow); font-size: 0.78rem; transform: rotate(-12deg); }
.topbar__status { display: none; color: var(--muted); font-size: 0.7rem; letter-spacing: 0.04em; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.help-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); text-decoration: none; }
.topbar__navigation { display: flex; align-items: center; gap: 10px; }
.home-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 24px; background: transparent; color: var(--paper); font-size: 0.75rem; font-weight: 800; }
.home-button:hover { color: var(--yellow); border-color: var(--yellow); }
.home-button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.game-layout { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.game-stage { min-width: 0; padding: 28px 0 48px; }
.stage-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 0 0 28px; }
.eyebrow { margin: 0 0 10px; color: var(--yellow); font-size: 0.69rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Bungee", Impact, sans-serif; font-weight: 400; letter-spacing: -0.02em; text-transform: uppercase; }
h1 { max-width: 10ch; margin-bottom: 0; color: var(--yellow); font-size: clamp(3.4rem, 14vw, 5rem); line-height: 0.94; letter-spacing: 0.035em; }
.stage-tagline { margin: 18px 0 0; font-size: 0.8rem; font-weight: 700; }
h1 span, h2 span { color: var(--pink); }
.stage-date { color: var(--white); font-size: 0.78rem; font-weight: 800; line-height: 1.1; text-align: right; }
.stage-date small { color: var(--muted); font-size: 0.63rem; font-weight: 400; }

.machine { position: relative; overflow: hidden; min-height: 500px; padding: 24px 18px 18px; border: 1px solid rgba(255, 248, 237, 0.13); background: rgba(11, 6, 28, 0.35); }
.machine::after { position: absolute; right: -4rem; bottom: -5rem; z-index: 0; width: 13rem; height: 13rem; border-radius: 50%; content: ""; background: var(--blue); opacity: 0.35; }
.machine > * { position: relative; z-index: 1; }
.machine__ornament { position: absolute; top: 0; left: 18px; right: 18px; height: 4px; border-top: 4px dotted var(--yellow); }
.machine__title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.machine h2 { margin-bottom: 0; font-size: 1.45rem; line-height: 0.95; }
.machine__title-row span { color: var(--muted); font-size: 0.66rem; text-align: right; }

.date-picker { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 43px 0 20px; }
.date-divider { color: var(--pink); font-family: Impact, sans-serif; font-size: 2.5rem; }
.date-wheel { display: flex; flex-direction: column; align-items: center; width: 112px; touch-action: pan-x; }
.wheel-arrow { width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--yellow); font-size: 0.62rem; }
.wheel-window { display: flex; flex-direction: column; justify-content: center; width: 100%; height: 128px; overflow: hidden; border-top: 2px solid var(--pink); border-bottom: 2px solid var(--pink); text-align: center; }
.wheel-window span { color: rgba(255, 248, 237, 0.3); font-family: Impact, sans-serif; font-size: 0.9rem; line-height: 1.6; }
.wheel-window select { appearance: none; display: block; width: 100%; padding: 10px 0; border: 0; border-radius: 0; background: var(--pink); color: var(--ink); font-family: "Bungee", Impact, sans-serif; font-size: 1.9rem; line-height: 1.25; letter-spacing: 0.06em; text-align: center; cursor: pointer; }
.wheel-window select:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.wheel-window--interactive { position: relative; touch-action: none; user-select: none; cursor: grab; }
.wheel-window--interactive:active { cursor: grabbing; }
.wheel-window--interactive:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wheel-selection { position: absolute; top: calc(50% - 24px); left: 0; right: 0; height: 48px; background: var(--pink); }
.wheel-window--interactive .wheel-value { position: absolute; top: calc(50% - 24px); left: 0; width: 100%; height: 48px; line-height: 48px; font-family: "Bungee", Impact, sans-serif; font-size: 1.5rem; pointer-events: none; will-change: transform; }
.wheel-window--interactive .wheel-value.is-selected { color: var(--ink); }
.machine__hint { margin: 0 auto 31px; color: var(--muted); font-size: 0.68rem; text-align: center; }
.primary-button, .secondary-button, .text-button { display: block; width: 100%; border-radius: 8px; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; transition: transform 150ms ease, filter 150ms ease; }
.primary-button:hover, .secondary-button:hover, .text-button:hover { filter: brightness(1.12); transform: translateY(-2px); }
.primary-button:focus-visible, .secondary-button:focus-visible, .text-button:focus-visible, .wheel-arrow:focus-visible, .share-icon:focus-visible, .brand:focus-visible, .help-button:focus-visible, a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.primary-button { padding: 14px 16px; border: 0; background: var(--pink); color: var(--ink); font-family: "Bungee", Impact, sans-serif; font-weight: 400; font-size: 0.72rem; }
h2[tabindex="-1"]:focus { outline: none; }
.primary-button span { margin-left: 12px; font-size: 1.1rem; }
.secondary-button { margin-top: 8px; padding: 11px 16px; border: 1px solid var(--yellow); background: transparent; color: var(--yellow); font-size: 0.62rem; }
.text-button { margin-top: 16px; padding: 4px; border: 0; background: transparent; color: var(--muted); font-size: 0.62rem; }
.error-message { margin: 13px 0 0; color: var(--pink-soft); font-size: 0.75rem; text-align: center; }

.machine--draw { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 500px; text-align: center; }
.draw-spotlight { position: absolute; top: 6rem; width: 19rem; height: 19rem; border-radius: 50%; background: var(--plum); opacity: 0.8; }
.machine--draw h2 { position: relative; margin-bottom: 32px; font-size: clamp(1.6rem, 5vw, 2.75rem); line-height: 1.1; }
.draw-reels { display: flex; gap: 8px; }
.draw-reel { width: 66px; height: 150px; overflow: hidden; border: 2px solid var(--yellow); border-radius: 10px; background: var(--ink); }
.reel-strip { animation: reel-spin 450ms linear infinite; }
.draw-reel:nth-child(2) .reel-strip { animation-duration: 340ms; }
.draw-reel:nth-child(3) .reel-strip { animation-duration: 530ms; }
.draw-reel i { display: block; height: 17px; border-bottom: 3px solid var(--ink); background: var(--pink); }
.draw-reel i:nth-child(2n) { background: #6f4e81; }
.draw-reel i:nth-child(3) { background: var(--yellow); }
.draw-caption { margin: 26px 0 18px; color: var(--muted); font-size: 0.68rem; }
.loading-dots { display: flex; gap: 6px; }
.loading-dots i, .progress-dots span { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.loading-dots i:nth-child(2), .progress-dots span:nth-child(2) { background: var(--yellow); }
.loading-dots i:nth-child(3), .progress-dots span:nth-child(3) { background: var(--pink-soft); }
.loading-dots i { animation: blink 650ms ease-in-out infinite alternate; }
.loading-dots i:nth-child(2) { animation-delay: 150ms; }
.loading-dots i:nth-child(3) { animation-delay: 300ms; }
@keyframes reel-spin { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes blink { from { opacity: 0.28; transform: scale(0.8); } to { opacity: 1; transform: scale(1.15); } }

.machine--reveal { min-height: 0; padding-bottom: 24px; }
.reveal-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.machine--double .reveal-heading, .machine--jackpot .reveal-heading { padding: 12px; border-radius: 10px; background: var(--yellow); color: var(--ink); transform: rotate(-2deg); }
.machine--jackpot .reveal-heading { background: var(--pink); }
.machine--double .reveal-heading .eyebrow, .machine--jackpot .reveal-heading .eyebrow, .machine--double .reveal-heading h2 span, .machine--jackpot .reveal-heading h2 span { color: var(--ink); }
.machine--double .share-icon, .machine--jackpot .share-icon { border-color: var(--ink); color: var(--ink); flex-shrink: 0; }
.machine--reveal h2 { margin-bottom: 0; padding-top: 5px; font-size: clamp(1.5rem, 4vw, 2.8rem); line-height: 1.1; }
.share-icon { width: 38px; height: 38px; border: 1px solid var(--yellow); border-radius: 50%; background: transparent; color: var(--yellow); font-size: 1.1rem; }
.result-copy { max-width: 31rem; margin: 18px 0 20px; color: var(--muted); font-size: 0.74rem; line-height: 1.45; }
.story-stack { display: grid; touch-action: pan-y; }
.story-slide { min-width: 0; }
.story-slide[hidden] { display: none; }
.story-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.story-pagination button { min-width: 44px; min-height: 44px; border: 1px solid var(--yellow); border-radius: 50%; background: transparent; color: var(--yellow); }
.story-pagination button[aria-current] { background: var(--yellow); color: var(--ink); }
.story-pagination button:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.story-stack--2, .story-stack--3 { padding-right: 8px; }
.story-card { position: relative; border: 2px solid var(--pink); color: var(--ink); box-shadow: 5px 5px 0 var(--pink); transform: rotate(-1.2deg); }
.story-card:nth-child(2) { margin-left: 7px; transform: rotate(1.6deg); }
.story-card:nth-child(3) { margin-left: 14px; transform: rotate(-0.5deg); }
.story-card--jackpot { border-color: var(--pink-soft); box-shadow: 5px 5px 0 var(--pink-soft); }
.story-stack--2 .story-card { box-shadow: 5px 5px 0 var(--pink), 10px 10px 0 #64214e; }
.story-stack--3 .story-card { box-shadow: 5px 5px 0 var(--pink), 10px 10px 0 var(--pink-soft), 15px 15px 0 #64214e; }
.story-card__tab { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--pink); font-size: 0.55rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.story-card--jackpot .story-card__tab { background: var(--pink-soft); }
.story-card__body { padding: 13px 14px 12px; background: var(--paper); }
.story-card__date { margin-bottom: 7px; color: #6d5d67; font-size: 0.6rem; font-weight: 800; }
.story-card h3 { max-width: 35ch; margin-bottom: 16px; font-family: "Bungee", Impact, sans-serif; font-weight: 400; font-size: clamp(1.1rem, 4vw, 1.6rem); line-height: 1.2; letter-spacing: 0.01em; text-transform: uppercase; }
.story-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid rgba(20, 9, 46, 0.22); font-size: 0.6rem; font-weight: 800; }
.story-card__footer a { padding: 8px 9px; background: var(--pink); text-decoration: none; text-transform: uppercase; }
.reveal-actions { margin-top: 29px; }

.progress-dots { display: flex; justify-content: center; gap: 6px; margin-top: 25px; }
.progress-dots span { width: 6px; height: 6px; opacity: 0.35; }
.progress-dots span.is-active { opacity: 1; transform: scale(1.2); }

.info-rail { display: none; }
.footer { display: flex; justify-content: space-between; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 0 0 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.62rem; }
.footer span { padding-top: 12px; }

@media (max-width: 739px) {
  .app-shell { min-height: 100svh; }
  .topbar { padding: 14px 0 0; }
  .brand { display: none; }
  .topbar { justify-content: flex-end; }
  .help-button { width: 44px; height: 44px; }
  .game-stage { padding: 0 0 18px; }
  .stage-header { justify-content: center; margin: 0 0 22px; text-align: center; }
  .stage-header > div:first-child { width: 100%; }
  .stage-header .eyebrow, .stage-date { display: none; }
  h1 { max-width: none; font-size: clamp(2.5rem, 12vw, 3.7rem); padding: 16px 0; border-block: 4px dotted var(--yellow); line-height: 1.05; }
  .game-stage--draw .stage-header, .game-stage--reveal .stage-header { display: none; }
  .game-stage--draw, .game-stage--reveal { padding-top: 14px; }
  .stage-tagline { font-size: 0.75rem; margin-top: 12px; }
  .machine { display: flex; flex-direction: column; min-height: 390px; padding: 20px 14px 16px; border: 1px solid var(--yellow); border-radius: 16px; background: #25113d; }
  .machine__title-row { justify-content: center; border: 0; padding-bottom: 0; }
  .machine__title-row h2 { color: #00e4d0; font-family: inherit; font-size: 0.7rem; letter-spacing: 0.1em; }
  .date-picker { padding: 0; gap: 8px; }
  .date-divider { display: none; }
  .wheel-window { height: 130px; border: 0; border-radius: 12px; background: var(--ink); }
  .machine__hint { margin-bottom: 22px; }
  .machine--pick .primary-button { margin-top: auto; }
  .primary-button { min-height: 48px; }
  .secondary-button { min-height: 44px; }
  .machine--draw { min-height: 390px; }
  .machine--draw h2 { font-size: 1.9rem; }
  .machine--reveal { padding: 20px 14px; }
  .machine--reveal h2 { font-size: clamp(1.4rem, 7vw, 2rem); }
  .story-card h3 { line-height: 1.25; font-size: 1.15rem; overflow-wrap: anywhere; }
  .story-card__footer a { display: inline-flex; align-items: center; min-height: 44px; }
  .reveal-actions { margin-top: 26px; }
  .info-rail { display: block; padding: 18px 0; }
  .rail-stamp, .rail-stats, .rail-note, .rail-copy h2 { display: none; }
  .rail-copy > p { font-size: 0.8rem; line-height: 1.5; color: var(--muted); }
  .info-rail:not(:target) { display: none; }
  .footer { gap: 12px; font-size: 0.58rem; }
}

.machine--reveal { animation: reveal-slam 260ms ease-out; }
@keyframes reveal-slam { from { opacity: 0; transform: scale(1.045) rotate(-1deg); } to { opacity: 1; transform: scale(1) rotate(0); } }

@media (min-width: 740px) {
  .topbar { padding-top: 34px; }
  .topbar__status { display: block; }
  .game-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.6fr); gap: 34px; align-items: start; }
  .game-stage { padding-top: 24px; }
  .machine { padding: 30px; }
  .date-picker { padding-top: 12px; }
  .info-rail { display: flex; flex-direction: column; min-height: 650px; padding: 24px 0 32px 30px; border-left: 1px solid var(--line); }
  .rail-stamp { align-self: end; width: 118px; padding: 11px; border: 1px solid var(--yellow); color: var(--yellow); font-family: Impact, sans-serif; font-size: 0.63rem; line-height: 1.1; letter-spacing: 0.08em; text-align: center; transform: rotate(5deg); }
  .rail-stamp strong { color: var(--pink); font-size: 1.4rem; }
  .rail-copy { margin-top: auto; }
  .rail-copy h2 { margin-bottom: 18px; font-size: clamp(1.8rem, 3.4vw, 2.9rem); line-height: 1.12; }
  .rail-copy > p { max-width: 29ch; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }
  .rail-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 42px 0 30px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .rail-stats div { display: flex; flex-direction: column; gap: 3px; }
  .rail-stats strong { color: var(--pink); font-family: Impact, sans-serif; font-size: 1.7rem; line-height: 1; }
  .rail-stats span { color: var(--muted); font-size: 0.6rem; line-height: 1.15; }
  .rail-note { display: flex; gap: 13px; align-items: start; }
  .rail-note__pin { color: var(--yellow); font-size: 1.2rem; }
  .rail-note p { max-width: 26ch; margin: 0; color: var(--muted); font-size: 0.65rem; line-height: 1.4; }
  .footer { margin-top: 10px; }
}

@media (min-width: 1080px) {
  .game-layout { grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.58fr); gap: 74px; }
  .stage-header { margin-bottom: 24px; }
  .machine--pick { min-height: 430px; }
  .date-wheel { width: 150px; }
  .wheel-window { height: 150px; }
  .wheel-window select { font-size: 2.4rem; }
  .machine__hint { margin-bottom: 24px; }
  .story-stack--2, .story-stack--3 { padding-right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* The famous files use birthday-calendar tickets; day facts use an editorial timeline. */
.section-kicker { display: block; color: #69e5d6; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.famous-picker { margin-top: 42px; padding: 28px 0 0; border-top: 3px dotted var(--yellow); }
.famous-picker .section-kicker span { margin-right: 6px; color: var(--yellow); }
.famous-picker h2 { margin: 14px 0; max-width: 20ch; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.25; }
.famous-picker > p { margin-bottom: 20px; color: #c4b9d1; font-size: 0.85rem; line-height: 1.55; }
.famous-search { display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 1px solid #655271; border-radius: 8px; background: var(--ink-deep); }
.famous-search > span:not(.sr-only) { color: var(--yellow); font-size: 1.8rem; }
.famous-search:focus-within { outline: 2px solid var(--yellow); outline-offset: 3px; }
.famous-search input { width: 100%; min-width: 0; min-height: 52px; border: 0; outline: none; background: transparent; color: var(--paper); font: inherit; font-size: 0.85rem; }
.famous-search input::placeholder { color: #a99ab7; opacity: 1; }
.famous-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.famous-person { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 10px; border: 1px solid #4b345f; border-radius: 8px; background: #211238; text-align: left; }
.famous-person:hover { border-color: var(--yellow); background: #2d1947; }
.famous-person:focus-visible, .birthday-person:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.person-monogram { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--pink); color: var(--ink); font-family: "Bungee", sans-serif; font-size: 0.8rem; }
.famous-person:nth-child(3n + 2) .person-monogram { background: var(--yellow); }
.famous-person:nth-child(3n) .person-monogram { background: #69e5d6; }
.person-label { min-width: 0; flex: 1; }
.person-label strong { display: block; font-size: 0.78rem; line-height: 1.4; overflow-wrap: anywhere; }
.person-label small { display: block; margin-top: 3px; color: #c4b9d1; font-size: 0.62rem; line-height: 1.4; }
.person-date { flex-shrink: 0; padding-left: 8px; border-left: 1px dashed #655271; color: var(--yellow); font-size: 0.6rem; text-align: center; }
.person-date b { display: block; font-family: "Bungee", sans-serif; font-size: 1.1rem; font-weight: 400; }
.famous-picker .famous-caption { margin: 16px 0 0; font-size: 0.68rem; color: var(--muted); }
.famous-empty { margin-top: 18px; }
.info-rail--results { min-height: 0; padding-top: 24px; }
.day-details { width: 100%; min-width: 0; }
.day-details__intro h2 { margin: 14px 0 24px; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; }
.observance-card { position: relative; overflow: hidden; padding: 24px 20px 14px; border-radius: 12px 12px 12px 2px; background: var(--yellow); color: var(--ink); transform: rotate(1deg); }
.observance-card p { position: relative; margin: 0 0 10px; font-size: 0.85rem; line-height: 1.5; }
.observance-card h3 { position: relative; max-width: 18ch; margin: 0 0 12px; font-family: "Bungee", sans-serif; font-size: 1.3rem; font-weight: 400; line-height: 1.3; }
.observance-card__spark { position: absolute; top: -24px; right: -18px; color: #e7ad00; font-size: 8rem; line-height: 1; opacity: 0.65; }
.observance-card a { position: relative; display: inline-flex; align-items: center; min-height: 44px; gap: 6px; font-size: 0.68rem; font-weight: 800; text-underline-offset: 4px; }
.history-section, .birthday-section { margin-top: 34px; }
.history-section h3, .birthday-section h3 { margin: 10px 0 20px; font-family: "Bungee", sans-serif; font-size: 1.05rem; font-weight: 400; line-height: 1.4; }
.history-timeline { margin: 0; padding: 0 0 0 16px; list-style: none; border-left: 1px solid #655271; }
.history-timeline li { position: relative; padding: 0 0 24px 7px; }
.history-timeline li:last-child { padding-bottom: 0; }
.history-timeline li::before { position: absolute; top: 6px; left: -21px; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); content: ""; }
.history-year { color: var(--pink-soft); font-family: "Bungee", sans-serif; font-size: 1.05rem; }
.history-timeline p { margin: 8px 0 0; color: #d4cbdc; font-size: 0.8rem; line-height: 1.65; }
.history-timeline a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--yellow); font-size: 0.65rem; text-underline-offset: 4px; }
.birthday-list { display: grid; gap: 4px; }
.birthday-person { display: flex; align-items: center; gap: 12px; padding: 14px 0; border: 0; border-bottom: 1px solid #473653; background: transparent; color: var(--paper); text-align: left; }
.birthday-person.is-selected { color: var(--yellow); }
.birthday-person__year { flex: 0 0 40px; color: #69e5d6; font-family: "Bungee", sans-serif; font-size: 0.72rem; }
.birthday-person > span:nth-child(2) { flex: 1; }
.birthday-person strong { display: block; font-size: 0.85rem; line-height: 1.4; }
.birthday-person small { display: block; margin-top: 5px; color: #b8acc5; font-size: 0.68rem; line-height: 1.5; }
.birthday-caption { margin-top: 14px; color: #c4b9d1; font-size: 0.7rem; line-height: 1.5; }
.day-attribution { margin: 26px 0 0; color: #a99fb6; font-size: 0.63rem; line-height: 1.7; }
.day-attribution a { text-underline-offset: 3px; }
.day-details-unavailable { color: #c4b9d1; font-size: 0.85rem; line-height: 1.6; }
.day-details-link { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; color: #69e5d6; font-size: 0.72rem; text-align: center; text-underline-offset: 4px; line-height: 1.5; }
.day-details { scroll-margin-top: 20px; }
.game-stage--draw .stage-header, .game-stage--reveal .stage-header { display: none; }

@media (min-width: 740px) {
  .game-stage--reveal { align-self: start; position: sticky; top: 0; }
}

@media (max-width: 1079px) {
  .famous-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 739px) {
  .info-rail.info-rail--results { display: block; padding: 24px 0 36px; }
  .day-details__intro h2 { font-size: 1.7rem; }
  .observance-card { margin: 0 4px; }
  .observance-card h3 { font-size: 1.5rem; }
  .famous-picker { margin-top: 28px; }
  .famous-picker h2 { font-size: 1.5rem; }
  .person-label strong { font-size: 0.85rem; }
  .person-label small { font-size: 0.7rem; }
  .history-timeline p { font-size: 0.9rem; }
  .history-section h3, .birthday-section h3 { font-size: 1.1rem; }
}

/* A code-built roadside cabinet: enamel, brass rails, paper drums. No bitmap skin. */
:root { --ink: #142d2c; --ink-deep: #0c2323; --paper: #f5e9ce; --white: #fff6e4; --muted: #afc1b6; --pink: #922d23; --pink-soft: #dfb15d; --yellow: #dfb15d; --plum: #254e49; --line: #8c774b; }
html { background: #0c2323; }
body { background: #0c2323; color: #f5e9ce; font-family: "Trebuchet MS", Arial, sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #e9bc6b; outline-offset: 3px; }
.casino-app { min-height: 100svh; padding: max(8px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); background: radial-gradient(ellipse at 50% 30%, #30564c, #0c2323 80%); }
.casino-toolbar { max-width: 640px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool-button { border: 1px solid #648274; min-height: 44px; padding: 0 10px; background: #102c29; color: #f5e9ce; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px; font-size: 22px; }
.tool-button span { font-size: 11px; font-weight: bold; }
.tool-button[aria-pressed=true] { border-color: #d8b772; }
.feedback-controls { display: flex; gap: 6px; }
.toolbar-left { display: flex; gap: 6px; }.logbook-button { width: 44px; justify-content: center; padding: 0; color: #cbbd96; }.log-intro,.log-empty { font-size: 13px; line-height: 1.5; color: #cbd6be; }.log-add { width: 100%; min-height: 44px; border: 1px solid #a68c56; border-radius: 8px; background: #254d3e; color: #f3e7c9; padding: 10px; text-align: left; }.log-message { font-size: 12px; color: #e5cb95; min-height: 16px; }.log-entries { display: grid; gap: 14px; }.log-entry { border: 1px solid #6a7d5c; padding: 14px; border-radius: 10px; background: #102d25; }.log-entry-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }.log-entry h3 { font: 22px Georgia,serif; margin: 0; }.log-delete { min-height: 44px; padding: 8px 12px; border: 1px solid #c8866b; border-radius: 6px; color: #f7c4af; background: #632d23; font-size: 12px; }.log-entry label { display: block; font-size: 13px; margin-top: 12px; }.log-entry label > span { color: #acbda2; font-size: 10px; margin-left: 5px; }.log-entry input { display: block; width: 100%; min-height: 44px; min-width: 0; margin-top: 5px; padding: 10px; border: 1px solid #80916c; border-radius: 6px; background: #f2e7cb; color: #193b30; font: 16px Arial,sans-serif; color-scheme: light; }.log-undo { padding: 10px 0; font-size: 13px; }.log-undo button { min-height: 44px; border: 1px solid #9d8758; background: transparent; color: #e9d6a7; border-radius: 5px; }
.road-label { display: none; }
.log-unlock { display: grid; gap: 12px; }.log-unlock p { margin: 0; font-size: 14px; line-height: 1.5; }.log-unlock label { font-size: 13px; }.log-unlock input { min-height: 52px; width: 100%; border: 1px solid #a68c56; border-radius: 8px; background: #f2e7cb; color: #173a2f; padding: 12px; font-size: 24px; letter-spacing: 12px; }.log-unlock [role=alert] { color: #ffbba1; font-size: 13px; }
.slot-cabinet { position: relative; width: min(100%, 520px); margin: auto; padding: 16px 12px 6px; border: 2px solid #c5a265; border-radius: 28px 28px 18px 18px; background: linear-gradient(90deg, #183c36, #34675a 45%, #1a443c); box-shadow: inset 0 0 0 4px #102f2c, inset 0 0 0 6px #7d8058, 0 12px 24px #0007; }
.cabinet-screw { position: absolute; top: 16px; height: 7px; width: 7px; border: 1px solid #cdb47d; background: linear-gradient(45deg, #6e613d 45%, #e6c990 46% 56%, #6e613d 57%); border-radius: 50%; }
.screw-left { left: 12px; }.screw-right { right: 12px; }
.casino-marquee { display: flex; justify-content: center; gap: 8px; align-items: center; padding: 4px 0 10px; color: #f5e9ce; text-align: center; }
.casino-marquee h1 { font-family: "Bungee", Impact, sans-serif; font-size: clamp(23px, 7.2vw, 39px); line-height: 1.15; margin: 0; padding: 0; border: 0; max-width: none; color: #f3e2b8; letter-spacing: -1px; text-shadow: 0 2px #071e1b; }
.casino-marquee p { font-size: 10px; letter-spacing: 1.1px; margin: 5px 0 0; color: #d2c6a1; }
.marquee-palm { font-size: 22px; color: #d9b772; }
.marquee-bulbs { height: 7px; margin: 0 4px 12px; background: radial-gradient(circle, #ffe8a5 2px, #9d6a32 2.5px, transparent 3px) 0 0 / 16px 7px repeat-x; }
.machine-readout { border: 1px solid #78663e; border-radius: 7px 7px 0 0; color: #edd29b; background: #0b2421; padding: 10px 6px; font-size: 12px; font-weight: bold; text-align: center; min-height: 38px; }
.slot-cabinet--reveal .machine-readout { background: #7e281f; color: #fff2cd; }
.cabinet-window { min-height: 268px; border: 3px solid #a58d56; background: #102925; box-shadow: 0 0 0 2px #09201c, inset 0 2px 8px #000b; padding: 10px; border-radius: 0 0 12px 12px; }
.reel-deck { position: relative; }
.reel-labels { display: grid; grid-template-columns: 1fr 1fr; color: #d8d4b8; text-align: center; font-size: 11px; margin: 0 0 4px; }
.date-picker { display: flex; justify-content: center; gap: 12px; margin: 0; padding: 0 9px; }
.date-wheel { width: 50%; touch-action: pan-x; }
.wheel-arrow { min-height: 24px; height: 24px; width: 100%; color: #d5b16c; background: transparent; border: 0; font-size: 12px; padding: 0; }
.wheel-window.wheel-window--interactive { width: 100%; height: 164px; border: 2px solid #b79d68; border-radius: 9px; background: linear-gradient(#615d48 0%, #ded1aa 18%, #fff4da 43%, #f9edce 58%, #d8c79d 83%, #665e43); box-shadow: inset 5px 0 12px #33270b44, inset -5px 0 12px #33270b44; }
.wheel-selection { top: calc(50% - 24px); border-top: 1px solid #ac6d36; border-bottom: 1px solid #ac6d36; background: #fff6dc70; }
.wheel-window--interactive .wheel-value { color: #6f6a53; font-family: "Bungee", Impact, sans-serif; font-size: 27px; }
.wheel-window--interactive .wheel-value.is-selected { color: #8e2a20; }
.reel-instruction { color: #bfd0bd; font-size: 10px; text-align: center; margin: 9px 0 1px; }
.payline { position: absolute; top: 115px; color: #e0b570; font-size: 27px; text-shadow: 0 1px 2px #000; pointer-events: none; }.payline-left { left: -6px; }.payline-right { right: -6px; }
.mechanical-reels { display: flex; gap: 12px; padding: 24px 9px; }
.mechanical-drum { position: relative; overflow: hidden; flex: 1; height: 164px; border-radius: 9px; border: 2px solid #b79d68; background: #f5e9ce; color: #2c3127; }
.mechanical-drum::after { position: absolute; content: ""; inset: 0; box-shadow: inset 0 28px 25px -14px #1c1a10b0, inset 0 -28px 25px -14px #1c1a10b0; pointer-events: none; }
.mechanical-strip { animation: mechanical-roll 0.65s linear infinite; }.mechanical-drum:nth-child(2) .mechanical-strip { animation-duration: 0.46s; }
.mechanical-strip span { display: block; font: 30px/48px "Bungee", Impact, sans-serif; height: 48px; text-align: center; border-bottom: 1px solid #c6b68d; }
.stopped-drum { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 27px/48px "Bungee", Impact, sans-serif; background: linear-gradient(#7c7457, #f8edcf 35% 65%, #7c7457); }.stopped-drum span { color: #726e55; }.stopped-drum strong { color: #8e2a20; border-block: 1px solid #b29262; width: 100%; text-align: center; font-weight: normal; }
@keyframes mechanical-roll { from { transform: translateY(-48px); } to { transform: translateY(-336px); } }
.cabinet-controls { display: flex; align-items: center; gap: 12px; margin: 15px 5px 6px; }
.spin-control { display: flex; justify-content: center; align-items: center; gap: 13px; flex: 1; min-height: 64px; border-radius: 35px; border: 3px solid #cfad6a; outline: 2px solid #132c24; box-shadow: inset 0 2px #e3855b, inset 0 -5px #5a1711, 0 4px 0 #0c211d; background: linear-gradient(#b74731, #86271e); color: #fff0c8; font: 24px "Bungee", Impact, sans-serif; text-shadow: 0 2px #5b211a; }
.spin-control span { font-size: 16px; color: #dfb568; }.spin-control:active { transform: translateY(3px); box-shadow: inset 0 2px #652018; }
.small-control { width: 65px; min-height: 64px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; border: 2px solid #a38c59; border-radius: 12px; background: #15332c; color: #f5e9ce; font-size: 25px; }.small-control span { font-size: 11px; }
.control-lamp { color: #e8c383; }
.cabinet-underbar { display: flex; justify-content: space-between; align-items: center; padding: 0 5px; font-size: 10px; color: #c1cfb8; min-height: 42px; }
.cabinet-underbar button { min-height: 44px; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; padding: 0 4px; font-size: 11px; }
.cabinet-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 0 2px; border-top: 1px solid #9d8958; }
.cabinet-navigation button { min-height: 56px; display: flex; gap: 8px; justify-content: center; align-items: center; padding: 8px; background: linear-gradient(#f7ebcc, #cfc096); color: #193d34; border: 2px solid #8c784b; border-radius: 10px; font-size: 11px; font-weight: bold; box-shadow: 0 3px #10271f; }.cabinet-navigation button span { font-size: 24px; }
.casino-share-status { text-align: center; min-height: 15px; font-size: 9px; color: #c3ccb6; margin: 10px 0 3px; }
.result-date { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 10px; color: #c3cdb7; margin: 0 0 8px; }.result-date strong { color: #f3e4c0; font-size: 12px; }.result-date span { max-width: 60%; }
.result-count { font-family: "Bungee", Impact, sans-serif; color: #f0d39b; font-size: 15px; line-height: 1.4; margin: 0 0 10px; }.result-count:focus { outline: none; }
.story-tabs { display: flex; gap: 5px; margin-bottom: 10px; }.story-tabs button { flex: 1; min-height: 44px; display: flex; gap: 3px; flex-direction: column; justify-content: center; align-items: center; background: #254c40; color: #d8dfc9; border: 1px solid #71826a; border-radius: 6px; font-size: 12px; font-weight: bold; }.story-tabs button span { font-size: 10px; font-weight: normal; }.story-tabs button[aria-current] { background: #f2dfb5; border-color: #edce8c; color: #70291e; }
.headline-ticket { padding: 14px; border-radius: 7px; background: #f3e7c9; color: #23372d; box-shadow: 0 3px #baad85; animation: ticket-land 280ms ease-out; touch-action: pan-y; }
.ticket-meta { display: flex; justify-content: space-between; font-size: 10px; color: #766247; padding-bottom: 9px; border-bottom: 1px solid #c9b995; }
.headline-ticket h3 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(20px, 5.6vw, 27px); letter-spacing: -0.5px; line-height: 1.16; margin: 12px 0 16px; font-weight: 800; overflow-wrap: anywhere; }
.ticket-source { display: flex; gap: 10px; justify-content: space-between; align-items: center; border-top: 1px solid #c9b995; padding-top: 9px; }.ticket-source span { font-size: 10px; max-width: 44%; }.ticket-source a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 5px; text-decoration: none; background: #8d3023; color: #fff4d9; font-size: 11px; font-weight: bold; }
.next-story { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; background: transparent; color: #f1d7a4; min-height: 44px; padding: 10px 2px 0; font-size: 12px; font-weight: bold; }.next-story span { font-size: 10px; font-weight: normal; }
@keyframes ticket-land { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.casino-error { padding: 8px; background: #f2dfbd; color: #832a20; font-size: 13px; }
.date-birthdays > p { color: #c4d0b8; font-size: 14px; }.date-birthdays .birthday-person { align-items: start; }.date-birthdays .birthday-person a { display: grid; place-items: center; min-width: 44px; min-height: 44px; color: #ecd39f; border: 1px solid #758567; border-radius: 8px; text-decoration: none; }
.casino-dialog { width: min(94vw, 620px); max-height: 85dvh; border: 2px solid #ad9259; border-radius: 18px; padding: 0; background: #14382f; color: #f3e7c9; box-shadow: 0 20px 80px #000a; overscroll-behavior: contain; }
.casino-dialog::backdrop { background: #051511bd; backdrop-filter: blur(5px); }
.sheet-header { position: sticky; z-index: 2; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: #163b31; border-bottom: 1px solid #8a8051; }.sheet-header h2 { margin: 0; font: 18px Georgia, serif; }.sheet-header button { width: 44px; min-height: 44px; border: 1px solid #8a8051; border-radius: 50%; background: transparent; color: #f3e7c9; font-size: 18px; }
.sheet-body { padding: 18px; }.how-to p, .sheet-empty p { font-size: 14px; line-height: 1.6; color: #d2ddc7; }.sheet-empty h3 { font: 26px Georgia, serif; }
.casino-dialog .famous-picker { margin: 0; padding: 0; border: 0; }.casino-dialog .famous-picker h2 { font-family: Georgia, serif; font-size: 30px; }.casino-dialog .famous-picker p { color: #bfcdb5; }.casino-dialog .famous-grid { grid-template-columns: 1fr; }.casino-dialog .famous-person { background: #224b3c; border-color: #617255; }.casino-dialog .famous-person:hover { background: #315c49; }.casino-dialog .person-monogram { color: #18372d; background: #d9bd83; }.casino-dialog .person-label small { color: #c0ceb6; }.casino-dialog .famous-search { background: #10291f; border-color: #728161; }.casino-dialog .famous-search input { font-size: 16px; }.casino-dialog .secondary-button { color: #f1d6a1; border-color: #9f885b; }.casino-dialog .day-details__intro h2 { font-family: Georgia, serif; }.casino-dialog .observance-card { transform: none; border-radius: 8px; background: #e7d5a9; }.casino-dialog .observance-card h3 { font-family: Georgia, serif; }.casino-dialog .history-timeline p { color: #d4dfc9; }.casino-dialog .history-section h3, .casino-dialog .birthday-section h3 { font-family: Georgia, serif; font-size: 24px; }.casino-dialog .birthday-person small { color: #bccab0; }.casino-dialog .birthday-person__year { color: #d8b978; }.casino-dialog .history-timeline { border-color: #768462; }.casino-dialog .section-kicker { color: #d8bd89; }.casino-dialog .day-attribution { color: #b6c2ab; }
@media (min-width: 740px) { .casino-app { padding-top: 20px; }.casino-toolbar { margin-bottom: 16px; }.road-label { display: block; font-size: 11px; color: #b8c8b4; }.slot-cabinet { padding: 22px 22px 8px; }.cabinet-window { min-height: 320px; padding: 18px; }.wheel-window.wheel-window--interactive, .mechanical-drum { height: 200px; }.payline { top: 134px; }.casino-marquee h1 { font-size: 39px; }.reel-instruction { margin-top: 12px; font-size: 12px; }.machine-readout { font-size: 14px; }.cabinet-navigation button { font-size: 13px; }.headline-ticket h3 { font-size: 29px; } }
@media (max-width: 360px) { .casino-app { padding-left: 7px; padding-right: 7px; }.slot-cabinet { padding-left: 8px; padding-right: 8px; }.tool-button span { font-size: 10px; }.haptic-toggle span { display: none; }.headline-ticket { padding: 11px; }.spin-control { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .mechanical-strip { animation: none; }.headline-ticket { animation: none; } }

html,body{background:transparent!important}.casino-app{min-height:0!important;padding:0!important;background:transparent!important}.slot-cabinet{max-width:440px!important;margin:0 auto!important}.casino-marquee h1{font-size:29px!important}.cabinet-navigation,.casino-toolbar,.casino-share-status{display:none!important}.casino-dialog{display:none!important}
html,body{overscroll-behavior:none!important}.date-wheel,.wheel-window--interactive{touch-action:none!important;overscroll-behavior:none!important}
