/* ==========================================================================
   ArmaReplay — site theme
   Layout: one 1200px column on a night-sea ground; the replay map is the island
   the page grows out of. Colours come from the map itself: deep water, coastline
   blue, contour sand and the orange of a main road (the one action colour).
   ========================================================================== */
:root {
  --sea-0: #0a1824;   /* page ground: deep water */
  --sea-1: #0f2131;   /* panels */
  --sea-2: #15304a;   /* raised, hover */
  --sea-3: #1f4262;   /* tracks, strong borders */
  --coast: #82b8d6;   /* coastline: links, focus, live */
  --contour: #b09662; /* contour sand: rules, small marks */
  --road: #e6b04a;    /* main road: primary action */
  --road-hi: #f3c66b;
  --road-ink: #1b1407;
  --chalk: #e6edf2;
  --chalk-2: #a9b8c5;
  --chalk-3: #71879a;
  --line: rgba(130, 184, 214, 0.13);
  --line-2: rgba(130, 184, 214, 0.24);
  --blufor: #3b82f6;
  --opfor: #ef4444;
  --indep: #22c55e;
  --ok: #3ecf7a;
  --warn: #f59e0b;
  --cone: #ffd84a;
  --font-display: 'Saira Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-data: 'IBM Plex Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 12px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  background: var(--sea-0);
  color: var(--chalk);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
canvas {
  max-width: 100%;
}
a {
  color: var(--coast);
  text-underline-offset: 3px;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  color: #fff;
  text-wrap: balance;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ic {
  width: 1em;
  height: 1em;
  flex: none;
}
.mono {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}
:focus-visible {
  outline: 2px solid var(--coast);
  outline-offset: 2px;
  border-radius: 4px;
}
.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--road);
  color: var(--road-ink);
  padding: 8px 12px;
  border-radius: 6px;
}
.skip:focus {
  top: 12px;
}
.lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--chalk-2);
  max-width: 58ch;
}
.sec-title {
  font-size: clamp(2rem, 1.45rem + 1.6vw, 2.75rem);
  letter-spacing: 0.005em;
}

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.68em 1.05em;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 600 1rem/1.1 var(--font-display);
  letter-spacing: 0.02em;
  color: var(--chalk);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn .ic {
  width: 1.1em;
  height: 1.1em;
}
.btn-primary {
  background: var(--road);
  color: var(--road-ink);
}
.btn-primary:hover {
  background: var(--road-hi);
}
.btn-ghost {
  border-color: var(--line-2);
}
.btn-ghost:hover {
  background: var(--sea-2);
  border-color: var(--coast);
}
.btn-lg {
  font-size: 1.15rem;
  padding: 0.78em 1.25em;
}
.btn-sm {
  font-size: 0.98rem;
  padding: 0.5em 0.85em;
}

/* --- header ------------------------------------------------------------- */
.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(10, 24, 36, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  flex: none;
}
/* the gold play mark + the ARMA/REPLAY wordmark (public/img/mark.svg, word.svg) */
.brand-mark {
  display: block;
  width: auto;
  height: 34px;
  flex: none;
  filter: drop-shadow(0 2px 8px rgba(232, 178, 64, 0.22));
}
.brand-word {
  display: block;
  width: auto;
  height: 17px;
  flex: none;
}
.head-nav {
  display: flex;
  gap: 24px;
}
.head-nav a,
.foot-nav a {
  color: var(--chalk-2);
  text-decoration: none;
  font-size: 0.95rem;
}
.head-nav a:hover,
.foot-nav a:hover {
  color: #fff;
}
.head-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-switch {
  display: flex;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  overflow: hidden;
}
.lang-switch a {
  padding: 5px 9px;
  font: 500 0.8rem/1.2 var(--font-data);
  color: var(--chalk-3);
  text-decoration: none;
}
.lang-switch a[aria-current] {
  background: var(--sea-2);
  color: #fff;
}
.lang-switch a:not([aria-current]):hover {
  color: #fff;
}

/* --- hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(28px, 4.5vw, 60px) 28px;
  isolation: isolate;
  overflow-x: clip; /* the artwork reaches past the right edge */
}
.hero::before {
  /* depth contours of the sea around the island */
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto 0;
  height: 980px;
  background: repeating-radial-gradient(ellipse 58% 44% at 66% 78%, transparent 0 52px, rgba(130, 184, 214, 0.055) 52px 53.5px);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 70%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 70%, #000 20%, transparent 78%);
  pointer-events: none;
}
/* the ArmaReplay artwork (soldier, map, the gold mark) glowing out of the dark on the right;
   'lighten' drops its black ground so only the lit parts show on the sea colour */
.hero-art {
  position: absolute;
  z-index: -1;
  top: -64px;
  right: max(-180px, calc(50% - 860px));
  width: min(1080px, 88vw);
  aspect-ratio: 1254 / 860;
  background: url('/img/hero-art.jpg') 50% 40% / cover no-repeat;
  opacity: 0.36;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 52% 58% at 54% 46%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 52% 58% at 54% 46%, #000 30%, transparent 78%);
  pointer-events: none;
}
@media (max-width: 760px) {
  .hero-art {
    /* phones: the whole picture, centred behind the heading */
    top: -24px;
    right: -14vw;
    width: 128vw;
    opacity: 0.26;
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 32px;
}
.hero h1 {
  font-size: clamp(2.3rem, 1.4rem + 3vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
  max-width: 20ch;
  margin-bottom: 20px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-facts {
  display: grid;
  gap: 0;
}
.hero-facts li {
  display: flex;
  gap: 14px;
  padding-block: 14px;
  border-top: 1px solid rgba(176, 150, 98, 0.28);
}
.hero-facts li:last-child {
  border-bottom: 1px solid rgba(176, 150, 98, 0.28);
}
.hero-facts .ic {
  width: 22px;
  height: 22px;
  color: var(--road);
  margin-top: 2px;
}
.hero-facts b {
  display: block;
  font: 600 1.15rem/1.2 var(--font-display);
  letter-spacing: 0.01em;
  color: #fff;
}
.hero-facts span {
  font-size: 0.92rem;
  color: var(--chalk-2);
}

/* --- replay player ------------------------------------------------------ */
.replay {
  margin: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--sea-1);
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8);
}
.rp-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--chalk-2);
}
.rp-title,
.rp-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.rp-title b {
  font: 600 1.1rem/1 var(--font-display);
  color: #fff;
  letter-spacing: 0.01em;
}
.rp-title .ic {
  color: var(--road);
}
.rp-meta .ic {
  color: var(--chalk-3);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot.s-W {
  background: var(--blufor);
}
.dot.s-E {
  background: var(--opfor);
}
.rp-sample {
  margin-left: auto;
  border: 1px dashed rgba(176, 150, 98, 0.7);
  color: var(--contour);
  font-size: 0.76rem;
  padding: 2px 9px;
  border-radius: 999px;
}
.rp-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
}
.rp-map {
  position: relative;
  aspect-ratio: 16 / 8.6;
  min-height: 280px;
  background: #0b1a27;
  overflow: hidden;
}
.rp-map canvas,
.live-demo canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.rp-feed {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: calc(100% - 20px);
  pointer-events: none;
}
.rp-feed li {
  background: rgba(7, 17, 26, 0.84);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--chalk-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.rp-feed b,
.rp-events b {
  font-weight: 600;
}
.n-W {
  color: #8ab8ff;
}
.n-E {
  color: #ff8f8f;
}
.rp-scale {
  position: absolute;
  left: 12px;
  bottom: 10px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  font: 500 0.72rem/1 var(--font-data);
  color: var(--chalk);
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}
.rp-scale i {
  display: block;
  height: 6px;
  width: 100px;
  border: 1.5px solid var(--chalk);
  border-top: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.rp-side {
  position: relative;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.rp-side-h {
  font: 600 1rem/1 var(--font-display);
  letter-spacing: 0.02em;
  color: var(--chalk-2);
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line);
}
.rp-events {
  position: absolute;
  inset: 39px 0 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--sea-3) transparent;
}
.rp-events button {
  all: unset;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  padding: 7px 14px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--chalk-2);
  cursor: pointer;
  border-bottom: 1px solid rgba(130, 184, 214, 0.06);
}
.rp-events button:hover {
  background: rgba(21, 48, 74, 0.6);
}
.rp-events button:focus-visible {
  outline: 2px solid var(--coast);
  outline-offset: -2px;
}
.rp-events time {
  font: 500 0.76rem/1.45 var(--font-data);
  color: var(--chalk-3);
}
.rp-events .meta {
  display: block;
  color: var(--chalk-3);
  font-size: 0.74rem;
}
.rp-events li.future button {
  opacity: 0.42;
}
.rp-events li.now button {
  background: var(--sea-2);
}
.rp-events li.e-down b.n-W {
  color: #ffb4b4;
}
.rp-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.rp-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.rp-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--chalk-2);
  cursor: pointer;
}
.rp-btn:hover {
  background: var(--sea-2);
  color: #fff;
}
.rp-btn .ic {
  width: 18px;
  height: 18px;
}
.rp-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--road);
  color: var(--road-ink);
}
.rp-play:hover {
  background: var(--road-hi);
  color: var(--road-ink);
}
.rp-play span {
  display: grid;
  place-items: center;
}
.replay:not(.playing) .when-playing,
.replay.playing .when-paused {
  display: none;
}
.rp-track {
  position: relative;
  height: 28px;
  --p: 50%;
}
.rp-track::before,
.rp-track::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  border-radius: 3px;
}
.rp-track::before {
  right: 7px;
  background: var(--sea-3);
}
.rp-track::after {
  width: calc((100% - 14px) * var(--pf, 0.5));
  background: var(--coast);
  opacity: 0.85;
}
.rp-ticks {
  position: absolute;
  left: 7px;
  right: 7px;
  top: 50%;
  height: 16px;
  margin-top: -8px;
  z-index: 1;
  pointer-events: none;
}
.tk {
  position: absolute;
  top: 0;
  width: 2px;
  height: 16px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--opfor);
}
.tk.down {
  background: var(--warn);
}
.rp-track input {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.rp-track input::-webkit-slider-runnable-track {
  height: 28px;
  background: transparent;
}
.rp-track input::-moz-range-track {
  height: 28px;
  background: transparent;
}
.rp-track input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: 7px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--coast);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.rp-track input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--coast);
  box-sizing: border-box;
}
.rp-track input:focus-visible {
  outline: none;
}
.rp-track input:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--road);
  outline-offset: 2px;
}
.rp-time {
  font: 500 0.85rem/1 var(--font-data);
  font-variant-numeric: tabular-nums;
  color: var(--chalk-2);
  white-space: nowrap;
}
.rp-speed {
  display: flex;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  overflow: hidden;
}
.rp-speed button {
  border: 0;
  background: transparent;
  color: var(--chalk-3);
  font: 500 0.8rem/1 var(--font-data);
  padding: 7px 9px;
  cursor: pointer;
}
.rp-speed button[aria-pressed='true'] {
  background: var(--sea-2);
  color: var(--road);
}
.rp-speed button:hover {
  color: #fff;
}
.rp-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--chalk-3);
}

/* --- features ----------------------------------------------------------- */
.features {
  padding-block: clamp(64px, 9vw, 110px) 24px;
}
.feat {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: 52px;
  border-bottom: 1px solid var(--line);
}
.sec-title + .feat {
  margin-top: 8px;
}
.feat:nth-of-type(even) .feat-copy {
  order: 2;
}
.feat h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.feat h3 .ic {
  width: 26px;
  height: 26px;
  color: var(--road);
}
.feat-copy > p {
  color: var(--chalk-2);
  font-size: 1.04rem;
  max-width: 54ch;
}
.ticks {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.ticks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  font-size: 0.97rem;
  line-height: 1.5;
}
.ticks li::before {
  content: '';
  width: 12px;
  height: 2px;
  margin-top: 0.72em;
  background: var(--contour);
}
.feat-demo {
  min-width: 0;
}

/* live map card */
.live-demo {
  position: relative;
  aspect-ratio: 6 / 5;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b1a27;
}
.live-map {
  position: absolute;
  inset: 0;
}
.ucard {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: min(330px, calc(100% - 28px));
  background: rgba(11, 25, 38, 0.93);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px 10px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ucard-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.ucard-head .grow {
  flex: 1;
  min-width: 0;
}
.ucard-head b {
  display: block;
  font: 600 1.1rem/1.15 var(--font-display);
  color: #fff;
}
.ucard-head .grow span {
  font-size: 0.8rem;
  color: var(--chalk-3);
}
.umark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blufor);
  color: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.5);
}
.umark .ic {
  width: 16px;
  height: 16px;
  stroke-width: 3;
}
.pill {
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: 999px;
}
.pill.ok {
  color: var(--ok);
  background: rgba(62, 207, 122, 0.12);
}
.ucard dl {
  margin: 0;
  display: grid;
}
.ucard dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  padding-block: 4px;
  font-size: 0.84rem;
  line-height: 1.4;
}
.ucard dt {
  color: var(--chalk-3);
}
.ucard dd {
  margin: 0;
  color: var(--chalk);
}
.ualert {
  position: absolute;
  left: 14px;
  top: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(58, 12, 16, 0.9);
  border: 1px solid rgba(239, 68, 68, 0.5);
  font-size: 0.82rem;
  line-height: 1.35;
  color: #ffd6d6;
}
.ualert .ic {
  width: 18px;
  height: 18px;
  color: var(--opfor);
  margin-top: 1px;
  animation: beat 1.2s ease-in-out infinite;
}
.ualert b {
  display: block;
  color: #fff;
  font-weight: 600;
}
@keyframes beat {
  50% {
    opacity: 0.35;
  }
}

/* operation summary */
.aar {
  background: var(--sea-1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 20px 22px 18px;
}
.aar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.aar-head b {
  font: 600 1.25rem/1.1 var(--font-display);
  color: #fff;
}
.aar-head span {
  font-size: 0.85rem;
  color: var(--chalk-3);
}
.aar-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 14px;
  padding-block: 16px;
}
.aar-grid dt {
  font-size: 0.78rem;
  color: var(--chalk-3);
}
.aar-grid dd {
  margin: 0;
  font: 600 1.45rem/1.15 var(--font-display);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.aar-grid div:last-child {
  grid-column: span 2;
}
.aar-chart {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.aar-chart-l {
  font-size: 0.78rem;
  color: var(--chalk-3);
}
.bars {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 5px;
  height: 92px;
  margin-top: 18px;
  border-bottom: 1px solid var(--line-2);
}
.bars i {
  position: relative;
  height: var(--h);
  min-height: 2px;
  background: linear-gradient(to top, rgba(239, 68, 68, 0.55), rgba(239, 68, 68, 0.9));
  border-radius: 2px 2px 0 0;
}
.bars i::after {
  content: attr(data-n);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  margin-bottom: 3px;
  text-align: center;
  font: 500 0.7rem/1 var(--font-data);
  color: var(--chalk-2);
}
.axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font: 400 0.72rem/1 var(--font-data);
  color: var(--chalk-3);
}

/* RCON console */
.console {
  background: #07121b;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  font: 400 0.84rem/1.55 var(--font-data);
}
.console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: var(--chalk-3);
}
.console-head b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font: 600 1.05rem/1 var(--font-display);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(62, 207, 122, 0.18);
}
.console-lines {
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}
.console-lines li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  color: var(--chalk);
}
.console-lines time {
  color: var(--chalk-3);
}
.k-join span {
  color: var(--ok);
}
.k-side span {
  color: #6fc6ff;
}
.k-site span {
  color: var(--road);
}
.k-kick span {
  color: #ff8f8f;
}
.console-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 14px 14px;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: rgba(15, 33, 49, 0.7);
}
.console-input .prompt {
  color: var(--road);
}
.console-input .cmd {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.console-input .send {
  font: 600 0.9rem/1 var(--font-display);
  color: var(--road-ink);
  background: var(--road);
  padding: 6px 10px;
  border-radius: 5px;
}

/* the smaller three */
.more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 44px;
}
.more li {
  padding-right: 28px;
}
.more li + li {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.more .ic {
  width: 26px;
  height: 26px;
  color: var(--road);
}
.more h3 {
  font-size: 1.4rem;
  margin: 12px 0 8px;
}
.more p {
  color: var(--chalk-2);
  font-size: 0.96rem;
}

/* --- setup -------------------------------------------------------------- */
.setup {
  margin-top: clamp(56px, 7vw, 90px);
  padding-block: clamp(56px, 7vw, 90px);
  background: var(--sea-1);
  border-block: 1px solid var(--line);
}
.setup-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 32px;
  align-items: end;
}
.waypoints {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.waypoints li {
  position: relative;
  padding-top: 58px;
}
.waypoints li:not(:last-child)::before {
  /* waypoint line to the next step, drawn like the game's yellow waypoint route */
  content: '';
  position: absolute;
  top: 18px;
  left: 46px;
  right: -20px;
  border-top: 2px dashed rgba(230, 176, 74, 0.5);
}
.wp {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--road);
  color: var(--road);
  font: 700 1.15rem/1 var(--font-display);
  background: var(--sea-1);
}
.waypoints h3 {
  font-size: 1.32rem;
  margin-bottom: 8px;
}
.waypoints p {
  color: var(--chalk-2);
  font-size: 0.95rem;
}
.codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.code {
  background: #07121b;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  min-width: 0;
}
.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--chalk-3);
}
.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--chalk-2);
  border-radius: 5px;
  padding: 4px 9px;
  font: 500 0.78rem/1.2 var(--font-body);
  cursor: pointer;
}
.copy:hover {
  color: #fff;
  border-color: var(--coast);
}
.code pre {
  margin: 0;
  padding: 14px 16px;
  font: 400 0.92rem/1.6 var(--font-data);
  color: var(--chalk);
  overflow-x: auto;
}

/* --- security ----------------------------------------------------------- */
.security {
  padding-block: clamp(64px, 8vw, 100px) 0;
}
.sec-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.sec-list li {
  padding-top: 18px;
  border-top: 1px solid rgba(176, 150, 98, 0.3);
}
.sec-list .ic {
  width: 22px;
  height: 22px;
  color: var(--coast);
}
.sec-list h3 {
  font-size: 1.22rem;
  margin: 12px 0 6px;
}
.sec-list p {
  color: var(--chalk-2);
  font-size: 0.94rem;
}

/* --- faq ---------------------------------------------------------------- */
.faq {
  padding-block: clamp(64px, 8vw, 100px);
}
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:first-child {
  border-top: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 18px;
  font-weight: 500;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary .ic {
  width: 20px;
  height: 20px;
  color: var(--road);
  transition: transform 0.2s;
}
.faq-list details[open] summary .ic {
  transform: rotate(45deg);
}
.faq-list p {
  padding-bottom: 20px;
  color: var(--chalk-2);
  max-width: 64ch;
}

/* --- call to action ----------------------------------------------------- */
.cta {
  padding-bottom: clamp(56px, 7vw, 90px);
}
.cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 36px;
  border-top: 1px solid rgba(176, 150, 98, 0.3);
}
.cta h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.3rem);
}
.cta p {
  margin-top: 8px;
  color: var(--chalk-2);
}

/* --- footer ------------------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 36px calc(28px + env(safe-area-inset-bottom, 0px));
  color: var(--chalk-3);
  font-size: 0.9rem;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-brand p {
  margin-top: 10px;
  max-width: 44ch;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.foot-legal {
  margin-top: 28px;
  display: grid;
  gap: 4px;
  font-size: 0.78rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 40;
  background: var(--sea-2);
  border: 1px solid var(--line-2);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- narrower screens --------------------------------------------------- */
@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .hero-facts li:last-child {
    border-bottom: 0;
  }
  .rp-body {
    grid-template-columns: minmax(0, 1fr) 236px;
  }
  .sec-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .head-nav {
    display: none;
  }
  /* the replay comes right after the headline; the three facts follow it */
  .hero {
    display: flex;
    flex-direction: column;
  }
  .hero-grid {
    display: contents;
  }
  .hero-copy,
  .hero-facts {
    padding-inline: var(--gutter);
  }
  .hero-copy {
    order: 1;
    margin-bottom: 28px;
  }
  .rp-wrap {
    order: 2;
  }
  .hero-facts {
    order: 3;
    margin-top: 28px;
  }
  .live-demo {
    aspect-ratio: auto;
  }
  .live-map {
    position: relative;
    inset: auto;
    aspect-ratio: 1 / 0.92;
  }
  .ucard {
    position: static;
    width: auto;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--line-2);
    border-radius: 0;
    box-shadow: none;
  }
  .rp-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .rp-map {
    aspect-ratio: 4 / 3.3;
  }
  .rp-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .rp-events {
    position: static;
    max-height: 196px;
  }
  .feat,
  .setup-head,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .feat:nth-of-type(even) .feat-copy {
    order: 0;
  }
  .more {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .more li,
  .more li + li {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .waypoints {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
  }
  .waypoints li:nth-child(2)::before {
    display: none;
  }
  .codes {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .hero-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .hero-facts li:last-child {
    border-bottom: 1px solid rgba(176, 150, 98, 0.28);
  }
  .rp-sample {
    margin-left: 0;
  }
  .rp-controls {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: 'btns time speed' 'track track track';
    gap: 10px 12px;
  }
  .rp-buttons {
    grid-area: btns;
  }
  .rp-time {
    grid-area: time;
    justify-self: center;
  }
  .rp-speed {
    grid-area: speed;
  }
  .rp-track {
    grid-area: track;
  }
  .aar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .waypoints,
  .sec-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .waypoints li {
    padding-top: 0;
    padding-left: 56px;
  }
  .waypoints li:not(:last-child)::before,
  .waypoints li:nth-child(2)::before {
    display: block;
    top: 46px;
    left: 18px;
    right: auto;
    bottom: -30px;
    border-top: 0;
    border-left: 2px dashed rgba(230, 176, 74, 0.5);
  }
  .rp-btn {
    width: 30px;
    height: 30px;
  }
  .rp-play {
    width: 36px;
    height: 36px;
  }
  .rp-time {
    font-size: 0.78rem;
  }
  .rp-speed button {
    padding: 6px 7px;
  }
}
@media (max-width: 440px) {
  .head-end .btn span {
    display: none;
  }
  .head-end .btn {
    padding: 0.5em 0.6em;
  }
  .head-row {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ualert .ic {
    animation: none;
  }
  .faq-list summary .ic {
    transition: none;
  }
}

/* ==========================================================================
   Panels (Panelim, sunucu sayfası, Sahip paneli) — same tokens as the home page
   ========================================================================== */
.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;
}
.muted {
  color: var(--chalk-3);
}
.small {
  font-size: 0.86rem;
}
.grow {
  flex: 1;
  min-width: 0;
}
.nowrap {
  white-space: nowrap;
}
.row-gap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stack {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.plain {
  display: grid;
  gap: 10px;
}
.plain li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.head-nav a[aria-current] {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--road);
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
}

/* account menu in the header */
.umenu {
  position: relative;
}
.umenu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 8px 3px 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  color: var(--chalk);
  font-size: 0.9rem;
}
.umenu summary::-webkit-details-marker {
  display: none;
}
.umenu summary img,
.umenu .ava-ph {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.umenu summary > .ic {
  width: 16px;
  height: 16px;
  color: var(--chalk-3);
}
.umenu-name {
  max-width: 14ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.umenu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  display: grid;
  padding: 6px;
  background: var(--sea-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.umenu-pop a,
.umenu-pop button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--chalk);
  font: inherit;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}
.umenu-pop a:hover,
.umenu-pop button:hover {
  background: var(--sea-3);
}
.umenu-pop .ic {
  width: 17px;
  height: 17px;
  color: var(--chalk-3);
}
.ava-ph {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sea-3);
  color: var(--chalk-2);
  flex: none;
}
.ava-ph .ic {
  width: 55%;
  height: 55%;
}
.ava-ph.sm {
  width: 28px;
  height: 28px;
}
.ava-ph.lg {
  width: 64px;
  height: 64px;
}

/* page frame */
.app {
  padding-block: clamp(24px, 4vw, 44px) clamp(48px, 7vw, 80px);
  min-height: 60vh;
}
.narrow {
  max-width: 600px;
}
.narrow-form {
  max-width: 820px;
}
.page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 24px;
  margin-bottom: 22px;
}
.page-head h1 {
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
}
.page-head .lead {
  margin-top: 8px;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--chalk-3);
  font-size: 0.9rem;
}
.kicker .ic {
  color: var(--road);
}
.sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 10px;
  color: var(--chalk-2);
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.86rem;
  color: var(--chalk-3);
}
.crumbs a {
  color: var(--chalk-2);
  text-decoration: none;
}
.crumbs a:hover {
  color: #fff;
}
.crumbs .ic {
  width: 14px;
  height: 14px;
}

/* messages */
.flashes {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.flash,
.note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.93rem;
  line-height: 1.45;
}
.flash .ic,
.note .ic {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
.flash.is-ok {
  background: rgba(62, 207, 122, 0.1);
  border: 1px solid rgba(62, 207, 122, 0.35);
  color: #c9f5da;
}
.flash.is-ok .ic {
  color: var(--ok);
}
.flash.is-error,
.note.is-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ffd2d2;
}
.flash.is-error .ic,
.note.is-error .ic {
  color: var(--opfor);
}
.note {
  background: rgba(130, 184, 214, 0.07);
  border: 1px solid var(--line);
  color: var(--chalk-2);
  margin-bottom: 16px;
}
.note .ic {
  color: var(--coast);
}
.panel-box .note {
  margin: 14px 0 0;
}

/* boxes and columns */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 18px;
  align-items: start;
}
.col-main,
.col-side {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}
.panel-box {
  background: var(--sea-1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 20px 22px;
  min-width: 0;
}
.box-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.box-title .ic {
  width: 20px;
  height: 20px;
  color: var(--road);
}
.box-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.callout {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: rgba(230, 176, 74, 0.07);
  border: 1px solid rgba(230, 176, 74, 0.35);
}
.col-main > .callout {
  margin-bottom: 0;
}
.callout > .ic {
  width: 26px;
  height: 26px;
  color: var(--road);
  flex: none;
}
.callout h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.callout p {
  color: var(--chalk-2);
  margin-bottom: 12px;
}
.callout .code {
  max-width: 640px;
}
.empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
}
.empty > .ic {
  width: 38px;
  height: 38px;
  color: var(--contour);
}
.empty h2 {
  font-size: 1.5rem;
}
.empty p {
  color: var(--chalk-2);
  max-width: 46ch;
  margin-bottom: 8px;
}
.soon {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px dashed rgba(176, 150, 98, 0.45);
  border-radius: var(--radius);
}
.soon h2 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.soon p {
  color: var(--chalk-2);
  font-size: 0.93rem;
}
.soon-icons {
  display: flex;
  gap: 6px;
  color: var(--contour);
}
.soon-icons .ic {
  width: 22px;
  height: 22px;
}

/* server list */
.srv-list {
  display: grid;
  gap: 10px;
}
.srv {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 16px 18px;
  background: var(--sea-1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--chalk);
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}
.srv:hover {
  border-color: var(--coast);
  background: var(--sea-2);
}
.srv-main {
  display: grid;
  gap: 2px;
  flex: 1 1 260px;
  min-width: 0;
}
.srv-main b {
  font: 600 1.3rem/1.15 var(--font-display);
  color: #fff;
}
.srv-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.srv-go {
  width: 20px;
  height: 20px;
  color: var(--chalk-3);
}

/* status and chips */
.st {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  color: var(--chalk-2);
  white-space: nowrap;
}
.st i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chalk-3);
}
.st-waiting i {
  background: var(--road);
}
.st-online {
  color: #bff2d3;
}
.st-online i {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(62, 207, 122, 0.2);
}
.st-disabled {
  color: #ffbcbc;
}
.st-disabled i {
  background: var(--opfor);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--chalk-2);
  white-space: nowrap;
}
.chip.is-ok {
  color: var(--ok);
  border-color: rgba(62, 207, 122, 0.35);
}
.chip.is-bad {
  color: #ff9d9d;
  border-color: rgba(239, 68, 68, 0.45);
}
.chip.is-gold {
  color: var(--road);
  border-color: rgba(230, 176, 74, 0.45);
}
h2 .chip {
  font-family: var(--font-body);
  vertical-align: middle;
  margin-left: 8px;
}

/* tabs */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs a {
  padding: 10px 14px;
  color: var(--chalk-2);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 0.95rem;
}
.tabs a:hover {
  color: #fff;
}
.tabs a[aria-current] {
  color: #fff;
  border-bottom-color: var(--road);
}

/* facts */
.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}
.facts dt {
  font-size: 0.8rem;
  color: var(--chalk-3);
}
.facts dd {
  margin: 2px 0 0;
}
.you {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

/* forms */
.panel-box form,
form.panel-box {
  min-width: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}
.span-2 {
  grid-column: 1 / -1;
}
.field {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}
.field label {
  font-weight: 500;
  font-size: 0.93rem;
}
.field input,
.searchbar input,
.keybox input {
  width: 100%;
  padding: 10px 12px;
  background: #07121b;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  color: var(--chalk);
  font: inherit;
}
.field input:focus,
.searchbar input:focus,
.keybox input:focus {
  outline: none;
  border-color: var(--coast);
  box-shadow: 0 0 0 3px rgba(130, 184, 214, 0.18);
}
.field input::placeholder,
.searchbar input::placeholder {
  color: var(--chalk-3);
}
.field.has-error input {
  border-color: rgba(239, 68, 68, 0.7);
}
.hint {
  font-size: 0.8rem;
  color: var(--chalk-3);
  line-height: 1.45;
}
.err {
  font-size: 0.84rem;
  color: #ff9d9d;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.panel-box + .panel-box {
  margin-top: 0;
}
form.panel-box + form.panel-box,
.narrow-form .panel-box {
  margin-top: 0;
}
.btn-danger {
  background: #c0352b;
  color: #fff;
}
.btn-danger:hover {
  background: #d8463b;
}
.btn[disabled],
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: transparent;
  color: var(--chalk-2);
  cursor: pointer;
  list-style: none;
}
.icon-btn::-webkit-details-marker {
  display: none;
}
.icon-btn:hover,
.icon-btn.is-on {
  color: #fff;
  border-color: var(--coast);
}
.icon-btn.is-done {
  color: var(--ok);
  border-color: var(--ok);
}
.icon-btn .ic {
  width: 17px;
  height: 17px;
}
.keybox {
  display: flex;
  gap: 6px;
  margin: 12px 0 14px;
}
.keybox input {
  font-family: var(--font-data);
  font-size: 0.82rem;
}
.opt {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.opt legend {
  font: 600 1.05rem/1.2 var(--font-display);
  color: #fff;
  margin-bottom: 8px;
  padding: 0;
}
.radio,
.switch,
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.radio input,
.switch input,
.check input {
  margin-top: 4px;
  width: 17px;
  height: 17px;
  accent-color: var(--road);
  flex: none;
}
.radio span,
.switch span,
.check span {
  display: grid;
  gap: 2px;
}
.radio small,
.switch small,
.check small {
  color: var(--chalk-3);
  font-size: 0.82rem;
  line-height: 1.4;
}
.check.is-off {
  opacity: 0.5;
  cursor: not-allowed;
}
.danger {
  border-color: rgba(239, 68, 68, 0.35);
}

/* confirm-before-acting: a <details> that opens a small form */
details.confirm {
  position: relative;
}
details.confirm > summary {
  list-style: none;
  width: max-content;
}
details.confirm > summary.icon-btn {
  width: 38px;
}
details.confirm > summary::-webkit-details-marker {
  display: none;
}
details.confirm[open] > form {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-top: 10px;
  padding: 14px;
  background: var(--sea-2);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  max-width: 420px;
}
details.confirm[open] > form p {
  color: var(--chalk-2);
  font-size: 0.9rem;
}
details.confirm.right[open] > form,
.member details.confirm[open] > form {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 6;
  width: 270px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  text-align: left;
}

/* setup */
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  margin: 10px 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  overflow: hidden;
}
.seg a {
  padding: 8px 14px;
  color: var(--chalk-2);
  text-decoration: none;
  font-size: 0.92rem;
}
.seg a + a {
  border-left: 1px solid var(--line-2);
}
.seg a[aria-current] {
  background: var(--sea-3);
  color: #fff;
}
.steps {
  counter-reset: st;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.steps > li {
  counter-increment: st;
  min-width: 0;
  position: relative;
  padding-left: 44px;
  min-height: 30px;
  color: var(--chalk);
}
.steps > li::before {
  content: counter(st);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--road);
  color: var(--road);
  font: 700 0.95rem/1 var(--font-display);
}
.steps .code {
  margin-top: 10px;
}

/* team */
.team-lead {
  margin-bottom: 16px;
}
.addrow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 14px;
  margin-bottom: 18px;
}
.addrow .btn {
  margin-top: 28px;
}
.team {
  display: grid;
  gap: 10px;
}
.member {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px 20px;
  padding: 16px 18px;
  background: var(--sea-1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.member.is-owner {
  grid-template-columns: 1fr;
  border-style: dashed;
}
.who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.who img {
  border-radius: 50%;
  flex: none;
}
.who > div {
  display: grid;
  min-width: 0;
}
.who b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.who a {
  color: var(--chalk-3);
}
.perms {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.perms fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px 16px;
  width: 100%;
}
.perms fieldset:disabled {
  opacity: 0.6;
}
.perms .check {
  font-size: 0.9rem;
}

/* owner panel */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.stats li {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  background: var(--sea-1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.stats b {
  font: 600 2.3rem/1 var(--font-display);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stats span {
  font-size: 0.86rem;
  color: var(--chalk-3);
}
.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin-bottom: 16px;
  position: relative;
}
.searchbar > .ic {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 17px;
  color: var(--chalk-3);
}
.searchbar input {
  padding-left: 38px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--sea-1);
}
.panel-box .table-wrap {
  border: 0;
  background: none;
  margin-inline: -22px;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.tbl th {
  text-align: left;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--chalk-3);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.tbl td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.tbl tr:last-child td {
  border-bottom: 0;
}
.panel-box .tbl th:first-child,
.panel-box .tbl td:first-child {
  padding-left: 22px;
}
.tbl a {
  color: var(--chalk);
  text-decoration: none;
}
.tbl a:hover {
  color: #fff;
  text-decoration: underline;
}
.tbl td.mono a,
.tbl td.mono {
  color: var(--chalk-2);
  font-size: 0.84rem;
}
.tbl .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tbl .act {
  text-align: right;
}
.tbl .act details.confirm > summary {
  margin-left: auto;
}
.person {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.person img {
  border-radius: 50%;
}
.people {
  display: grid;
  gap: 4px;
}
.people a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  margin-inline: -6px;
  border-radius: 8px;
  color: var(--chalk);
  text-decoration: none;
}
.people a:hover {
  background: var(--sea-2);
}
.people img,
.people .ava-ph {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.people a > span:last-child {
  display: grid;
}
.profile {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.profile img {
  border-radius: 50%;
  flex: none;
}
.profile h2 {
  font-size: 1.6rem;
}
.profile .note {
  margin: 10px 0 0;
}
.alog {
  display: grid;
  gap: 10px;
}
.alog li {
  display: grid;
  gap: 2px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.alog time {
  font-size: 0.78rem;
  color: var(--chalk-3);
}
.alog .ip {
  font-size: 0.76rem;
  color: var(--chalk-3);
}
.more {
  margin-top: 14px;
}
.narrow-form-box {
  max-width: 640px;
  display: grid;
  gap: 18px;
}
.narrow-form-box .form-actions {
  margin-top: 0;
}

/* sign-in and error pages */
.login-box {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: clamp(24px, 5vw, 40px);
  background: var(--sea-1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
/* sign-in: the stacked logo over a centred box */
.login-brand {
  justify-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.login-brand::before {
  /* a soft gold glow behind the logo */
  content: '';
  position: absolute;
  z-index: -1;
  inset: -40% -20% auto;
  height: 110%;
  background: radial-gradient(closest-side, rgba(232, 178, 64, 0.13), transparent);
  pointer-events: none;
}
.login-brand .lockup {
  width: min(220px, 62vw);
  height: auto;
  margin-bottom: 6px;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.45));
}
.login-brand .note {
  text-align: left;
}
.login-box h1 {
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem);
}
.login-box .flashes,
.login-box .note {
  margin: 0;
  width: 100%;
}
.err-code {
  font-size: 0.9rem;
  color: var(--contour);
  border: 1px solid rgba(176, 150, 98, 0.45);
  border-radius: 6px;
  padding: 2px 8px;
}

@media (max-width: 960px) {
  .cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .member {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .member .perms {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
@media (max-width: 600px) {
  .form-grid,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .umenu-name {
    display: none;
  }
  .page-actions {
    width: 100%;
    justify-content: space-between;
  }
  .addrow .btn {
    margin-top: 0;
  }
  .callout {
    flex-direction: column;
  }
  .soon {
    align-items: flex-start;
    flex-direction: column;
  }
}
.stack .field {
  width: 100%;
}
.steps .code pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.col-side .panel-box > p.muted.small {
  margin-bottom: 12px;
}
.col-side .panel-box > .btn + .hint {
  margin-top: 8px;
}
.maplink {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(130, 184, 214, 0.35);
  background: linear-gradient(120deg, rgba(130, 184, 214, 0.1), rgba(130, 184, 214, 0.02));
  color: var(--chalk);
  text-decoration: none;
}
.maplink:hover {
  border-color: var(--coast);
}
.maplink > .ic {
  width: 26px;
  height: 26px;
  color: var(--coast);
}
.maplink > span {
  flex: 1;
  display: grid;
}
.maplink b {
  font: 600 1.2rem/1.2 var(--font-display);
  color: #fff;
}
.maplink span span {
  font-size: 0.9rem;
  color: var(--chalk-2);
}

/* toasts */
.ar-toasts { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 3000; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.ar-toast { background: var(--sea-2); color: var(--chalk); border: 1px solid var(--line-2); border-left: 3px solid var(--ok); border-radius: 10px; padding: 10px 14px; font-size: 14px; line-height: 1.4; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); animation: toast-in 0.18s ease-out; transition: opacity 0.25s, transform 0.25s; }
.ar-toast.is-err { border-left-color: var(--opfor); }
.ar-toast.is-out { opacity: 0; transform: translateY(6px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .ar-toast { animation: none; transition: none; } }

/* ==========================================================================
   Animasyonlar
   html.anim is set in <head> (js/anim-head.js) only when the visitor has not asked for
   reduced motion. Reveal = fade + small rise, started by js/motion.js as blocks scroll into
   view; rows, steps, numbers and icons follow their block. Only transform / opacity (and one
   clip-path on the home title) are animated.
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- reveal (keep this selector list in sync with REVEAL in motion.js) --- */
html.anim main :is(.hero h1, .hero .lead, .hero .cta-row, .hero-facts li, .rp-wrap, .sec-title, .feat, .more li, .setup-head .lead, .waypoints li, .codes .code, .sec-list li, .faq-list details, .cta-box, .crumbs, .page-head, .tabs, .panel-box, .callout, .empty, .srv-list > li, .maplink, .soon, .stats li, .login-box, .wrap > .note):not(.rv-in):not(.hrt *) {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}
html.anim main .hero h1:not(.rv-in) {
  clip-path: inset(0 0 100% 0);
  transform: translate3d(0, 36px, 0);
}
html.anim main .rp-wrap:not(.rv-in) {
  transform: translate3d(0, 40px, 0) scale(0.985);
}
html.anim main .feat:not(.rv-in) {
  transform: translate3d(0, 34px, 0);
}
html.anim main .rv-in:not(.rv-done) {
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.85s var(--ease-out),
    clip-path 1.05s var(--ease-out);
  transition-delay: var(--rv-d, 0ms);
}
html.anim main .hero h1.rv-in:not(.rv-done) {
  clip-path: inset(0 0 -10% 0);
}

/* --- things that follow their block --- */
html.anim main .rv-in .tbl > tbody > tr {
  animation: rowIn 0.5s var(--ease-out) both;
  animation-delay: calc(var(--rv-d, 0ms) + 90ms + var(--i, 30) * 28ms);
}
html.anim main .rv-in .steps > li {
  animation: rowIn 0.55s var(--ease-out) both;
  animation-delay: calc(var(--rv-d, 0ms) + 120ms + var(--i, 0) * 90ms);
}
html.anim main .waypoints li.rv-in .wp {
  animation: popIn 0.55s var(--ease-spring) both;
  animation-delay: calc(var(--rv-d, 0ms) + 120ms);
}
html.anim main .waypoints li.rv-in:not(:last-child)::before {
  transform-origin: left center;
  animation: growX 0.9s var(--ease-out) both;
  animation-delay: calc(var(--rv-d, 0ms) + 260ms);
}
html.anim main .stats li.rv-in b,
html.anim main .stats b {
  font-variant-numeric: tabular-nums;
}
/* Lucide icons are strokes: they draw themselves */
html.anim .ic-draw :is(path, line, polyline, polygon, circle, rect, ellipse) {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: icDraw 1.1s var(--ease-out) forwards;
  animation-delay: calc(var(--rv-d, 0ms) + 220ms);
}

/* --- micro-interactions --- */
html.anim .btn {
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s,
    box-shadow 0.2s,
    transform 0.18s var(--ease-spring);
}
html.anim .btn:active {
  transform: translateY(1px) scale(0.97);
  transition-duration: 0.06s;
}
html.anim .btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
html.anim .btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.34) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
html.anim .btn-primary:hover::after {
  transform: translateX(120%);
  transition: transform 0.75s var(--ease-out);
}
html.anim :is(.srv, .maplink) {
  transition:
    transform 0.28s var(--ease-out),
    border-color 0.2s,
    background-color 0.2s,
    box-shadow 0.28s;
}
html.anim :is(.srv, .maplink):hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.9);
}
html.anim .srv .srv-go,
html.anim .maplink > .ic:last-child {
  transition: transform 0.25s var(--ease-spring);
}
html.anim .srv:hover .srv-go,
html.anim .maplink:hover > .ic:last-child {
  transform: translateX(4px);
}
/* the hero artwork surfaces slowly out of the dark */
html.anim .hero-art {
  animation: hero-art-in 2.2s var(--ease-out) 0.15s both;
}
@keyframes hero-art-in {
  from {
    opacity: 0;
    transform: scale(1.06) translateY(10px);
  }
}
html.anim .brand-mark {
  transition: transform 0.35s var(--ease-spring), filter 0.35s;
}
html.anim .brand:hover .brand-mark {
  transform: translateX(2px) scale(1.08);
  filter: drop-shadow(0 2px 12px rgba(232, 178, 64, 0.5));
}
html.anim .tabs a {
  transition: color 0.15s;
}
html.anim .tabs a[aria-current] {
  border-bottom-color: transparent;
  background-image: linear-gradient(var(--road), var(--road));
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 100% 2px;
  animation: tabLine 0.55s var(--ease-out) 0.25s both;
}
html.anim .umenu[open] .umenu-pop {
  transform-origin: top right;
  animation: menuIn 0.2s var(--ease-out);
}
html.anim .faq-list details[open] > p {
  animation: rowIn 0.4s var(--ease-out);
}
html.anim .flash {
  animation: flashIn 0.55s var(--ease-spring) both;
}
html.anim .st-online i {
  animation: ping 2.2s var(--ease-out) infinite;
}
html.anim .ar-toast {
  animation: toastPop 0.4s var(--ease-spring);
}
html.anim .dev-link {
  background-image: linear-gradient(var(--road), var(--road));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition:
    background-size 0.3s var(--ease-out),
    color 0.15s;
}
html.anim .dev-link:hover {
  background-size: 100% 1px;
}

/* --- state styles (not motion) --- */
.site-head {
  transition:
    background-color 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}
.site-head.scrolled {
  background: rgba(10, 24, 36, 0.94);
  border-bottom-color: var(--line-2);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.85);
}
.dev-link {
  color: var(--chalk);
  font-weight: 500;
  text-decoration: none;
}
.dev-link:hover {
  color: var(--road-hi);
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}
@keyframes growX {
  from {
    transform: scaleX(0);
  }
}
@keyframes icDraw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes tabLine {
  from {
    background-size: 0 2px;
  }
}
@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
}
@keyframes flashIn {
  from {
    opacity: 0;
    transform: translate3d(24px, 0, 0) scale(0.98);
  }
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(62, 207, 122, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 7px rgba(62, 207, 122, 0);
  }
}
@keyframes toastPop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
}
