/*
Theme Name: RoyalGentlePlay
Theme URI: https://royalgentleplay.com
Author: RoyalGentlePlay
Author URI: https://royalgentleplay.com
Description: A regal, refined social-gaming theme for RoyalGentlePlay. Auto-generates all site pages on activation, featuring a royal aubergine-and-gold palette, ornate crown motifs, fleur-de-lis flourishes and an elegant high-contrast serif aesthetic fit for a court.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: royalgentleplay
*/

/* =========================================================
   DESIGN TOKENS — THE ROYAL COURT
   ========================================================= */
:root {
  --court-0: #1a0f24;       /* deepest royal aubergine */
  --court-1: #241433;
  --court-2: #2f1b41;       /* velvet panel */
  --court-3: #3b2453;

  --royal: #6c3fb0;         /* royal purple */
  --royal-bright: #9c6ff0;
  --royal-deep: #4a2580;

  --gold: #d9b96b;          /* regal gold */
  --gold-bright: #f3d894;
  --gold-deep: #a9863c;

  --crimson: #8c2f4a;       /* royal crimson velvet */
  --crimson-bright: #c14b6c;

  --ivory: #f6efe3;         /* parchment ivory */
  --ivory-soft: #d8cbe0;
  --ivory-faint: #9d8db0;

  --surface: rgba(217, 185, 107, 0.05);
  --surface-strong: rgba(217, 185, 107, 0.08);
  --border: rgba(217, 185, 107, 0.22);
  --border-soft: rgba(217, 185, 107, 0.12);

  --grad-gold: linear-gradient(120deg, #f3d894 0%, #d9b96b 48%, #a9863c 100%);
  --grad-royal: linear-gradient(120deg, #9c6ff0 0%, #6c3fb0 55%, #4a2580 100%);
  --grad-velvet: linear-gradient(160deg, #3b2453 0%, #1a0f24 100%);

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 18px;
  --radius-xl: 26px;

  --shadow-deep: 0 26px 64px -24px rgba(0, 0, 0, 0.8);
  --shadow-gold: 0 0 48px -12px rgba(217, 185, 107, 0.45);

  --font-display: "Playfair Display", "Didot", Georgia, serif;
  --font-body: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "Marcellus", "Trajan Pro", Georgia, serif;

  --maxw: 1180px;
}

/* =========================================================
   BASE + DAMASK TEXTURE
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ivory);
  background-color: var(--court-0);
  background-image:
    radial-gradient(900px 560px at 50% -8%, rgba(156, 111, 240, 0.18), transparent 60%),
    radial-gradient(700px 520px at 8% 20%, rgba(217, 185, 107, 0.10), transparent 58%),
    radial-gradient(720px 520px at 96% 28%, rgba(140, 47, 74, 0.16), transparent 58%),
    linear-gradient(180deg, var(--court-0), var(--court-1) 52%, var(--court-0));
  background-attachment: fixed;
  line-height: 1.75;
  font-size: 19px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* faint damask/fleur pattern overlay */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23d9b96b' stroke-width='0.6' opacity='0.06'%3E%3Cpath d='M40 14c6 6 6 14 0 20-6-6-6-14 0-20zm0 52c-6-6-6-14 0-20 6 6 6 14 0 20z'/%3E%3Ccircle cx='40' cy='40' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-bright); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0 0 .5em;
  color: var(--ivory);
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.narrow { max-width: 880px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .38em;
  font-size: 13px;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 18px;
}

.grad-text {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* fleur-de-lis divider */
.laurel-rule {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 0 auto 22px; color: var(--gold); max-width: 280px;
}
.laurel-rule::before, .laurel-rule::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold-deep));
}
.laurel-rule::after { background: linear-gradient(90deg, var(--gold-deep), transparent); }
.laurel-rule svg { width: 26px; height: 26px; }

/* =========================================================
   BUTTONS — royal seals
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-ui);
  font-weight: 400; font-size: 16px; letter-spacing: .12em;
  padding: 15px 34px; border-radius: var(--radius-s);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background .25s ease;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--grad-gold); color: #2a1c05;
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,.4);
  border: 1px solid var(--gold-bright);
}
.btn-primary:hover { transform: translateY(-3px); color: #2a1c05; box-shadow: 0 0 62px -8px rgba(217,185,107,.65), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--ivory); }
.btn-ghost:hover { transform: translateY(-3px); color: var(--gold-bright); border-color: var(--gold); }
.btn-blood { background: var(--grad-royal); color: var(--ivory); border: 1px solid var(--royal-bright); box-shadow: 0 0 40px -14px rgba(156,111,240,.6); }
.btn-blood:hover { transform: translateY(-3px); color: #fff; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(26,15,36,.96), rgba(26,15,36,.82));
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--gold-deep), var(--gold), var(--gold-deep), transparent) 1;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  letter-spacing: .01em; color: var(--ivory);
}
.brand:hover { color: var(--ivory); }
.brand-mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  filter: drop-shadow(0 0 12px rgba(217,185,107,.5));
}
.brand-mark svg { width: 44px; height: 44px; }
.brand span b { color: var(--gold); font-weight: 700; font-style: italic; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  font-family: var(--font-ui); color: var(--ivory-soft); font-weight: 400; font-size: 17px;
  letter-spacing: .06em; padding: 9px 18px; border-radius: var(--radius-s); transition: all .2s ease;
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--gold-bright); background: var(--surface); }
.nav-cta { margin-left: 12px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--gold); margin: 6px 0; border-radius: 2px; transition: .3s; }

/* =========================================================
   HERO — the throne room
   ========================================================= */
.hero { padding: 112px 0 92px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background:
    radial-gradient(circle at 50% 0%, rgba(217,185,107,.14), transparent 45%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 78px); margin-bottom: 22px; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.hero p.lead { color: var(--ivory-soft); font-size: 20px; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-card {
  position: relative; width: 100%; max-width: 420px; padding: 34px;
  border-radius: var(--radius-l);
  background: var(--grad-velvet);
  border: 1px solid var(--border); box-shadow: var(--shadow-deep); overflow: hidden;
}
.hero-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-gold); }
.hero-card .chip {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui);
  font-size: 14px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-bright); background: rgba(217,185,107,.10); border: 1px solid rgba(217,185,107,.3);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 18px;
}
.hero-card h3 { font-size: 25px; margin-bottom: 6px; }
.hero-card p { color: var(--ivory-soft); font-size: 16px; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 22px; }
.hero-stat { text-align: center; padding: 16px 8px; border-radius: var(--radius-s); background: rgba(0,0,0,.28); border: 1px solid var(--border-soft); }
.hero-stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 26px; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stat small { font-family: var(--font-ui); color: var(--ivory-faint); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.section-head { text-align: center; max-width: 740px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(32px, 4.5vw, 52px); }
.section-head p { color: var(--ivory-soft); font-size: 19px; }

/* =========================================================
   FEATURE CARDS — heraldic panels
   ========================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  position: relative; padding: 38px 32px; border-radius: var(--radius-m);
  background: linear-gradient(180deg, rgba(59,36,83,.55), rgba(26,15,36,.7));
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0; border: 1px solid transparent; border-radius: inherit;
  background: linear-gradient(180deg, rgba(217,185,107,.18), transparent 40%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s;
}
.feature-card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: var(--shadow-deep); }
.feature-card:hover::before { opacity: 1; }
.feature-ico {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 24px;
  border: 1px solid var(--gold-deep);
  background: radial-gradient(circle at 35% 30%, rgba(217,185,107,.22), rgba(0,0,0,.35));
}
.feature-ico svg { width: 30px; height: 30px; color: var(--gold-bright); }
.ico-mint, .ico-warm, .ico-violet { background: radial-gradient(circle at 35% 30%, rgba(217,185,107,.22), rgba(0,0,0,.35)); }
.feature-card h3 { font-size: 23px; }
.feature-card p { color: var(--ivory-soft); font-size: 16.5px; margin: 0; }

/* =========================================================
   GAMES SHOWCASE
   ========================================================= */
.game-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 70px; }
.game-row:last-child { margin-bottom: 0; }
.game-row.reverse .game-media { order: 2; }
.game-media {
  position: relative; border-radius: var(--radius-m); overflow: hidden;
  border: 1px solid var(--gold-deep); box-shadow: var(--shadow-deep); background: var(--court-2);
}
.game-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(217,185,107,.25); pointer-events: none; border-radius: inherit; }
.game-media img { width: 100%; aspect-ratio: 417/277; object-fit: cover; display: block; }
.game-row.reverse .game-media img { aspect-ratio: 412/288; }
.game-info h3 { font-size: clamp(28px, 3.2vw, 40px); }
.game-info p { color: var(--ivory-soft); font-size: 17px; }
.game-tag {
  display: inline-block; font-family: var(--font-ui); font-size: 14px; font-weight: 400; letter-spacing: .2em;
  text-transform: uppercase; color: var(--crimson-bright); margin-bottom: 14px;
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.step {
  padding: 34px 30px; border-radius: var(--radius-m);
  background: linear-gradient(180deg, rgba(59,36,83,.5), rgba(26,15,36,.65));
  border: 1px solid var(--border); position: relative;
}
.step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(217,185,107,.28), rgba(0,0,0,.4));
  border: 1px solid var(--gold); color: var(--gold-bright); margin-bottom: 20px;
}
.step h3 { font-size: 21px; margin-bottom: 6px; }
.step p { color: var(--ivory-soft); font-size: 16px; margin: 0; }

/* =========================================================
   HALL OF FAME — the royal roll
   ========================================================= */
.hof { border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--gold-deep); background: linear-gradient(180deg, rgba(59,36,83,.5), rgba(26,15,36,.7)); }
.hof table { width: 100%; border-collapse: collapse; }
.hof th, .hof td { padding: 18px 22px; text-align: left; font-size: 16px; }
.hof thead th { font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .14em; font-size: 14px; color: var(--gold); background: rgba(217,185,107,.06); border-bottom: 1px solid var(--gold-deep); }
.hof tbody tr { border-bottom: 1px solid var(--border-soft); transition: background .2s; }
.hof tbody tr:last-child { border-bottom: 0; }
.hof tbody tr:hover { background: rgba(217,185,107,.06); }
.hof .rank { font-size: 22px; }
.hof .score { font-family: var(--font-display); font-weight: 700; color: var(--gold-bright); }
.hof .activity { color: var(--ivory-faint); }

/* =========================================================
   TRUST / COMPLIANCE BADGES
   ========================================================= */
.trust { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 64px; }
.trust a, .trust .badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 10px; padding: 14px 22px; min-height: 64px;
  border: 1px solid var(--gold-deep); transition: transform .25s ease, box-shadow .25s ease;
}
.trust a:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.trust img { height: 34px; width: auto; }
.badge-18 { font-family: var(--font-display); font-weight: 700; color: #d8453a; background: #fff; border: 3px solid #d8453a; border-radius: 50%; width: 60px; height: 60px; display:grid; place-items:center; font-size: 19px; }

/* =========================================================
   STATIC / LEGAL PAGES
   ========================================================= */
.page-hero { padding: 80px 0 0; }
.page-hero h1 { font-size: clamp(40px, 5vw, 64px); }
.prose { max-width: 880px; }
.prose h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 1.6em; color: var(--gold); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 22px; margin-top: 1.4em; color: var(--gold-bright); }
.prose h4 { font-size: 18px; margin-top: 1.2em; color: var(--ivory); }
.prose p { color: var(--ivory-soft); }
.prose ul { color: var(--ivory-soft); padding-left: 22px; }
.prose ul li { margin-bottom: 8px; }
.prose ul li::marker { color: var(--gold); }
.prose a { font-weight: 600; }
.prose .lead { color: var(--ivory); font-size: 21px; }

/* =========================================================
   FORMS — royal decree
   ========================================================= */
.form-wrap { max-width: 880px; }
.spv-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.spv-form .full { grid-column: 1 / -1; }
.spv-form label { font-family: var(--font-ui); display: block; font-size: 13px; font-weight: 400; letter-spacing: .12em; color: var(--gold); margin-bottom: 8px; text-transform: uppercase; }
.spv-form input, .spv-form textarea {
  width: 100%; padding: 16px 18px; font-family: var(--font-body); font-size: 17px;
  color: var(--ivory); background: rgba(0,0,0,.3); border: 1px solid var(--border); border-radius: var(--radius-s);
  transition: border-color .2s, box-shadow .2s;
}
.spv-form input::placeholder, .spv-form textarea::placeholder { color: var(--ivory-faint); }
.spv-form input:focus, .spv-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,185,107,.18); }
.spv-form textarea { min-height: 170px; resize: vertical; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }

/* =========================================================
   GAME PLAY PAGES
   ========================================================= */
.game-stage { text-align: center; padding: 80px 0 60px; }
.game-stage h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 36px; }
.game-frame { position: relative; max-width: 1080px; margin: 0 auto; border-radius: var(--radius-m); overflow: hidden; border: 2px solid var(--gold-deep); box-shadow: var(--shadow-deep); background: var(--court-2); }
.game-frame iframe { display: block; width: 100%; aspect-ratio: 1080/500; border: 0; }
.game-back { margin-top: 30px; }

/* =========================================================
   FOOTER
   ========================================================= */
.disclaimer-band { background: linear-gradient(180deg, rgba(47,27,65,.7), rgba(26,15,36,.95)); border-top: 1px solid var(--gold-deep); padding: 50px 0; }
.disclaimer-band h4 { font-family: var(--font-ui); font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.disclaimer-band p { color: var(--ivory-faint); font-size: 15px; max-width: 1000px; margin: 0; }

.site-footer { padding: 28px 0; background: var(--court-0); border-top: 1px solid var(--border-soft); }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-nav a { font-family: var(--font-ui); color: var(--ivory-soft); font-size: 16px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.footer-nav a:hover { color: var(--gold); }
.footer-copy { font-family: var(--font-ui); color: var(--ivory-faint); font-size: 14px; letter-spacing: .04em; }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .game-row { grid-template-columns: 1fr; gap: 28px; }
  .game-row.reverse .game-media { order: 0; }
  .spv-form { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
}
@media (max-width: 720px) {
  .main-nav { position: fixed; inset: 84px 0 auto 0; flex-direction: column; align-items: stretch;
    background: rgba(26,15,36,.98); backdrop-filter: blur(12px); padding: 18px 24px 26px;
    border-bottom: 1px solid var(--gold-deep); transform: translateY(-130%); transition: transform .35s ease; gap: 4px; }
  .main-nav.open { transform: none; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .hof { overflow-x: auto; }
  .hof table { min-width: 520px; }
}
