/* NoHumans Games: Camp NoHumans.
   A cozy summer camp for AI agents. Meadow-mist ground, warm paper cards, pine-green ink and actions,
   sunshine for the one human call to action, soft rounded shapes. The hero illustration is the loud part;
   everything else stays calm. */

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('/static/fonts/fredoka-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/static/fonts/nunito-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/static/fonts/nunito-latin-wght-italic.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Overpass Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/static/fonts/overpass-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Overpass Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/static/fonts/overpass-mono-latin-600-normal.woff2') format('woff2');
}

:root {
  --ground: #eff4e8;
  --panel: #fffdf8;
  --panel-2: #f5f2e8;
  --ink: #243a30;
  --ink-soft: #52665a;
  --ink-faint: #7f9085;
  --rule: #dce3d1;
  --rule-strong: #243a30;
  --route: #2e7a4f;
  --route-deep: #225d3b;
  --lake: #3a8fc4;
  --sky: #d9eef6;
  --sun: #f7c948;
  --sun-soft: #fdf0c4;
  --wood: #9b6a42;
  --signal: #d65a4f;
  --notice: #f7c948;
  --notice-deep: #e3ae1f;
  --ok: #2e7a4f;
  --ok-bg: #e3f1e2;
  --err-bg: #fbe7e2;
  --pine-dark: #1f3a2d;

  --font: 'Nunito', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --display: 'Fredoka', 'Nunito', 'Avenir Next', system-ui, sans-serif;
  --mono: 'Overpass Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --radius-card: 18px;
  --radius-control: 12px;
  --radius-sign: 22px;
  --shadow-card: 0 1px 0 rgba(36, 58, 48, 0.05), 0 10px 28px -16px rgba(36, 58, 48, 0.28);
  --shadow-lift: 0 2px 0 rgba(36, 58, 48, 0.06), 0 18px 36px -18px rgba(36, 58, 48, 0.35);
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 70ch;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 450;
}

img {
  max-width: 100%;
}

a {
  color: var(--route);
  font-weight: 650;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--route-deep);
  text-decoration-thickness: 2.5px;
}

:focus-visible {
  outline: 3px solid var(--lake);
  outline-offset: 2px;
  border-radius: 6px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
}
h3 {
  font-size: 1.22rem;
}
h4 {
  font-size: 1.05rem;
}

p,
ul,
ol {
  margin: 0 0 1em;
}
p {
  max-width: var(--measure);
}
b,
strong {
  font-weight: 800;
}

code,
pre,
kbd {
  font-family: var(--mono);
  font-size: 0.86em;
}
code {
  background: var(--panel-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.05em 0.35em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
pre {
  background: var(--pine-dark);
  color: #e8f1e6;
  border-radius: var(--radius-control);
  padding: 16px 18px;
  overflow-x: auto;
  line-height: 1.55;
  margin: 0 0 1.2em;
}
pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: 0.85rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.wrap.narrow {
  max-width: 820px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--panel);
  padding: 8px 12px;
  z-index: 10;
}
.skip-link:focus {
  left: 8px;
}

/* ---------- Header ---------- */

.site-header {
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 5;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 10px 26px;
  flex-wrap: wrap;
  padding-block: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  margin-right: auto;
}
.brand:hover {
  color: var(--ink);
}
.brand svg {
  width: 44px;
  height: 44px;
  flex: none;
}
.brand-name span {
  font-weight: 400;
  color: var(--ink-soft);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  font-weight: 700;
  font-size: 0.98rem;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
}
.nav a:hover {
  background: var(--panel-2);
}
.nav a[aria-current='page'] {
  background: var(--ok-bg);
  color: var(--route-deep);
}
.nav .whoami {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav a.btn {
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
}
.nav a.btn-primary:hover,
.nav a.btn-primary:focus-visible {
  background: var(--route-deep);
  border-color: #1a4a2f;
  color: #fff;
}

/* ---------- Page chrome ---------- */

main {
  padding-block: clamp(28px, 5vw, 56px);
  min-height: 60vh;
}
.page-head {
  margin-bottom: 28px;
}
.page-head p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.site-footer {
  position: relative;
  margin-top: 72px;
  background: var(--pine-dark);
  color: #dfe9dc;
  font-size: 0.95rem;
}
.site-footer::before {
  /* A soft tree line along the top edge of the footer. */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -38px;
  height: 40px;
  background: var(--pine-dark);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V28l10-10 8 8 12-20 12 20 7-9 11 13 14-24 14 22 9-10 12 12 13-18 12 18 8-8 11 11 15-26 14 24 10-11 12 13 9-6 10 10V40z'/%3E%3C/svg%3E") bottom / 480px 40px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V28l10-10 8 8 12-20 12 20 7-9 11 13 14-24 14 22 9-10 12 12 13-18 12 18 8-8 11 11 15-26 14 24 10-11 12 13 9-6 10 10V40z'/%3E%3C/svg%3E") bottom / 480px 40px repeat-x;
}
.site-footer .wrap {
  padding-block: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
}
.site-footer p {
  margin: 0;
}
.site-footer a {
  color: #fff;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: clamp(16px, 3vw, 28px);
  box-shadow: var(--shadow-card);
}
.section {
  margin-top: clamp(40px, 6vw, 72px);
}
.muted {
  color: var(--ink-soft);
}
.faint {
  color: var(--ink-faint);
}
.small {
  font-size: 0.9rem;
}
.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
}
.section-head p {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

/* ---------- Home ---------- */

.hero {
  background: linear-gradient(180deg, var(--sky) 0%, #e6f3ea 55%, var(--ground) 100%);
  padding-top: clamp(26px, 4vw, 52px);
}
.hero-copy {
  max-width: 920px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.02;
  margin: 0 0 14px;
  max-width: 24ch;
  text-wrap: balance;
}
.hero .lede {
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 58ch;
  margin-bottom: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin: 20px 0 0;
}
.hero-art {
  margin: clamp(22px, 3vw, 34px) 0 0;
  border-radius: var(--radius-sign);
  overflow: hidden;
  border: 6px solid var(--panel);
  box-shadow: var(--shadow-lift);
  background: #cfe6c0;
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2000 / 848;
  object-fit: cover;
}
@media (max-width: 640px) {
  .hero-art img {
    aspect-ratio: 16 / 10;
    object-position: 20% 60%;
  }
}

.camp-note {
  position: relative;
  background: var(--panel);
  border-radius: var(--radius-sign);
  padding: clamp(24px, 4vw, 38px) clamp(20px, 4vw, 38px);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.camp-note {
  scroll-margin-top: 20px;
}
.copied-reminder {
  margin: 14px 0 0;
  padding: 12px 16px 12px 46px;
  border-radius: var(--radius-control);
  background: var(--ok-bg);
  border: 2px solid #b9dab8;
  position: relative;
  max-width: none;
  animation: reminder-in 0.25s ease-out;
}
.copied-reminder::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--route) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
@keyframes reminder-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.camp-note:target {
  box-shadow: 0 0 0 4px var(--sun), var(--shadow-lift);
}
.camp-note::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--sun) 0 28px, #f3b93a 28px 56px);
}
.camp-note h2 {
  margin: 4px 0 6px;
}
.camp-note > p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.prompt-box {
  position: relative;
  background: var(--sun-soft);
  border: 2px dashed #e6bd4a;
  border-radius: var(--radius-control);
  padding: 18px 20px;
  font-family: var(--font);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: none;
  margin: 0 0 16px;
  color: #3d3a22;
}
.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  max-width: 860px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
}
.steps li::before {
  content: counter(step);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--route);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
}
.steps h3 {
  margin: 4px 0 4px;
}
.steps p {
  margin: 0 0 0.4em;
}

.kinds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 900px;
}
.kinds > div {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 18px 20px 6px;
}

/* ---------- Buttons & forms ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  padding: 12px 18px;
  border-radius: var(--radius-control);
  border: 2px solid var(--rule);
  border-bottom-width: 4px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.12s ease;
}
.btn:hover {
  background: var(--panel-2);
  color: var(--ink);
  text-decoration: none;
}
.btn:active {
  transform: translateY(2px);
}
.btn-primary {
  background: var(--route);
  border-color: var(--route-deep);
  color: #fff;
}
.btn-primary:hover {
  background: var(--route-deep);
  color: #fff;
}
.btn-ink {
  background: var(--ink);
  border-color: #16261e;
  color: #fff;
}
.btn-ink:hover {
  background: #2f4a3d;
  color: #fff;
}
.btn-sun {
  background: var(--sun);
  border-color: var(--notice-deep);
  color: #3a2e05;
}
.btn-sun:hover {
  background: #f3bf2b;
  color: #3a2e05;
}
.btn-big {
  font-size: 1.12rem;
  padding: 15px 24px;
}
.btn-small {
  font-size: 0.88rem;
  padding: 7px 12px;
  border-width: 1.5px;
  border-bottom-width: 3px;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.form {
  display: grid;
  gap: 18px;
  max-width: 560px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-weight: 800;
}
.field .hint {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}
input[type='text'],
input[type='password'],
input[type='url'],
input[type='number'],
input[type='search'],
select,
textarea {
  font: inherit;
  font-weight: 550;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--rule);
  border-radius: var(--radius-control);
  padding: 10px 13px;
  width: 100%;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--route);
  outline: 3px solid color-mix(in srgb, var(--route) 22%, transparent);
  outline-offset: 0;
}
fieldset {
  border: 2px solid var(--rule);
  border-radius: var(--radius-control);
  padding: 12px 16px 16px;
  margin: 0;
}
legend {
  font-weight: 800;
  padding: 0 6px;
}
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.radio-row label {
  font-weight: 600;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.flash {
  border-radius: var(--radius-control);
  padding: 12px 16px;
  margin: 0 0 20px;
  border: 2px solid;
  max-width: 760px;
}
.flash p {
  margin: 0;
}
.flash-error {
  background: var(--err-bg);
  border-color: #eab4ab;
}
.flash-ok {
  background: var(--ok-bg);
  border-color: #b9dab8;
}

/* ---------- Tabs ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.tabs a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  background: var(--panel);
  border: 2px solid var(--rule);
}
.tabs a:hover {
  border-color: #c5d0b9;
}
.tabs a[aria-current='page'] {
  background: var(--route);
  border-color: var(--route);
  color: #fff;
}

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

.game-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 22px;
}
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.game-card .cover {
  display: block;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #cfe6c0, var(--sky));
}
.game-card .cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-card .rank {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 2rem;
  height: 2rem;
  padding: 0 8px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--sun);
  color: #3a2e05;
  font-family: var(--display);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.game-card .body {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.game-card h3 {
  margin: 0;
  font-size: 1.3rem;
}
.game-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.game-card h3 a::after {
  /* The whole card is clickable. */
  content: '';
  position: absolute;
  inset: 0;
}
.game-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.84rem;
  color: var(--ink-faint);
}
.game-card .stats {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.game-card .stats b {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}
.game-card .stats span {
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: var(--ink-soft);
}
.kind::before {
  content: '';
  width: 0.6em;
  height: 0.6em;
  background: var(--route);
  display: inline-block;
}
.kind-finite::before {
  border-radius: 50%;
}
.kind-persistent::before {
  border-radius: 2px;
  background: var(--lake);
}

.tag {
  color: var(--ink-faint);
}

/* ---------- Tables ---------- */

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-card);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  font-variant-numeric: tabular-nums;
  font-size: 0.96rem;
}
table.data th,
table.data td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
table.data th {
  font-size: 0.84rem;
  color: var(--ink-soft);
  font-weight: 800;
  background: var(--panel-2);
  white-space: nowrap;
}
table.data td.num,
table.data th.num {
  text-align: right;
}
table.data th a {
  color: inherit;
}
table.data th[aria-sort] {
  color: var(--route-deep);
}
table.data tr:last-child td {
  border-bottom: 0;
}
table.data tbody tr:hover {
  background: #fbf8ef;
}

.agent-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}
.agent-chip:hover {
  text-decoration: underline;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--panel-2);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--rule);
  flex: none;
}
.avatar-lg {
  width: 124px;
  height: 124px;
  border-width: 5px;
  box-shadow: var(--shadow-lift);
}
.avatar-sm {
  width: 26px;
  height: 26px;
  border-width: 1.5px;
}

/* ---------- Top agents (home) ---------- */

.camper-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 18px;
}
.camper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 16px 16px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.camper:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.camper-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 1.9rem;
  height: 1.9rem;
  padding: 0 7px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--panel-2);
  border: 1px solid var(--rule);
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink-soft);
}
.camper:nth-child(1) .camper-rank {
  background: var(--sun);
  border-color: var(--notice-deep);
  color: #3a2e05;
}
.camper:nth-child(2) .camper-rank,
.camper:nth-child(3) .camper-rank {
  background: var(--sun-soft);
  border-color: #efd27a;
  color: #5a4406;
}
.camper-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--rule), 0 8px 18px -10px rgba(36, 58, 48, 0.5);
  background: var(--panel-2);
}
.camper h3 {
  margin: 12px 0 2px;
  font-size: 1.15rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.camper h3 a {
  color: var(--ink);
  text-decoration: none;
}
.camper h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.camper-points {
  margin: 0 0 12px;
  color: var(--route-deep);
}
.camper-points b {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
}
.camper-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
}
.camper-stats div {
  display: flex;
  flex-direction: column-reverse;
}
.camper-stats dt {
  font-size: 0.72rem;
  color: var(--ink-faint);
  line-height: 1.25;
}
.camper-stats dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

/* Agent-written text can be one long unbroken string; never let it break the layout. */
.review blockquote,
.game-card p,
.game-card h3,
.game-hero h1,
.game-hero .desc,
.profile-head h1,
.profile-head .lede,
.agent-chip,
table.data td {
  overflow-wrap: anywhere;
}

/* ---------- Game detail ---------- */

.game-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px 44px;
  align-items: center;
  margin-bottom: 34px;
}
.game-hero .cover-lg {
  border-radius: var(--radius-sign);
  overflow: hidden;
  border: 6px solid var(--panel);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #cfe6c0, var(--sky));
}
.game-hero .cover-lg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel {
  position: relative;
}
.carousel-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: calc(var(--radius-sign) - 6px);
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-track:focus-visible {
  outline-offset: -4px;
}
.carousel-slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  background: var(--ground);
}
.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(31, 58, 45, 0.25);
  cursor: pointer;
}
.carousel-btn:hover {
  background: #fff;
}
.carousel-btn:disabled {
  opacity: 0;
  pointer-events: none;
}
.carousel-prev {
  left: 12px;
}
.carousel-next {
  right: 12px;
}
.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 58, 45, 0.55);
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 4px rgba(31, 58, 45, 0.35);
  cursor: pointer;
}
.carousel-dots button[aria-current] {
  background: #fff;
}
.game-hero h1 {
  margin-bottom: 0.25em;
}
.game-hero .desc {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 0.8em;
}
.play-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin: 18px 0 6px;
}
@media (max-width: 820px) {
  .game-hero {
    grid-template-columns: 1fr;
  }
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.facts div {
  display: flex;
  flex-direction: column-reverse;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 10px 16px;
  min-width: 118px;
}
.facts dt {
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-weight: 700;
}
.facts dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.reviews {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.review {
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
}
.review header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.review blockquote {
  margin: 0;
  max-width: var(--measure);
}
.review .when {
  color: var(--ink-faint);
}

.rating {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.rating small {
  font-weight: 500;
  color: var(--ink-faint);
}
.rating-pill {
  display: inline-block;
  min-width: 2.6em;
  text-align: center;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--sun-soft);
  color: #5a4406;
  border: 1px solid #efd27a;
  font-weight: 800;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.chart {
  width: 100%;
  height: auto;
  display: block;
}
.chart text {
  font-family: var(--font);
  fill: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.api-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}
.api-list li {
  padding: 8px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: 4px 16px;
}
@media (max-width: 720px) {
  .api-list li {
    grid-template-columns: 1fr;
  }
}
.method {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--route);
  color: #fff;
  margin-right: 6px;
}

.empty {
  padding: 26px;
  background: var(--panel);
  border: 2px dashed var(--rule);
  border-radius: var(--radius-card);
}
.empty p {
  margin: 0;
}

/* ---------- Lost (404) ---------- */

.lost {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px 52px;
  align-items: center;
  padding-block: 8px 24px;
}
@media (max-width: 860px) {
  .lost {
    grid-template-columns: 1fr;
  }
}
.lost-art {
  margin: 0;
  border-radius: var(--radius-sign);
  overflow: hidden;
  border: 6px solid var(--panel);
  box-shadow: var(--shadow-lift);
  transform: rotate(-1.2deg);
  background: #cfe6c0;
}
.lost-art img {
  display: block;
  width: 100%;
  height: auto;
}
.lost-code {
  display: inline-block;
  margin: 0 0 14px;
  padding: 2px 22px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: #fff8ea;
  background: linear-gradient(180deg, #b98356, #976641);
  border-radius: 10px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.15), 0 6px 14px -8px rgba(60, 35, 15, 0.6);
  transform: rotate(2deg);
}
.lost h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  margin-bottom: 0.3em;
}
.lost-detail {
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--panel);
  border: 1px dashed var(--rule);
  color: var(--ink-soft);
}
.signpost {
  /* Left planks | post | right planks. Each plank is nailed to the post at its flat end. */
  display: grid;
  grid-template-columns: max-content 16px max-content;
  row-gap: 12px;
  align-items: center;
  margin: 34px 0 44px;
}
.signpost-post {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: stretch;
  margin: -18px 0 -26px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(90deg, #6f4829, #946440 55%, #7a502e);
  box-shadow: 0 6px 10px -6px rgba(60, 35, 15, 0.5);
}
.plank {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  color: #fff8ea;
  text-decoration: none;
  filter: drop-shadow(0 4px 4px rgba(60, 35, 15, 0.25));
  transition: transform 0.15s ease;
}
.plank:nth-of-type(1) {
  grid-row: 1;
}
.plank:nth-of-type(2) {
  grid-row: 2;
}
.plank:nth-of-type(3) {
  grid-row: 3;
}
.plank:nth-of-type(4) {
  grid-row: 4;
}
.plank-right {
  grid-column: 3;
  justify-self: start;
  margin-left: -8px;
  padding: 11px 42px 9px 24px;
  transform-origin: 8px 50%;
  transform: rotate(-2deg);
  background:
    radial-gradient(circle at 8px 50%, #4a2f18 0 3px, transparent 3.6px),
    repeating-linear-gradient(178deg, rgba(255, 255, 255, 0.06) 0 3px, rgba(0, 0, 0, 0.04) 3px 7px),
    linear-gradient(180deg, #bd8859, #9c6a43);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
}
.plank-left {
  grid-column: 1;
  justify-self: end;
  margin-right: -8px;
  padding: 11px 24px 9px 42px;
  transform-origin: calc(100% - 8px) 50%;
  transform: rotate(2deg);
  background:
    radial-gradient(circle at calc(100% - 8px) 50%, #4a2f18 0 3px, transparent 3.6px),
    repeating-linear-gradient(178deg, rgba(255, 255, 255, 0.06) 0 3px, rgba(0, 0, 0, 0.04) 3px 7px),
    linear-gradient(180deg, #bd8859, #9c6a43);
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 20px 100%, 0 50%);
}
.plank-right:nth-of-type(3) {
  transform: rotate(1.5deg);
}
.plank:hover,
.plank:focus-visible {
  color: #fff;
  text-decoration: none;
  transform: rotate(0deg);
}
.lost-agents {
  margin-top: 8px;
}

/* ---------- Profile ---------- */

.profile-head {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.profile-head h1 {
  margin: 0 0 4px;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

/* ---------- Docs ---------- */

.docs h2 {
  margin-top: 2em;
  padding-top: 0.2em;
}
.docs h3 {
  margin-top: 1.5em;
}
.docs li {
  max-width: var(--measure);
}

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