:root {
  --navy: #14324a;
  --navy-2: #1d4663;
  --sea: #3f8fb0;
  --sea-light: #d9edf3;
  --sand: #fbf6ec;
  --sand-2: #f3ead7;
  --amber: #e9a23b;
  --amber-dark: #b8741b;
  --ink: #1f2a33;
  --muted: #5c6b76;
  --line: #e3d9c4;
  --radius: 14px;
  --wrap: 1080px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; }
img, svg { max-width: 100%; }
a { color: var(--navy-2); text-underline-offset: 2px; }
a:hover { color: var(--amber-dark); }
h1, h2, h3 { line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 .6em; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }
.muted { color: var(--muted); font-size: .95em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--navy); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: .01em; }
.brand:hover { color: #ffd27a; }
.brand-mark { background: var(--sand); border-radius: 10px; padding: 2px; }
.site-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.site-nav a { color: #dbe8f0; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--amber); }

/* Buttons */
.button { display: inline-block; background: var(--amber); color: var(--navy); font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--amber); }
.button:hover { background: #f2b65c; color: var(--navy); }
.button-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.button-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 70%, #2b6283 100%); color: #e8f1f6; padding: 48px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.hero h1 { color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: #ffd27a; margin: 0 0 12px; font-weight: 700; }
.lead { font-size: 1.12rem; }
.hero .lead { color: #d6e5ee; max-width: 36em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-art svg { width: 100%; height: auto; display: block; border-radius: 0 0 24px 24px; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--sand-2); }
.section-intro { color: var(--muted); max-width: 44em; margin: 0 0 28px; font-size: 1.05rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; border-top: 4px solid var(--sea); }
.feature p { margin: 0; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 6px 20px rgba(20,50,74,.06); }
.info-card h2 { font-size: 1.25rem; }

/* Games */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.game-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.game-art { aspect-ratio: 16 / 9; background: linear-gradient(160deg, var(--sea-light), #b9dbe7); display: flex; align-items: center; justify-content: center; }
.game-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-art-placeholder { opacity: .85; }
.game-body { padding: 18px 20px 22px; }
.game-body p { margin: 0 0 10px; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--navy); background: #ffe7b8; border-radius: 999px; padding: 3px 12px; margin-bottom: 10px; }

/* Pages & legal */
.page { padding-top: 44px; padding-bottom: 64px; }
.legal { padding-top: 44px; padding-bottom: 64px; max-width: 820px; }
.legal h2 { margin-top: 2em; padding-top: .4em; border-top: 1px solid var(--line); }
.legal h3 { margin-top: 1.4em; }
.legal li { margin-bottom: .35em; }
.legal-meta { color: var(--muted); margin-top: -.2em; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 22px; margin: 24px 0; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; }
address { font-style: normal; }
.contact-block { background: #fff; border-left: 4px solid var(--amber); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; }

.contact-list { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px; }
.contact-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row dt { font-weight: 700; color: var(--navy); }
.contact-row dd { margin: 0; overflow-wrap: anywhere; }
.page-404 { text-align: center; }
.page-404 .lead { max-width: 30em; margin: 0 auto 24px; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d9e3; padding: 40px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffd27a; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; }
.footer-name { color: #fff; font-weight: 700; margin: 0 0 6px; }
.footer-address { margin: 0 0 6px; }
.footer-heading { color: #fff; font-weight: 700; margin: 0 0 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 16px; }
.footer-bottom p { margin: 4px 0; }
.site-footer .muted { color: #8fa9b9; font-size: .85rem; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hero { padding: 32px 0 40px; }
  .hero-inner, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 260px; margin: 0 auto; order: -1; }
  .section { padding: 40px 0; }
  .toc ol { columns: 1; }
  .contact-row { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .brand { font-size: 1rem; }
  .site-nav { gap: 4px 14px; font-size: .95rem; }
}
