/*
Theme Name: PixelPopPlay
Text Domain: pixelpopplay
Description: A fast, colorful, mobile-first browser game portal.
Version: 1.6.5
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

:root {
	--ink: #1d1733;
	--muted: #6f6980;
	--paper: #fffdf9;
	--panel: #ffffff;
	--line: #e9e5f2;
	--purple: #6d38f0;
	--purple-dark: #4d1ed0;
	--pink: #ff4d9d;
	--yellow: #ffcf3f;
	--cyan: #25c9e8;
	--lime: #89db35;
	--coral: #ff7657;
	--blue: #4c82ff;
	--radius: 22px;
	--shadow: 0 20px 55px rgba(48, 31, 86, .12);
	--wrap: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Trebuchet MS", "Avenir Next", Avenir, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.wrap { width: var(--wrap); margin-inline: auto; }
.screen-reader-text {
	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: fixed; top: -100px; left: 16px; z-index: 9999; background: #fff; color: var(--purple); padding: 10px 16px; border-radius: 0 0 10px 10px; font-weight: 800; }
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,253,249,.92);
	border-bottom: 1px solid rgba(109,56,240,.1);
	backdrop-filter: blur(16px);
}
.header-inner { width: var(--wrap); margin: auto; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 900; letter-spacing: -.04em; white-space: nowrap; }
.brand > span:last-child > span { color: var(--pink); }
.brand-mark { width: 34px; height: 34px; position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; transform: rotate(-4deg); }
.brand-mark i { display: block; border-radius: 5px; }
.brand-mark i:nth-child(1) { background: var(--purple); }
.brand-mark i:nth-child(2) { background: var(--pink); }
.brand-mark i:nth-child(3) { background: var(--yellow); }
.brand-mark i:nth-child(4) { background: var(--cyan); }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: .92rem; font-weight: 800; }
.site-nav a { position: relative; }
.site-nav a:not(.nav-play):after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 3px; border-radius: 3px; background: var(--pink); transition: right .2s ease; }
.site-nav a:hover:after { right: 0; }
.site-nav .nav-play { background: var(--ink); color: #fff; padding: 10px 17px; border-radius: 999px; box-shadow: 0 8px 18px rgba(29,23,51,.18); }
.menu-toggle { display: none; border: 0; background: transparent; width: 46px; height: 46px; border-radius: 12px; cursor: pointer; }
.menu-icon, .menu-icon:before, .menu-icon:after { display: block; width: 24px; height: 3px; background: var(--ink); border-radius: 3px; transition: .2s ease; }
.menu-icon { margin: auto; position: relative; }
.menu-icon:before, .menu-icon:after { content: ""; position: absolute; left: 0; }
.menu-icon:before { top: -8px; } .menu-icon:after { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon:before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon:after { top: 0; transform: rotate(-45deg); }

.hero {
	position: relative; overflow: hidden;
	background: linear-gradient(135deg, #f3edff 0%, #fff8ed 54%, #eafffb 100%);
	padding: 82px 0 88px;
}
.hero:before { content: ""; position: absolute; inset: 0; opacity: .28; background-image: radial-gradient(#6d38f0 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to right, black, transparent 70%); }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; }
.hero-blob-one { width: 250px; height: 250px; background: #ffb8db; right: -60px; top: -80px; }
.hero-blob-two { width: 180px; height: 180px; background: #91edff; left: 42%; bottom: -100px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: 70px; align-items: center; }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--purple); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { background: rgba(255,255,255,.78); border: 1px solid rgba(109,56,240,.14); padding: 8px 13px; border-radius: 999px; }
.eyebrow span { color: var(--lime); font-size: .75rem; }
.hero h1 { margin: 20px 0 20px; font-size: clamp(3.45rem, 7vw, 6.2rem); line-height: .9; letter-spacing: -.075em; }
.hero h1 em { color: var(--purple); font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em:after { content: ""; position: absolute; left: 2%; right: 0; bottom: -8px; height: 10px; background: var(--yellow); border-radius: 50%; transform: rotate(-1deg); z-index: -1; }
.hero-copy > p { max-width: 610px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; font-weight: 900; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--purple); color: #fff; box-shadow: 0 12px 25px rgba(109,56,240,.26); }
.button-primary:hover { background: var(--purple-dark); }
.button-ghost { background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(48,31,86,.07); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; color: var(--muted); font-size: .84rem; font-weight: 800; }
.hero-proof span::first-letter { color: var(--lime); }

.hero-console { width: min(420px, 100%); margin: auto; background: var(--purple); border: 10px solid #4922bd; border-radius: 34px; padding: 16px 22px 24px; box-shadow: 0 30px 0 #341886, 0 45px 70px rgba(61,30,132,.34); transform: rotate(3deg); }
.console-top { display: flex; align-items: center; gap: 7px; padding-bottom: 12px; color: #fff; }
.console-top span { width: 8px; height: 8px; border-radius: 50%; background: #ff76b4; }
.console-top span:nth-child(2) { background: var(--yellow); }.console-top span:nth-child(3) { background: var(--cyan); }
.console-top b { margin-left: auto; font-size: .68rem; letter-spacing: .18em; }
.console-screen { min-height: 235px; border: 9px solid #261657; border-radius: 18px; background: #c8f4d4; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #261657; position: relative; box-shadow: inset 0 0 30px rgba(37,100,72,.2); }
.console-screen:after { content: ""; position: absolute; inset: 0; opacity: .11; background: repeating-linear-gradient(0deg, transparent 0 3px, #173b27 3px 4px); }
.console-icon { font-size: 5rem; line-height: 1; filter: drop-shadow(5px 5px 0 #77c28c); animation: hover 2.4s ease-in-out infinite; }
.console-screen strong { font-size: 2rem; letter-spacing: .05em; line-height: 1; margin-top: 8px; z-index: 1; }
.console-screen small { font-weight: 900; letter-spacing: .2em; margin-top: 9px; z-index: 1; }
.pixel-star { position: absolute; font-size: 1.5rem; color: var(--purple); }.star-a { left: 30px; top: 36px; }.star-b { right: 38px; bottom: 34px; }
.console-controls { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 0; }
.dpad { width: 76px; height: 76px; position: relative; }.dpad i { position: absolute; background: #24164f; border-radius: 6px; }.dpad i:first-child { width: 28px; height: 76px; left: 24px; }.dpad i:last-child { height: 28px; width: 76px; top: 24px; }
.console-buttons { display: flex; gap: 12px; transform: rotate(-15deg); }.console-buttons i { width: 37px; height: 37px; border-radius: 50%; background: var(--pink); border: 5px solid #c52c75; }.console-buttons i:last-child { background: var(--yellow); border-color: #d5a51a; }

.section { padding: 84px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.055em; }
.section-heading > p, .section-heading > a { color: var(--muted); font-weight: 700; margin: 0; }
.section-heading > a { color: var(--purple); }
.section-categories { padding-bottom: 52px; }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.category-card { min-height: 134px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px rgba(48,31,86,.06); transition: .18s ease; }
.category-card:hover { border-color: #cbbbf6; transform: translateY(-4px); box-shadow: var(--shadow); }
.category-icon { width: 54px; height: 54px; display: grid; place-items: center; background: #f3eeff; border-radius: 16px; font-size: 1.75rem; }
.category-card strong, .category-card small { display: block; }.category-card strong { line-height: 1.2; }.category-card small { color: var(--muted); font-size: .78rem; line-height: 1.35; margin-top: 5px; }.category-card b { color: var(--purple); font-size: 1.4rem; }
.section-featured { background: #f8f5ff; border-block: 1px solid #eee8fb; }
.featured-grid, .games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.game-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 11px 30px rgba(48,31,86,.07); transition: transform .2s ease, box-shadow .2s ease; }
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.game-card > a { display: block; height: 100%; }
.game-art { height: 165px; display: grid; place-items: center; position: relative; overflow: hidden; background: #eee8ff; }
.game-art:before, .game-art:after { content: ""; position: absolute; width: 100px; height: 100px; border-radius: 24px; background: rgba(255,255,255,.25); transform: rotate(25deg); }.game-art:before { left: -25px; top: -35px; }.game-art:after { right: -35px; bottom: -45px; }
.game-art span { font-size: 4.6rem; filter: drop-shadow(6px 7px 0 rgba(29,23,51,.14)); position: relative; z-index: 1; transition: transform .2s ease; }
.game-card:hover .game-art span { transform: scale(1.08) rotate(-4deg); }
.game-card-body { padding: 21px; }
.game-category { color: var(--purple); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.game-card h3 { margin: 5px 0 8px; font-size: 1.35rem; letter-spacing: -.035em; line-height: 1.1; }
.game-card p { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 0 0 15px; }
.play-link { color: var(--purple); font-weight: 900; font-size: .88rem; }
.game-violet .game-art, .game-violet.game-title-icon { background: #e9dfff; }.game-lime .game-art, .game-lime.game-title-icon { background: #e0f8bc; }.game-cyan .game-art, .game-cyan.game-title-icon { background: #c9f7ff; }
.game-pink .game-art, .game-pink.game-title-icon { background: #ffd9eb; }.game-orange .game-art, .game-orange.game-title-icon { background: #ffe1bf; }.game-yellow .game-art, .game-yellow.game-title-icon { background: #fff1ae; }
.game-blue .game-art, .game-blue.game-title-icon { background: #dbe6ff; }.game-coral .game-art, .game-coral.game-title-icon { background: #ffd9cf; }.game-sky .game-art, .game-sky.game-title-icon { background: #d9f4ff; }.game-red .game-art, .game-red.game-title-icon { background: #ffd8d8; }
.ad-slot { min-height: 92px; margin: 30px 0; display: grid; place-items: center; color: var(--muted); border: 1px dashed #d8d2e1; border-radius: 14px; background: #fff; font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; }
.all-games { padding-top: 60px; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 15px; margin-bottom: 18px; scrollbar-width: thin; }
.filter-button { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 9px 16px; border-radius: 999px; font-weight: 900; cursor: pointer; }
.filter-button:hover, .filter-button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.games-grid { grid-template-columns: repeat(4, 1fr); }
.games-grid .game-art { height: 135px; }.games-grid .game-art span { font-size: 3.5rem; }.games-grid .game-card-body { padding: 17px; }.games-grid .game-card h3 { font-size: 1.15rem; }.games-grid .game-card p { font-size: .82rem; }
.game-card[hidden] { display: none !important; }
.trust-section { background: var(--ink); color: #fff; }
.trust-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.trust-section .kicker { color: var(--yellow); }.trust-section h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: .95; letter-spacing: -.065em; margin: 10px 0 22px; }.trust-section > .wrap > div:first-child p { color: #beb7d0; max-width: 510px; }
.trust-points { display: grid; gap: 14px; }.trust-points article { display: flex; gap: 16px; padding: 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.055); }.trust-points article > span { font-size: 2rem; }.trust-points h3 { margin: 0 0 3px; }.trust-points p { margin: 0; color: #bdb6ce; font-size: .9rem; }

.site-footer { background: #120d24; color: #fff; padding: 56px 0 0; }
.footer-inner { width: var(--wrap); margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.brand-light { color: #fff; }.footer-brand p { color: #aca4bc; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }.footer-links strong, .footer-links a { display: block; }.footer-links strong { color: var(--yellow); margin-bottom: 10px; }.footer-links a { color: #c1b9d1; padding: 4px 0; }.footer-links a:hover { color: #fff; }
.footer-bottom { width: var(--wrap); margin: 40px auto 0; border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; color: #81798f; font-size: .82rem; }

/* Game pages */
.game-page { padding: 34px 0 90px; background: linear-gradient(#faf8ff, #fffdf9 520px); }
.breadcrumbs { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .8rem; margin-bottom: 28px; }.breadcrumbs a:hover { color: var(--purple); }
.game-title-row { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
.game-title-icon { width: 82px; height: 82px; flex: 0 0 82px; display: grid; place-items: center; border-radius: 22px; font-size: 2.7rem; box-shadow: inset 0 -6px 0 rgba(29,23,51,.08); }
.game-title-row h1 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.065em; line-height: 1; margin: 2px 0 7px; }.game-title-row p { margin: 0; color: var(--muted); }
.game-shell { border-radius: 24px; overflow: hidden; background: #1b1532; box-shadow: 0 26px 65px rgba(38,24,76,.22); }
.game-toolbar { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 9px 15px 9px 20px; color: #fff; font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.game-toolbar > div { display: flex; gap: 8px; }.game-toolbar button { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.09); color: #fff; border-radius: 9px; padding: 6px 10px; font-size: .72rem; cursor: pointer; }
.game-toolbar button:hover { background: rgba(255,255,255,.18); }
.game-stage { min-height: 520px; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at top, #f7f2ff, #fff 66%); overflow: hidden; }
.game-stage:fullscreen { width: 100vw; height: 100vh; background: #f7f2ff; }
.game-ui { width: min(720px, 100%); text-align: center; }
.game-ui h2 { margin: 0 0 8px; font-size: clamp(1.8rem, 5vw, 3.1rem); letter-spacing: -.055em; line-height: 1.05; }.game-ui > p { color: var(--muted); margin-top: 0; }
.score-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.score-pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; box-shadow: 0 7px 18px rgba(48,31,86,.06); font-size: .78rem; font-weight: 900; color: var(--muted); }.score-pill strong { color: var(--ink); }
.game-button { border: 0; background: var(--purple); color: #fff; min-height: 46px; padding: 0 20px; border-radius: 13px; font-weight: 900; cursor: pointer; box-shadow: 0 9px 18px rgba(109,56,240,.2); }.game-button:hover { background: var(--purple-dark); transform: translateY(-1px); }.game-button.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.game-input { width: min(320px, 100%); min-height: 52px; border: 2px solid #ded7ec; border-radius: 13px; padding: 0 15px; background: #fff; color: var(--ink); text-align: center; font-size: 1.1rem; font-weight: 800; }.game-input:focus { border-color: var(--purple); outline: 3px solid rgba(109,56,240,.12); }
.game-form { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }.game-message { min-height: 28px; font-weight: 900; margin: 15px 0; }.game-message.good { color: #278b38; }.game-message.bad { color: #cf3655; }
.memory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 510px; margin: auto; }
.memory-card { aspect-ratio: 1; border: 0; border-radius: 15px; background: var(--purple); color: transparent; font-size: clamp(1.7rem, 7vw, 3rem); cursor: pointer; box-shadow: inset 0 -7px 0 rgba(45,20,120,.25); transform-style: preserve-3d; transition: .18s ease; }.memory-card:hover { transform: translateY(-2px); }.memory-card.is-flipped, .memory-card.is-matched { background: #fff; color: var(--ink); box-shadow: 0 7px 20px rgba(48,31,86,.12); }.memory-card.is-matched { background: #e4f9c9; }
.ttt-grid { width: min(390px, 100%); margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }.ttt-cell { aspect-ratio: 1; border: 0; border-radius: 17px; background: #fff; box-shadow: 0 8px 22px rgba(48,31,86,.12); color: var(--purple); font-size: clamp(2.6rem, 11vw, 5rem); font-weight: 900; cursor: pointer; }.ttt-cell.mark-o { color: var(--pink); }
.scramble-word, .math-question { display: inline-block; margin: 10px 0 20px; padding: 16px 22px; background: #fff; border: 2px solid #e3dcf1; border-radius: 16px; font-size: clamp(2rem, 8vw, 4rem); line-height: 1; font-weight: 900; letter-spacing: .13em; color: var(--purple); box-shadow: 0 10px 25px rgba(48,31,86,.08); }.math-question { letter-spacing: -.03em; }
.clue { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.reaction-zone { width: min(560px, 100%); min-height: 300px; display: grid; place-items: center; padding: 30px; margin: auto; border: 0; border-radius: 24px; background: #dfe3ea; color: #49445a; font-size: clamp(1.6rem, 5vw, 3rem); font-weight: 900; cursor: pointer; box-shadow: inset 0 -12px 0 rgba(29,23,51,.08); }.reaction-zone.waiting { background: #ffcf55; color: #4d3510; }.reaction-zone.go { background: #8de353; color: #183b0b; }
.color-word { font-size: clamp(3rem, 10vw, 6rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; margin: 25px 0; text-transform: uppercase; }.color-options { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }.color-choice { border: 0; color: #fff; min-width: 105px; padding: 13px 16px; border-radius: 13px; font-weight: 900; cursor: pointer; box-shadow: inset 0 -5px 0 rgba(0,0,0,.15); }
.bubble-arena { width: min(720px, 100%); height: 400px; position: relative; overflow: hidden; border-radius: 24px; background: linear-gradient(#c8f3ff, #f0fcff); box-shadow: inset 0 0 0 3px rgba(37,201,232,.2); }.bubble { position: absolute; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.95), rgba(255,77,157,.52) 35%, rgba(109,56,240,.56)); color: #fff; font-size: .7rem; font-weight: 900; cursor: pointer; box-shadow: 0 8px 18px rgba(61,55,110,.16), inset -8px -8px 16px rgba(74,35,155,.12); animation: bubbleFloat 3.2s linear forwards; }
.game-canvas { display: block; width: min(480px, 100%); height: auto; margin: auto; border-radius: 18px; background: #1b1532; box-shadow: 0 15px 35px rgba(29,23,51,.2); touch-action: none; }
.touch-controls { display: grid; grid-template-columns: repeat(3, 58px); gap: 7px; justify-content: center; margin-top: 15px; }.touch-controls button { width: 58px; height: 48px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font-size: 1.2rem; font-weight: 900; cursor: pointer; }.touch-controls .up { grid-column: 2; }.touch-controls .left { grid-column: 1; grid-row: 2; }.touch-controls .down { grid-column: 2; grid-row: 2; }.touch-controls .right { grid-column: 3; grid-row: 2; }
.paddle-controls { display: flex; gap: 12px; justify-content: center; margin-top: 14px; }.paddle-controls button { width: 90px; height: 46px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 900; font-size: 1.2rem; }
.tile-2048-board { width: min(470px, 100%); aspect-ratio: 1; margin: 0 auto 18px; padding: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; border-radius: 20px; background: #b8a9d2; touch-action: none; }
.game-2048-tile { display: grid; place-items: center; border-radius: 13px; background: #dcd3ea; color: var(--ink); font-size: clamp(1.35rem, 6vw, 2.5rem); font-weight: 900; box-shadow: inset 0 -5px 0 rgba(29,23,51,.08); }
.game-2048-tile.tile-small { font-size: clamp(1rem, 4.5vw, 1.8rem); }.tile-2 { background: #fff8e7; }.tile-4 { background: #ffefbd; }.tile-8 { background: #ffc56f; }.tile-16 { background: #ff9364; color: #fff; }.tile-32 { background: #ff6e73; color: #fff; }.tile-64 { background: #ff4d9d; color: #fff; }.tile-128 { background: #b980ff; color: #fff; }.tile-256 { background: #8254ef; color: #fff; }.tile-512 { background: #5532c5; color: #fff; }.tile-1024, .tile-2048 { background: #241747; color: #ffcf3f; }
.move-pad { display: grid; grid-template-columns: repeat(3, 58px); justify-content: center; gap: 7px; }.move-pad button { height: 48px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font-size: 1.25rem; font-weight: 900; cursor: pointer; }.move-pad button[data-dir="up"] { grid-column: 2; }.move-pad button[data-dir="left"] { grid-column: 1; }.move-pad button[data-dir="down"] { grid-column: 2; }.move-pad button[data-dir="right"] { grid-column: 3; }

.sudoku-board { width: min(520px, 100%); aspect-ratio: 1; margin: auto; display: grid; grid-template-columns: repeat(9, 1fr); border: 3px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--ink); gap: 1px; }
.sudoku-cell { border: 0; background: #fff; color: var(--purple); font-size: clamp(.9rem, 4vw, 1.55rem); font-weight: 900; cursor: pointer; }.sudoku-cell.is-given { color: var(--ink); background: #f0edf6; cursor: default; }.sudoku-cell.is-selected { background: #ffef9a; }.sudoku-cell.is-related { background: #e4dcff; }.sudoku-cell:nth-child(3n):not(:nth-child(9n)) { box-shadow: inset -3px 0 var(--ink); }.sudoku-cell:nth-child(n+19):nth-child(-n+27), .sudoku-cell:nth-child(n+46):nth-child(-n+54) { box-shadow: inset 0 -3px var(--ink); }.sudoku-cell:nth-child(3n):not(:nth-child(9n)):nth-child(n+19):nth-child(-n+27), .sudoku-cell:nth-child(3n):not(:nth-child(9n)):nth-child(n+46):nth-child(-n+54) { box-shadow: inset -3px -3px var(--ink); }
.number-pad { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 16px; }.number-pad button { min-width: 44px; height: 44px; border: 0; border-radius: 11px; background: var(--purple); color: #fff; font-size: 1.05rem; font-weight: 900; cursor: pointer; }.number-pad .clear-number { padding: 0 14px; background: var(--ink); }

.word-search-layout { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 22px; align-items: start; width: min(680px, 100%); margin: auto; }.word-search-board { aspect-ratio: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; padding: 8px; border-radius: 18px; background: #e6ddf5; }
.ws-cell { min-width: 0; border: 0; border-radius: 6px; background: #fff; color: var(--ink); font-size: clamp(.58rem, 2.1vw, 1rem); font-weight: 900; cursor: pointer; }.ws-cell.is-start { background: var(--yellow); transform: scale(1.08); }.ws-cell.is-found { background: #9aea61; color: #17380d; }.word-bank { display: grid; gap: 7px; text-align: left; }.word-bank span { padding: 7px 10px; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-size: .78rem; font-weight: 900; }.word-bank span.is-found { color: #278b38; text-decoration: line-through; background: #e8fbdc; }

.mine-modes { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }.mine-modes .game-button.is-active { outline: 3px solid rgba(109,56,240,.22); }.mines-board { width: min(500px, 100%); aspect-ratio: 1; margin: auto; display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; padding: 8px; border-radius: 18px; background: #cbc2da; }
.mine-cell { min-width: 0; border: 0; border-radius: 6px; background: #f9f7fd; box-shadow: inset 0 -4px 0 rgba(29,23,51,.13); color: var(--ink); font-size: clamp(.72rem, 3vw, 1.25rem); font-weight: 900; cursor: pointer; }.mine-cell.is-revealed { background: #e8e3ef; box-shadow: none; }.mine-cell.is-flagged { background: #fff0b5; color: #c53b51; }.mine-cell.is-mine { background: #ff8e9c; }.mine-1 { color: #296cdb; }.mine-2 { color: #278b38; }.mine-3 { color: #cf3655; }.mine-4, .mine-5, .mine-6, .mine-7, .mine-8 { color: #6d38f0; }

.checkers-board { width: min(540px, 100%); aspect-ratio: 1; margin: auto; display: grid; grid-template-columns: repeat(8, 1fr); border: 8px solid #55362f; border-radius: 12px; overflow: hidden; background: #55362f; }.checker-square { min-width: 0; border: 0; display: grid; place-items: center; position: relative; }.checker-square.is-light { background: #f6dfbc; }.checker-square.is-dark { background: #936251; cursor: pointer; }.checker-square.is-selected { box-shadow: inset 0 0 0 5px var(--yellow); }.checker-square.is-target:after { content: ""; width: 28%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.76); position: absolute; }
.checker-piece { width: 72%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 -7px 0 rgba(0,0,0,.2), 0 4px 8px rgba(0,0,0,.25); color: #fff; font-size: clamp(.7rem, 3vw, 1.3rem); }.piece-r { background: #e8475f; }.piece-b { background: #221b35; }.checker-piece.is-king { outline: 3px solid var(--yellow); outline-offset: -7px; }

.hangman-layout { width: min(650px, 100%); margin: auto; display: grid; grid-template-columns: 220px 1fr; gap: 25px; align-items: center; }.hangman-art { width: 100%; max-height: 230px; fill: none; stroke: var(--purple); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }.hangman-art .gallows { stroke: var(--ink); }.hangman-word { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin: 18px 0; }.hangman-word span { min-width: 32px; padding-bottom: 5px; border-bottom: 4px solid var(--ink); font-size: clamp(1.4rem, 5vw, 2.3rem); font-weight: 900; }.letter-keyboard { display: grid; grid-template-columns: repeat(13, 1fr); gap: 5px; margin-top: 18px; }.letter-keyboard button { min-width: 0; height: 38px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 900; cursor: pointer; }.letter-keyboard button:disabled { opacity: .25; cursor: default; }

.connect-board { width: min(560px, 100%); aspect-ratio: 7 / 6; margin: auto; padding: 10px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; border-radius: 20px; background: #3766d8; box-shadow: inset 0 -10px 0 #2448a4; }.connect-cell { min-width: 0; border: 0; border-radius: 50%; background: #16317d; padding: 7px; cursor: pointer; }.connect-cell span { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; background: #f2eff8; box-shadow: inset 0 5px 8px rgba(20,10,60,.18); }.connect-cell span.red { background: #f0475f; }.connect-cell span.yellow { background: #ffd34f; }

.sliding-board { width: min(470px, 100%); aspect-ratio: 1; margin: auto; padding: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; border-radius: 20px; background: #c8eef5; }.sliding-cell { border: 0; border-radius: 14px; background: var(--purple); color: #fff; font-size: clamp(1.25rem, 6vw, 2.3rem); font-weight: 900; box-shadow: inset 0 -7px 0 rgba(45,20,120,.3), 0 4px 8px rgba(48,31,86,.12); cursor: pointer; }.sliding-cell.is-empty { visibility: hidden; }

.runner-canvas, .shooter-canvas { display: block; width: min(640px, 100%); height: auto; margin: auto; border-radius: 18px; box-shadow: 0 15px 35px rgba(29,23,51,.2); touch-action: none; }.shooter-canvas { width: min(480px, 100%); max-height: 520px; }.runner-jump { margin-top: 14px; min-width: 130px; }.shooter-controls { display: flex; justify-content: center; gap: 10px; margin-top: 13px; }.shooter-controls button { min-width: 115px; height: 46px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 900; cursor: pointer; }

.simon-board { width: min(440px, 100%); margin: 18px auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }.simon-pad { aspect-ratio: 1; border: 0; border-radius: 28px; opacity: .62; cursor: pointer; box-shadow: inset 0 -10px 0 rgba(0,0,0,.18), 0 8px 20px rgba(29,23,51,.12); transition: transform .12s ease, opacity .12s ease, filter .12s ease; }.simon-pad.is-lit { opacity: 1; filter: brightness(1.45); transform: scale(.96); }.simon-green { background: #35c96b; }.simon-red { background: #f04c62; }.simon-yellow { background: #ffd34f; }.simon-blue { background: #4293f5; }

.maze-board { width: min(520px, 100%); aspect-ratio: 1; margin: 16px auto; display: grid; grid-template-columns: repeat(10, 1fr); padding: 7px; border-radius: 18px; background: #f6f1ff; box-shadow: inset 0 0 0 2px #ddd3ef; }.maze-cell { min-width: 0; border-style: solid; border-width: 2px; background: #fff; color: var(--purple); font-size: clamp(.55rem, 2.2vw, 1rem); font-weight: 900; padding: 0; }.maze-cell.is-player { background: #d9c7ff; color: #421d9a; }.maze-cell.is-goal { background: #ffdc58; color: #5b4300; }.maze-controls { margin-top: 14px; }

.mole-board { width: min(470px, 100%); margin: 18px auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.mole-hole { aspect-ratio: 1; border: 0; border-radius: 50%; background: #6a4735; box-shadow: inset 0 13px 0 #352117, 0 7px 14px rgba(29,23,51,.14); overflow: hidden; cursor: pointer; position: relative; }.mole-hole span { position: absolute; left: 18%; right: 18%; bottom: -70%; aspect-ratio: 1; border-radius: 50% 50% 35% 35%; background: #be7d52; box-shadow: inset 0 -8px 0 rgba(65,35,20,.18); transition: bottom .12s ease; }.mole-hole span:before { content: "• ᴗ •"; position: absolute; inset: 26% 0 auto; color: #3f281c; font-weight: 900; font-size: clamp(.7rem, 3vw, 1.25rem); }.mole-hole.has-mole span { bottom: 7%; }

.rps-result { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 22px 0; font-weight: 900; color: var(--muted); }.rps-result span { width: 90px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 22px; background: #f0eaff; font-size: 3rem; }.rps-result b { color: var(--purple); }.rps-choices { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }.rps-choices button { min-width: 120px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); font-weight: 900; text-transform: capitalize; cursor: pointer; box-shadow: 0 8px 20px rgba(29,23,51,.08); }.rps-choices button span { display: block; font-size: 2.2rem; margin-bottom: 5px; }

.typing-ui { width: min(670px, 100%); margin: auto; }.typing-phrase { margin: 22px 0 15px; padding: 22px; border-radius: 18px; background: #f2edff; color: var(--ink); font-size: clamp(1.15rem, 4vw, 1.7rem); font-weight: 900; line-height: 1.4; }.typing-input { width: 100%; min-height: 54px; margin-bottom: 15px; padding: 12px 16px; border: 2px solid #d7c9f5; border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-size: 1.05rem; }.typing-input:focus { outline: 3px solid rgba(109,56,240,.2); border-color: var(--purple); }.typing-input:disabled { background: #f3f0f7; }

.pong-canvas { display: block; width: min(640px, 100%); height: auto; margin: 14px auto 0; border-radius: 18px; background: #1b1532; box-shadow: 0 15px 35px rgba(29,23,51,.2); touch-action: none; }
.pong-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }.pong-controls > button:not(.game-button) { min-width: 110px; min-height: 46px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 900; cursor: pointer; }

.match-board { width: min(500px, 100%); aspect-ratio: 1; margin: 18px auto 0; padding: 10px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; border-radius: 20px; background: #ddd4ee; }
.match-gem { min-width: 0; border: 0; border-radius: 14px; background: #fff; cursor: pointer; box-shadow: inset 0 -6px 0 rgba(29,23,51,.12), 0 4px 9px rgba(29,23,51,.1); transition: transform .14s ease, outline .14s ease; }.match-gem:hover { transform: translateY(-2px); }.match-gem.is-selected { outline: 4px solid var(--yellow); transform: scale(.92); }.match-gem span { font-size: clamp(1.35rem, 5vw, 2.7rem); filter: drop-shadow(0 4px 0 rgba(29,23,51,.13)); }.match-gem.gem-0 span { color: #ff4d9d; }.match-gem.gem-1 span { color: #6d38f0; }.match-gem.gem-2 span { color: #25c9e8; }.match-gem.gem-3 span { color: #ff9d36; }.match-gem.gem-4 span { color: #63c92f; }.match-gem.gem-5 span { color: #e5465d; }

.word-builder-ui { width: min(700px, 100%); }.word-build-display { min-height: 72px; margin: 18px auto; padding: 14px 20px; display: grid; place-items: center; border: 2px solid #ded4f4; border-radius: 17px; background: #fff; color: var(--purple) !important; font-size: clamp(1.5rem, 6vw, 2.5rem); font-weight: 900; letter-spacing: .1em; }
.letter-tiles { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }.letter-tiles button { width: 58px; height: 64px; border: 0; border-radius: 13px; background: var(--purple); color: #fff; font-size: 1.55rem; font-weight: 900; cursor: pointer; box-shadow: inset 0 -7px 0 rgba(45,20,120,.3), 0 5px 10px rgba(29,23,51,.12); }.letter-tiles button:disabled { opacity: .28; transform: translateY(5px); }
.word-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }.found-words { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-top: 18px; }.found-words span { padding: 8px 5px; border: 1px dashed #cfc5df; border-radius: 9px; color: var(--muted); background: #fff; font-size: .74rem; font-weight: 900; }.found-words span.is-found { border-style: solid; border-color: #a7df7b; background: #e8fbdc; color: #287d2f; }

.lights-board { width: min(480px, 100%); aspect-ratio: 1; margin: 18px auto 0; padding: 12px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; border-radius: 22px; background: #25203c; box-shadow: 0 14px 30px rgba(29,23,51,.2); }.light-cell { min-width: 0; border: 0; border-radius: 50%; background: #4a435e; cursor: pointer; box-shadow: inset 0 7px 10px rgba(0,0,0,.25); transition: background .14s ease, box-shadow .14s ease, transform .14s ease; }.light-cell:hover { transform: scale(.94); }.light-cell.is-on { background: #ffdc45; box-shadow: 0 0 22px rgba(255,220,69,.75), inset 0 -6px 0 rgba(190,137,0,.25); }

.dots-board { width: min(520px, 100%); aspect-ratio: 1; margin: 18px auto 0; padding: 14px; display: grid; grid-template-columns: 18px 1fr 18px 1fr 18px 1fr 18px; grid-template-rows: 18px 1fr 18px 1fr 18px 1fr 18px; border-radius: 20px; background: #f1edfa; box-shadow: inset 0 0 0 2px #ded6ee; }.dot { align-self: stretch; border-radius: 50%; background: var(--ink); position: relative; z-index: 3; }.dot-edge { min-width: 0; min-height: 0; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; position: relative; z-index: 2; }.dot-edge span { display: block; border-radius: 999px; background: #d5cde4; transition: background .13s ease, transform .13s ease; }.edge-h span { width: 100%; height: 8px; }.edge-v span { width: 8px; height: 100%; }.dot-edge:hover span { background: #b8a9d5; transform: scale(1.04); }.dot-edge.player span { background: var(--purple); }.dot-edge.computer span { background: var(--pink); }.dot-box { display: grid; place-items: center; margin: 5px; border-radius: 12px; color: transparent; font-size: .7rem; font-weight: 900; }.dot-box.player { background: #dcd0ff; color: #4d1ed0; }.dot-box.computer { background: #ffd7e9; color: #b82768; }

/* Wheel Picker */
#pixelpop-game.wheel-picker-root { display: block; min-height: 0; padding: 24px; overflow: visible; background: radial-gradient(circle at 78% 12%, #fff5b8 0, transparent 26%), radial-gradient(circle at 8% 90%, #ffd8ea 0, transparent 27%), linear-gradient(135deg, #f8f3ff, #fff 55%, #f2fdff); }
.wheel-picker-ui { width: min(1080px, 100%); margin: auto; color: var(--ink); text-align: left; }
.wheel-app-grid { display: grid; grid-template-columns: minmax(270px, 360px) minmax(0, 1fr); gap: 22px; align-items: start; }
.wheel-builder, .wheel-play-area, .wheel-history { border: 1px solid #e0d8ee; border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 14px 35px rgba(48,31,86,.09); }
.wheel-builder, .wheel-play-area { padding: 22px; }
.wheel-panel-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 19px; }
.wheel-panel-heading h2 { margin: 0 0 4px; font-size: 1.35rem; letter-spacing: -.035em; }
.wheel-panel-heading p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.wheel-step { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; border-radius: 10px; background: var(--purple); color: #fff; font-size: .76rem; font-weight: 900; box-shadow: inset 0 -4px 0 rgba(35,15,95,.22); }
.wheel-field { display: grid; gap: 7px; margin-top: 14px; color: var(--ink); font-size: .78rem; font-weight: 900; }
.wheel-field > span { display: flex; justify-content: space-between; gap: 10px; }
.wheel-field small { color: var(--muted); font-weight: 800; }
.wheel-field select, .wheel-field input, #wheel-entries { width: 100%; border: 1px solid #d9d0e8; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
.wheel-field select, .wheel-field input { min-height: 44px; padding: 0 12px; }
#wheel-entries { min-height: 220px; resize: vertical; padding: 12px 13px; font-size: .86rem; font-weight: 700; line-height: 1.55; }
.wheel-field select:focus, .wheel-field input:focus, #wheel-entries:focus { outline: 3px solid rgba(109,56,240,.15); border-color: var(--purple); }
.wheel-help { margin: 8px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.wheel-edit-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wheel-edit-actions .game-button { min-height: 40px; padding: 0 13px; font-size: .74rem; }
.wheel-text-button { border: 0; padding: 7px 4px; background: transparent; color: var(--purple); font: inherit; font-size: .75rem; font-weight: 900; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.wheel-mode-box { margin: 0 0 18px; padding: 15px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: end; border-radius: 16px; background: #f4efff; box-shadow: inset 0 0 0 1px #e1d6ff; }
.wheel-mode-box .wheel-field { margin-top: 0; }.wheel-mode-box .wheel-sound { grid-column: 1 / -1; }
.wheel-sound { display: flex; align-items: center; gap: 7px; margin-top: 13px; color: var(--muted); font-size: .75rem; font-weight: 800; cursor: pointer; }
.wheel-sound input { accent-color: var(--purple); }
.wheel-canvas-wrap { width: min(560px, 100%); aspect-ratio: 1; margin: 4px auto 18px; position: relative; filter: drop-shadow(0 17px 22px rgba(44,25,88,.18)); }
#choice-wheel { display: block; width: 100%; height: 100%; transform-origin: 50% 50%; will-change: transform; cursor: pointer; }
#choice-wheel:focus-visible { outline: 5px solid rgba(109,56,240,.35); outline-offset: 5px; border-radius: 50%; }
.wheel-pointer { position: absolute; left: 50%; top: -5px; z-index: 4; width: 0; height: 0; transform: translateX(-50%); pointer-events: none; border-left: 19px solid transparent; border-right: 19px solid transparent; border-top: 45px solid #1d1733; filter: drop-shadow(0 5px 2px rgba(29,23,51,.18)); }
.wheel-center { position: absolute; left: 50%; top: 50%; z-index: 3; width: 64px; height: 64px; display: grid; place-items: center; transform: translate(-50%, -50%); border: 5px solid #fff; border-radius: 50%; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 900; letter-spacing: .08em; box-shadow: 0 6px 16px rgba(29,23,51,.28); pointer-events: none; }
.wheel-spin-button { width: min(300px, 100%); min-height: 66px; display: flex; align-items: center; justify-content: center; gap: 11px; margin: auto; border: 0; border-radius: 18px; background: linear-gradient(135deg, var(--pink), #df2a7e); color: #fff; cursor: pointer; box-shadow: inset 0 -7px 0 rgba(126,16,67,.25), 0 12px 23px rgba(255,77,157,.26); transition: transform .16s ease, filter .16s ease; }
.wheel-spin-button:hover { transform: translateY(-2px); filter: saturate(1.12); }
.wheel-spin-button:disabled { cursor: wait; opacity: .72; transform: none; }
.wheel-spin-button span { font-size: 1.28rem; font-weight: 1000; letter-spacing: .09em; }
.wheel-spin-button small { font-size: .68rem; font-weight: 800; opacity: .86; }
.wheel-message { min-height: 24px; margin: 12px 0 0; color: var(--muted); text-align: center; font-size: .8rem; font-weight: 900; }
.wheel-message.good { color: #278b38; }.wheel-message.bad { color: #cf3655; }
.wheel-result { margin-top: 17px; padding: 20px; border: 2px solid #e2d8fa; border-radius: 18px; background: linear-gradient(135deg, #fff, #f8f3ff); text-align: center; }
.wheel-result[hidden] { display: none; }
.wheel-result h3 { margin: 5px 0 15px; color: var(--purple); font-size: clamp(1.65rem, 4vw, 2.45rem); line-height: 1.05; letter-spacing: -.05em; overflow-wrap: anywhere; }
.wheel-result-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.wheel-result-actions .game-button { min-height: 40px; padding: 0 14px; font-size: .76rem; }
.wheel-order-list { max-height: 250px; margin: 5px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; overflow: auto; list-style-position: inside; text-align: left; }
.wheel-order-list li { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #514a60; font-size: .78rem; font-weight: 800; }
.wheel-team-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; text-align: left; }
.wheel-team-results section { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.wheel-team-results h4 { margin: 0 0 8px; color: var(--purple); }
.wheel-team-results ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.wheel-history { margin-top: 22px; padding: 18px 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.wheel-history h3 { margin: 4px 0 0; font-size: 1.08rem; }
.wheel-history ol { margin: 0; padding: 0; display: flex; gap: 7px; overflow-x: auto; list-style: none; scrollbar-width: thin; }
.wheel-history li { min-width: 126px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; background: #faf8ff; }
.wheel-history li strong, .wheel-history li span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wheel-history li strong { font-size: .75rem; }.wheel-history li span { margin-top: 3px; color: var(--muted); font-size: .63rem; }
.wheel-history li.is-empty { min-width: 190px; color: var(--muted); font-size: .75rem; }
@media (max-width: 860px) {
	.wheel-app-grid { grid-template-columns: 1fr; }
	.wheel-builder { order: 1; }
	.wheel-play-area { order: 2; }
	.wheel-mode-box { grid-template-columns: 1fr; }
	.wheel-mode-box .wheel-sound { grid-column: auto; }
	.wheel-history { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 520px) {
	#pixelpop-game.wheel-picker-root { padding: 13px 9px; }
	.wheel-builder, .wheel-play-area { padding: 16px 13px; border-radius: 17px; }
	.wheel-canvas-wrap { width: min(390px, 100%); }
	.wheel-pointer { border-left-width: 14px; border-right-width: 14px; border-top-width: 34px; }
	.wheel-center { width: 52px; height: 52px; font-size: .64rem; }
	.wheel-spin-button { min-height: 60px; }
	.wheel-order-list, .wheel-team-results { grid-template-columns: 1fr; }
	.wheel-history { padding: 16px; }
}

.game-info-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 22px; margin: 42px 0 26px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 10px 30px rgba(48,31,86,.06); }.info-card h2 { margin: 6px 0 13px; letter-spacing: -.04em; }.info-card ol { margin: 0; padding-left: 22px; }.info-card li { padding: 5px 0; color: var(--muted); }.score-card { background: #f2edff; border-color: #dfd4ff; }.score-card > span { font-size: 2.3rem; }.score-card p { color: var(--muted); }.score-card strong { color: var(--purple); }
.game-guide { padding: 42px; border: 1px solid #e4dcf3; border-radius: 24px; background: linear-gradient(135deg, #fff 0%, #faf7ff 58%, #fff9e8 100%); box-shadow: 0 15px 38px rgba(48,31,86,.07); }.guide-intro { max-width: 850px; }.guide-intro h2 { margin: 7px 0 14px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; letter-spacing: -.055em; }.guide-intro p { margin: 0; color: #544d64; font-size: 1.02rem; line-height: 1.8; }.guide-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }.guide-card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.88); }.guide-card h3 { margin: 0 0 15px; font-size: 1.25rem; letter-spacing: -.025em; }.guide-card ul { margin: 0; padding-left: 21px; }.guide-card li { padding: 6px 0; color: var(--muted); line-height: 1.55; }.faq-card details { border-top: 1px solid var(--line); padding: 12px 0; }.faq-card details:first-of-type { border-top: 0; padding-top: 0; }.faq-card summary { color: var(--ink); font-weight: 900; cursor: pointer; }.faq-card p { margin: 9px 0 0; color: var(--muted); line-height: 1.55; }.game-ad-slot { margin: 48px 0 64px; }
.related-games { margin-top: 20px; }.games-grid.compact { grid-template-columns: repeat(3, 1fr); }
.content-page { padding: 70px 0 100px; }.content-narrow { width: min(760px, calc(100% - 40px)); margin: auto; }.content-page h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.06em; line-height: 1; }.entry-content { color: #4f495d; }.entry-content a { color: var(--purple); text-decoration: underline; }.entry-content h2 { color: var(--ink); margin-top: 2em; }
.empty-state { text-align: center; padding: 110px 20px; }.empty-state h1 { font-size: clamp(3rem, 9vw, 7rem); margin: 0; letter-spacing: -.08em; }

@keyframes hover { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes bubbleFloat { from { transform: translateY(20px) scale(.85); opacity: .2; } 12% { opacity: 1; } to { transform: translateY(-440px) scale(1.06); opacity: .55; } }

@media (max-width: 980px) {
	.hero-grid { grid-template-columns: 1fr 360px; gap: 35px; }.hero h1 { font-size: clamp(3.2rem, 7vw, 5rem); }
	.category-grid { grid-template-columns: repeat(2, 1fr); }.games-grid { grid-template-columns: repeat(3, 1fr); }
	.site-nav { gap: 15px; }.site-nav a { font-size: .83rem; }
}
@media (max-width: 760px) {
	:root { --wrap: min(100% - 28px, 1160px); }
	.site-header { position: sticky; }.header-inner { min-height: 66px; }
	.menu-toggle { display: block; }
	.site-nav { display: none; position: absolute; left: 14px; right: 14px; top: 70px; padding: 12px; flex-direction: column; align-items: stretch; gap: 3px; border: 1px solid var(--line); background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
	.site-nav.is-open { display: flex; }.site-nav a { padding: 11px 13px; border-radius: 10px; }.site-nav a:hover { background: #f5f1ff; }.site-nav .nav-play { text-align: center; margin-top: 5px; }
	.hero { padding: 60px 0 78px; }.hero-grid { grid-template-columns: 1fr; }.hero-copy { text-align: center; }.hero-copy > p { margin-inline: auto; }.hero-actions, .hero-proof { justify-content: center; }.hero-console { margin-top: 18px; width: min(350px, 92%); transform: rotate(2deg); }
	.section { padding: 64px 0; }.section-heading { align-items: start; flex-direction: column; gap: 8px; }.category-grid { grid-template-columns: 1fr 1fr; }
	.featured-grid, .games-grid { grid-template-columns: repeat(2, 1fr); }.trust-grid { grid-template-columns: 1fr; gap: 40px; }
	.footer-inner { grid-template-columns: 1fr; }.game-stage { min-height: 470px; padding: 20px 12px; }.game-info-grid, .guide-columns { grid-template-columns: 1fr; }.game-guide { padding: 28px; }
}
@media (max-width: 500px) {
	.hero h1 { font-size: 3.35rem; }.hero-actions { flex-direction: column; }.button { width: 100%; }.hero-proof { gap: 8px 14px; font-size: .72rem; }
	.hero-console { border-width: 8px; padding: 12px 15px 20px; box-shadow: 0 22px 0 #341886, 0 35px 50px rgba(61,30,132,.3); }.console-screen { min-height: 190px; }.console-icon { font-size: 4rem; }
	.category-grid, .featured-grid, .games-grid, .games-grid.compact { grid-template-columns: 1fr; }.category-card { min-height: 104px; }.games-grid .game-art { height: 155px; }
	.game-title-row { align-items: flex-start; }.game-title-icon { width: 64px; height: 64px; flex-basis: 64px; font-size: 2rem; }.game-title-row p { font-size: .86rem; }
	.game-toolbar { align-items: flex-start; }.game-toolbar > div { flex-direction: column; }.game-stage { min-height: 430px; }.memory-grid { gap: 7px; }.memory-card { border-radius: 11px; }
	.bubble-arena { height: 360px; }.footer-links { gap: 25px; }.scramble-word { letter-spacing: .08em; font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
