/* ShatterSea — the design system from the approved mocks:
   near-black navy, electric-blue accent, stencil display type,
   skewed action buttons, hex feature badges, thin panel borders. */

/* Self-hosted fonts (OFL): Anton = the heavy display face the mock is
   built on; Inter (variable) = body/nav. Latin subsets only. */
@font-face {
  font-family: 'Anton';
  src: url('fonts/anton-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Bebas Neue';
  src: url('fonts/bebas-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #070C12;
  --panel: #0C141D;
  --panel2: #101B26;
  --line: #1D3140;
  --accent: #2EB6F0;
  --accent-soft: #7FD4FF;
  --text: #EAF2F7;
  --dim: #8CA3B5;
  --danger: #E4604F;
  --display: 'Anton', 'Impact', 'Arial Narrow Bold', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, .display {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
}

/* ---- top bar ---- */
.topbar {
  display: flex; align-items: center; gap: 28px;
  padding: 10px 28px;
  background: linear-gradient(180deg, rgba(7,12,18,.95), rgba(7,12,18,.82));
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.brand img { height: 62px; width: auto; }
.mainnav { display: flex; gap: 26px; flex: 1; }
.mainnav a {
  color: var(--text);
  font-family: var(--display);
  font-size: 17px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.mainnav a:hover { color: var(--accent-soft); }
.mainnav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.mainnav .navuser { color: var(--dim); font-size: 14px; text-transform: none; letter-spacing: 0; font-family: inherit; }
.navtoggle, .hamburger { display: none; }

/* ---- buttons (skewed, like the mock) ---- */
.btn {
  display: inline-block;
  font-family: var(--display); text-transform: uppercase; letter-spacing: 1.5px;
  font-size: 17px; padding: 12px 30px;
  transform: skewX(-8deg);
  border: 1px solid var(--line); color: var(--text);
  background: var(--panel2); cursor: pointer;
}
.btn > * , .btn { text-align: center; }
.btn span, .btn b, .btn i { display: inline-block; transform: skewX(8deg); }
.btn:hover { border-color: var(--accent); color: var(--accent-soft); }
.btn-accent {
  background: var(--accent); color: #06222F; border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-soft); color: #06222F; }
.btn-ghost { background: transparent; border: 1px solid var(--text); }
.chev { font-size: 20px; margin-left: 6px; }

/* ---- hero: three backgrounds crossfading on an 18s cycle ---- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex; align-items: center;
  background: #0A1420; /* the dark sea while the first slide fades in */
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0; z-index: 0;
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroFade 18s infinite;
}
@keyframes heroFade {
  0% { opacity: 0; }
  7% { opacity: 1; }
  33% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(7,12,18,.96) 22%, rgba(7,12,18,.55) 48%, rgba(7,12,18,.15) 75%);
}
.hero-inner { position: relative; z-index: 2; padding: 60px 6vw; max-width: 640px; }
.hero h1 {
  /* Bebas Neue (user pick) — taller/narrower than Anton, so it runs a
     touch bigger with tighter leading to hold the same presence. */
  font-family: 'Bebas Neue', 'Anton', 'Impact', sans-serif;
  font-size: clamp(46px, 6.2vw, 78px);
  line-height: 0.98;
  letter-spacing: 2px;
  /* Bebas ships one weight — the stroke fattens it into a true bold. */
  -webkit-text-stroke: 1.6px currentColor;
  transform: skewX(-6deg);
  transform-origin: left bottom;
  text-shadow: 0 4px 18px rgba(0,0,0,.6);
}
.hero h1 .accent { color: var(--accent); }
.hero p { margin: 18px 0 26px; color: var(--text); max-width: 420px; font-size: 17px; }
.hero .actions { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* Image buttons from the asset sheet. */
.imgbtn { display: inline-block; transition: transform .12s, filter .12s; }
.imgbtn img { height: 72px; width: auto; }
.imgbtn:hover { transform: translateY(-2px); filter: brightness(1.15); }

/* ---- news ---- */
.section { padding: 44px 6vw; }
.section-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 20px; }
.section-head h2 { font-size: 26px; letter-spacing: 2px; }
.section-head a { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.newsgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.newscard {
  display: flex; gap: 16px; padding: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text);
}
.newscard:hover { border-color: var(--accent); }
.newscard img { width: 128px; height: 96px; object-fit: cover; border-radius: 5px; flex: 0 0 128px; }
.newscard .tag { color: var(--accent); font-size: 11px; letter-spacing: 2px; font-family: var(--display); }
.newscard h3 { font-size: 17px; margin: 2px 0 4px; }
.newscard p { color: var(--dim); font-size: 13px; }
.newscard .date { color: var(--dim); font-size: 11px; margin-top: 8px; letter-spacing: 1px; }

/* ---- generic panel pages (login, account) ---- */
.panelpage { max-width: 460px; margin: 60px auto; padding: 0 20px; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 30px;
}
.panel h1 { font-size: 30px; letter-spacing: 2px; margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px;
  background: #08101A; color: var(--text);
  border: 1px solid var(--line); border-radius: 6px; font-size: 15px;
}
.field input:focus { outline: none; border-color: var(--accent); }
.banner { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.banner-error { background: rgba(228,96,79,.12); border: 1px solid var(--danger); color: #F1907F; }
.banner-ok { background: rgba(46,182,240,.1); border: 1px solid var(--accent); color: var(--accent-soft); }
.kv { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--dim); }

/* ---- skins ---- */
.skingrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.skincard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.skincard:hover { border-color: var(--accent); }
.swatch { height: 90px; border-radius: 6px; border: 1px solid var(--line); }
.skincard h3 { font-size: 17px; letter-spacing: 1px; }
.skincard .kind { color: var(--dim); font-size: 12px; }
.price { color: var(--accent); font-family: var(--display); font-size: 18px; letter-spacing: 1px; }
.owned { color: var(--accent-soft); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; font-family: var(--display); }
.credits-pill {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--panel2); border: 1px solid var(--accent);
  color: var(--accent-soft); font-family: var(--display); letter-spacing: 1px;
}

/* ---- download page (M-WEBDL) ---- */
.chips { display: flex; gap: 26px; flex-wrap: wrap; margin: 20px 0 6px; }
.chip {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--display); letter-spacing: 2px; text-transform: uppercase;
  font-size: 13px; color: var(--text);
}
.chip svg { width: 20px; height: 20px; fill: var(--accent); }
.platgrid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 26px;
}
.platcard {
  background: #050F17; /* the sheet's card navy — icon crops blend in */
  border: 1px solid var(--line); border-radius: 10px;
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
}
.platcard:hover { border-color: var(--accent); }
.plathead { display: flex; gap: 14px; align-items: flex-start; }
.plathead img { width: 58px; height: 58px; object-fit: contain; flex: 0 0 58px; border-radius: 8px; }
.plathead h3 { font-size: 19px; letter-spacing: 1px; color: var(--accent); }
.plathead p { font-size: 13px; color: var(--text); margin-top: 4px; }
.platsub { text-align: center; font-size: 13px; color: var(--accent-soft); margin-top: auto; }
.platbtn { font-size: 14px; padding: 10px 8px; width: 100%; }
.platbtn-off { opacity: .55; cursor: default; }
.platbtn-off:hover { border-color: var(--text); color: var(--text); }
.reqstrip {
  display: flex; gap: 26px; flex-wrap: wrap; align-items: center;
  margin-top: 26px; padding: 18px 22px;
  background: #050F17; border: 1px solid var(--line); border-radius: 10px;
}
.req { font-size: 13px; color: var(--text); }
.req .k {
  display: block; font-family: var(--display); letter-spacing: 2px;
  color: var(--accent); font-size: 12px; text-transform: uppercase;
}
.reqhelp { margin-left: auto; display: flex; gap: 12px; align-items: center; font-size: 13px; flex-wrap: wrap; }

/* ---- footer + mobile tab bar ---- */
.sitefooter { padding: 34px 6vw 90px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.legallinks { margin-top: 10px; }
.legallinks a { color: var(--dim); }
.legallinks a:hover { color: var(--accent-soft); }
.dim { color: var(--dim); }

/* ---- legal document pages ---- */
.docpage { max-width: 820px; }
.docpage h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: 2px; margin-bottom: 14px; }
.docpage h2 {
  font-size: 19px; letter-spacing: 1.5px; color: var(--accent);
  margin: 30px 0 10px; padding-top: 14px; border-top: 1px solid var(--line);
}
.docpage p { margin: 0 0 12px; font-size: 15px; color: var(--text); }
.docpage ul { margin: 0 0 14px 22px; }
.docpage li { font-size: 15px; margin-bottom: 6px; }
.tabbar { display: none; }

/* ---- mobile (the second mock) ---- */
@media (max-width: 900px) {
  .topbar { gap: 14px; padding: 8px 16px; }
  .brand img { height: 48px; }
  .playnow { display: none; }
  .hamburger {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
    padding: 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  }
  .hamburger span { width: 22px; height: 2px; background: var(--text); }
  .mainnav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--panel); border-bottom: 1px solid var(--line);
  }
  .mainnav a { padding: 15px 22px; border-bottom: 1px solid var(--line); }
  .navtoggle:checked ~ .mainnav { display: flex; }
  .hero { min-height: 480px; align-items: flex-end; }
  .hero::before { background: linear-gradient(0deg, rgba(7,12,18,.97) 18%, rgba(7,12,18,.4) 55%, rgba(7,12,18,.12)); }
  .hero-inner { padding: 40px 22px; }
  .imgbtn img { height: 58px; }
  .section { padding: 32px 16px; }
  .newsgrid { grid-template-columns: 1fr; }
  .platgrid { grid-template-columns: 1fr 1fr; }
  .reqhelp { margin-left: 0; }
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: rgba(7,12,18,.97); border-top: 1px solid var(--line);
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 9px 0 10px; color: var(--dim);
    font-family: var(--display); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  }
  .tabbar svg { width: 22px; height: 22px; fill: currentColor; }
  .tabbar a.active { color: var(--accent); }
}

/* Trailer modal (index.php #trailer): opened by the Watch trailer button; the video is served from the content CDN */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 8, 12, .88); }
.modal-box { position: relative; width: min(1100px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal-box video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; }
.modal-close { position: absolute; top: -18px; right: -18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }
.modal-close:hover, .modal-close:focus { color: var(--accent); border-color: var(--accent); outline: none; }
.modal-foot { margin-top: 8px; text-align: right; font-size: 13px; }
.modal-foot a { color: var(--dim); }
.modal-foot a:hover { color: var(--accent); }
body.modal-open { overflow: hidden; }

/* ---- front page sections (index.php) ---- */

/* the accent half of a section heading */
.section-head h2 .accent { color: var(--accent); }

/* ---- front page: numbers band ---- */
.statsband {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  margin: 40px 6vw 0;
}
.stat { background: var(--panel); padding: 22px 20px; text-align: center; }
.stat b {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: clamp(30px, 3.4vw, 42px); letter-spacing: 2px; color: var(--accent);
  line-height: 1.05;
}
.stat span {
  display: block; margin-top: 4px; color: var(--dim);
  font-family: var(--display); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
}

/* ---- front page: six feature cards (hairline band, like .features) ---- */
.featgrid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.featcard { background: var(--panel); padding: 26px 24px; }
.fcicon { width: 78px; height: auto; margin-bottom: 12px; }
.featcard h3 { font-size: 19px; letter-spacing: 1px; }
.featcard h3 .accent { color: var(--accent); }
.featcard p { color: var(--dim); font-size: 14px; margin-top: 8px; }

/* ---- front page: one world explainer ---- */
.explainer .exlead { max-width: 780px; font-size: 16px; margin-bottom: 22px; }
.exgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.excard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 24px;
}
.excard h3 { font-size: 17px; letter-spacing: 1px; }
.excard h3 .accent { color: var(--accent); }
.excard p { color: var(--dim); font-size: 14px; margin-top: 8px; }

/* ---- front page: play your way strip ---- */
.waystrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.way {
  background: var(--panel2); border: 1px solid var(--line);
  border-top: 2px solid var(--accent); border-radius: 0 0 10px 10px;
  padding: 22px 24px;
}
.way h3 { font-size: 18px; letter-spacing: 1px; }
.way p { color: var(--dim); font-size: 14px; margin-top: 10px; }
.glyphrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.glyph {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--accent-soft);
  /* not var(--display): the Anton latin subset carries no PlayStation shapes,
     so the letters and the shapes would come from two different fonts. */
  font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Segoe UI', system-ui, sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 0;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* ---- front page: closing call to action ---- */
.closing {
  padding: 52px 6vw; text-align: center; background: var(--panel);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.closing h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: 2px; }
.closing h2 .accent { color: var(--accent); }
.closing p { color: var(--dim); max-width: 520px; margin: 12px auto 22px; }
.closing .closenote { font-size: 13px; margin: 18px auto 0; }

/* ---- news card bullet points (news.php) ---- */
/* a deep link from the home page (news.php#slug) must clear the sticky topbar */
.newscard[id] { scroll-margin-top: 96px; }
.newscard .points { list-style: none; margin: 10px 0 0; }
.newscard .points li {
  position: relative; padding-left: 16px; margin-bottom: 5px;
  color: var(--text); font-size: 13px; line-height: 1.5;
}
.newscard .points li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; background: var(--accent); transform: skewX(-8deg);
}
/* the news page is a dated feed — the date scans with the tag, not after six bullets */
.newscard .newshead { display: flex; align-items: baseline; gap: 12px; }
.newscard .newshead .date { margin-top: 0; }

@media (max-width: 1200px) {
  .featgrid { grid-template-columns: repeat(2, 1fr); }
  /* the three-up home grid leaves only ~110px of text beside a 128px thumbnail
     at these widths, so the teaser cards stack. index.php renders them as <a>
     and news.php as <div>, so this never touches the wide news-page cards. */
  a.newscard { flex-direction: column; }
  a.newscard img { width: 100%; height: 150px; flex: 0 0 auto; }
}
@media (max-width: 900px) {
  .statsband { grid-template-columns: 1fr 1fr; margin: 26px 16px 0; }
  .featgrid { grid-template-columns: 1fr; }
  .exgrid { grid-template-columns: 1fr; }
  .waystrip { grid-template-columns: 1fr; }
  .closing { padding: 40px 16px; }
}
/* On a phone the 128px thumbnail leaves ~170px for a card carrying 3-6 bullet
   points, so below this width the card stacks instead of sitting side by side. */
@media (max-width: 620px) {
  .newscard { flex-direction: column; }
  .newscard img { width: 100%; height: 150px; flex: 0 0 auto; }
}
