/************************************************************************************************/
/* TOKENS
/************************************************************************************************/
:root {
  color-scheme: light;
  --bg: #DCE3F5;
  --surface: #F7F8FC;
  --surface-2: #EDF0F8;
  --ink: #18213A;
  --muted: #56617E;
  --line: #C9D1E6;
  --accent: #3047E0;
  --accent-ink: #FFFFFF;
  --huddle: #FFC23D;
  --huddle-soft: #FFF1CC;
  --danger: #C42B3B;

  --c1: #B4235A; --c2: #1F6FB2; --c3: #2E7D32; --c4: #8A4FD6;
  --c5: #B85C00; --c6: #00796B; --c7: #C2185B; --c8: #4E5BA6; --csys: #56617E;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 5vw, 3.2rem);

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-pill: 999px;
  --shadow: 0 1px 0 rgba(24, 33, 58, .06), 0 8px 24px -12px rgba(24, 33, 58, .25);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121729;
    --surface: #1A2136;
    --surface-2: #222A43;
    --ink: #E8ECF8;
    --muted: #9AA4C2;
    --line: #2E3754;
    --accent: #8098FF;
    --accent-ink: #0E1430;
    --huddle: #FFCB52;
    --huddle-soft: #3A3218;
    --danger: #FF7A85;
    --c1: #FF8FB4; --c2: #79B8FF; --c3: #7FD18A; --c4: #C3A2FF;
    --c5: #FFB36B; --c6: #5FD3C2; --c7: #FF8AC2; --c8: #A9B4FF; --csys: #9AA4C2;
    --shadow: 0 8px 24px -12px rgba(0, 0, 0, .6);
  }
}

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s ease;
}

a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/************************************************************************************************/
/* BRAND AND BUTTONS
/************************************************************************************************/
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-1);
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.brand--large { font-size: clamp(3rem, 12vw, 6rem); margin: 0 0 .25em; }

.btn {
  font: 700 var(--step--1)/1 var(--font-body);
  border: 0;
  border-radius: var(--radius-pill);
  padding: .8em 1.2em;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--big { font-size: var(--step-0); padding: 1em 1.6em; }

/************************************************************************************************/
/* GATE
/************************************************************************************************/
.gate {
  min-height: 100%;
  display: grid;
  align-items: center;
  padding: 2rem 1.25rem 3rem;
}
.gate__inner { max-width: 40rem; margin: 0 auto; }
.gate__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  max-width: 28ch;
}
.gate__lede { color: var(--muted); max-width: 60ch; margin: 0 0 1.5rem; }
.gate__how {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: how;
  display: grid;
  gap: .75rem;
}
.gate__how li {
  counter-increment: how;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: .5rem;
  align-items: baseline;
}
.gate__how li::before {
  content: counter(how);
  font: 800 var(--step-1)/1 var(--font-display);
  color: var(--accent);
}
.gate__form {
  background: var(--surface);
  border-radius: var(--radius-m);
  padding: 1.25rem;
  display: grid;
  gap: .9rem;
  box-shadow: var(--shadow);
}
.gate__form .btn { justify-self: start; margin-top: .25rem; }
.gate__error { color: var(--danger); margin: 0; font-weight: 700; }
.gate__fine { color: var(--muted); font-size: var(--step--1); margin-top: 1rem; }

.check, .radio { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.check input, .radio input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--accent); flex: none; }

/************************************************************************************************/
/* APP SHELL
/************************************************************************************************/
.app {
  height: 100%;
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

.bar {
  display: flex;
  align-items: center;
  gap: .75rem 1rem;
  padding: .9rem 1rem;
  position: relative;
}
.bar .brand { margin-right: auto; }
.menu-btn { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; }

.online { margin: 0; font-size: var(--step--1); color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.online__dot { width: .5rem; height: .5rem; border-radius: 50%; background: #2FB463; }

/************************************************************************************************/
/* HUDDLE CLOCK
/************************************************************************************************/
.clock {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: .3rem .9rem .3rem .3rem;
  box-shadow: var(--shadow);
  font-size: var(--step--1);
}
.clock__ring { width: 2rem; height: 2rem; transform: rotate(-90deg); }
.clock__track { fill: none; stroke: var(--surface-2); stroke-width: 4; }
.clock__fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 97.4;
  stroke-dashoffset: 97.4;
  transition: stroke-dashoffset 1s linear, stroke .3s;
}
.clock__text { color: var(--muted); }
.clock__text b { color: var(--ink); font: 700 var(--step-0)/1 var(--font-display); font-variant-numeric: tabular-nums; margin-left: .2rem; }

body[data-phase="countdown"] .clock { background: var(--huddle); }
body[data-phase="countdown"] .clock__text,
body[data-phase="countdown"] .clock__text b { color: #2A2006; }
body[data-phase="countdown"] .clock__fill { stroke: #2A2006; }
body[data-phase="countdown"] .clock__track { stroke: rgba(42, 32, 6, .2); }

/************************************************************************************************/
/* MENU
/************************************************************************************************/
.menu {
  position: absolute;
  right: 1rem;
  top: calc(100% - .25rem);
  z-index: 20;
  width: min(22rem, calc(100vw - 2rem));
  background: var(--surface);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.menu > * { min-width: 0; }
.menu__name label { font-weight: 700; font-size: var(--step--1); }
.menu__row { display: flex; gap: .5rem; margin-top: .35rem; }
.menu__row input {
  flex: 1;
  min-width: 0;
  width: 100%;
  font: inherit;
  padding: .55em .8em;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}
.menu__msg { margin: .4rem 0 0; font-size: var(--step--1); color: var(--muted); min-height: 1.2em; }
.menu__links { display: flex; gap: 1rem; font-size: var(--step--1); }

.switch { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 700; }
.switch { position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track {
  width: 2.6rem; height: 1.5rem; border-radius: var(--radius-pill);
  background: var(--line); position: relative; transition: background .2s;
}
.switch__track::after {
  content: ""; position: absolute; top: .2rem; left: .2rem;
  width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff;
  transition: transform .2s;
}
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(1.1rem); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--accent); outline-offset: 2px; }

/************************************************************************************************/
/* HUDDLE MODE
/************************************************************************************************/
body[data-mode="huddle"] { background: var(--huddle); }
body[data-mode="huddle"] .bar .brand,
body[data-mode="huddle"] .online { color: #2A2006; }

.huddle {
  margin: 0 1rem .75rem;
  padding: .9rem 1rem;
  background: var(--surface);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
}
.huddle__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.huddle__title { font: 700 var(--step-1)/1.1 var(--font-display); margin: 0; letter-spacing: -0.02em; }
.huddle__members { list-style: none; margin: .7rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.huddle__members li {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: var(--radius-pill);
  background: var(--surface-2); font-weight: 700; font-size: var(--step--1);
}
.huddle__members li::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.huddle__members li.is-you { box-shadow: inset 0 0 0 1.5px currentColor; }

/************************************************************************************************/
/* MESSAGE LOG
/************************************************************************************************/
.log {
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border-radius: var(--radius-m) var(--radius-m) 0 0;
  min-height: 0;
  flex: 1;
}
.msg {
  position: relative;
  padding: .15rem 2.2rem .15rem 0;
  max-width: 70ch;
  overflow-wrap: anywhere;
}
.msg + .msg:not(.msg--cont) { margin-top: .75rem; }
.msg__name { font-weight: 700; margin-right: .4rem; }
.msg__time { color: var(--muted); font-size: .75rem; margin-left: .35rem; font-variant-numeric: tabular-nums; }
.msg--cont .msg__head { display: none; }
.msg__text { display: block; }
.msg--system { color: var(--muted); font-style: italic; margin: .9rem 0; }
.msg--system .msg__head { display: none; }
.msg--mine .msg__report { display: none; }

.msg__report {
  position: absolute; right: 0; top: 0;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  opacity: 0; display: grid; place-items: center;
}
.msg:hover .msg__report, .msg__report:focus-visible { opacity: 1; }
.msg__report:hover { background: var(--surface-2); color: var(--danger); }
@media (hover: none) { .msg__report { opacity: .55; } }

.c1 { color: var(--c1); } .c2 { color: var(--c2); } .c3 { color: var(--c3); } .c4 { color: var(--c4); }
.c5 { color: var(--c5); } .c6 { color: var(--c6); } .c7 { color: var(--c7); } .c8 { color: var(--c8); }
.csys { color: var(--csys); }

.empty { color: var(--muted); text-align: center; margin: 3rem auto; max-width: 30ch; }

.jump {
  position: absolute; left: 50%; bottom: 4.6rem; transform: translateX(-50%);
  border: 0; border-radius: var(--radius-pill); padding: .5rem 1rem;
  background: var(--ink); color: var(--surface); font: 700 var(--step--1) var(--font-body);
  cursor: pointer; box-shadow: var(--shadow); z-index: 5;
}

/************************************************************************************************/
/* COMPOSER
/************************************************************************************************/
.composer {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .6rem .6rem .6rem 1rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
}
.composer input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: max(16px, 1rem);
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: .5rem 0;
}
.composer input:focus { outline: none; }
.composer:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.composer__count { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.composer__notice { margin: .4rem 0 0; font-size: var(--step--1); color: var(--danger); font-weight: 700; }
.app { padding-bottom: .9rem; }

/************************************************************************************************/
/* DIALOG
/************************************************************************************************/
.dialog {
  border: 0; border-radius: var(--radius-m); padding: 1.4rem;
  width: min(26rem, calc(100vw - 2rem));
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
.dialog::backdrop { background: rgba(18, 23, 41, .5); }
.dialog h2 { font: 700 var(--step-1)/1.2 var(--font-display); margin: 0 0 .8rem; }
.dialog__quote { margin: 0 0 1rem; padding: .6rem .8rem; background: var(--surface-2); border-radius: var(--radius-s); overflow-wrap: anywhere; }
.dialog fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.dialog legend { font-weight: 700; margin-bottom: .5rem; }
.dialog__actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.2rem; }

/************************************************************************************************/
/* SHUFFLE MOMENT
/************************************************************************************************/
.shuffle {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-content: center; text-align: center; gap: 1.2rem;
  background: var(--huddle); color: #2A2006;
  animation: shuffle-out .5s ease 2.2s forwards;
}
.shuffle__title { font: 800 var(--step-3)/1 var(--font-display); letter-spacing: -0.03em; margin: 0; }
.shuffle__people { list-style: none; margin: 0; padding: 0 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; max-width: 36rem; }
.shuffle__people li {
  background: #FFFDF5; color: #2A2006; font-weight: 700;
  padding: .5rem 1rem; border-radius: var(--radius-pill);
  opacity: 0; animation: chip-in .45s cubic-bezier(.2, 1.4, .4, 1) forwards;
}
@keyframes chip-in {
  from { opacity: 0; transform: translate(var(--dx, 0), var(--dy, -40px)) rotate(var(--rot, -8deg)) scale(.8); }
  to { opacity: 1; transform: none; }
}
@keyframes shuffle-out { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .shuffle { animation: shuffle-out .01ms linear 1.5s forwards !important; }
}

/************************************************************************************************/
/* MAIN AREA: STAGE + CHAT
/************************************************************************************************/
.main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin: 0 1rem;
}
.chat { flex: 1; min-height: 11rem; display: flex; flex-direction: column; position: relative; }

.stage { flex: none; }

@media (min-width: 960px) {
  body[data-mode="huddle"] .app:has(.stage:not([hidden]):not([data-type="discuss"])) { max-width: 76rem; }
  .main:has(.stage:not([hidden]):not([data-type="discuss"])) { flex-direction: row; align-items: stretch; }
  .main:has(.stage:not([hidden]):not([data-type="discuss"])) .stage { width: 30rem; overflow-y: auto; }
}

/* Phones and tablets: let the page scroll so the canvas and chat both fit */
@media (max-width: 959px) {
  body[data-mode="huddle"] .app:has(.stage:not([hidden]):not([data-type="discuss"])) { height: auto; min-height: 100%; }
  .main:has(.stage:not([hidden]):not([data-type="discuss"])) .chat { flex: none; height: 26rem; }
}

.btn--small { padding: .55em .9em; font-size: .8rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.icon-btn {
  width: 2rem; height: 2rem; border-radius: 50%; border: 0;
  background: var(--surface); color: var(--muted); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.icon-btn:hover { color: var(--danger); }

/************************************************************************************************/
/* STAGE
/************************************************************************************************/
.stage {
  background: var(--surface);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem 1.1rem;
  min-height: 0;
}
.stage__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.stage__kind { margin: 0; font-weight: 700; font-size: var(--step--1); color: var(--muted); }
.stage__timer { font: 800 var(--step-1)/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink); }
.stage__prompt {
  font: 700 var(--step-2)/1.15 var(--font-display);
  letter-spacing: -0.02em;
  margin: .3rem 0 .8rem;
  max-width: 30ch;
  overflow-wrap: anywhere;
}
.stage[data-type="discuss"] .stage__prompt { font-size: clamp(1.4rem, 3.5vw, 2rem); }
.stage__hint { margin: .6rem 0 0; color: var(--muted); font-size: var(--step--1); }
.stage__lastcall {
  margin: 0 0 .8rem; padding: .6rem .8rem; border-radius: var(--radius-s);
  background: var(--huddle); color: #2A2006; font-weight: 700;
  display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap;
}
.stage__lastcall .stage__timer { color: #2A2006; font-size: var(--step-0); }

/* CANVAS ---------------------------------------------------------------- */
.canvas-wrap { width: min(100%, 26rem); margin: 0 auto; }
.canvas {
  display: block; width: 100%; aspect-ratio: 1; border-radius: var(--radius-s);
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
  touch-action: none; cursor: crosshair;
}
.tools { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: center; margin-top: .7rem; }
.tools__group { display: flex; gap: .35rem; align-items: center; }
.swatch {
  width: 1.75rem; height: 1.75rem; border-radius: 50%; cursor: pointer;
  background: var(--swatch); border: 2px solid var(--surface);
  box-shadow: 0 0 0 1.5px var(--line);
}
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--accent); }
.size {
  width: 1.9rem; height: 1.9rem; border-radius: 50%; cursor: pointer;
  background: var(--surface-2); border: 0; display: grid; place-items: center;
}
.size::after { content: ""; width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--ink); }
.size[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }

/* DRAWINGS (VOTING AND RESULTS) ----------------------------------------- */
.vote-grid, .recap__drawings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: .75rem;
}
.vote-item, .recap__item { position: relative; }
.vote-item .icon-btn, .recap__item .icon-btn { position: absolute; top: .4rem; right: .4rem; width: 1.8rem; height: 1.8rem; }
.drawing {
  display: grid; gap: .4rem; margin: 0; padding: .5rem; width: 100%;
  border: 0; border-radius: var(--radius-s); background: var(--surface-2);
  font: inherit; color: inherit; text-align: left;
}
button.drawing { cursor: pointer; }
button.drawing:hover { box-shadow: inset 0 0 0 2px var(--line); }
button.drawing[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--accent); background: var(--surface); }
.drawing.is-mine { opacity: .7; cursor: default; }
.drawing__canvas { display: block; width: 100%; aspect-ratio: 1; border-radius: 6px; background: #fff; }
.drawing__cap { display: grid; font-size: var(--step--1); line-height: 1.3; }
.drawing__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawing__meta { color: var(--muted); }

/* POLL ------------------------------------------------------------------ */
.poll { display: grid; gap: .5rem; }
.poll__option {
  font: 700 var(--step-0)/1.3 var(--font-body); text-align: left;
  padding: .8rem 1rem; border-radius: var(--radius-s); cursor: pointer;
  border: 0; background: var(--surface-2); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.poll__option:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.poll__option[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }

/************************************************************************************************/
/* RESULTS
/************************************************************************************************/
.recap {
  margin: 1.2rem 0;
  padding: 1rem;
  border-radius: var(--radius-m);
  background: var(--huddle-soft);
  box-shadow: inset 0 0 0 1.5px var(--huddle);
}
.recap__title { font: 700 var(--step-1)/1.2 var(--font-display); margin: 0 0 .8rem; letter-spacing: -0.01em; }
.recap .drawing { background: var(--surface); }
.recap__empty, .recap__intro { margin: 0; color: var(--muted); }
.recap__topics { margin: .4rem 0 0; padding-left: 1.2rem; }
.result + .result { margin-top: 1.1rem; }
.result__q { font: 700 var(--step-0)/1.3 var(--font-body); margin: 0 0 .5rem; }
.result__row {
  position: relative; display: flex; justify-content: space-between; gap: 1rem;
  padding: .45rem .7rem; margin-bottom: .3rem; border-radius: var(--radius-s);
  background: var(--surface); font-size: var(--step--1); overflow: hidden; isolation: isolate;
}
.result__row::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pct); z-index: -1;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.result__row.is-top { font-weight: 700; }
.result__row.is-top::before { background: color-mix(in srgb, var(--huddle) 60%, transparent); }
.result__label { overflow-wrap: anywhere; }
.result__pct { font-variant-numeric: tabular-nums; }
.result__total { margin: .2rem 0 0; color: var(--muted); font-size: .8rem; }

.dialog--wide { width: min(40rem, calc(100vw - 2rem)); max-height: calc(100vh - 4rem); overflow-y: auto; }
.dialog--wide .drawing { background: var(--surface-2); }
.shuffle__sub { margin: 0; font: 700 var(--step-1)/1.3 var(--font-body); max-width: 30ch; }

/************************************************************************************************/
/* SMALL SCREENS
/************************************************************************************************/
@media (max-width: 560px) {
  .bar { flex-wrap: wrap; padding: .7rem .75rem; }
  .clock { order: 3; width: 100%; justify-content: flex-start; }
  .online { order: 2; }
  .menu-btn { order: 2; }
  .main, .huddle { margin-left: .5rem; margin-right: .5rem; }
}

/************************************************************************************************/
/* CONTENT PAGES (RULES, TERMS, PRIVACY, 404)
/************************************************************************************************/
.page { max-width: 44rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.page header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; }
.page h1 { font: 700 var(--step-3)/1.05 var(--font-display); letter-spacing: -0.03em; margin: 0 0 .5rem; }
.page h2 { font: 700 var(--step-1)/1.2 var(--font-display); margin: 2rem 0 .5rem; }
.page p, .page li { max-width: 68ch; }
.page .updated { color: var(--muted); font-size: var(--step--1); }
.page footer { margin-top: 3rem; color: var(--muted); font-size: var(--step--1); display: flex; gap: 1rem; flex-wrap: wrap; }
.noscript { text-align: center; padding: 2rem; }
