/* ==========================================================================
   SEAL.GAMES — Design Tokens & Base Styles
   ========================================================================== */

:root {
  --color-bg: #000000;
  --color-bg-alt: #0a0a0a;
  --color-bg-elevated: #161616;
  --color-border: #2b2b2b;
  --color-text: #ffffff;
  --color-muted: #b3b3b3;
  --color-accent: #b5070a;
  --color-accent-hover: #d40c10;
  --color-accent-2: #6D6FFB;
  --color-brand-red: #b5070a;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Muli', 'Mulish', 'Segoe UI', sans-serif;

  --radius: 10px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; color: var(--color-muted); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--color-brand-red);
  color: #ffffff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: #d40c10; transform: translateY(-1px); }
.btn.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #000000;
  border-bottom: 1px solid var(--color-border);
}
.nav-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .06em;
  flex-shrink: 0;
}
.logo img { width: 84px; height: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: flex-end;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-accent); }
.nav-links .chev { position: relative; top: 1px; }
.nav-links li.has-mega { position: relative; }
.megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 8px;
  display: none;
  flex-direction: column;
  min-width: 260px;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 20px 48px rgba(0,0,0,.45);
}
.nav-links li.has-mega:hover .megamenu { display: flex; }
.megamenu a {
  text-transform: none;
  font-weight: 700;
  font-size: 16px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #111111;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}
.megamenu a .mm-subtitle {
  font-weight: 500;
  font-size: 13px;
  color: #6b6b6b;
  text-transform: none;
}
.megamenu a:hover { background: #f2f2f2; }
.nav-social {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.nav-social a { color: var(--color-text); width: 18px; height: 18px; }
.nav-social svg { width: 18px; height: 18px; }
.nav-social a:hover { color: var(--color-accent); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-bg-alt);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease;
  }
  .nav-links.open { max-height: 500px; }
  .nav-links a { display: flex; padding: 16px 24px; border-top: 1px solid var(--color-border); }
  .nav-links li.has-mega .megamenu {
    display: none;
    position: static;
    transform: none;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0 24px 8px;
  }
  .nav-links li.has-mega:hover .megamenu,
  .nav-links li.has-mega.open .megamenu { display: flex; }
  .nav-social { display: none; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  padding: 0 0 64px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.35) 100%);
  z-index: 0;
}
.hero .hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
}
.hero .eyebrow {
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
  display: block;
}
.hero h1 {
  font-size: clamp(32px, 4.8vw, 58px);
  margin: 0;
  color: #ffffff;
}
.hero .lead {
  font-size: 15px;
  line-height: 1.6;
  color: #ffffff;
}
.hero .lead p { color: #ffffff; margin: 0 0 12px; }
.hero .lead ul, .hero .lead ol { padding-left: 20px; margin: 0 0 12px; }
.hero .cta-row { display: flex; gap: 16px; }
@media (max-width: 760px) {
  .hero .hero-inner { grid-template-columns: 1fr; }
  .hero { min-height: 480px; }
}

/* ---- Section ---- */
.section { padding: 64px 0; }
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 { font-size: clamp(26px, 4vw, 36px); }

/* ---- Games portfolio (homepage showcase) ---- */
.games-portfolio {
  background: #ffffff;
  color: #0a0a0a;
  padding: 88px 0;
}
.portfolio-heading {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: #0a0a2a;
  margin-bottom: 48px;
  text-align: center;
}
.portfolio-list { display: block; }

.portfolio-featured { display: block; margin-bottom: 48px; }
.portfolio-featured img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  border-radius: 12px;
  transition: transform .25s ease;
}
.portfolio-featured:hover img { transform: scale(1.01); }
.portfolio-featured-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: #0a0a0a;
  margin-top: 16px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}
.portfolio-tile {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.portfolio-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.portfolio-tile:hover img { transform: scale(1.04); }
.portfolio-tile-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px 18px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
}
.portfolio-tile-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
}
.portfolio-tile-subtitle {
  font-size: 13px;
  color: #ffffff;
  margin-top: 2px;
}
.portfolio-item-fallback {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a1a1a, #000);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
}

/* ---- Games grid ---- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.game-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--color-accent); }
.game-card .thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #262626, #0a0a0a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  padding: 16px;
}
.game-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.game-card .info { padding: 18px 20px; }
.game-card .info h3 { font-size: 18px; margin-bottom: 4px; }
.game-card .info .subtitle {
  color: var(--color-accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}

/* ---- Game detail ---- */
.game-banner { position: relative; width: 100%; overflow: hidden; background: #000000; }
.game-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.55);
}
.game-banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
}
.game-banner-inner { position: relative; z-index: 1; }
.game-banner img {
  width: 100%;
  max-height: 60vh;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.game-info-section { padding: 56px 0; background: #ffffff; color: #0a0a0a; }
.game-info-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 800px) {
  .game-info-grid { grid-template-columns: 1fr; }
}
.game-info-main .tag {
  color: var(--color-accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .08em;
  font-size: 13px;
}
.game-info-main h1 { font-size: clamp(30px, 4.5vw, 44px); margin: 8px 0 20px; color: #0a0a0a; }
.game-info-main h3 { font-size: 18px; margin: 32px 0 16px; color: #0a0a0a; }
.game-info-main p { color: #444444; white-space: pre-line; }
.game-info-main ul, .game-info-main ol { color: #444444; padding-left: 22px; margin: 0 0 16px; }
.game-info-main li { margin-bottom: 6px; }
.game-info-main strong { color: #0a0a0a; }

.game-info-side {
  background: #f5f5f5;
  border: 1px solid #e2e2e2;
  border-radius: var(--radius);
  padding: 24px;
}
.game-icon { width: 96px; height: 96px; border-radius: 20px; object-fit: cover; margin-bottom: 20px; }
.store-btn-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000000;
  border: 1px solid #000000;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  transition: opacity .15s ease;
}
.store-btn:hover { opacity: .85; }
.store-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.meta-list { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid #e2e2e2; }
.meta-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: #333333; font-size: 14px; font-weight: 600; }
.meta-list svg { width: 18px; height: 18px; flex-shrink: 0; color: #0a0a0a; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.feature-list li {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--color-text);
  font-size: 15px;
}
.feature-list li::before { content: "\2726  "; color: var(--color-accent); }

.screenshots-section { background: #ffffff; padding: 56px 0; overflow: hidden; }
.marquee-viewport { width: 100%; overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}
.marquee-track img {
  height: 520px;
  width: auto;
  border-radius: var(--radius);
  object-fit: contain;
  background: #f0f0f0;
  border: 1px solid #e2e2e2;
  flex: 0 0 auto;
}
@media (max-width: 600px) {
  .marquee-track img { height: 360px; }
}

/* ---- Static content pages ---- */
.page-body-wrap { background: #ffffff; }
.page-body { max-width: 760px; margin: 0 auto; padding: 64px 24px; color: #222222; }
.page-body h1 { margin-bottom: 24px; color: #0a0a0a; }
.page-body p { white-space: pre-line; color: #222222; }
.page-body ul, .page-body ol { color: #222222; padding-left: 22px; }
.page-body strong { color: #0a0a0a; }
.page-body a { color: var(--color-accent); }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  padding: 56px 0 32px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.footer-grid h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; color: var(--color-muted); font-size: 14px; }
.footer-grid a { color: var(--color-muted); }
.footer-grid a:hover { color: var(--color-accent); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo img { width: 130px; }
.footer-copyright { color: var(--color-muted); font-size: 13px; line-height: 1.5; }

.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-bg-elevated);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-item > div { display: flex; flex-direction: column; }
.contact-label { font-size: 13px; color: var(--color-muted); }
.contact-item a, .contact-item span:last-child { color: var(--color-text); font-size: 15px; }
.contact-item a:hover { color: var(--color-accent); }

.footer-memberships {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.footer-memberships img { height: 72px; width: auto; opacity: .9; transition: opacity .15s ease; }
.footer-memberships a:hover img { opacity: 1; }

.footer-support {
  background: #ffffff;
  padding: 40px 0;
}
.footer-support-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 96px;
}
.footer-support-inner img { height: 160px; width: auto; }

/* ---- About section ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-grid img { border-radius: var(--radius); border: 1px solid var(--color-border); }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
}

.loading-note { text-align: center; color: var(--color-muted); padding: 40px; font-size: 14px; }

/* ---- Cookie consent banner ---- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: #0a0a0a;
  border-top: 1px solid var(--color-border);
  padding: 20px 24px;
}
.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-inner p { margin: 0; color: var(--color-muted); font-size: 14px; max-width: 700px; }
.cookie-banner-inner a { color: var(--color-accent); }
.cookie-banner-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-banner-actions .btn { padding: 10px 20px; font-size: 14px; }
@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: flex-end; }
}
