/* BluePlop Games – modern responsive static site */
:root {
  --bg: #f4f7fa; --card: #fff; --text: #1b2733; --muted: #5d6c7b; --line: #e1e8ef;
  --brand: #2a4aa0; --accent: #1f8fc0; --hero1: #0d2a4d; --hero2: #1c6a9c;
  --radius: 16px; --shadow: 0 6px 24px rgba(13, 42, 77, .08);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e141b; --card: #17202a; --text: #e6edf3; --muted: #9aa9b8; --line: #263340; --brand: #7aa2ff; --accent: #5cc0ee; --shadow: none; }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span b { color: var(--brand); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--text); font-weight: 600; }
nav a:hover, nav a[aria-current] { background: var(--line); text-decoration: none; }
nav li { position: relative; }
nav li ul { display: none; position: absolute; right: 0; top: 100%; min-width: 260px; flex-direction: column; align-items: stretch;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
nav li:hover > ul, nav li:focus-within > ul { display: flex; }
nav li ul a { display: flex; align-items: center; gap: 10px; border-radius: 8px; }
nav li ul img { width: 28px; height: 28px; border-radius: 6px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px;
  color: var(--text); font-size: 22px; cursor: pointer; }
@media (max-width: 720px) {
  .menu-btn { display: block; }
  nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line); display: none; }
  nav.open { display: block; }
  nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  nav li ul { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
}

/* hero */
.hero { color: #fff; background: radial-gradient(1200px 500px at 80% -10%, var(--hero2), transparent 60%), linear-gradient(160deg, var(--hero1), #12395f); }
.hero.sewl { --hero1: #0b2238; --hero2: #5aa3c9; }
.hero .wrap { padding: 56px 0 60px; display: flex; gap: 32px; align-items: center; }
.hero img.icon { width: 140px; height: 140px; border-radius: 28px; box-shadow: 0 10px 30px rgba(0,0,0,.35); flex: none; }
.hero h1 { margin: 0 0 6px; font-size: clamp(28px, 5vw, 46px); line-height: 1.15; }
.hero .meta { opacity: .75; margin: 0 0 12px; font-size: 14px; }
.hero p.lead { font-size: clamp(16px, 2.2vw, 20px); margin: 0 0 22px; max-width: 620px; opacity: .95; }
.hero.home .wrap { flex-direction: column; text-align: center; padding: 72px 0; }
.hero.home img.logo { width: 120px; height: 120px; background: #fff; border-radius: 50%; padding: 8px; }
.hero.home p.lead { margin-inline: auto; }
@media (max-width: 640px) { .hero .wrap:not(.x) { flex-direction: column; text-align: center; } .hero img.icon { width: 110px; height: 110px; } }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700;
  background: #fff; color: #0d2a4d; border: 2px solid #fff; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn.solid { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.solid { color: #0e141b; } }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btns { justify-content: inherit; }
@media (max-width: 640px) { .hero .btns { justify-content: center; } }

/* sections / cards */
main { padding: 36px 0 56px; }
section { margin-bottom: 28px; }
h2 { font-size: 26px; margin: 0 0 14px; }
h3 { margin: 18px 0 6px; font-size: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p:first-child { margin-top: 0; } .card p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); font-size: 14px; }

.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.game-card { display: flex; flex-direction: column; gap: 14px; }
.game-card .top { display: flex; gap: 16px; align-items: center; }
.game-card img { width: 88px; height: 88px; border-radius: 20px; flex: none; }
.game-card h2 { margin: 0; font-size: 22px; } .game-card h2 a { color: var(--text); }
.game-card .btns { margin-top: auto; }

/* screenshots */
.shots { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.shots a { flex: 0 0 auto; scroll-snap-align: start; }
.shots img { height: 340px; width: auto; border-radius: 14px; border: 1px solid var(--line); display: block; cursor: zoom-in; }
@media (max-width: 640px) { .shots img { height: 260px; } }

.downloads { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 16px; }
.dl { text-align: center; max-width: 180px; font-size: 14px; }
.dl img { display: block; margin: 0 auto 8px; background: #fff; padding: 6px; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 720px) { .dl img { display: none; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 14px 0; }
.item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.item img { flex: none; max-width: 64px; }
.ship { text-align: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.ref-img { display: block; margin: 12px 0; border-radius: 10px; }

details { border-bottom: 1px solid var(--line); padding: 12px 0; }
details:last-of-type { border-bottom: 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; }

.news-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border: 0; }
.news-item time { color: var(--muted); font-size: 13px; display: block; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }

footer { border-top: 1px solid var(--line); padding: 24px 0; text-align: center; color: var(--muted); font-size: 14px; }

/* lightbox */
dialog#lb { border: 0; padding: 12px; background: var(--card); border-radius: 14px; max-width: 96vw; max-height: 96vh; color: var(--text); }
dialog#lb::backdrop { background: rgba(0,0,0,.82); }
dialog#lb img { display: block; max-width: calc(96vw - 24px); max-height: calc(96vh - 80px); margin: 0 auto; border-radius: 8px; }
dialog#lb .bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }
dialog#lb button { font: inherit; cursor: pointer; border: 0; background: var(--brand); color: #fff; padding: 6px 14px; border-radius: 999px; }

/* contact form */
.form { display: grid; gap: 14px; margin: 18px 0; max-width: 560px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form input, .form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--text); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form button { justify-self: start; cursor: pointer; font: inherit; font-weight: 700; }
.form button:disabled { opacity: .6; cursor: wait; }

/* privacy policy */
.policy { scroll-margin-top: 80px; }
.policy h1 { font-size: 28px; margin: 0 0 4px; }
.policy h2 { font-size: 20px; margin: 28px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.policy .meta { color: var(--muted); font-size: 14px; }
.policy code { background: var(--bg); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.lang-switch { text-align: center; font-weight: 600; }
