/* ============================================================
   Kiddions Mod Menu — shared stylesheet
   Palette: bg #13151a · surface #1a1d24 · line #23262e
            gold #c9a227 · text #e8e6e3 · muted #8a8d93
   ============================================================ */

:root {
  --bg: #13151a;
  --surface: #1a1d24;
  --surface-2: #1f232c;
  --line: #23262e;
  --gold: #c9a227;
  --gold-soft: #e0bd55;
  --text: #e8e6e3;
  --muted: #8a8d93;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 21, 26, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 3px; font-size: 0.95rem; }
.brand span { color: var(--gold); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 2px;
  color: var(--text); font-size: 1.25rem; line-height: 1; padding: 6px 12px; cursor: pointer;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a.nav-cta { background: var(--gold); color: var(--bg); font-weight: 700; padding: 9px 20px; border-radius: 2px; }
.nav-links a.nav-cta:hover { background: var(--gold-soft); }

/* ---------- Typography & sections ---------- */
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 18px 0 14px; }
h2 { font-size: 1.7rem; margin-bottom: 10px; }
h3 { font-size: 1.08rem; margin-bottom: 6px; }
section { padding: 56px 0; }
.kicker { color: var(--gold); text-transform: uppercase; letter-spacing: 3px; font-size: 0.72rem; font-weight: 700; }
.lead { color: var(--muted); max-width: 600px; }
.section-head { margin-bottom: 28px; }
.page-head { padding: 64px 0 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 13px 28px; border-radius: 2px; font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--gold-soft); }
.btn-ghost { border: 1px solid #3a3e48; color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-large { padding: 16px 36px; font-size: 1.05rem; }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Hero (Home) ---------- */
.hero { text-align: center; padding: 88px 0 64px; }
.hero .lead { margin: 0 auto 32px; }

/* ---------- Announcement badge ---------- */
.badge {
  display: inline-block; border: 1px solid var(--gold); color: var(--gold);
  border-radius: 999px; padding: 6px 18px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px;
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.card { background: var(--surface); border-left: 2px solid var(--gold); padding: 22px; }
.card p { color: var(--muted); font-size: 0.92rem; }
.card ul { color: var(--muted); font-size: 0.92rem; padding-left: 18px; margin-top: 6px; }

/* ---------- Steps (How it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.step { background: var(--surface); border-top: 2px solid var(--gold); padding: 22px; }
.step .num { font-family: var(--serif); color: var(--gold); font-size: 1.7rem; display: block; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Guide list (Install) ---------- */
.guide { list-style: none; counter-reset: guide; max-width: 720px; }
.guide li {
  counter-increment: guide; position: relative; margin-bottom: 12px;
  background: var(--surface); border-left: 2px solid var(--gold); padding: 20px 22px 20px 64px;
}
.guide li::before {
  content: counter(guide); position: absolute; left: 22px; top: 20px;
  font-family: var(--serif); font-size: 1.4rem; color: var(--gold);
}
.guide li strong { display: block; margin-bottom: 4px; }
.guide li p { color: var(--muted); font-size: 0.93rem; }
code {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 2px;
  padding: 1px 6px; font-size: 0.88em;
}

/* ---------- Tables ---------- */
table { width: 100%; max-width: 720px; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--gold); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 2px; }
td { color: var(--muted); }
td:first-child { color: var(--text); white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { background: var(--surface); border-left: 2px solid var(--gold); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 48px 18px 22px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 1.3rem;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 22px 18px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Download ---------- */
.version-box {
  background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--gold);
  padding: 34px; max-width: 560px; margin: 0 auto; text-align: center;
}
.version-box .version { font-family: var(--serif); font-size: 2.2rem; }
.version-box .updated { color: var(--muted); font-size: 0.85rem; margin: 6px 0 24px; }

/* ---------- Notice box ---------- */
.notice {
  background: var(--surface); border-left: 2px solid var(--gold); padding: 18px 22px;
  color: var(--muted); font-size: 0.93rem; max-width: 720px; margin-top: 28px;
}
.notice strong { color: var(--text); }

/* ---------- Screenshot placeholder ---------- */
.shot {
  background: var(--surface-2); border: 1px dashed #3a3e48; color: var(--muted);
  font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
  text-align: center; min-height: 220px; padding: 20px; margin-top: 18px; max-width: 720px;
}
img.shot { width: auto; min-height: 0; padding: 0; border-style: solid; }
.shot-row { display: flex; gap: 14px; max-width: 720px; margin-top: 18px; }
.shot-row img {
  flex: 1; width: 50%; min-width: 0; height: 220px; object-fit: cover;
  border: 1px solid #3a3e48; background: var(--surface-2);
}
@media (max-width: 600px) {
  .shot-row { flex-direction: column; }
  .shot-row img { width: 100%; height: auto; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; margin-top: 40px; text-align: center; }
.footer-links { font-size: 0.88rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.disclaimer { color: #5a5e66; font-size: 0.8rem; margin-top: 12px; }

/* ---------- Menu demo ---------- */
.demo-grid { display: grid; grid-template-columns: 400px 1fr; gap: 24px; align-items: start; }
.menu-sim {
  background: #16344f; border: 1px solid #0d2235; border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); user-select: none; outline: none;
}
.menu-sim:focus { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--gold); }
.menu-sim-header {
  background: #0f2438; color: #f4d35e; text-align: center; font-weight: 700;
  font-size: 0.92rem; padding: 10px 14px; border-bottom: 2px solid #f4d35e;
  border-radius: 4px 4px 0 0;
}
.menu-sim ul { list-style: none; max-height: 480px; overflow-y: auto; padding: 6px 0; }
.menu-sim li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 7px 16px; color: #e8eef4; font-size: 0.9rem; cursor: pointer;
}
.menu-sim li:hover { background: rgba(244, 211, 94, 0.12); }
.menu-sim li.selected { background: rgba(244, 211, 94, 0.18); box-shadow: inset 2px 0 0 #f4d35e; color: #fff; }
.menu-sim li .meta { color: #f4d35e; white-space: nowrap; font-size: 0.85rem; }
.menu-sim li.back { color: #9db8cc; font-style: italic; }
.demo-desc { background: var(--surface); border-left: 2px solid var(--gold); padding: 26px; min-height: 280px; position: sticky; top: 84px; }
.demo-desc .type-chip {
  display: inline-block; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--gold); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
  padding: 3px 12px; border-radius: 999px; margin-bottom: 12px;
}
.demo-desc h3 { font-size: 1.25rem; }
.demo-desc p { color: var(--muted); margin-top: 8px; }
.demo-desc .state { margin-top: 14px; font-size: 0.9rem; color: var(--gold); }
.demo-hint { margin-top: 14px; color: #5a5e66; font-size: 0.8rem; }
@media (max-width: 860px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-desc { position: static; min-height: 0; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 0; }
  .nav-links a.nav-cta { display: block; text-align: center; margin-top: 6px; }
  .hero { padding: 60px 0 48px; }
  section { padding: 40px 0; }
}
