/* Moonkite Games — website styles. No external fonts, cookies or trackers. */
:root {
  --midnight: #12163A; --night: #181D4A; --twilight: #2B2F77;
  --coral: #FF5A5F; --coral-deep: #E63E4C; --moon: #FFC83D; --moon-gold: #FFC83D;
  --aqua: #FF5A5F; --cloud: #F5F7FF; --ink: #1B1F45; --muted: #5A5F86; --line: #E3E6F5;
  --radius: 20px; --max: 1120px;
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cloud); line-height: 1.65; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--coral-deep); }
a:hover { color: var(--twilight); }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(18, 22, 58, .92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--cloud); text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; }

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--cloud); text-align: center;
  background: radial-gradient(900px 520px at 50% 38%, #1E2459 0%, var(--midnight) 70%); padding: 120px 0 128px; }
.hero h1 { margin: 0 auto; max-width: 720px; }
.hero h1 img { width: min(620px, 88%); margin: 0 auto; }
.hero .tagline { font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; margin: 34px auto 8px; color: #C9CDF0; }
.hero p { color: #A9AED6; max-width: 600px; margin: 40px auto 36px; font-size: 18px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.btn { display: inline-block; font-weight: 800; text-decoration: none; padding: 14px 26px; border-radius: 999px; border: 2px solid transparent; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-deep); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; margin-left: 10px; }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.1); }

/* Sections */
section { padding: 84px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: 13px; color: var(--coral-deep); margin: 0 0 8px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin: 0 0 16px; color: var(--midnight); }
h3 { font-size: 21px; margin: 0 0 8px; color: var(--midnight); }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 36px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 30px rgba(18,22,58,.06); }
.card .icon { font-size: 14px; font-weight: 800; letter-spacing: .12em; color: var(--coral); margin-bottom: 12px; }
.game-card { padding: 0; overflow: hidden; }
.game-card .cover { aspect-ratio: 16/9; background: var(--midnight); display: grid; place-items: center; color: var(--moon); font-weight: 800; letter-spacing: .1em; }
.game-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.game-card .body { padding: 22px 24px 26px; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #FFF1D1; color: #8A5A00; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.tag.soon { background: #E3FAF9; color: #0F6E6C; }
.band { background: var(--midnight); color: var(--cloud); }
.band h2 { color: #fff; }
.band .lead { color: #C9CDF0; }
.band .card { background: var(--night); border-color: rgba(255,255,255,.08); color: var(--cloud); box-shadow: none; }
.band .card h3 { color: #fff; }
.mail { font-weight: 800; font-size: 16px; color: var(--coral-deep); text-decoration: none; overflow-wrap: anywhere; }
.band .mail { color: var(--moon); }
.mail:hover { text-decoration: underline; }

/* Legal / text pages */
.page-head { background: linear-gradient(180deg, var(--twilight), var(--midnight)); color: #fff; padding: 64px 0 56px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(32px, 5vw, 46px); line-height: 1.15; }
.page-head p { margin: 0; color: #C9CDF0; }
.prose { max-width: 780px; padding: 56px 0 80px; }
.prose h2 { font-size: 26px; margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--line); }
.prose h2:first-of-type { border-top: 0; margin-top: 8px; }
.prose h3 { margin-top: 28px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; background: #fff; border-radius: 12px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: #EEF0FB; color: var(--midnight); }
.toc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 24px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.note { background: #FFF6DE; border-left: 4px solid var(--moon-gold); padding: 14px 18px; border-radius: 10px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 12px 0; }
summary { font-weight: 800; cursor: pointer; color: var(--midnight); }
details[open] summary { margin-bottom: 8px; }

/* Footer */
.site-footer { background: #0C0F2B; color: #AEB3DA; padding: 56px 0 28px; font-size: 15px; }
.site-footer .cols { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; letter-spacing: .04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #AEB3DA; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo img { height: 40px; width: auto; margin-bottom: 14px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; }

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--midnight); padding: 12px 20px 20px; }
  .nav.open { display: flex; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
    .btn-ghost { margin: 12px 0 0; }
  .toc ol { columns: 1; }
}
