/* Foundation: resets, type, layout, and the pieces every page shares. Built entirely from tokens.css. */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: var(--t-base) / var(--lh) var(--font);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:where(a) {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

:where(a):hover {
  color: var(--accent-hover);
}

:where(img, svg, video, canvas) {
  display: block;
  max-width: 100%;
}

:where(button, input, select, textarea) {
  font: inherit;
  color: inherit;
}

:where(h1, h2, h3, h4) {
  font-weight: 650;
  line-height: var(--lh-tight);
  letter-spacing: -0.014em;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-2xl);
}

h2 {
  font-size: var(--t-lg);
}

h3 {
  font-size: var(--t-md);
}

h4 {
  font-size: var(--t-base);
}

p {
  text-wrap: pretty;
}

:where(hr) {
  border: 0;
  border-top: var(--edge);
  margin: var(--s-4) 0;
}

:where(:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::selection {
  background: var(--accent-soft);
}

/* ---- utilities ---- */

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

.small {
  font-size: var(--t-sm);
}

.center {
  text-align: center;
}

.m0 {
  margin: 0;
}

.mt {
  margin-top: var(--s-2);
}

.ml-auto {
  margin-left: auto;
}

.mono {
  font-family: var(--mono);
  font-size: 0.925em;
  font-variant-ligatures: none;
}

.nowrap {
  white-space: nowrap;
}

.round {
  border-radius: var(--r-pill);
}

.square {
  border-radius: var(--r-sm);
}

.pre {
  white-space: pre-wrap;
}

.wide-gap {
  gap: var(--s-5);
}

[hidden] {
  display: none !important;
}

.eyebrow {
  font-size: var(--t-xs);
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin-bottom: var(--s-1);
}

/* ---- the header ---- */

.top {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--header);
  color: var(--header-text);
}

.top .inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  height: var(--header-h);
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--header-text);
  font-weight: 680;
  font-size: var(--t-md);
  letter-spacing: -0.02em;
  flex: none;
}

.brand:hover {
  color: var(--header-text);
  text-decoration: none;
}

.brand svg {
  width: 1.5rem;
  height: 1.5rem;
}

.nav {
  display: flex;
  gap: var(--s-1);
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  position: relative;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  color: var(--header-muted);
  font-weight: 550;
  font-size: var(--t-base);
  white-space: nowrap;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}

.nav a:hover {
  color: var(--header-text);
  background: oklch(100% 0 0 / 0.07);
  text-decoration: none;
}

.nav a.on {
  color: var(--header-text);
  background: oklch(100% 0 0 / 0.11);
}

.badge {
  display: inline-block;
  min-width: 1.125rem;
  margin-left: var(--s-1);
  padding: 0 0.3rem;
  border-radius: var(--r-pill);
  background: var(--danger);
  color: var(--n-0);
  font-size: var(--t-xs);
  font-weight: 700;
  line-height: 1.125rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  white-space: nowrap;
  flex: none;
}

.account > a {
  color: var(--header-text);
}

.robux {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-pill);
  color: var(--gold-bright);
  font-weight: 650;
  transition: background var(--fast) var(--ease);
}

.robux:hover {
  background: oklch(100% 0 0 / 0.09);
  text-decoration: none;
}

.robux .tix {
  color: var(--gold-bright);
  opacity: 0.85;
}

.robux.bump .rbx {
  animation: bump var(--slow) var(--ease-out);
}

.menu {
  position: relative;
}

.menu summary {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-1) var(--s-3) var(--s-1) var(--s-1);
  border-radius: var(--r-pill);
  color: var(--header-text);
  font-weight: 550;
  cursor: pointer;
  list-style: none;
  transition: background var(--fast) var(--ease);
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary:hover,
.menu[open] summary {
  background: oklch(100% 0 0 / 0.1);
}

.menu summary img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--r-pill);
  background: oklch(100% 0 0 / 0.12);
}

.menu-body {
  position: absolute;
  right: 0;
  top: calc(100% + var(--s-2));
  z-index: var(--z-pop);
  display: flex;
  flex-direction: column;
  min-width: 13rem;
  padding: var(--s-1);
  background: var(--surface);
  color: var(--text);
  border: var(--edge);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  transform-origin: top right;
  animation: pop var(--fast) var(--ease-out);
}

.menu-body a,
.menu-body .linkish {
  padding: var(--s-2) var(--s-3);
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--text);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.menu-body a:hover,
.menu-body .linkish:hover {
  background: var(--surface-3);
  text-decoration: none;
}

.menu-body .staff {
  margin-top: var(--s-1);
  border-top: var(--edge);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  color: var(--accent-2);
  font-weight: 650;
}

.site-alert {
  background: var(--accent);
  color: var(--accent-text);
  text-align: center;
  padding: var(--s-2) var(--s-4);
  font-weight: 600;
  font-size: var(--t-sm);
}

/* ---- page frame ---- */

main {
  flex: 1;
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--s-8) var(--s-5) var(--s-12);
}

body.wide main {
  max-width: var(--page-wide);
}

.foot {
  border-top: var(--edge);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--t-sm);
}

.foot .inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--s-5);
}

.foot .inner > span:first-child {
  margin-right: auto;
  font-weight: 600;
  color: var(--text-2);
}

.foot a {
  color: var(--muted);
}

.foot a:hover {
  color: var(--accent);
}

.section {
  margin-bottom: var(--s-10);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  min-height: 1.5rem;
}

.section-head h2,
.section-head h3 {
  margin: 0;
}

.section-head > a,
.section-head > .muted {
  font-size: var(--t-sm);
  flex: none;
}

/* ---- surfaces ---- */

.card {
  padding: var(--s-5);
  background: var(--surface);
  border: var(--edge);
  border-radius: var(--radius);
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.card.flat {
  box-shadow: none;
}

.notice {
  padding: var(--s-3) var(--s-4);
  border: 1px solid color-mix(in oklch, var(--gold) 35%, var(--line));
  border-left: 3px solid var(--gold);
  border-radius: var(--r-sm);
  background: var(--gold-soft);
  margin-bottom: var(--s-4);
}

.notice.bad {
  border-color: color-mix(in oklch, var(--danger) 35%, var(--line));
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.empty {
  display: grid;
  place-items: center;
  gap: var(--s-3);
  padding: var(--s-12) var(--s-5);
  text-align: center;
  color: var(--muted);
}

.empty h1,
.empty h2,
.empty h3 {
  color: var(--text);
  margin: 0;
}

/* ---- flow helpers ---- */

.stack > * + * {
  margin-top: var(--s-4);
}

.row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.row.top {
  align-items: flex-start;
}

.row.end {
  justify-content: flex-end;
}

.row.between {
  justify-content: space-between;
}

.split {
  display: grid;
  grid-template-columns: 18.75rem 1fr;
  gap: var(--s-6);
  align-items: start;
}

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

.button,
button {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.4375rem 0.75rem;
  min-height: 2.125rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: var(--t-base);
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease),
    color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.button:hover,
button:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.button:active,
button:active {
  background: var(--accent-active);
}

.button:disabled,
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--btn-bg);
}

.button.plain,
button.plain {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.button.plain:hover,
button.plain:hover {
  background: var(--surface-3);
}

.button.plain:active,
button.plain:active {
  background: var(--surface-inset);
}

.button.ghost,
button.ghost {
  --btn-bg: transparent;
  --btn-fg: var(--accent);
  border-color: transparent;
}

.button.ghost:hover,
button.ghost:hover {
  background: var(--accent-soft);
}

.button.danger,
button.danger {
  --btn-bg: var(--danger);
  --btn-fg: var(--n-0);
}

.button.danger:hover,
button.danger:hover {
  background: var(--danger-hover);
}

.button.buy,
button.buy {
  --btn-bg: var(--buy);
  --btn-fg: var(--buy-text);
  font-weight: 680;
}

.button.buy:hover,
button.buy:hover {
  background: var(--buy-bright);
}

.button.tix-buy,
button.tix-buy {
  --btn-bg: var(--gold-bright);
  --btn-fg: var(--n-950);
}

.button.big,
button.big {
  padding: 0.625rem 1.125rem;
  min-height: 2.625rem;
  font-size: var(--t-md);
}

.button.small,
button.small {
  padding: 0.25rem 0.5rem;
  min-height: 1.75rem;
  font-size: var(--t-sm);
}

.linkish {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: inherit;
  cursor: pointer;
}

.linkish:hover {
  background: none;
  text-decoration: underline;
}

.danger-text {
  color: var(--danger) !important;
}

.ok,
.good {
  color: var(--good);
}

.bad {
  color: var(--danger);
}

/* ---- forms ---- */

label {
  display: block;
  margin-bottom: var(--s-1);
  font-weight: 600;
  font-size: var(--t-sm);
  color: var(--text-2);
}

input,
textarea,
select {
  display: block;
  width: 100%;
  padding: 0.4375rem 0.625rem;
  min-height: 2.375rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

textarea {
  min-height: 6rem;
  resize: vertical;
  line-height: var(--lh-snug);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--muted);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}

input:disabled,
textarea:disabled,
select:disabled {
  background: var(--surface-3);
  color: var(--muted);
  cursor: not-allowed;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1rem;
  height: 1rem;
  min-height: 0;
  padding: 0;
  accent-color: var(--accent);
  box-shadow: none;
}

input[type="range"] {
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: var(--accent);
}

label.check,
label.inline {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 500;
  color: var(--text);
}

label.inline input {
  width: 6.5rem;
  margin: 0;
}

.form {
  max-width: 26rem;
  margin: var(--s-8) auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.75rem, 1fr));
  gap: 0 var(--s-4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}

.error,
.ok:not(.good) {
  min-height: 1.4em;
  margin: var(--s-1) 0;
  font-size: var(--t-sm);
}

.error {
  color: var(--danger);
}

form .error,
form .ok {
  margin-bottom: var(--s-3);
}

.error:empty,
.ok:empty {
  display: none;
}

.search {
  display: flex;
  gap: var(--s-2);
  max-width: 30rem;
}

.search input {
  margin: 0;
}

progress {
  width: 100%;
  height: 0.5rem;
  border: 0;
  border-radius: var(--r-pill);
  accent-color: var(--accent);
  background: var(--surface-3);
  overflow: hidden;
}

progress::-webkit-progress-bar {
  background: var(--surface-3);
}

progress::-webkit-progress-value {
  background: var(--accent);
}

progress::-moz-progress-bar {
  background: var(--accent);
}

/* ---- tabs, pills, lists, tables ---- */

.tabs,
.sort-tabs {
  display: flex;
  gap: var(--s-1);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--s-4);
}

.tabs a,
.sort-tabs a {
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-weight: 600;
  font-size: var(--t-sm);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}

.tabs a:hover,
.sort-tabs a:hover {
  background: var(--surface-3);
  color: var(--text);
  text-decoration: none;
}

.tabs a.on,
.sort-tabs a.on {
  background: var(--accent);
  color: var(--accent-text);
}

.tabs .count {
  margin-left: var(--s-1);
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.sort-tabs select {
  margin: 0 0 0 auto;
  width: auto;
}

.pill,
.status,
.kind,
.role-badge,
.bc {
  display: inline-block;
  padding: 0.0625rem 0.4375rem;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  font-size: var(--t-xs);
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
}

.pill.good,
.status.open,
.status.s0 {
  background: var(--good-soft);
  color: var(--good);
}

.pill.bad,
.status.declined,
.status.failed,
.status.cancelled,
.status.s2 {
  background: var(--danger-soft);
  color: var(--danger);
}

.status.completed {
  background: var(--good-soft);
  color: var(--good);
}

.status.s1 {
  background: var(--gold-soft);
  color: var(--gold);
}

.kind {
  margin-right: var(--s-1);
}

.role-badges {
  display: flex;
  gap: var(--s-1);
  flex-wrap: wrap;
  margin-bottom: var(--s-3);
}

.role-badge {
  border: var(--edge);
}

.role-badge.admin {
  background: var(--accent-2);
  color: var(--n-0);
  border-color: transparent;
}

.role-badge.moderator {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in oklch, var(--accent) 30%, transparent);
}

.bc {
  border-radius: var(--r-xs);
  color: var(--n-0);
  font-weight: 800;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.bc1 {
  background: var(--a-500);
}

.bc2 {
  background: var(--r-500);
}

.bc3 {
  background: var(--n-800);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-top: var(--edge);
}

.list li:first-child {
  border-top: 0;
}

.list li img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  object-fit: cover;
  flex: none;
}

.list .grow {
  flex: 1;
  min-width: 0;
}

.list .grow > * {
  margin: 0;
}

.steps {
  padding-left: var(--s-5);
  color: var(--muted);
}

.steps li {
  margin-bottom: var(--s-2);
}

table.table,
.exp-versions {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-base);
}

.table th,
.table td {
  padding: var(--s-2) var(--s-3);
  text-align: left;
  border-bottom: var(--edge);
  vertical-align: middle;
}

.table thead th {
  position: sticky;
  top: var(--header-h);
  z-index: 1;
  background: var(--surface-2);
  font-size: var(--t-xs);
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.table tbody tr:hover {
  background: var(--surface-2);
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.table-wrap {
  overflow-x: auto;
  border: var(--edge);
  border-radius: var(--radius);
}

pre.code,
.logbox {
  margin: 0;
  padding: var(--s-3);
  border: var(--edge);
  border-radius: var(--r-sm);
  background: var(--surface-inset);
  color: var(--text);
  font: var(--t-xs) / 1.6 var(--mono);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.logbox {
  background: var(--n-950);
  color: var(--n-200);
  border-color: var(--n-800);
  max-height: 22.5rem;
}

.logbox.raw,
.logbox.code-view {
  max-height: 26rem;
  white-space: pre;
}

.facts,
.facts-grid,
.game-stats {
  display: grid;
  gap: var(--s-1) var(--s-4);
  margin: 0 0 var(--s-4);
}

.facts {
  grid-template-columns: max-content 1fr;
  font-size: var(--t-base);
}

.facts dt,
.facts-grid dt,
.game-stats dt {
  color: var(--muted);
  font-size: var(--t-sm);
}

.facts dd,
.facts-grid dd,
.game-stats dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.facts-grid,
.game-stats {
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: var(--s-2);
}

.facts-grid > div,
.game-stats > div {
  padding: var(--s-2) var(--s-3);
  border: var(--edge);
  border-radius: var(--r-sm);
  background: var(--surface);
}

.game-stats dd {
  font-size: var(--t-md);
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}

.facts.bare {
  display: flex;
  gap: var(--s-6);
  flex-wrap: wrap;
  margin: var(--s-2) 0 var(--s-4);
}

.facts.bare b {
  display: block;
  font-size: var(--t-lg);
  color: var(--text);
}

.description {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.crumbs {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-bottom: var(--s-3);
  color: var(--muted);
  font-size: var(--t-sm);
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--accent);
}

/* ---- money ---- */

.rbx,
.tix {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rbx-icon,
.tix-icon {
  width: 1em;
  height: 1em;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.rbx-icon {
  --icon: url(/static/robux.svg);
}

.tix-icon {
  --icon: url(/static/tix.svg);
}

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

.rbx.big {
  font-size: var(--t-xl);
}

.rbx.huge {
  font-size: var(--t-3xl);
  letter-spacing: -0.03em;
}

.big-number {
  font-size: var(--t-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.countdown {
  font-size: var(--t-md);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* ---- presence ---- */

.dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.35em;
  border-radius: var(--r-pill);
  background: var(--n-400);
  vertical-align: baseline;
}

.dot.online {
  background: var(--good);
}

.dot.game {
  background: var(--game);
}

/* ---- pictures waiting to load ---- */

.item .thumb img,
.tile .pic,
.avatar-big,
.viewer img,
.offer-item img,
.trade-pick img,
.mini-items img,
.platform-icon img,
.exp-card img {
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}

img.loaded {
  animation: none !important;
  background: transparent !important;
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shimmer {
  from {
    background-position: 140% 0;
  }

  to {
    background-position: -40% 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes bump {
  30% {
    transform: scale(1.16);
  }

  to {
    transform: none;
  }
}

@keyframes burst {
  from {
    opacity: 0.7;
    transform: scale(0.3);
  }

  to {
    opacity: 0;
    transform: scale(2.2);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

main > * {
  animation: rise var(--slow) var(--ease-out) both;
}

.spinner,
.admin-spinner {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  flex: none;
  border: 2px solid color-mix(in oklch, currentColor 25%, transparent);
  border-top-color: currentColor;
  border-radius: var(--r-pill);
  animation: spin 0.7s linear infinite;
  vertical-align: -0.15em;
}

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

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

/* ---- dialogs and toasts ---- */

dialog {
  width: min(32.5rem, calc(100% - 2rem));
  max-width: none;
  padding: var(--s-6);
  border: var(--edge);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  animation: pop var(--normal) var(--ease-out);
}

dialog.wide-dialog {
  width: min(54rem, calc(100% - 2rem));
}

dialog::backdrop {
  background: oklch(12% 0.01 265 / 0.5);
  backdrop-filter: blur(2px);
}

dialog h2 {
  margin-bottom: var(--s-3);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: var(--s-6);
  z-index: var(--z-toast);
  max-width: calc(100% - 2rem);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-md);
  background: var(--n-900);
  color: var(--n-0);
  box-shadow: var(--shadow-lg);
  font-size: var(--t-base);
  animation: slide-up var(--normal) var(--ease-out);
}

.toast.good {
  background: var(--good);
  color: var(--n-0);
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translate(-50%, 0.75rem);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.confetti {
  position: fixed;
  inset: 0;
  z-index: var(--z-toast);
  pointer-events: none;
}

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

@media (max-width: 60rem) {
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 48rem) {
  .top .inner {
    padding: 0 var(--s-4);
    gap: var(--s-3);
  }

  .brand span,
  .menu summary span {
    display: none;
  }

  main {
    padding: var(--s-6) var(--s-4) var(--s-10);
  }

  .foot .inner {
    padding: var(--s-4);
  }
}
