/* Self-hosted IM Fell English and IM Fell English SC (Option A, old-book). Latin only, as provided by the fonts. */
/* latin */
@font-face {
  font-family: 'IM Fell English';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/im-fell-english-italic-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'IM Fell English';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/im-fell-english-normal-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'IM Fell English SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/im-fell-english-sc-normal-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000000;
  --bg-inset: #050506;
  --surface: #0B0B0D;
  --surface-2: #141416;
  --surface-3: #1C1C20;
  --border: #2A2A30;
  --border-strong: #8A8A92;
  --text: #EAD9B4;
  --text-secondary: #CDB98F;
  --text-muted: #B09C74;
  --accent: #EAD9B4;
  --accent-hover: #F6EBD2;
  --accent-text: #0A0A0C;
  --blood: #D07070;
  --focus: #E8E4D6;
  --sheen: #8B96B8;
  --sheen-dim: rgba(120, 132, 180, 0.16);
  --accent-subtle: rgba(234, 217, 180, 0.12);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  --radius: 14px;
  --max: 1120px;
  --font-display: "IM Fell English SC", "IM Fell English", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-serif: "IM Fell English", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "IM Fell English", "Palatino Linotype", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  z-index: 100;
  font-weight: 600;
}
.skip:focus { top: 0.75rem; }

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(0, 0, 0, 0.82);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex: 0 0 auto;
  margin-right: 1rem;
  padding-right: 0.2em;
}
.wordmark:hover { color: var(--text); }
.mark { width: 30px; height: 30px; flex-shrink: 0; display: block; }

nav.primary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.2rem 1.05rem;
  align-items: center;
}
nav.primary a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
nav.primary a:hover,
nav.primary a[aria-current="page"] { color: var(--text); }
nav.primary a[aria-current="page"] {
  box-shadow: 0 1px 0 var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  margin: 0 auto;
  position: relative;
  border-radius: 1px;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }


.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
  padding: 0.72rem 1.45rem;
  text-decoration: none;
  background: transparent;
  color: #2a1c12;
  white-space: nowrap;
  transition: color 0.15s ease, filter 0.15s ease;
}
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(
    2% 8%, 7% 2%, 16% 7%, 28% 0%, 41% 6%, 52% 1%, 64% 7%, 76% 0%, 88% 6%, 97% 3%,
    100% 16%, 96% 28%, 100% 42%, 97% 58%, 100% 74%, 96% 88%, 99% 97%,
    86% 100%, 72% 95%, 58% 100%, 44% 94%, 30% 100%, 18% 95%, 8% 100%, 0% 90%,
    4% 76%, 0% 62%, 3% 46%, 0% 30%, 4% 16%
  );
  pointer-events: none;
}
.btn::before {
  background:
    radial-gradient(ellipse at 18% 80%, rgba(90,40,10,0.18), transparent 42%),
    radial-gradient(ellipse at 82% 20%, rgba(80,50,20,0.14), transparent 40%),
    radial-gradient(ellipse at 70% 90%, rgba(40,20,8,0.2), transparent 36%),
    linear-gradient(180deg, #ead9b4 0%, #d8c394 100%);
  filter: drop-shadow(0 2px 0 #1a1008) drop-shadow(0 3px 6px rgba(0,0,0,0.45));
}
.btn::after {
  background:
    linear-gradient(to top, rgba(40,18,6,0.55), transparent 14%),
    linear-gradient(to bottom, rgba(50,22,8,0.4), transparent 12%),
    linear-gradient(to left, rgba(40,18,6,0.5), transparent 10%),
    linear-gradient(to right, rgba(40,18,6,0.5), transparent 10%);
}
.btn-primary {
  color: #2a1c12;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  color: #2a1c12;
}
.btn-primary:hover::before,
.btn-primary:focus-visible::before {
  background:
    radial-gradient(ellipse at 18% 80%, rgba(90,40,10,0.12), transparent 42%),
    linear-gradient(180deg, #f3e6c6 0%, #e4ce9c 100%);
  filter: drop-shadow(0 2px 0 #1a1008) drop-shadow(0 0 10px rgba(200,120,40,0.28));
}
.btn-ghost {
  color: #f0e4c8;
  border: 0;
}
.btn-ghost::before {
  background:
    radial-gradient(ellipse at 20% 70%, rgba(0,0,0,0.25), transparent 40%),
    linear-gradient(180deg, #3a2a1c 0%, #22160e 100%);
}
.btn-ghost::after {
  background:
    linear-gradient(to top, rgba(10,6,2,0.7), transparent 16%),
    linear-gradient(to bottom, rgba(20,10,4,0.5), transparent 12%),
    linear-gradient(to left, rgba(10,6,2,0.55), transparent 10%),
    linear-gradient(to right, rgba(10,6,2,0.55), transparent 10%);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: #f0e4c8;
}
.btn-ghost:hover::before,
.btn-ghost:focus-visible::before {
  background: linear-gradient(180deg, #4a3624 0%, #2c1c12 100%);
  filter: drop-shadow(0 2px 0 #1a1008) drop-shadow(0 0 10px rgba(200,120,40,0.28));
}
.btn-sm {
  padding: 0.42rem 1.05rem;
  font-size: 0.8rem;
}
header .btn {
  padding: 0.48rem 1.15rem;
  font-size: 0.85rem;
}
.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

/* Home hero — 16:9 so the moon is never cropped; no filters on the image */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid var(--border);
}
/* Let the 3D hardcover sit fully in the lower dark of the hero without clipping its edges */
.hero.hero-has-book, .hero:has(.hero-book) {
  overflow: visible;
}
.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.hero-media picture,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-media img {
  object-fit: cover;
  object-position: center center;
  /* Do not filter, tint, or crop the moon in this frame */
}
.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 58%,
    rgba(0, 0, 0, 0.28) 74%,
    rgba(0, 0, 0, 0.78) 90%,
    #000 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: -8.25rem auto 0;
  width: 100%;
  padding: 0 1.5rem 3.25rem;
  text-align: center;
}
.kicker {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6.2vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0.10em;
  margin: 0;
  text-indent: 0.12em;
  color: var(--text);
  filter: url(#ink-bleed);
  text-shadow:
    0.45px 0 0 rgba(234, 217, 180, 0.28),
    -0.55px 0.35px 0.35px rgba(50, 24, 8, 0.45),
    0 2px 28px rgba(0, 0, 0, 0.95),
    0 0 40px rgba(0, 0, 0, 0.6);
}
.hero-rule {
  display: block;
  width: 4.5rem;
  height: 1px;
  margin: 1.05rem auto 0.85rem;
  background: linear-gradient(90deg, transparent, var(--blood), transparent);
  border: 0;
}
.lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 34rem;
  margin: 0 auto 1.6rem;
  line-height: 1.45;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.95);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* Interior page banners */
.page-banner {
  position: relative;
  isolation: isolate;
  min-height: 280px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-color: #000;
  background-size: cover;
  background-repeat: no-repeat;
}
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to right, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.32) 42%, rgba(0,0,0,0.12) 72%, transparent 100%),
              linear-gradient(to top, #000 0%, rgba(0,0,0,0.5) 22%, rgba(0,0,0,0.18) 58%, transparent 100%);
}
.page-banner.banner-moon { background-image: url("assets/hero.jpg"); background-position: 86% 22%; }
.page-banner.banner-forest { background-image: url("assets/banner-forest.jpg"); background-position: 50% 88%; }
.page-banner.banner-still-forest { background-image: url("assets/still-forest.jpg"); }
.page-banner.banner-branch { background-image: url("assets/still-branch.jpg"); background-position: 8% 45%; }
.page-banner.banner-raven { background-image: url("assets/still-raven.jpg"); background-position: 62% 40%; }
.page-banner .banner-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 3.5rem 1.5rem 2rem;
}
.page-banner h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 0.4rem;
  filter: url(#ink-bleed);
  text-shadow:
    0.45px 0 0 rgba(234, 217, 180, 0.28),
    -0.55px 0.35px 0.35px rgba(50, 24, 8, 0.45),
    0 2px 20px rgba(0,0,0,0.85);
}
.page-banner p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 36rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.85);
}

/* Layout */
main { display: block; }
section.band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  position: relative;
}
section.band.mist::before {
  content: "";
  position: absolute;
  inset: -10% 0 auto;
  height: 70%;
  pointer-events: none;
  background: radial-gradient(ellipse at 80% 0%, var(--sheen-dim), transparent 58%),
              radial-gradient(ellipse at 10% 80%, rgba(80, 90, 120, 0.08), transparent 50%);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  letter-spacing: 0.1em;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  filter: url(#ink-bleed);
  text-shadow:
    0.45px 0 0 rgba(234, 217, 180, 0.28),
    -0.55px 0.35px 0.35px rgba(50, 24, 8, 0.45);
}
.section-head p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }
.section-head a.more {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 400;
  white-space: nowrap;
}

.example-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 1.25rem;
}
.badge-example {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  vertical-align: middle;
}

/* Moon-glow divider */

.visually-hidden {
  position: absolute;
  left: -999px;
}
.moon-rule-inset { padding: 2.5rem 0 0; }
.moon-rule {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.moon-rule::before,
.moon-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 210, 220, 0.28), transparent);
}
.moon-rule i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
  background: radial-gradient(circle at 35% 32%, #f4f1e8, #b8c0cc 62%, #7a8498);
  box-shadow: 0 0 18px rgba(201, 210, 220, 0.55), 0 0 2px rgba(240, 237, 228, 0.8);
}

/* Game cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.game-card:hover { border-color: #4A4A58; transform: translateY(-2px); }
.cover {
  aspect-ratio: 16 / 10;
  position: relative;
  display: block;
  overflow: hidden;
  background-color: #08080a;
  background-size: cover;
  background-position: center;
}
.cover picture,
.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.cover img {
  object-fit: cover;
}
.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(0, 0, 0, 0.78);
  color: var(--accent);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}
.game-body { padding: 1.05rem 1.15rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.game-body h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 0.4rem;
}
.game-body h3 a { color: var(--text); text-decoration: none; }
.game-body h3 a:hover { color: var(--accent-hover); }
.game-body p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex: 1;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  background: var(--bg-inset);
}
.game-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
}
.filter {
  position: relative;
  isolation: isolate;
  background: transparent;
  border: 0;
  color: #f0e4c8;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.38rem 0.95rem;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
}
.filter::before,
.filter::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(
    2% 8%, 7% 2%, 16% 7%, 28% 0%, 41% 6%, 52% 1%, 64% 7%, 76% 0%, 88% 6%, 97% 3%,
    100% 16%, 96% 28%, 100% 42%, 97% 58%, 100% 74%, 96% 88%, 99% 97%,
    86% 100%, 72% 95%, 58% 100%, 44% 94%, 30% 100%, 18% 95%, 8% 100%, 0% 90%,
    4% 76%, 0% 62%, 3% 46%, 0% 30%, 4% 16%
  );
  pointer-events: none;
}
.filter::before {
  background:
    radial-gradient(ellipse at 20% 70%, rgba(0,0,0,0.25), transparent 40%),
    linear-gradient(180deg, #3a2a1c 0%, #22160e 100%);
  filter: drop-shadow(0 1px 0 #1a1008) drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.filter::after {
  background:
    linear-gradient(to top, rgba(10,6,2,0.65), transparent 18%),
    linear-gradient(to bottom, rgba(20,10,4,0.45), transparent 14%),
    linear-gradient(to left, rgba(10,6,2,0.5), transparent 12%),
    linear-gradient(to right, rgba(10,6,2,0.5), transparent 12%);
}
.filter:hover {
  color: #f0e4c8;
}
.filter:hover::before {
  background: linear-gradient(180deg, #4a3624 0%, #2c1c12 100%);
}
.filter[aria-pressed="true"] {
  color: #2a1c12;
}
.filter[aria-pressed="true"]::before {
  background:
    radial-gradient(ellipse at 18% 80%, rgba(90,40,10,0.18), transparent 42%),
    linear-gradient(180deg, #ead9b4 0%, #d8c394 100%);
}
.filter[aria-pressed="true"]::after {
  background:
    linear-gradient(to top, rgba(40,18,6,0.5), transparent 16%),
    linear-gradient(to bottom, rgba(50,22,8,0.35), transparent 14%),
    linear-gradient(to left, rgba(40,18,6,0.45), transparent 12%),
    linear-gradient(to right, rgba(40,18,6,0.45), transparent 12%);
}
.filter:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.game-card.is-hidden { display: none; }
.filter-empty { display: none; color: var(--text-muted); font-style: italic; }
.filter-empty.show { display: block; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 118px;
  grid-auto-flow: dense;
  gap: 0.75rem;
}
.shot {
  border: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 1px solid var(--border);
  color: inherit;
  font: inherit;
  text-align: left;
  background: #08080a;
}
.shot:hover .caption, .shot:focus-visible .caption { opacity: 1; }
.shot picture, .shot img, .shot .swatch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.shot img, .shot .swatch { object-fit: cover; }
.shot.tall { grid-row: span 2; }
.shot.wide { grid-column: span 2; }
.gallery.gallery-trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 240px;
  grid-auto-flow: row;
  justify-content: center;
}
/* First Recent pictures still: nearly square art in a wide card.
   Default center crop cuts the raven's head off at the top.
   Pin to the top so the head, beak, and a little sky stay in frame. */
.shot-watcher img {
  object-position: 50% 0%;
}
/* User upload on the home Recent pictures row: wide 16:9 art,
   raven sits right of center. Pin the crop to the right so the
   watcher is centered in the card and the logo is not clipped. */
.shot-on-watch img {
  object-position: 100% 50%;
}
.caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 0.75rem 0.65rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  font-size: 0.82rem;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.18s ease;
}

/* Single game */
.crumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.crumb a { color: var(--text-secondary); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.game-hero-block h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.08em;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 0.6rem;
  filter: url(#ink-bleed);
  text-shadow:
    0.45px 0 0 rgba(234, 217, 180, 0.28),
    -0.55px 0.35px 0.35px rgba(50, 24, 8, 0.45);
}
.game-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-bottom: 1.25rem; }
.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 78% 28%, rgba(200, 210, 230, 0.12), transparent 36%),
    #050506;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.embed p { margin: 0; color: var(--text-muted); font-size: 0.9rem; text-align: center; }
.screenshots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 0 0 2.25rem;
}
.screenshots button {
  position: relative;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  aspect-ratio: 16 / 10;
}
.screenshots picture, .screenshots img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.screenshots img { object-fit: cover; }
.prose { max-width: 42rem; }
.prose h2 {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 1.15rem;
  margin: 2rem 0 0.6rem;
}
.prose p { color: var(--text-secondary); }
.prose ul { color: var(--text-secondary); padding-left: 1.15rem; }

/* Upload */
.upload-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem 1.7rem;
  box-shadow: var(--shadow);
}
.tabs { display: flex; gap: 0.4rem; margin-bottom: 1.25rem; }
.tab {
  position: relative;
  isolation: isolate;
  background: transparent;
  border: 0;
  color: #f0e4c8;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.42rem 1.05rem;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
}
.tab::before,
.tab::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(
    2% 8%, 7% 2%, 16% 7%, 28% 0%, 41% 6%, 52% 1%, 64% 7%, 76% 0%, 88% 6%, 97% 3%,
    100% 16%, 96% 28%, 100% 42%, 97% 58%, 100% 74%, 96% 88%, 99% 97%,
    86% 100%, 72% 95%, 58% 100%, 44% 94%, 30% 100%, 18% 95%, 8% 100%, 0% 90%,
    4% 76%, 0% 62%, 3% 46%, 0% 30%, 4% 16%
  );
  pointer-events: none;
}
.tab::before {
  background:
    radial-gradient(ellipse at 20% 70%, rgba(0,0,0,0.25), transparent 40%),
    linear-gradient(180deg, #3a2a1c 0%, #22160e 100%);
  filter: drop-shadow(0 1px 0 #1a1008) drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.tab::after {
  background:
    linear-gradient(to top, rgba(10,6,2,0.65), transparent 18%),
    linear-gradient(to bottom, rgba(20,10,4,0.45), transparent 14%),
    linear-gradient(to left, rgba(10,6,2,0.5), transparent 12%),
    linear-gradient(to right, rgba(10,6,2,0.5), transparent 12%);
}
.tab:hover {
  color: #f0e4c8;
}
.tab:hover::before {
  background: linear-gradient(180deg, #4a3624 0%, #2c1c12 100%);
}
.tab[aria-selected="true"] {
  color: #2a1c12;
}
.tab[aria-selected="true"]::before {
  background:
    radial-gradient(ellipse at 18% 80%, rgba(90,40,10,0.18), transparent 42%),
    linear-gradient(180deg, #ead9b4 0%, #d8c394 100%);
}
.tab[aria-selected="true"]::after {
  background:
    linear-gradient(to top, rgba(40,18,6,0.5), transparent 16%),
    linear-gradient(to bottom, rgba(50,22,8,0.35), transparent 14%),
    linear-gradient(to left, rgba(40,18,6,0.45), transparent 12%),
    linear-gradient(to right, rgba(40,18,6,0.45), transparent 12%);
}
.tab:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: 12px;
  background: var(--bg-inset);
  padding: 2.2rem 1rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  cursor: pointer;
}
.dropzone strong { color: var(--text); display: block; font-size: 1.05rem; margin-bottom: 0.25rem; }
.dropzone span { font-size: 0.88rem; color: var(--text-muted); }
.dropzone.is-drag { border-color: var(--accent); background: var(--accent-subtle); }
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.preview-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  width: 140px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.preview-card img { width: 100%; height: 90px; object-fit: cover; display: block; }
.preview-card p { margin: 0; padding: 0.45rem 0.55rem; word-break: break-all; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}
label {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 1.05rem;
}
textarea { min-height: 6rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-muted); }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.form-status { color: var(--accent); font-size: 0.9rem; margin: 0; }

/* About */
.lore {
  max-width: 42rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.lore p { margin: 0 0 1.15rem; }
.lore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 2.5rem;
}
.lore-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem;
}
.lore-card h3 {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin: 0 0 0.45rem;
}
.lore-card p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }

footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}
.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.foot > span:first-child {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
}
footer a { color: var(--text-secondary); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-inner { width: min(960px, 100%); text-align: center; }
.lightbox-inner img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #000;
}
.lightbox p { margin: 0.85rem 0 0; color: var(--text-secondary); }
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .game-grid, .lore-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .shot.wide { grid-column: span 1; }
  .screenshots { grid-template-columns: 1fr 1fr; }
  .gallery.gallery-trio { grid-template-columns: 1fr; grid-auto-rows: 200px; }
}
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  header .header-cta { display: none; }
  .nav-wrap { flex-wrap: wrap; }
  nav.primary {
    display: none;
    width: 100%;
    order: 4;
    padding: 0.4rem 0 0.2rem;
  }
  nav.primary.is-open { display: block; }
  nav.primary ul { flex-direction: column; align-items: flex-start; gap: 0.65rem; }
  .wordmark { margin-right: auto; letter-spacing: 0.10em; font-size: 0.98rem; }
}
@media (max-width: 760px) {
  .game-grid, .form-row, .lore-grid { grid-template-columns: 1fr; }
  .hero h1 { letter-spacing: 0.08em; text-indent: 0.08em; }
  .hero-inner { margin-top: -5.5rem; }
}

/* Schwarzwald subtitle under hero title */
.hero-sub{font-family:var(--font-display);text-transform:uppercase;letter-spacing:.32em;font-size:clamp(.95rem,1.6vw,1.25rem);color:#C9D2DC;margin:.35rem 0 0;padding-left:.32em;filter:url(#ink-bleed);text-shadow:0.45px 0 0 rgba(234,217,180,0.28),-0.55px 0.35px 0.35px rgba(50,24,8,0.45),0 2px 12px rgba(0,0,0,.85)}
.hero-into{font-family:var(--font-serif);font-style:italic;font-size:clamp(1.1rem,1.6vw,1.3rem);color:#B4B2AA;letter-spacing:.08em;margin:.5rem 0 0;text-shadow:0 2px 12px rgba(0,0,0,.85)}
.hero-into + .hero-sub{margin-top:.1rem}

/* Tan parchment text (matches the burnt parchment buttons) */
.hero-sub{color:#EAD9B4}
.hero-into{color:#CDB98F}

/* Fix: mist glow no longer pokes above its section into the hero, and fades out at its edges */
section.band.mist::before{inset:0 0 auto;-webkit-mask-image:linear-gradient(to right,transparent 0%,#000 25%,#000 75%,transparent 100%),linear-gradient(to bottom,#000 0%,transparent 100%);-webkit-mask-composite:source-in;mask-image:linear-gradient(to right,transparent 0%,#000 25%,#000 75%,transparent 100%),linear-gradient(to bottom,#000 0%,transparent 100%);mask-composite:intersect}
.hero{z-index:1}
/* Auth & Account */
[hidden] { display: none !important; }
nav.primary .nav-auth-sep {
  padding-left: 0.9rem;
  border-left: 1px solid var(--border);
}
nav.primary a[data-auth-username] {
  color: var(--accent);
}
@media (max-width: 960px) {
  nav.primary ul { gap: 0.2rem 0.9rem; }
}
@media (max-width: 1100px) {
  nav.primary .nav-auth-sep {
    padding-left: 0;
    border-left: 0;
    padding-top: 0.45rem;
    border-top: 1px solid var(--border);
    width: 100%;
  }
}
.auth-panel {
  max-width: 32rem;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.85rem 1.9rem;
  box-shadow: var(--shadow);
}
.auth-stack {
  display: grid;
  gap: 1rem;
}
.field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.form-status.is-error {
  color: var(--blood);
}
.auth-notice {
  margin: 0 0 1.1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.92rem;
}
.signup-closed {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text);
}
.auth-alt {
  margin: 1.35rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.account-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.9rem;
  margin: 0 0 1.4rem;
}
.account-stat {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}
.account-stat span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.account-stat strong {
  font-size: 1.05rem;
  color: var(--text);
  word-break: break-word;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}
.account-actions-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Uploaded picture archive & download cards */
.label-opt {
  color: var(--text-muted);
  font-size: 0.85em;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}
.pic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.15rem;
}
.pic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pic-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.pic-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: #050506;
  cursor: pointer;
  overflow: hidden;
}
.pic-thumb picture,
.pic-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.pic-card:hover .pic-thumb img {
  transform: scale(1.03);
}
.pic-body {
  padding: 0.95rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}
.pic-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.08rem;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0;
  word-break: break-word;
}
.pic-caption {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.5;
  word-break: break-word;
}
.pic-meta {
  margin: 0.1rem 0 0.45rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.pic-actions {
  margin-top: auto;
  padding-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.pic-delete-confirm {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.btn-danger-ghost {
  color: #f3c8c8;
}
.btn-danger-ghost:hover,
.btn-danger-ghost:focus-visible {
  color: #ffdada;
}
.gallery-empty,
.gallery-loading {
  color: var(--text-muted);
  font-style: italic;
  margin: 0.35rem 0 0;
}
.lightbox-foot {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.lightbox-foot p {
  margin: 0;
  text-align: left;
  color: var(--text-secondary);
}

.coming-soon { margin-top: 0.35rem; }
.coming-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.35rem 0 0; }
.lore a, .lore-card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.lore a:hover, .lore-card a:hover { color: var(--text); }
.upload-terms {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 1.5rem 0 0;
}
.upload-terms a { color: var(--text-secondary); }
.upload-terms a:hover { color: var(--accent); }
.contact-form {
  max-width: 32rem;
  margin: 0.25rem 0 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.85rem 1.9rem;
  box-shadow: var(--shadow);
}

/* Desktop wallpaper downloads */
.wp-packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
  margin: 0 0 0.4rem;
}
.wp-pack {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.05rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.wp-pack h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.08rem;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0;
}
.wp-pack p {
  margin: 0 0 0.35rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.5;
}
