/*
Theme Name: Simiyaworld
Theme URI: https://simiyaworld.com/
Author: Simiyaworld
Description: Custom theme for the Simiyaworld game studio and its portfolio.
Version: 0.1.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: simiyaworld
*/

:root {
	--sw-bg: #090a12;
	--sw-surface: #12131e;
	--sw-text: #f7f7fb;
	--sw-muted: #aaa8bb;
	--sw-accent: #7c5cff;
	--sw-border: rgba(255, 255, 255, 0.1);
	--sw-content: 1200px;
	--sw-radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--sw-bg);
	color: var(--sw-text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.sw-shell { width: min(calc(100% - 40px), var(--sw-content)); margin-inline: auto; }
.sw-site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--sw-border); background: rgba(9, 10, 18, .86); backdrop-filter: blur(18px); }
.sw-site-header__inner,
.sw-site-footer__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 28px; }
.sw-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .16em; text-decoration: none; }
.sw-site-header .sw-brand img { width: 64px; height: 64px; object-fit: contain; }
.sw-site-footer .sw-brand img { width: 76px; height: 76px; object-fit: contain; }
.sw-brand > span > span { color: #00dce5; }
.sw-menu { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.sw-menu a { color: var(--sw-muted); text-decoration: none; }
.sw-menu a:hover,
.sw-menu a:focus-visible { color: var(--sw-text); }
.sw-main { min-height: calc(100vh - 153px); }
.sw-section { padding-block: clamp(72px, 10vw, 140px); }
.sw-kicker { color: var(--sw-accent); font-size: .8rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.sw-title { max-width: 900px; margin: 14px 0 24px; font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.05em; }
.sw-intro { max-width: 680px; color: var(--sw-muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.sw-section--surface { border-block: 1px solid var(--sw-border); background: var(--sw-surface); }
.sw-games-header { padding-block: clamp(72px, 9vw, 120px); }
.sw-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.sw-section-heading h2,
.sw-split h2,
.sw-contact h2 { margin: 10px 0 0; font-size: clamp(1.65rem, 3vw, 2.8rem); line-height: 1.05; letter-spacing: -.04em; }
.sw-section-heading > a { color: var(--sw-muted); text-decoration: none; }
.sw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.sw-card { --card-accent: #7c5cff; position: relative; min-height: 210px; border: 0; border-radius: var(--sw-radius); background: linear-gradient(145deg, color-mix(in srgb, var(--card-accent) 14%, var(--sw-surface)), var(--sw-surface) 62%); }
.sw-card__media { position: absolute; z-index: 2; top: -32px; right: 22px; display: block; width: 96px; height: 96px; overflow: hidden; border: 3px solid var(--card-accent); border-radius: 22px; background: var(--sw-surface); box-shadow: 0 18px 42px color-mix(in srgb, var(--card-accent) 25%, transparent); }
.sw-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sw-card__body { display: grid; align-content: end; min-height: 210px; padding: 88px 24px 24px; }
.sw-card__badge { display: inline; margin-right: 8px; color: color-mix(in srgb, var(--card-accent) 72%, white); font-size: .68rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.sw-card--googoolies { --card-accent: #79c96b; }
.sw-card--magical-colors-sort-puzzle { --card-accent: #ff4fa3; }
.sw-card--hokm-plus { --card-accent: #e5294c; }
.sw-card--chess-master-league { --card-accent: #f1dfbd; }
.sw-card--lovely-family { --card-accent: #47c4df; }
.sw-card--my-pocket-farmer { --card-accent: #f4c542; }
.sw-card--aal { --card-accent: #7c6b91; }
.sw-card--nowrouz,
.sw-card--nowruz { --card-accent: #df7fa3; }
.sw-card--rostam { --card-accent: #d14b36; }
.sw-card--coming-soon { display: block; overflow: hidden; min-height: 0; }
.sw-card--coming-soon .sw-card__media { position: relative; top: auto; right: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 0; box-shadow: none; cursor: default; }
.sw-card--coming-soon .sw-card__body { min-height: 0; padding: 24px; }
.sw-card__title { margin: 0; font-size: 1.35rem; }
.sw-card__title a { text-decoration: none; }
.sw-card__meta { margin: 8px 0 0; color: var(--sw-muted); }
.sw-game-hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(40px, 7vw, 100px); }
.sw-game-hero__art { overflow: hidden; min-height: 420px; border-radius: var(--sw-radius); background: var(--sw-surface); }
.sw-game-hero__art img { width: 100%; height: 100%; object-fit: cover; }
.sw-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sw-button { display: inline-flex; min-height: 48px; align-items: center; padding: 0 20px; border-radius: 999px; background: var(--sw-text); color: var(--sw-bg); font-weight: 750; text-decoration: none; }
.sw-button--ghost { border: 1px solid var(--sw-border); background: transparent; color: var(--sw-text); }
.sw-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 9vw, 140px); }
.sw-contact { background: linear-gradient(135deg, rgba(124, 92, 255, .25), rgba(0, 214, 201, .1)); }
.sw-contact__inner { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.sw-site-footer { border-top: 1px solid var(--sw-border); color: var(--sw-muted); }
.sw-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-block: 72px; }
.sw-footer-grid p { max-width: 420px; }
.sw-footer-grid nav { display: grid; align-content: start; gap: 10px; }
.sw-footer-grid nav strong { margin-bottom: 8px; color: var(--sw-text); }
.sw-footer-grid nav a { text-decoration: none; }
.sw-footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-block: 24px; border-top: 1px solid var(--sw-border); }
.sw-home-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: center; gap: clamp(50px, 8vw, 120px); }
.sw-home-hero--archive { min-height: 340px; }
.sw-showcase { position: relative; width: min(100%, 510px); aspect-ratio: 1.2; justify-self: end; isolation: isolate; }
.sw-showcase__glow { position: absolute; inset: 12% 3% 4% 12%; border-radius: 45%; background: radial-gradient(circle at 55% 45%, rgba(0,229,255,.28), rgba(124,92,255,.16) 44%, transparent 72%); filter: blur(24px); }
.sw-showcase__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateY(16px) scale(.96) rotate(2deg); transition: opacity 1.1s ease, transform 1.1s ease; pointer-events: none; }
.sw-showcase__slide.is-next { z-index: 1; opacity: .32; transform: translate(-15%, 3%) scale(1.05) rotate(5deg); filter: blur(14px) saturate(1.2); }
.sw-showcase__slide.is-active { z-index: 2; opacity: 1; transform: translateY(0) scale(1) rotate(-2deg); }
.sw-showcase__slide::before { content: ""; position: absolute; inset: 8% 6% -3% 12%; z-index: -1; border: 1px solid rgba(255,255,255,.17); border-radius: 38px; transform: rotate(7deg); background: rgba(18,19,30,.72); }
.sw-showcase__slide img { width: 61%; height: 100%; margin-inline: auto 9%; border: 8px solid rgba(255,255,255,.92); border-radius: 30px; object-fit: cover; box-shadow: 0 35px 90px rgba(0,0,0,.5); }
.sw-showcase__label { position: absolute; z-index: 4; left: 0; bottom: 12%; display: grid; padding: 14px 20px; border: 1px solid rgba(159,255,151,.4); border-radius: 16px; background: linear-gradient(135deg, rgba(52,127,79,.96), rgba(20,83,76,.94)); box-shadow: 0 18px 45px rgba(0,0,0,.3), 0 0 38px rgba(99,220,133,.18); backdrop-filter: blur(16px); }
.sw-showcase__label span { color: #bfffc0; font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.sw-showcase__label strong { font-size: 1.1rem; }
.sw-legal { max-width: 840px; }
.sw-legal h1 { margin: 0 0 18px; font-size: clamp(2.1rem, 4.5vw, 3.8rem); line-height: 1; letter-spacing: -.045em; }
.sw-legal h2 { margin: 44px 0 12px; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.2; }
.sw-legal p,
.sw-legal li { color: var(--sw-muted); }
.sw-legal a:not(.sw-button) { color: var(--sw-text); }
.sw-legal__updated { margin-bottom: 44px; font-size: .92rem; }
@media (max-width: 820px) {
	.sw-grid { grid-template-columns: 1fr; }
	.sw-game-hero { grid-template-columns: 1fr; }
	.sw-menu { gap: 14px; font-size: .9rem; }
	.sw-split,
	.sw-footer-grid { grid-template-columns: 1fr; }
	.sw-contact__inner,
	.sw-section-heading { align-items: start; flex-direction: column; }
	.sw-home-hero { grid-template-columns: 1fr; }
	.sw-showcase { width: min(100%, 430px); justify-self: center; }
	.sw-card { min-height: 190px; }
	.sw-card__media { top: -24px; right: 18px; width: 82px; height: 82px; border-radius: 18px; }
	.sw-card__body { min-height: 190px; padding: 74px 20px 20px; }
	.sw-card--coming-soon .sw-card__media { width: 100%; height: auto; }
	.sw-card--coming-soon .sw-card__body { padding: 20px; }
}

/* Magical Colors — game-specific mystical puzzle presentation */
.sw-game--magical-colors { --mc-gold: #ffc846; --mc-pink: #ff3d91; --mc-purple: #7d4dff; overflow: hidden; background: #100c1e; color: #fff; }
.mc-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 72% 40%, rgba(0,221,231,.2), transparent 30%), radial-gradient(circle at 15% 12%, rgba(125,77,255,.35), transparent 36%), linear-gradient(145deg, #130d25, #080713 70%); }
.mc-hero::before { content: ""; position: absolute; inset: 0; opacity: .24; background-image: radial-gradient(circle, #fff 0 1px, transparent 1.5px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 80%); }
.mc-hero__inner { position: relative; display: grid; min-height: 760px; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(48px, 8vw, 110px); padding-block: 90px; }
.mc-kicker, .mc-intro span, .mc-heading span { color: var(--mc-gold); font-size: .78rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.mc-copy h1 { margin: 16px 0 26px; font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: .86; letter-spacing: -.065em; }
.mc-copy h1 span { color: var(--mc-pink); text-shadow: 0 0 50px rgba(255,61,145,.32); }
.mc-copy p { max-width: 620px; color: #c9c2da; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.mc-google { display: inline-flex; min-width: 190px; align-items: center; gap: 12px; margin-top: 28px; padding: 10px 17px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; background: #050507; color: #fff; text-decoration: none; box-shadow: 0 18px 45px rgba(0,0,0,.35); }
.mc-google svg { width: 30px; height: 34px; }
.mc-google > span { display: grid; }
.mc-google small { font-size: .62rem; letter-spacing: .08em; }
.mc-google strong { font-size: 1.15rem; line-height: 1.2; }
.mc-hero-art { position: relative; justify-self: center; width: min(100%, 390px); }
.mc-hero-art::before { content: ""; position: absolute; inset: 10% -12%; z-index: -1; border-radius: 50%; background: linear-gradient(135deg, var(--mc-purple), var(--mc-pink), #00dce5); filter: blur(45px); opacity: .42; }
.mc-hero-art img { width: 100%; max-height: 650px; object-fit: contain; filter: drop-shadow(0 35px 50px rgba(0,0,0,.6)); }
.mc-intro, .mc-gallery { padding-block: clamp(80px, 10vw, 150px); }
.mc-intro { background: #f5e8cf; color: #21172e; }
.mc-intro__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 9vw, 130px); }
.mc-intro h2, .mc-heading h2 { margin: 12px 0 0; font-size: clamp(1.9rem, 3.5vw, 3.5rem); line-height: .98; letter-spacing: -.045em; }
.mc-feature-list { display: grid; gap: 16px; }
.mc-feature-list > div { display: grid; grid-template-columns: 110px 1fr; align-items: start; gap: 24px; padding: 24px 0; border-bottom: 1px solid rgba(33,23,46,.16); }
.mc-feature-list b { color: #6b3ed5; font-size: 1.25rem; }
.mc-feature-list p { margin: 0; color: #554963; }
.mc-gallery { background: linear-gradient(180deg, #100c1e, #19102d); }
.mc-heading { margin-bottom: 58px; }
.mc-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mc-gallery-grid figure { margin: 0; filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); }
.mc-gallery-grid figure:nth-child(3n + 2) { transform: translateY(34px); }
.mc-gallery-grid img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
@media (max-width: 820px) {
	.mc-hero__inner, .mc-intro__grid { grid-template-columns: 1fr; }
	.mc-hero-art { width: min(82%, 350px); }
	.mc-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.mc-gallery-grid figure:nth-child(3n + 2) { transform: none; }
	.mc-feature-list > div { grid-template-columns: 85px 1fr; }
}

/* Lovely Family — bright jungle adventure */
.sw-game--lovely-family { --lf-yellow: #ffd33d; --lf-green: #86b92b; --lf-ink: #24351d; overflow: hidden; background: #eef6ce; color: var(--lf-ink); }
.lf-hero { position: relative; min-height: 760px; display: grid; align-items: center; overflow: hidden; background: radial-gradient(circle at 15% 15%, rgba(255,255,255,.7), transparent 28%), linear-gradient(145deg, #dff08b, #8ac250 55%, #527e2d); }
.lf-hero::before { content: ""; position: absolute; inset: auto -8% -210px; height: 390px; border-radius: 50% 50% 0 0; background: #fff7c9; transform: rotate(3deg); }
.lf-hero__inner { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(46px, 7vw, 100px); padding-block: 95px 165px; }
.lf-kicker, .lf-heading span { color: #456c23; font-size: .78rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.lf-copy h1 { margin: 18px 0 28px; color: #fff; font-size: clamp(2.8rem, 5.5vw, 5.4rem); line-height: .86; letter-spacing: -.06em; text-shadow: 0 7px 0 rgba(55,94,25,.15); }
.lf-copy h1 span { color: var(--lf-yellow); }
.lf-copy p { max-width: 570px; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.lf-google { display: inline-flex; min-width: 190px; align-items: center; gap: 12px; margin-top: 28px; padding: 10px 17px; border-radius: 14px; background: #131713; color: #fff; text-decoration: none; box-shadow: 0 18px 45px rgba(36,53,29,.28); }
.lf-google svg { width: 30px; height: 34px; }
.lf-google > span { display: grid; }
.lf-google small { font-size: .62rem; letter-spacing: .08em; }
.lf-google strong { font-size: 1.15rem; line-height: 1.2; }
.lf-hero-art { position: relative; overflow: hidden; padding: 9px; border-radius: 38px; background: rgba(255,255,255,.52); box-shadow: 0 35px 85px rgba(45,72,24,.32); transform: rotate(1.5deg); }
.lf-hero-art img { width: 100%; aspect-ratio: 16 / 9; border-radius: 30px; object-fit: cover; }
.lf-video, .lf-features, .lf-gallery { padding-block: clamp(80px, 10vw, 150px); }
.lf-video { background: #fff7c9; }
.lf-heading { margin-bottom: 56px; }
.lf-heading h2 { margin: 10px 0 0; font-size: clamp(1.9rem, 3.5vw, 3.5rem); line-height: .98; letter-spacing: -.045em; }
.lf-video-frame { overflow: hidden; padding: 10px; border-radius: 32px; background: linear-gradient(135deg, #88bd2d, #ffd33d); box-shadow: 0 28px 70px rgba(64,92,31,.22); }
.lf-video-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 23px; }
.lf-features { background: #527e2d; color: #fff; }
.lf-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lf-feature-grid > div { min-height: 230px; padding: 34px; border-radius: 26px; background: rgba(255,255,255,.1); }
.lf-feature-grid b { color: var(--lf-yellow); font-size: 1.8rem; }
.lf-feature-grid p { margin-top: 48px; color: #e5f0db; }
.lf-gallery { background: #eef6ce; }
.lf-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lf-gallery-grid figure { overflow: hidden; margin: 0; border: 7px solid #fff; border-radius: 26px; background: #fff; box-shadow: 0 20px 50px rgba(52,82,30,.14); }
.lf-gallery-grid figure:nth-child(3n) { transform: rotate(1deg); }
.lf-gallery-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 820px) {
	.lf-hero__inner, .lf-feature-grid { grid-template-columns: 1fr; }
	.lf-hero-art { transform: none; }
	.lf-gallery-grid { grid-template-columns: 1fr; gap: 10px; }
	.lf-gallery-grid figure { border-width: 4px; border-radius: 18px; transform: none; }
}

/* Hokm Plus — cinematic red-and-gold card table */
.sw-game--hokm-plus { --hp-red: #aa1234; --hp-gold: #ffc629; overflow: hidden; background: #10080c; color: #fff8e9; }
.hp-hero { position: relative; min-height: 760px; display: grid; align-items: center; overflow: hidden; background: radial-gradient(circle at 75% 42%, rgba(204,22,64,.42), transparent 34%), linear-gradient(135deg, #18070d, #09070a 72%); }
.hp-hero::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: radial-gradient(circle, var(--hp-gold) 0 2px, transparent 2.5px); background-size: 42px 42px; mask-image: linear-gradient(90deg, transparent, #000); }
.hp-hero__inner { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(46px, 7vw, 100px); padding-block: 100px; }
.hp-kicker, .hp-heading span { color: var(--hp-gold); font-size: .78rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.hp-copy h1 { margin: 18px 0 28px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.8rem, 5.5vw, 5.4rem); font-weight: 500; line-height: .86; letter-spacing: -.055em; text-transform: uppercase; }
.hp-copy h1 span { color: var(--hp-gold); font-size: .62em; text-shadow: 0 6px 35px rgba(255,198,41,.28); }
.hp-copy p { max-width: 580px; color: #cfbfc4; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hp-google { display: inline-flex; min-width: 190px; align-items: center; gap: 12px; margin-top: 28px; padding: 10px 17px; border: 1px solid rgba(255,198,41,.55); border-radius: 11px; background: #050506; color: #fff; text-decoration: none; box-shadow: 0 18px 45px rgba(0,0,0,.4); }
.hp-google svg { width: 30px; height: 34px; }
.hp-google > span { display: grid; }
.hp-google small { font-size: .62rem; letter-spacing: .08em; }
.hp-google strong { font-size: 1.15rem; line-height: 1.2; }
.hp-hero-art { position: relative; overflow: hidden; border: 1px solid rgba(255,198,41,.5); border-radius: 50% 50% 24px 24px; box-shadow: 0 38px 100px rgba(0,0,0,.55); }
.hp-hero-art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 10px rgba(255,255,255,.035); pointer-events: none; }
.hp-hero-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hp-video, .hp-features, .hp-gallery { padding-block: clamp(80px, 10vw, 150px); }
.hp-video { background: #f2c438; color: #18070d; }
.hp-heading { margin-bottom: 56px; }
.hp-heading h2 { margin: 12px 0 0; font-family: Georgia, serif; font-size: clamp(1.9rem, 3.5vw, 3.5rem); font-weight: 500; line-height: .98; letter-spacing: -.04em; }
.hp-video .hp-heading span { color: #7d1029; }
.hp-video-frame { overflow: hidden; border: 10px solid #18070d; border-radius: 28px; box-shadow: 0 28px 70px rgba(88,40,4,.28); }
.hp-video-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.hp-features { background: #710e27; }
.hp-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hp-feature-grid > div { min-height: 230px; padding: 34px; border: 1px solid rgba(255,198,41,.3); border-radius: 24px; background: rgba(0,0,0,.14); }
.hp-feature-grid b { color: var(--hp-gold); font-family: Georgia, serif; font-size: 1.7rem; }
.hp-feature-grid p { margin-top: 48px; color: #ead5dc; }
.hp-gallery { background: linear-gradient(145deg, #10080c, #240a12); }
.hp-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hp-gallery-grid figure { overflow: hidden; margin: 0; border: 1px solid rgba(255,198,41,.3); border-radius: 20px; background: #090607; box-shadow: 0 25px 60px rgba(0,0,0,.35); }
.hp-gallery-grid figure:first-child { grid-column: 1 / -1; }
.hp-gallery-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 820px) {
	.hp-hero__inner, .hp-feature-grid { grid-template-columns: 1fr; }
	.hp-hero-art { border-radius: 20px; }
	.hp-gallery-grid { grid-template-columns: 1fr; gap: 12px; }
	.hp-gallery-grid figure:first-child { grid-column: auto; }
}

/* Chess Master League — black, gold, and tournament-focused */
.sw-game--chess-master-league { --cml-gold: #d8aa4b; --cml-teal: #278d87; overflow: hidden; background: #111214; color: #f7f2e7; }
.cml-hero { position: relative; min-height: 760px; display: grid; align-items: center; overflow: hidden; background: #111214; }
.cml-hero__backdrop { position: absolute; inset: 0; opacity: .35; background: linear-gradient(120deg, rgba(0,0,0,.94) 8%, rgba(0,0,0,.45) 58%, #111214 100%), url('/wp-content/uploads/2026/07/chess-master-league/chess-master-league-game-modes.webp') center/cover; filter: saturate(.7); }
.cml-hero__inner { position: relative; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(46px, 7vw, 100px); padding-block: 100px; }
.cml-kicker, .cml-heading span { color: var(--cml-gold); font-size: .78rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.cml-copy h1 { margin: 18px 0 28px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 500; line-height: .88; letter-spacing: -.05em; }
.cml-copy h1 span { color: var(--cml-gold); font-size: .52em; letter-spacing: -.03em; }
.cml-copy p { max-width: 590px; color: #c8c3b9; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.cml-google { display: inline-flex; min-width: 190px; align-items: center; gap: 12px; margin-top: 28px; padding: 10px 17px; border: 1px solid rgba(216,170,75,.5); border-radius: 5px; background: #050607; color: #fff; text-decoration: none; box-shadow: 0 18px 45px rgba(0,0,0,.4); }
.cml-google svg { width: 30px; height: 34px; }
.cml-google > span { display: grid; }
.cml-google small { font-size: .62rem; letter-spacing: .08em; }
.cml-google strong { font-size: 1.15rem; line-height: 1.2; }
.cml-hero-card { position: relative; padding: 14px; border: 1px solid rgba(216,170,75,.55); background: rgba(10,10,11,.78); box-shadow: 0 40px 100px rgba(0,0,0,.55); transform: rotate(1.5deg); }
.cml-hero-card::before { content: ""; position: absolute; inset: -22px 22px 22px -22px; z-index: -1; border: 1px solid rgba(216,170,75,.22); }
.cml-hero-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cml-features, .cml-gallery { padding-block: clamp(80px, 10vw, 150px); }
.cml-features { border-block: 1px solid rgba(216,170,75,.22); background: #191a1c; }
.cml-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(216,170,75,.22); }
.cml-feature-grid > div { padding: clamp(28px, 4vw, 52px); background: #191a1c; }
.cml-feature-grid b { color: var(--cml-gold); font-family: Georgia, serif; font-size: 1.3rem; }
.cml-feature-grid h2 { margin: 38px 0 14px; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 500; }
.cml-feature-grid p { color: #aaa69e; }
.cml-gallery { background: linear-gradient(145deg, #101113, #181513); }
.cml-heading { margin-bottom: 58px; }
.cml-heading h2 { margin: 12px 0 0; font-family: Georgia, serif; font-size: clamp(1.9rem, 3.5vw, 3.5rem); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.cml-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.cml-gallery-grid figure { overflow: hidden; margin: 0; border: 1px solid rgba(216,170,75,.28); background: #08090a; box-shadow: 0 24px 60px rgba(0,0,0,.32); }
.cml-gallery-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.cml-gallery-grid figure:hover img { transform: scale(1.025); }
@media (max-width: 820px) {
	.cml-hero__inner, .cml-feature-grid { grid-template-columns: 1fr; }
	.cml-hero-card { transform: none; }
	.cml-gallery-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* Googoolies — intentionally game-specific */
.sw-game--googoolies { --gg-ink: #26223e; --gg-blue: #55d8f0; --gg-orange: #ff9c45; --gg-pink: #ff6f91; overflow: hidden; background: #fff8e9; color: var(--gg-ink); }
.gg-hero { position: relative; min-height: 760px; display: grid; align-items: center; overflow: hidden; background: radial-gradient(circle at 78% 24%, #fff 0 8%, transparent 28%), linear-gradient(145deg, #8be9f4 0%, #d9f7f0 44%, #fff0c7 100%); }
.gg-hero::before { content: ""; position: absolute; inset: auto -8% -220px; height: 420px; border-radius: 50% 50% 0 0; background: #fff8e9; transform: rotate(-4deg); }
.gg-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 2fr 1fr; align-items: center; gap: 60px; padding-block: 100px 180px; }
.gg-copy h1 { margin: 16px 0 24px; color: #fff; font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: .9; letter-spacing: -.06em; text-shadow: 0 8px 0 rgba(38,34,62,.08); }
.gg-copy > p { max-width: 650px; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.gg-pill { display: inline-flex; padding: 9px 16px; border: 2px solid rgba(38,34,62,.15); border-radius: 999px; background: rgba(255,255,255,.45); font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.gg-character-wrap { position: relative; display: grid; place-items: center; min-height: 360px; }
.gg-character { position: relative; z-index: 2; width: min(100%, 140px); filter: drop-shadow(0 32px 28px rgba(72,90,120,.22)); animation: gg-float 4s ease-in-out infinite; image-rendering: auto; }
.gg-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.gg-orb--one { width: 180px; height: 180px; background: rgba(255,255,255,.45); }
.gg-orb--two { width: 230px; height: 78px; border: 3px solid rgba(255,255,255,.5); transform: rotate(-18deg); }
.gg-store { display: inline-flex; min-width: 184px; align-items: center; gap: 11px; padding: 9px 16px; border-radius: 13px; color: #fff; text-decoration: none; box-shadow: 0 10px 24px rgba(38,34,62,.16); }
.gg-store--google { background: #17171b; }
.gg-store--apple { background: #000; }
.gg-store svg { flex: 0 0 29px; width: 29px; height: 33px; }
.gg-store > span { display: grid; }
.gg-store small { font-size: .62rem; letter-spacing: .08em; }
.gg-store strong { font-size: 1.15rem; line-height: 1.2; }
.gg-video-section, .gg-gallery, .gg-features, .gg-how { padding-block: clamp(80px, 10vw, 150px); }
.gg-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 56px; }
.gg-section-heading span, .gg-how span { color: #e86f51; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.gg-section-heading h2, .gg-how h2 { margin: 0; font-size: clamp(1.9rem, 3.5vw, 3.5rem); line-height: .98; letter-spacing: -.045em; }
.gg-video-frame { overflow: hidden; padding: 12px; border-radius: 38px; background: linear-gradient(135deg, var(--gg-blue), var(--gg-pink), var(--gg-orange)); box-shadow: 0 32px 80px rgba(71,53,80,.2); }
.gg-video-frame video,
.gg-video-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 28px; background: #151222; }
.gg-gallery { background: #edf9ef; }
.gg-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gg-gallery-grid figure { overflow: hidden; margin: 0; border: 8px solid #fff; border-radius: 26px; background: #fff; box-shadow: 0 18px 48px rgba(34,54,45,.12); transform: rotate(-1deg); }
.gg-gallery-grid figure:nth-child(even) { transform: rotate(1deg) translateY(24px); }
.gg-gallery-grid img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.gg-features { background: #26223e; color: #fff; }
.gg-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gg-feature-grid > div { min-height: 260px; padding: 34px; border: 1px solid rgba(255,255,255,.11); border-radius: 28px; background: rgba(255,255,255,.055); }
.gg-feature-grid b { color: var(--gg-blue); }
.gg-feature-grid h3 { margin: 42px 0 10px; font-size: 1.6rem; }
.gg-feature-grid p { color: #c9c5da; }
.gg-how { background: #ffca68; }
.gg-how__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.gg-how ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.gg-how li { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 20px; background: rgba(255,255,255,.55); font-size: 1.08rem; font-weight: 700; }
.gg-how li b { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--gg-ink); color: #fff; }
@keyframes gg-float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-18px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .gg-character { animation: none; } }
@media (max-width: 820px) {
	.gg-hero__inner, .gg-how__inner { grid-template-columns: 1fr; }
	.gg-character-wrap { min-height: 340px; }
	.gg-character { width: 140px; }
	.gg-section-heading { align-items: start; flex-direction: column; }
	.gg-feature-grid { grid-template-columns: 1fr; }
	.gg-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.gg-gallery-grid figure { border-width: 4px; border-radius: 16px; transform: none; }
	.gg-gallery-grid figure:nth-child(even) { transform: translateY(14px); }
}
