/* MDP Games — site styles */
:root {
  --ink: #1c1510;
  --ink-2: #2a2019;
  --paper: #fbf6ec;
  --card: #fffdf8;
  --gold: #fbb118;
  --gold-deep: #e39a00;
  --brown: #8a5300;
  --text: #2a2019;
  --muted: #6e5d4b;
  --line: #eadfca;
  --line-strong: #d8c7a6;
  --danger: #b3261e;
  --ok: #2f7d4f;

  --ip-navy: #0e1624;
  --ip-gold: #d4a52c;
  --sd-orange: #f2661b;
  --sd-dark: #0e2322;
  --el-red: #c8102e;
  --el-blue: #13306b;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(28, 21, 16, .06), 0 8px 24px rgba(28, 21, 16, .08);
  --wrap: 1180px;
  --display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 16px/1.6 var(--body); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; margin: 0 0 .4em; color: var(--ink); letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow {
  font: 700 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--brown);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 4px; background: var(--gold); transform: skewX(-20deg); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg); font: 700 .95rem/1 var(--body);
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); color: var(--fg); }
.btn-gold { --bg: var(--gold); --fg: var(--ink); }
.btn-gold:hover { --bg: #ffc23f; }
.btn-ghost { background: transparent; color: var(--bg); }
.btn-ghost:hover { background: var(--bg); color: var(--fg); }
.btn-light { --bg: #fff; --fg: var(--ink); }
.btn-ghost.btn-light { color: #fff; }
.btn-ghost.btn-light:hover { color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 236, .92);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) {
  padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--text);
  font-weight: 600; font-size: .94rem;
}

.nav a:not(.btn):hover { background: #f1e6d0; color: var(--ink); }
.nav a:not(.btn)[aria-current="page"] { background: var(--ink); color: #fff; }
.account { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.account .who { font-weight: 700; font-size: .9rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 14px; }
  .account { margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
  .brand img { height: 34px; }
}

/* ---------- home hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink); color: #f6ecda;
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 120px);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(251, 177, 24, .09) 58% 70%, transparent 70%),
    linear-gradient(115deg, transparent 0 73%, rgba(251, 177, 24, .05) 73% 80%, transparent 80%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { color: #d8c9b0; }
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--gold); }
.hero-stack { position: relative; height: 420px; }
.hero-card {
  position: absolute; width: 74%; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .08);
  text-decoration: none; transition: transform .25s;
}
.hero-card:hover { z-index: 5; transform: translateY(-6px) rotate(0deg) !important; }
.hero-card.c1 { top: 0; left: 0; transform: rotate(-4deg); z-index: 3; }
.hero-card.c2 { top: 120px; right: 0; transform: rotate(3deg); z-index: 2; }
.hero-card.c3 { top: 250px; left: 8%; transform: rotate(-1.5deg); z-index: 4; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-stack { height: 360px; }
}
@media (max-width: 520px) {
  .hero-stack { height: 300px; }
  .hero-card { width: 86%; }
  .hero-card.c2 { top: 100px; }
  .hero-card.c3 { top: 200px; left: 4%; }
}

/* game "tiles" reused in hero, grids and headers */
.tile { display: flex; align-items: center; gap: 16px; padding: 22px 24px; min-height: 120px; }
.tile-ip { background: linear-gradient(135deg, #0e1624, #1b2a44); color: #fff; }
.tile-ip .t-name { font: 800 2.1rem/1 var(--display); letter-spacing: .02em; }
.tile-ip .t-name span { color: #9fb1cc; font-weight: 600; margin-right: 6px; }
.tile-ip .t-sub { font: 700 .72rem/1 var(--body); letter-spacing: .22em; color: var(--ip-gold); margin-top: 8px; text-transform: uppercase; }
.tile-ip img { width: 58px; height: 58px; }
.tile-sd { background: #fff; }
.tile-sd img { height: 70px; width: auto; }
.tile-el { background: linear-gradient(135deg, var(--el-blue), #0b1d44); color: #fff; position: relative; overflow: hidden; }
.tile-el::after {
  content: ''; position: absolute; right: -30px; top: 0; bottom: 0; width: 140px;
  background: repeating-linear-gradient(180deg, var(--el-red) 0 14px, #fff 14px 28px); opacity: .9; transform: skewX(-18deg);
}

/* Elections 2028 wordmark (no logo yet) */
.el-mark { position: relative; z-index: 1; line-height: 1; }
.el-mark .stars { color: #fff; letter-spacing: .3em; font-size: .8rem; opacity: .9; }
.el-mark .word { display: block; font: 800 2.1rem/1 var(--display); letter-spacing: .06em; }
.el-mark .year { display: inline-block; font: 800 1.2rem/1 var(--display); background: var(--el-red); padding: 3px 10px 2px; letter-spacing: .2em; margin-top: 6px; }

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { margin: 0; }
.alt { background: #f4ecdc; border-block: 1px solid var(--line); }

.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .games-grid { grid-template-columns: 1fr; max-width: 560px; } }
.game-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.game-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(28, 21, 16, .06), 0 16px 40px rgba(28, 21, 16, .14); }
.game-card .tile { min-height: 150px; }
.game-card .tile-ip .t-sub { letter-spacing: .14em; }
.game-card .gc-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.game-card h3 { margin-bottom: .25em; }
.game-card p { color: var(--muted); }
.game-card .gc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.game-card .btn-row { margin-top: auto; }

.tag {
  display: inline-block; font: 700 .72rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 999px; background: #f1e6d0; color: var(--brown);
}
.tag-live { background: #dff1e5; color: var(--ok); }
.tag-dev { background: #fde8ea; color: var(--el-red); }

.studio { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .studio { grid-template-columns: 1fr; gap: 32px; } }
.pillars { display: grid; gap: 16px; }
.pillar { display: flex; gap: 16px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.pillar .num { font: 800 2rem/1 var(--display); color: var(--gold-deep); min-width: 38px; }
.pillar h4 { font-size: 1.25rem; margin-bottom: .2em; }
.pillar p { margin: 0; color: var(--muted); font-size: .95rem; }

/* recent threads list (home & game pages) */
.recent { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.recent li { border-top: 1px solid var(--line); }
.recent li:first-child { border-top: 0; }
.recent a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 20px; text-decoration: none; color: var(--text); }
.recent a:hover { background: #fbf3e2; }
.recent .r-title { font-weight: 700; color: var(--ink); }
.recent .r-meta { font-size: .85rem; color: var(--muted); grid-column: 1; }
.recent .r-count { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: .85rem; color: var(--muted); text-align: right; }
.empty { padding: 28px 20px; text-align: center; color: var(--muted); }

.cta-band { background: var(--gold); padding: 48px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.cta-band p { margin: 4px 0 0; color: #4a3208; }

/* ---------- game pages ---------- */
.game-hero { padding: clamp(56px, 8vw, 100px) 0; color: #fff; position: relative; overflow: hidden; }
.game-hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .game-hero .wrap { grid-template-columns: 1fr; } }
.game-hero h1 { color: #fff; }
.game-hero .lede { color: rgba(255, 255, 255, .8); }
.game-hero .eyebrow { color: rgba(255, 255, 255, .85); }
.gh-ip { background: radial-gradient(1200px 500px at 80% 0%, #22365a 0%, transparent 60%), var(--ip-navy); }
.gh-ip .eyebrow::before { background: var(--ip-gold); }
.gh-sd { background: radial-gradient(900px 500px at 85% 10%, #1d3b39 0%, transparent 60%), var(--sd-dark); }
.gh-sd .eyebrow::before { background: var(--sd-orange); }
.gh-el { background: radial-gradient(900px 500px at 85% 10%, #1f3f86 0%, transparent 60%), var(--el-blue); }
.gh-el .eyebrow::before { background: var(--el-red); }
.gh-logo-ip { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.gh-logo-ip img { width: 76px; height: 76px; }
.gh-logo-ip .t-name { font: 800 clamp(3rem, 7vw, 4.8rem)/.9 var(--display); }
.gh-logo-ip .t-name span { color: #9fb1cc; font-weight: 600; margin-right: 10px; }
.gh-logo-ip .t-sub { font: 700 .82rem/1 var(--body); letter-spacing: .26em; color: var(--ip-gold); margin-top: 10px; text-transform: uppercase; }
.gh-logo-sd { background: #fff; border-radius: var(--radius); padding: 18px 24px; display: inline-block; margin-bottom: 22px; }
.gh-logo-sd img { height: 90px; width: auto; }
.shot { border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .12); }
.shot-bar { display: flex; gap: 6px; padding: 10px 12px; background: #1a2234; }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b465e; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-top: -40px; position: relative; box-shadow: var(--shadow); }
.facts div { padding: 22px 24px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts strong { display: block; font: 800 2rem/1 var(--display); color: var(--ink); }
.facts span { font-size: .88rem; color: var(--muted); }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: #f1e6d0; color: var(--brown); }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.35rem; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }
.theme-ip .feature .ico { background: #e3e9f3; color: var(--ip-navy); }
.theme-sd .feature .ico { background: #fde6d8; color: #b8470c; }
.theme-el .feature .ico { background: #e2e8f6; color: var(--el-blue); }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }

.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ''; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--gold-deep); border-bottom: 3px solid var(--gold-deep); transform: rotate(-45deg); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel h3 { margin-bottom: .6em; }
.subforum-links { list-style: none; margin: 0 0 18px; padding: 0; }
.subforum-links li { border-top: 1px solid var(--line); }
.subforum-links a { display: block; padding: 11px 0; font-weight: 600; text-decoration: none; color: var(--ink); }
.subforum-links a:hover { color: var(--brown); }
.subforum-links small { display: block; font-weight: 400; color: var(--muted); }

.roadmap { list-style: none; padding: 0; margin: 0; position: relative; }
.roadmap::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.roadmap li { position: relative; padding: 0 0 26px 44px; }
.roadmap li::before { content: ''; position: absolute; left: 3px; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 3px solid var(--line-strong); }
.roadmap li.done::before { background: var(--el-blue); border-color: var(--el-blue); }
.roadmap li.now::before { background: var(--el-red); border-color: var(--el-red); box-shadow: 0 0 0 5px rgba(200, 16, 46, .15); }
.roadmap strong { display: block; font: 700 1.25rem/1.2 var(--display); color: var(--ink); }
.roadmap span { color: var(--muted); font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cdbda3; padding: 56px 0 32px; font-size: .94rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }
.site-footer img { height: 46px; width: auto; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font: 700 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #ecdfc6; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .legal { border-top: 1px solid #3a2d22; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #9e8c72; font-size: .85rem; }

/* ---------- prose pages (legal) ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.placeholder { background: #fff1b8; padding: 0 4px; border-radius: 3px; }
