:root {
  --ink: #0d1633;
  --indigo: #0a1744;
  --blue: #3f63d6;
  --mist: #edf2fa;
  --sun: #ffc93c;
  --line: #cfd9ec;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--sun); color: var(--ink);
  padding: .6rem 1rem; border-radius: 6px; z-index: 10;
}
.skip:focus { top: 1rem; }

h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-block;
  font: inherit; font-weight: 700;
  background: var(--sun); color: var(--ink);
  border: 0; border-radius: 999px;
  padding: .8rem 1.5rem;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); background: #ffd861; }

/* Header + hero */
.top { background: var(--indigo); color: var(--mist); }
.bar { display: flex; justify-content: space-between; align-items: center; padding-block: 1.25rem; }
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.top nav { display: flex; gap: 1.25rem; }
.page { padding-block: 4rem; min-height: 60vh; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.page h2 { font-size: 1.3rem; margin: 2.5rem 0 .75rem; }
.page h3 { font-size: 1.1rem; margin: 2rem 0 .75rem; }
.legal { max-width: 72ch; }
.legal p, .legal li { max-width: none; }
.legal p { margin: 0 0 1.1em; }
.legal ul, .legal ol { margin: 0 0 1.25em; padding-left: 1.5rem; }
.legal li { margin-bottom: .6em; }
.legal a { color: var(--blue); }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.legal h2[id] { scroll-margin-top: 1rem; }
.top nav a { text-decoration: none; opacity: .85; }
.top nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.hero { background: linear-gradient(90deg, rgba(10,23,68,.94) 0%, rgba(10,23,68,.82) 42%, rgba(10,23,68,0) 68%), linear-gradient(90deg, #0a1744 calc(50% - 800px), rgba(10,23,68,0) calc(50% - 800px + 260px), rgba(10,23,68,0) calc(50% + 800px - 260px), #0a1744 calc(50% + 800px)), url(img/hero-bg.jpg) center bottom / min(100%, 1600px) auto no-repeat, #0a1744; color: var(--mist); padding-block: 2rem 5rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; margin-bottom: 1.25rem; }
.lead { font-size: 1.25rem; color: #c6d3f0; margin-bottom: 2.25rem; }

.building {
  border-left: 4px solid var(--sun);
  padding: .25rem 0 .25rem 1.25rem;
}
.building p { color: #c6d3f0; margin-bottom: .75rem; }
.building .building-title { color: var(--mist); font-size: 1.2rem; margin-bottom: .35rem; }
.building .btn { margin-top: .5rem; }

/* Logo: the one animated moment, a slow fade-in */
.hero-art img { width: 100%; max-width: 400px; height: auto; display: block; margin-inline: auto; animation: arrive 1.4s ease .2s both; }
@keyframes arrive { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* Creed band */
.creed { background: var(--indigo); color: var(--mist); padding-block: 0 4rem; }
.creed-list { list-style: none; margin-block: 0; padding: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-evenly; gap: 2rem; border-top: 1px solid rgba(237, 242, 250, .18); }
.creed-list li { display: flex; align-items: center; justify-content: center; gap: 1.1rem; }
.creed-list img { width: 84px; height: 84px; flex: none; }
.creed-list p { margin: 0; color: #c6d3f0; font-size: 1.05rem; line-height: 1.4; }

/* Games: a ruled list, not cards */
.games { padding-block: 0 5rem; }
.section-note { color: #3a4770; margin-top: .75rem; margin-bottom: 2.5rem; }

.game-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.game-list li {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.year { font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.game-main p { margin: .35rem 0 0; color: #3a4770; }
.game-main a { text-decoration: none; }
.game-main a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.tag {
  font-size: .9rem; font-weight: 600;
  background: #fff; border: 1px solid var(--line);
  padding: .2rem .8rem; border-radius: 999px; white-space: nowrap;
}

/* About */
.about { background: #fff; padding-block: 5rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { font-size: 1.2rem; }
.about-photo { width: 100%; height: auto; border-radius: 14px; display: block; }

/* Newsletter */
.news { background: linear-gradient(rgba(10,23,68,.50), rgba(10,23,68,.50)), linear-gradient(90deg, #0a1744 calc(50% - 800px), rgba(10,23,68,0) calc(50% - 800px + 260px), rgba(10,23,68,0) calc(50% + 800px - 260px), #0a1744 calc(50% + 800px)), url(img/hero-bg.jpg) center bottom / min(100%, 1600px) auto no-repeat, #0a1744; color: var(--mist); padding-block: 5rem; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.news p { color: #c6d3f0; margin-top: .75rem; margin-bottom: 0; }
.signup label { display: block; font-weight: 600; margin-bottom: .5rem; }
.signup-row { display: flex; gap: .75rem; }
.signup input {
  flex: 1; min-width: 0;
  font: inherit; padding: .8rem 1.1rem;
  border-radius: 999px; border: 2px solid transparent;
  background: var(--mist); color: var(--ink);
}
.signup-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
.signup-fields .field label { margin-bottom: .4rem; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.signup-msg { margin: .9rem 0 0; color: #ffd861; font-weight: 600; max-width: none; }
.news-grid > * { min-width: 0; }
.signup input { width: 100%; }
.signup input:focus-visible { border-color: var(--sun); outline: none; }

.news-copy { display: flex; align-items: center; gap: 1.75rem; }
.lootbox { width: 130px; height: auto; flex: none; }
.about-title img { width: 1.1em; height: 1.1em; vertical-align: -.12em; margin-left: .15em; filter: brightness(.7) saturate(1.5); }

/* Footer */
footer { background: #060d26; color: #9fb0d8; font-size: .95rem; }
.foot { display: flex; justify-content: space-between; padding-block: 1.5rem; gap: 1rem; flex-wrap: wrap; }

/* Phones and small tablets */
@media (max-width: 800px) {
  .hero { padding-block: 1rem 3.5rem; }
  .hero-grid, .about-grid, .news-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 240px; }
  .top nav { gap: .9rem; font-size: .95rem; }
  .brand { font-size: 1rem; }
  .bar { flex-wrap: wrap; gap: .4rem 1rem; }
  .hero { padding-block: 1rem 5rem; background: linear-gradient(180deg, rgba(10,23,68,.15) 0%, rgba(10,23,68,.85) 38%, rgba(10,23,68,.92) 100%), var(--indigo) url(img/hero-bg.jpg) right bottom / auto 125% no-repeat; }
  .game-list li { grid-template-columns: 1fr; gap: .5rem; }
  .tag { justify-self: start; }
  .signup-row { flex-direction: column; }
  .signup-fields { grid-template-columns: 1fr; }
  .signup-actions .btn { width: 100%; }
  .lootbox { width: 96px; }
  .games, .about, .news { padding-block: 3.5rem; }
  .creed-list { grid-template-columns: auto; justify-content: center; gap: 1.25rem; }
  .creed-list li { justify-content: flex-start; }
  .creed { padding-bottom: 2.5rem; }
}

/* Game pages + Devlog */
.crumb { margin: 0 0 1rem; font-weight: 600; }
.crumb a { color: var(--blue); text-decoration: none; }
.crumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.meta { color: #3a4770; margin: -.75rem 0 1.5rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 2rem; }
.btn.alt { background: transparent; border: 2px solid var(--ink); padding: calc(.8rem - 2px) calc(1.5rem - 2px); }
.btn.alt:hover { background: #fff; }
.post-img { display: block; max-width: 100%; height: auto; border-radius: 12px; margin: 0 0 1.75rem; }
.post-img.icon { width: 160px; }
.post-body { margin-bottom: 1rem; overflow-wrap: anywhere; }
.post-body h2, .post-body h3 { margin: 1.75rem 0 .75rem; }
.post-body ul ul { margin: .5em 0 0; }
.gallery { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; margin-top: 2rem; }
.gallery a { display: block; line-height: 0; }
.gallery img { height: 240px; width: auto; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.entry-list li { grid-template-columns: 9rem 1fr; }
.entry-list .year { white-space: nowrap; }
@media (max-width: 800px) { .entry-list li { grid-template-columns: 1fr; } .gallery img { height: 200px; } }

/* Night-sky bands from the old theme */
.games-head { background: linear-gradient(180deg, rgba(6,16,50,.30), rgba(6,16,50,.72)), linear-gradient(90deg, #0a1744 calc(50% - 800px), rgba(10,23,68,0) calc(50% - 800px + 260px), rgba(10,23,68,0) calc(50% + 800px - 260px), #0a1744 calc(50% + 800px)), url(img/bg-games.jpg) center 42% / min(100%, 1600px) auto no-repeat, #0a1744; color: var(--mist); padding-block: 4.5rem 3.5rem; margin-bottom: 3rem; }
.games-head .section-note { color: #c6d3f0; margin-bottom: 0; }
.games-head, .news, .about { position: relative; }
.games-head::before, .news::before, .about::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, rgba(110,160,255,0), rgba(110,160,255,.9) 25%, rgba(110,160,255,.9) 75%, rgba(110,160,255,0)); box-shadow: 0 0 18px 2px rgba(80,130,255,.35); }
.banner { height: clamp(110px, 15vw, 180px); background: linear-gradient(180deg, rgba(10,23,68,.10), rgba(10,23,68,.35)), linear-gradient(90deg, #0a1744 calc(50% - 800px), rgba(10,23,68,0) calc(50% - 800px + 260px), rgba(10,23,68,0) calc(50% + 800px - 260px), #0a1744 calc(50% + 800px)), url(img/hero-bg.jpg) center bottom / min(100%, 1600px) auto no-repeat, #0a1744; }
.banner { position: relative; }
.banner::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: linear-gradient(90deg, rgba(110,160,255,0), rgba(110,160,255,.9) 25%, rgba(110,160,255,.9) 75%, rgba(110,160,255,0)); box-shadow: 0 0 18px 2px rgba(80,130,255,.35); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img { animation: none; }
  .btn { transition: none; }
}

.post-img[width="400"] { width: 240px; }

/* Cookie notice (reCAPTCHA) */
.zmc { position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; padding: 16px; display: flex; justify-content: flex-start; pointer-events: none; }
.zmc[hidden] { display: none; }
.zmc-card { pointer-events: auto; width: 100%; max-width: 30rem; background: #0f1d52; color: #fff; border: 1px solid rgba(110,160,255,.45); border-radius: 10px; padding: 1.25rem; box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); }
.zmc h2 { margin: 0 0 .4rem; font-size: 1.05rem; }
.zmc p { margin: 0; color: #cfd9ec; font-size: .95rem; line-height: 1.55; max-width: none; }
.zmc p a { color: inherit; }
.zmc-actions { display: flex; gap: .6rem; margin-top: 1rem; }
.zmc-btn { flex: 1; font: inherit; font-weight: 600; padding: .8rem 1rem; border-radius: 6px; border: 1.5px solid #fff; background: transparent; color: #fff; cursor: pointer; }
.zmc-btn.primary { background: var(--sun); border-color: var(--sun); color: var(--indigo); }
.zmc-btn:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
@media (max-width: 560px) { .zmc { padding: 0; } .zmc-card { max-width: none; border-radius: 10px 10px 0 0; } }

/* Newsletter form locked until reCAPTCHA is accepted */
.signup-blocked { display: none; margin: 0; color: #ffd861; font-weight: 600; max-width: none; }
.signup.locked .signup-fields, .signup.locked .signup-actions, .signup.locked .signup-msg, .signup.locked .signup-note { display: none; }
.signup.locked .signup-blocked { display: block; }
.signup-blocked button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.foot button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.signup-note { margin: .9rem 0 0; font-size: .8rem; opacity: .75; max-width: none; }
