/*
Theme Name: Planet 3 Cushion
Theme URI: https://planet3cushion.com
Author: EMA Media Group
Author URI: https://emamediagroup.com
Description: Coming-soon site for Planet 3 Cushion — the world of three-cushion billiards, with Merrill Hughes. Spinning globe, player map, signup and legal pages.
Version: 1.0.7
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: planet3cushion
*/

/* Space-dark single theme: navy field, gold accents, the three ball colors as the only other hues. */
:root {
  --space: #050C1F;
  --space-2: #0B1A3A;
  --panel: rgba(16, 32, 68, .72);
  --line: rgba(201, 162, 74, .32);
  --gold: #D9B45A;
  --gold-soft: #F0D894;
  --ink: #EEF2FA;
  --muted: #A9B8D4;
  --red: #D62828;
  --display: "Lora", "TeX Gyre Pagella", Georgia, serif;
  --body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(120% 70% at 30% 0%, var(--space-2), var(--space) 60%) no-repeat, var(--space);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--gold-soft); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(5, 12, 31, .82); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 22px; color: var(--gold-soft); line-height: 1; }
.brand b { font-family: var(--body); font-style: normal; font-weight: 600; font-size: 12px; letter-spacing: .22em; color: var(--ink); margin-left: 6px; text-transform: uppercase; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a.cta { color: var(--space); background: var(--gold); padding: 6px 14px; border-radius: 999px; font-weight: 600; }

/* Hero */
.hero { padding-block: 48px 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px; align-items: center; }
.eyebrow { color: var(--gold); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
h1, h2, h3 { text-wrap: balance; }
.hero h1 { font-family: var(--display); font-style: italic; font-weight: 600; font-size: clamp(44px, 6vw, 76px); line-height: 1; margin: 10px 0 6px; color: var(--gold-soft); }
.hero h1 b { display: block; font-family: var(--body); font-style: normal; font-weight: 600; font-size: .42em; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); margin-top: 10px; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 34em; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid var(--gold); }
.btn.primary { background: var(--gold); color: var(--space); }
.btn.ghost { color: var(--gold-soft); }
.btn:hover { filter: brightness(1.08); }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 22px; margin-top: 26px; }
.stats strong { display: block; font-family: var(--display); font-size: 26px; white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 13px; }

/* Globe */
.globe-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; align-items: start; }
.stage { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 100%; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background:
  radial-gradient(circle at 0% 0%, #fffdf4 0, #fff1c2 4%, rgba(255, 214, 120, .85) 8%, rgba(255, 190, 90, .38) 15%, rgba(255, 170, 70, .12) 28%, transparent 46%),
  radial-gradient(60% 60% at 50% 45%, rgba(60, 120, 210, .32), transparent 70%); touch-action: none; cursor: grab; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255, 226, 150, .10) 0%, transparent 38%); }
.stage canvas { display: block; width: 100%; height: 100%; }
.hint { position: absolute; left: 14px; bottom: 12px; font-size: 12px; color: var(--muted); pointer-events: none; }
.tip { position: absolute; pointer-events: none; padding: 10px 12px; border-radius: 10px; background: rgba(5, 12, 31, .92); border: 1px solid var(--line); min-width: 150px; transform: translate(14px, 14px); font-size: 13px; }
.tip strong { display: block; font-size: 15px; }
.tip span { color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.tip em { color: var(--muted); font-style: normal; font-size: 12px; }
.board { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 16px 14px; display: grid; gap: 10px; min-width: 0; }
.board h2 { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.board p { margin: 0; color: var(--muted); font-size: 12.5px; }
.board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.board button { width: 100%; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; text-align: left; font: inherit; font-size: 14px; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 6px 8px; cursor: pointer; position: relative; overflow: hidden; }
.board button:hover, .board button.on { border-color: var(--line); background: rgba(217, 180, 90, .08); }
.board .rank { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.board .n { font-variant-numeric: tabular-nums; color: var(--gold-soft); }
.board .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.source { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* Sections */
section.block { padding-block: 56px; border-top: 1px solid rgba(201, 162, 74, .14); }
section.block h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 8px; }
section.block > .wrap > p.sub { color: var(--muted); max-width: 40em; margin: 0 0 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.tag { display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; margin-bottom: 10px; }
.balls { display: inline-flex; gap: 6px; vertical-align: middle; margin-right: 8px; }
.balls i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.balls i:nth-child(1) { background: #F7F3EA; } .balls i:nth-child(2) { background: #F2BE2E; } .balls i:nth-child(3) { background: var(--red); }

.join { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; }
.join ul { color: var(--muted); padding-left: 20px; }
.form-box { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 10px; min-height: 200px; }
.form-box iframe { width: 100%; border: 0; border-radius: 12px; background: transparent; }
.form-fallback { padding: 18px; color: var(--muted); }

/* Legal pages */
.page-head { padding-block: 40px 8px; }
.page-head h1 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4vw, 46px); margin: 0; }
.legal { max-width: 760px; padding-bottom: 64px; }
.legal h2 { font-size: 20px; margin-top: 32px; color: var(--gold-soft); }
.legal p, .legal li { color: #D5DDEC; }
.legal .updated { color: var(--muted); font-size: 14px; }

/* Landing pages (Sponsors, Sell) */
.landing .lp-hero { padding-block: 48px 8px; }
.landing .lp-hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.1; margin: 8px 0 12px; }
.landing .lp-hero p { color: var(--muted); font-size: 18px; max-width: 40em; margin: 0; }
.landing section.block > .wrap > p.sub { color: var(--muted); max-width: 44em; margin: 0 0 24px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 28px; }
.facts div { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.facts strong { display: block; font-family: var(--display); font-size: 26px; color: var(--gold-soft); font-variant-numeric: tabular-nums; line-height: 1.2; }
.facts span { color: var(--muted); font-size: 13.5px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.plan.top { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, 0 18px 40px -24px rgba(217, 180, 90, .6); }
.plan h3 { margin: 0; font-size: 20px; }
.plan .price { font-family: var(--display); font-size: 38px; color: var(--gold-soft); line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price small { font-family: var(--body); font-size: 14px; color: var(--muted); }
.plan p { margin: 0; color: var(--muted); font-size: 14.5px; }
.plan ul { margin: 4px 0 8px; padding-left: 18px; color: #D5DDEC; font-size: 14.5px; }
.plan ul li { margin-bottom: 4px; }
.plan .btn { margin-top: auto; text-align: center; }
.note { margin-top: 18px; color: var(--muted); font-size: 14px; max-width: 52em; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; color: var(--muted); font-size: 14.5px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--space); font-weight: 700; margin-bottom: 8px; }
.steps li strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.two-col > div { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.two-col h3 { margin: 0 0 8px; font-size: 17px; }
.two-col ul { margin: 0; padding-left: 18px; color: #D5DDEC; font-size: 14.5px; }
.two-col .no h3 { color: #F08A8A; }
.two-col .yes h3 { color: var(--gold-soft); }
@media (max-width: 760px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .credit { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(201, 162, 74, .14); justify-content: center; }
.ema-credit { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 13px; color: var(--muted); }
.ema-credit img { width: 54px; height: auto; border-radius: 8px; }
.ema-credit b { color: var(--gold-soft); font-weight: 600; }
.ema-credit:hover b { color: #fff; }

@media (max-width: 1080px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .hero-grid, .join { grid-template-columns: minmax(0, 1fr); }
  .globe-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, auto); } .nav { gap: 12px; font-size: 13px; } .nav a:not(.cta) { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
