/* ClariyoPlayStudio.games — editorial shell (2026) */
:root {
  --bg0: #07060d;
  --bg1: #12101c;
  --panel: rgba(24, 20, 38, 0.72);
  --stroke: rgba(201, 162, 39, 0.28);
  --text: #efeaf7;
  --muted: #a89fc4;
  --gold: #d4af37;
  --gold-dim: #9a7b2c;
  --violet: #8b5cf6;
  --violet-dim: #5b3bb0;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(139, 92, 246, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(212, 175, 55, 0.1), transparent 50%),
    linear-gradient(165deg, var(--bg0), #0c0a14 40%, var(--bg1));
  min-height: 100vh;
}

html:not(.age-ok) body {
  overflow: hidden;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #f0d875;
}

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

.contain-img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7, 6, 13, 0.92), rgba(7, 6, 13, 0.65));
  border-bottom: 1px solid var(--stroke);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  object-fit: contain;
  background: rgba(18, 16, 28, 0.9);
}

.brand__text {
  font-size: 1.05rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--gold);
}

.hero-pad {
  padding: 2.5rem 0 1rem;
}

.page-head {
  padding: 2.75rem 0 1.5rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
}

h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 68ch;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}

.game-about {
  margin-top: 1.25rem;
}

.game-about h2 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.game-about .block-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
}

.game-about p {
  margin: 0 0 0.85rem;
  color: #dcd4ee;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.bento__tile {
  grid-column: span 4;
  min-height: 140px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: rgba(10, 8, 18, 0.65);
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow: hidden;
}

.bento__tile--wide {
  grid-column: span 8;
}

.bento__tile--tall {
  min-height: 200px;
}

@media (max-width: 900px) {
  .bento__tile,
  .bento__tile--wide {
    grid-column: span 12;
  }
}

.tile-frame {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-frame img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
}

.video-wrap {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

@media (max-width: 1024px) {
  .shots {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .shots {
    grid-template-columns: 1fr;
  }
}

.shot {
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: rgba(8, 6, 14, 0.85);
  aspect-ratio: 9 / 16;
  width: 100%;
  max-height: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 1.5rem 0 2.5rem;
}

.play-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.25);
}

.play-badge img {
  height: 54px;
  width: auto;
  display: block;
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
}

.prose {
  max-width: 72ch;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--stroke);
  padding: 2rem 0 2.5rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  object-fit: contain;
  background: rgba(18, 16, 28, 0.9);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--text);
}

.copyright {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Age gate */
.age-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: radial-gradient(circle at 50% 30%, rgba(139, 92, 246, 0.25), transparent 55%),
    rgba(4, 3, 8, 0.92);
  backdrop-filter: blur(8px);
}

html.age-ok #age-overlay {
  display: none !important;
}

.age-card {
  max-width: 460px;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(155deg, rgba(24, 20, 38, 0.95), rgba(12, 10, 20, 0.98));
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.age-card .age-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  object-fit: contain;
  background: rgba(0, 0, 0, 0.35);
}

.age-card h2 {
  font-size: 1.45rem;
}

.age-card p {
  color: var(--muted);
  margin: 0.5rem 0 1.25rem;
}

.age-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--gold {
  background: linear-gradient(135deg, #e8c547, var(--gold-dim));
  color: #1a1204;
}

.btn--gold:hover {
  filter: brightness(1.06);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  background: var(--gold);
  color: #1a1204;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 700;
  z-index: 10000;
}

.skip-link:focus {
  left: 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
