/* AlvoriaSocialGames.games — standalone theme (no shared PHP includes) */
:root {
  --bg: #071018;
  --bg-elev: #0f1c28;
  --bg-card: #132636;
  --stroke: rgba(232, 220, 200, 0.12);
  --text: #f2ebe3;
  --muted: #a8b8c4;
  --accent: #c97b4a;
  --accent-2: #3db8a8;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --radius-lg: 22px;
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(61, 184, 168, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(201, 123, 74, 0.14), transparent 50%),
    var(--bg);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: var(--accent-2);
}

a:hover {
  color: #5fd4c4;
}

.wrap {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

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

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

.age-card {
  max-width: 420px;
  width: 100%;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: linear-gradient(160deg, var(--bg-card), #0c1822);
  box-shadow: var(--shadow);
  text-align: center;
}

.age-card h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

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

.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #a85f32);
  color: #fff;
  box-shadow: 0 8px 24px rgba(201, 123, 74, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(201, 123, 74, 0.45);
}

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

.btn-ghost:hover {
  border-color: rgba(232, 220, 200, 0.35);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(7, 16, 24, 0.96), rgba(7, 16, 24, 0.88));
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--bg-elev);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

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

/* Hero / sections */
.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

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

.tagline {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(19, 38, 54, 0.6);
  color: var(--accent-2);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Game intro block (index top) */
.game-intro {
  margin-top: 1.5rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(19, 38, 54, 0.85), rgba(12, 24, 34, 0.9));
  box-shadow: var(--shadow);
}

.game-intro h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.65rem;
  margin: 0 0 0.35rem;
}

.game-intro .sub {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.game-intro .game-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.game-intro p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.game-intro p:last-child {
  margin-bottom: 0;
}

.bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bullet-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.5rem;
  color: var(--muted);
  border-top: 1px solid var(--stroke);
}

.bullet-list li:first-child {
  border-top: 0;
  padding-top: 0.35rem;
}

.bullet-list li::before {
  content: "►";
  position: absolute;
  left: 0;
  top: 0.65rem;
  color: var(--accent);
  font-size: 0.8rem;
}

.bullet-list li:first-child::before {
  top: 0.35rem;
}

/* CTA strip */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.25rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--bg-elev);
}

.cta-row p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  color: var(--muted);
  font-size: 0.95rem;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: #0a141c;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.store-link:hover {
  border-color: rgba(61, 184, 168, 0.45);
  box-shadow: 0 0 0 3px rgba(61, 184, 168, 0.12);
}

.store-link img {
  display: block;
  height: auto;
  width: auto;
  max-height: 56px;
  max-width: min(200px, 100%);
  object-fit: contain;
}

/* Decorative image tiles (favicon / logo1 / logo2) — always horizontal row */
.media-strip {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.75rem;
  margin: 2rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
}

.media-strip .tile {
  flex: 1 1 0;
  min-width: min(100%, 140px);
}

.tile {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--bg-card);
  min-height: 100px;
  aspect-ratio: 16 / 9;
  max-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  overflow: hidden;
}

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

/* Video */
.video-block {
  margin: 2.5rem 0;
}

.video-block h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #000;
  box-shadow: var(--shadow);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Screenshots — horizontal (landscape) frames */
.shots {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0 0;
  align-items: stretch;
}

.shot {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--bg-elev);
  flex: 1 1 280px;
  min-width: min(100%, 240px);
  max-width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.35rem;
}

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

figure.shot {
  margin: 0;
}

section.block {
  padding: 2.5rem 0;
  border-top: 1px solid var(--stroke);
}

section.block h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  margin: 0 0 1rem;
}

.prose {
  color: var(--muted);
  max-width: 72ch;
}

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

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

.prose li {
  margin-bottom: 0.5rem;
}

/* Games grid */
.game-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .game-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.game-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}

.game-card .thumb {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: #0a141c;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.5rem;
}

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

.game-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  font-size: 1.35rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--stroke);
  background: rgba(5, 12, 18, 0.85);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand .brand-mark {
  flex-shrink: 0;
}

.footer-brand p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

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

.copyright {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--stroke);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Two-column layout for inner pages */
.split-top {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .split-top {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }
}

.side-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--bg-elev);
  padding: 1.25rem;
}

.side-card .tile {
  margin-bottom: 1rem;
  min-height: 100px;
}

.side-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}
