/* RoyaleTube — the whole design system.
 *
 * MOBILE FIRST, and not as a slogan: the primary device is a phone held in one
 * hand, outdoors, in sunlight, by somebody walking. Everything below assumes
 * that and adapts UP to desktop, which is why the base styles are the small
 * ones and every media query widens rather than narrows.
 *
 * The palette is black, charcoal and white with ORANGE as the single accent.
 * Red means damage or danger and is never decorative; green means online and
 * never anything else. A colour that means two things means nothing at a glance,
 * and a glance is all this interface gets.
 *
 * Not luxury, not corporate, not glossy sci-fi. Gen 1 equipment: high contrast,
 * chunky, legible, a bit industrial. */

:root {
  /* Surfaces, darkest to lightest. */
  --rt-black: #08090a;
  --rt-surface: #0f1113;
  --rt-raised: #16191c;
  --rt-raised-2: #1e2226;
  --rt-line: #2a2f34;
  --rt-line-bright: #3a4148;

  --rt-ink: #f2f4f6;
  --rt-ink-dim: #a8b0b8;
  --rt-ink-faint: #6b747c;

  /* The one accent. */
  --rt-orange: #ff6a13;
  --rt-orange-bright: #ff8438;
  --rt-orange-dim: #b8480c;
  --rt-orange-glow: rgba(255, 106, 19, 0.18);

  /* Combat and damage. */
  --rt-red: #e03131;
  --rt-red-dim: #8c1f1f;
  /* Online, active, healthy. */
  --rt-green: #38b25a;
  --rt-green-dim: #1f6b36;
  /* Warning: low battery, offline-but-present. */
  --rt-amber: #e8a33d;

  --rt-radius: 10px;
  --rt-radius-lg: 16px;
  --rt-gap: 16px;

  /* The bottom navigation is fixed, so every scrolling page owes it clearance
   * or its last card sits under the tab bar forever. */
  --rt-bottom-nav: 62px;
  --rt-header: 56px;

  --rt-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --rt-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* RoyaleTube is a dark product. It is used outdoors at night as often as in
 * daylight, and a light theme would be a second set of contrast decisions for a
 * screen that mostly needs to be readable in the dark. */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--rt-black);
  color: var(--rt-ink);
  font-family: var(--rt-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* A game map must not rubber-band the page underneath it. */
  overscroll-behavior-y: none;
}

body { padding-bottom: calc(var(--rt-bottom-nav) + env(safe-area-inset-bottom, 0px)); }

@media (min-width: 900px) { body { padding-bottom: 0; } }

img { max-width: 100%; display: block; }
a { color: var(--rt-orange); text-decoration: none; }
a:hover { color: var(--rt-orange-bright); }

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

/* Everything focusable gets a visible ring. On a phone this matters less; on a
 * desktop it is the difference between a usable page and a maze. */
:focus-visible {
  outline: 2px solid var(--rt-orange);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ layout */

.rt-shell { min-height: 100vh; display: flex; flex-direction: column; }
.rt-main { flex: 1; width: 100%; }
.rt-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.rt-wrap--narrow { max-width: 780px; }

.rt-section { padding: 40px 0; }
.rt-section--tight { padding: 24px 0; }

@media (min-width: 900px) {
  .rt-wrap { padding: 0 32px; }
  .rt-section { padding: 64px 0; }
}

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

.rt-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--rt-header);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: rgba(8, 9, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rt-line);
}

.rt-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--rt-mono);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--rt-ink);
  text-transform: uppercase;
}
.rt-logo:hover { color: var(--rt-ink); }
.rt-logo__mark {
  width: 22px; height: 22px;
  border: 2px solid var(--rt-orange);
  border-radius: 4px;
  position: relative;
  flex: none;
}
.rt-logo__mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--rt-orange);
  border-radius: 1px;
}

/* The desktop nav. Hidden on phones, where the bottom bar does this job. */
.rt-nav { display: none; margin-left: 20px; gap: 4px; }
.rt-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--rt-ink-dim);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.rt-nav a:hover { color: var(--rt-ink); background: var(--rt-raised); }
.rt-nav a[aria-current="page"] { color: var(--rt-orange); background: var(--rt-orange-glow); }

@media (min-width: 900px) { .rt-nav { display: flex; } }

.rt-header__spacer { flex: 1; }

.rt-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--rt-line-bright);
  background: var(--rt-raised);
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--rt-ink-dim);
  flex: none;
}

/* ------------------------------------------------------- bottom navigation */

/* The phone's primary navigation. Five destinations, no more: a sixth would
 * make every target smaller than a thumb. */
.rt-tabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--rt-bottom-nav) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(8, 9, 10, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--rt-line);
}

.rt-tabs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--rt-ink-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* A 44px minimum target, because this is pressed with a thumb while walking. */
  min-height: 44px;
}
.rt-tabs a[aria-current="page"] { color: var(--rt-orange); }
.rt-tabs a svg { width: 20px; height: 20px; }

@media (min-width: 900px) { .rt-tabs { display: none; } }

/* ------------------------------------------------------------------ typography */

.rt-h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 8vw, 62px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.rt-h2 {
  margin: 0 0 8px;
  font-size: clamp(21px, 4vw, 30px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.rt-h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }

.rt-lede { margin: 0 0 20px; color: var(--rt-ink-dim); font-size: 17px; max-width: 60ch; }
.rt-muted { color: var(--rt-ink-dim); }
.rt-faint { color: var(--rt-ink-faint); font-size: 13px; }

.rt-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--rt-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rt-orange);
}

.rt-serial {
  font-family: var(--rt-mono);
  letter-spacing: 0.06em;
  color: var(--rt-ink-dim);
}

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

.rt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--rt-line-bright);
  border-radius: var(--rt-radius);
  background: var(--rt-raised);
  color: var(--rt-ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}
.rt-btn:hover { background: var(--rt-raised-2); border-color: var(--rt-ink-faint); color: var(--rt-ink); }
.rt-btn:active { transform: translateY(1px); }

.rt-btn--primary {
  background: var(--rt-orange);
  border-color: var(--rt-orange);
  color: #120a04;
}
.rt-btn--primary:hover { background: var(--rt-orange-bright); border-color: var(--rt-orange-bright); color: #120a04; }

.rt-btn--danger { border-color: var(--rt-red-dim); color: #ffbdbd; }
.rt-btn--danger:hover { background: rgba(224, 49, 49, 0.14); border-color: var(--rt-red); }

.rt-btn--ghost { background: transparent; }
.rt-btn--sm { min-height: 36px; padding: 8px 14px; font-size: 12px; }
.rt-btn--block { width: 100%; }

.rt-btn:disabled,
.rt-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }

.rt-btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------------ cards */

.rt-card {
  background: var(--rt-surface);
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius-lg);
  padding: 18px;
}
.rt-card--flush { padding: 0; overflow: hidden; }
.rt-card--link { display: block; color: inherit; transition: border-color 120ms ease, background 120ms ease; }
.rt-card--link:hover { border-color: var(--rt-orange-dim); background: var(--rt-raised); color: inherit; }

.rt-grid { display: grid; gap: var(--rt-gap); }
.rt-grid--2 { grid-template-columns: 1fr; }
.rt-grid--3 { grid-template-columns: 1fr; }
.rt-grid--4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 700px) {
  .rt-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .rt-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .rt-grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1000px) {
  .rt-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ------------------------------------------------------------------ chips */

.rt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--rt-line-bright);
  background: var(--rt-raised);
  font-family: var(--rt-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rt-ink-dim);
  white-space: nowrap;
}

/* Class chips. The colour IS the information — a boss must be identifiable
 * without reading the word, at arm's length, in sunlight. */
.rt-chip--common { color: var(--rt-ink-dim); }
.rt-chip--elite { color: var(--rt-orange); border-color: var(--rt-orange-dim); background: var(--rt-orange-glow); }
.rt-chip--boss { color: #ffd0c0; border-color: var(--rt-red); background: rgba(224, 49, 49, 0.16); }
.rt-chip--event { color: #cbb6ff; border-color: #5b46a8; background: rgba(120, 90, 220, 0.16); }

.rt-chip--online { color: var(--rt-green); border-color: var(--rt-green-dim); background: rgba(56, 178, 90, 0.14); }
.rt-chip--offline { color: var(--rt-amber); border-color: #6b5220; background: rgba(232, 163, 61, 0.12); }
.rt-chip--danger { color: #ffbdbd; border-color: var(--rt-red-dim); background: rgba(224, 49, 49, 0.12); }

.rt-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.rt-dot--pulse { animation: rt-pulse 2s ease-in-out infinite; }

@keyframes rt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .rt-dot--pulse { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------- HP bars */

.rt-hp { display: block; }
.rt-hp__track {
  height: 10px;
  border-radius: 999px;
  background: var(--rt-raised-2);
  border: 1px solid var(--rt-line);
  overflow: hidden;
}
.rt-hp__fill {
  height: 100%;
  background: var(--rt-green);
  transition: width 260ms ease, background 260ms ease;
}
.rt-hp__fill[data-tone="hurt"] { background: var(--rt-amber); }
.rt-hp__fill[data-tone="critical"] { background: var(--rt-red); }
.rt-hp__fill[data-tone="dead"] { background: var(--rt-line-bright); }

.rt-hp__label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  font-family: var(--rt-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--rt-ink-dim);
}

.rt-hp--tall .rt-hp__track { height: 18px; }

/* Damage that just landed, floating off the bar. */
.rt-damage-float {
  position: absolute;
  right: 8px;
  font-family: var(--rt-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--rt-red);
  pointer-events: none;
  animation: rt-float 900ms ease-out forwards;
}
@keyframes rt-float {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-38px); }
}

/* --------------------------------------------------------------- stat rows */

.rt-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rt-line); border: 1px solid var(--rt-line); border-radius: var(--rt-radius); overflow: hidden; }
.rt-stats--3 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 700px) { .rt-stats--4 { grid-template-columns: repeat(4, 1fr); } }

.rt-stat { background: var(--rt-surface); padding: 12px 14px; }
.rt-stat__value { font-family: var(--rt-mono); font-size: 20px; font-weight: 700; line-height: 1.2; }
.rt-stat__label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rt-ink-faint); margin-top: 2px; }
.rt-stat__value--accent { color: var(--rt-orange); }

/* ------------------------------------------------------------------- map */

.rt-map { position: relative; width: 100%; }
.rt-map__canvas {
  width: 100%;
  /* Full viewport minus the chrome, so the map is the page rather than a
   * widget on it. This is a map-first product. */
  height: calc(100vh - var(--rt-header) - var(--rt-bottom-nav) - env(safe-area-inset-bottom, 0px));
  background: var(--rt-surface);
}
@media (min-width: 900px) {
  .rt-map__canvas { height: calc(100vh - var(--rt-header)); }
}

.rt-map__overlay {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  z-index: 5;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  pointer-events: none;
}
.rt-map__overlay > * { pointer-events: auto; }

.rt-map-setup {
  display: grid;
  place-content: center;
  gap: 10px;
  height: 100%;
  padding: 32px;
  text-align: center;
  color: var(--rt-ink-dim);
}
.rt-map-setup__title { font-weight: 700; color: var(--rt-ink); margin: 0; }
.rt-map-setup__body { margin: 0; font-size: 14px; max-width: 46ch; }

/* The demo map: a stylised grid drawn in CSS, shown where Mapbox would be when
 * no token is configured. It is honest about being a diagram — it carries a
 * label saying so — and it exists so the home page still communicates. */
.rt-mapdemo {
  position: relative;
  height: 100%;
  min-height: 280px;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,106,19,0.10), transparent 45%),
    linear-gradient(var(--rt-line) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, var(--rt-line) 1px, transparent 1px) 0 0 / 44px 100%,
    var(--rt-surface);
  border-radius: var(--rt-radius-lg);
  overflow: hidden;
}
.rt-mapdemo__pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}
.rt-mapdemo__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed currentColor;
  opacity: 0.5;
}
.rt-mapdemo__core {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(8,9,10,0.9);
}

/* ---------------------------------------------------------- bottom sheet */

/* The map's detail view. A sheet rather than a dialog because it must be
 * dismissable with a thumb without covering the map it describes. */
.rt-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  transform: translateY(100%);
  transition: transform 220ms cubic-bezier(0.32, 0.72, 0, 1);
  background: var(--rt-surface);
  border-top: 1px solid var(--rt-line-bright);
  border-radius: var(--rt-radius-lg) var(--rt-radius-lg) 0 0;
  padding: 10px 16px calc(20px + var(--rt-bottom-nav) + env(safe-area-inset-bottom, 0px));
  max-height: 78vh;
  overflow-y: auto;
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.55);
}
.rt-sheet[data-open="true"] { transform: translateY(0); }

.rt-sheet__grab {
  width: 40px; height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: var(--rt-line-bright);
}

@media (min-width: 900px) {
  .rt-sheet {
    left: auto; right: 24px; bottom: 24px;
    width: 380px;
    border-radius: var(--rt-radius-lg);
    border: 1px solid var(--rt-line-bright);
    padding: 16px;
    max-height: calc(100vh - var(--rt-header) - 64px);
    transform: translateY(calc(100% + 40px));
  }
  .rt-sheet[data-open="true"] { transform: translateY(0); }
  .rt-sheet__grab { display: none; }
}

@media (prefers-reduced-motion: reduce) { .rt-sheet { transition: none; } }

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

.rt-field { display: block; margin-bottom: 14px; }
.rt-field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rt-ink-dim);
}
.rt-input, .rt-select, .rt-textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  background: var(--rt-black);
  border: 1px solid var(--rt-line-bright);
  border-radius: var(--rt-radius);
  color: var(--rt-ink);
}
.rt-input:focus, .rt-select:focus, .rt-textarea:focus { border-color: var(--rt-orange); outline: none; }
.rt-textarea { min-height: 96px; resize: vertical; }
.rt-input--serial { font-family: var(--rt-mono); letter-spacing: 0.14em; text-transform: uppercase; font-size: 18px; }

.rt-hint { margin: 6px 0 0; font-size: 13px; color: var(--rt-ink-faint); }

/* --------------------------------------------------------------- messages */

.rt-note {
  padding: 12px 14px;
  border-radius: var(--rt-radius);
  border: 1px solid var(--rt-line-bright);
  background: var(--rt-raised);
  font-size: 14px;
  color: var(--rt-ink-dim);
}
.rt-note--error { border-color: var(--rt-red-dim); background: rgba(224, 49, 49, 0.10); color: #ffc9c9; }
.rt-note--ok { border-color: var(--rt-green-dim); background: rgba(56, 178, 90, 0.10); color: #b8ecc6; }
.rt-note--warn { border-color: #6b5220; background: rgba(232, 163, 61, 0.10); color: #f3d9a8; }

/* Empty, loading and unauthorised all get the same shape, because they are the
 * same thing to a reader: the content is not here, and here is why. */
.rt-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 44px 20px;
  text-align: center;
  border: 1px dashed var(--rt-line-bright);
  border-radius: var(--rt-radius-lg);
  color: var(--rt-ink-dim);
}
.rt-empty__title { margin: 0; font-weight: 700; color: var(--rt-ink); }
.rt-empty p { margin: 0; max-width: 44ch; font-size: 14px; }

.rt-skeleton {
  background: linear-gradient(90deg, var(--rt-raised) 25%, var(--rt-raised-2) 50%, var(--rt-raised) 75%);
  background-size: 200% 100%;
  animation: rt-shimmer 1.3s linear infinite;
  border-radius: var(--rt-radius);
}
@keyframes rt-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .rt-skeleton { animation: none; } }

.rt-skeleton--card { height: 116px; }
.rt-skeleton--row { height: 54px; margin-bottom: 10px; }

/* --------------------------------------------------------------- target cards */

.rt-target {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
}
.rt-target__art {
  width: 56px; height: 56px;
  border-radius: var(--rt-radius);
  border: 1px solid var(--rt-line-bright);
  display: grid;
  place-items: center;
  font-family: var(--rt-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--rt-black);
  flex: none;
}
.rt-target__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.rt-target__name { font-size: 17px; font-weight: 800; margin: 0; text-transform: uppercase; letter-spacing: 0.01em; }
.rt-target__meta { display: flex; gap: 10px; flex-wrap: wrap; font-family: var(--rt-mono); font-size: 12px; color: var(--rt-ink-faint); margin-top: 8px; }
.rt-target__reward { color: var(--rt-orange); font-weight: 700; }

/* --------------------------------------------------------------- device cards */

.rt-device__top { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 10px; }
.rt-device__serial { font-family: var(--rt-mono); font-size: 15px; font-weight: 700; letter-spacing: 0.08em; }
.rt-device__nick { color: var(--rt-ink-dim); font-size: 14px; margin-top: 1px; }

/* --------------------------------------------------------------- tables */

.rt-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rt-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.rt-table th, .rt-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--rt-line); }
.rt-table th {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rt-ink-faint); font-weight: 700; white-space: nowrap;
}
.rt-table td { font-size: 14px; }
.rt-table tbody tr:hover { background: var(--rt-raised); }
.rt-table__rank { font-family: var(--rt-mono); font-weight: 800; color: var(--rt-orange); width: 1%; white-space: nowrap; }
.rt-table__num { font-family: var(--rt-mono); }

/* --------------------------------------------------------------- tab strips */

.rt-tabstrip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 18px;
}
.rt-tabstrip::-webkit-scrollbar { display: none; }
.rt-tabstrip button {
  flex: none;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--rt-line-bright);
  background: var(--rt-surface);
  color: var(--rt-ink-dim);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.rt-tabstrip button[aria-selected="true"] {
  background: var(--rt-orange); border-color: var(--rt-orange); color: #120a04;
}

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

.rt-hero {
  position: relative;
  padding: 52px 0 40px;
  overflow: hidden;
  border-bottom: 1px solid var(--rt-line);
}
.rt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(255,106,19,0.16), transparent 55%),
    linear-gradient(var(--rt-line) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, var(--rt-line) 1px, transparent 1px) 0 0 / 56px 100%;
  opacity: 0.55;
  pointer-events: none;
}
.rt-hero > * { position: relative; }

@media (min-width: 900px) { .rt-hero { padding: 92px 0 76px; } }

.rt-steps { display: grid; gap: 12px; counter-reset: rt-step; }
@media (min-width: 800px) { .rt-steps { grid-template-columns: repeat(5, 1fr); } }

.rt-step {
  position: relative;
  padding: 16px 16px 16px 52px;
  background: var(--rt-surface);
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius);
}
@media (min-width: 800px) { .rt-step { padding: 46px 14px 16px 14px; } }

.rt-step::before {
  counter-increment: rt-step;
  content: counter(rt-step);
  position: absolute;
  top: 14px; left: 14px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: var(--rt-orange);
  color: #120a04;
  font-family: var(--rt-mono);
  font-weight: 800;
  font-size: 13px;
}
.rt-step__title { font-weight: 700; margin: 0 0 3px; font-size: 15px; }
.rt-step p { margin: 0; font-size: 13px; color: var(--rt-ink-dim); }

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

.rt-footer {
  border-top: 1px solid var(--rt-line);
  padding: 28px 0 34px;
  color: var(--rt-ink-faint);
  font-size: 13px;
}
.rt-footer a { color: var(--rt-ink-dim); }
.rt-footer a:hover { color: var(--rt-orange); }
.rt-footer__links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }

/* ------------------------------------------------------------------ utility */

.rt-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rt-row--between { justify-content: space-between; }
.rt-stack > * + * { margin-top: 12px; }
.rt-stack--lg > * + * { margin-top: 22px; }
.rt-hide { display: none !important; }

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

/* A sticky action bar for a page whose primary action must always be reachable
 * — the combat page, mid-fight, on a phone. */
.rt-sticky-action {
  position: sticky;
  bottom: calc(var(--rt-bottom-nav) + env(safe-area-inset-bottom, 0px) + 10px);
  z-index: 20;
  padding: 10px;
  border-radius: var(--rt-radius-lg);
  background: rgba(15, 17, 19, 0.96);
  border: 1px solid var(--rt-line-bright);
  backdrop-filter: blur(8px);
}
@media (min-width: 900px) { .rt-sticky-action { bottom: 16px; } }
