/* ==========================================================================
   Reign - the game's pages on laserboy.com

   Colors are the brand tokens from the game's design/tokens.json ("Royal Night").
   Type is Fredoka (SIL Open Font License 1.1, see fonts/OFL.txt), served from
   this site. Nothing on these pages loads from anywhere else.
   ========================================================================== */

@font-face {
  font-family: "Fredoka";
  src: url("/reign/fonts/Fredoka-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("/reign/fonts/Fredoka-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("/reign/fonts/Fredoka-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("/reign/fonts/Fredoka-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Brand */
  --night: #170F33;
  --night-raised: #241A4D;
  --night-line: #3A2C73;
  --court: #4B2A9B;
  --velvet: #7C4DE8;
  --gold: #F6B93B;
  --gold-deep: #D4901A;
  --gold-pale: #FFE6A8;
  --jester-red: #E5484D;
  --teal: #22B8A7;
  --parchment: #FFF6E5;
  --parchment-deep: #F1E2C3;
  --ink: #22163F;
  --mist: #C9C2EA;
  --white: #FFFFFF;

  /* Shape, as in the app: 24 for cards, 16 for buttons, 10 for chips */
  --r-card: 24px;
  --r-button: 16px;
  --r-chip: 10px;

  --font: "Fredoka", ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);

  /* The sky: two tiles of small stars, three in four mist and one in four pale gold */
  --stars-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cg fill='%23C9C2EA'%3E%3Ccircle cx='190' cy='235.1' r='1.7' opacity='0.58'/%3E%3Ccircle cx='246.7' cy='77.6' r='1.2' opacity='0.66'/%3E%3Ccircle cx='39.5' cy='127.4' r='0.7' opacity='0.75'/%3E%3Ccircle cx='17.6' cy='412.5' r='1.8' opacity='0.68'/%3E%3Ccircle cx='101.6' cy='12.6' r='1.2' opacity='0.57'/%3E%3Ccircle cx='218' cy='268.9' r='1.2' opacity='0.68'/%3E%3Ccircle cx='116.8' cy='417.2' r='1.8' opacity='0.77'/%3E%3Ccircle cx='132.4' cy='96.5' r='0.9' opacity='0.39'/%3E%3Ccircle cx='168.2' cy='355.6' r='1.1' opacity='0.83'/%3E%3Ccircle cx='2.7' cy='88.1' r='1.7' opacity='0.58'/%3E%3Ccircle cx='166.9' cy='30.7' r='1.4' opacity='0.74'/%3E%3Ccircle cx='270.4' cy='48.9' r='1.1' opacity='0.46'/%3E%3Ccircle cx='165.6' cy='358.8' r='1.4' opacity='0.4'/%3E%3Ccircle cx='89.6' cy='108.5' r='1.5' opacity='0.51'/%3E%3Ccircle cx='30.8' cy='37.8' r='1.3' opacity='0.47'/%3E%3Ccircle cx='156.1' cy='190.3' r='1.8' opacity='0.59'/%3E%3Ccircle cx='363.9' cy='76.8' r='0.8' opacity='0.8'/%3E%3Ccircle cx='16.3' cy='404.3' r='0.9' opacity='0.7'/%3E%3Ccircle cx='346' cy='250.5' r='1' opacity='0.44'/%3E%3C/g%3E%3Cg fill='%23FFE6A8'%3E%3Ccircle cx='66.1' cy='6.3' r='1.2' opacity='0.38'/%3E%3Ccircle cx='36.6' cy='139.7' r='1.8' opacity='0.73'/%3E%3Ccircle cx='103.5' cy='42.4' r='0.7' opacity='0.75'/%3E%3Ccircle cx='234.9' cy='187.9' r='0.8' opacity='0.72'/%3E%3Ccircle cx='407.8' cy='337.4' r='1' opacity='0.79'/%3E%3Ccircle cx='104.8' cy='79.7' r='1.5' opacity='0.82'/%3E%3Ccircle cx='399.1' cy='370.5' r='1.3' opacity='0.56'/%3E%3C/g%3E%3C/svg%3E");
  --stars-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560'%3E%3Cg fill='%23C9C2EA'%3E%3Ccircle cx='306.9' cy='193.7' r='2.2' opacity='0.49'/%3E%3Ccircle cx='192.5' cy='232.7' r='2.4' opacity='0.4'/%3E%3Ccircle cx='125.9' cy='195.8' r='2.4' opacity='0.51'/%3E%3Ccircle cx='235' cy='409.1' r='1.6' opacity='0.44'/%3E%3Ccircle cx='228.5' cy='443.9' r='1.7' opacity='0.45'/%3E%3Ccircle cx='167.1' cy='286.7' r='1.2' opacity='0.56'/%3E%3Ccircle cx='288.8' cy='421.3' r='2' opacity='0.64'/%3E%3Ccircle cx='222.5' cy='346.1' r='2.1' opacity='0.4'/%3E%3Ccircle cx='222.8' cy='232.4' r='1.9' opacity='0.58'/%3E%3Ccircle cx='369.2' cy='179.8' r='2.2' opacity='0.7'/%3E%3Ccircle cx='411.2' cy='540.7' r='1.2' opacity='0.49'/%3E%3Ccircle cx='512.9' cy='537.4' r='2.2' opacity='0.71'/%3E%3Ccircle cx='172.4' cy='4.1' r='1.8' opacity='0.79'/%3E%3C/g%3E%3Cg fill='%23FFE6A8'%3E%3Ccircle cx='205.7' cy='77.9' r='1.1' opacity='0.52'/%3E%3Ccircle cx='12.3' cy='517.3' r='2.3' opacity='0.42'/%3E%3Ccircle cx='288.3' cy='4.7' r='1.2' opacity='0.57'/%3E%3C/g%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--night);
  color: var(--white);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* The night sky sits behind everything and stays put while the page scrolls. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background-image: var(--stars-a);
  background-size: 420px 420px;
  opacity: 0.8;
}

body::after {
  background-image: var(--stars-b);
  background-size: 560px 560px;
  background-position: 70px 120px;
  animation: twinkle 4.5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.9; }
  to { opacity: 0.2; }
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-7px); }
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

a {
  color: var(--gold);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold-pale);
}

:focus-visible {
  outline: 3px solid var(--gold-pale);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* Nothing decorative may widen the page. */
main {
  overflow-x: clip;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: var(--r-chip);
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
  color: var(--ink);
}

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

/* ---- The court, behind the top of the page, as on the app's Home ---- */

.court {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: 920px;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(23, 15, 51, 0.38) 0%, rgba(23, 15, 51, 0.6) 50%, rgba(23, 15, 51, 0.9) 100%),
    url("/reign/images/court-wide.jpg");
  background-image:
    linear-gradient(180deg, rgba(23, 15, 51, 0.38) 0%, rgba(23, 15, 51, 0.6) 50%, rgba(23, 15, 51, 0.9) 100%),
    image-set(url("/reign/images/court-wide.webp") type("image/webp"), url("/reign/images/court-wide.jpg") type("image/jpeg"));
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 100%);
}

.court.is-short {
  height: 420px;
}

/* ---- Header ---- */

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.brand:hover {
  color: var(--gold-pale);
}

.brand picture {
  flex: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 230, 168, 0.28), 0 6px 14px -6px rgba(0, 0, 0, 0.7);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-chip);
  color: var(--mist);
  font-size: 0.975rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(124, 77, 232, 0.24);
  color: var(--white);
}

/* ---- Shared type ---- */

.eyebrow {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}

.section {
  padding-block: clamp(56px, 8vw, 104px);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--mist);
  font-size: 1.125rem;
}

.gold {
  color: var(--gold);
}

/* ---- Buttons, chunky with a darker lip, as in the app ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 0;
  border-radius: var(--r-button);
  background: var(--gold);
  box-shadow: 0 4px 0 var(--gold-deep);
  color: var(--ink);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.btn:hover {
  background: #FFC64F;
  color: var(--ink);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--gold-deep);
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---- The phone: a rounded rectangle with a dark bezel ---- */

.phone {
  --w: 280px;
  flex: none;
  width: var(--w);
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.175);
  background: linear-gradient(145deg, #2B2350 0%, #0C0719 22%, #0C0719 78%, #241C45 100%);
  box-shadow:
    inset 0 0 0 1px rgba(201, 194, 234, 0.22),
    0 0 0 1px #05030C,
    0 34px 60px -28px rgba(0, 0, 0, 0.85),
    0 0 90px -10px rgba(124, 77, 232, 0.35);
}

.phone img {
  width: 100%;
  aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--w) * 0.141);
  background: var(--night);
}

/* ---- The jester's speech bubble ---- */

.bubble {
  position: relative;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--parchment);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7);
  color: var(--ink);
  font-size: 0.975rem;
  font-weight: 500;
  line-height: 1.35;
}

.bubble::after {
  content: "";
  position: absolute;
  left: 30px;
  bottom: -7px;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--parchment);
  transform: rotate(45deg);
}

/* ---- Hero ---- */

.hero {
  padding-block: clamp(20px, 4vw, 48px) clamp(56px, 8vw, 96px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero h1 {
  line-height: 0;
}

.hero h1 img {
  width: clamp(230px, 31vw, 380px);
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45));
}

.tagline {
  margin-top: clamp(18px, 2.4vw, 28px);
  font-size: clamp(2.125rem, 4.8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
}

.lede {
  max-width: 30rem;
  margin-top: 16px;
  color: var(--mist);
  font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: balance;
}

.lede strong {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-weight: 500;
}

.hero-actions {
  margin-top: 26px;
}

.stores {
  margin-top: 28px;
}

.soon {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--mist);
  font-size: 0.975rem;
}

.soon-chip {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(246, 185, 59, 0.6);
  border-radius: 999px;
  background: rgba(246, 185, 59, 0.14);
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The store badges are the site's own files. Reign is not out yet, so they are
   pictures, not links, and they are dimmed. The Google Play file carries its own
   clear space, which the negative margin takes back so the two line up. */
.store-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.store-badges img {
  opacity: 0.45;
  filter: grayscale(1);
  cursor: not-allowed;
}

.store-badges .apple {
  width: 144px;
  height: 48px;
}

.store-badges .google {
  width: 184px;
  height: 71px;
  max-width: none;
  margin: -11.5px -11.5px;
}

.stage {
  --j: clamp(128px, 15vw, 172px);
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: min(100%, 470px);
  margin-inline: auto;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 6% -4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 77, 232, 0.42), rgba(124, 77, 232, 0));
}

.stage .phone {
  --w: clamp(236px, 26vw, 300px);
}

.stage .jester {
  position: absolute;
  left: 0;
  bottom: -14px;
  width: var(--j);
  filter: drop-shadow(0 16px 14px rgba(0, 0, 0, 0.45));
  animation: float 3s ease-in-out infinite alternate;
}

.stage .bubble {
  position: absolute;
  left: 0;
  bottom: calc(var(--j) * 1.6 - 2px);
  width: clamp(150px, 17vw, 196px);
}

/* ---- How to play ---- */

.how-head {
  display: flex;
  align-items: flex-end;
  gap: clamp(16px, 3vw, 28px);
}

.how-head picture {
  flex: none;
}

.how-head .jester {
  width: clamp(84px, 11vw, 124px);
}

.rule-line {
  margin-top: 14px;
  color: var(--white);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 500;
  line-height: 1.35;
  text-wrap: balance;
}

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "head phone"
    "rules phone";
  align-items: center;
  gap: 0 clamp(32px, 5vw, 72px);
}

.how-head {
  grid-area: head;
  align-self: end;
}

.how-phone {
  grid-area: phone;
}

.how-phone .phone {
  --w: clamp(240px, 24vw, 280px);
}

.how-grid .rules {
  grid-area: rules;
  align-self: start;
}

.how-grid figcaption,
.strip figcaption {
  margin-top: 14px;
  color: var(--mist);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
}

.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rule {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--night-line);
  border-radius: var(--r-card);
  background: rgba(36, 26, 77, 0.86);
}

.rule p {
  margin-top: 6px;
  color: var(--mist);
  font-size: 0.975rem;
  line-height: 1.5;
}

.lesson-board {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.4));
}

.crown-ink {
  fill: var(--ink);
}

.crown-clash {
  fill: var(--jester-red);
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linejoin: round;
  paint-order: stroke;
}

.hint-focus {
  fill: rgba(34, 184, 167, 0.42);
  stroke: var(--teal);
  stroke-width: 1.8;
}

/* ---- What's in it ---- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  grid-column: span 4;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--night-line);
  border-radius: var(--r-card);
  background: linear-gradient(180deg, rgba(36, 26, 77, 0.94), rgba(36, 26, 77, 0.8));
  overflow: hidden;
}

.card.is-gold {
  border-color: rgba(246, 185, 59, 0.6);
  box-shadow: 0 0 0 1px rgba(246, 185, 59, 0.12), 0 24px 60px -40px rgba(246, 185, 59, 0.5);
}

.card.span-3 { grid-column: span 3; }
.card.span-5 { grid-column: span 5; }
.card.span-7 { grid-column: span 7; }
.card.span-12 { grid-column: span 12; }

.card > p,
.card-copy > p {
  margin-top: 10px;
  color: var(--mist);
}

.card .fine {
  font-size: 0.9375rem;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--court);
  box-shadow: inset 0 0 0 1px rgba(124, 77, 232, 0.7);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--gold-pale);
}

/* The daily's week */
.week {
  display: grid;
  grid-template-columns: 5fr 2fr;
  gap: 14px;
  margin-top: 22px;
}

.week-group > p {
  margin-bottom: 8px;
  color: var(--mist);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.week-group > p b {
  color: var(--white);
  font-weight: 600;
}

.week-group ol {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
}

.week li {
  padding: 10px 2px 9px;
  border: 1px solid var(--night-line);
  border-radius: 12px;
  background: rgba(23, 15, 51, 0.7);
  text-align: center;
  line-height: 1.2;
}

.week .weekend li {
  border-color: rgba(246, 185, 59, 0.5);
}

.week .day {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}

.week .tier {
  display: block;
  margin-top: 3px;
  color: var(--mist);
  font-size: 0.75rem;
  font-weight: 500;
}

.pips {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-top: 7px;
}

.pips i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--night-line);
}

.pips i.on {
  background: var(--gold);
}

.streak-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--mist);
  font-size: 0.975rem;
  line-height: 1.45;
}

.streak-row svg {
  flex: none;
  width: 30px;
  height: 30px;
}

.streak-row .shield {
  fill: var(--gold);
}

/* Hints: the picture is a piece of a real screenshot */
.card.hints {
  display: flex;
  flex-direction: column;
  grid-row: span 2;
  padding-bottom: 0;
}

.shot-crop {
  margin: 22px auto 0;
  width: min(100%, 350px);
  border: 4px solid #0C0719;
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 0 0 1px rgba(201, 194, 234, 0.2);
  overflow: hidden;
  background: var(--night);
}

.card.hints .shot-crop {
  margin-top: auto;
}

.card.hints .card-copy {
  margin-bottom: 22px;
}

.shot-crop img {
  width: 100%;
  aspect-ratio: 760 / 1046;
}

/* Freeplay: four sizes, four difficulties */
.sizes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.sizes li {
  padding: 10px 4px 8px;
  border: 1px solid var(--night-line);
  border-radius: 14px;
  background: rgba(23, 15, 51, 0.7);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.sizes i {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 7px;
  border-radius: 7px;
  background: linear-gradient(135deg, #BBA8F7 0%, #9DCBFB 28%, #A6E4BA 48%, #FBE491 66%, #FFC79A 82%, #F8A9BA 100%);
  overflow: hidden;
}

/* The lines between the cells. The layer is one line larger than the tile, so
   the last line of each direction falls outside it and every cell is the same size. */
.sizes i::before {
  --line: 1.5px;
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--line)) calc(-1 * var(--line)) 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(100% / var(--n) - var(--line)), #170F33 calc(100% / var(--n) - var(--line)) calc(100% / var(--n))),
    repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--n) - var(--line)), #170F33 calc(100% / var(--n) - var(--line)) calc(100% / var(--n)));
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chips li {
  padding: 4px 11px;
  border-radius: var(--r-chip);
  background: rgba(124, 77, 232, 0.3);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Ranks and badges */
.ranks {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
  text-align: center;
}

.ranks img {
  width: min(100%, 76px);
  margin-inline: auto;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.35));
}

.ranks span {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  padding: 20px max(0px, calc((100% - 390px) / 2)) 0;
  border-top: 1px solid var(--night-line);
}

.badges img {
  width: 46px;
  height: 46px;
}

/* The share picture */
.card.share {
  display: flex;
  flex-direction: column;
}

.share-pic {
  width: min(100%, 250px);
  margin: 24px auto 0;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(201, 194, 234, 0.25), 0 26px 40px -24px rgba(0, 0, 0, 0.9);
  transform: rotate(-2.5deg);
  overflow: hidden;
}

.share-pic img {
  width: 100%;
  aspect-ratio: 4 / 5;
}

/* The promise */
.card.promise {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 12px clamp(24px, 4vw, 56px);
  background:
    radial-gradient(80% 160% at 0% 50%, rgba(124, 77, 232, 0.5), rgba(124, 77, 232, 0) 70%),
    linear-gradient(180deg, rgba(36, 26, 77, 0.94), rgba(36, 26, 77, 0.8));
}

.card.promise h3 {
  font-size: clamp(1.75rem, 3.4vw, 2.375rem);
  line-height: 1.1;
}

.card.promise p {
  margin-top: 0;
  font-size: 1.125rem;
}

/* The short facts */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 28px;
}

.facts h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
}

.facts h3 svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: var(--gold);
}

.facts p {
  margin-top: 6px;
  color: var(--mist);
  font-size: 0.975rem;
  line-height: 1.5;
}

/* ---- The gallery: a strip that scrolls sideways and snaps ---- */

.gallery .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

.strip-nav {
  display: flex;
  flex: none;
  gap: 10px;
}

/* The two buttons need the page's small script. Without it they stay hidden. */
.strip-nav[hidden] {
  display: none;
}

.strip-nav button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--night-line);
  border-radius: 50%;
  background: var(--night-raised);
  color: var(--white);
  cursor: pointer;
}

.strip-nav button:hover {
  border-color: var(--velvet);
  background: var(--court);
}

.strip-nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.strip {
  display: flex;
  gap: clamp(18px, 2.4vw, 28px);
  padding-block: 8px 26px;
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  scrollbar-width: thin;
  scrollbar-color: var(--night-line) transparent;
  -webkit-overflow-scrolling: touch;
}

.strip::-webkit-scrollbar {
  height: 8px;
}

.strip::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: var(--night-line);
}

.strip figure {
  flex: none;
  scroll-snap-align: start;
}

.strip .phone {
  --w: clamp(208px, 22vw, 244px);
  box-shadow:
    inset 0 0 0 1px rgba(201, 194, 234, 0.22),
    0 0 0 1px #05030C,
    0 22px 30px -22px rgba(0, 0, 0, 0.9);
}

/* ---- Reign Supreme ---- */

.supreme-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid rgba(246, 185, 59, 0.6);
  border-radius: 32px;
  background:
    radial-gradient(90% 120% at 18% 20%, rgba(75, 42, 155, 0.75), rgba(75, 42, 155, 0) 70%),
    linear-gradient(180deg, rgba(36, 26, 77, 0.96), rgba(23, 15, 51, 0.96));
  overflow: hidden;
}

.supreme-art {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
}

/* Gold rays, as behind him on the app's own sheet */
.supreme-art::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 150%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(from 5deg, rgba(246, 185, 59, 0.2) 0deg 9deg, rgba(246, 185, 59, 0) 9deg 20deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
  transform: translate(-50%, -50%);
}

.supreme-art img {
  position: relative;
  width: clamp(170px, 20vw, 236px);
  filter: drop-shadow(0 18px 16px rgba(0, 0, 0, 0.45));
}

.supreme-art .tagline-small {
  position: relative;
  margin-top: 14px;
  color: var(--gold-pale);
  font-size: 1.125rem;
  font-weight: 500;
}

.supreme-copy h2 {
  color: var(--gold);
}

.supreme-copy > p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--mist);
  font-size: 1.125rem;
}

.supreme-copy > p strong {
  color: var(--white);
  font-weight: 600;
}

.perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin-top: 24px;
}

.perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.35;
}

.perks svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  fill: var(--gold);
}

.plans {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.plans li {
  flex: 1 1 150px;
  padding: 12px 16px;
  border: 1px solid var(--night-line);
  border-radius: var(--r-button);
  background: rgba(23, 15, 51, 0.6);
  line-height: 1.3;
}

.plans b {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
}

.plans span {
  color: var(--mist);
  font-size: 0.875rem;
}

.supreme-copy > p.fine {
  margin-top: 16px;
  font-size: 0.9375rem;
}

.free-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 28px;
  margin-top: 28px;
}

.free-list li {
  position: relative;
  padding-left: 28px;
  color: var(--mist);
  line-height: 1.45;
}

.free-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.32em;
  width: 13px;
  height: 7px;
  border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  border-radius: 1px;
  transform: rotate(-45deg);
}

.free-list b {
  color: var(--white);
  font-weight: 500;
}

.free-head {
  margin-top: clamp(40px, 5vw, 60px);
}

/* ---- Coming soon, once more, before the footer ---- */

.closing .wrap {
  display: grid;
  justify-items: center;
  text-align: center;
}

.closing .jester {
  width: clamp(150px, 18vw, 200px);
  animation: float 3s ease-in-out infinite alternate;
  filter: drop-shadow(0 18px 16px rgba(0, 0, 0, 0.45));
}

.closing h2 {
  margin-top: 22px;
}

.closing p.lede {
  margin-inline: auto;
}

.closing .soon,
.closing .store-badges {
  justify-content: center;
}

.closing .stores {
  margin-top: 24px;
}

/* ---- Footer ---- */

.site-foot {
  margin-top: clamp(24px, 4vw, 48px);
  padding-block: 36px 44px;
  border-top: 1px solid var(--night-line);
  background: rgba(23, 15, 51, 0.82);
  color: var(--mist);
  font-size: 0.9375rem;
  text-align: center;
}

.site-foot ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
}

.site-foot li a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--r-chip);
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}

.site-foot li a:hover {
  background: rgba(124, 77, 232, 0.24);
  color: var(--gold-pale);
}

.site-foot .copyright {
  margin-top: 14px;
}

.site-foot .copyright a {
  color: var(--mist);
}

.site-foot .copyright a:hover {
  color: var(--white);
}

/* ---- Privacy and Terms: a comfortable column on parchment ---- */

.legal {
  padding-block: clamp(12px, 3vw, 36px) clamp(48px, 7vw, 88px);
}

.doc {
  width: min(100% - 2 * var(--gutter), 820px);
  margin-inline: auto;
  padding: clamp(24px, 6vw, 64px);
  border: 3px solid var(--parchment-deep);
  border-radius: 28px;
  background: var(--parchment);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  color: #33264F;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.doc h1 {
  color: var(--court);
  font-size: clamp(2rem, 5.4vw, 2.875rem);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}

.doc .effective {
  margin-top: 10px;
  color: #5B4D7C;
  font-size: 1rem;
  font-weight: 500;
}

.doc .intro {
  margin-top: 26px;
  color: var(--ink);
  font-size: 1.1875rem;
  line-height: 1.6;
}

.doc h2 {
  margin-top: 2.1em;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

.doc h3 {
  margin-top: 1.6em;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
}

.doc p {
  margin-top: 0.9em;
}

.doc ul,
.doc ol {
  margin-top: 0.9em;
  padding-left: 1.4em;
}

.doc ul {
  list-style: disc;
}

.doc ol {
  list-style: decimal;
}

.doc li {
  margin-top: 0.45em;
  padding-left: 0.2em;
}

.doc li::marker {
  color: var(--court);
  font-weight: 600;
}

.doc strong {
  color: var(--ink);
  font-weight: 600;
}

.doc a {
  color: var(--court);
  font-weight: 500;
}

.doc a:hover {
  color: var(--velvet);
}

.doc :focus-visible {
  outline-color: var(--court);
}

.doc .summary {
  margin-top: 26px;
  padding: 20px 24px;
  border: 1px solid var(--parchment-deep);
  border-radius: 18px;
  background: #FFFBF2;
}

.doc .summary h2 {
  margin-top: 0;
  font-size: 1.125rem;
}

.doc .summary ul {
  margin-top: 0.5em;
}

.doc .caps {
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  line-height: 1.65;
}

.doc address {
  margin-top: 0.9em;
  font-style: normal;
}

.doc hr {
  height: 1px;
  margin: 2.4em 0 0;
  border: 0;
  background: var(--parchment-deep);
}

.doc .doc-foot {
  margin-top: 1.4em;
  color: #5B4D7C;
  font-size: 0.975rem;
}

/* ---- Narrower screens ---- */

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

  .card,
  .card.span-3,
  .card.span-5,
  .card.span-7 {
    grid-column: span 6;
  }

  .card.span-12,
  .card.wide-on-tablet {
    grid-column: span 12;
  }

  .card.hints {
    grid-row: auto;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .free-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .hero h1 img,
  .lede {
    margin-inline: auto;
  }

  .soon,
  .store-badges {
    justify-content: center;
  }

  .stage {
    --j: 124px;
    width: min(100%, 350px);
    margin-top: 8px;
    text-align: left;
  }

  .stage .phone {
    --w: 232px;
  }

  .stage .bubble {
    width: 148px;
    font-size: 0.9rem;
  }

  .how-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "phone"
      "rules";
    gap: 0;
  }

  .how-phone {
    justify-self: center;
    margin-bottom: 36px;
  }

  .how-head {
    justify-self: start;
  }

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

  .court {
    height: 820px;
    background-image:
      linear-gradient(180deg, rgba(23, 15, 51, 0.38) 0%, rgba(23, 15, 51, 0.6) 50%, rgba(23, 15, 51, 0.9) 100%),
      url("/reign/images/court-tall.jpg");
    background-image:
      linear-gradient(180deg, rgba(23, 15, 51, 0.38) 0%, rgba(23, 15, 51, 0.6) 50%, rgba(23, 15, 51, 0.9) 100%),
      image-set(url("/reign/images/court-tall.webp") type("image/webp"), url("/reign/images/court-tall.jpg") type("image/jpeg"));
  }

  .court.is-short {
    height: 360px;
  }
}

@media (min-width: 681px) and (max-width: 1000px) {
  .card.hints,
  .card.share {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }

  .card.hints {
    align-items: flex-end;
  }

  .card.hints .card-copy {
    align-self: center;
  }

  .card.hints .shot-crop,
  .card.share .share-pic {
    flex: none;
    width: 290px;
    margin: 0;
  }

  .card.share .share-pic {
    width: 230px;
    margin: 6px 12px;
  }
}

@media (max-width: 680px) {
  .card,
  .card.span-3,
  .card.span-5,
  .card.span-7 {
    grid-column: span 12;
  }

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

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

  .week .weekend ol {
    grid-auto-columns: minmax(0, calc((100% - 24px) / 5));
  }

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

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

  .site-nav .optional {
    display: none;
  }
}

@media (max-width: 600px) {
  .how-head picture {
    display: none;
  }
}

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

  .rule {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .lesson-board {
    width: 80px;
    height: 80px;
  }

  .ranks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 8px;
  }

  .site-nav a {
    padding-inline: 9px;
  }
}

@media (max-width: 374px) {
  .site-nav .optional-sm {
    display: none;
  }

  .week .tier {
    font-size: 0.6875rem;
  }
}

/* ---- For people who have asked their device for less motion ---- */

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

  body::after,
  .stage .jester,
  .closing .jester {
    animation: none;
  }

  .btn {
    transition: none;
  }
}

@media print {
  body::before,
  body::after,
  .court {
    display: none;
  }
}
