/* Rift Tag — rifttag.io
   Plain CSS, no build step. Display font: Bangers (local file). */

@font-face {
  font-family: "Bangers";
  src: url("../assets/fonts/Bangers-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b0a0e;
  --asphalt: #141218;
  --night: #1d1a24;
  --paper: #fff5e0;
  --white: #ffffff;

  --pink: #ff2e88;
  --cyan: #1fe3ff;
  --yellow: #ffd900;
  --orange: #ff7a0d;
  --violet: #a640ff;
  --red: #ff1f33;

  --line: 4px;
  --slant: clamp(24px, 5vw, 72px);
  --display: "Bangers", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, Menlo, monospace;
  --focus: var(--yellow);
}

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

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

body {
  margin: 0;
  background: var(--asphalt);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; }

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  border: var(--line) solid var(--ink);
}
.skip-link:focus { top: 1rem; }

.page {
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;
}

.wrap {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

/* ---------- shared bits ---------- */

.btn {
  display: inline-block;
  padding: .42em 1em .36em;
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: .05em;
  text-decoration: none;
  color: var(--ink);
  background: var(--pink);
  border: var(--line) solid var(--ink);
  box-shadow: 0 0 0 3px var(--paper), 7px 7px 0 3px var(--cyan);
  transform: rotate(-1.5deg);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-paper {
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--ink), 7px 7px 0 3px var(--yellow);
  transform: rotate(1.5deg);
}
a.btn:hover { transform: rotate(-1.5deg) translate(-2px, -2px); box-shadow: 0 0 0 3px var(--paper), 10px 10px 0 3px var(--cyan); }
a.btn-paper:hover { transform: rotate(1.5deg) translate(-2px, -2px); box-shadow: 0 0 0 3px var(--ink), 10px 10px 0 3px var(--yellow); }
a.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 3px var(--paper), 2px 2px 0 3px var(--cyan); }

.btn-yellow {
  background: var(--yellow);
  box-shadow: 0 0 0 3px var(--ink), 7px 7px 0 3px var(--pink);
  transform: rotate(1.5deg);
}
a.btn-yellow:hover { transform: rotate(1.5deg) translate(-2px, -2px); box-shadow: 0 0 0 3px var(--ink), 10px 10px 0 3px var(--pink); }
a.btn-yellow:active { transform: translate(3px, 3px); box-shadow: 0 0 0 3px var(--ink), 2px 2px 0 3px var(--pink); }

.btn-off,
.btn-disabled,
.btn-disabled:disabled {
  background: repeating-linear-gradient(135deg, #d9d2c3 0 12px, #c6beae 12px 24px);
  color: #45414c;
  border-style: dashed;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
a.btn-off:hover, a.btn-off:active { box-shadow: none; transform: none; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin: 0;
  padding: .28em .8em .22em;
  font-family: var(--display);
  font-size: clamp(1.05rem, 3.4vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: .07em;
  white-space: nowrap;
  color: var(--ink);
  background: var(--yellow);
  border: var(--line) solid var(--ink);
  box-shadow: 0 0 0 3px var(--paper), 5px 5px 0 3px var(--ink);
}
.status-dot {
  width: .62em;
  height: .62em;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--ink);
  animation: blink 1.6s steps(2, jump-none) infinite;
}
@keyframes blink { 50% { background: var(--paper); } }

.kicker {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: .18em .7em .12em;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: .1em;
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-3deg);
}
.kicker-light { background: var(--paper); color: var(--ink); }

.sec-title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 8.6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: .025em;
  margin-bottom: 1.4rem;
}
.hl {
  display: inline-block;
  margin: 0 .12em .2em 0;
  padding: .06em .28em 0;
  color: var(--ink);
  border: var(--line) solid var(--ink);
}
.hl:nth-child(odd) { transform: rotate(-2.2deg); }
.hl:nth-child(even) { transform: rotate(1.4deg) translateY(-.06em); }
.hl-yellow { background: var(--yellow); box-shadow: .11em .11em 0 var(--ink); }
.hl-pink { background: var(--pink); box-shadow: .11em .11em 0 var(--ink); }
.hl-cyan { background: var(--cyan); box-shadow: .11em .11em 0 var(--pink); }
.hl-paper { background: var(--paper); box-shadow: .11em .11em 0 var(--violet); }
.hl-ink { background: var(--ink); color: var(--yellow); box-shadow: .11em .11em 0 var(--pink); }
.sec-night .hl-pink { box-shadow: .11em .11em 0 var(--cyan); }
.sec-night .hl-yellow,
.sec-asphalt .hl-yellow { box-shadow: .11em .11em 0 var(--pink); }

.lede {
  max-width: 44rem;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.5;
  font-weight: 500;
}

/* ---------- sections + slanted breaks ---------- */

.sec {
  position: relative;
  margin-top: calc(var(--slant) * -1);
  padding: calc(var(--slant) + clamp(3rem, 7vw, 5.5rem)) 0 calc(var(--slant) + clamp(3.5rem, 8vw, 6.5rem));
  scroll-margin-top: 0;
}
.cut-a { clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); }
.cut-b { clip-path: polygon(0 0, 100% var(--slant), 100% 100%, 0 100%); }

.sec-paper {
  --focus: var(--ink);
  color: var(--ink);
  background:
    radial-gradient(circle, rgba(11, 10, 14, .09) 0 1.6px, transparent 2px) 0 0 / 14px 14px,
    var(--paper);
}
.sec-asphalt {
  background:
    radial-gradient(circle, rgba(255, 255, 255, .055) 0 1px, transparent 1.5px) 0 0 / 9px 9px,
    var(--asphalt);
}
.sec-night {
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .03) 0 3px, transparent 3px 26px),
    var(--night);
}
.sec-yellow {
  --focus: var(--ink);
  color: var(--ink);
  background:
    repeating-linear-gradient(100deg, rgba(11, 10, 14, .07) 0 6px, transparent 6px 60px),
    var(--yellow);
}
.sec-pink {
  --focus: var(--ink);
  color: var(--ink);
  background:
    radial-gradient(circle, rgba(11, 10, 14, .14) 0 2.4px, transparent 2.9px) 0 0 / 16px 16px,
    var(--pink);
}

/* ---------- tape ---------- */

.tape {
  position: relative;
  z-index: 6;
  height: 0;
  pointer-events: none;
}
.tape-strip {
  position: absolute;
  left: -10vw;
  top: calc(var(--slant) * -0.5);
  width: 120vw;
  transform: translateY(-50%) rotate(-2.4deg);
  overflow: hidden;
  padding: .22em 0 .14em;
  font-family: var(--display);
  font-size: clamp(1.25rem, 3.4vw, 2rem);
  letter-spacing: .09em;
  white-space: nowrap;
  color: var(--ink);
  background: var(--yellow);
  border-block: var(--line) solid var(--ink);
  box-shadow: 0 7px 0 rgba(0, 0, 0, .5);
}
.tape-pink .tape-strip {
  background: var(--cyan);
  transform: translateY(-50%) rotate(2.4deg);
}
.tape-track {
  display: flex;
  width: max-content;
  animation: tape 46s linear infinite;
}
.tape-track span { padding-right: .6em; }
@keyframes tape { to { transform: translateX(-50%); } }

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

.hero {
  --dim: var(--orange);
  position: relative;
  padding-bottom: calc(var(--slant) + clamp(3.5rem, 9vw, 6.5rem));
  background:
    radial-gradient(circle, rgba(255, 255, 255, .06) 0 1px, transparent 1.5px) 0 0 / 9px 9px,
    var(--asphalt);
}
.hero[data-dim="core"] { --dim: var(--orange); }
.hero[data-dim="drift"] { --dim: var(--violet); }
.hero[data-dim="surge"] { --dim: var(--yellow); }
.hero[data-dim="fracture"] { --dim: var(--red); }

/* hazard stripes pasted behind the hero copy */
.hero::before {
  content: "";
  position: absolute;
  left: -4rem;
  bottom: calc(var(--slant) + 1.5rem);
  width: min(26rem, 70vw);
  height: 3.4rem;
  background: repeating-linear-gradient(135deg, var(--yellow) 0 22px, var(--ink) 22px 44px);
  border: var(--line) solid var(--ink);
  box-shadow: 0 0 0 3px var(--paper);
  transform: rotate(-7deg);
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem 1.5rem;
  padding: 1rem 0 .5rem;
}
.brand {
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: .05em;
  text-decoration: none;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--pink);
  transform: rotate(-3deg);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
/* The emblem beside the name in the top bar, and stuck on the corner of the big wordmark like a sticker. */
.brand-mark { width: 2.4rem; height: 2.4rem; flex: none; }
.wordmark-wrap .hero-mark {
  position: absolute;
  left: -1.1rem;
  top: -3.6rem;
  z-index: 2;
  width: clamp(4rem, 10vw, 6.5rem);
  height: auto;
  transform: rotate(-9deg);
  filter: drop-shadow(5px 6px 0 rgba(0, 0, 0, .5));
}
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .1rem;
  list-style: none;
  margin-left: -.6rem;
}
.nav a {
  display: block;
  padding: .35rem .6rem;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--paper);
}
.nav a:hover { background: var(--paper); color: var(--ink); transform: rotate(-2deg); }

/* The band across the very top: the download, what it needs, and whether the servers are up. */
.getbar {
  --focus: var(--ink);
  position: relative;
  z-index: 4;
  color: var(--ink);
  background: var(--yellow);
  border-bottom: var(--line) solid var(--ink);
}
.getbar-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1.2rem;
  padding: .6rem 0;
}
.getbar-btn {
  display: inline-block;
  padding: .3em .9em .24em;
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: .05em;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--pink);
}
a.getbar-btn:hover { color: var(--ink); background: var(--pink); box-shadow: 4px 4px 0 var(--ink); }
a.getbar-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.getbar-btn.btn-off { color: #45414c; }
.getbar-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.35;
}
.getbar-facts li[hidden] { display: none; }
.getbar .server { margin: 0 0 0 auto; }
@media (max-width: 760px) {
  .getbar .server { margin-left: 0; }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
  padding-top: clamp(1.25rem, 4vw, 3rem);
}

.wordmark-wrap {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 3rem 0 1.8rem .3rem;
  transform: rotate(-5deg);
}
.wordmark {
  font-family: var(--display);
  font-size: clamp(6.25rem, 35vw, 15.5rem);
  line-height: .8;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.wm {
  display: block;
  width: max-content;
  -webkit-text-stroke: .04em var(--ink);
  paint-order: stroke fill;
}
.wm-rift { display: grid; color: var(--yellow); }
.wm-rift > span { grid-area: 1 / 1; text-shadow: .045em .045em 0 var(--ink), .09em .09em 0 var(--pink); }
.wm-top { clip-path: polygon(-20% -40%, 140% -40%, 140% 50%, -20% 68%); }
.wm-bot {
  clip-path: polygon(-20% 68%, 140% 50%, 140% 150%, -20% 150%);
  transform: translate(.06em, .012em);
  color: var(--paper);
}
.wm-tag {
  margin: .14em 0 0 .46em;
  color: var(--pink);
  text-shadow: .045em .045em 0 var(--ink), .09em .09em 0 var(--cyan);
}
.wordmark-wrap .status-badge {
  position: absolute;
  left: 34%;
  top: -2.5rem;
  transform: rotate(9deg);
}

.pitch {
  max-width: 21em;
  margin: 0 0 .5rem;
  font-size: clamp(1.3rem, 3.4vw, 1.85rem);
  line-height: 1.25;
  font-weight: 800;
  text-wrap: balance;
}
.pitch-sub {
  max-width: 30em;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: #e9dfcb;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem 1.5rem;
  margin-top: 1.7rem;
}

/* What to do with the download, right under its button. */
.get-note {
  max-width: 34em;
  margin: 1.5rem 0 0;
  font-size: .98rem;
  line-height: 1.45;
  color: #e9dfcb;
}
.get-note strong { color: var(--paper); }

.hero-stage {
  position: relative;
  justify-self: center;
  width: min(100%, 29rem);
  padding-bottom: .5rem;
}
.stage-box { position: relative; }
.stage-frame,
.role-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 5px solid var(--ink);
}
.stage-frame {
  --sh: clamp(7px, 2.2vw, 16px);
  background: var(--dim);
  box-shadow: 0 0 0 5px var(--paper), var(--sh) var(--sh) 0 5px var(--pink);
  transform: rotate(2.2deg);
  transition: background-color .2s ease;
}
/* sunburst + halftone behind the character */
.stage-frame::before,
.role-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(11, 10, 14, .2) 0 2.2px, transparent 2.7px) 0 0 / 13px 13px,
    repeating-conic-gradient(from 0deg at 50% 66%, rgba(255, 255, 255, .26) 0 9deg, transparent 9deg 18deg);
  pointer-events: none;
}

.viewer {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  --poster-color: transparent;
  --progress-bar-color: var(--ink);
  --progress-bar-height: 6px;
}
.mv-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  pointer-events: none;
}
.mv-fallback p {
  max-width: 17rem;
  margin: 0;
  padding: .7rem .9rem;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
/* No JS: say so. With JS: "loading" until the model reports in, the note again if it fails. */
.mv-loading { display: none; }
.js .mv-loading { display: block; }
.js .mv-fail { display: none; }
.js .viewer.is-error .mv-loading { display: none; }
.js .viewer.is-error .mv-fail { display: block; }
.js .viewer.is-loaded .mv-fallback { display: none; }

.sticker {
  position: absolute;
  margin: 0;
  padding: .2em .75em .14em;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: .07em;
  white-space: nowrap;
  color: var(--ink);
  background: var(--cyan);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.sticker-spin { top: -.9rem; right: .2rem; transform: rotate(7deg); z-index: 2; }

.burst {
  position: absolute;
  left: -.4rem;
  bottom: -2rem;
  z-index: 2;
  width: clamp(6.6rem, 26vw, 8.6rem);
  aspect-ratio: 1;
  transform: rotate(-12deg);
  filter: drop-shadow(5px 5px 0 var(--ink));
  pointer-events: none;
}
.burst-in,
.burst-face {
  clip-path: polygon(50% 0, 60.1% 12.3%, 75% 6.7%, 77.6% 22.4%, 93.3% 25%, 87.7% 39.9%, 100% 50%, 87.7% 60.1%, 93.3% 75%, 77.6% 77.6%, 75% 93.3%, 60.1% 87.7%, 50% 100%, 39.9% 87.7%, 25% 93.3%, 22.4% 77.6%, 6.7% 75%, 12.3% 60.1%, 0 50%, 12.3% 39.9%, 6.7% 25%, 22.4% 22.4%, 25% 6.7%, 39.9% 12.3%);
}
.burst-in { position: absolute; inset: 0; background: var(--ink); }
.burst-face {
  position: absolute;
  inset: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(1.15rem, 4.6vw, 1.55rem);
  line-height: .98;
  letter-spacing: .06em;
  color: var(--ink);
  background: var(--yellow);
}

.shifter { display: none; }
.js .shifter {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: 1.5rem;
  padding-left: 6.5rem;
}
.shifter-label {
  flex: 1 1 100%;
  text-align: right;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: .08em;
}
.shift-btn {
  padding: .22em .7em .16em;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: .06em;
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 2px var(--paper);
  cursor: pointer;
  transition: transform .12s ease;
}
.shift-core { background: var(--orange); }
.shift-drift { background: var(--violet); }
.shift-surge { background: var(--yellow); }
.shift-fracture { background: var(--red); }
.shift-btn:hover { transform: translateY(-2px) rotate(-2deg); }
.shift-btn[aria-pressed="true"] {
  transform: translateY(-4px) rotate(-3deg);
  box-shadow: 0 0 0 2px var(--paper), 5px 5px 0 2px var(--cyan);
}

@media (min-width: 901px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .wordmark { font-size: clamp(9rem, 17vw, 15.5rem); }
  .hero-stage { justify-self: end; margin-right: 1rem; }
}

/* ---------- match ---------- */

.strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.7rem 1.5rem;
  margin-top: 3rem;
  list-style: none;
  counter-reset: panel;
}
.panel {
  position: relative;
  padding: 1.6rem 1.25rem 1.2rem;
  border: var(--line) solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  counter-increment: panel;
}
.panel::before {
  content: counter(panel);
  position: absolute;
  top: -1.05rem;
  left: -.6rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--yellow);
  background: var(--ink);
  border: 3px solid var(--paper);
  border-radius: 50%;
  transform: rotate(-9deg);
}
.panel h3 {
  margin-bottom: .45rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4.4vw, 2.2rem);
  line-height: 1.02;
  letter-spacing: .03em;
}
.panel p { margin: 0; font-weight: 500; }
.panel p + p { margin-top: .5em; }

.p-sides { grid-column: span 4; display: grid; grid-template-columns: 1fr 1fr; padding: 0; background: var(--ink); transform: rotate(-.6deg); }
.p-head { grid-column: span 2; background: var(--yellow); transform: rotate(1deg); }
.p-rule { grid-column: span 3; grid-row: span 2; background: var(--white); }
.p-frozen { grid-column: span 3; background: var(--cyan); transform: rotate(.7deg); }
.p-free { grid-column: span 3; background: var(--orange); transform: rotate(-.7deg); }
.p-all { grid-column: span 2; background: var(--violet); transform: rotate(-1deg); }
.p-score { grid-column: span 4; background: var(--ink); color: var(--paper); box-shadow: 8px 8px 0 var(--pink); }

.side { padding: 1.7rem 1.1rem 1.4rem; }
.side-h { background: var(--pink); padding-right: 17%; clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
.side-r { background: var(--cyan); padding-left: 17%; text-align: right; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.side-name {
  font-family: var(--display);
  font-size: clamp(2rem, 6.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: .03em;
}
.vs {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--ink);
  background: var(--yellow);
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
}

.big-num { display: flex; align-items: baseline; gap: .5rem; line-height: 1; }
.num {
  font-family: var(--display);
  font-size: clamp(5rem, 14vw, 7.5rem);
  line-height: .85;
  color: var(--pink);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--ink);
}
.num-unit { font-family: var(--display); font-size: 1.9rem; letter-spacing: .04em; }

.lanes { margin: 1.3rem 0 0; }
.lane {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .55rem;
  padding: .7rem .7rem .7rem 0;
  border: 3px solid var(--ink);
}
.lane + .lane { margin-top: .7rem; margin-left: clamp(.5rem, 4vw, 2rem); }
.lane-core { background: #ffe0c2; }
.lane-drift { background: #ead3ff; }
.lane-name {
  align-self: stretch;
  display: grid;
  place-items: center;
  margin: -.7rem .2rem -.7rem 0;
  padding: 0 .7rem;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: .06em;
  border-right: 3px solid var(--ink);
}
.lane-core .lane-name { background: var(--orange); }
.lane-drift .lane-name { background: var(--violet); }
.tok {
  padding: .12em .7em;
  font-size: .92rem;
  font-weight: 800;
  border: 3px solid var(--ink);
  border-radius: 99px;
}
.tok-h { background: var(--pink); }
.tok-r { background: var(--cyan); }
.call {
  margin-left: auto;
  padding: .12em .6em .06em;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: .05em;
  white-space: nowrap;
}
.call-yes { background: var(--yellow); border: 3px solid var(--ink); transform: rotate(-5deg); box-shadow: 3px 3px 0 var(--ink); }
.call-no { background: var(--white); border: 3px dashed var(--ink); }
.lanes figcaption { margin-top: .9rem; font-size: .95rem; font-weight: 600; }

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  margin-top: .8rem;
  list-style: none;
  font-size: .95rem;
  line-height: 1.35;
}
.flow li { padding-left: .8rem; border-left: 4px dashed var(--pink); }
.flow strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: .04em;
  color: var(--yellow);
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 3.2rem;
}
.sizes-title {
  flex: 1 1 15rem;
  max-width: 19rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4.6vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: .03em;
  transform: rotate(-2deg);
}
.size-list { flex: 3 1 22rem; display: grid; gap: .7rem; list-style: none; }
.size-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .9rem;
  width: fit-content;
  max-width: 100%;
  padding: .35rem .9rem .3rem;
  background: var(--white);
  border: var(--line) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 700;
}
.size-list li:nth-child(2) { margin-left: clamp(0rem, 5vw, 3rem); transform: rotate(-.8deg); }
.size-list li:nth-child(3) { margin-left: clamp(0rem, 10vw, 6rem); transform: rotate(.8deg); }
.size-mode { font-family: var(--display); font-size: 2rem; line-height: 1; letter-spacing: .04em; font-weight: 400; }
.size-pips { display: inline-flex; gap: 5px; }
.size-pips i {
  width: 1.05rem;
  height: 1.5rem;
  background: var(--ink);
  transform: skewX(-14deg);
}

/* ---------- dimensions ---------- */

.dims { display: grid; margin-top: 3.2rem; padding-bottom: 1rem; }
.dim {
  --c: var(--orange);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.1rem, 3vw, 2rem);
  color: var(--ink);
  background: var(--c);
  border: 5px solid var(--ink);
  box-shadow: 0 0 0 5px var(--paper), 13px 13px 0 5px #000;
}
.dim-core { --c: var(--orange); }
.dim-drift { --c: var(--violet); }
.dim-surge { --c: var(--yellow); }
.dim-fracture { --c: var(--red); }
.dim + .dim { margin-top: -.6rem; }
.dim:nth-child(odd) { margin-right: clamp(0rem, 7vw, 6rem); transform: rotate(-1.1deg); }
.dim:nth-child(even) { margin-left: clamp(0rem, 7vw, 6rem); transform: rotate(1.1deg); }
.dim:nth-child(even) .dim-art { order: 2; }

.dim-art img {
  display: block;
  width: 100%;
  border: var(--line) solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(1.6deg);
}
.dim:nth-child(even) .dim-art img { transform: rotate(-1.6deg); }
.dim-name {
  font-family: var(--display);
  font-size: clamp(3.4rem, 12vw, 6.5rem);
  line-height: .9;
  letter-spacing: .03em;
  text-shadow: .05em .05em 0 var(--paper);
}
.dim-line { margin: .5rem 0 1rem; font-size: clamp(1.15rem, 2.6vw, 1.45rem); font-weight: 800; line-height: 1.3; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem .55rem; list-style: none; }
.chips li {
  padding: .2em .75em;
  font-size: .98rem;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
}
.chips li:nth-child(odd) { transform: rotate(-1.5deg); }
.chips li:nth-child(even) { transform: rotate(1.2deg); }

/* ---------- movement ---------- */

.moves {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.7rem 1.5rem;
  align-items: start;
  margin-top: 3rem;
  list-style: none;
}
.move {
  padding: .85rem 1.1rem 1rem;
  border: var(--line) solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.move h3 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  line-height: .95;
  letter-spacing: .03em;
}
.move p { margin: .4rem 0 0; font-weight: 600; }
.m-sprint { grid-column: span 5; background: var(--ink); color: var(--yellow); box-shadow: 8px 8px 0 var(--pink); transform: rotate(-1.6deg); }
.m-sprint p { color: var(--paper); }
.m-slide { grid-column: span 3; margin-top: 1.6rem; background: var(--pink); transform: rotate(1.4deg); }
.m-wallrun { grid-column: span 4; background: var(--paper); transform: rotate(-.8deg); }
.m-wallkick { grid-column: span 4; margin-top: .8rem; background: var(--cyan); transform: rotate(1.2deg); }
.m-vault { grid-column: span 5; background: var(--orange); transform: rotate(-1.2deg); }
.m-rope { grid-column: span 3; margin-top: 1.4rem; background: var(--ink); color: var(--cyan); box-shadow: 8px 8px 0 var(--white); transform: rotate(2deg); }
.m-rope p { color: var(--paper); }

/* ---------- roles ---------- */

.ladder {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .8rem 1.1rem;
  margin-top: 2rem;
  list-style: none;
}
.rung {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .28em .8em .2em;
  font-family: var(--display);
  letter-spacing: .06em;
  line-height: 1.1;
  color: var(--ink);
  border: var(--line) solid var(--ink);
  box-shadow: 0 0 0 3px var(--paper), 6px 6px 0 3px #000;
}
.rung-1 { font-size: 1.35rem; background: var(--paper); }
.rung-2 { font-size: 1.75rem; background: var(--cyan); transform: rotate(-1.5deg); }
.rung-3 { font-size: 2.25rem; background: var(--yellow); transform: rotate(1.5deg); }

.bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 1em; }
.bars i { width: .26em; background: transparent; border: 2px solid var(--ink); }
.bars i:nth-child(1) { height: 40%; }
.bars i:nth-child(2) { height: 70%; }
.bars i:nth-child(3) { height: 100%; }
.bars-1 i:nth-child(-n+1),
.bars-2 i:nth-child(-n+2),
.bars-3 i { background: var(--ink); }

.role {
  --rc: var(--cyan);
  --rs: var(--pink);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: clamp(3.5rem, 8vw, 6rem);
}
.role-anchor { --rc: var(--pink); --rs: var(--cyan); }
.role-seer { --rc: var(--cyan); --rs: var(--yellow); }
.role-weaver { --rc: var(--pink); --rs: var(--yellow); }
.role-anchor,
.role-weaver { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.role-anchor .role-stage,
.role-weaver .role-stage { order: 2; transform: rotate(2deg); }

.role-stage {
  width: min(100%, 27rem);
  justify-self: center;
  background: var(--rc);
  box-shadow: 0 0 0 5px var(--paper), 12px 12px 0 5px var(--rs);
  transform: rotate(-2deg);
}
.role-name {
  font-family: var(--display);
  font-size: clamp(3.6rem, 13vw, 7rem);
  line-height: .88;
  letter-spacing: .03em;
  color: var(--rc);
  -webkit-text-stroke: .035em var(--ink);
  paint-order: stroke fill;
  text-shadow: .05em .05em 0 var(--ink), .09em .09em 0 var(--paper);
  transform: rotate(-2deg);
  transform-origin: left bottom;
}
.role-line { margin: .9rem 0 0; font-size: clamp(1.1rem, 2.4vw, 1.3rem); font-weight: 700; }

.tiers { display: grid; gap: .85rem; margin-top: 1.4rem; list-style: none; }
.tier {
  display: grid;
  grid-template-columns: 9.2rem minmax(0, 1fr);
  gap: .15rem 1rem;
  align-items: center;
  padding: .65rem .95rem;
  color: var(--ink);
  background: var(--paper);
  border: var(--line) solid var(--ink);
  box-shadow: 6px 6px 0 #000;
}
.tier-name {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: .05em;
  white-space: nowrap;
}
.tier-what { font-weight: 600; line-height: 1.4; }
.tier-2 { margin-left: clamp(0rem, 3vw, 2rem); background: var(--rc); }
.tier-3 {
  margin-left: clamp(0rem, 6vw, 4rem);
  background: var(--yellow);
  box-shadow: 0 0 0 3px var(--paper), 8px 8px 0 3px var(--rs);
  transform: rotate(-1deg);
}
.tier-3 .tier-what { font-weight: 800; }

/* ---------- fair play ---------- */

.fair-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.fair-title {
  font-size: clamp(3.6rem, 13vw, 8.5rem);
  line-height: .9;
  text-shadow: .045em .045em 0 var(--paper);
  transform: rotate(-2.5deg);
  transform-origin: left center;
}
/* The anti-cheat note: a dark slab on the pink, so the longer text reads easily. */
.guard {
  max-width: 44rem;
  margin: 2.2rem 0 0;
  padding: 1.15rem 1.4rem 1.3rem;
  background: var(--ink);
  color: var(--paper);
  box-shadow: .45rem .45rem 0 rgba(11, 10, 14, .3);
  --focus: var(--yellow);
}
.guard-title {
  margin: 0 0 .55rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 1.9rem);
  font-weight: 400;
  letter-spacing: .03em;
  line-height: 1.1;
  color: var(--yellow);
}
.guard p {
  margin: 0 0 .7rem;
  font-size: 1rem;
  line-height: 1.5;
}
.guard p:last-child { margin-bottom: 0; }
.guard a { color: var(--cyan); }

.nope {
  position: relative;
  justify-self: center;
  margin: 0 0 3rem;
  transform: rotate(5deg);
}
.nope-word {
  position: relative;
  display: block;
  padding: .12em .32em .04em;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
  color: #4a4652;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.nope-word::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  top: 46%;
  height: .13em;
  background: var(--ink);
  transform: rotate(-6deg);
}
.nope-stamp {
  position: absolute;
  right: -1rem;
  bottom: -2.5rem;
  padding: .12em .6em .04em;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4.4vw, 2.2rem);
  letter-spacing: .06em;
  white-space: nowrap;
  color: var(--ink);
  background: var(--yellow);
  border: var(--line) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-11deg);
}

/* ---------- play ---------- */

.play-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
  margin-top: 2.2rem;
}
.status-card {
  --focus: var(--ink);
  position: relative;
  padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.1rem, 3.4vw, 2.2rem) clamp(1.3rem, 3vw, 1.8rem);
  color: var(--ink);
  background: var(--paper);
  border: 5px solid var(--ink);
  box-shadow: 0 0 0 5px var(--yellow), 14px 14px 0 5px var(--pink);
  transform: rotate(-1deg);
}
.status-badge-static { position: absolute; top: -1.3rem; right: 1rem; transform: rotate(5deg); box-shadow: 4px 4px 0 var(--ink); }
.status-big {
  margin: .4rem 0 .6rem;
  font-family: var(--display);
  font-size: clamp(2.3rem, 7vw, 3.8rem);
  line-height: 1;
  letter-spacing: .03em;
}
.status-card .btn { margin-top: .4rem; font-size: clamp(1.15rem, 4.6vw, 1.45rem); }
.get-steps { margin: .3rem 0 1rem; padding-left: 1.4rem; }
.get-steps li { margin: .4rem 0; padding-left: .2rem; }
.get-steps li::marker { font-family: var(--display); font-size: 1.2em; }
.get-size { margin: .9rem 0 0; font-family: var(--mono); font-size: .86rem; font-weight: 600; }

.server {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: .6rem 0 0;
  padding: .45rem .8rem;
  font-family: var(--mono);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--paper);
  background: var(--ink);
}
.server-dot {
  flex: none;
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--yellow);
  animation: blink 1s steps(2, jump-none) infinite;
}
.server[data-state="online"] .server-dot { background: var(--cyan); animation: none; }
.server[data-state="offline"] .server-dot { background: #8b8794; animation: none; }

.planned-title,
.follow-title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  line-height: 1;
  letter-spacing: .04em;
}
.planned-title { color: var(--cyan); transform: rotate(-2deg); transform-origin: left; }
.tickets { display: grid; gap: 1rem; margin-top: 1.2rem; list-style: none; }
.ticket {
  display: flex;
  align-items: stretch;
  color: var(--ink);
  background: var(--cyan);
  border: var(--line) solid var(--ink);
  box-shadow: 0 0 0 3px var(--paper), 7px 7px 0 3px #000;
}
.ticket:nth-child(1) { transform: rotate(1deg); }
.ticket:nth-child(2) { transform: rotate(-1.2deg); margin-left: clamp(0rem, 3vw, 1.5rem); }
.ticket-in { background: var(--paper); transform: rotate(.8deg); }
.ticket-stamp {
  flex: none;
  display: grid;
  place-items: center;
  width: 6.4rem;
  padding: .5rem .4rem .4rem;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: .08em;
  text-align: center;
  line-height: 1.05;
  color: var(--yellow);
  background: var(--ink);
  border-right: 4px dashed var(--paper);
}
.ticket-what { align-self: center; padding: .7rem .9rem; font-size: 1.15rem; font-weight: 800; line-height: 1.25; }

.follow {
  margin-top: 2.4rem;
  padding: 1.1rem 1.2rem .3rem;
  color: var(--ink);
  background: var(--yellow);
  border: var(--line) solid var(--ink);
  box-shadow: 7px 7px 0 var(--violet);
  transform: rotate(-1.2deg);
}
.follow-title { margin-bottom: .5rem; }

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

.footer {
  position: relative;
  margin-top: calc(var(--slant) * -1);
  padding: calc(var(--slant) + 2rem) 0 2.2rem;
  background: var(--ink);
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
.footer-in {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem 1.6rem;
}
.footer-in p { margin: 0; }
.footer-in .footer-mark {
  margin-right: auto;
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: .05em;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--pink);
  transform: rotate(-3deg);
}
.footer a { font-weight: 700; text-underline-offset: .2em; text-decoration-thickness: 2px; }
.footer a:hover { color: var(--cyan); }

/* ---------- 404 ---------- */

.nf {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: 3rem 0;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .06) 0 1px, transparent 1.5px) 0 0 / 9px 9px,
    var(--asphalt);
  overflow-x: hidden;
}
.nf-code {
  width: max-content;
  max-width: 100%;
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-size: clamp(7rem, 38vw, 17rem);
  line-height: .82;
  letter-spacing: .02em;
  color: var(--yellow);
  -webkit-text-stroke: .04em var(--ink);
  paint-order: stroke fill;
  text-shadow: .045em .045em 0 var(--ink), .09em .09em 0 var(--pink);
  transform: rotate(-5deg);
}
.nf-title { margin-bottom: 1rem; }
.nf .btn { margin-top: 1rem; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { grid-column: span 2; grid-row: auto; }
  .p-frozen,
  .p-free { grid-column: span 1; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .moves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .move { grid-column: span 1; margin-top: 0; }
  .m-sprint,
  .m-vault { grid-column: span 2; }
  .m-vault { order: 5; }
  .m-rope { order: 4; }

  .fair-grid,
  .play-grid { grid-template-columns: minmax(0, 1fr); }
  .nope { justify-self: start; margin-left: .5rem; }
  .nope-word { font-size: clamp(2.6rem, 9vw, 4.6rem); }
}

@media (max-width: 760px) {
  .dim { grid-template-columns: minmax(0, 1fr); }
  .dim:nth-child(even) .dim-art { order: 0; }
  .dim:nth-child(odd) { margin-right: 0; }
  .dim:nth-child(even) { margin-left: 0; }
  .dim + .dim { margin-top: 1.6rem; }

  .role,
  .role-anchor,
  .role-weaver { grid-template-columns: minmax(0, 1fr); }
  .role-anchor .role-stage,
  .role-weaver .role-stage { order: 0; }
  .role-stage { width: min(100%, 22rem); justify-self: start; }
  .role-anchor .role-stage,
  .role-weaver .role-stage { justify-self: end; }
}

@media (max-width: 560px) {
  .p-frozen,
  .p-free { grid-column: span 2; }
  .panel,
  .move { box-shadow: 6px 6px 0 var(--ink); }
  .p-score { box-shadow: 6px 6px 0 var(--pink); }
  .m-sprint { box-shadow: 6px 6px 0 var(--pink); }
  .m-rope { box-shadow: 6px 6px 0 var(--white); }
  .moves { grid-template-columns: minmax(0, 1fr); }
  .move,
  .m-sprint,
  .m-vault { grid-column: auto; }
  .m-vault,
  .m-rope { order: 0; }

  .tier { grid-template-columns: minmax(0, 1fr); }
  .dim { box-shadow: 0 0 0 4px var(--paper), 8px 8px 0 4px #000; }
  .status-card { box-shadow: 0 0 0 4px var(--yellow), 8px 8px 0 4px var(--pink); }
  .role-stage { box-shadow: 0 0 0 4px var(--paper), 8px 8px 0 4px var(--rs); }
  .ticket-stamp { width: 5.4rem; font-size: 1.05rem; }
  .side { padding-inline: .8rem; }
  .side-h { padding-right: 15%; }
  .side-r { padding-left: 15%; }
}

/* ---------- account page ---------- */

.acct-body {
  background:
    radial-gradient(circle, rgba(255, 255, 255, .055) 0 1px, transparent 1.5px) 0 0 / 9px 9px,
    var(--asphalt);
}
.acct-body [hidden] { display: none !important; }
.acct { padding: clamp(1.5rem, 4vw, 3rem) 0 calc(var(--slant) + 4rem); }
.nav-btn {
  display: block;
  padding: .35rem .6rem;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--yellow);
  border: 0;
  cursor: pointer;
}
.nav-btn:hover { background: var(--paper); }

.acct-msg {
  --focus: var(--ink);
  max-width: 46rem;
  margin: 0 0 1.6rem;
  padding: .7rem 1rem;
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  background: var(--yellow);
  border: var(--line) solid var(--ink);
  box-shadow: 6px 6px 0 var(--cyan);
}
.acct-msg[data-kind="bad"] { background: var(--pink); box-shadow: 6px 6px 0 var(--yellow); }

.acct-card {
  --focus: var(--pink);
  padding: 1.3rem 1.3rem 1.4rem;
  color: var(--ink);
  background: var(--paper);
  border: 5px solid var(--ink);
  box-shadow: 0 0 0 4px var(--yellow), 11px 11px 0 4px var(--pink);
}
.acct-card h2 {
  margin-bottom: .6rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: .04em;
}
.acct-card p { margin: 0 0 .8rem; }
.acct-narrow { max-width: 34rem; }
.acct-sub {
  margin: 1.2rem 0 .3rem;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: .05em;
}

.acct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: 2.4rem 2.2rem;
  align-items: start;
  margin-top: 2.6rem;
}
.acct-grid .acct-card:nth-child(3n + 2) { box-shadow: 0 0 0 4px var(--cyan), 11px 11px 0 4px var(--violet); }
.acct-grid .acct-card:nth-child(3n + 3) { box-shadow: 0 0 0 4px var(--pink), 11px 11px 0 4px var(--cyan); }
.acct-grid .acct-danger { box-shadow: 0 0 0 4px var(--red), 11px 11px 0 4px var(--ink); }

.acct-field { display: grid; gap: .3rem; margin: 0 0 .8rem; }
.acct-field label,
.acct-facts dt,
.acct-stats dt {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.acct-input {
  width: 100%;
  padding: .6rem .7rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 0;
}
.acct-input:disabled { background: #d9d2c3; color: #45414c; cursor: not-allowed; }
.acct-input-code {
  max-width: 12rem;
  font-family: var(--mono);
  font-size: 1.5rem;
  letter-spacing: .3em;
}
.acct-row { display: flex; flex-wrap: wrap; gap: .7rem; }

.acct-btn {
  padding: .4em 1em .34em;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: .05em;
  color: var(--paper);
  background: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--pink);
  cursor: pointer;
}
.acct-btn:hover { color: var(--ink); background: var(--yellow); }
.acct-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--pink); }
.acct-btn:disabled { color: #45414c; background: #c6beae; border-style: dashed; box-shadow: none; cursor: not-allowed; transform: none; }
.acct-btn-plain { color: var(--ink); background: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
.acct-btn-danger { background: var(--red); border-color: var(--ink); color: var(--white); box-shadow: 4px 4px 0 var(--ink); }
.acct-btn-danger:hover { background: var(--ink); color: var(--white); }
.acct-btn[data-armed], .acct-mini[data-armed] { background: var(--pink); color: var(--ink); }
.acct-mini {
  padding: .15rem .55rem;
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  cursor: pointer;
}
.acct-mini:hover { background: var(--cyan); }

.acct-note { font-size: .92rem; line-height: 1.45; color: #3b3742; }
.acct-wait { font-weight: 700; color: var(--ink); background: var(--yellow); padding: .4rem .6rem; border: 2px solid var(--ink); }

/* Who you are, across the top. */
.acct-hero {
  --focus: var(--yellow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2.5rem;
  padding: 1.3rem 1.5rem;
  background: var(--ink);
  border: var(--line) solid var(--paper);
  box-shadow: 10px 10px 0 var(--cyan);
}
.acct-name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  line-height: 1;
  letter-spacing: .03em;
  color: var(--yellow);
  text-shadow: 3px 3px 0 var(--pink);
  overflow-wrap: anywhere;
}
.acct-rank {
  margin: .5rem 0 0;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: .06em;
  color: var(--cyan);
}
.acct-facts { display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; margin: 0; }
.acct-facts dt { color: #b9b2c6; }
.acct-facts dd { margin: .15rem 0 0; font-weight: 700; font-size: 1.15rem; }
.acct-code { font-family: var(--mono); font-size: 1.3rem; letter-spacing: .14em; color: var(--yellow); }

.acct-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 0 0 .9rem; }
.acct-stats div { padding: .5rem .7rem; background: var(--white); border: 3px solid var(--ink); }
.acct-icon { width: 1.75rem; height: 1.75rem; margin: -.3rem .35rem -.3rem 0; vertical-align: middle; }
.acct-stats dd { margin: 0; font-family: var(--display); font-size: 1.7rem; line-height: 1.1; letter-spacing: .03em; }

/* A switch: a square slider, no rounding. */
.acct-toggle {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: .8rem 0;
  font-size: .95rem;
  line-height: 1.4;
  border-top: 3px solid var(--ink);
  cursor: pointer;
}
.acct-toggle:first-of-type { border-top: 0; padding-top: .2rem; }
.acct-toggle input {
  position: relative;
  flex: none;
  width: 3rem;
  height: 1.6rem;
  margin: .1rem 0 0;
  appearance: none;
  -webkit-appearance: none;
  background: var(--white);
  border: 3px solid var(--ink);
  cursor: pointer;
}
.acct-toggle input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1rem;
  height: calc(100% - 4px);
  background: var(--ink);
  transition: transform .12s ease;
}
.acct-toggle input:checked { background: var(--cyan); }
.acct-toggle input:checked::after { transform: translateX(1.35rem); }
.acct-toggle input:disabled { opacity: .5; }

.acct-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.acct-table th,
.acct-table td { padding: .4rem .5rem .4rem 0; text-align: left; border-bottom: 2px solid var(--ink); }
.acct-table th { font-family: var(--mono); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; }

.acct-list { list-style: none; }
.acct-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  border-top: 2px solid var(--ink);
  overflow-wrap: anywhere;
}
.acct-list li:first-child { border-top: 0; }
.acct-state { font-family: var(--mono); font-size: .8rem; font-weight: 700; padding: .05rem .4rem; background: #c6beae; }
.acct-state[data-on="yes"] { background: var(--cyan); }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .wm, .num, .role-name, .nf-code { -webkit-text-stroke: 0; }
  .btn, .panel, .dim, .tier, .move, .ticket, .status-card { border-color: CanvasText; }
}
