/*
Theme Name: Royal Joy Club
Theme URI: https://royaljoyclub.it.com/
Author: Royal Joy Club
Description: A calm, modern social games theme.
Version: 1.0.0
Text Domain: royaljoyclub
*/

:root {
  --ink: #171221;
  --muted: #71677e;
  --paper: #fbf9ff;
  --panel: #ffffff;
  --lilac: #72549a;
  --lilac-dark: #432c62;
  --lilac-soft: #eee7f7;
  --line: rgba(67, 44, 98, 0.14);
  --shadow: 0 24px 60px rgba(54, 35, 79, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.site-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 22px 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(20, 12, 30, .72), transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: #fff; font-size: 1.08rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.brand span { color: #d9c6f2; }
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a { color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 650; text-decoration: none; }
.age-pill { border: 1px solid rgba(255,255,255,.38); border-radius: 999px; padding: 5px 10px; }

.hero {
  position: relative;
  min-height: 660px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #1c112a;
}
.hero-bg {
  position: absolute;
  inset: -20px;
  background: center / cover no-repeat;
  filter: blur(6px) saturate(.72);
  transform: scale(1.04);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 35%, rgba(129, 91, 174, .25), transparent 42%),
    linear-gradient(180deg, rgba(22, 12, 36, .52), rgba(24, 15, 35, .92));
}
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 130px 0 90px; text-align: center; }
.eyebrow { margin: 0 0 14px; color: #d9c7ed; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(3.3rem, 8vw, 6.7rem); font-weight: 500; letter-spacing: -.055em; line-height: .96; }
.hero-copy { max-width: 590px; margin: 24px auto 0; color: rgba(255,255,255,.76); font-size: 1.05rem; }
.primary-button, .play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: var(--lilac-dark);
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}
.primary-button { margin-top: 30px; padding: 13px 22px; }
.primary-button:hover, .play-button:hover { transform: translateY(-2px); background: #f0e8fa; }

.games-section { padding: 92px 0 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.section-heading p { max-width: 430px; margin: 0; color: var(--muted); }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.game-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #20162c;
}
.game-card img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; transition: transform .45s ease; }
.game-card:hover img { transform: scale(1.035); }
.game-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(20,12,31,.92)); }
.game-card-content { position: absolute; inset: auto 26px 24px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.game-card h3 { margin: 0; color: #fff; font-family: Georgia, serif; font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 500; letter-spacing: -.035em; }
.play-button { flex: 0 0 auto; padding: 11px 18px; }

.info-strip { border-block: 1px solid var(--line); background: var(--lilac-soft); }
.info-strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 32px 0; }
.info-item { color: var(--muted); font-size: .9rem; }
.info-item strong { display: block; margin-bottom: 2px; color: var(--lilac-dark); }

.game-stage { min-height: 100vh; padding: 105px 20px 36px; background: #171020; color: #fff; }
.game-stage-inner { width: min(1440px, 100%); margin: 0 auto; }
.game-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.game-topbar h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 500; }
.back-link { color: #d5c1ed; font-size: .86rem; font-weight: 700; text-decoration: none; }
.game-frame-wrap { height: calc(100vh - 170px); min-height: 560px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: #09070d; box-shadow: 0 25px 80px rgba(0,0,0,.35); }
.game-frame { width: 100%; height: 100%; border: 0; }

.legal-page { min-height: 60vh; padding: 150px 0 90px; }
.legal-content { max-width: 780px; }
.legal-content h1 { font-family: Georgia, serif; font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.legal-content h2 { margin-top: 36px; color: var(--lilac-dark); }
.legal-content p { color: var(--muted); }

.site-footer { padding: 62px 0 34px; background: #1b1324; color: rgba(255,255,255,.65); font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 2fr; gap: 54px; }
.footer-title { margin: 0 0 12px; color: #fff; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 500; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; }
.footer-links a { color: #d5c2ed; text-decoration: none; }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }

@media (max-width: 800px) {
  .site-shell { width: min(100% - 28px, 1180px); }
  .header-nav a:not(.age-pill) { display: none; }
  .hero { min-height: 600px; }
  .section-heading, .game-card-content { align-items: flex-start; flex-direction: column; }
  .game-grid, .info-strip-inner, .footer-grid { grid-template-columns: 1fr; }
  .game-card, .game-card img { min-height: 300px; }
  .game-stage { padding-inline: 10px; }
  .game-frame-wrap { min-height: 480px; }
}
