/* PhantomArcc.games — studio promo campaign shell */
:root {
  --bg: #e8edf4;
  --bg-deep: #dbe4f0;
  --surface: #ffffff;
  --ink: #0b1220;
  --muted: #5c6b7f;
  --line: #c5d0e0;
  --accent: #1d4ed8;
  --accent-2: #5b21b6;
  --glow: rgba(29, 78, 216, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --font-sans: "Lexend", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

figure {
  margin: 0;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(
      ellipse 120% 80% at 10% -10%,
      rgba(29, 78, 216, 0.08),
      transparent 50%
    ),
    radial-gradient(
      ellipse 100% 60% at 100% 20%,
      rgba(91, 33, 182, 0.06),
      transparent 45%
    );
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
  min-width: 0;
}

/* Age gate overlay */
.age-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(10px);
}

.age-overlay[hidden] {
  display: none !important;
}

.age-card {
  width: min(440px, 100%);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.75rem 1.5rem;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(11, 18, 32, 0.2);
}

.age-card h1 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.age-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.age-actions {
  margin-top: 1.25rem;
}

.age-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--ink);
}

.age-check input {
  margin-top: 0.25rem;
}

.slider-row {
  margin-top: 1rem;
}

.slider-row label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.slider-track {
  position: relative;
  height: 48px;
  background: var(--bg-deep);
  border-radius: 999px;
  border: 1px solid var(--line);
  overflow: hidden;
  user-select: none;
}

.slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #6366f1);
  border-radius: 999px;
  pointer-events: none;
  transition: width 0.05s linear;
}

.slider-thumb {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: 0 4px 12px var(--glow);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  touch-action: none;
}
.slider-thumb:active {
  cursor: grabbing;
}

.slider-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  width: 100%;
  box-shadow: 0 8px 20px var(--glow);
}
.btn-primary:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.22);
}

/* Site header */
.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  color: var(--muted);
}
.nav a:hover,
.nav a.active {
  color: var(--accent);
  text-decoration: none;
}

/* Layout sections */
.section {
  padding: 3.25rem 0;
}

.section-tight {
  padding: 2rem 0;
}

.kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.hero-grid > * {
  min-width: 0;
}

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

.hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(11, 18, 32, 0.06);
  min-width: 0;
}

.card-media {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.card-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.quick-facts ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.quick-facts li {
  margin-bottom: 0.35rem;
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.icon-chip {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.icon-chip img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 5px;
}

/* Game description block */
.desc-block {
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  border: 1px solid var(--line);
  border-left-width: 4px;
}

.desc-block p {
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
}
.desc-block p:last-child {
  margin-bottom: 0;
}

.desc-block h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
  color: var(--accent-2);
}
.desc-block h3:first-child {
  margin-top: 0;
}

/* Horizontal screenshot rail */
.rail-label {
  margin-bottom: 1rem;
}

.shot-rail {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding: 0.5rem 0 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shot-rail::-webkit-scrollbar {
  height: 8px;
}
.shot-rail::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.shot-item {
  flex: 0 0 min(320px, min(78vw, calc(100% - 1rem)));
  scroll-snap-align: start;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
}

.shot-item img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.logo-rail {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.logo-rail .orb {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px dashed var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.logo-rail .orb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 10px;
}

/* CTA */
.cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(232, 237, 244, 0.9)
  );
  min-width: 0;
}

.store-link {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  max-width: 100%;
}
.store-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 18, 32, 0.12);
  text-decoration: none;
}
.store-link img {
  display: block;
  height: auto;
  width: auto;
  max-height: 54px;
  max-width: min(240px, 100%);
  object-fit: contain;
}

.cta-note {
  flex: 1;
  min-width: 200px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-copy .brand-mark {
  width: 36px;
  height: 36px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.88rem;
}

.footer-legal-note {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* Inner pages */
.page-hero {
  padding-bottom: 1rem;
}
.prose {
  max-width: 720px;
}
.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
}
.prose h2 {
  margin-top: 2rem;
}
.prose ul {
  color: var(--muted);
  padding-left: 1.25rem;
}

.page-cta {
  margin-top: 2rem;
}

/* games.php: text + aside blob */
.media-aside-grid {
  display: grid;
  grid-template-columns: 1fr min(160px, 28vw);
  gap: 1.5rem;
  align-items: center;
  min-width: 0;
}
.media-aside-grid > :first-child {
  min-width: 0;
}
@media (max-width: 640px) {
  .media-aside-grid {
    grid-template-columns: 1fr;
  }
  .media-aside-grid .blob.is-aside {
    margin-left: 0;
    margin-inline: auto;
  }
}

.flex-media-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  min-width: 0;
}
.flex-media-card .prose-min {
  flex: 1 1 200px;
  min-width: 0;
  max-width: none;
}
.flex-media-card .blob {
  flex-shrink: 0;
}

.legal-mark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 1rem;
  align-items: center;
  justify-items: center;
  min-width: 0;
}

/* Decorative split band */
.split-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  min-width: 0;
}
.split-band > :first-child {
  min-width: 0;
}
@media (max-width: 700px) {
  .split-band {
    grid-template-columns: 1fr;
  }
}

/* Circular logo / art caps (used in cards, split-band, games aside) */
.blob {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}
.blob img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 8px;
}
.blob.is-aside {
  width: min(120px, 30vw);
  height: min(120px, 30vw);
}

.shot-item.shot-item--inline {
  flex: 0 1 auto;
  width: min(200px, 100%);
  max-width: 200px;
  aspect-ratio: 16 / 9;
  max-height: 120px;
  min-width: 0;
  min-height: 0;
}

.shot-item.shot-item--thumb {
  flex: 0 0 min(120px, 30vw);
  aspect-ratio: 1;
  border-radius: 50%;
}

.shot-item.shot-item--rail-sm {
  flex: 0 0 min(140px, 38vw);
  aspect-ratio: 16 / 9;
}
