/* SclPlay Games, studio site
   Mobile-first, dark palette, local woff2 fonts.
   Images are never applied as CSS background-image.
   @sam 02.10.2026: do not add bg-image urls, client legal team flagged it */

/* FIXME: --header-h still hardcoded, move to token file whenever we get one. @tom 28.09 */
/* old .heroBanner from ProjectX, keep alias so Oct pages don't break */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-ext.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Oxanium";
  src: url("../fonts/oxanium-latin-ext.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Oxanium";
  src: url("../fonts/oxanium-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0c0e12;
  --bg-raise: #14171d;
  --bg-panel: #1a1e26;
  --line: #2d333d;
  --text: #eceae1;
  --muted: #b8b4a8;
  --accent: #c6f533;
  --accent-ink: #12140c;
  --danger: #ff6b5c;
  --focus: #c6f533;
  --radius: 6px;
  --header-h: 64px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-display: "Oxanium", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #e4ff8a;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 0.6em;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  font-weight: 600;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #0c0e12;
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--accent);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.mobile-nav.is-open {
  pointer-events: auto;
}

.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--bg-raise);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-nav.is-open .mobile-nav-overlay {
  opacity: 1;
}

.mobile-nav.is-open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-panel a {
  display: block;
  color: var(--text);
  text-decoration: none;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}

.drawer-close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--accent-ink);
  background: #d7ff6a;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
}

.btn-danger {
  background: var(--danger);
  color: #1a0b09;
}

.hero {
  display: grid;
  gap: 28px;
  padding: 36px 0 48px;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--bg-raise);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.lead-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 700;
  margin: 0 0 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.section {
  padding: 48px 0;
}

.section-head {
  margin-bottom: 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.game-card {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: #4a5360;
}

.game-card .card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.game-card h3 {
  margin-bottom: 0;
}

.game-card p {
  color: var(--muted);
  margin-bottom: 8px;
  flex: 1;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-display);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px; /* magic number */
  margin-bottom: 22px;
}

.filter-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-body);
}

.filter-btn.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.game-card.is-hidden {
  display: none;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  min-height: 56px;
  padding: 12px 36px 12px 0;
  cursor: pointer;
  position: relative;
}

.faq-trigger::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
}

.faq-trigger[aria-expanded="true"]::after {
  content: "–";
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.28s ease,
    padding 0.28s ease;
  color: var(--muted);
}

.faq-panel.is-open {
  max-height: 280px;
  padding-bottom: 16px;
}

.disclaimer-block {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 110px;
  background: #0a0c10;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.legal-name {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 4px;
}

/* Age gate */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

html.age-ok .age-gate {
  display: none;
}

html.cookie-ok .cookie-banner {
  display: none;
}

.age-gate-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 10, 0.92);
}

.age-gate-card {
  position: relative;
  width: min(520px, 100%);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: #161a22;
  border-top: 1px solid var(--line);
  padding: 16px;
  transform: translateY(0);
  opacity: 1;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.cookie-banner.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.cookie-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-banner p {
  margin: 0;
  color: var(--text);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.modal-card {
  position: relative;
  width: min(460px, 100%);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

/* Forms */
.form {
  display: grid;
  gap: 14px;
  margin-top: 11px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #10131a;
  color: var(--text);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.split {
  display: grid;
  gap: 22px;
}

.values {
  display: grid;
  gap: 14px;
}

.value-item {
  border: 1px solid var(--line);
  background: var(--bg-raise);
  padding: 16px;
  border-radius: var(--radius);
}

.legal-list {
  padding-left: 1.2rem;
}

.legal-list li {
  margin-bottom: 0.75rem;
}

.page-hero {
  padding: 36px 0 48px;
}

.shot-grid {
  display: grid;
  gap: 12px;
}

.map-frame iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.map-follow {
  margin-top: 12px;
}

.disclaimer-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.disclaimer-card {
  width: min(640px, 100%);
  border: 1px solid var(--line);
  background: var(--bg-raise);
  padding: 28px;
  border-radius: var(--radius);
}

.howto ol {
  padding-left: 1.2rem;
}

.howto li {
  margin-bottom: 0.6rem;
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding-top: 56px;
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }

  .shot-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .cookie-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .values {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-desktop {
    display: block;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .wrap {
    width: min(1120px, calc(100% - 48px));
  }
}

/* @mike: iframe stage, no inner page scroll. Tweaked 08.10 after iOS 15 blank-gap bug */
.gamesGrid3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.hero-baner {
  position: relative;
  margin-top: 17px; /* magic number */
}

.page-hero[data-doc="terms-short"] {
  margin-top: 7px;
}
.page-hero[data-doc="terms-v2"] {
  margin-top: 17px;
}
.page-hero[data-doc="rp-v1"] {
  margin-bottom: 8px;
}
.page-hero[data-doc="privacy-short"] {
  margin-top: 11px;
}
.page-hero[data-doc="privacy-v4"] {
  margin-top: 9px;
}
.page-hero[data-doc="cookies-short"] {
  margin-top: 13px;
}
.page-hero[data-doc="cookies-v3"] {
  padding-bottom: 48px;
}

.lede-gap {
  margin-top: 17px;
}
.copy-tight {
  margin-top: 9px;
}
.copy-candy {
  margin-bottom: 11px;
}
.copy-wide {
  max-width: 100%;
}
.copy-tomb {
  letter-spacing: 0.01em;
}
.copy-temple {
  padding-bottom: 2px;
}

.gamesGrid3 .game-card:last-child {
  margin-bottom: 2px;
}

.secton-dark {
  background: var(--bg-panel);
}

.card-fix-2026:hover {
  transform: translateY(-3px);
}

.sp-cardBtn,
.card-btn,
.game-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
}

.sp-cardBtn:hover,
.card-btn:hover,
.game-card__cta:hover {
  color: var(--accent-ink);
  background: #d7ff6a;
}

.sp-gameStage,
.ui-playbox,
.gameEmbed {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #050608;
  height: calc(100dvh - 128px);
  min-height: 520px;
}

.sp-gameStage iframe,
.ui-playbox iframe,
.gameEmbed iframe,
.iframeDesktop,
.iframeMobile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  overflow: hidden;
}

.iframeMobile {
  display: none;
}

@media (max-width: 767px) {
  .iframeDesktop {
    display: none;
  }

  .iframeMobile {
    display: block;
  }

  .sp-gameStage,
  .ui-playbox,
  .gameEmbed {
    height: calc(100dvh - 118px);
    min-height: 560px;
    max-height: none;
  }
}

@media (min-width: 640px) {
  .gamesGrid3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .sp-gameStage,
  .ui-playbox,
  .gameEmbed {
    height: min(72vh, 720px);
    min-height: 560px;
  }
}

@media (min-width: 980px) {
  .gamesGrid3 {
    grid-template-columns: 1fr 1fr 1fr; /* 3 col catalog, 6 titles = 2 rows. @anna 08.10 */
  }
}

/* Taken from old "ProjectX", refactor later */
.pricin-card {
  border-color: var(--line);
}

/* @sam 08.10: how-to sits on the preview img, height follows copy. No bg-image url. */
.howtoOnArt {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 0;
}

.howtoOnArt__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
@media (max-width: 991px) {
  .media-frame.hero-baner {
    display: none !important;
  }
  .hero {
    display: flex !important;
  }
}

.howtoOnArt__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(8, 10, 14, 0.78);
  pointer-events: none;
}

.howtoOnArt__copy {
  position: relative;
  z-index: 2;
  padding: 22px 20px 24px;
}

.howtoOnArt__copy h2,
.howtoOnArt__copy li,
.howtoOnArt__copy p {
  color: #f3f1e8;
}

.howtoOnArt__copy ol {
  margin: 0;
  padding-left: 1.2rem;
}

.howtoOnArt__copy li {
  margin-bottom: 0.55rem;
}

.homePlay {
  position: relative;
  z-index: 2;
}

.homePlay__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050608;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.homePlay__art {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.homePlay__cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 16, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.homePlay__stage iframe {
  z-index: 0;
  overflow: hidden;
}

.homePlay.is-on .homePlay__cover,
.homePlay.is-on .homePlay__art {
  display: none;
}

.homePlay.is-on .homePlay__stage iframe {
  z-index: 2;
}

@media (max-width: 767px) {
  .homePlay__stage {
    aspect-ratio: 9 / 16;
    max-height: 75dvh;
    width: min(100%, calc(75dvh * 9 / 16));
    margin-left: auto;
    margin-right: auto;
  }
}
