:root {
  --paper:#f3ebd9;
  --ink:#17191e;
  --lilac:#9a89ca;
  --green:#b9cd68;
  --line:#c5bfae;
  --muted:#52514d;
  --title:Bricolage,Arial,sans-serif;
  --ui:Atkinson,Arial,sans-serif
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:24px
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:18px/1.5 var(--ui);
  text-rendering:optimizeLegibility
}

body:before {
  content:'';
  position:fixed;
  inset:0;
  z-index:9;
  pointer-events:none;
  opacity:.025;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' opacity='.9' d='M0 0h160v160H0z'/%3E%3C/svg%3E")
}

[hidden] {
  display:none!important
}

h1,h2,h3,p {
  margin:0
}

h1,h2,h3 {
  font-family:var(--title);
  font-weight:800;
  line-height:1.04;
  letter-spacing:-.045em
}

h2 {
  font-size:clamp(30px,4vw,50px)
}

h3 {
  font-size:24px
}

a {
  color:inherit;
  text-underline-offset:.2em
}

button,a,input,summary {
  -webkit-tap-highlight-color:transparent
}

button {
  font:inherit;
  color:inherit;
  cursor:pointer
}

button:disabled {
  cursor:wait;
  opacity:.5
}

a,button,summary {
  touch-action:manipulation
}

button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex='-1']:focus-visible {
  outline:3px solid var(--ink);
  outline-offset:5px
}

.reading {
  font-family:Fast_OpenDyslexic,Arial,sans-serif;
  font-size:18px;
  line-height:1.75;
  font-weight:400;
  font-variant-ligatures:contextual;
  font-feature-settings:'calt' 1;
  overflow-wrap:anywhere
}

.wrap {
  width:min(1200px,calc(100% - 80px));
  margin-inline:auto
}

.skip-link {
  position:absolute;
  top:-100px;
  left:16px;
  z-index:20;
  background:var(--ink);
  color:var(--paper);
  padding:12px
}

.skip-link:focus {
  top:10px
}

.site-header {
  min-height:94px;
  display:flex;
  align-items:center;
  gap:36px;
  border-bottom:1px solid var(--ink)
}

.wordmark {
  font:800 27px/.95 var(--title);
  letter-spacing:-.065em;
  text-decoration:none;
  display:inline-flex;
  gap:10px;
  align-items:center;
  min-height:44px
}

.wordmark span {
  font-size:31px
}

.header-note {
  font-size:14px;
  flex:1;
  color:var(--muted)
}

.header-link {
  min-height:44px;
  display:flex;
  align-items:center;
  gap:30px;
  font-weight:700;
  font-size:16px
}

.hero {
  padding-top:48px;
  padding-bottom:42px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 310px;
  column-gap:46px;
  position:relative
}

.hero-heading {
  grid-column:1
}

.eyebrow {
  text-transform:uppercase;
  letter-spacing:.15em;
  font-size:12px;
  font-weight:700;
  line-height:1.5;
  margin-bottom:15px
}

h1 {
  font-size:clamp(58px,7.1vw,96px);
  letter-spacing:-.075em;
  position:relative;
  display:inline-block
}

.title-star {
  font-size:.46em;
  color:var(--ink);
  display:inline-block;
  transform:rotate(-15deg);
  vertical-align:top;
  margin-left:12px
}

.tagline {
  font-family:var(--title);
  font-size:clamp(20px,2.4vw,28px);
  font-weight:600;
  line-height:1.25;
  margin-top:13px;
  letter-spacing:-.02em
}

.event-panel {
  grid-column:1;
  border:1.5px solid var(--ink);
  background:#f8f1e2;
  margin-top:28px;
  box-shadow:4px 4px 0 var(--ink);
  padding:19px 22px 14px
}

.event-title {
  display:flex;
  align-items:center;
  gap:10px
}

.event-title h2 {
  font-size:26px;
  letter-spacing:-.035em
}

.event-dot {
  width:10px;
  height:10px;
  background:var(--ink);
  border-radius:50%;
  flex:none
}

.event-badge {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  border:1px solid var(--ink);
  padding:3px 8px;
  margin-left:auto;
  white-space:nowrap
}

.event-facts {
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:12px;
  margin:21px 0 13px
}

.event-facts dt {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.13em;
  color:var(--muted);
  margin-bottom:4px
}

.event-facts dd {
  font-size:18px;
  line-height:1.3;
  margin:0
}

.event-bottom {
  display:flex;
  justify-content:space-between;
  border-top:1px solid var(--line);
  padding-top:10px;
  font-size:14px;
  gap:10px
}

.event-mark {
  font-size:24px;
  line-height:1
}

.hero-actions {
  grid-column:1;
  display:flex;
  gap:12px;
  margin-top:21px
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:48px;
  padding:11px 18px;
  font-weight:700;
  font-size:16px;
  text-decoration:none;
  border:1.5px solid var(--ink);
  border-radius:2px;
  transition:background .15s,transform .15s
}

.button:hover {
  transform:translateY(-2px)
}

.button-dark {
  background:var(--ink);
  color:var(--paper)
}

.button-dark:hover {
  background:#373238
}

.button-outline {
  background:transparent
}

.button-outline:hover {
  background:var(--green)
}

.program {
  grid-column:1;
  display:flex;
  align-items:baseline;
  gap:15px;
  margin-top:25px
}

.program h3 {
  font-family:var(--ui);
  font-size:15px;
  white-space:nowrap;
  letter-spacing:0
}

.program p,.program li {
  font-size:14px;
  color:var(--muted)
}

.program ul {
  margin:0;
  padding-left:20px
}

.draw-button {
  grid-column:1;
  justify-self:start;
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:transparent;
  border:0;
  border-bottom:1px solid var(--ink);
  padding:10px 0 7px;
  margin-top:13px;
  min-height:44px;
  font-size:16px
}

.draw-button span:first-child {
  font-size:24px
}

.draw-button:hover {
  color:#4d3b79
}

.how-section {
  border-block:1px solid var(--ink);
  padding-block:45px;
  background:var(--green)
}

.how-layout {
  display:grid;
  grid-template-columns:1fr 1.8fr;
  gap:50px
}

.how-layout h2 {
  font-size:50px
}

.how-content>.reading {
  max-width:760px
}

.gestures {
  display:flex;
  gap:30px;
  list-style:none;
  padding:0;
  margin:28px 0 23px
}

.gestures li {
  display:flex;
  align-items:center;
  gap:10px
}

.gestures span {
  border:1.5px solid var(--ink);
  border-radius:50%;
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  font-size:12px;
  transform:rotate(-8deg)
}

.gestures strong {
  font-family:var(--title);
  font-size:22px;
  letter-spacing:-.03em
}

.font-note {
  border-top:1px solid #75873e;
  font-size:16px
}

.font-note summary {
  cursor:pointer;
  padding:14px 0;
  min-height:48px;
  font-weight:700
}

.font-note .reading {
  margin:10px 0 17px
}

.font-note a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-weight:700
}

.content-status {
  padding-top:24px
}

.content-status:empty {
  display:none
}

.notice,.error-notice {
  border:1.5px solid var(--ink);
  padding:20px;
  background:#fff6e6
}

.error-notice p {
  margin-bottom:12px
}

.finder {
  display:grid;
  grid-template-columns:1fr 1.8fr;
  gap:50px;
  padding-block:44px 36px;
  border-bottom:1px solid var(--ink)
}

.finder h2 {
  font-size:30px
}

.finder .eyebrow {
  margin-bottom:9px
}

.finder p:last-child {
  font-size:15px;
  margin-top:9px;
  color:var(--muted)
}

.number-picker {
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:9px;
  align-self:center
}

.number-button {
  min-height:49px;
  padding:8px;
  border:1px solid var(--ink);
  border-radius:2px;
  background:transparent;
  font-family:var(--title);
  font-size:22px;
  font-weight:700;
  transition:background .15s,transform .15s
}

.number-button:hover {
  background:var(--lilac);
  transform:rotate(-3deg)
}

.number-button[aria-current='true'] {
  background:var(--ink);
  color:var(--paper)
}

.gallery-section {
  padding-block:50px 54px
}

.section-heading {
  display:flex;
  justify-content:space-between;
  gap:25px;
  align-items:end;
  margin-bottom:32px
}

.section-heading h2 {
  font-size:clamp(36px,4vw,56px)
}

.section-heading h2 span {
  color:#5c4a87
}

.gallery-aside {
  font-size:15px;
  text-align:right;
  line-height:1.3;
  color:var(--muted);
  transform:rotate(-3deg)
}

.gallery {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:start;
  gap:32px 36px
}

.destiny-card {
  border:0;
  border-radius:0;
  overflow:visible;
  display:flex;
  flex-direction:column;
  background:transparent;
  position:relative;
  transition:box-shadow .15s,transform .15s
}

.destiny-card:hover {
  box-shadow:none;
  transform:none
}

.gallery-note {
  text-align:center;
  font-size:15px;
  margin-top:35px
}

.card-detail {
  padding-top:38px;
  scroll-margin-top:22px
}

.detail-topline {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:23px;
  font-size:15px
}

.back-link {
  min-height:44px;
  display:inline-flex;
  align-items:center;
  gap:12px
}

.detail-shell {
  display:grid;
  grid-template-columns:minmax(0, .8fr) minmax(0,1.2fr);
  border:1.5px solid var(--ink);
  background:#f8f1e2;
  box-shadow:5px 5px 0 var(--ink)
}

.detail-visual {
  background:var(--lilac);
  border-right:1.5px solid var(--ink);
  position:relative;
  align-self:stretch
}

.detail-visual img {
  width:100%;
  height:auto;
  display:block;
  position:sticky;
  top:24px
}

.detail-content {
  padding:35px
}

.detail-content h2 {
  font-size:clamp(36px,4.5vw,59px);
  overflow-wrap:anywhere
}

.detail-wish {
  font-size:16px;
  line-height:1.65;
  margin-top:15px
}

.detail-quote {
  margin:27px 0 0;
  padding-top:22px;
  border-top:1px solid var(--line)
}

.detail-quote blockquote {
  margin:0;
  font-size:21px;
  line-height:1.8
}

.quote-meta {
  font-size:15px;
  margin-top:14px
}

.quote-note {
  font-size:14px;
  line-height:1.5;
  color:var(--muted);
  margin-top:8px
}

.source-link {
  min-height:44px;
  display:inline-flex;
  align-items:center;
  font-size:14px
}

.prediction {
  border:1px solid var(--ink);
  background:var(--green);
  padding:18px;
  margin:21px 0 28px;
  transform:rotate(-.5deg)
}

.prediction .eyebrow {
  margin-bottom:10px;
  letter-spacing:.1em
}

.prediction .reading {
  font-size:17px
}

.book-heading {
  border-top:1px solid var(--line);
  padding-top:23px
}

.book-heading h3 {
  font-size:32px;
  line-height:1.12;
  overflow-wrap:anywhere
}

.book-meta {
  font-size:15px;
  margin:12px 0 20px
}

.book-meta span {
  display:block
}

.book-summary {
  margin:15px 0 24px
}

.bridge-title {
  font-family:var(--ui);
  font-size:16px;
  letter-spacing:0;
  margin-bottom:10px
}

.cdi-info {
  border-left:3px solid var(--ink);
  padding:8px 0 8px 16px;
  margin-block:24px;
  font-size:16px
}

.cdi-info a {
  display:inline-flex;
  min-height:44px;
  align-items:center
}

.book-links {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px
}

.detail-end {
  margin-top:22px;
  min-height:44px;
  display:inline-flex;
  align-items:center
}

.site-footer {
  background:var(--ink);
  color:var(--paper);
  padding-top:38px
}

.footer-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:25px;
  padding-bottom:32px
}

.footer-top .reading {
  font-size:16px;
  line-height:1.8;
  margin-top:15px
}

.footer-top>a {
  min-height:44px;
  display:flex;
  align-items:center;
  font-size:16px
}

.footer-bottom {
  border-top:1px solid #666258;
  display:flex;
  justify-content:space-between;
  gap:24px;
  padding-block:19px;
  font-size:12px;
  line-height:1.6;
  color:#d5d0c4
}

.site-footer a:focus-visible {
  outline-color:var(--green)
}

@media(min-width:1450px) {
  .hero {
    padding-top:58px;
    padding-bottom:48px;
    grid-template-columns:minmax(0,1fr) 350px
  }
  .event-panel {
    max-width:770px
  }
}

@media(max-width:1000px) {
  .wrap {
    width:calc(100% - 48px)
  }
  .hero {
    grid-template-columns:minmax(0,1fr) 220px;
    column-gap:20px
  }
  h1 {
    font-size:68px
  }
  .header-note {
    display:none
  }
  .site-header {
    justify-content:space-between
  }
  .event-facts {
    grid-template-columns:1fr 1fr
  }
  .event-facts>div:last-child {
    grid-column:1/-1
  }
  .gallery {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:25px
  }
  .how-layout,.finder {
    grid-template-columns:1fr 1.6fr;
    gap:28px
  }
  .how-layout h2 {
    font-size:42px
  }
  .detail-content {
    padding:25px
  }
  .detail-shell {
    grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr)
  }
  .detail-quote blockquote {
    font-size:19px
  }
}

@media (max-width: 680px), (max-width: 950px) and (max-height: 500px) {
  .wrap {
    width:calc(100% - 32px)
  }
  .site-header {
    min-height:65px;
    gap:12px
  }
  .wordmark {
    font-size:23px
  }
  .wordmark span {
    font-size:26px
  }
  .header-link {
    font-size:13px;
    gap:10px
  }
  .hero {
    padding-top:27px;
    padding-bottom:26px;
    display:block
  }
  .hero-heading {
    position:relative;
    z-index:1;
    padding-right:36px
  }
  .hero-heading .eyebrow {
    font-size:10px;
    margin-bottom:8px
  }
  .hero h1 {
    font-size:clamp(43px,11vw,65px);
    white-space:nowrap;
    letter-spacing:-.065em
  }
  .title-star {
    display:none
  }
  .tagline {
    font-size:20px;
    max-width:250px;
    line-height:1.24;
    margin-top:10px
  }
  .event-panel {
    margin-top:23px;
    padding:15px 15px 12px;
    position:relative
  }
  .event-title h2 {
    font-size:23px
  }
  .event-badge {
    display:none
  }
  .event-facts {
    grid-template-columns:1fr 1fr;
    margin-block:17px 12px;
    gap:11px
  }
  .event-facts>div:last-child {
    grid-column:1/-1
  }
  .event-facts dd {
    font-size:17px
  }
  .event-facts dt {
    font-size:10px;
    margin-bottom:2px
  }
  .event-bottom {
    font-size:14px
  }
  .hero-actions {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:9px;
    margin-top:20px
  }
  .button {
    font-size:14px;
    padding:11px 11px;
    gap:6px;
    line-height:1.25;
    min-height:48px
  }
  .hero-actions .button span {
    font-size:17px
  }
  .program {
    margin-top:20px;
    gap:10px;
    display:block
  }
  .program h3 {
    font-size:14px;
    margin-bottom:3px
  }
  .program p {
    font-size:14px
  }
  .draw-button {
    margin-top:10px
  }
  .how-section {
    padding-block:29px
  }
  .how-layout {
    display:block
  }
  .how-layout h2 {
    font-size:35px;
    margin-bottom:21px
  }
  .how-layout h2 br {
    display:none
  }
  .how-layout .eyebrow {
    font-size:10px;
    margin-bottom:10px
  }
  .how-layout h2 br:after {
    content:' '
  }
  .reading {
    font-size:18px;
    line-height:1.75
  }
  .gestures {
    gap:20px;
    justify-content:space-between;
    margin-block:24px 20px
  }
  .gestures li {
    gap:7px
  }
  .gestures strong {
    font-size:20px
  }
  .gestures span {
    width:26px;
    height:26px;
    font-size:10px
  }
  .font-note summary {
    font-size:15px
  }
  .finder {
    display:block;
    padding-block:30px
  }
  .finder h2 {
    font-size:29px
  }
  .number-picker {
    margin-top:23px;
    gap:8px
  }
  .number-button {
    font-size:20px;
    min-height:46px
  }
  .section-heading {
    margin-bottom:24px
  }
  .section-heading h2 {
    font-size:36px
  }
  .section-heading .eyebrow {
    font-size:10px;
    margin-bottom:9px
  }
  .gallery-aside {
    display:none
  }
  .gallery-section {
    padding-block:32px 38px
  }
  .gallery {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:23px 20px
  }
  .gallery-note {
    font-size:14px;
    margin-top:25px
  }
  .card-detail {
    padding-top:27px
  }
  .detail-topline {
    font-size:14px;
    margin-bottom:17px
  }
  .detail-shell {
    display:block
  }
  .detail-visual {
    border-right:0;
    border-bottom:1.5px solid var(--ink)
  }
  .detail-visual img {
    position:static;
    width:100%;
    height:auto;
    max-height:390px;
    object-fit:contain
  }
  .detail-content {
    padding:25px 20px
  }
  .detail-content h2 {
    font-size:38px
  }
  .detail-quote blockquote {
    font-size:19px
  }
  .prediction .reading {
    font-size:17px
  }
  .book-heading h3 {
    font-size:31px
  }
  .book-links .button {
    min-height:48px;
    padding:11px 14px;
    font-size:15px
  }
  .footer-top {
    display:block;
    padding-bottom:24px
  }
  .footer-top>a {
    margin-top:20px
  }
  .footer-bottom {
    display:block
  }
  .footer-bottom p+p {
    margin-top:8px
  }
  .site-footer {
    padding-top:29px
  }
}

@media(max-width:359px) {
  .hero-heading {
    padding-right:0
  }
  .hero h1 {
    font-size:44px
  }
  .tagline {
    max-width:none;
    font-size:19px
  }
  .gallery {
    gap:20px 15px
  }
  .number-picker {
    grid-template-columns:repeat(4,1fr)
  }
  .gestures {
    gap:10px
  }
  .gestures strong {
    font-size:18px
  }
  .gestures li {
    gap:5px
  }
  .hero-actions .button {
    font-size:13px
  }
  .detail-content {
    padding:22px 16px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*:before,*:after {
    animation:none!important;
    transition:none!important
  }
}

/* The original card images are clipped by their SVG frame, never repainted. */
.hero-emblem {
  grid-column: 2;
  grid-row: 1 / 6;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(5deg);
}

.hero-emblem svg {
  width: 78%;
}

.emblem-moon {
  font-size: 82px;
  line-height: 1;
}

.emblem-note {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 25px;
}

.deck-instruction {
  margin: -6px 0 30px;
  font-size: 18px;
  max-width: 640px;
}

.flip-button {
  padding: 0;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: center;
  perspective: 1200px;
  display: block;
  border-radius: 15px;
}

.flip-inner {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 2.6;
  transform-style: preserve-3d;
  transition: transform 650ms cubic-bezier(.2,.7,.2,1);
}

.flip-button.is-revealed .flip-inner {
  transform: rotateY(180deg);
}

.card-face {
  display: block;
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(2px 5px 2px #17191e24);
}

.card-front {
  transform: rotateY(180deg);
}

.flip-caption {
  display: flex;
  min-height: 48px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.flip-caption::after {
  content: '↗';
}

.flip-button:hover .flip-caption {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.flip-button:focus-visible {
  outline-offset: 7px;
}

.text-button {
  border: 0;
  background: transparent;
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: .2em;
  text-align: left;
}

.gallery .card-detail {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  padding: 0 0 18px;
}

.detail-shell {
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
}

.detail-visual {
  background: #e1d7bf;
  padding: 26px;
}

.detail-visual img {
  max-width: 340px;
  margin-inline: auto;
  filter: drop-shadow(3px 5px 2px #17191e24);
}

.finder-controls {
  min-width: 0;
}

.finder-controls label {
  display: block;
  font-size: 14px;
  margin-top: 18px;
  margin-bottom: 5px;
}

.finder-controls select {
  background: #f8f1e2;
  border: 1px solid var(--ink);
  min-height: 46px;
  border-radius: 2px;
  width: 100%;
  color: var(--ink);
  font: 16px var(--ui);
  padding: 9px;
}

.finder-controls select:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

@media (max-width: 1000px) {
  .detail-visual {
    padding: 20px;
  }
}

@media (max-width: 680px) {
  .hero-emblem {
    position: absolute;
    top: 59px;
    right: -1px;
    width: 68px;
  }
  .emblem-moon {
    font-size: 24px;
  }
  .emblem-note {
    display: none;
  }
  .hero-emblem svg {
    width: 100%;
  }
  .flip-caption {
    font-size: 13px;
  }
  .detail-shell {
    display: block;
  }
  .detail-visual {
    padding: 24px;
  }
  .detail-visual img {
    max-width: 240px;
    max-height: none;
  }
  .deck-instruction {
    font-size: 16px;
    margin-top: -6px;
  }
}

@media (max-width: 359px) {
  .hero-emblem {
    display: none;
  }
  .flip-caption {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flip-inner {
    transition: none;
  }
}

/* Secondary mobile controls retain their native disclosure semantics. */
#number-options > summary {
  display: none;
}

.mobile-event > summary {
  min-height: 48px;
  cursor: pointer;
}

.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.carousel-controls > div {
  display: flex;
  gap: 10px;
}

.carousel-controls button {
  width: 48px;
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  font-size: 24px;
}

.carousel-controls button:disabled {
  cursor: default;
  opacity: .35;
}

@media (max-width: 600px), (max-width: 950px) and (max-height: 500px) {
  body::before { display: none; }
  .hero { padding-block: 22px 12px; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .button { min-height: 56px; }
  .hero-actions #draw-card {
    grid-column: auto;
    justify-self: stretch;
    min-height: 56px;
    margin: 0;
    padding: 11px;
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    background: var(--green);
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.25;
  }
  .hero-actions #draw-card > span[aria-hidden]:last-child { display: none; }
  #find-label, #explore-label { font-size: inherit; }
  #explore-action {
    display: flex;
    min-height: 44px;
    border: 0;
    margin-top: 7px;
    padding: 6px 0;
    font-weight: 400;
    justify-content: start;
    gap: 12px;
    text-decoration: underline;
  }
  .mobile-event {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-top: 6px;
    padding-block: 3px;
  }
  .mobile-event > summary { font-size: 15px; padding-block: 12px; }
  .mobile-event .event-panel { margin-top: 12px; }
  .mobile-event .program { margin-bottom: 20px; }
  .finder { padding-block: 20px 22px; }
  .finder h2 { font-size: 28px; }
  .finder-controls label { margin-top: 16px; }
  .finder-controls select { min-height: 52px; font-size: 17px; }
  #number-options { margin-top: 10px; }
  #number-options > summary {
    display: list-item;
    min-height: 44px;
    padding-block: 10px;
    font-size: 15px;
    cursor: pointer;
  }
  .number-picker { margin-top: 8px; }
  .gallery-section { padding-block: 25px 30px; min-width: 0; }
  .section-heading { margin-bottom: 16px; }
  .section-heading h2 { font-size: 32px; }
  .deck-instruction { margin-bottom: 9px; }
  .carousel-hint { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
  .gallery {
    --rail-card-width: clamp(128px, 40vw, 168px);
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline-start: 10px;
    padding: 10px calc(100% - var(--rail-card-width) - 10px) 8px 10px;
    scrollbar-width: thin;
    scrollbar-color: #5c4a87 #ded5c0;
  }
  .gallery .destiny-card {
    flex: 0 0 var(--rail-card-width);
    min-width: 0;
    scroll-snap-align: start;
  }
  .flip-button { touch-action: pan-x pan-y pinch-zoom; }
  .flip-button.is-active .flip-inner {
    outline: 2px solid #5c4a87;
    outline-offset: 4px;
    border-radius: 13px;
  }
  .card-face img { filter: none; }
  .flip-caption { font-size: 13px; }
  .carousel-controls { margin-top: 12px; font-size: 15px; }
  .gallery-section > .card-detail { width: 100%; padding-top: 24px; margin: 0; }
  .gallery-note { margin-top: 20px; font-size: 14px; }
  .detail-topline { gap: 8px; margin-bottom: 12px; }
  .detail-topline > span { white-space: nowrap; font-size: 12px; }
  .detail-visual { padding: 16px; }
  .detail-visual img {
    width: auto;
    height: 180px;
    max-height: 180px;
    max-width: 100%;
    object-fit: contain;
    filter: none;
  }
  .detail-content { padding: 22px 18px; }
  .detail-content h2 { font-size: 34px; }
  .detail-content .eyebrow { margin-bottom: 9px; }
  .detail-wish { font-size: 17px; line-height: 1.65; margin-top: 12px; }
  .book-heading { padding-top: 18px; margin-top: 20px; }
  .book-heading h3 { font-size: 29px; }
  .book-meta { font-size: 16px; margin-block: 12px 16px; }
  .book-links { display: grid; grid-template-columns: 1fr; gap: 10px; margin-block: 16px 24px; }
  .book-links .button { justify-content: center; min-height: 52px; font-size: 16px; }
  .book-bridge { font-size: 18px; line-height: 1.75; }
  .detail-quote { margin-top: 24px; }
  .detail-quote blockquote { font-size: 18px; line-height: 1.75; }
  .prediction { transform: none; margin-block: 20px; }
  .detail-end { display: flex; justify-content: center; width: 100%; min-height: 52px; border: 1px solid var(--ink); padding: 12px; }
  .how-section { padding-block: 26px; }
  .how-layout h2 { margin-bottom: 16px; }
  .site-footer { padding-top: 24px; }
  .footer-top .reading { margin-top: 12px; }
  .footer-top > a { margin-top: 12px; }
}

@media (max-width: 950px) and (max-height: 500px) {
  .gallery { --rail-card-width: 116px; }
}

@media (max-width: 359px) {
  .site-header .wordmark { font-size: 21px; white-space: nowrap; gap: 7px; }
  .site-header .wordmark span { font-size: 24px; }
  .header-link { gap: 6px; white-space: nowrap; }
}
