/*
Theme Name: Inmotion Games
Theme URI: https://inmotion.network/
Author: UPMOTION
Author URI: https://upmotion.agency/
Description: Production-grade WordPress theme for online game portals. Dark glassmorphism aesthetic, fully customizable color palette through the Customizer, accessibility-first (WCAG AA), Core Web Vitals optimized, full Schema.org integration. Custom post type "Game" with click-to-play iframe pattern, taxonomy-based categories, user voting system, and senior-friendly UI defaults. Easily portable to any gaming site by reskinning the palette in Appearance → Customize → Colors.
Version: 2.7.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zuma-games
Tags: portfolio, gaming, custom-post-type, dark-mode, accessibility-ready, translation-ready, threaded-comments, custom-menu, custom-logo, featured-images
*/

/* ========== RESET / BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body { margin: 0; min-height: 100vh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; color: inherit; }

/* ========== DESIGN TOKENS ==========
 * All hex values below can be overridden via Customizer → Colors.
 * For each color used with alpha (rgba), an --xxx-rgb variable is provided
 * so transparency works after Customizer override.
 */
:root {
  /* Backgrounds */
  --bg:            #0a0f0c;
  --bg-2:          #0e1611;
  --bg-elevated:   #131c17;
  --bg-glass:      rgba(255, 255, 255, 0.04);
  --bg-glass-2:    rgba(255, 255, 255, 0.06);

  /* Brand accent — also used for borders, glows, focus rings */
  --gold:          #d4a23a;
  --gold-rgb:      212, 162, 58;
  --gold-bright:   #f0c060;
  --gold-soft:     rgba(var(--gold-rgb), 0.12);
  --border:        rgba(var(--gold-rgb), 0.14);
  --border-strong: rgba(var(--gold-rgb), 0.28);

  /* Text */
  --text:          #f5f1e6;
  --text-rgb:      245, 241, 230;
  --text-mute:     rgba(var(--text-rgb), 0.66);
  --text-faint:    rgba(var(--text-rgb), 0.42);

  /* ============================================================
   * GAME PIECE TOKENS — abstraction layer for forks
   * ============================================================
   * This block is the SINGLE POINT OF CHANGE when porting this theme
   * to a different casual game type (mahjong, bubble shooter, match-3,
   * tile-matcher, etc.). Everything visual that says "this is a Zuma
   * site" lives here. See PORTING.md for the full forking checklist.
   *
   * The 5 piece colors should feel cohesive as a set — they appear
   * together in: thumb gradients, marble decorations, ratings flair,
   * loaders, separators. For best results, pick 5 hues with similar
   * saturation and lightness, so any combination looks balanced.
   * ============================================================ */

  /* Piece colors — these are the visual identity. Override per fork. */
  --marble-red:        #e63946;
  --marble-red-rgb:    230, 57, 70;
  --marble-blue:       #4cc9f0;
  --marble-blue-rgb:   76, 201, 240;
  --marble-yellow:     #ffb703;
  --marble-yellow-rgb: 255, 183, 3;
  --marble-green:      #06d6a0;
  --marble-green-rgb:  6, 214, 160;
  --marble-purple:     #b56fdb;
  --marble-purple-rgb: 181, 111, 219;

  /* Piece shape — controls border-radius of decorative pieces.
   * 50% = round (marble, bubble, candy)
   * 6px = rounded square (mahjong tile, gem, jewel)
   * 0   = sharp square (block, brick)                              */
  --gp-shape: 50%;

  /* Piece visual treatment — a single multiplier that controls how
   * "glossy" pieces look (specular highlight intensity).
   * 1   = full marble shine (Zuma)
   * 0.4 = subtle highlight (mahjong tile)
   * 0   = flat, no shine (minimalist match-3)                      */
  --gp-shine: 1;

  /* Piece elevation — drop shadow strength for floating decorations.
   * Adjust per game style. Higher = more "3D"; lower = flat 2D.    */
  --gp-elevation: 0.35;

  /* Typography */
  --font-display: 'Unbounded', system-ui, -apple-system, sans-serif;
  --font-body:    'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

  /* Radii */
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;

  /* Shadows + glow */
  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.35);
  --shadow-2: 0 1px 0 rgba(255,255,255,0.06) inset, 0 18px 40px rgba(0,0,0,0.45);
  --glow:     0 0 60px rgba(var(--gold-rgb), 0.18);

  --container: 1280px;
  --container-wide: 1480px;
  --header-h: 72px;
}

/* ========== BODY ========== */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 600px at 12% -10%, rgba(var(--gold-rgb), 0.10), transparent 60%),
    radial-gradient(800px 500px at 88% 8%, rgba(var(--marble-blue-rgb), 0.06), transparent 65%),
    radial-gradient(1200px 700px at 50% 110%, rgba(var(--marble-green-rgb), 0.05), transparent 60%);
  background-attachment: fixed;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0 0.84 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ========== ACCESSIBILITY ========== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 16px; background: var(--gold); color: #1a1308; padding: 12px 18px; border-radius: 8px; font-weight: 700; z-index: 9999; transition: top 0.2s; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }

/* ========== LAYOUT ========== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; }
.container-wide { max-width: var(--container-wide); }
@media (max-width: 640px) { .container { padding: 0 16px; } }
main { position: relative; z-index: 1; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 var(--space-4); }
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; font-weight: 500; }
p  { margin: 0 0 var(--space-4); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; }
.text-mute { color: var(--text-mute); }

/* ========== TOPBAR ========== */
.topbar { position: relative; z-index: 50; background: linear-gradient(90deg, transparent, rgba(212,162,58,0.08), transparent); border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--text-mute); }
.topbar__inner { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 8px 16px; text-align: center; }
.topbar strong { color: var(--text); font-weight: 600; }

/* ========== HEADER ========== */
.header { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); background: rgba(10, 15, 12, 0.75); border-bottom: 1px solid var(--border); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--text); flex-shrink: 0; }
.logo__mark { width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #ffd266 0%, #d4a23a 40%, #7a5c1c 100%); box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 4px 12px rgba(0,0,0,0.4); position: relative; }
.logo__mark::after { content: ''; position: absolute; top: 5px; left: 7px; width: 10px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.55); filter: blur(1px); }
.logo .gold { color: var(--gold); }
.logo .mute { color: var(--text-mute); font-weight: 500; }

.nav { display: flex; align-items: center; margin-left: 28px; padding-left: 28px; border-left: 1px solid var(--border); height: 28px; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nav__list > li { list-style: none; padding: 0; margin: 0; }
.nav a { padding: 8px 14px; border-radius: 10px; font-size: 0.95rem; font-weight: 500; color: var(--text-mute); transition: color 0.2s, background 0.2s; display: inline-block; line-height: 1.2; text-decoration: none; }
.nav a:hover, .nav a:focus-visible { color: var(--text); background: var(--bg-glass); }
.nav a[aria-current="page"], .nav .current-menu-item > a { color: var(--gold); background: rgba(var(--gold-rgb), 0.08); }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search { position: relative; display: flex; align-items: center; width: 360px; max-width: 100%; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.2s, background 0.2s; }
.search:focus-within { border-color: var(--border-strong); background: var(--bg-glass-2); }
.search svg { width: 18px; height: 18px; margin-left: 12px; color: var(--text-faint); flex-shrink: 0; }
.search input { flex: 1; width: 100%; padding: 10px 14px 10px 10px; background: transparent; border: 0; outline: 0; font-size: 0.95rem; }
.search input::placeholder { color: var(--text-faint); }
.search kbd { margin-right: 8px; padding: 2px 6px; font-family: var(--font-body); font-size: 0.7rem; color: var(--text-faint); background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 4px; }

.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--text-mute); transition: color 0.2s, background 0.2s; }
.icon-btn:hover, .icon-btn:focus-visible { color: var(--text); background: var(--bg-glass); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-trigger { display: none; }

@media (max-width: 1024px) { .nav { display: none; } .search { width: 200px; } }
@media (max-width: 720px) { .search { display: none; } .menu-trigger { display: inline-flex; } }

/* ========== DRAWER ========== */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; }
.drawer[data-open="true"] { visibility: visible; pointer-events: auto; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s; }
.drawer[data-open="true"] .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; width: min(360px, 86vw); height: 100%; background: var(--bg-2); border-left: 1px solid var(--border); padding: 20px; overflow-y: auto; transform: translateX(100%); transition: transform 0.3s; }
.drawer[data-open="true"] .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.drawer__nav { display: flex; flex-direction: column; gap: 4px; list-style: none; padding: 0; margin: 0; }
.drawer__nav li { list-style: none; }
.drawer__nav a { display: block; padding: 14px 12px; border-radius: 10px; font-size: 1rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border); }
.drawer__nav a:hover { background: var(--bg-glass); }

/* ========== HERO ========== */
.hero { position: relative; padding: 56px 0 32px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 .accent { background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, #a07c25); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero__sub { font-size: 1.1rem; color: var(--text-mute); max-width: 56ch; margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

/* ========== BUTTONS ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 12px; font-weight: 600; font-size: 1rem; letter-spacing: 0.005em; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; will-change: transform; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #1a1308; box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 8px 22px rgba(212,162,58,0.32); }
.btn--primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 12px 28px rgba(212,162,58,0.45); }
.btn--ghost { background: var(--bg-glass); color: var(--text); border: 1px solid var(--border-strong); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: var(--bg-glass-2); border-color: var(--gold); }
.btn svg { width: 20px; height: 20px; }

.trust { display: flex; flex-wrap: wrap; gap: 24px 32px; list-style: none; padding: 0; margin: 0; }
.trust__item { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--text-mute); }
.trust__item svg { width: 18px; height: 18px; color: var(--marble-green); }
.trust__item strong { color: var(--text); font-weight: 600; }

/* ========== FEATURED GAME ========== */
.featured { position: relative; padding: 18px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-2), var(--glow); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.featured__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(circle at 25% 30%, rgba(var(--marble-blue-rgb),0.4), transparent 40%), radial-gradient(circle at 80% 70%, rgba(var(--marble-red-rgb),0.35), transparent 45%), radial-gradient(circle at 50% 90%, rgba(var(--marble-yellow-rgb),0.3), transparent 50%), linear-gradient(135deg, #1a2a1f, #0a0f0c); display: grid; place-items: center; }
.featured__media > img:not(.image-frame__fg) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.marble-track { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.marble { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 6px 18px rgba(0,0,0,0.4); position: relative; flex-shrink: 0; }
.marble::after { content: ''; position: absolute; top: 4px; left: 6px; width: 8px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.6); filter: blur(0.5px); }
.marble--red    { background: radial-gradient(circle at 32% 28%, #ff7b85, #e63946 50%, #7a1c25); }
.marble--blue   { background: radial-gradient(circle at 32% 28%, #92e0ff, #4cc9f0 50%, #1a6e8a); }
.marble--yellow { background: radial-gradient(circle at 32% 28%, #ffd866, #ffb703 50%, #8a6200); }
.marble--green  { background: radial-gradient(circle at 32% 28%, #66ecc4, #06d6a0 50%, #027a59); }
.marble--purple { background: radial-gradient(circle at 32% 28%, #d9a6f0, #b56fdb 50%, #5d3675); }

.featured__play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.3)); z-index: 2; width: 100%; height: 100%; }
.play-circle { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #1a1308; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(212,162,58,0.45), 0 0 0 8px rgba(212,162,58,0.16); transition: transform 0.25s; }
.featured:hover .play-circle { transform: scale(1.06); }
.play-circle svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }

.featured__info { display: flex; align-items: center; justify-content: space-between; padding: 16px 6px 4px; gap: 16px; }
.featured__title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin: 0; }
.featured__meta { display: flex; align-items: center; gap: 14px; color: var(--text-mute); font-size: 0.88rem; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 0.95rem; }

/* ========== CHIPS ========== */
.chips-section { padding: 16px 0 32px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.chips::-webkit-scrollbar { height: 4px; }
.chips::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.chip { flex-shrink: 0; padding: 10px 16px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--text-mute); white-space: nowrap; transition: all 0.2s; display: inline-flex; align-items: center; }
.chips__label { flex-shrink: 0; padding: 10px 8px 10px 16px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); white-space: nowrap; align-self: center; }
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip[aria-pressed="true"], .chip.is-active { background: linear-gradient(180deg, rgba(212,162,58,0.18), rgba(212,162,58,0.08)); border-color: var(--gold); color: var(--gold-bright); }
.chip__count { color: var(--text-faint); margin-left: 6px; font-size: 0.82rem; }

/* ========== SECTION ========== */
.section { padding: 64px 0; position: relative; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section__head h2 { margin-bottom: 4px; }
.section__head p { color: var(--text-mute); margin: 0; }
.link-arrow {
    display: inline-block;
    color: var(--gold);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: color 0.2s;
}
.link-arrow:hover { color: var(--gold-bright); }
.link-arrow::after {
    content: ' →';
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.2s;
    will-change: transform;
}
.link-arrow:hover::after { transform: translateX(4px); }

/* ========== GAMES GRID ========== */
.grid-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; grid-auto-flow: dense; }
@media (max-width: 480px) { .grid-games { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.card { position: relative; display: block; background: var(--bg-glass); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; will-change: transform; }
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 18px 36px rgba(0,0,0,0.5); }
.card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.thumb { position: absolute; inset: 0; display: grid; place-items: center; }
.thumb--1 { background: radial-gradient(circle at 30% 25%, rgba(255,183,3,0.35), transparent 45%), radial-gradient(circle at 75% 75%, rgba(230,57,70,0.4), transparent 45%), linear-gradient(135deg, #1c1108, #0a0f0c); }
.thumb--2 { background: radial-gradient(circle at 25% 75%, rgba(6,214,160,0.35), transparent 50%), radial-gradient(circle at 80% 25%, rgba(76,201,240,0.35), transparent 50%), linear-gradient(135deg, #08221a, #0a0f0c); }
.thumb--3 { background: radial-gradient(circle at 50% 30%, rgba(181,111,219,0.4), transparent 50%), radial-gradient(circle at 30% 80%, rgba(212,162,58,0.3), transparent 50%), linear-gradient(135deg, #1a0e26, #0a0f0c); }
.thumb--4 { background: radial-gradient(circle at 60% 40%, rgba(76,201,240,0.45), transparent 50%), radial-gradient(circle at 30% 70%, rgba(255,183,3,0.3), transparent 50%), linear-gradient(135deg, #08182a, #0a0f0c); }
.thumb--5 { background: radial-gradient(circle at 40% 60%, rgba(230,57,70,0.4), transparent 50%), radial-gradient(circle at 75% 30%, rgba(181,111,219,0.35), transparent 50%), linear-gradient(135deg, #200912, #0a0f0c); }
.thumb--6 { background: radial-gradient(circle at 30% 30%, rgba(6,214,160,0.4), transparent 50%), radial-gradient(circle at 70% 70%, rgba(255,183,3,0.4), transparent 50%), linear-gradient(135deg, #0c1f0c, #0a0f0c); }
.thumb--7 { background: radial-gradient(circle at 50% 50%, rgba(212,162,58,0.5), transparent 55%), linear-gradient(135deg, #18120a, #0a0f0c); }
.thumb--8 { background: radial-gradient(circle at 25% 50%, rgba(181,111,219,0.4), transparent 50%), radial-gradient(circle at 80% 30%, rgba(76,201,240,0.4), transparent 50%), linear-gradient(135deg, #110a26, #0a0f0c); }

.thumb__marbles { display: flex; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)); }
.thumb__marbles .marble { width: 24px; height: 24px; margin: 0 -3px; }

.card__overlay { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(10,15,12,0) 40%, rgba(10,15,12,0.85)); opacity: 0; transition: opacity 0.25s; }
.card:hover .card__overlay, .card:focus-within .card__overlay { opacity: 1; }
.card__play { padding: 10px 20px; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #1a1308; border-radius: 999px; font-weight: 700; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 10px 24px rgba(212,162,58,0.45); transform: translateY(8px); transition: transform 0.25s; }
.card:hover .card__play { transform: translateY(0); }
.card__play svg { width: 14px; height: 14px; fill: currentColor; }

.card__badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; background: rgba(10,15,12,0.7); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 999px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-bright); }
.card__badge--hot { background: rgba(230,57,70,0.85); color: #fff; border-color: transparent; }
.card__badge--new { background: rgba(6,214,160,0.85); color: #002218; border-color: transparent; }

.card__body { padding: 14px 14px 16px; }
.card__title { font-family: var(--font-display); font-weight: 500; font-size: 0.98rem; line-height: 1.25; color: var(--text); margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--text-mute); }
.card__rating { color: var(--gold); }

/* ========== AD SLOT ========== */
.ad-slot { grid-column: 1 / -1; min-height: 120px; padding: 16px; border: 1px dashed var(--border); border-radius: var(--r-md); background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(212,162,58,0.04) 12px 13px), var(--bg-2); display: grid; place-items: center; color: var(--text-faint); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; text-align: center; }
.ad-slot.is-empty::before { content: 'Advertisement · AdSense'; }

/* Mobile ad strategy
 *
 * On phones (≤768px) the goal is: get the user to the game above the fold.
 * Sidebar / pre-roll / sticky-rail ads on mobile create huge friction —
 * the user lands on an ad, scrolls past it, then finds the player. That
 * tanks engagement and pushes return-visit retention down hard.
 *
 * Rules below:
 *   - HIDE on mobile:      single_above_player, single_sidebar,
 *                          single_sidebar_2, single_left_sidebar
 *                          (left rail is already gone at <1320px via
 *                          .game-aside--left, but belt-and-suspenders).
 *   - RESHAPE on mobile:   single_below_player → square 300×250 placement
 *                          centred under the toolbar. Visible after the
 *                          user has played, not before.
 *   - KEEP on mobile:      in-grid (home/archive/taxonomy) — these naturally
 *                          fit the single-column phone grid as a card.
 *                          single_in_content (between How to Play and Tips)
 *                          single_below (after related games, post-engagement)
 *
 * Note: `display: none` on the wrapper means the AdSense <ins> inside
 * never gains a measurable size, so AdSense skips it without counting
 * an unfilled impression. Verified behaviour for AdSense + AdManager.
 */
@media (max-width: 768px) {
    .ad-slot[data-slot="single_above_player"],
    .ad-slot[data-slot="single_sidebar"],
    .ad-slot[data-slot="single_sidebar_2"],
    .ad-slot[data-slot="single_left_sidebar"] {
        display: none !important;
    }
    .ad-slot[data-slot="single_below_player"] {
        max-width: 300px;
        min-height: 250px;
        margin-left: auto;
        margin-right: auto;
        padding: 8px;
    }
    /* In-content + bottom slots: full-width, but cap the floor height
     * so an unfilled responsive ad doesn't leave a giant gap. */
    .ad-slot[data-slot="single_in_content"],
    .ad-slot[data-slot="single_below"],
    .ad-slot[data-slot="home_below_content"] {
        min-height: 100px;
    }
}

/* ========== USP ========== */
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.usp { padding: 28px 24px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: var(--r-lg); transition: border-color 0.25s, transform 0.25s; }
.usp:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.usp__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-bright); display: grid; place-items: center; margin-bottom: 18px; }
.usp__icon svg { width: 22px; height: 22px; }
.usp__title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0 0 8px; }
.usp__text { color: var(--text-mute); font-size: 0.92rem; margin: 0; }

/* ========== PILLARS ========== */
.pillar-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar { position: relative; display: flex; flex-direction: column; justify-content: end; min-height: 280px; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; transition: border-color 0.25s, transform 0.25s; }
.pillar:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.pillar--lg { min-height: 360px; }
.pillar__bg { position: absolute; inset: 0; z-index: 0; opacity: 0.55; }
.pillar--how .pillar__bg     { background: radial-gradient(circle at 70% 30%, rgba(76,201,240,0.5), transparent 55%), radial-gradient(circle at 30% 80%, rgba(212,162,58,0.4), transparent 55%), linear-gradient(135deg, #08182a, #0a0f0c); }
.pillar--tips .pillar__bg    { background: radial-gradient(circle at 50% 30%, rgba(6,214,160,0.5), transparent 55%), linear-gradient(135deg, #08221a, #0a0f0c); }
.pillar--history .pillar__bg { background: radial-gradient(circle at 50% 30%, rgba(181,111,219,0.5), transparent 55%), linear-gradient(135deg, #1a0e26, #0a0f0c); }

/* Featured-image variant — inline style on .pillar__bg sets background-image,
 * we override sizing here and add a darkening overlay so headline + tag
 * stay readable. Falls back gracefully to the variant gradients above when
 * no featured image is set on the post. */
.pillar--has-image .pillar__bg {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 1;
}
.pillar--has-image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(10, 15, 12, 0.20) 0%,
        rgba(10, 15, 12, 0.55) 45%,
        rgba(10, 15, 12, 0.92) 100%
    );
}
.pillar--has-image .pillar__content { z-index: 2; }
.pillar--has-image h3 { text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.pillar--has-image p  { color: rgba(var(--text-rgb), 0.88); text-shadow: 0 1px 2px rgba(0,0,0,0.4); }

.pillar__content { position: relative; z-index: 1; }
.pillar h3 { font-size: 1.4rem; font-weight: 600; margin: 0 0 10px; }
.pillar--lg h3 { font-size: 1.8rem; }
.pillar p { color: var(--text-mute); margin: 0 0 16px; }
.pillar__tag { display: inline-block; padding: 4px 10px; background: rgba(10,15,12,0.6); border: 1px solid var(--border); border-radius: 999px; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; backdrop-filter: blur(6px); }

/* ========== ABOUT / STATS ========== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .about { grid-template-columns: 1fr; gap: 32px; } }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.stat { padding: 28px; background: var(--bg-2); }
.stat__num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--gold-bright); line-height: 1; margin-bottom: 8px; }
.stat__label { font-size: 0.86rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.12em; }

/* ========== FAQ ========== */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-glass); margin-bottom: 12px; overflow: hidden; transition: border-color 0.25s; }
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; width: 22px; height: 22px; flex-shrink: 0; background: var(--gold-soft); border: 1px solid var(--border); border-radius: 50%; position: relative; transition: transform 0.25s, background 0.25s; }
.faq-item summary::before { content: ''; position: absolute; right: 32px; width: 10px; height: 10px; background-image: linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold)); background-size: 10px 2px, 2px 10px; background-position: center, center; background-repeat: no-repeat; transition: transform 0.25s; }
.faq-item[open] summary::before { background-size: 10px 2px, 0 0; }
.faq-item__body { padding: 0 24px 22px; color: var(--text-mute); }
.faq-item__body p { margin: 0; }

/* ========== CTA ========== */
.cta { position: relative; padding: 56px 32px; text-align: center; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border-strong); background: radial-gradient(circle at 20% 30%, rgba(212,162,58,0.18), transparent 50%), radial-gradient(circle at 80% 70%, rgba(76,201,240,0.12), transparent 50%), linear-gradient(180deg, var(--bg-2), var(--bg)); }
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--text-mute); max-width: 56ch; margin: 0 auto 28px; }
.cta__marbles { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); display: flex; pointer-events: none; opacity: 0.5; }
.cta__marbles .marble { width: 48px; height: 48px; margin: 0 -10px; }

/* ========== FOOTER ========== */
.footer { margin-top: 64px; padding: 64px 0 32px; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3)); position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; margin-bottom: 48px; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.footer__brand p { color: var(--text-mute); font-size: 0.92rem; max-width: 32ch; margin: 16px 0 0; }
.footer__col h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-faint); margin-bottom: 18px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--text-mute); font-size: 0.94rem; transition: color 0.2s; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--border); font-size: 0.86rem; color: var(--text-faint); flex-wrap: wrap; gap: 16px; }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a:hover { color: var(--gold); }

/* ========== UTILITIES ========== */
.hide-mobile { display: initial; }
@media (max-width: 720px) { .hide-mobile { display: none; } }

/* ========== VOTING (stars + likes) ========== */
.vote-card {
    background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.08), var(--bg-glass));
    border-color: var(--border-strong);
}
.vote-stars {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.vote-star {
    padding: 4px;
    background: transparent;
    border: 0;
    color: var(--text-faint);
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
}
.vote-star svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
    stroke: rgba(var(--gold-rgb), 0.35);
    stroke-width: 1;
    display: block;
}
.vote-star:hover { transform: scale(1.1); }
.vote-star.is-active,
.vote-star.is-hover { color: var(--gold); }
.vote-star:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 2px;
    border-radius: 4px;
}
.vote-card.is-thanks .vote-stars { pointer-events: none; }
.vote-meta {
    font-size: 0.92rem;
    color: var(--text-mute);
    margin: 0;
    min-height: 1.4em;
}
.vote-meta strong { color: var(--gold-bright); font-weight: 600; }
.vote-meta__editor strong { color: var(--gold); }
.vote-meta small { color: var(--text-faint); font-size: 0.82rem; }
.vote-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.like-btn:hover {
    border-color: var(--marble-red);
    color: #ff7b85;
}
.like-btn:hover .like-btn__icon { color: var(--marble-red); }
.like-btn.is-liked {
    background: rgba(var(--marble-red-rgb), 0.15);
    border-color: var(--marble-red);
    color: #ff7b85;
}
.like-btn.is-liked .like-btn__icon path {
    fill: var(--marble-red);
    stroke: var(--marble-red);
}
.like-btn__icon {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}
.like-btn.is-clicked .like-btn__icon { animation: like-pop 0.4s ease-out; }
@keyframes like-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}
.like-btn__count {
    color: var(--text-mute);
    font-variant-numeric: tabular-nums;
}
.like-btn.is-liked .like-btn__count { color: #ff7b85; }

/* ========== TOAST ========== */
.zuma-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 30px);
    padding: 14px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--gold);
    border-radius: 12px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(var(--gold-rgb), 0.2);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    max-width: calc(100% - 32px);
    text-align: center;
    pointer-events: none;
}
.zuma-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ========== STATIC PAGES / BLOG SINGLE ========== */
.page-article { padding: 48px 0 64px; }
.page-article__head { margin-bottom: 32px; }
.page-article__head .eyebrow { margin-bottom: 16px; }
.page-article__media { margin: 0 0 32px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.page-article__media img { width: 100%; height: auto; display: block; }
.page-article__content { font-size: 1.05rem; }
.page-article__content p { margin-bottom: 1.2em; line-height: 1.7; color: var(--text-mute); }
.page-article__content > h2:first-child,
.page-article__content > h3:first-child { margin-top: 0; }
.page-article__content h2 { font-size: 1.6rem; margin-top: 40px; margin-bottom: 16px; color: var(--text); }
.page-article__content h3 { font-size: 1.25rem; margin-top: 28px; margin-bottom: 12px; color: var(--text); }
.page-article__content ul, .page-article__content ol { padding-left: 24px; margin-bottom: 1.2em; }
.page-article__content li { margin-bottom: 8px; color: var(--text-mute); line-height: 1.7; }
.page-article__content a { color: var(--gold); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; }
.page-article__content a:hover { text-decoration-color: var(--gold); }

/* ========== HOMEPAGE CONTENT BLOCKS ========== */
.content-block { padding: 48px 0; }
.content-block__inner {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 40px 44px;
}
.content-block--b .content-block__inner {
    background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.04), var(--bg-glass));
    border-color: var(--border-strong);
}
.content-block__title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
    margin: 0 0 18px;
}
.content-block__body {
    color: var(--text-mute);
    font-size: 1.02rem;
    line-height: 1.7;
}
.content-block__body > *:first-child { margin-top: 0; }
.content-block__body > *:last-child  { margin-bottom: 0; }
.content-block__body p { margin: 0 0 1em; }
.content-block__body h3 {
    color: var(--text);
    font-size: 1.2rem;
    margin: 28px 0 12px;
}
.content-block__body ul, .content-block__body ol { padding-left: 22px; margin: 0 0 1em; }
.content-block__body li { margin-bottom: 6px; }
.content-block__body a { color: var(--gold); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; }
.content-block__body a:hover { text-decoration-color: var(--gold); }
@media (max-width: 600px) {
    .content-block { padding: 32px 0; }
    .content-block__inner { padding: 28px 22px; }
}

/* ========== HOMEPAGE VIDEO BLOCK ========== */
.video-block { padding: 48px 0; }
.video-block__head {
    text-align: center;
    margin-bottom: 28px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.video-block__head .eyebrow { display: inline-flex; margin-bottom: 12px; }
.video-block__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
    margin: 0 0 8px;
}
.video-block__player {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 980px;
    margin: 0 auto;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-2), 0 0 80px rgba(var(--gold-rgb), 0.08);
}
.video-block__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: block;
}
.video-block__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
}
.video-block__poster::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.45));
    z-index: 1;
    pointer-events: none;
}
.video-block__poster:hover img { transform: scale(1.04); filter: brightness(1.05); }
.video-block__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--gold);
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
    transition: transform 0.25s;
}
.video-block__poster:hover .video-block__play { transform: scale(1.08); }
.video-block__play svg { display: block; }
.video-block__player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* Decorative placeholder when no YouTube ID set yet */
.video-block__player--placeholder {
    background: radial-gradient(circle at 30% 30%, rgba(var(--gold-rgb), 0.18), transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(var(--marble-blue-rgb), 0.1), transparent 50%),
                var(--bg-2);
    display: grid;
    place-items: center;
}
.video-block__placeholder {
    text-align: center;
    padding: 24px;
    pointer-events: none;
}
.video-block__placeholder .video-block__play {
    position: relative;
    inset: auto;
    margin: 0 auto 16px;
    display: inline-block;
}
.video-block__placeholder-text {
    color: var(--text-mute);
    margin: 0;
    font-size: 0.92rem;
    max-width: 36ch;
    margin: 0 auto;
}

/* ========== FOOTER SOCIALS ========== */
.social-links {
    list-style: none;
    padding: 24px 0;
    margin: 0 0 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid var(--border);
}
.social-links li { margin: 0; }
.social-links__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-mute);
    transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}
.social-links__item:hover,
.social-links__item:focus-visible {
    color: var(--gold);
    background: var(--bg-glass-2);
    border-color: var(--gold);
    transform: translateY(-2px);
}
.social-links__item svg {
    width: 18px;
    height: 18px;
    display: block;
}
/* Optional brand tints on hover */
.social-links__item--facebook:hover  { color: #1877f2; border-color: #1877f2; }
.social-links__item--twitter:hover   { color: var(--text); border-color: var(--text); }
.social-links__item--instagram:hover { color: #e4405f; border-color: #e4405f; }
.social-links__item--youtube:hover   { color: #ff0033; border-color: #ff0033; }
.social-links__item--tiktok:hover    { color: var(--text); border-color: var(--text); }
.social-links__item--discord:hover   { color: #5865f2; border-color: #5865f2; }
.social-links__item--reddit:hover    { color: #ff4500; border-color: #ff4500; }
.social-links__item--pinterest:hover { color: #e60023; border-color: #e60023; }
.social-links__item--telegram:hover  { color: #26a5e4; border-color: #26a5e4; }

/* ========== SIDEBAR GAME WIDGETS (popular/new) ========== */
.sidebar-games__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sidebar-games__list li { margin: 0; }
.sidebar-games__item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 8px;
    border-radius: 10px;
    align-items: center;
    transition: background 0.2s, transform 0.2s;
}
.sidebar-games__item:hover {
    background: var(--bg-glass);
    transform: translateX(2px);
}
.sidebar-games__thumb {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-2);
}
.sidebar-games__thumb img,
.sidebar-games__thumb .thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.sidebar-games__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}
.sidebar-games__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.sidebar-games__item:hover .sidebar-games__title { color: var(--gold); }
.sidebar-games__meta {
    display: flex;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-mute);
    align-items: center;
}
.sidebar-games__rating { color: var(--gold); white-space: nowrap; }
.sidebar-games__cat {
    color: var(--text-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== EXPANDED PROSE STYLES (works in .game-content + .page-article__content + .term-block__content) ========== */
.game-content blockquote, .page-article__content blockquote {
    border-left: 4px solid var(--gold);
    padding: 4px 24px;
    margin: 28px 0;
    color: var(--text-mute);
    font-style: italic;
    font-size: 1.05em;
}
.game-content table, .page-article__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}
.game-content th, .game-content td,
.page-article__content th, .page-article__content td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.game-content th, .page-article__content th {
    color: var(--text);
    font-weight: 600;
    background: var(--bg-glass);
}
.game-content code, .page-article__content code {
    background: var(--bg-glass);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.92em;
    color: var(--gold-bright);
}
.game-content pre, .page-article__content pre {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    overflow-x: auto;
    margin: 24px 0;
}
.game-content pre code, .page-article__content pre code {
    background: none;
    padding: 0;
    color: var(--text);
}
.game-content figure, .page-article__content figure { margin: 28px 0; }
.game-content img, .page-article__content img { border-radius: var(--r-md); }
.game-content figcaption, .page-article__content figcaption {
    margin-top: 8px;
    font-size: 0.86rem;
    color: var(--text-faint);
    text-align: center;
}
.game-content hr, .page-article__content hr {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 40px 0;
}

/* Inline semantic elements */
.game-content kbd, .page-article__content kbd, .term-block__content kbd {
    display: inline-block;
    padding: 2px 8px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.85em;
    color: var(--text);
    background: var(--bg-glass);
    border: 1px solid var(--border-strong);
    border-bottom-width: 2px;
    border-radius: 4px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.3);
}
.game-content mark, .page-article__content mark, .term-block__content mark {
    background: rgba(var(--gold-rgb), 0.25);
    color: var(--gold-bright);
    padding: 0 4px;
    border-radius: 3px;
}
.game-content abbr[title], .page-article__content abbr[title] {
    text-decoration: underline dotted;
    text-decoration-color: var(--gold);
    cursor: help;
}
.game-content sub, .game-content sup,
.page-article__content sub, .page-article__content sup {
    font-size: 0.75em;
    line-height: 0;
}
.game-content cite, .page-article__content cite {
    color: var(--text-mute);
    font-style: italic;
}
.game-content small, .page-article__content small {
    font-size: 0.86em;
    color: var(--text-mute);
}

/* Definition lists */
.game-content dl, .page-article__content dl, .term-block__content dl {
    margin: 24px 0;
    display: grid;
    grid-template-columns: minmax(120px, max-content) 1fr;
    gap: 8px 24px;
}
.game-content dt, .page-article__content dt, .term-block__content dt {
    font-weight: 600;
    color: var(--text);
}
.game-content dd, .page-article__content dd, .term-block__content dd {
    margin: 0;
    color: var(--text-mute);
}
@media (max-width: 600px) {
    .game-content dl, .page-article__content dl { grid-template-columns: 1fr; gap: 4px 0; }
    .game-content dt, .page-article__content dt { margin-top: 12px; }
}

/* Nested lists */
.game-content ul ul, .game-content ol ol, .game-content ul ol, .game-content ol ul,
.page-article__content ul ul, .page-article__content ol ol,
.page-article__content ul ol, .page-article__content ol ul {
    margin: 8px 0 8px 0;
}

/* Drop cap (first letter of first paragraph after H1, optional via class) */
.page-article__content > p.has-drop-cap::first-letter,
.page-article__content > p.drop-cap::first-letter {
    float: left;
    font-family: var(--font-display);
    font-size: 4.5rem;
    line-height: 0.85;
    margin: 6px 12px 0 0;
    color: var(--gold);
    font-weight: 700;
}

/* Image alignments inside prose (overrides generic .alignXXX with prose-specific spacing) */
.game-content .alignleft, .page-article__content .alignleft {
    float: left; margin: 8px 24px 16px 0; max-width: 50%;
}
.game-content .alignright, .page-article__content .alignright {
    float: right; margin: 8px 0 16px 24px; max-width: 50%;
}
.game-content .aligncenter, .page-article__content .aligncenter {
    display: block; margin: 24px auto;
}
.game-content .alignwide, .page-article__content .alignwide {
    margin-left: -10%; margin-right: -10%; max-width: none;
}
@media (max-width: 700px) {
    .game-content .alignleft, .game-content .alignright,
    .page-article__content .alignleft, .page-article__content .alignright {
        float: none; margin: 16px 0; max-width: 100%;
    }
    .game-content .alignwide, .page-article__content .alignwide {
        margin-left: 0; margin-right: 0;
    }
}

/* WP Block Editor — common blocks */
.wp-block-pullquote {
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    padding: 32px 0;
    margin: 40px 0;
    text-align: center;
    font-size: 1.2rem;
    color: var(--text);
    font-style: italic;
}
.wp-block-pullquote cite { display: block; margin-top: 12px; font-size: 0.95rem; color: var(--text-mute); }
.wp-block-quote {
    border-left: 4px solid var(--gold);
    padding: 4px 24px;
    margin: 28px 0;
    font-style: italic;
    color: var(--text-mute);
}
.wp-block-quote cite { display: block; margin-top: 8px; font-size: 0.92rem; }
.wp-block-separator {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 40px 0;
    max-width: 100%;
}
.wp-block-separator.is-style-wide { margin: 56px 0; }
.wp-block-separator.is-style-dots {
    background: none;
    height: auto;
    text-align: center;
    color: var(--gold);
}
.wp-block-separator.is-style-dots::before {
    content: "···";
    font-size: 1.4rem;
    letter-spacing: 8px;
}
.wp-block-button__link, .wp-block-button .wp-element-button {
    display: inline-block;
    padding: 12px 22px;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    color: #1a1308 !important;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
}
.wp-block-button__link:hover, .wp-block-button .wp-element-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(var(--gold-rgb), 0.32);
}
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--gold) !important;
    border: 2px solid var(--gold);
}

.wp-block-table {
    margin: 24px 0;
}
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table figcaption { text-align: center; margin-top: 8px; font-size: 0.86rem; color: var(--text-faint); }

.wp-block-image figcaption,
.wp-block-embed figcaption,
.wp-block-video figcaption {
    text-align: center;
    margin-top: 8px;
    font-size: 0.86rem;
    color: var(--text-faint);
}

/* Code block (WP) */
.wp-block-code {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    overflow-x: auto;
    margin: 24px 0;
}
.wp-block-code code {
    background: none;
    padding: 0;
    color: var(--text);
}

.wp-block-preformatted {
    background: var(--bg-2);
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin: 24px 0;
    overflow-x: auto;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.95em;
}

.wp-block-verse {
    font-family: var(--font-display);
    padding: 16px 20px;
    background: var(--bg-glass);
    border-left: 3px solid var(--gold);
    margin: 24px 0;
    white-space: pre-wrap;
}

/* Embeds — responsive iframes (YouTube, Vimeo, etc.) */
.wp-block-embed,
.wp-block-embed__wrapper {
    margin: 24px 0;
}
.wp-block-embed iframe,
.wp-block-embed video,
.game-content iframe,
.page-article__content iframe {
    max-width: 100%;
    border: 0;
    border-radius: var(--r-md);
}
.wp-block-embed.is-type-video .wp-block-embed__wrapper,
.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}
.wp-block-embed.is-type-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* WP Block: image with caption */
.wp-block-image {
    margin: 24px 0;
}
.wp-block-image img { border-radius: var(--r-md); }
.wp-block-image .alignleft  { margin: 0 24px 16px 0; }
.wp-block-image .alignright { margin: 0 0 16px 24px; }

/* Cover block */
.wp-block-cover {
    border-radius: var(--r-lg);
    overflow: hidden;
    margin: 24px 0;
}

/* Group block — generic container */
.wp-block-group {
    margin: 24px 0;
}

/* List with checkboxes (rare but supported) */
.game-content ul.wp-block-list,
.page-article__content ul.wp-block-list { padding-left: 24px; }

/* Avoid massive bottom margin on last child of prose */
.game-content > *:last-child,
.page-article__content > *:last-child,
.term-block__content > *:last-child { margin-bottom: 0 !important; }

/* Inline anchor offset (for anchor links within long articles) */
.game-content [id], .page-article__content [id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ========== WP page-links (multi-page posts) ========== */
.page-links {
    margin: 32px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--text-mute);
    font-size: 0.92rem;
}
.page-links a, .page-links > span {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-mute);
    text-decoration: none;
}
.page-links a:hover { color: var(--gold); border-color: var(--border-strong); }
.page-links > .post-page-numbers.current,
.page-links > span:not(:first-child) {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--gold-bright);
}
.page-links > span:first-child { background: transparent; border: 0; padding: 0; color: var(--text-faint); }

/* ========== POST META (single.php) ========== */
.post-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    color: var(--text-mute);
    font-size: 0.92rem;
    margin-top: 12px;
    flex-wrap: wrap;
}
.post-meta__sep { color: var(--text-faint); }
.post-tags {
    margin-top: 32px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.post-tags__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-faint);
    margin-right: 4px;
}

/* ========== IMAGE FRAME (blurred backdrop) ==========
 * Use inside any container that already has a fixed aspect ratio
 * (.featured__media, .player__poster, etc). The frame absolutely
 * fills the parent and shows the image at object-fit:contain — small
 * or odd-aspect uploads get a blurred copy of themselves filling the
 * sides instead of empty bars.
 */
.image-frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--bg-2);
    z-index: 0;
}
.image-frame__bg {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(40px) saturate(1.3);
    opacity: 0.55;
    transform: scale(1.15);
    z-index: 0;
    pointer-events: none;
}
.image-frame__fg,
.image-frame img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    z-index: 1;
}

/* ========== TERM BLOCKS (intro + outro) ========== */
.term-block { padding: 24px 0; }
.term-block--intro { padding-top: 8px; padding-bottom: 32px; }
.term-block--outro {
    padding-top: 48px;
    padding-bottom: 64px;
    border-top: 1px solid var(--border);
    margin-top: 48px;
}
.term-block__content {
    color: var(--text-mute);
    font-size: 1rem;
    line-height: 1.7;
}
.term-block__content > *:first-child { margin-top: 0; }
.term-block__content > *:last-child  { margin-bottom: 0; }
.term-block__content p { margin: 0 0 1em; }
.term-block__content h2 {
    color: var(--text);
    font-size: 1.5rem;
    margin: 28px 0 14px;
}
.term-block__content h3 {
    color: var(--text);
    font-size: 1.2rem;
    margin: 24px 0 10px;
}
.term-block__content a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: var(--border-strong);
    text-underline-offset: 4px;
}
.term-block__content a:hover { text-decoration-color: var(--gold); }
.term-block__content ul,
.term-block__content ol { padding-left: 24px; }
.term-block__content li { margin-bottom: 6px; }

/* ========== SEARCH HEADER & RESULTS ==========
 * Self-contained — does NOT depend on .archive-header so it stays
 * predictable when content / queries are dynamic. */
.search-header {
    padding: 48px 0 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}
.search-header__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.search-header .eyebrow {
    display: inline-flex;
    margin-bottom: 16px;
}
.search-header__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0 0 10px;
    color: var(--text);
    overflow-wrap: anywhere;
    word-break: break-word;
}
.search-header__query {
    color: var(--gold);
    font-weight: 700;
    white-space: nowrap;
}
.search-header__meta {
    color: var(--text-mute);
    margin: 0 0 24px;
    font-size: 0.95rem;
}
.search-header__form {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg-glass);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: 6px 6px 6px 14px;
    transition: border-color 0.2s, background 0.2s;
}
.search-header__form:focus-within {
    border-color: var(--gold);
    background: var(--bg-glass-2);
}
.search-header__form svg {
    width: 18px;
    height: 18px;
    color: var(--text-faint);
    flex-shrink: 0;
}
.search-header__form input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 1rem;
    color: var(--text);
}
.search-header__form input::placeholder { color: var(--text-faint); }
.search-header__form .btn { padding: 10px 18px; flex-shrink: 0; font-size: 0.92rem; }
@media (max-width: 480px) {
    .search-header__form { flex-direction: column; padding: 6px; gap: 6px; }
    .search-header__form input { padding: 12px; width: 100%; }
    .search-header__form .btn { width: 100%; padding: 12px; }
    .search-header__form svg { display: none; }
}

/* ========== SEARCH SECTIONS ========== */
.search-section__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.search-section__head--centered {
    text-align: center;
    align-items: center;
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 28px;
}
.search-section__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.005em;
    margin: 0;
    color: var(--text);
}

.search-results .grid-games { margin-bottom: 16px; }
.search-results .post-list  { max-width: 980px; margin: 0 auto; }

.search-cta {
    text-align: center;
    margin: 36px 0 8px;
}
.search-cta .btn { padding: 14px 28px; font-size: 1rem; }

/* ========== POST LIST (blog index) ========== */
.post-list { display: flex; flex-direction: column; gap: 24px; }
.post-list__item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: border-color 0.25s;
}
.post-list__item:hover { border-color: var(--border-strong); }
.post-list__media {
    display: block;
    border-radius: var(--r-sm);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    position: relative;
}
.post-list__media img { width: 100%; height: 100%; object-fit: cover; }
.post-list__title { font-size: 1.4rem; margin-bottom: 8px; font-weight: 600; }
.post-list__title a { color: var(--text); transition: color 0.2s; }
.post-list__title a:hover { color: var(--gold); }
@media (max-width: 600px) {
    .post-list__item { grid-template-columns: 1fr; }
    .post-list__media { max-width: 200px; }
}

/* ========== BREADCRUMBS ========== */
.breadcrumbs { padding: 16px 0; font-size: 0.86rem; color: var(--text-mute); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs__sep { color: var(--text-faint); }

/* ========== SINGLE GAME PAGE ========== */
.game-single { padding: 32px 0 64px; }
/* 3-column grid: left ad rail | main (player + content) | right widgets
 * Drop left col below 1320px (laptop), drop everything below 980px. */
.game-single__layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 1320px) {
    .game-single__layout { grid-template-columns: minmax(0, 1fr) 320px; }
    .game-aside--left { display: none; }
}
@media (max-width: 980px) {
    .game-single__layout { grid-template-columns: 1fr; gap: 24px; }
}
.game-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.player { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); margin-bottom: 24px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Mobile: lock player to a sensible 4:3 aspect so games (mostly 4:3 or 16:10)
 * fill the screen without leaving black bars. Also reduces page padding so
 * the player sits closer to the top of the viewport — user sees the game
 * immediately on landing, no scroll-to-find-the-game friction. */
@media (max-width: 768px) {
    .game-single { padding: 16px 0 32px; }
    .player { aspect-ratio: 4 / 3; margin-bottom: 16px; }
    .player__toolbar { padding: 10px 12px; margin-bottom: 16px; }
    .player__title { font-size: 0.95rem; }
}
.player__poster { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; }
.player__poster.is-hidden { display: none; }
.player__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 32px; flex-wrap: wrap; }
.player__title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0; }
.player__actions { display: flex; gap: 8px; }
.player__actions button { padding: 8px 14px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 8px; font-size: 0.86rem; color: var(--text-mute); transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.player__actions button:hover { color: var(--gold); border-color: var(--border-strong); }
.player__actions svg { width: 14px; height: 14px; }

.game-content h2 { margin-top: 40px; font-size: 1.6rem; }
.game-content h3 { margin-top: 28px; }
.game-content p, .game-content li { color: var(--text-mute); }
.game-content ul, .game-content ol { padding-left: 24px; margin-bottom: 16px; }
.game-content li { margin-bottom: 8px; }
.game-content a { color: var(--gold); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; }
.game-content a:hover { text-decoration-color: var(--gold); }

.game-aside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
/* Left rail — single ad slot, sticky while user plays + scrolls */
.game-aside--left {
    position: sticky;
    top: calc(var(--header-h, 64px) + 16px);
    align-self: start;
}
.game-aside--left .ad-slot { min-height: 600px; }
.game-aside--left .ad-slot.is-empty { min-height: 0; }
/* Right rail — flows normally; multiple widgets + ads. Game content
 * is much taller than this column, so sticky-as-a-whole isn't useful;
 * the column ends naturally before the FAQ/related games section. */
.game-aside--right {}
.aside-card { padding: 20px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: var(--r-md); }
.aside-card h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-faint); font-family: var(--font-body); font-weight: 700; margin: 0 0 14px; }
.aside-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 0.92rem; }
.aside-card dt { color: var(--text-mute); }
.aside-card dd { color: var(--text); margin: 0; font-weight: 500; }

/* ========== ARCHIVE / TAXONOMY ========== */
.archive-header { padding: 56px 0 32px; }
.archive-header h1 {
    /* Smaller than hero h1 on purpose — these pages often contain long
     * dynamic strings (search queries, term names) that need to fit
     * without word-by-word vertical stacking. */
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.archive-header p { color: var(--text-mute); max-width: 64ch; margin: 0; }

/* ========== PAGINATION ========== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 10px 14px; min-width: 40px; text-align: center; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 10px; color: var(--text-mute); font-size: 0.9rem; transition: all 0.2s; }
.pagination .page-numbers:hover { color: var(--text); border-color: var(--border-strong); }
.pagination .page-numbers.current { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-bright); }

/* ========== 404 ========== */
.error-404 { padding: 96px 0; text-align: center; }
.error-404 h1 { font-size: clamp(4rem, 12vw, 8rem); margin-bottom: 8px; background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, #a07c25); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.error-404 p { color: var(--text-mute); max-width: 50ch; margin: 0 auto 32px; font-size: 1.05rem; }

/* ========== GAME-PIECE LOADER (marble bounce animation) ==========
 * Shows while the game iframe loads. Generic enough to work for any
 * casual game (just override --gp-shape via the abstraction layer).
 */
.player--loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a2a1f, #0a0f0c);
    z-index: 3;
    animation: gp-loader-fade 0.2s ease;
}
.player--loading::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 50% 50%, var(--marble-red)    8px, transparent 9px),
        radial-gradient(circle at 50% 50%, var(--marble-yellow) 8px, transparent 9px),
        radial-gradient(circle at 50% 50%, var(--marble-green)  8px, transparent 9px),
        radial-gradient(circle at 50% 50%, var(--marble-blue)   8px, transparent 9px),
        radial-gradient(circle at 50% 50%, var(--marble-purple) 8px, transparent 9px);
    background-size: 28px 28px;
    background-repeat: no-repeat;
    background-position:
        calc(50% - 56px) 50%,
        calc(50% - 28px) 50%,
        50%             50%,
        calc(50% + 28px) 50%,
        calc(50% + 56px) 50%;
    animation: gp-loader-bounce 1.2s infinite ease-in-out;
    border-radius: var(--gp-shape, 50%);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,calc(0.4 * var(--gp-elevation, 0.35))));
}
@keyframes gp-loader-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes gp-loader-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
    .player--loading::after { animation: none; }
}

/* ========== HTML SITEMAP (theme-side fallback for SEO plugin sitemaps) ==========
 * Used by [zuma_html_sitemap] shortcode. Also styles common Rank Math /
 * Yoast HTML sitemap classes when those plugins are active.
 */
.zuma-sitemap,
.rank-math-html-sitemap,
.yoast-seo-html-sitemap {
    margin: 24px 0;
}
.zuma-sitemap__section,
.rank-math-html-sitemap__section {
    margin: 0 0 48px;
    padding: 24px 28px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}
.zuma-sitemap__section h2 {
    font-size: 1.4rem;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.zuma-sitemap__group {
    margin: 0 0 24px;
}
.zuma-sitemap__group:last-child {
    margin-bottom: 0;
}
.zuma-sitemap__group h3 {
    font-size: 1.05rem;
    margin: 0 0 10px;
    color: var(--text);
    font-weight: 600;
}
.zuma-sitemap__group h3 a {
    color: var(--gold);
    text-decoration: none;
}
.zuma-sitemap__group h3 a:hover {
    text-decoration: underline;
}
.zuma-sitemap__count {
    color: var(--text-faint);
    font-size: 0.85rem;
    font-weight: 400;
    margin-left: 4px;
}
.zuma-sitemap__list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 32px;
}
@media (max-width: 600px) {
    .zuma-sitemap__list { columns: 1; }
}
.zuma-sitemap__list li {
    break-inside: avoid;
    padding: 4px 0;
    color: var(--text-mute);
    line-height: 1.5;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.zuma-sitemap__list a {
    color: var(--text-mute);
    text-decoration: none;
    transition: color 0.15s;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.zuma-sitemap__list a:hover {
    color: var(--gold);
}
.zuma-sitemap__date {
    color: var(--text-faint);
    font-size: 0.8rem;
    flex-shrink: 0;
}
.zuma-sitemap__more {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--border);
}
.zuma-sitemap__more a {
    color: var(--gold);
    font-weight: 500;
}
/* nested page list (from wp_list_pages) */
.zuma-sitemap__list--pages {
    columns: 2;
}
.zuma-sitemap__list--pages li {
    display: list-item;
    list-style: disc;
    margin-left: 18px;
    padding: 2px 0;
}
.zuma-sitemap__list--pages ul {
    list-style: circle;
    padding-left: 22px;
    margin: 4px 0 4px;
}

/* Style Rank Math's own classes too — same look-and-feel */
.rank-math-html-sitemap__list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 32px;
}
.rank-math-html-sitemap__list li {
    break-inside: avoid;
    padding: 4px 0;
    color: var(--text-mute);
}
.rank-math-html-sitemap__list a {
    color: var(--text-mute);
    text-decoration: none;
}
.rank-math-html-sitemap__list a:hover {
    color: var(--gold);
}
.rank-math-html-sitemap h2,
.rank-math-html-sitemap h3 {
    color: var(--text);
}

/* ========== GAME-PIECE SEPARATOR (decorative section divider) ==========
 * Use sparingly — once or twice on the homepage between major sections.
 * Override --gp-shape for forks: 50% (marbles) / 6px (tiles) / 0 (blocks).
 *
 * <div class="gp-separator" aria-hidden="true">
 *   <span></span><span></span><span></span><span></span><span></span>
 * </div>
 */
.gp-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 56px auto;
    max-width: 480px;
    padding: 0 24px;
}
.gp-separator::before,
.gp-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.gp-separator span {
    width: 10px;
    height: 10px;
    border-radius: var(--gp-shape, 50%);
    flex-shrink: 0;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, calc(0.4 * var(--gp-shine, 1))),
        0 2px 4px rgba(0, 0, 0, calc(0.3 * var(--gp-elevation, 0.35)));
}
.gp-separator span:nth-child(1) { background: var(--marble-red);    }
.gp-separator span:nth-child(2) { background: var(--marble-yellow); transform: scale(1.15); }
.gp-separator span:nth-child(3) { background: var(--marble-green);  transform: scale(1.3);  }
.gp-separator span:nth-child(4) { background: var(--marble-blue);   transform: scale(1.15); }
.gp-separator span:nth-child(5) { background: var(--marble-purple); }

/* ========== ENTRANCE ANIMATIONS ========== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
  .reveal:nth-child(2) { animation-delay: 0.08s; }
  .reveal:nth-child(3) { animation-delay: 0.16s; }
  .reveal:nth-child(4) { animation-delay: 0.24s; }
  @keyframes rise { to { opacity: 1; transform: translateY(0); } }
}

/* ========== PRINT ========== */
@media print {
  .header, .topbar, .ad-slot, .footer, .drawer { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ========== WP CORE ALIGNMENT CLASSES ========== */
.alignleft   { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright  { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: 1em; }
.alignwide   { max-width: 100%; }
.alignfull   { max-width: none; }

/* WP screen-reader-text */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
