@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cinzel-500.woff2") format("woff2");
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/cinzel-700.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-sans-3-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/source-sans-3-700.woff2") format("woff2");
}

:root {
  --bg: #100d0c;
  --bg-deep: #0a0807;
  --panel: #1f1a18;
  --panel-2: #181412;
  --line: #3a302b;
  --line-hot: #6a4530;
  --ink: #efe6dc;
  --dim: #b5a89b;
  --ember: #ff8a3d;
  --ember-deep: #c85a18;
  --gold: #ffd27a;
  --teal: #4aa8a4;
  --teal-dim: #2a6a68;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --max: 1120px;
  --header-h: 64px;
}

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

html {
  background: var(--bg-deep);
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font: 18px/1.6 "Source Sans 3", Georgia, "Times New Roman", serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 138, 61, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 30% at 80% 8%, rgba(74, 168, 164, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 20%, rgba(42, 106, 104, 0.06), transparent 50%),
    var(--bg-deep);
  min-height: 100%;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ember); }
a:hover { color: var(--gold); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: Cinzel, Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--ember);
  color: #1a0f08;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 100;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus,
.skip:focus-visible { transform: none; }

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

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 13, 12, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: Cinzel, Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1.02rem;
  flex-shrink: 0;
}
.brand:hover { color: var(--gold); }
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line), 0 0 16px rgba(255, 138, 61, 0.25);
}
.brand .amp { color: var(--ember); }

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 4px;
}
nav a {
  color: var(--dim);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.95rem;
}
nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
nav a.ext {
  color: var(--ember);
  border: 1px solid var(--line-hot);
  margin-left: 6px;
}
nav a.ext:hover { color: #1a0f08; background: var(--gold); border-color: var(--gold); }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 24px 80px;
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 16px 12px 36px;
}
.hero-glow {
  position: absolute;
  inset: 0 8% 40%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 32%, rgba(255, 138, 61, 0.16), transparent 55%),
    radial-gradient(ellipse at 58% 28%, rgba(74, 168, 164, 0.12), transparent 45%);
  filter: blur(8px);
  z-index: 0;
}
.hero-mark { position: relative; z-index: 1; display: block; margin-top: 0; }
.hero-art {
  width: min(880px, 94%);
  margin: 0 auto 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-hot);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 210, 122, 0.12);
  background: #0a0807;
}
.hero-art img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-logo {
  width: min(340px, 70vw);
  margin: 0 auto;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.45));
}
.welcome {
  position: relative;
  z-index: 1;
  margin: 16px auto 0;
  max-width: 38em;
}
.welcome-title {
  font-size: 1.35rem;
  color: var(--gold);
  margin: 0 0 10px;
}
.welcome p {
  margin: 0;
  color: var(--dim);
  font-size: 1.08rem;
  font-weight: 400;
}
.ornament {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px auto 0;
  color: var(--gold);
  opacity: 0.8;
}
.ornament::before,
.ornament::after {
  content: "";
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}
.ornament span { font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; font-family: Cinzel, Georgia, serif; }

/* Sections */
section { margin-top: 28px; }
section > h2 {
  font-size: 1.45rem;
  margin: 0 0 18px;
  color: var(--gold);
}
section > h2 .rule {
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--ember), transparent);
  border-radius: 2px;
}

.lead {
  color: var(--dim);
  max-width: 42em;
  margin: 0;
  font-size: 1.05rem;
}

/* Games */
.games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card .art {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0a0807;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.card .art.cover-gh { aspect-ratio: 630 / 500; }
.card .art img,
.card .art svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card .body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.badge {
  display: inline-block;
  align-self: flex-start;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold);
  background: var(--panel-2);
}
.badge.live {
  color: #1a0f08;
  background: var(--ember);
  border-color: var(--ember);
}
.badge.exclusive {
  color: var(--teal);
  border-color: var(--teal-dim);
}
.card h3 {
  font-size: 1.12rem;
  letter-spacing: 0.03em;
}
.card .game-tagline {
  margin: 0;
  color: var(--gold);
  font-style: italic;
  font-size: 0.98rem;
}
.card p { margin: 0; color: var(--dim); font-size: 0.98rem; }
.soon-url {
  margin: 0;
  color: var(--dim);
  font-size: 0.9rem;
}
.soon-url code {
  font-family: "Source Sans 3", ui-monospace, monospace;
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  word-break: break-all;
}

/* Classified project card. Remove the .classified class to reveal. */
.card.classified .art img {
  filter: blur(9px) brightness(0.32) grayscale(0.25) saturate(0.7);
  transform: scale(1.08);
  transform-origin: center;
}
.card.classified .art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(12, 6, 5, 0.42);
}
.card .stamp { display: none; }
.card.classified .stamp {
  display: block;
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-16deg);
  font-family: Cinzel, Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c4452d;
  border: 3px solid #c4452d;
  outline: 1px solid rgba(196, 69, 45, 0.45);
  outline-offset: 4px;
  padding: 9px 16px 7px;
  border-radius: 4px;
  background: rgba(140, 28, 18, 0.12);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  opacity: 0.92;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.card.classified h3 {
  letter-spacing: 0.06em;
  color: var(--ink);
  font-size: 0;
  line-height: 0;
}
.card.classified h3::after {
  content: "Project: ████ ██████";
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.card.classified .badge {
  font-size: 0;
  line-height: 0;
  color: #c4452d;
  border-color: #6a3028;
  background: #1a1010;
}
.card.classified .badge::after {
  content: "Classified";
  font-size: 0.7rem;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card.classified .redact-inline {
  display: inline-block;
  color: transparent;
  background: #1a1210;
  border-radius: 3px;
  padding: 0 0.15em;
  user-select: none;
  letter-spacing: 0.12em;
}
.card.classified .redact,
.card.classified .game-tagline,
.card.classified .body > p,
.card.classified .soon-url {
  color: transparent;
  background: #1a1210;
  border-radius: 3px;
  line-height: 1.15;
  user-select: none;
  pointer-events: none;
  overflow: hidden;
}
.card.classified .redact-short { width: 64%; }
.card.classified .soon-url { width: 72%; }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}
.btn,
.btn-ghost {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}
.btn {
  background: var(--ember);
  color: #1a0f08;
  border: 1px solid var(--ember);
}
.btn:hover { background: var(--gold); color: #1a0f08; border-color: var(--gold); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--ember);
  color: var(--gold);
  background: rgba(255, 138, 61, 0.08);
}

/* Community */
.community {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.community a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.community a span.sub {
  display: block;
  font-weight: 400;
  color: var(--dim);
  font-size: 0.85rem;
}
.community a:hover {
  border-color: var(--ember);
  color: var(--gold);
  background: rgba(255, 138, 61, 0.06);
}
.community svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: currentColor;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.92rem;
  background: #0d0b0a;
}
footer.site .bar {
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  gap: 8px 18px;
  padding-top: 22px;
  padding-bottom: 8px;
}
footer.site a { color: var(--dim); text-decoration: none; }
footer.site a:hover { color: var(--gold); }
.disclaim {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 22px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--dim);
  opacity: 0.85;
}

/* 404 */
.notfound {
  text-align: center;
  padding: 80px 16px 120px;
}
.notfound img { width: min(240px, 60vw); margin: 0 auto 24px; }
.notfound h1 { font-size: 2rem; margin-bottom: 10px; }
.notfound p { color: var(--dim); }

/* Responsive */
@media (max-width: 1024px) {
  .games { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .card .body { padding: 14px 14px 16px; }
  .card h3 { font-size: 1.02rem; }
}

/* Fold-style short landscape / inner screen */
@media (max-height: 820px) and (min-width: 900px) {
  .hero { padding: 8px 8px 16px; }
  .hero-art {
    width: fit-content;
    max-width: min(720px, 86vw);
    margin: 0 auto 10px;
  }
  .hero-art img {
    width: auto;
    max-width: 100%;
    max-height: 40vh;
    height: auto;
    margin: 0 auto;
  }
  .hero-logo { width: min(240px, 32vw); }
  .welcome { margin-top: 8px; max-width: 36em; }
  .welcome-title { font-size: 1.12rem; margin-bottom: 6px; }
  .welcome p { font-size: 0.98rem; }
  .ornament { margin-top: 8px; }
  section { margin-top: 18px; }
  main { padding-bottom: 48px; }
  .card .art { aspect-ratio: 16 / 9; }
}

@media (max-width: 860px) {
  .games { grid-template-columns: 1fr; }
  .card .art { aspect-ratio: 16 / 9; }
  .bar { padding: 10px 16px; }
  main { padding: 4px 16px 64px; }
  nav a { padding: 6px 9px; font-size: 0.9rem; }
  nav a.ext { margin-left: 0; }
  .hero { padding: 8px 0 24px; }
  .hero-art { width: 100%; margin: 0 auto 12px; }
  .hero-logo { width: min(300px, 78vw); }
  .welcome { margin-top: 12px; }
  .welcome-title { font-size: 1.2rem; }
  .welcome p { font-size: 1.02rem; }
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  header.site .bar {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 14px 10px;
  }
  .brand { justify-content: flex-start; }
  .brand img { width: 34px; height: 34px; }
  nav { justify-content: flex-start; }
  nav a.ext { margin-left: 0; }
  .community { grid-template-columns: 1fr; }
  .btn, .btn-ghost { padding: 10px 14px; }
}

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

/* keep long community labels inside their cards */
.community a { min-width: 0; overflow: hidden; }
.community a > span, .community a > div { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
