/* Cufflinks website. Plain CSS, no build step.
   Colours are the art bible's palette (design/art/art-bible.md §4). Every decorative
   surface is the game's own art (assets/img/*), never a hand-drawn CSS shape. */

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #221b2b;
  --pearl: #f7f1e6;
  --pearl-soft: rgba(247, 241, 230, 0.82);
  --pearl-dim: rgba(247, 241, 230, 0.7);
  --ruby: #d3305c;
  --teal: #1a9ab0;
  --felt: #2e2238;
  --felt-deep: #1c1424;
  --inset: #301731;
  --walnut: #93602f;
  --moonstone: #7a6c8c;
  --frame: clamp(14px, 0.9vw + 10px, 24px);
  --gutter: calc(var(--frame) + 16px);
  --measure: 40rem;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--felt-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--pearl);
  background-color: #2e2238;
  /* A stacking context, so the fixed felt layer (z-index -1) paints above this colour. */
  position: relative;
  z-index: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* The lit felt: a fixed layer, so iOS (which ignores background-attachment: fixed)
   still gets a table that stays put while the page scrolls. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 120% 90% at 25% 0%, rgba(0, 0, 0, 0) 45%, rgba(12, 6, 18, 0.5) 100%),
    url("/assets/img/felt-lit.webp") left top / cover no-repeat,
    var(--felt);
}

/* The walnut frame with brass corners, 9-sliced around the window like the game. */
.table-frame {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  border: var(--frame) solid transparent;
  border-image: url("/assets/img/frame.webp") 38 / var(--frame) stretch;
}

img { max-width: 100%; height: auto; }

a { color: var(--pearl); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: #fff; }

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 60;
  padding: 10px 18px;
  background: var(--pearl);
  color: var(--ink);
  font-weight: 800;
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { top: calc(var(--frame) + 8px); }

h1, h2, h3 {
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); text-shadow: 0 2px 6px rgba(10, 4, 16, 0.55); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pearl-soft);
}

/* ---------------------------------------------------------------- buttons */

/* The big pearl Play button set in walnut (btn_play.png, kept at its own shape). */
.btn-play {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(300px, 78vw);
  aspect-ratio: 720 / 286;
  padding-bottom: 0.2em;
  background: url("/assets/img/btn-play.webp") center / 100% 100% no-repeat;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  filter: drop-shadow(0 8px 14px rgba(8, 3, 14, 0.55));
  transition: transform 0.15s ease, filter 0.15s ease;
  border-radius: 999px;
}
.btn-play:hover { color: var(--ink); transform: translateY(-2px); filter: drop-shadow(0 11px 18px rgba(8, 3, 14, 0.6)) brightness(1.04); }
.btn-play:active { transform: translateY(1px) scale(0.985); }
.btn-play:focus-visible { outline-offset: 2px; }
.btn-play__big { font-weight: 900; font-size: clamp(2.1rem, 1.6rem + 2vw, 2.6rem); letter-spacing: -0.01em; }
.btn-play__small { font-weight: 800; font-size: 0.95rem; margin-top: 0.3em; color: #4a3d52; }
.btn-play--compact { width: min(260px, 72vw); }

/* Pearl and walnut capsules, 9-sliced at half their height so the ends never stretch. */
.pill {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: var(--h);
  padding: 0 0.4em 2px;
  border-style: solid;
  border-color: transparent;
  border-width: 0 calc(var(--h) / 2);
  border-image: url("/assets/img/pill-pearl.webp") 0 74 fill / 0 calc(var(--h) / 2) stretch;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  filter: drop-shadow(0 4px 8px rgba(8, 3, 14, 0.45));
  transition: transform 0.15s ease, filter 0.15s ease;
}
.pill:hover { color: var(--ink); transform: translateY(-1px); filter: drop-shadow(0 6px 10px rgba(8, 3, 14, 0.5)) brightness(1.04); }
.pill:active { transform: translateY(1px); }
.pill--walnut {
  border-image-source: url("/assets/img/pill-walnut.webp");
  color: var(--pearl);
  text-shadow: 0 1px 2px rgba(40, 16, 0, 0.6);
}
.pill--walnut:hover { color: #fff; }
.pill[disabled],
.pill[aria-disabled="true"] {
  cursor: not-allowed;
  filter: saturate(0.55) brightness(0.8);
  transform: none;
}
.pill__tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.soon {
  margin: 1.1rem 0 0;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  color: var(--pearl-soft);
}
.soon strong { color: var(--pearl); font-weight: 800; }

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: min(86svh, 740px);
  padding: calc(var(--frame) + 28px) var(--gutter) 40px;
  text-align: center;
}
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }

.brand { display: flex; flex-direction: column; align-items: center; }
.brand h1 { margin: 0; line-height: 0; }
.brand__logo { width: min(560px, 86vw); filter: drop-shadow(0 6px 12px rgba(8, 3, 14, 0.5)); }
.tagline {
  margin: 0.55rem 0 0;
  font-weight: 700;
  font-size: clamp(1.05rem, 0.9rem + 0.9vw, 1.45rem);
  letter-spacing: 0.08em;
  color: var(--pearl);
  text-shadow: 0 2px 6px rgba(10, 4, 16, 0.7);
}
.hero .btn-play { margin-top: clamp(1.8rem, 1.2rem + 3vw, 2.8rem); }

/* The two French cuffs above the logo, ruby left and teal right, leaning in. */
.cuffs {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: clamp(0.4rem, 1vw, 0.8rem);
}
.cuff {
  width: clamp(56px, 13vw, 84px);
  filter: drop-shadow(0 5px 8px rgba(8, 3, 14, 0.5));
  transform-origin: 50% 95%;
}
.cuff--ruby { transform: rotate(6deg); }
.cuff--teal { transform: rotate(-6deg); }
.cuffs--small .cuff { width: clamp(44px, 10vw, 60px); }

/* Loose gems at the edges: near ones big and sharp, far ones small, soft, dimmer. */
.gems { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.gem {
  position: absolute;
  filter: drop-shadow(0 8px 10px rgba(8, 3, 14, 0.5));
  transform: rotate(var(--r, 0deg));
}
.gem--far { filter: blur(1.2px) brightness(0.82) saturate(0.85); opacity: 0.85; }

.gem--1 { --r: 14deg;  width: 74px; left: calc(var(--frame) - 22px); top: 5%; }
.gem--2 { --r: -10deg; width: 34px; right: 14%; top: 9%; }
.gem--3 { --r: 8deg;   width: 64px; right: calc(var(--frame) - 20px); bottom: 7%; }
.gem--4 { --r: 0deg;   width: 46px; left: 9%; bottom: 5%; }
.gem--5 { --r: 0deg;   width: 26px; right: 30%; bottom: 4%; }
.gem--6 { --r: -16deg; width: 30px; left: 20%; top: 2.5%; }

/* On a phone the card pages run past one screen: keep the gems to the top corners. */
@media (max-width: 759px) {
  .card-page .gem--3, .card-page .gem--5 { display: none; }
}

@media (min-width: 760px) {
  .gem--1 { width: 96px; left: 7%; top: 14%; }
  .gem--2 { width: 44px; right: 20%; top: 8%; }
  .gem--3 { width: 92px; right: 8%; bottom: auto; top: 52%; }
  .gem--4 { width: 62px; left: 15%; bottom: 10%; }
  .gem--5 { width: 34px; right: 22%; bottom: 8%; }
  .gem--6 { width: 38px; left: 22%; top: 44%; }
}
@media (min-width: 1100px) {
  .gem--1 { left: 11%; }
  .gem--3 { right: 12%; }
  .gem--6 { left: 19%; }
}

/* ------------------------------------------------------------------ panels */

/* The game's raised felt inset with its thin brass edge (inset.png, 9-sliced). */
.inset {
  border: 20px solid transparent;
  border-image: url("/assets/img/inset.webp") 44 / 20px stretch;
  background: var(--inset) padding-box;
}

/* ------------------------------------------------------------------- tiles */

.tile {
  --t: 48px;
  display: inline-grid;
  place-items: center;
  width: var(--t);
  height: var(--t);
  background: url("/assets/img/tile-neutral.webp") center / contain no-repeat;
  color: var(--ink);
  font-weight: 900;
  font-size: calc(var(--t) * 0.6);
  line-height: 1;
  text-transform: uppercase;
  padding-top: calc(var(--t) * 0.04);
  filter: drop-shadow(0 3px 4px rgba(8, 3, 14, 0.45));
}
.tile--ruby { background-image: url("/assets/img/tile-ruby.webp"); }
.tile--teal { background-image: url("/assets/img/tile-teal.webp"); }
.tile--revealed { background-image: url("/assets/img/tile-revealed.webp"); }
.tile--hidden { background-image: url("/assets/img/tile-hidden.webp"); }

.word { display: flex; justify-content: center; gap: calc(var(--t) * 0.09); }

/* ------------------------------------------------------------ how it works */

.section { padding-block: clamp(2.75rem, 1.75rem + 3.5vw, 4.75rem); }
.section__head { text-align: center; max-width: var(--measure); margin: 0 auto 2rem; }
.section__head p { color: var(--pearl-soft); font-size: 1.125rem; margin: 0; }

.how__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.how__grid > * { min-width: 0; }
@media (min-width: 900px) {
  .how__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; }
}

.chain-panel { margin: 0; padding: 1.4rem 0 1.1rem; }
.chain {
  /* Six tiles (FLOWER) must fit inside the gutters and the inset's 20 px rim. */
  --t: clamp(34px, calc((100vw - 2 * var(--gutter) - 40px) / 6.7), 58px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.chain .tile { --t: inherit; }
.chain__link {
  position: relative;
  width: 100%;
  height: calc(var(--t) * 0.5);
  display: flex;
  justify-content: center;
  margin-block: calc(var(--t) * -0.05);
  z-index: 1;
}
.chain__link img { height: 100%; width: auto; }
.chain__join {
  position: absolute;
  left: calc(50% + var(--t) * 0.32);
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--pearl-soft);
  white-space: nowrap;
}
.chain__join b { color: var(--pearl); font-weight: 900; }
.chain-panel figcaption {
  margin-top: 1.1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pearl-soft);
}

.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.1rem; }
.steps li { display: grid; grid-template-columns: 2.1rem 1fr; gap: 0.8rem; align-items: start; }
.steps p { margin: 0; color: var(--pearl-soft); }
.steps strong { color: var(--pearl); font-weight: 800; }
.steps__gem { width: 2.1rem; margin-top: 0.15rem; filter: drop-shadow(0 3px 4px rgba(8, 3, 14, 0.5)); }

/* --------------------------------------------------------------- modes */

.modes {
  list-style: none;
  margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 760px) { .modes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mode { padding: 1rem 0.6rem 0.6rem; text-align: center; }
.mode__gems { display: flex; justify-content: center; align-items: center; gap: 4px; height: 52px; margin-bottom: 0.4rem; }
.mode__gems img { width: 46px; filter: drop-shadow(0 4px 6px rgba(8, 3, 14, 0.55)); }
.mode__gems .is-small { width: 40px; }
.mode h3 { margin-bottom: 0.25rem; font-size: 1.375rem; }
.mode p { margin: 0; color: var(--pearl-soft); font-size: 1rem; line-height: 1.5; }
.difficulty { text-align: center; max-width: var(--measure); margin: 1.6rem auto 0; color: var(--pearl-soft); }
.difficulty strong { color: var(--pearl); font-weight: 800; }

/* ------------------------------------------------------------- screenshots */

.shots__scroller {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 6px var(--gutter) 18px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: rgba(247, 241, 230, 0.35) transparent;
}
.shots__scroller:focus-visible { outline-offset: -4px; border-radius: 12px; }
.shots__scroller li { flex: 0 0 min(62vw, 250px); scroll-snap-align: start; }
@media (min-width: 900px) {
  .shots__scroller {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    max-width: 68rem;
    margin-inline: auto;
    overflow: visible;
  }
}
.shot { margin: 0; }
.shot__phone {
  display: block;
  aspect-ratio: 450 / 976;
  border-radius: 26px;
  border: 5px solid #120c17;
  background: #120c17;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(6, 2, 10, 0.55), 0 0 0 1px rgba(247, 241, 230, 0.12);
}
.shot__phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.shot figcaption { margin-top: 0.75rem; text-align: center; font-weight: 800; font-size: 0.95rem; color: var(--pearl-soft); }

/* ------------------------------------------------------------------ CTA */

.cta { text-align: center; }
.cta .btn-play { margin-top: 0.6rem; }

/* --------------------------------------------------------------- footer */

.site-footer {
  margin-top: auto;
  padding: 2rem var(--gutter) calc(var(--frame) + 1.6rem);
  text-align: center;
  font-size: 0.9375rem;
  color: var(--pearl-dim);
}
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin-bottom: 0.6rem; }
.site-footer a { color: var(--pearl); font-weight: 700; padding: 0.35rem 0.2rem; }
.site-footer p { margin: 0; }

/* ----------------------------------------------------------- text pages */

.page-head {
  padding: calc(var(--frame) + 1.4rem) var(--gutter) 0.6rem;
  text-align: center;
}
.page-head__home { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; border-radius: 12px; }
.page-head__logo { width: min(260px, 64vw); filter: drop-shadow(0 4px 8px rgba(8, 3, 14, 0.5)); }

.prose {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 1.2rem var(--gutter) 2rem;
}
.prose h1 { font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem); text-align: center; text-shadow: 0 2px 6px rgba(10, 4, 16, 0.55); }
.prose h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; margin-bottom: 0.35rem; }
.prose p, .prose li { color: var(--pearl-soft); }
.prose strong { color: var(--pearl); font-weight: 800; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--ruby); }
.prose .meta { text-align: center; color: var(--pearl-dim); font-size: 0.9375rem; }
.prose .lede { text-align: center; font-size: 1.125rem; color: var(--pearl); }

.notice { padding: 0.6rem 0.6rem 0.4rem; margin: 1.4rem 0; }
.notice p { margin: 0 0 0.5em; color: var(--pearl); }
.notice p:last-child { margin-bottom: 0; }
.notice__label {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff8fb0;
}
.todo { color: #ffb3c8; font-weight: 700; }

.faq { margin-top: 1.4rem; }
.faq details { margin-bottom: 0.8rem; padding: 0.15rem 0.4rem; }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--pearl);
  padding: 0.35rem 1.8rem 0.35rem 0;
  position: relative;
  border-radius: 6px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 0.2rem;
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--pearl-soft);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > *:not(summary) { margin-top: 0.4rem; }
.faq details p:last-child, .faq details ul:last-child { margin-bottom: 0.3rem; }

.contact { text-align: center; padding: 1.2rem 0.6rem 0.8rem; margin-top: 2.2rem; }
.contact h2 { margin-top: 0; }
.contact p { margin-bottom: 0.8rem; }
.contact .pill { margin-top: 0.2rem; }

/* ----------------------------------------------------- invite and 404 card */

.card-page {
  flex: 1 0 auto;
  display: grid;
  place-items: center;
  padding: calc(var(--frame) + 1.6rem) var(--gutter) 1rem;
  position: relative;
  overflow: hidden;
}
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 34rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card__logo { width: min(300px, 70vw); margin-top: 0.2rem; filter: drop-shadow(0 4px 8px rgba(8, 3, 14, 0.5)); }
.card h1 { font-size: clamp(1.6rem, 1.15rem + 2.2vw, 2.4rem); margin: 1.4rem 0 0.4rem; text-shadow: 0 2px 6px rgba(10, 4, 16, 0.6); }
.card__sub { color: var(--pearl-soft); margin: 0 0 1.2rem; max-width: 26rem; }
.card .btn-play { margin-top: 0.4rem; }

.code-label { margin: 0.4rem 0 0.5rem; }
.code {
  --t: clamp(42px, 12.4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--t) * 0.09);
  margin: 0 0 1.1rem;
}
.code .tile { --t: inherit; }
.code__dash {
  width: calc(var(--t) * 0.28);
  font-weight: 900;
  font-size: calc(var(--t) * 0.6);
  line-height: 1;
  color: var(--pearl);
  text-align: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 0.9rem;
  margin-top: 1.1rem;
}
.hint-line { margin: 1.3rem 0 0; color: var(--pearl); font-weight: 700; }
.hint-line .arrow { font-family: system-ui, sans-serif; font-weight: 600; }
.small-print { margin: 0.5rem 0 0; font-size: 0.9375rem; color: var(--pearl-dim); }
.broken { margin: 0 0 1rem; padding: 0.7rem 0.6rem 0.5rem; max-width: 28rem; }
.broken p { margin: 0; color: var(--pearl); font-weight: 700; }

/* ------------------------------------------------------------------ motion */

@media (prefers-reduced-motion: no-preference) {
  .float { animation: bob 3.6s ease-in-out infinite alternate; }
  .cuff--ruby { animation: clink-ruby 1s cubic-bezier(0.3, 1.4, 0.5, 1) 0.15s both, sway-ruby 5s ease-in-out 1.2s infinite alternate; }
  .cuff--teal { animation: clink-teal 1s cubic-bezier(0.3, 1.4, 0.5, 1) 0.15s both, sway-teal 5s ease-in-out 1.2s infinite alternate; }
  .gem { animation: drift 11s ease-in-out infinite alternate; }
  .gem--2 { animation-duration: 13s; animation-delay: -4s; }
  .gem--3 { animation-duration: 10s; animation-delay: -7s; }
  .gem--4 { animation-duration: 12s; animation-delay: -2s; }
  .gem--5 { animation-duration: 14s; animation-delay: -9s; }
  .gem--6 { animation-duration: 9s; animation-delay: -5s; }
  .copied-flash { animation: pop 0.35s ease-out; }
}

@keyframes bob { from { transform: translateY(-2px); } to { transform: translateY(2px); } }
@keyframes drift {
  0% { transform: translate(0, 0) rotate(var(--r, 0deg)); }
  50% { transform: translate(4px, -9px) rotate(calc(var(--r, 0deg) + 5deg)); }
  100% { transform: translate(-3px, 6px) rotate(calc(var(--r, 0deg) - 4deg)); }
}
@keyframes clink-ruby {
  0% { transform: translateX(-26px) rotate(-22deg); opacity: 0; }
  55% { transform: translateX(2px) rotate(10deg); opacity: 1; }
  100% { transform: rotate(6deg); }
}
@keyframes clink-teal {
  0% { transform: translateX(26px) rotate(22deg); opacity: 0; }
  55% { transform: translateX(-2px) rotate(-10deg); opacity: 1; }
  100% { transform: rotate(-6deg); }
}
@keyframes sway-ruby { from { transform: rotate(6deg); } to { transform: rotate(4deg); } }
@keyframes sway-teal { from { transform: rotate(-6deg); } to { transform: rotate(-4deg); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }

@media (forced-colors: active) {
  .table-frame, .gems { display: none; }
  .btn-play, .pill { border: 2px solid ButtonText; background: ButtonFace; color: ButtonText; }
}

@media print {
  body::before, .table-frame, .gems { display: none; }
  body { background: #fff; color: #000; }
  .prose p, .prose li { color: #000; }
}
