/*
 * SuChoice marketing site. Colors, type, motion, and corners come from the
 * generated Such Graphics tokens in assets/brand.css (--sg-*); this file only
 * composes them. The mode gradients mirror the app's home cards: each base
 * Material pair is lerped 28% toward the theme primary (start) and 34% toward
 * the theme secondary (end), with a glow lerped 45% toward the tertiary.
 */

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

:root {
  color-scheme: dark;
  --paper: #f5efe4;
  --paper-ink: #160c16;
  --plum: var(--sg-surface, #1a0f1a);
  --plum-deep: var(--sg-bg, #0a050a);
  --panel: var(--sg-panel, #222233);
  --coral: var(--sg-accent, #e08050);
  --gold: var(--sg-accent-hi, #ffc247);
  --lilac: var(--sg-secondary, #905090);
  --rose: var(--sg-tertiary, #c07070);
  --muted: var(--sg-muted, #b9a8b9);
  --line-dark: rgb(255 255 255 / 12%);
  --line-light: rgb(22 12 22 / 17%);
  --shadow-hard: 10px 10px 0 #160c16;
  --card-radius: 18px;
  --shell: min(1180px, 100% - 32px);
  --ease-land: var(--sg-motion-land-curve, cubic-bezier(0.34, 1.56, 0.64, 1));
}

/* App home card gradients (Classic Ember). */
[data-mode="coin"] { --from: rgb(246 151 22 / 88%); --to: rgb(201 81 49 / 95%); --glow: rgb(213 95 50 / 32%); }
[data-mode="snap"] { --from: rgb(166 93 126 / 88%); --to: rgb(177 43 109 / 95%); --glow: rgb(193 64 100 / 32%); }
[data-mode="wheel"] { --from: rgb(224 128 80 / 88%); --to: rgb(176 101 123 / 95%); --glow: rgb(192 112 112 / 32%); }
[data-mode="adventure"] { --from: rgb(90 155 133 / 88%); --to: rgb(79 110 82 / 95%); --glow: rgb(112 119 78 / 32%); }
[data-mode="dice"] { --from: rgb(84 134 187 / 88%); --to: rgb(66 50 132 / 95%); --glow: rgb(101 70 120 / 32%); }
[data-mode="duel"] { --from: rgb(228 77 61 / 88%); --to: rgb(170 46 67 / 95%); --glow: rgb(187 66 66 / 32%); }
[data-mode="bracket"] { --from: rgb(238 94 44 / 88%); --to: rgb(170 46 67 / 95%); --glow: rgb(187 66 66 / 32%); }
[data-mode="time"] { --from: rgb(63 160 161 / 88%); --to: rgb(66 50 132 / 95%); --glow: rgb(101 70 120 / 32%); }

html {
  scroll-behavior: smooth;
  background: var(--plum-deep);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--sg-ink, #fff);
  background: var(--plum-deep);
  font-family: var(--sg-font-body, Inter, ui-sans-serif, system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

button,
a,
input,
select {
  font: inherit;
}

button,
a,
img {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: var(--sg-corner-sm, 12px);
  color: var(--paper-ink);
  background: var(--gold);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform var(--sg-dur-fade, 240ms) var(--sg-motion-fade-curve, ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell,
.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.section-gap {
  padding-block: clamp(64px, 9vw, 128px);
}

/* Type */

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 24px;
  font-family: var(--sg-font-display, Inter, ui-sans-serif, system-ui, sans-serif);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

h1 {
  font-size: clamp(48px, 7vw, 96px);
}

h2 {
  font-size: clamp(38px, 5.2vw, 72px);
}

h1 em,
h2 em {
  color: var(--coral);
  font-style: normal;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow > span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
}

/* Header */

.site-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: var(--shell);
  min-height: 76px;
  margin-inline: auto;
  border-bottom: 1px solid var(--line-dark);
}

.home-header {
  position: sticky;
  top: 0;
  width: 100%;
  padding-inline: max(16px, (100% - 1180px) / 2);
  background: rgb(10 5 10 / 86%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: var(--sg-touch-min, 48px);
  color: var(--sg-ink, #fff);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.brand img {
  border-radius: 22%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
}

.site-nav a {
  display: inline-flex;
  min-height: var(--sg-touch-min, 48px);
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--sg-dur-fade, 240ms) ease-out;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--sg-ink, #fff);
}

.site-nav .nav-cta {
  padding-inline: 16px;
  border-radius: 999px;
  color: var(--paper-ink);
  background: var(--gold);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: var(--paper-ink);
  background: #ffd47a;
}

.menu-button {
  display: none;
}

/* Buttons and store badges */

.button {
  display: inline-flex;
  min-height: var(--sg-touch-min, 48px);
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 22px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition:
    background var(--sg-dur-fade, 240ms) ease-out,
    transform var(--sg-dur-fade, 240ms) ease-out;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--paper-ink);
  background: var(--gold);
  border-color: var(--gold);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ffd47a;
}

.button-quiet {
  color: var(--sg-ink, #fff);
  background: rgb(255 255 255 / 6%);
}

.button-quiet:hover,
.button-quiet:focus-visible {
  background: rgb(255 255 255 / 12%);
}

/* "soon" pill on links to hosts that do not serve yet (data-host links). */
.soon {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid rgb(255 194 71 / 45%);
  border-radius: 999px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  vertical-align: 0.1em;
}

.button .soon {
  margin-left: -4px;
}

.store-row,
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-row {
  margin-bottom: 14px;
}

.store-badge {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 14px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 14px;
  color: #fff;
  background: #000;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    border-color var(--sg-dur-fade, 240ms) ease-out,
    transform var(--sg-dur-fade, 240ms) ease-out;
}

.store-badge::before {
  width: 28px;
  height: 28px;
  flex: none;
  content: "";
  background: center / contain no-repeat;
}

.store-badge-apple::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='6' fill='%231a8cff'/%3E%3Cpath d='M9.4 6.3 15.8 17.6M14.6 6.3 8.2 17.6M6.2 14.3h11.6' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
}

.store-badge-google::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2.6v18.8L13.4 12Z' fill='%2300c3ff'/%3E%3Cpath d='M4 2.6 13.4 12l3.3-3.3Z' fill='%2300e676'/%3E%3Cpath d='M4 21.4 13.4 12l3.3 3.3Z' fill='%23ff3d57'/%3E%3Cpath d='M13.4 12l3.3-3.3 3.9 2.2c.9.5.9 1.7 0 2.2l-3.9 2.2Z' fill='%23ffc400'/%3E%3C/svg%3E");
}

.store-badge:hover,
.store-badge:focus-visible {
  border-color: #fff;
  transform: translateY(-2px);
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 104px) clamp(56px, 7vw, 96px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-lede {
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 21px);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.hero-notes li {
  padding: 6px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-mark {
  --tile: clamp(150px, 17vw, 220px);
  --orbit: calc(var(--tile) * 0.94);
  position: relative;
  display: grid;
  width: calc(var(--orbit) * 2 + 64px);
  max-width: 100%;
  aspect-ratio: 1;
  justify-self: center;
  place-items: center;
}

.hero-mark::before {
  position: absolute;
  inset: 6%;
  z-index: -1;
  border-radius: 50%;
  content: "";
  background:
    radial-gradient(circle at 60% 35%, rgb(255 146 43 / 34%), transparent 58%),
    radial-gradient(circle at 35% 70%, rgb(101 36 194 / 40%), transparent 62%);
  filter: blur(18px);
}

.logo-tile {
  width: var(--tile);
  overflow: hidden;
  border-radius: 22%;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 14%),
    0 24px 60px rgb(217 111 114 / 38%),
    0 8px 18px rgb(0 0 0 / 50%);
}

.logo-tile img {
  width: 100%;
  height: auto;
}

.mode-orbit {
  position: absolute;
  inset: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.orbit-chip {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--from), var(--to));
  box-shadow: 0 8px 14px var(--glow);
  font-size: 24px;
  line-height: 1;
  transform:
    rotate(calc(var(--i) * 45deg - 90deg))
    translateX(var(--orbit))
    rotate(calc(var(--i) * -45deg + 90deg));
}

/* Orbit slots come from position, not inline style attributes, so a future
   Content-Security-Policy needs no style-src-attr exception. */
.orbit-chip:nth-child(1) { --i: 0; }
.orbit-chip:nth-child(2) { --i: 1; }
.orbit-chip:nth-child(3) { --i: 2; }
.orbit-chip:nth-child(4) { --i: 3; }
.orbit-chip:nth-child(5) { --i: 4; }
.orbit-chip:nth-child(6) { --i: 5; }
.orbit-chip:nth-child(7) { --i: 6; }
.orbit-chip:nth-child(8) { --i: 7; }

/* Mode cards, mirroring the app's home grid */

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mode-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  min-height: 236px;
  flex-direction: column;
  padding: 16px;
  overflow: hidden;
  border-radius: var(--card-radius);
  /* A light scrim over the whole card, deeper toward the text, keeps white
     titles at 4.5:1 even on the brightest (coin and wheel) gradients. */
  background:
    linear-gradient(180deg, rgb(10 5 10 / 20%) 0%, rgb(10 5 10 / 28%) 40%, rgb(10 5 10 / 52%) 100%),
    linear-gradient(135deg, var(--from), var(--to));
  box-shadow: 0 8px 14px var(--glow);
}

.mode-emoji {
  display: grid;
  width: 46px;
  height: 46px;
  flex: none;
  place-items: center;
  margin-bottom: auto;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 14px;
  background: rgb(255 255 255 / 18%);
  font-size: 24px;
  line-height: 1;
}

.mode-card h3 {
  margin: 22px 0 2px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgb(0 0 0 / 35%);
}

.mode-sub {
  margin-bottom: 8px;
  color: rgb(255 255 255 / 88%);
  font-size: 13px;
  font-weight: 700;
}

.mode-body {
  margin-bottom: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  text-shadow: 0 1px 2px rgb(0 0 0 / 40%);
}

.mode-try {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  align-self: flex-start;
  margin-top: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-underline-offset: 0.25em;
}

.mode-icon {
  position: absolute;
  right: -22px;
  bottom: -22px;
  z-index: -1;
  width: 128px;
  height: 128px;
  color: rgb(255 255 255 / 14%);
}

/* Try it here: lazy-loaded applets */

.try {
  border-block: 1px solid var(--line-dark);
  background:
    radial-gradient(circle at 12% 0%, rgb(144 80 144 / 20%), transparent 34rem),
    radial-gradient(circle at 92% 100%, rgb(224 128 80 / 14%), transparent 30rem),
    var(--plum);
}

.applet-grid {
  display: grid;
  gap: 18px;
}

.applet-panel {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--sg-corner-lg, 24px);
  background: rgb(10 5 10 / 72%);
  scroll-margin-top: 92px;
}

.applet-panel::before {
  position: absolute;
  top: -1px;
  right: 24px;
  left: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  content: "";
  background: linear-gradient(90deg, var(--from), var(--to));
}

.applet-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.applet-head .mode-emoji {
  margin: 0;
  background: linear-gradient(135deg, var(--from), var(--to));
  box-shadow: 0 8px 14px var(--glow);
}

.applet-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.applet-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.applet-mount {
  position: relative;
  min-width: 0;
  flex: 1;
}

/* Reserve room while an applet loads so the section does not jump. */
.applet-mount:empty {
  min-height: 300px;
  border-radius: var(--sg-corner-md, 16px);
  background:
    linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 5%) 50%, transparent 70%) 0 0 / 220% 100%,
    var(--panel);
  animation: applet-wait 1.4s linear infinite;
}

.applet-panel-wheel .applet-mount:empty {
  min-height: 420px;
}

@keyframes applet-wait {
  to { background-position: -220% 0, 0 0; }
}

.applet-fallback {
  display: grid;
  min-height: 180px;
  place-content: center;
  gap: 8px;
  padding: 24px;
  border: 1px dashed var(--line-dark);
  border-radius: var(--sg-corner-md, 16px);
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.applet-noscript {
  margin: 18px 0 0;
  color: var(--muted);
}

/* Snap & Decide */

.snap-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 5vw, 64px);
  border-radius: var(--sg-corner-lg, 24px);
  background:
    radial-gradient(circle at 90% 10%, rgb(255 194 71 / 16%), transparent 22rem),
    linear-gradient(135deg, rgb(166 93 126 / 55%), rgb(177 43 109 / 40%) 60%, rgb(26 15 26 / 90%));
  box-shadow: 0 14px 40px var(--glow);
}

.snap-copy p {
  color: rgb(255 255 255 / 86%);
  font-size: clamp(16px, 1.5vw, 18px);
}

.snap-copy p:last-child {
  margin-bottom: 0;
}

.snap-copy a {
  color: #fff;
  font-weight: 800;
  text-underline-offset: 0.2em;
}

.snap-steps {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.snap-steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--sg-corner-md, 16px);
  background: rgb(10 5 10 / 42%);
  font-weight: 800;
}

.snap-steps b {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.12em;
}

/* Unlocks */

.unlock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
}

.unlock-card {
  position: relative;
  min-width: 0;
  padding: 24px 22px 22px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--card-radius);
  background: var(--plum);
}

.unlock-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--from), var(--to));
}

.unlock-kicker {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  /* Shaded so 11px white text clears 4.5:1 on every mode gradient. */
  background:
    linear-gradient(rgb(10 5 10 / 42%), rgb(10 5 10 / 42%)),
    linear-gradient(135deg, var(--from), var(--to));
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.unlock-card h3 {
  margin: 18px 0 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.unlock-card p {
  margin: 0;
  color: var(--muted);
}

.fine-print {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.fine-print strong {
  color: var(--sg-ink, #fff);
}

/* Get the app */

.get-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line-dark);
  border-radius: var(--sg-corner-lg, 24px);
  background:
    radial-gradient(circle at 100% 0%, rgb(255 146 43 / 22%), transparent 26rem),
    radial-gradient(circle at 0% 100%, rgb(101 36 194 / 28%), transparent 26rem),
    var(--plum);
}

.get-card > img {
  width: clamp(72px, 10vw, 120px);
  height: auto;
  border-radius: 22%;
  box-shadow: 0 16px 40px rgb(217 111 114 / 34%);
}

.get-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(32px, 4.4vw, 58px);
}

.desktop-downloads {
  margin-top: 26px;
}

.desktop-title {
  margin: 0 0 10px;
  font-weight: 700;
}

.desktop-size {
  margin-left: 6px;
  opacity: 0.7;
  font-size: 0.85em;
}

.desktop-note {
  max-width: 60ch;
  margin: 12px 0 0;
  font-size: 14px;
  opacity: 0.75;
}

/* Footer */

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px 28px;
  align-items: center;
  padding-block: 32px 40px;
  border-top: 1px solid var(--line-dark);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.footer-tagline {
  color: var(--sg-ink, #fff);
  font-style: italic;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

.footer-links a {
  display: inline-flex;
  min-height: var(--sg-touch-min, 48px);
  align-items: center;
  color: inherit;
  text-underline-offset: 0.25em;
  transition: color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--sg-ink, #fff);
}

.footer-meta {
  grid-column: 1 / -1;
  font-size: 12px;
}

/* Legal and support pages */

.document-page {
  background:
    radial-gradient(circle at 84% 4%, rgb(144 80 144 / 22%), transparent 29rem),
    linear-gradient(180deg, var(--plum-deep) 0 30rem, #130a13 52rem, var(--plum-deep) 100%);
}

.document-header {
  position: relative;
}

.document-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 34px);
}

.document-nav a {
  display: inline-flex;
  min-height: var(--sg-touch-min, 48px);
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-decoration-color: transparent;
  text-transform: uppercase;
  text-underline-offset: 0.4em;
}

.document-nav a:hover,
.document-nav a:focus-visible,
.document-nav a[aria-current="page"] {
  color: var(--sg-ink, #fff);
  text-decoration-color: var(--gold);
}

.document-shell {
  padding-bottom: clamp(70px, 9vw, 130px);
}

.document-hero {
  max-width: 980px;
  padding-block: clamp(64px, 9vw, 124px) clamp(48px, 7vw, 88px);
}

.document-hero h1 {
  max-width: 900px;
  font-size: clamp(52px, 8.4vw, 116px);
}

.document-lede {
  max-width: 820px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

.document-lede a {
  color: var(--sg-ink, #fff);
  text-underline-offset: 0.2em;
}

.document-status {
  max-width: 830px;
  padding: 18px 20px;
  margin: 0;
  border: 1px solid rgb(255 194 71 / 48%);
  border-radius: var(--sg-corner-sm, 12px);
  color: var(--muted);
  background: rgb(255 194 71 / 8%);
}

.document-status strong {
  color: var(--gold);
}

.document-content {
  overflow: hidden;
  border: 2px solid var(--paper-ink);
  border-radius: var(--sg-corner-md, 16px);
  color: var(--paper-ink);
  background: var(--paper);
  box-shadow: var(--shadow-hard);
}

.document-content section {
  padding: clamp(26px, 4vw, 52px);
}

.document-content section + section {
  border-top: 1px solid var(--line-light);
}

.document-content h2 {
  margin-bottom: 22px;
  font-size: clamp(27px, 3.2vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.document-content h3 {
  margin: 28px 0 8px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.document-content p,
.document-content li {
  max-width: 880px;
  color: rgb(22 12 22 / 78%);
}

.document-content p:last-child,
.document-content ul:last-child {
  margin-bottom: 0;
}

.document-content li + li {
  margin-top: 8px;
}

.document-content a {
  color: #873f2a;
  font-weight: 750;
  text-underline-offset: 0.18em;
}

.support-hero .button {
  width: fit-content;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.support-grid section + section {
  border-top: 0;
}

.support-grid section {
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.support-grid section:nth-child(even) {
  border-right: 0;
}

.document-footer {
  border-top: 1px solid var(--line-dark);
}

/* Responsive */

@media (min-width: 760px) {
  .mode-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .mode-card { padding: 18px; }
}

@media (min-width: 1024px) {
  .mode-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .applet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "wheel wheel"
      "dice coin";
  }

  .applet-panel-wheel { grid-area: wheel; }
  .applet-panel-dice { grid-area: dice; }
  .applet-panel-coin { grid-area: coin; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 36px;
  }

  /* Copy and calls to action first on phones; the mark follows. */
  .hero-mark {
    --tile: clamp(116px, 30vw, 170px);
  }

  .snap-card,
  .unlock-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .menu-button {
    position: relative;
    z-index: 2;
    display: grid;
    width: 48px;
    height: 48px;
    place-content: center;
    gap: 7px;
    padding: 0;
    border: 1px solid var(--line-dark);
    border-radius: var(--sg-corner-sm, 12px);
    color: #fff;
    background: var(--plum-deep);
    cursor: pointer;
  }

  .menu-button span:not(.sr-only) {
    display: block;
    width: 21px;
    height: 2px;
    background: currentColor;
    transition: transform 160ms ease-out;
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(4.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 16px;
    display: none;
    width: min(300px, 100% - 32px);
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    border: 1px solid var(--line-dark);
    border-radius: var(--sg-corner-md, 16px);
    background: var(--plum-deep);
    box-shadow: 0 18px 40px rgb(0 0 0 / 50%);
  }

  .site-nav.open { display: grid; }
  .site-nav a { border-bottom: 1px solid var(--line-dark); }
  .site-nav .nav-cta { justify-content: center; margin-top: 14px; border-bottom: 0; }
}

@media (max-width: 680px) {
  .get-card { grid-template-columns: minmax(0, 1fr); }

  .document-header {
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 14px;
  }

  .document-nav {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--line-dark);
  }

  .document-hero h1 { font-size: clamp(48px, 15vw, 76px); }
  .document-content { box-shadow: 6px 6px 0 var(--paper-ink); }
  .document-content section { padding: 26px 20px; }
  .support-grid { grid-template-columns: 1fr; }
  .support-grid section { border-right: 0; }
}

@media (max-width: 520px) {
  .mode-grid { gap: 12px; }
  .mode-card { min-height: 220px; padding: 14px; }
  .mode-card h3 { font-size: 17px; }
  .mode-body { font-size: 13px; }
  .mode-icon { width: 96px; height: 96px; }
  .orbit-chip { width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 13px; font-size: 19px; }
  .store-badge { flex: 1 1 100%; justify-content: center; }
  .hero-links .button { flex: 1 1 auto; }
  .applet-panel { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .applet-mount:empty { animation: none; }
  .button:hover,
  .button:focus-visible,
  .store-badge:hover,
  .store-badge:focus-visible { transform: none; }
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 56px;
  margin: 0;
}

.faq-list dt {
  margin-bottom: 8px;
  font-weight: 700;
}

.faq-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 760px) {
  .faq-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
