/*
Theme Name: Lucky Play Social
Theme URI: https://luckyplaysocial.it.com/
Author: Lucky Play Social
Description: Free social games for adults 18+. Entertainment only.
Version: 1.0.3
Requires PHP: 7.4
Text Domain: luckyplaysocial
*/

:root {
  --bg: #0e0b24;
  --bg-2: #15113a;
  --card: #1d1849;
  --card-2: #262058;
  --line: rgba(255, 255, 255, .09);
  --text: #f6f3ff;
  --muted: #cfc8ef;
  --gold: #ffc438;
  --gold-2: #ffdd7a;
  --orange: #ff7a1a;
  --emerald: #2fd38a;
  --ink: #1b1206;
  --radius: 20px;
  --shell: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --cc-bg: #1d1849; --cc-fg: #f6f3ff; --cc-btn-bg: #ffc438; --cc-btn-fg: #1b1206; --cc-border: rgba(255,255,255,.14); --cc-focus: #2fd38a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font);
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(255, 122, 26, .16), transparent 60%),
                    radial-gradient(900px 500px at -10% 30%, rgba(124, 77, 255, .18), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 750; }
p { margin: 0 0 1em; }
.shell { width: min(var(--shell), 100% - 32px); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* top strip + header */
.topstrip { background: linear-gradient(90deg, #2a1d6b, #4b1f5e 50%, #6b2a1d); font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; text-align: center; padding: 7px 12px; color: #fff3cf; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14, 11, 36, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 650; font-size: 15px; }
.nav a:hover { color: #fff; }
.age { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); font-weight: 800; font-size: 14px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: #fff; border-radius: 10px; padding: 8px 12px; font: 600 15px var(--font); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, #f0a516); color: var(--ink); font-weight: 800; font-size: 17px;
  text-decoration: none; box-shadow: 0 8px 24px rgba(255, 166, 0, .35), inset 0 -2px 0 rgba(0,0,0,.15); transition: transform .15s; }
.btn:hover { transform: translateY(-2px); color: var(--ink); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.14); }

/* hero */
.hero { padding: 28px 0 10px; }
.hero-panel { position: relative; overflow: hidden; border-radius: 28px; min-height: 520px; display: flex; align-items: center; isolation: isolate; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.hero-panel::before { content: ""; position: absolute; inset: -20px; z-index: -2; background: var(--hero) center / cover no-repeat; filter: blur(4px) saturate(1.1); }
.hero-panel::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 7, 28, .92) 0%, rgba(10, 7, 28, .82) 32%, rgba(10, 7, 28, .35) 58%, rgba(10, 7, 28, 0) 78%),
              linear-gradient(0deg, rgba(10, 7, 28, .45), transparent 40%); }
.hero-copy { padding: 56px clamp(24px, 6vw, 72px); max-width: 640px; text-shadow: 0 2px 12px rgba(0,0,0,.75), 0 0 2px rgba(0,0,0,.6); }
.eyebrow { display: inline-block; color: var(--gold); font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); font-weight: 900; color: #fff; margin-bottom: 18px; }
.hero p { font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; color: #fff; max-width: 520px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; text-shadow: none; }

/* sections */
.section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* games */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.game-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); aspect-ratio: 16 / 10; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.game-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.game-card:hover img { transform: scale(1.06); }
.game-card .overlay { position: absolute; inset: auto 0 0 0; padding: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  background: linear-gradient(0deg, rgba(10,7,28,.92), rgba(10,7,28,.5) 70%, transparent); }
.game-card h3 { margin: 0; font-size: 19px; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.game-card .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.game-card a.cover { position: absolute; inset: 0; z-index: 1; }
.game-card .overlay { z-index: 2; }
.note { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: s; }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step svg { width: 46px; height: 46px; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }

/* notice */
.notice { background: linear-gradient(135deg, #241b5a, #3a1a4f 60%, #4a2016); border-radius: 28px; padding: clamp(28px, 5vw, 56px); border: 1px solid rgba(255, 196, 56, .25); }
.notice > p { color: #ece7ff; max-width: 820px; font-size: 18px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.tile { background: rgba(14, 11, 36, .55); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.tile svg { flex: 0 0 34px; width: 34px; height: 34px; }
.tile strong { display: block; color: #fff; }
.tile span { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* faq */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 750; font-size: 18px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* about + guides */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.about-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.guide-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.guide-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.guide-card div { padding: 18px 20px 22px; }
.guide-card time { color: var(--gold); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.guide-card h3 { margin-top: 6px; }
.guide-card p { color: var(--muted); font-size: 15px; margin: 0; }
.guide-card:hover { border-color: rgba(255, 196, 56, .5); color: var(--text); }

/* contact strip */
.contact-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: var(--card); border-radius: var(--radius); padding: 28px 32px; border: 1px solid var(--line); }
.contact-strip p { margin: 0; color: var(--muted); }

/* inner pages */
.page-hero { padding: 56px 0 18px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 900; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 760px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.prose { max-width: 820px; padding-bottom: 72px; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 20px; margin-top: 1.3em; }
.prose p, .prose li { color: #e3ddfb; }
.prose ul { padding-left: 22px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--gold); }
.prose .meta { color: var(--muted); font-size: 14px; }
.prose figure { margin: 0 0 28px; }
.prose figure img { border-radius: var(--radius); }
.helpline { background: var(--bg-2); border-left: 4px solid var(--emerald); padding: 16px 20px; border-radius: 12px; margin: 1.2em 0; }

/* game page */
.game-page { padding: 32px 0 64px; }
.game-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.game-toolbar h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; margin: 0; }
.game-note { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.game-frame { width: 100%; height: min(78vh, 760px); min-height: 460px; border: 0; border-radius: var(--radius); background: #000; display: block; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.more { margin-top: 32px; }

/* footer */
.site-footer { background: #090718; border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.site-footer h2 { font-size: 18px; margin-bottom: 14px; }
.site-footer p { color: #bdb6dd; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #e4defb; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.copyright { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; color: #9f98c4; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

@media (max-width: 900px) {
  .split, .footer-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: #120e30; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .age { margin-top: 12px; }
  .hero-panel { min-height: 460px; }
  .hero-panel::after { background: linear-gradient(0deg, rgba(10,7,28,.94) 15%, rgba(10,7,28,.7) 55%, rgba(10,7,28,.35)); }
  .section { padding: 52px 0; }
  .game-frame { height: 72vh; min-height: 420px; }
}
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
