/* ============================================================
   ramblewood.games — "dawn in the Ramblewood"
   One continuous scene per page: warm gradient sky, silhouette
   treelines flowing into a deep-forest band, ending at dusk.
   Soft shadows, flat silhouette art, disciplined type.
   ============================================================ */

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/static/fonts/fredoka.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/caveat.woff2") format("woff2");
}

:root {
  --sky-hi: #f2c877;
  --sky-mid: #e9d9a4;
  --sky-lo: #cfd9a8;
  --cream: #faf3e3;
  --paper: #fdf6e7;
  --forest: #2a473a;
  --forest-deep: #22392e;
  --dusk: #16281f;
  --ink: #2e3a30;
  --ink-soft: #6f7c6d;
  --on-dark: #e9e2cf;
  --on-dark-soft: #a8b8a3;
  --amber: #e9a13b;
  --amber-deep: #b0770f;
  --coral: #d9704b;
  --line: #e4d8bc;
  --line-dark: #3b5949;
  --display: "Fredoka", "Segoe UI", sans-serif;
  --hand: "Caveat", cursive;
  --body: "Segoe UI", -apple-system, "Helvetica Neue", sans-serif;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 8px;
  --shadow-1: 0 2px 10px rgba(28, 42, 33, 0.10);
  --shadow-2: 0 14px 34px rgba(28, 42, 33, 0.18);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.7;
  background: var(--cream);
}

a { color: var(--amber-deep); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--coral); }

img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: 2.5rem; letter-spacing: -0.5px; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.15rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

.muted { color: var(--ink-soft); }
.hand { font-family: var(--hand); }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

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

.site-header {
  position: relative;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.site-header.on-sky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: none;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: 0.2px;
}
.logo:hover { color: var(--ink); opacity: 0.85; }
.logo img { width: 30px; height: 30px; }

.site-nav { margin-left: auto; display: flex; gap: 0.4rem; align-items: center; }
.site-nav a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 7px 16px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}
.site-nav a:hover { background: rgba(46, 58, 48, 0.08); color: var(--ink); }
.site-nav a.active { background: var(--ink); color: var(--cream); }
.site-nav a.admin-link { color: var(--amber-deep); }

/* ---------- sky hero (home) ---------- */

.hero-sky {
  position: relative;
  background: linear-gradient(180deg, var(--sky-hi) 0%, var(--sky-mid) 46%, var(--sky-lo) 82%, #b3c18d 100%);
  overflow: hidden;
}
.hero-sky .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 9.5rem 24px 1rem;
  max-width: 760px;
  margin: 0 auto;
}
.hero-sky .eyebrow { color: #7d6427; }
.hero-sky h1 {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  color: var(--paper);
  margin: 0 0 0.35em;
  text-shadow: 0 3px 22px rgba(125, 100, 39, 0.35), 0 1px 0 rgba(125, 100, 39, 0.25);
}
.hero-sky .lede {
  font-family: var(--hand);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  color: #5c5a33;
  margin: 0 auto 2rem;
  max-width: 30ch;
}
.parallax-stage {
  position: relative;
  aspect-ratio: 1440 / 560;
  margin-top: -3rem;
  z-index: 1;
}
.parallax-stage .layer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  will-change: transform;
}
/* the deepest layer stays anchored so it fuses with the band below */
.parallax-stage .layer:last-child { z-index: 2; }

.button-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  background: linear-gradient(180deg, var(--sky-hi) 0%, var(--sky-mid) 60%, var(--sky-lo) 100%);
  text-align: center;
  padding: 8.5rem 24px 5.5rem;
}
.page-hero .eyebrow { color: #7d6427; }
.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  color: var(--paper);
  margin: 0;
  text-shadow: 0 3px 18px rgba(125, 100, 39, 0.35), 0 1px 0 rgba(125, 100, 39, 0.25);
}
.page-hero .sub { font-family: var(--hand); font-size: 1.45rem; color: #5c5a33; margin: 10px 0 0; }
.page-hero .sub a { color: #7d6427; text-decoration: underline; }

/* ---------- bands & treeline dividers ---------- */

.band { padding: 4.5rem 0 5.5rem; }
.band-forest { background: var(--forest); color: var(--on-dark); }
.band-forest-deep { background: var(--forest-deep); color: var(--on-dark); }
.band-cream { background: var(--cream); }
.band-forest a:not(.btn):not(.game-card):not(.note-card),
.band-forest-deep a:not(.btn):not(.game-card):not(.note-card) { color: var(--amber); }
.band-forest a:not(.btn):not(.game-card):not(.note-card):hover,
.band-forest-deep a:not(.btn):not(.game-card):not(.note-card):hover { color: #f2c877; }
.band-forest .eyebrow, .band-forest-deep .eyebrow { color: var(--amber); }
.band-forest h2, .band-forest-deep h2 { color: var(--paper); }
.band .band-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.band .band-head .sub { color: var(--on-dark-soft); margin: 0; }
.band-cream .band-head .sub { color: var(--ink-soft); }

/* a silhouette treeline of the LOWER band rising into the UPPER band.
   Set the element background to the upper band's color, and
   --tl-color to the lower band's color. */
.treeline-divider {
  height: 68px;
  position: relative;
  background: var(--tl-upper, var(--cream));
}
.treeline-divider::after {
  content: "";
  position: absolute;
  inset: 0;
  bottom: -1px;
  background-color: var(--tl-color, var(--forest));
  -webkit-mask: url("/static/art/treeline.svg") repeat-x bottom / 480px 100%;
  mask: url("/static/art/treeline.svg") repeat-x bottom / 480px 100%;
}

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

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.3px;
  padding: 11px 24px 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  color: var(--ink);
  background: var(--amber);
  box-shadow: inset 0 -3px 0 rgba(90, 60, 10, 0.22), var(--shadow-1);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 -3px 0 rgba(90, 60, 10, 0.22), var(--shadow-2); background: #f0ad4e; color: var(--ink); }
.btn:active { transform: translateY(0); }
.btn-outline { background: transparent; box-shadow: none; border: 2px solid currentColor; color: inherit; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); box-shadow: none; color: inherit; }
.btn-forest { background: var(--forest); color: var(--on-dark); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.28), var(--shadow-1); }
.btn-forest:hover { background: var(--forest-deep); color: var(--on-dark); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.28), var(--shadow-2); }
.btn-danger { background: #c25b48; color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.24), var(--shadow-1); }
.btn-danger:hover { background: #a94836; color: #fff; }
.btn-sm { font-size: 0.85rem; padding: 6px 14px 7px; border-radius: 8px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18), var(--shadow-1); }

/* ---------- status pills ---------- */

.pill {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 11px 5px;
  border-radius: 6px;
}
.pill-released { background: #d9edd6; color: #2e6b44; }
.pill-in_development { background: #fbe9c6; color: #8a5f10; }
.pill-prototype { background: #d8e7f2; color: #3c6486; }
.pill-draft { background: #e8e2d2; color: #6f7c6d; }

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

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 30px;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: var(--ink);
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); color: var(--ink); }

.game-card .cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sky-lo); }
.game-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.game-card:hover .cover img { transform: scale(1.045); }

.game-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-card .title { font-family: var(--display); font-weight: 600; font-size: 1.22rem; color: var(--ink); }
.game-card .tagline { color: var(--ink-soft); font-size: 0.95rem; flex: 1; margin: 0; }
.game-card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.game-card .meta .go { font-family: var(--display); font-weight: 600; font-size: 0.9rem; color: var(--amber-deep); }

/* ---------- field notes ---------- */

.note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.note-card {
  position: relative;
  display: block;
  background: var(--paper);
  background-image: repeating-linear-gradient(180deg, transparent 0 29px, rgba(160, 140, 100, 0.16) 29px 30px);
  border-radius: var(--r-sm);
  padding: 30px 26px 24px;
  color: var(--ink);
  box-shadow: var(--shadow-1);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.note-grid .note-card:nth-child(3n+1) { --tilt: -0.6deg; }
.note-grid .note-card:nth-child(3n+2) { --tilt: 0.5deg; }
.note-grid .note-card:nth-child(3n) { --tilt: -0.25deg; }
.note-card:hover { transform: rotate(0deg) translateY(-5px); box-shadow: var(--shadow-2); color: var(--ink); }
.note-card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e88f6d, var(--coral) 55%, #a94836);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.note-card .post-date { font-family: var(--hand); font-size: 1.15rem; color: var(--coral); }
.note-card .post-title { font-family: var(--display); font-weight: 600; font-size: 1.22rem; line-height: 1.3; margin: 2px 0 6px; color: var(--ink); }
.note-card .post-excerpt { color: var(--ink-soft); font-size: 0.94rem; }

.pagination { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 3rem; font-family: var(--display); font-weight: 600; }
.pagination a { padding: 7px 20px 8px; border: 2px solid currentColor; border-radius: 10px; }
.pagination .current { font-family: var(--hand); font-size: 1.3rem; opacity: 0.8; }

/* ---------- game detail ---------- */

.link-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2rem 0 1.8rem; }
.link-buttons.hero-links { justify-content: center; margin: 1.8rem 0 0; }

/* ---------- game page: full-bleed key-art hero ---------- */

.site-header.on-art {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: none;
}
.site-header.on-art .logo,
.site-header.on-art .site-nav a { color: var(--paper); }
.site-header.on-art .site-nav a:hover { background: rgba(253, 246, 231, 0.16); }
.site-header.on-art .site-nav a.active { background: var(--paper); color: var(--ink); }
.site-header.on-art .site-nav a.admin-link { color: var(--amber); }

.game-hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--forest-deep);
}
.game-hero .key-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 40, 31, 0.35) 0%, rgba(22, 40, 31, 0.05) 35%, rgba(22, 40, 31, 0.82) 100%);
}
.game-hero .hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 9rem 0 5.5rem;
}
.game-hero .eyebrow { color: var(--amber); }
.game-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--paper);
  margin: 0.1em 0 0.15em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
}
.game-hero .tagline {
  font-family: var(--hand);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--on-dark);
  margin: 0 0 1.4rem;
}
.game-hero .link-buttons { margin: 0; }
.game-hero .avail {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin: 0 0 10px;
}
.game-hero .treeline-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: transparent;
}

/* ---------- game page: screenshot carousel ---------- */

.carousel { position: relative; }

.film {
  position: relative;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 6px 12px;
  scrollbar-width: none;
}
.film::-webkit-scrollbar { display: none; }
.film figure {
  flex: 0 0 min(680px, 84%);
  scroll-snap-align: center;
  margin: 0;
}
.film img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}
.film figcaption { padding: 12px 6px 0; font-family: var(--hand); font-size: 1.3rem; color: var(--on-dark-soft); }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  line-height: 1;
  border-radius: 50%;
  border: none;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: var(--shadow-2);
  transition: transform 0.15s, opacity 0.15s;
}
.carousel-btn.prev { left: -10px; }
.carousel-btn.next { right: -10px; }
.carousel-btn:hover:not(:disabled) { transform: translateY(-50%) scale(1.1); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }

.carousel-dots { display: flex; gap: 11px; justify-content: center; margin-top: 1.1rem; }
.carousel-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(253, 246, 231, 0.32);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.carousel-dots button:hover { background: rgba(253, 246, 231, 0.55); }
.carousel-dots button.active { background: var(--amber); transform: scale(1.25); }
.band-forest .shots figcaption, .band-forest-deep .shots figcaption { color: var(--on-dark-soft); }

/* the game description reads like a studio page: the first paragraph
   is the big hook, and bullet lists become feature cards */
.game-about > p:first-of-type {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.55;
  text-align: center;
  margin-top: 0;
}
.game-about ul {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.game-about ul li {
  position: relative;
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 16px 20px 16px 52px;
  box-shadow: var(--shadow-1);
  margin: 0;
}
.game-about ul li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 19px;
  width: 22px;
  height: 22px;
  background: url("/static/art/logo-mark.svg") no-repeat center / contain;
}
.game-about ul ul { display: block; margin: 8px 0 0; }
.game-about ul ul li { box-shadow: none; padding: 2px 0 2px 26px; background: none; }
.game-about ul ul li::before { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); left: 6px; top: 13px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.shots figure { margin: 0; }
.shots img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shots figure:hover img { transform: scale(1.02); box-shadow: var(--shadow-2); }
.shots figcaption { padding: 8px 6px 0; font-family: var(--hand); font-size: 1.15rem; color: var(--ink-soft); text-align: center; }

/* ---------- prose (rendered markdown) ---------- */

.prose { max-width: 68ch; }
.prose h1, .prose h2, .prose h3 { color: var(--ink); }
.prose img { border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.prose code {
  background: #f1e7cf;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.88em;
  color: #8a4d22;
}
.prose pre {
  background: #f1e7cf;
  border-radius: var(--r-md);
  padding: 18px 20px;
  overflow-x: auto;
}
.prose pre code { background: none; padding: 0; color: var(--ink); }
.prose blockquote {
  margin: 1.5rem 0;
  padding: 10px 24px;
  border-left: 4px solid var(--amber);
  color: var(--ink-soft);
  background: var(--paper);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 14px; text-align: left; }
.prose th { background: var(--paper); font-family: var(--display); font-weight: 600; font-size: 0.9rem; }
.prose hr { border: none; border-top: 2px dashed var(--line); margin: 2.5rem 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.paper-sheet {
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 52px 56px;
  margin: 0 auto;
  max-width: 820px;
}
.post-meta { font-family: var(--hand); font-size: 1.35rem; color: var(--coral); margin-bottom: 1.6rem; }

/* ---------- footer: dusk at the campsite ---------- */

.site-footer {
  background: var(--dusk);
  color: var(--on-dark-soft);
  text-align: center;
  padding: 2rem 0 3rem;
  position: relative;
}
.site-footer .campfire { width: 250px; margin: 0 auto; display: block; }
.site-footer .signoff { font-family: var(--hand); font-size: 1.55rem; color: var(--on-dark); display: block; margin: 0.6rem 0 1rem; }
.site-footer a { color: var(--on-dark-soft); margin: 0 10px; }
.site-footer a:hover { color: var(--amber); }
.site-footer .tiny { font-size: 0.8rem; opacity: 0.6; margin-top: 1.4rem; }

/* fireflies */
.fireflies { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fireflies span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px 2px rgba(233, 161, 59, 0.55);
  opacity: 0;
  animation: firefly 7s ease-in-out infinite;
}
.fireflies span:nth-child(1) { left: 12%; top: 58%; animation-delay: 0s; }
.fireflies span:nth-child(2) { left: 26%; top: 34%; animation-delay: 1.4s; }
.fireflies span:nth-child(3) { left: 68%; top: 44%; animation-delay: 2.8s; }
.fireflies span:nth-child(4) { left: 82%; top: 62%; animation-delay: 4.1s; }
.fireflies span:nth-child(5) { left: 45%; top: 70%; animation-delay: 5.3s; }
.fireflies span:nth-child(6) { left: 90%; top: 30%; animation-delay: 3.2s; }
@keyframes firefly {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: 0.9; }
  50% { opacity: 0.35; transform: translate(14px, -18px); }
  75% { opacity: 0.8; transform: translate(-8px, -30px); }
}

/* ---------- empty states ---------- */

.empty-state { text-align: center; padding: 1.5rem 0; }
.empty-state p { font-family: var(--hand); font-size: 1.5rem; margin: 0; opacity: 0.85; }

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

.form-panel { background: var(--paper); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-1); }

label { display: block; font-family: var(--display); font-weight: 600; font-size: 0.92rem; color: var(--ink); margin: 20px 0 6px; }
label:first-child { margin-top: 0; }
label .muted { font-weight: 400; font-size: 0.85rem; }

input[type="text"], input[type="password"], input[type="url"], input[type="number"], textarea, select {
  width: 100%;
  background: #fffdf6;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.98rem;
  padding: 10px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(233, 161, 59, 0.22);
}
textarea { min-height: 320px; resize: vertical; line-height: 1.6; }
textarea.short { min-height: 80px; }

input[type="file"] { color: var(--ink-soft); font-size: 0.9rem; }
input[type="checkbox"] { width: auto; accent-color: var(--forest); transform: scale(1.25); margin-right: 9px; }

.check-row { display: flex; align-items: center; }
.check-row label { margin: 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-actions { margin-top: 26px; display: flex; gap: 14px; align-items: center; }

.admin-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 0 0 2rem; }
.admin-nav a { font-family: var(--display); font-weight: 600; }
.admin-nav .spacer { flex: 1; }

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.admin-table th {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: left;
  color: var(--ink-soft);
  padding: 13px 16px;
  border-bottom: 1.5px solid var(--line);
  background: #f4ead2;
}
.admin-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .actions { display: flex; gap: 8px; justify-content: flex-end; }
.admin-table form { display: inline; }

.editor-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.preview-pane { background: #fffdf6; border: 1.5px dashed var(--line); border-radius: 10px; padding: 16px 20px; min-height: 320px; overflow-wrap: break-word; }

.flash { background: #f6ded6; color: #a94836; padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 0.95rem; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; margin: 0 0 2rem; }
.stat { background: var(--paper); border-radius: var(--r-md); padding: 20px; text-align: center; box-shadow: var(--shadow-1); }
.stat .num { font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--forest); display: block; }
.stat .lbl { font-family: var(--display); font-weight: 500; font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 1px; text-transform: uppercase; }

.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.thumb { background: var(--paper); border-radius: var(--r-sm); padding: 10px; font-size: 0.78rem; box-shadow: var(--shadow-1); }
.thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; margin-bottom: 8px; border-radius: 6px; }
.thumb .name { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb input { font-size: 0.74rem; padding: 6px 8px; margin: 6px 0; }

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

@media (max-width: 780px) {
  .editor-split, .form-row { grid-template-columns: 1fr; }
  .showcase .cover { margin-top: -44px; border-width: 5px; }
  .site-header .wrap { flex-wrap: wrap; gap: 0.7rem; padding-top: 14px; padding-bottom: 12px; }
  .site-nav { margin-left: 0; width: 100%; }
  .site-header.on-sky { position: relative; background: var(--sky-hi); }
  .site-header.on-art { position: relative; background: var(--forest-deep); }
  .game-hero { min-height: 60vh; }
  .game-hero .hero-body { padding: 3.5rem 0 4.5rem; }
  .hero-sky .hero-content { padding-top: 3.5rem; }
  .page-hero { padding: 3.5rem 20px 3.5rem; }
  .paper-sheet { padding: 34px 24px; }
  .band { padding: 3rem 0 3.5rem; }
}
