/* ==========================================================================
   Gipcus — main stylesheet
   Tokens mirror the app (src/constants/theme.ts). Dark is the default.
   ========================================================================== */

:root {
	--bg: #101010;
	--surface: #1a1a1a;
	--surface-2: #242424;
	--surface-3: #2e2e2e;
	--glass: rgba(26, 26, 26, 0.72);
	--line: rgba(255, 255, 255, 0.08);
	--primary: #0e7a0d;
	--primary-2: #2ea043;
	--primary-glow: rgba(46, 160, 67, 0.35);
	--primary-tint: rgba(46, 160, 67, 0.16);
	--purple: #7b5ea7;
	--orange: #f25022;
	--blue: #00a4ef;
	--yellow: #ffb900;
	--text: #ebebeb;
	--text-2: #a0a0a0;
	--text-3: #6f6f6f;
	--on-primary: #fff;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
	--shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);

	--r-sm: 6px;
	--r-md: 10px;
	--r-lg: 14px;
	--r-xl: 20px;
	--r-full: 999px;

	--gap: 12px;
	--tile: calc((100vw - 32px - 2 * var(--gap)) / 3);
	--wrap: 1440px;
	--pad: 16px;
	--appbar: 64px;

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);

	color-scheme: dark;
}

[data-theme="light"] {
	--bg: #f5f5f7;
	--surface: #ffffff;
	--surface-2: #f0f0f2;
	--surface-3: #e5e5ea;
	--glass: rgba(255, 255, 255, 0.78);
	--line: rgba(0, 0, 0, 0.08);
	--primary-glow: rgba(14, 122, 13, 0.2);
	--primary-tint: rgba(14, 122, 13, 0.1);
	--text: #1a1a1a;
	--text-2: #555;
	--text-3: #8a8a8a;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	--shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
	color-scheme: light;
}

@media (min-width: 600px) {
	:root { --tile: 116px; --gap: 14px; --pad: 24px; }
}
@media (min-width: 1200px) {
	:root { --tile: 128px; --gap: 16px; --pad: 32px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--appbar) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 15px/1.5 var(--font);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	min-height: 100vh;
	overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--r-md); }
.skip-link:focus { top: 12px; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: 820px; }
.wrap--mid { max-width: 1040px; }
.main { display: block; padding-block: 16px 56px; outline: none; }

[data-theme="dark"] .only-light, [data-theme="light"] .only-dark { display: none; }

/* ---------- Buttons & controls ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 20px; border-radius: var(--r-full);
	font-weight: 700; font-size: 15px; white-space: nowrap;
	transition: transform .15s var(--ease), background .2s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--on-primary); box-shadow: 0 6px 20px var(--primary-glow); }
.btn--primary:hover { box-shadow: 0 8px 28px var(--primary-glow); }
.btn--ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--surface-3); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 32px; font-size: 18px; }
.btn--google { width: 100%; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; height: 48px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.linkish { color: var(--primary-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
	border-radius: var(--r-full); color: var(--text); background: var(--surface-2);
	transition: background .2s, transform .15s var(--ease), color .2s;
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn:active { transform: scale(.92); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 4px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - var(--pad)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - var(--pad)), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip {
	flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
	border-radius: var(--r-full); background: var(--surface-2); border: 1px solid var(--line);
	font-size: 13px; font-weight: 600; color: var(--text-2); transition: background .2s, color .2s;
}
.chip:hover { color: var(--text); background: var(--surface-3); }
.chip.is-active { background: var(--primary); border-color: transparent; color: #fff; }
.chip--sm { height: 30px; padding: 0 12px; }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-sm); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.badge--new, .badge--orange { background: var(--orange); }
.badge--green { background: var(--primary-tint); color: var(--primary-2); margin-top: 6px; }

.kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-2); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }

.segmented { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-2); border-radius: var(--r-full); border: 1px solid var(--line); }
.segmented a { padding: 6px 14px; border-radius: var(--r-full); font-size: 13px; font-weight: 700; color: var(--text-2); }
.segmented a[aria-current] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.switch { width: 50px; height: 30px; border-radius: 99px; background: var(--surface-3); position: relative; transition: background .2s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .switch { background: var(--primary-2); }
[data-theme="dark"] .switch span { transform: translateX(20px); }

/* ---------- App bar ---------- */
.appbar {
	position: sticky; top: 0; z-index: 50; height: var(--appbar);
	background: var(--glass); border-bottom: 1px solid var(--line);
	-webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
}
.admin-bar .appbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .appbar { top: 46px; } }
@media (max-width: 600px) { .admin-bar .appbar { top: 0; } } /* WP toolbar scrolls away below 600px. */
.appbar__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand__logo { height: 36px; width: auto; }
[data-theme="dark"] .brand__logo--light, [data-theme="light"] .brand__logo--dark { display: none; }

.mainnav { display: none; }
.mainnav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.mainnav__list > li { position: relative; }
.mainnav__list a, .mainnav__btn { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; border-radius: var(--r-full); font-weight: 700; color: var(--text-2); transition: color .2s, background .2s; }
.mainnav__list a:hover, .mainnav__btn:hover, .mainnav__list [aria-current], .mainnav__btn[aria-expanded="true"] { color: var(--text); background: var(--surface-2); }
.mainnav__btn .i { width: 16px; height: 16px; transition: transform .2s; }
.mainnav__btn[aria-expanded="true"] .i { transform: rotate(180deg); }
.mega {
	position: absolute; top: calc(100% + 10px); left: 0; width: 460px; padding: 10px;
	display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
	animation: pop .18s var(--ease);
}
/* Custom menu sub-menus (Appearance → Menus → Header). */
.mainnav__list .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; z-index: 5; list-style: none; margin: 0; padding: 8px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
	display: none;
}
.mainnav__list .sub-menu a { width: 100%; border-radius: var(--r-md); color: var(--text); }
.mainnav__list .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; margin-left: 4px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.mainnav__list .menu-item-has-children:hover > .sub-menu,
.mainnav__list .menu-item-has-children:focus-within > .sub-menu,
.mainnav__list .menu-item-has-children.is-open > .sub-menu { display: block; animation: pop .18s var(--ease); }
.mainnav__list .current-menu-item > a, .mainnav__list .current-menu-ancestor > a { color: var(--text); background: var(--surface-2); }
.mega a { justify-content: space-between; border-radius: var(--r-md); height: 40px; color: var(--text); }
.mega a span { color: var(--text-3); font-size: 12px; font-weight: 600; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

.search { position: relative; flex: 1; max-width: 420px; margin-left: auto; display: none; }
.search__bar { display: flex; align-items: center; gap: 8px; }
.search__back { display: none; }
.search__field { position: relative; flex: 1; min-width: 0; }
.search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search__input {
	width: 100%; height: 42px; padding: 0 44px 0 42px; border-radius: var(--r-full);
	background: var(--surface-2); border: 1px solid var(--line); outline: none; transition: border-color .2s, background .2s;
}
.search__input:focus { border-color: var(--primary-2); background: var(--surface); }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 600 12px var(--mono); color: var(--text-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.search__input:focus ~ .search__kbd, .search__clear:not([hidden]) ~ .search__kbd { display: none; }
.search__clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); color: var(--text-2); }
.search__clear .i { width: 14px; height: 14px; }
.search__results {
	position: absolute; top: calc(100% + 8px); left: 0; right: 0; max-height: min(70vh, 520px); overflow: auto;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 6px;
}
.search__suggest { display: none; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-md); }
.sr-item:hover, .sr-item[aria-selected="true"] { background: var(--surface-2); }
.sr-item img { width: 44px; height: 44px; border-radius: var(--r-md); object-fit: cover; flex: none; background: var(--surface-2); }
.sr-item strong { display: block; line-height: 1.3; }
.sr-item small { display: block; color: var(--text-3); font-size: 12px; }
.sr-empty, .sr-all { display: block; padding: 12px; color: var(--text-2); font-size: 14px; text-align: center; }
.sr-all { color: var(--primary-2); font-weight: 700; }
.search--page { display: block; max-width: 560px; margin: 12px 0 0; }
.search--page .search__input { height: 48px; }

/* Mobile: full-screen search, like the app's Search screen. */
@media (max-width: 899px) {
	body.search-open { overflow: hidden; }
	/* backdrop-filter makes the header the containing block for fixed children; drop it so the overlay can fill the screen. */
	body.search-open .appbar { -webkit-backdrop-filter: none; backdrop-filter: none; z-index: 100000; }
	body.search-open .search[data-search] {
		display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 100000; max-width: none; margin: 0;
		background: var(--bg); animation: search-in .2s var(--ease);
	}
	@keyframes search-in { from { opacity: 0; transform: translateY(8px); } }
	.search[data-search] .search__bar { padding: calc(10px + env(safe-area-inset-top)) 12px 10px 8px; border-bottom: 1px solid var(--line); background: var(--surface); }
	.search[data-search] .search__back { display: inline-grid; background: transparent; }
	.search[data-search] .search__input { height: 46px; font-size: 16px; } /* 16px stops iOS zoom-on-focus. */
	.search[data-search] .search__kbd { display: none; }
	.search[data-search] .search__results, .search[data-search] .search__suggest {
		position: static; flex: 1; max-height: none; overflow-y: auto; overscroll-behavior: contain;
		padding: 8px 12px calc(24px + env(safe-area-inset-bottom)); background: none; border: 0; border-radius: 0; box-shadow: none;
	}
	.search[data-search] .search__suggest { display: block; }
	.search[data-search] .search__results:not([hidden]) + .search__suggest { display: none; }
	.search[data-search] .sr-item { padding: 10px 8px; gap: 14px; }
	.search[data-search] .sr-item img { width: 52px; height: 52px; border-radius: 12px; }
	.search[data-search] .sr-item strong { font-size: 16px; }
	.search[data-search] .sr-all { margin-top: 8px; padding: 14px; border-radius: var(--r-md); background: var(--primary-tint); }
	.search__label { display: flex; align-items: center; gap: 8px; margin: 12px 8px 6px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
	.search__label .i { width: 16px; height: 16px; color: var(--orange); }
	.search__trending { list-style: none; margin: 0; padding: 0; }
	.search__cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 8px; }
}
.appbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.points-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: var(--r-full); background: rgba(255, 185, 0, .14); color: var(--yellow); font-weight: 800; font-size: 14px; }
.points-pill--lg { height: 48px; padding: 0 18px; font-size: 20px; }
.avatar-btn img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-2); }


.account { position: relative; }
.avatar-btn { display: block; border-radius: 50%; }
.dropdown {
	position: absolute; top: calc(100% + 10px); right: 0; width: 250px; padding: 8px; z-index: 5;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
	display: grid; animation: pop .18s var(--ease);
}
.dropdown[hidden] { display: none; }
.dropdown__head { display: grid; padding: 8px 10px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.dropdown__head span { font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown a { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 10px; border-radius: var(--r-md); font-weight: 600; color: var(--text); }
.dropdown a:hover { background: var(--surface-2); }
.dropdown a .i { width: 18px; height: 18px; color: var(--text-2); }
.dropdown .dropdown__danger, .dropdown .dropdown__danger .i { color: var(--orange); }

@media (min-width: 900px) {
	.mainnav { display: block; }
	.search { display: block; }
	.search-toggle, .menu-toggle { display: none; }
	.appbar__actions { margin-left: 0; }
}

/* ---------- Drawer (mobile menu) ---------- */
.menu-toggle { margin-left: -6px; background: transparent; }
@media (max-width: 899px) { .appbar__actions [data-action="theme"] { display: none; } }
.drawer { position: fixed; inset: 0; z-index: 100000; visibility: hidden; } /* Above the WP toolbar (99999). */
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .25s; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.drawer__panel {
	position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); overflow-y: auto; overscroll-behavior: contain;
	display: flex; flex-direction: column; gap: 14px; padding: calc(12px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
	background: var(--surface); border-right: 1px solid var(--line); box-shadow: 20px 0 60px rgba(0, 0, 0, .4);
	transform: translateX(-102%); transition: transform .3s var(--ease);
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { visibility: visible; }
body.drawer-open .drawer__backdrop { opacity: 1; }
body.drawer-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; }
.drawer__user { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-lg); background: var(--surface-2); }
.drawer__user img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-2); }
.drawer__user strong { display: block; }
.drawer__user small { display: flex; align-items: center; gap: 4px; color: var(--yellow); font-weight: 700; font-size: 13px; }
.drawer__user small .i { width: 14px; height: 14px; }
.drawer__signin { width: 100%; }
.drawer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.drawer__list a, .drawer__list button, .drawer__cats summary {
	display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 12px; border-radius: var(--r-md);
	font-size: 16px; font-weight: 600; color: var(--text); text-align: left; cursor: pointer;
}
.drawer__list a:hover, .drawer__list button:hover, .drawer__cats summary:hover { background: var(--surface-2); }
.drawer__list [aria-current], .drawer__list .current-menu-item > a { background: var(--primary-tint); color: var(--primary-2); }
.drawer__list .i, .drawer__cats summary .i { width: 20px; height: 20px; color: var(--text-2); }
.drawer__list [aria-current] .i { color: var(--primary-2); }
.drawer__list .sub-menu { list-style: none; margin: 0; padding: 0 0 4px 32px; }
.drawer__list .sub-menu a { min-height: 40px; font-size: 15px; color: var(--text-2); }
.drawer__list--secondary { padding-top: 12px; border-top: 1px solid var(--line); margin-top: auto; }
.drawer__list .switch { margin-left: auto; }
.drawer__danger, .drawer__list .drawer__danger .i { color: var(--orange); }
.drawer__cats { border-radius: var(--r-md); }
.drawer__cats summary { list-style: none; }
.drawer__cats summary::-webkit-details-marker { display: none; }
.drawer__chev { margin-left: auto; transition: transform .2s; }
.drawer__cats[open] .drawer__chev { transform: rotate(180deg); }
.drawer__catgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px 4px 8px 12px; }
.drawer__catgrid a { padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); font-size: 14px; font-weight: 600; }
.drawer__catgrid a:hover { background: var(--surface-3); }
@media (min-width: 900px) { .drawer { display: none; } }

/* ---------- Sections ---------- */
.section { margin-top: 32px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.section-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-md); background: var(--surface-2); color: var(--primary-2); }
.section-icon .i { width: 18px; height: 18px; }
.section-icon--flame { color: var(--orange); }
.section-icon--star { color: var(--yellow); }
.section-icon--diamond { color: var(--purple); }
.section-icon--sparkles { color: var(--blue); }
.section-more { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 700; color: var(--primary-2); }
.section-more .i { width: 16px; height: 16px; }

.page-head { margin-block: 8px 20px; display: grid; gap: 10px; }
.page-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -0.02em; }
.page-sub { max-width: 720px; }
.empty { color: var(--text-2); padding: 24px 0; }
.empty-state { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 48px 16px; }
.empty-state > .i { width: 44px; height: 44px; color: var(--text-3); }
.big-404 { font-size: clamp(80px, 18vw, 160px); font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--primary-2), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--text-3); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .6; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text-2); }

/* ---------- Poki-style game grid ---------- */
.home__h1 { font-size: 15px; font-weight: 700; color: var(--text-2); margin: 0 0 12px; }
.grid {
	display: grid; gap: var(--gap);
	grid-template-columns: repeat(auto-fill, minmax(var(--tile), 1fr));
	grid-auto-flow: dense;
}
/* Home shelves: two swipeable rows on phones/tablets (like the app's GameRow); full-width grid on desktop. */
@media (max-width: 899px) {
	.grid--row {
		grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column;
		grid-auto-columns: var(--tile-row, 31vw); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		margin-inline: calc(var(--pad) * -1); padding: 6px var(--pad) 10px; scroll-padding-inline: var(--pad);
	}
	.grid--row::-webkit-scrollbar { display: none; }
	.grid--row > * { scroll-snap-align: start; }
}
@media (min-width: 600px) and (max-width: 899px) { .grid--row { --tile-row: 140px; } }
.tile {
	position: relative; display: block; overflow: hidden; border-radius: var(--r-lg);
	aspect-ratio: 1; background: var(--surface-2); box-shadow: var(--shadow-sm);
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
	isolation: isolate;
}
.tile--lg { grid-column: span 2; grid-row: span 2; border-radius: var(--r-xl); }
.tile--xl { grid-column: span 3; grid-row: span 3; border-radius: var(--r-xl); }
@media (max-width: 599px) { .tile--xl { grid-column: span 2; grid-row: span 2; } }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.tile__img--empty { display: grid; place-items: center; color: var(--text-3); }
.tile__title {
	position: absolute; inset: auto 0 0; padding: 26px 10px 8px; font-size: 13px; font-weight: 700; line-height: 1.25; color: #fff;
	background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent);
	opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile--lg .tile__title, .tile--xl .tile__title { font-size: 17px; padding: 40px 14px 12px; }
.tile .badge { position: absolute; top: 8px; left: 8px; z-index: 1; height: 20px; font-size: 10px; }
@media (hover: hover) {
	.tile:hover { transform: scale(1.05); box-shadow: 0 14px 34px rgba(0, 0, 0, .5); z-index: 2; }
	.tile:hover .tile__title { opacity: 1; transform: none; }
}
.tile:focus-visible .tile__title { opacity: 1; transform: none; }
.tile:active { transform: scale(.96); }
@media (hover: none) { .tile--lg .tile__title, .tile--xl .tile__title { opacity: 1; transform: none; } }

.tile-wrap { position: relative; }
.tile-wrap .tile { height: 100%; }
.tile-remove { position: absolute; top: 6px; right: 6px; z-index: 3; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; }
.tile-remove .i { width: 16px; height: 16px; }

.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: var(--tile-row, 132px); gap: var(--gap); overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
.row-scroll::-webkit-scrollbar { display: none; }

.hero-grid { margin-bottom: 8px; }

/* Category cards */
.cat-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cat-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 96px; padding: 14px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); color: #fff; isolation: isolate; transition: transform .2s var(--ease); }
.cat-card:hover { transform: translateY(-3px); }
.cat-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(1.2); }
.cat-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .2)); }
.cat-card__name { font-weight: 800; font-size: 16px; }
.cat-card__count { font-size: 12px; opacity: .75; }

/* Promo + SEO text */
.promo {
	margin-top: 40px; display: grid; gap: 24px; align-items: center; padding: 28px; border-radius: var(--r-xl); overflow: hidden;
	background: radial-gradient(120% 140% at 100% 0%, rgba(46, 160, 67, .35), transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(123, 94, 167, .3), transparent 60%), var(--surface);
	border: 1px solid var(--line);
}
.promo__text { display: grid; gap: 10px; justify-items: start; }
.promo__title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; max-width: 560px; }
.promo__art { display: none; position: relative; height: 160px; }
.promo__coin { position: absolute; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 26px; background: linear-gradient(135deg, var(--yellow), var(--orange)); color: #fff; box-shadow: var(--shadow); transform: rotate(-8deg); right: 150px; top: 20px; }
.promo__coin .i { width: 42px; height: 42px; }
.promo__coin--2 { background: linear-gradient(135deg, var(--purple), var(--blue)); right: 40px; top: 0; transform: rotate(10deg); }
.promo__coin--3 { background: linear-gradient(135deg, var(--primary), var(--primary-2)); right: 80px; top: 90px; transform: rotate(-3deg); width: 70px; height: 70px; }
@media (min-width: 800px) { .promo { grid-template-columns: 1.4fr 1fr; padding: 40px; } .promo__art { display: block; } }

.seo-text { margin-top: 40px; padding: 24px; }
.seo-text__body { max-height: 200px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.seo-text__body.is-open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.seo-text__more { margin-top: 12px; }
.seo-text__body.is-open + .seo-text__more { display: none; }

/* ---------- Game page ---------- */
.stage { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.stage__main { min-width: 0; }
.stage__side { display: none; }
@media (min-width: 1100px) {
	.stage { grid-template-columns: calc(var(--tile) * 2 + var(--gap)) minmax(0, 1fr) calc(var(--tile) * 2 + var(--gap)); align-items: start; }
	.stage.has-rail { grid-template-columns: calc(var(--tile) * 2 + var(--gap)) minmax(0, 1fr) 300px; }
	.stage__side { display: grid; grid-template-columns: repeat(2, var(--tile)); gap: var(--gap); }
	.stage__side .ad--rail { grid-column: 1 / -1; }
	.stage.has-rail .stage__side--r { display: block; position: sticky; top: calc(var(--appbar) + 16px); }
}

.player {
	position: relative; aspect-ratio: 16 / 10; width: 100%; border-radius: var(--r-xl); overflow: hidden;
	background: #000; box-shadow: var(--shadow);
}
@media (max-width: 599px) { .player { aspect-ratio: 4 / 5; } }
.player--portrait { aspect-ratio: 9 / 14; max-height: 82vh; margin-inline: auto; width: auto; }
.player__cover { position: absolute; inset: 0; display: grid; place-items: center; }
.player__bg { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; filter: blur(28px) saturate(1.4); opacity: .55; }
.player__cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, transparent, rgba(0, 0, 0, .65)); }
.player__intro { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; padding: 24px; text-align: center; color: #fff; }
.player__icon { width: clamp(96px, 16vw, 148px); height: auto; aspect-ratio: 1; border-radius: 28px; object-fit: cover; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); }
.player__name { font-size: clamp(20px, 3vw, 28px); font-weight: 800; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.player__play { animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 6px 20px var(--primary-glow), 0 0 0 0 rgba(46, 160, 67, .5); } 50% { box-shadow: 0 6px 20px var(--primary-glow), 0 0 0 14px rgba(46, 160, 67, 0); } }
.player__hint { font-size: 13px; color: rgba(255, 255, 255, .8); }
.player__hint .linkish { color: #7ee787; }
.player__frame { position: absolute; inset: 0; background: #000; }
.player__frame iframe { width: 100%; height: 100%; border: 0; }
.player__loading { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: #000; font-weight: 700; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--primary-2); animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Mobile "play screen" — full-viewport like the app. */
.player.is-fixed { position: fixed; inset: 0; z-index: 200; border-radius: 0; aspect-ratio: auto; max-height: none; width: 100%; }
.player__topbar { display: none; }
.player.is-fixed .player__topbar { display: flex; position: absolute; z-index: 2; top: 0; left: 0; right: 0; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; background: rgba(0, 0, 0, .85); color: #fff; }
.player.is-fixed .player__topbar strong { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player.is-fixed .player__topbar .icon-btn { background: rgba(255, 255, 255, .12); color: #fff; }
.player.is-fixed .player__frame { top: calc(56px + env(safe-area-inset-top)); }
body.is-playing { overflow: hidden; }

.gamebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.gamebar__title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gamebar__icon { width: 44px; height: 44px; border-radius: var(--r-md); object-fit: cover; }
.gamebar__h1 { font-size: 18px; font-weight: 800; }
.gamebar__genre { font-size: 13px; color: var(--text-2); }
.gamebar__actions { display: flex; align-items: center; gap: 8px; }
.vote { display: flex; align-items: center; gap: 4px; padding: 0 4px; background: var(--surface-2); border-radius: var(--r-full); }
.vote .icon-btn { background: transparent; width: 36px; height: 36px; }
.vote__pct { font-weight: 800; font-size: 13px; min-width: 2ch; text-align: center; }
.vote.is-voted .icon-btn { opacity: .5; }
.vote .icon-btn.is-on { color: var(--primary-2); opacity: 1; }
.fav-btn.is-on { color: var(--orange); }
.fav-btn.is-on .i { fill: currentColor; }

.game-details { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 1000px) { .game-details:has(> .game-news) { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.game-about { padding: 20px; display: grid; gap: 18px; }
@media (min-width: 700px) { .game-about { padding: 28px; } }
.game-about__title { font-size: 24px; font-weight: 800; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.facts div { padding: 12px; background: var(--surface-2); border-radius: var(--r-md); }
.facts dt { font-size: 12px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 2px 0 0; font-weight: 700; }
.facts a { color: var(--primary-2); }
.answer { padding: 16px 18px; border-radius: var(--r-md); background: var(--primary-tint); border-left: 3px solid var(--primary-2); }
.answer h3 { font-size: 16px; margin-bottom: 6px; }
.controls h3 { font-size: 16px; margin-bottom: 8px; }
.controls ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
kbd { display: inline-block; min-width: 28px; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); border-bottom: 2px solid rgba(0, 0, 0, .35); font: 700 12px var(--mono); text-align: center; margin-right: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.game-news { display: grid; gap: 12px; }

/* ---------- Ads ---------- */
.ad { position: relative; display: block; margin-block: 24px; text-align: center; overflow: hidden; contain: layout paint; }
.ad__label { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.ad--leader { min-height: 280px; }
@media (min-width: 768px) { .ad--leader { min-height: 114px; } }
.ad--inline { min-height: 280px; margin-block: 28px; }
.ad--rail { min-height: 624px; width: 300px; max-width: 100%; margin: 0 auto; }
.ad--tile { grid-column: span 3; grid-row: span 2; margin: 0; min-height: 250px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; align-content: center; padding: 6px; }
@media (max-width: 599px) { .ad--tile { grid-row: span 3; } }
.ad ins { width: 100%; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }

/* ---------- News ---------- */
.card--post { display: grid; gap: 12px; align-content: start; background: none; border: 0; border-radius: 0; }
.card__media { display: block; overflow: hidden; border-radius: var(--r-lg); background: var(--surface-2); aspect-ratio: 16 / 9; }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card--post:hover .card__img { transform: scale(1.04); }
.card__body { display: grid; gap: 6px; align-content: start; }
.card__title { font-size: 17px; font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a:hover { color: var(--primary-2); }
.card__excerpt { color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.card--row { grid-template-columns: 84px 1fr; align-items: center; gap: 12px; }
.card--row .card__media { aspect-ratio: 1; border-radius: var(--r-md); }
.card--row .card__title { font-size: 15px; -webkit-line-clamp: 2; }

.card--lead { position: relative; overflow: hidden; border-radius: var(--r-xl); gap: 0; }
.card--lead .card__media { aspect-ratio: 16 / 9; border-radius: var(--r-xl); }
.card--lead .card__body { position: absolute; inset: auto 0 0; padding: 24px; gap: 8px; color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, .92), rgba(0, 0, 0, .5) 60%, transparent); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.card--lead .card__title { font-size: clamp(20px, 3vw, 30px); -webkit-line-clamp: 3; }
.card--lead .card__title a:hover { color: #fff; text-decoration: underline; }
.card--lead .card__excerpt { color: rgba(255, 255, 255, .8); }
.card--lead .meta { color: rgba(255, 255, 255, .7); }
.card--lead .kicker { color: #7ee787; }

.post-grid { display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (min-width: 1100px) { .post-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.news-strip { display: grid; gap: 20px; }
.news-strip__list { display: grid; gap: 14px; align-content: start; }
@media (min-width: 900px) { .news-strip { grid-template-columns: 1.5fr 1fr; } }

.top-stories { display: grid; gap: 20px; }
.top-stories__pair { display: grid; gap: 20px; }
.top-stories__latest { padding: 16px; display: grid; gap: 14px; align-content: start; align-self: start; }
@media (min-width: 700px) { .top-stories__pair { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
	.top-stories { grid-template-columns: 1.6fr 1fr 1fr; grid-template-areas: "lead lead latest" "pair pair latest"; }
	.top-stories__lead { grid-area: lead; }
	.top-stories__pair { grid-area: pair; }
	.top-stories__latest { grid-area: latest; }
}
.widget-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.widget-title .i { color: var(--orange); }

.with-sidebar, .article-layout { display: grid; gap: 40px; }
@media (min-width: 1100px) {
	.with-sidebar { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
	.article-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; justify-content: center; }
}
.sidebar { display: grid; gap: 20px; align-content: start; }
.sidebar__sticky { position: sticky; top: calc(var(--appbar) + 16px); display: grid; gap: 20px; }
.side-games { padding: 16px; }
.side-games ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.side-games a { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 6px; border-radius: var(--r-md); transition: background .2s; }
.side-games a:hover { background: var(--surface-2); }
.side-games img { width: 52px; height: 52px; border-radius: var(--r-md); object-fit: cover; }
.side-games strong { display: block; font-size: 14px; line-height: 1.3; }
.side-games small { color: var(--text-3); font-size: 12px; }
.side-games__play { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-tint); color: var(--primary-2); }
.side-games__play .i { width: 14px; height: 14px; }
.widget { padding: 16px; }

/* ---------- Article ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--blue)); }
.article { min-width: 0; max-width: 780px; width: 100%; justify-self: center; }
.article__head { display: grid; gap: 12px; margin-bottom: 20px; }
.entry-title { font-size: clamp(28px, 4.4vw, 44px); font-weight: 850; letter-spacing: -0.025em; line-height: 1.12; }
.entry-dek { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); line-height: 1.5; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 4px; }
.article__meta .share { margin-left: auto; }
.byline { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.byline__avatar { width: 36px; height: 36px; border-radius: 50%; }
.share { display: flex; gap: 6px; }
.share .icon-btn { width: 36px; height: 36px; }
.share .i { width: 18px; height: 18px; }
.article__hero { margin: 0 0 24px; }
.article__hero img { width: 100%; border-radius: var(--r-xl); aspect-ratio: 16 / 9; object-fit: cover; }
.article__hero figcaption { font-size: 13px; color: var(--text-3); margin-top: 8px; }

.takeaways { padding: 20px 22px; margin-bottom: 20px; border-color: rgba(46, 160, 67, .35); background: linear-gradient(135deg, var(--primary-tint), transparent 70%), var(--surface); }
.takeaways h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.takeaways h2 .i { color: var(--primary-2); }
.takeaways ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

.toc { padding: 4px 20px; margin-bottom: 24px; }
.toc summary { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; font-weight: 800; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc details[open] summary .i { transform: rotate(180deg); }
.toc ol { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); }
.toc .toc__l3 { margin-left: 16px; list-style: circle; font-size: 14px; }
.toc a:hover { color: var(--primary-2); }

.prose { font-size: 17px; line-height: 1.75; overflow-wrap: break-word; }
@media (min-width: 700px) { .prose.entry-content { font-size: 18px; } }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.5em; margin-top: 1.8em; font-weight: 800; }
.prose h3 { font-size: 1.22em; margin-top: 1.6em; font-weight: 800; }
.prose h4 { font-size: 1.05em; margin-top: 1.4em; }
.prose a { color: var(--primary-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose img, .prose figure img { border-radius: var(--r-lg); }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: 13px; color: var(--text-3); margin-top: 6px; text-align: center; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--primary-2); color: var(--text-2); font-size: 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose code { font: .9em var(--mono); background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; overflow: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92em; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-2); }
.prose iframe, .prose video { width: 100%; border-radius: var(--r-lg); }
.prose .wp-block-embed__wrapper iframe { aspect-ratio: 16 / 9; height: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose h2[id], .prose h3[id] { scroll-margin-top: calc(var(--appbar) + 20px); }
.alignwide, .alignfull { margin-inline: 0; }

.faq { margin-top: 32px; }
.faq > h2 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.faq__item { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); margin-top: 10px; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 16px; font-weight: 700; }
.faq__chev { transition: transform .2s; }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 18px 16px; color: var(--text-2); }

.author-box { display: flex; gap: 16px; align-items: flex-start; padding: 20px; margin-top: 32px; }
.author-box img { border-radius: 50%; }
.author-box__name { font-size: 18px; margin-block: 2px 6px; }
.author-hero { display: flex; gap: 20px; align-items: center; padding: 24px; margin-bottom: 28px; }
.author-hero img { border-radius: 50%; }

.pagination { margin-top: 32px; }
.pagination ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: var(--r-full); background: var(--surface-2); font-weight: 700; }
.pagination a:hover { background: var(--surface-3); }
.pagination .current { background: var(--primary); color: #fff; }

.comments { padding: 20px; margin-top: 32px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comment-body { padding-block: 12px; border-bottom: 1px solid var(--line); overflow: hidden; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }

/* ---------- Account ---------- */
.account { display: grid; gap: 20px; }
.account > .section { margin-top: 12px; }
.profile-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px; }
.profile-card > div { flex: 1; min-width: 180px; }
.profile-card h2 { font-size: 20px; }
.profile-card__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-2); }
.profile-card__avatar--guest { display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); }
.profile-card__avatar--guest .i { width: 30px; height: 30px; }
.rewards-card { padding: 20px; display: grid; gap: 18px; background: radial-gradient(100% 140% at 100% 0%, rgba(255, 185, 0, .16), transparent 55%), var(--surface); }
.rewards-card__top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rewards-card__top > div { flex: 1; }
.rewards-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--yellow), var(--orange)); color: #fff; }
.rewards-card__icon .i { width: 26px; height: 26px; }
.rewards-card__points { font-size: 34px; font-weight: 850; line-height: 1; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { padding: 14px; background: var(--surface-2); border-radius: var(--r-md); }
.stats dt { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12px; font-weight: 700; }
.stats dt .i { width: 15px; height: 15px; color: var(--primary-2); }
.stats dd { margin: 6px 0 0; font-size: 22px; font-weight: 800; }
.badges { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.badge-tile { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 16px 10px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); opacity: .45; filter: grayscale(1); }
.badge-tile.is-on { opacity: 1; filter: none; border-color: rgba(255, 185, 0, .35); }
.badge-tile__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface-2); color: var(--yellow); }
.badge-tile.is-on .badge-tile__icon { background: rgba(255, 185, 0, .16); }
.badge-tile strong { font-size: 14px; }
.badge-tile small { font-size: 12px; color: var(--text-3); }
.activity { list-style: none; margin: 0; padding: 6px 16px; }
.activity li { display: flex; align-items: center; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.activity li:last-child { border: 0; }
.activity a { flex: 1; font-weight: 700; }
.pts { font-weight: 800; color: var(--yellow); }
.settings { padding: 6px 20px; }
.settings__row { display: flex; align-items: center; justify-content: space-between; padding-block: 12px; }
.settings__row span { display: flex; gap: 10px; align-items: center; font-weight: 700; }

.store-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.tabs__tab { padding: 12px 16px; font-weight: 700; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs__tab[aria-selected="true"] { color: var(--text); border-color: var(--primary-2); }
.tabs .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--surface-3); font-size: 12px; }
.offers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 20px; }
.offer { position: relative; padding: 18px; display: grid; gap: 8px; align-content: start; }
.offer.is-featured { border-color: rgba(242, 80, 34, .4); }
.offer > .badge { position: absolute; top: 14px; right: 14px; }
.offer__art { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--primary-tint); color: var(--primary-2); overflow: hidden; }
.offer__art img { width: 100%; height: 100%; object-fit: cover; }
.offer__value { font-size: 22px; font-weight: 850; color: var(--primary-2); }
.offer__title { font-size: 16px; font-weight: 800; }
.offer__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.offer__cost { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--yellow); }
.vouchers { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.voucher { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 18px; }
.voucher.is-expired { opacity: .5; }
.voucher__title { font-size: 16px; }
.voucher__code { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-md); border: 1px dashed var(--primary-2); background: var(--primary-tint); color: var(--text); }
.voucher__code code { font: 800 15px var(--mono); letter-spacing: .06em; }
.voucher__code--lg code { font-size: 20px; }

/* ---------- Sheet (dialog) ---------- */
.sheet {
	width: min(440px, calc(100% - 24px)); max-height: 90vh; padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: 24px;
	background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); text-align: center;
}
.sheet::backdrop { background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet-in .28s var(--ease); display: grid; gap: 14px; justify-items: center; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@media (max-width: 599px) {
	.sheet { margin: auto 0 0; width: 100%; max-width: none; border-radius: 24px 24px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
	@keyframes sheet-in { from { transform: translateY(100%); } }
}
.sheet__close-form { position: absolute; top: 12px; right: 12px; margin: 0; }
.sheet__logo { border-radius: 18px; }
.sheet__title { font-size: 24px; font-weight: 800; }
.benefits { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 10px; text-align: left; width: 100%; }
.benefits li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.benefit-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; flex: none; }
.benefit-icon--yellow { background: rgba(255, 185, 0, .15); color: var(--yellow); }
.benefit-icon--red { background: rgba(242, 80, 34, .15); color: var(--orange); }
.benefit-icon--purple { background: rgba(123, 94, 167, .2); color: #a78bdb; }
.gsi { width: 100%; min-height: 48px; display: grid; justify-items: center; }
.sheet__error { color: var(--orange); font-size: 14px; }
.sheet__terms { font-size: 12px; }
.sheet__terms a { text-decoration: underline; }

/* ---------- Toast ---------- */
.toast {
	position: fixed; z-index: 300; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%);
	display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--r-full);
	background: var(--text); color: var(--bg); font-weight: 700; box-shadow: var(--shadow); animation: toast-in .3s var(--ease);
}
.toast--points { background: linear-gradient(135deg, var(--yellow), var(--orange)); color: #1a1a1a; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px); } }

/* ---------- Footer ---------- */
.footer { margin-top: 24px; padding-block: 40px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.footer__grid { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
.footer__brand { grid-column: 1 / -1; display: grid; gap: 12px; max-width: 420px; align-content: start; justify-items: start; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer__brand { grid-column: auto; } }
.footer__title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__col a { color: var(--text-2); }
.footer__col a:hover { color: var(--text); }
.store-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }

/* ---------- Legacy guard ----------
   gipcus.com still injects the old Twenty Twenty-One custom CSS in <head>
   (after this file). These rules win over it without affecting other sites. */
body .search .search__input { background: var(--surface-2) !important; border: 1px solid var(--line) !important; border-radius: var(--r-full) !important; color: var(--text); }
body .search .search__input:focus { background: var(--surface) !important; border-color: var(--primary-2) !important; }
body .search__input::placeholder { color: var(--text-3); opacity: 1; }
body :focus-visible { outline: 2px solid var(--primary-2) !important; outline-offset: 2px; }
body h1.page-title { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
body .prose.entry-content h2 { font-size: 1.5em; font-weight: 800; }
body .prose.entry-content h3 { font-size: 1.22em; font-weight: 800; }
body .prose.entry-content p, body .prose.entry-content li, body .prose.entry-content a { font-size: inherit; }
body article.article, body article.game-about, body article.page-article { margin: 0; }
body .comment-form input:not([type="submit"]):not([type="checkbox"]), body .comment-form textarea { background: var(--surface-2) !important; border: 1px solid var(--line) !important; border-radius: var(--r-md) !important; }
body .chip:hover, body .drawer__list a:hover { text-decoration: none; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
