/* rage.rip - one sheet for the whole site.
   a black base, a single red gradient, lowercase copy, and enough room between
   things to read them. no emoji and no icon fonts: the only marks are the logo
   and the two inline glyphs in the markup. */

:root {
  --ink: #070405;
  --ink-top: #0c0609;
  --surface: #0f090b;
  --surface-2: #150c10;
  --line: rgba(255, 74, 74, 0.13);
  --line-2: rgba(255, 74, 74, 0.26);
  --red: #ff4a4a;
  --red-hi: #ff6060;
  --red-lo: #8e0d16;
  --text: #f1e6e6;
  --dimmer: #b39293;
  --muted: #8b6d6e;
  --good: #4ec98a;
  --warn: #e0a94e;
  --bad: #ff5f5f;
  --r: 12px;
  --r-sm: 8px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 14px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 640px at 4% -16%, rgba(255, 58, 58, 0.14), transparent 62%),
    radial-gradient(1000px 560px at 106% 0%, rgba(138, 8, 24, 0.22), transparent 58%),
    linear-gradient(180deg, var(--ink-top), var(--ink) 62%);
  background-attachment: fixed;
}

.hidden { display: none !important; }
img { display: block; }

/* --------------------------------------------------------------- type */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 26px; }
h2 { font-size: 16px; }
p { margin: 0; }

.label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--muted);
}

.quiet, .note { color: var(--muted); font-size: 12.5px; }
.note { margin-top: 10px; }
.note.bad, .field .bad { color: var(--bad); }
.note.good { color: var(--good); }
.mono { font-family: var(--mono); }

.wordmark {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  color: var(--text);
}
.wordmark span { color: var(--red); }

a { color: var(--text); }
a:hover { color: var(--red-hi); }

code { font-family: var(--mono); font-size: 12.5px; color: #ffd7d7; }

/* ------------------------------------------------------------ controls */
.field { display: block; }
.field > span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--muted);
  margin-bottom: 7px;
}

input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--line-2); background: rgba(0, 0, 0, 0.5); }
input::placeholder { color: #6d5354; }
input[type="checkbox"] { width: 17px; height: 17px; padding: 0; accent-color: var(--red); }

.button {
  font: inherit;
  color: var(--dimmer);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 18px;
  cursor: pointer;
  text-transform: lowercase;
  letter-spacing: 0.01em;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.button:hover { color: var(--text); border-color: var(--line-2); }
.button:disabled { opacity: 0.35; cursor: default; }
.button:disabled:hover { color: var(--text); border-color: var(--line); }
.button.quiet { border-color: transparent; padding: 10px 12px; }
.button.quiet:hover { color: var(--text); background: rgba(255, 74, 74, 0.06); }
.button.primary {
  color: #fff;
  border-color: rgba(255, 96, 96, 0.35);
  background: linear-gradient(180deg, #f8383d, var(--red-lo));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.button.primary:hover { color: #fff; background: linear-gradient(180deg, #ff4d51, #9d1119); }
.button.mini { padding: 5px 10px; font-size: 11.5px; }
.button.danger:hover { color: #ffd7d7; border-color: rgba(255, 95, 95, 0.5); background: rgba(255, 95, 95, 0.08); }
.button.wide { display: block; width: 100%; }
a.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* ------------------------------------------------------------ sign in */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.signin {
  width: min(370px, 100%);
  padding: 34px 30px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 74, 74, 0.05), rgba(255, 74, 74, 0) 40%), var(--surface);
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}
.signin .field { width: 100%; text-align: left; }

/* --------------------------------------------------------------- shell */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px 30px;
  background: rgba(8, 4, 6, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.nav button {
  font: inherit;
  font-size: 13.5px;
  text-transform: lowercase;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  box-shadow: inset 0 -1px 0 transparent;
  transition: color 0.15s ease, box-shadow 0.15s ease;
}
.nav button:hover { color: var(--text); }
.nav button.active { color: var(--text); box-shadow: inset 0 -1px 0 var(--red); }

.shell { max-width: 1120px; margin: 0 auto; padding: 8px 30px 90px; }
.tab { display: block; }

/* the blocks are separated by hairlines instead of boxes: less chrome, more room */
.block { padding: 30px 0; border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; }
.head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.head .count { justify-self: end; }
.head-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.count { font-size: 11.5px; color: var(--muted); letter-spacing: 0.06em; }
.head .label { margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 46px; }
.split > .block { border-top: 1px solid var(--line); }

/* --------------------------------------------------------------- stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 20px 0;
  padding: 30px 0 4px;
}
.stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.stat span { font-size: 11px; letter-spacing: 0.08em; text-transform: lowercase; color: var(--muted); }

/* --------------------------------------------------------------- lists */
.rows { display: grid; }
.row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.row:last-child { border-bottom: 0; }
.row-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-side { color: var(--muted); font-size: 11.5px; white-space: nowrap; }

.facts { display: grid; gap: 8px; font-size: 12.5px; color: var(--muted); }
.facts strong { color: var(--text); font-weight: 500; }

/* -------------------------------------------------------------- tables */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--muted);
  padding: 0 14px 10px 0;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--dimmer);
  vertical-align: middle;
  white-space: nowrap;
}
tbody tr:hover td { background: rgba(255, 74, 74, 0.03); }
td.key { font-family: var(--mono); font-size: 12.5px; color: #ffd9d9; letter-spacing: 0.03em; }
td.actions { text-align: right; padding-right: 0; }
td.actions .button { margin-left: 6px; }
td.wide { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
td.nowrap-dim { color: var(--muted); }

.state { display: inline-flex; align-items: center; gap: 7px; text-transform: lowercase; }
.state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
/* a kicked session stays in the list until its beats stop, so the kick is visible
   instead of the person just vanishing while they are still in the game */
#sessions-table tbody tr.kicked td:first-child { box-shadow: inset 2px 0 0 var(--bad); }

.state.live, .state.good { color: var(--good); }
.state.warn { color: var(--warn); }
.state.off, .state.bad { color: var(--bad); }
.state.idle { color: var(--muted); }

/* -------------------------------------------------------- forms inside */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 20px; align-items: end; }
.fields .button { justify-self: start; }
.switches { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 30px; }
.switch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-size: 13px;
  text-transform: lowercase;
}
.switch:hover { color: var(--red-hi); }
.switch input { flex: 0 0 auto; }

pre {
  margin: 0;
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #ffd9d9;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.result { max-height: 320px; overflow: auto; margin-top: 16px; }
.actions { display: flex; align-items: center; gap: 14px; padding-top: 26px; border-top: 1px solid var(--line); }
.actions .note { margin: 0; }
.fresh { margin-top: 20px; }
.fresh pre { margin-top: 10px; }

.filters { display: flex; gap: 16px; flex-wrap: wrap; }
.filters button {
  font: inherit;
  font-size: 11.5px;
  text-transform: lowercase;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0 0 2px;
  cursor: pointer;
  box-shadow: inset 0 -1px 0 transparent;
}
.filters button:hover { color: var(--text); }
.filters button.active { color: var(--text); box-shadow: inset 0 -1px 0 var(--red); }

/* --------------------------------------------------- session controls */
.kebab {
  font: inherit;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 5px 9px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.kebab:hover { color: var(--text); border-color: var(--line-2); background: rgba(255, 74, 74, 0.06); }
.kebab.on { color: var(--text); border-color: var(--line-2); }

.row-menu {
  position: fixed;
  z-index: 70;
  display: grid;
  min-width: 214px;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: rgba(17, 9, 12, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
}
.row-menu button {
  font: inherit;
  font-size: 12.5px;
  text-align: left;
  text-transform: lowercase;
  color: var(--dimmer);
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  padding: 9px 12px;
  cursor: pointer;
}
.row-menu button:hover { color: var(--text); background: rgba(255, 74, 74, 0.08); }
.row-menu button.danger:hover { color: #ffd7d7; background: rgba(255, 95, 95, 0.1); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 2, 3, 0.72);
  backdrop-filter: blur(4px);
}
.modal-card {
  width: min(620px, 100%);
  padding: 26px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 74, 74, 0.06), rgba(255, 74, 74, 0) 40%), var(--surface);
  display: grid;
  gap: 14px;
}
.modal-card textarea {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  min-height: 150px;
  resize: vertical;
}
.modal .actions { padding-top: 4px; border-top: 0; }
.modal-card.narrow { width: min(430px, 100%); }

/* the extend picker: one row of durations, then a box for anything else */
.extend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 8px;
}
.extend-grid button {
  font: inherit;
  font-size: 12.5px;
  text-transform: lowercase;
  color: var(--dimmer);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 6px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.extend-grid button:hover {
  color: var(--text);
  border-color: var(--line-2);
  background: rgba(255, 74, 74, 0.07);
}

.console-out {
  margin-top: 14px;
  max-height: 340px;
  overflow: auto;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(0, 0, 0, 0.45);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
}
.console-out .ln { display: flex; gap: 12px; }
.console-out .ln time { color: var(--muted); flex: 0 0 auto; }
.console-out .ln span { white-space: pre-wrap; word-break: break-word; color: #ffd9d9; }
.console-out .empty { color: var(--muted); }
.console-out .run { color: var(--warn); }

#broadcast-form { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; }
#broadcast-form .field { flex: 1 1 320px; }

/* -------------------------------------------------------------- toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  padding: 12px 20px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(21, 12, 16, 0.96);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  z-index: 60;
}
.toast.bad { border-color: rgba(255, 95, 95, 0.5); color: #ffd7d7; }

/* ------------------------------------------------------------- splash */
/* three bands on a near black page: a hairline rule with the mark, the claim in
   the middle, a hairline rule with the version. no glow, no blurred type - the
   hierarchy comes from the scale jump and from the space between the bands. */
.splash {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: 0 clamp(20px, 5vw, 52px);
  overflow: hidden;
  isolation: isolate;
}

/* the only light: a wide red wash sitting under the fold, so the page is not a
   flat rectangle of black */
.splash::before {
  content: "";
  position: fixed;
  inset: auto -25% -40% -25%;
  height: 75vh;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(52% 62% at 50% 100%, rgba(255, 58, 58, 0.16), transparent 72%);
}

/* a fine grain over the whole page: worst case it is invisible, best case it
   stops the near black from banding on a cheap panel */
.splash::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.splash-top,
.splash-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--muted);
}

.splash-top {
  padding: 24px 0 22px;
  border-bottom: 1px solid rgba(255, 74, 74, 0.09);
}

/* three equal tracks with the middle one sized to its word: that is what keeps
   "since 2026" on the page's centre line no matter how wide the copyright or the
   discord link is. space-between only lands it there by accident. */
.splash-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255, 74, 74, 0.09);
  color: #6a5456;
}
.splash-foot > :last-child { justify-self: end; }

/* the middle of the footer is the quietest line on the page, and the discord is
   the only thing down here that can be clicked */
.foot-meta { color: #4f3d40; }
.foot-link {
  color: #8b7274;
  text-decoration: none;
  transition: color 0.14s ease;
}
.foot-link:hover { color: var(--red-hi); text-decoration: underline; text-underline-offset: 3px; }

.brandmark {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--red);
}
.brandmark span { color: var(--dimmer); }

.status { display: inline-flex; align-items: center; gap: 8px; }
.status em {
  font-style: normal;
  color: var(--good);
}
.status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(78, 201, 138, 0.1);
}
.status.off em { color: var(--muted); }
.status.off i { background: var(--muted); box-shadow: 0 0 0 3px rgba(139, 109, 110, 0.1); }

.splash-inner {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(14px, 2.2vh, 19px);
  padding: clamp(56px, 12vh, 118px) 0;
  text-align: center;
}

/* the small line above the wordmark: a rule and a word, nothing more */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  color: var(--muted);
}
.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--line-2);
}

/* "rage" is the red and ".rip" is the white: the span around the tail is what
   carries the second colour, so a brand set from the panel keeps the same split */
.hero {
  margin: 0;
  font-size: clamp(52px, 11vw, 118px);
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.05em;
  text-transform: lowercase;
  color: var(--red);
  user-select: none;
}
.hero span { color: #f7f0f1; }

/* one flat red block, no gradient and no lift on hover: the only thing that
   changes is the shade, so the button never moves out from under the pointer */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 13px 30px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  text-decoration: none;
  color: #fff;
  background: #dd2028;
  border: 1px solid rgba(255, 120, 120, 0.25);
  transition: background 0.14s ease, border-color 0.14s ease;
}
.cta:hover { color: #fff; background: #f5313a; border-color: rgba(255, 150, 150, 0.4); }
.cta:active { background: #c2161e; }
.cta.off { opacity: 0.35; pointer-events: none; filter: grayscale(0.5); }

@media (max-width: 620px) {
  .splash-top { padding: 18px 0 16px; }
  .splash-foot {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 7px;
    padding: 18px 0 22px;
  }
  .splash-foot > :last-child { justify-self: start; }
}

/* --------------------------------------------------------------- claim */
/* the claim page is the same splash: one button, then the key in its place */
.claim-stage {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
  min-height: 0;
  /* the wordmark is one block and the stage is the other: this is the gap
     between them, kept a touch wider than the gaps inside the stage */
  margin-top: clamp(12px, 2.4vh, 20px);
}
.claim-note {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.claim-note.bad { color: var(--bad); }

.claim-key {
  font: inherit;
  font-family: var(--mono);
  font-size: clamp(15px, 2.4vw, 24px);
  letter-spacing: 0.14em;
  padding: 18px 26px;
  max-width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: rgba(0, 0, 0, 0.45);
  color: #ffd9d9;
  cursor: pointer;
  word-break: break-all;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.claim-key:hover {
  border-color: rgba(255, 96, 96, 0.5);
  background: rgba(0, 0, 0, 0.6);
  color: #ffdede;
}

/* a stop between the key systems: the wordmark steps back and one card slides up
   carrying the next link and the line that promises the key */
.splash-inner .hero {
  transition: font-size 0.45s cubic-bezier(0.16, 0.8, 0.24, 1), opacity 0.45s ease;
}
.splash-inner.second .hero {
  font-size: clamp(28px, 5vw, 44px);
  opacity: 0.9;
}

.slider {
  display: grid;
  justify-items: center;
  gap: 15px;
  /* a definite width: the card sits in a shrink to fit column, so a percentage
     here would collapse to the width of the text inside it */
  width: min(380px, calc(100vw - 48px));
  padding: 30px 34px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    linear-gradient(180deg, rgba(255, 74, 74, 0.07), rgba(255, 74, 74, 0) 52%),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 34px 80px rgba(0, 0, 0, 0.6);
  animation: rise 0.55s cubic-bezier(0.16, 0.8, 0.24, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .slider { animation: none; }
  .splash-inner .hero { transition: none; }
}

.slider-step {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: lowercase;
  color: var(--red);
  opacity: 0.75;
}

.slider-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

.slider .cta,
.claim-stage .cta { margin-top: 4px; }

/* the tiny print under the button: small, dark and quiet, so it says what the
   second key system pays without competing with the button above it */
.fineprint {
  margin: 2px 0 0;
  max-width: 32ch;
  font-size: 9.5px;
  line-height: 1.6;
  letter-spacing: 0.11em;
  text-transform: lowercase;
  color: #4d4044;
}
.fineprint b { font-weight: 600; color: #6b5a5e; }

/* -------------------------------------------------------- public pages */
.public { max-width: 700px; margin: 0 auto; padding: 74px 30px 90px; }
.public h1 { font-size: 34px; letter-spacing: -0.03em; }
.public .lead { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.public .block { padding: 28px 0; }
.public .block:first-child { border-top: 0; }

.badge { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--good); margin-top: 20px; }
.badge.off { color: var(--bad); }

.steps { display: grid; gap: 0; }
.step { display: flex; gap: 20px; align-items: flex-start; padding: 26px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step-no { font-family: var(--mono); font-size: 12px; color: var(--red); padding-top: 3px; letter-spacing: 0.06em; }
.step h2 { margin-bottom: 8px; }
.step .button { margin-top: 18px; }

.key-display {
  font-family: var(--mono);
  font-size: 25px;
  letter-spacing: 0.12em;
  padding: 22px;
  text-align: center;
  border: 1px dashed rgba(255, 74, 74, 0.4);
  border-radius: var(--r);
  background: rgba(0, 0, 0, 0.35);
  color: #ffd9d9;
  word-break: break-all;
  margin-bottom: 18px;
}
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 26px;
  text-transform: lowercase;
}
.back:hover { color: var(--text); }
.back svg { width: 12px; height: 12px; }

@media (max-width: 780px) {
  .bar { padding: 12px 18px; gap: 16px; }
  .nav { gap: 16px; margin-left: 0; width: 100%; }
  .shell { padding: 4px 18px 70px; }
  .public { padding: 46px 20px 70px; }
  .split { grid-template-columns: 1fr; gap: 0; }
  .signin { padding: 28px 22px; }
  .split > .block:first-child { border-top: 0; }
  h1 { font-size: 23px; }
  .public h1 { font-size: 28px; }
}
