/*
 * GTA 6 Guide Web App – same neon design as the Android app.
 * Unofficial fan-made guide. All artwork is original and drawn in the browser.
 */

/* ---------- Tokens (from ui/theme/Theme.kt) ---------- */
.g6-app {
	--g6-night: #070814;
	--g6-navy: #0e1230;
	--g6-navy-light: #171c45;
	--g6-pink: var(--g6-brand, #ff3fa4);
	--g6-magenta: #e040fb;
	--g6-purple: #b14cff;
	--g6-cyan: #26e0ff;
	--g6-gold: #ffd23f;
	--g6-sunset: #ff6a3d;
	--g6-text-high: #f5f3ff;
	--g6-text-mid: #c3c0dd;
	--g6-text-low: #8c89ad;
	--g6-c: var(--g6-pink);
	--g6-spring: cubic-bezier(.34, 1.56, .64, 1);
	--g6-ease: cubic-bezier(.4, 0, .2, 1);
	--g6-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--g6-script: "Dancing Script", "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
	--g6-gutter: 16px;

	position: relative;
	background: var(--g6-night);
	color: var(--g6-text-high);
	font-family: var(--g6-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	text-align: left;
	overflow-x: clip;
}

/* Reset theme styles that may leak into the embedded version. */
.g6-app *, .g6-app *::before, .g6-app *::after { box-sizing: border-box; }
.g6-app h1, .g6-app h2, .g6-app h3, .g6-app p, .g6-app ul, .g6-app li, .g6-app figure {
	margin: 0; padding: 0; border: 0; background: none; color: inherit;
	font: inherit; letter-spacing: normal; text-transform: none; text-shadow: none;
}
.g6-app ul { list-style: none; }
.g6-app li::before, .g6-app li::marker { content: none; }
.g6-app a { color: inherit; text-decoration: none; box-shadow: none; border: 0; }
.g6-app button { font: inherit; color: inherit; margin: 0; text-transform: none; letter-spacing: normal; box-shadow: none; }
.g6-app canvas { display: block; }
.g6-app :focus-visible { outline: 2px solid var(--g6-cyan); outline-offset: 3px; }
.g6-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.g6-icon { width: 24px; height: 24px; fill: currentColor; flex: none; }

/* ---------- Full-screen page ---------- */
html.g6-root, body.g6-body { margin: 0; padding: 0; background: #070814; min-height: 100%; }
body.g6-body { overflow-x: hidden; }
.g6-app--fullscreen { min-height: 100vh; min-height: 100dvh; }
html.g6-splashing, html.g6-splashing body { overflow: hidden; }

/* ---------- Embedded (shortcode) ---------- */
.g6-app--embedded { border-radius: 20px; overflow: hidden; isolation: isolate; margin: 1.5em 0; }
.g6-app--embedded .g6-home { min-height: min(100svh, 860px); }
.g6-app--embedded .g6-topbar { position: relative; }

/* ---------- Scene canvases (fallback gradient when JS is off) ---------- */
.g6-scene {
	position: absolute; inset: 0; width: 100%; height: 100%;
	background: linear-gradient(#0b0a26 0%, #3a1270 25%, #c0237f 42%, #ff6a3d 50%, #3a1263 51%, #0d0a24 75%, #070814 100%);
}

/* ---------- Shared bits ---------- */
.g6-glow {
	width: 40px; height: 40px; border-radius: 50%; flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	background: radial-gradient(color-mix(in srgb, var(--g6-c) 45%, transparent), color-mix(in srgb, var(--g6-c) 12%, transparent));
	border: 1.5px solid var(--g6-c);
	box-shadow: 0 0 14px color-mix(in srgb, var(--g6-c) 70%, transparent);
	color: #fff;
}
.g6-glow .g6-icon { width: 52%; height: 52%; }
.g6-glow--lg { width: 38px; height: 38px; }

.g6-iconbtn {
	width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent; color: #fff;
	transition: background .2s, transform .25s var(--g6-spring);
}
.g6-iconbtn:hover { background: rgba(255, 255, 255, .08); }
.g6-iconbtn:active { transform: scale(.9); }

.g6-badge {
	display: inline-block; white-space: nowrap;
	font-size: 10px; font-weight: 700; letter-spacing: 1px; line-height: 1.4; text-transform: uppercase;
	color: var(--b); padding: 3px 8px; border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--b) 80%, transparent);
	background: color-mix(in srgb, var(--b) 12%, transparent);
}

.g6-linkbtn { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--g6-cyan); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Main menu ---------- */
.g6-home { position: relative; min-height: 100vh; min-height: 100svh; display: flex; }
.g6-home__art { position: absolute; inset: 0; overflow: hidden; }
.g6-home__shade {
	position: absolute; inset: 0;
	background: linear-gradient(rgba(7, 8, 20, .4) 0%, transparent 25%, rgba(7, 8, 20, .2) 55%, rgba(7, 8, 20, .93) 100%);
}
.g6-home__about { position: absolute; top: max(6px, env(safe-area-inset-top)); left: 6px; z-index: 3; }
.g6-home__inner {
	position: relative; z-index: 2; flex: 1;
	display: flex; flex-direction: column; justify-content: space-between;
	width: 100%; max-width: 560px; margin: 0 auto;
	padding: max(40px, calc(env(safe-area-inset-top) + 34px)) var(--g6-gutter) max(18px, env(safe-area-inset-bottom));
}
.g6-home__brand { align-self: flex-end; padding-right: 4px; }

.g6-wordmark { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; font-weight: 900; }
.g6-wm-row { display: flex; align-items: flex-end; gap: 6px; }
.g6-wm-gta {
	font-size: 58px; font-weight: 900; letter-spacing: 1px; line-height: .9;
	background: linear-gradient(#fff, #ede6ff); -webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 4px 7px rgba(0, 0, 0, .9));
}
.g6-wm-6 {
	font-size: 76px; font-weight: 900; line-height: .82;
	background: linear-gradient(var(--g6-gold), var(--g6-sunset), var(--g6-pink), var(--g6-purple)); -webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 0 12px color-mix(in srgb, var(--g6-pink) 85%, transparent));
}
.g6-wm-guide {
	position: relative; margin-top: -4px; padding: 0 18px 8px 0;
	font-family: var(--g6-script); font-style: italic; font-weight: 700; font-size: 46px; line-height: 1.1;
	color: #ffd6f2; text-shadow: 0 0 14px var(--g6-pink), 0 0 28px color-mix(in srgb, var(--g6-pink) 60%, transparent);
}
.g6-wm-guide::after {
	content: ""; position: absolute; left: 5%; right: 5%; bottom: 4px; height: 3px; border-radius: 3px;
	background: linear-gradient(90deg, transparent, var(--g6-pink), #ffd6f2);
	transform: rotate(-2deg); box-shadow: 0 0 10px var(--g6-pink);
}

.g6-home__menu { padding-top: 24px; }
.g6-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.g6-grid__item { animation: g6-tile-in .48s var(--g6-ease) both; animation-delay: calc(150ms + var(--i) * 70ms); }
html.g6-splashing .g6-grid__item, html.g6-splashing .g6-play { animation-play-state: paused; }

.g6-tile {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly;
	aspect-ratio: .92; padding: 10px 6px; border-radius: 22px; overflow: hidden; isolation: isolate;
	border: 2px solid transparent;
	background: linear-gradient(#241046, #2a0f3e) padding-box, linear-gradient(#ff8ad8, var(--g6-c), var(--g6-magenta)) border-box;
	box-shadow: 0 0 16px color-mix(in srgb, var(--g6-pink) 55%, transparent), 0 10px 22px rgba(0, 0, 0, .45);
	transition: transform .35s var(--g6-spring), box-shadow .25s;
	cursor: pointer;
}
.g6-tile::after { /* inner glow edge */
	content: ""; position: absolute; inset: 0; border-radius: 20px; pointer-events: none;
	box-shadow: inset 0 0 18px color-mix(in srgb, var(--g6-pink) 40%, transparent);
}
.g6-tile:hover { box-shadow: 0 0 26px color-mix(in srgb, var(--g6-c) 75%, transparent), 0 12px 26px rgba(0, 0, 0, .5); transform: translateY(-2px); }
.g6-tile:active { transform: scale(.95); transition-duration: .12s; }
.g6-tilebg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; border-radius: 20px; }
.g6-tile__icon {
	position: relative; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
}
.g6-tile__icon::before {
	content: ""; position: absolute; inset: -4px; border-radius: 50%;
	background: radial-gradient(color-mix(in srgb, var(--g6-c) 55%, transparent), transparent 70%);
}
.g6-tile__icon .g6-icon { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--g6-c) 80%, transparent)); }
.g6-tile__label {
	font-size: 15px; line-height: 17px; font-weight: 800; text-align: center; color: #fff;
	text-shadow: 0 3px 8px #000;
}

.g6-play {
	position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
	width: 82%; height: 66px; margin: 20px auto 0; border-radius: 999px;
	border: 2px solid transparent;
	background: linear-gradient(#ff6fcb, var(--g6-pink), #b0127a) padding-box, linear-gradient(#ffd6f2, var(--g6-magenta)) border-box;
	color: #fff; font-size: 26px; font-weight: 800; text-shadow: 0 3px 6px rgba(0, 0, 0, .53);
	animation: g6-fade-in .5s .65s var(--g6-ease) both, g6-pulse 2.8s ease-in-out infinite;
	transition: transform .35s var(--g6-spring);
}
.g6-play .g6-icon { width: 40px; height: 40px; }
.g6-play:hover { filter: brightness(1.08); }
.g6-play:active { transform: scale(.95); }
.g6-home__disc { margin-top: 14px !important; font-size: 11px; line-height: 15px; color: var(--g6-text-mid); text-align: center; }

/* ---------- Overview (crawlable section summaries under the menu) ---------- */
.g6-overview { max-width: 1180px; margin: 0 auto; padding: 40px var(--g6-gutter) 8px; }
.g6-overview h2 { font-size: 26px; font-weight: 800; letter-spacing: 1px; color: #fff; }
.g6-overview__lead { margin-top: 10px !important; color: var(--g6-text-mid); max-width: 780px; }
.g6-overview__list { display: grid; gap: 14px; margin-top: 22px !important; }
.g6-ocard {
	display: flex; gap: 14px; padding: 16px; border-radius: 18px;
	background: linear-gradient(rgba(23, 28, 69, .95), rgba(14, 18, 48, .95));
	border: 1.2px solid color-mix(in srgb, var(--g6-c) 45%, transparent);
}
.g6-ocard h3 { font-size: 16px; font-weight: 700; line-height: 1.35; }
.g6-ocard h3 a:hover { color: var(--g6-c); }
.g6-ocard p { margin-top: 6px !important; font-size: 14px; line-height: 21px; color: var(--g6-text-mid); }

/* ---------- Guide section ---------- */
.g6-section { position: relative; }
.g6-topbar {
	position: sticky; top: 0; z-index: 20;
	display: flex; align-items: center; gap: 4px;
	padding: max(4px, env(safe-area-inset-top)) 4px 4px;
	background: linear-gradient(rgba(7, 8, 20, .92), rgba(7, 8, 20, .55));
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.g6-topbar__title { flex: 1; text-align: center; font-size: 20px !important; font-weight: 700 !important; letter-spacing: 1.2px !important; color: #fff; line-height: 1.2; }
.g6-topbar__dot { width: 48px; height: 48px; padding: 14px; flex: none; }
.g6-topbar__dot::before { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--g6-c); box-shadow: 0 0 10px var(--g6-c); }

.g6-hero { position: relative; height: 280px; margin-top: -56px; overflow: hidden; }
.g6-hero__shade { position: absolute; inset: 0; background: linear-gradient(rgba(7, 8, 20, .53) 0%, transparent 35%, transparent 75%, var(--g6-night) 100%); }
.g6-hero__tag { position: absolute; left: 20px; right: 20px; bottom: 6px; display: flex; align-items: center; gap: 12px; }
.g6-hero__tagline { font-size: 14px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--g6-c); text-shadow: 0 2px 8px #000; }

.g6-layout { max-width: 1180px; margin: 0 auto; padding: 0 var(--g6-gutter); }
.g6-intro { padding: 6px 4px 4px; font-size: 16px; line-height: 24px; color: var(--g6-text-high); }
.g6-topics { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }

.g6-topic {
	border-radius: 18px; overflow: hidden;
	background: linear-gradient(rgba(23, 28, 69, .95), rgba(14, 18, 48, .95));
	border: 1.2px solid color-mix(in srgb, var(--g6-c) 45%, transparent);
	transition: border-color .25s;
}
.g6-topic[open] { border-color: color-mix(in srgb, var(--g6-c) 95%, transparent); }
.g6-topic__head {
	display: flex; align-items: center; gap: 14px; padding: 14px; cursor: pointer; list-style: none;
	transition: transform .3s var(--g6-spring);
	-webkit-user-select: none; user-select: none;
}
.g6-topic__head::-webkit-details-marker { display: none; }
.g6-topic__head::marker { content: ""; }
.g6-topic__head:active { transform: scale(.98); }
.g6-topic__titles { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.g6-topic__title { font-size: 16px !important; font-weight: 700 !important; letter-spacing: .6px !important; color: #fff; line-height: 1.35; }
.g6-topic__sub { font-size: 14px; line-height: 21px; color: var(--g6-text-low); }
.g6-topic__kicker { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--g6-gold); }
.g6-chev { color: var(--g6-c); transition: transform .3s var(--g6-ease); }
.g6-topic[open] .g6-chev { transform: rotate(180deg); }
.g6-topic__body { padding: 0 16px 16px; border-top: 1px solid color-mix(in srgb, var(--g6-c) 30%, transparent); margin: 0 16px; padding: 0 0 16px; }
.g6-topic--bonus { --g6-c: var(--g6-gold); background: linear-gradient(135deg, rgba(255, 210, 63, .14), rgba(14, 18, 48, .95) 55%); }

.g6-article { padding-top: 12px; }
.g6-article__head { display: flex; align-items: center; gap: 8px; }
.g6-article h3 { flex: 1; font-size: 16px !important; font-weight: 700 !important; letter-spacing: .6px !important; color: #fff; line-height: 1.35; }
.g6-article p { margin-top: 8px !important; font-size: 14px; line-height: 21px; color: var(--g6-text-mid); }
.g6-article ul { margin-top: 2px !important; }
.g6-article li { position: relative; margin-top: 8px !important; padding-left: 16px !important; font-size: 14px; line-height: 21px; color: var(--g6-text-high); }
.g6-article li::before { content: "" !important; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--g6-c); }

.g6-next {
	display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 16px; border-radius: 20px;
	border: 1.6px solid transparent;
	background: linear-gradient(90deg, color-mix(in srgb, var(--g6-navy) 68%, var(--g6-c)), var(--g6-navy), var(--g6-night)) padding-box,
		linear-gradient(90deg, var(--g6-c), color-mix(in srgb, var(--g6-c) 35%, transparent)) border-box;
	box-shadow: 0 0 18px color-mix(in srgb, var(--g6-c) 35%, transparent);
	transition: transform .35s var(--g6-spring);
}
.g6-next:active { transform: scale(.97); }
.g6-next__txt { flex: 1; display: flex; flex-direction: column; font-weight: 700; letter-spacing: 1px; color: #fff; }
.g6-next__txt small { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--g6-c); }
.g6-next > .g6-icon { color: var(--g6-c); }

.g6-more { margin-top: 26px; }
.g6-more__title { font-size: 14px !important; font-weight: 700 !important; letter-spacing: 1.4px !important; text-transform: uppercase !important; color: var(--g6-text-mid); margin-bottom: 10px !important; }
.g6-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.g6-links a {
	display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; min-height: 48px;
	background: rgba(23, 28, 69, .8); border: 1px solid color-mix(in srgb, var(--g6-c) 35%, transparent);
	font-size: 14px; font-weight: 600; color: var(--g6-text-high);
	transition: border-color .2s, background .2s, transform .3s var(--g6-spring);
}
.g6-links a:hover { border-color: var(--g6-c); }
.g6-links a:active { transform: scale(.97); }
.g6-links a.is-current { border-color: var(--g6-c); background: color-mix(in srgb, var(--g6-c) 16%, var(--g6-navy)); }
.g6-links__icon { color: var(--g6-c); display: flex; }
.g6-links__icon .g6-icon { width: 20px; height: 20px; }

.g6-side { display: none; }

/* ---------- Footer ---------- */
.g6-foot { max-width: 760px; margin: 0 auto; padding: 28px 24px max(28px, env(safe-area-inset-bottom)); text-align: center; }
.g6-foot__rev { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--g6-text-low); }
.g6-foot__disc { margin-top: 10px !important; font-size: 12px; line-height: 17px; color: var(--g6-text-low); }
.g6-foot .g6-linkbtn { margin-top: 8px; }

/* ---------- Ads ---------- */
.g6-ad {
	display: block; margin: 26px auto; padding: 8px 8px 10px; border-radius: 14px; max-width: 100%;
	background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .07);
	text-align: center; overflow: hidden; clear: both;
}
.g6-ad__label { display: block; margin-bottom: 6px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--g6-text-low); }
.g6-ad__unit { min-height: 100px; }
.g6-ad--menu, .g6-ad--home_bottom { max-width: 1180px; margin: 28px var(--g6-gutter); }
.g6-ad--home_middle { margin: 24px 0 2px; }
.g6-ad--sidebar .g6-ad__unit { min-height: 250px; }
.g6-ad--sidebar { display: none; }
.g6-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

/* ---------- About dialog ---------- */
.g6-dialog {
	width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 0; margin: auto;
	border: 1px solid color-mix(in srgb, var(--g6-cyan) 40%, transparent); border-radius: 22px;
	background: var(--g6-night); color: var(--g6-text-high); overflow: auto;
}
.g6-dialog::backdrop { background: rgba(4, 4, 12, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.g6-dialog[open] { animation: g6-pop .32s var(--g6-spring); }
.g6-dialog__inner { padding: 8px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.g6-dialog__head { display: flex; align-items: center; justify-content: space-between; }
.g6-dialog__title { font-size: 20px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.g6-card { padding: 16px; border-radius: 18px; background: var(--g6-navy); border: 1px solid color-mix(in srgb, var(--g6-cyan) 40%, transparent); }
.g6-card__title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 10px !important; }
.g6-card p { font-size: 14px; line-height: 21px; color: var(--g6-text-mid); }
.g6-card p + p { margin-top: 8px !important; }
.g6-card a { color: var(--g6-cyan); text-decoration: underline; }
.g6-legend li { padding: 4px 0 !important; font-size: 14px; color: var(--g6-text-mid); }
.g6-legend .g6-badge { margin-right: 8px; }

/* ---------- Splash ---------- */
.g6-splash { position: fixed; inset: 0; z-index: 99999; background: var(--g6-night); transition: opacity .45s var(--g6-ease); }
.g6-splash[hidden] { display: none; }
.g6-splash.is-done { opacity: 0; pointer-events: none; }
.g6-splash__shade { position: absolute; inset: 0; background: linear-gradient(rgba(7, 8, 20, .6), transparent, rgba(7, 8, 20, .4)); }
.g6-splash__brand {
	position: absolute; left: 0; right: 0; top: max(90px, calc(env(safe-area-inset-top) + 90px));
	display: flex; flex-direction: column; align-items: center; text-align: center;
	animation: g6-brand-in 1.1s var(--g6-ease) both;
}
.g6-bigmark { display: flex; align-items: flex-end; gap: 10px; }
.g6-bigmark .g6-wm-gta { font-size: 64px; letter-spacing: 2px; }
.g6-bigmark .g6-wm-6 { font-size: 74px; }
.g6-bigmark__guide { margin-top: 4px; font-size: 34px; font-weight: 800; font-style: italic; letter-spacing: 8px; color: #fff; text-shadow: 0 0 13px var(--g6-pink), 0 0 26px var(--g6-pink); }
.g6-bigmark__tag { margin-top: 6px; font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--g6-cyan); }
.g6-splash__progress { position: absolute; left: 48px; right: 48px; bottom: max(150px, calc(env(safe-area-inset-bottom) + 150px)); max-width: 420px; margin: 0 auto; text-align: center; }
.g6-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .33); overflow: hidden; }
.g6-bar__fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--g6-purple), var(--g6-pink), var(--g6-cyan)); }
.g6-splash__pct { margin-top: 10px; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--g6-text-mid); }

/* ---------- Page transitions ---------- */
.g6-stage { animation: g6-enter-fwd .42s var(--g6-ease) both; }
.g6-view-home .g6-stage { animation-name: g6-fade-in; }
html.g6-dir-back .g6-stage { animation-name: g6-enter-back; }
.g6-app.g6-leaving .g6-stage { opacity: 0; transform: translateX(-36px); transition: opacity .2s var(--g6-ease), transform .2s var(--g6-ease); }
.g6-app.g6-leaving.g6-leaving--back .g6-stage { transform: translateX(36px); }

@keyframes g6-enter-fwd { from { opacity: 0; transform: translateX(42px); } to { opacity: 1; transform: none; } }
@keyframes g6-enter-back { from { opacity: 0; transform: translateX(-42px); } to { opacity: 1; transform: none; } }
@keyframes g6-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes g6-tile-in { from { opacity: 0; transform: translateY(25px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes g6-pulse {
	0%, 100% { box-shadow: 0 0 12px color-mix(in srgb, var(--g6-pink) 60%, transparent), 0 6px 18px rgba(0, 0, 0, .4); }
	50% { box-shadow: 0 0 26px var(--g6-pink), 0 6px 20px rgba(0, 0, 0, .4); }
}
@keyframes g6-brand-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes g6-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
	.g6-overview__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.g6-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.g6-hero { height: 320px; }
	.g6-ad--menu, .g6-ad--home_bottom { margin: 28px auto; width: calc(100% - 2 * var(--g6-gutter)); }
}

/* ---------- Desktop: immersive full-width layout ---------- */
@media (min-width: 1024px) {
	.g6-app { --g6-gutter: 32px; }
	.g6-home__inner {
		max-width: 1320px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(460px, 600px);
		grid-template-rows: auto 1fr; column-gap: 48px; padding-top: 48px; padding-bottom: 32px;
	}
	.g6-home__brand { grid-column: 2; grid-row: 1; padding-right: 0; }
	.g6-home__menu { grid-column: 2; grid-row: 2; align-self: end; }
	.g6-wm-gta { font-size: 76px; }
	.g6-wm-6 { font-size: 100px; }
	.g6-wm-guide { font-size: 58px; }
	.g6-grid { gap: 18px; }
	.g6-tile__icon { width: 62px; height: 62px; }
	.g6-tile__label { font-size: 18px; line-height: 21px; }
	.g6-play { width: 72%; }
	.g6-home__shade { background: linear-gradient(90deg, transparent 35%, rgba(7, 8, 20, .55) 75%), linear-gradient(rgba(7, 8, 20, .35) 0%, transparent 25%, rgba(7, 8, 20, .15) 60%, rgba(7, 8, 20, .9) 100%); }
	.g6-overview__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.g6-hero { height: 380px; }
	.g6-hero__tag { left: max(32px, calc((100% - 1180px) / 2 + 32px)); }
	.g6-hero__tagline { font-size: 16px; }
	.g6-topbar { padding-left: 12px; padding-right: 12px; }
	.g6-topbar__title { font-size: 22px !important; }
	.g6-intro { font-size: 18px; line-height: 28px; }
	.g6-article p, .g6-article li { font-size: 15px; line-height: 24px; }
}

@media (min-width: 1100px) {
	.g6-layout--side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
	.g6-layout--side .g6-more { display: none; }
	.g6-side { display: block; height: 100%; }
	.g6-side__sticky { position: sticky; top: 76px; padding-top: 18px; }
	.g6-sidenav__title { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--g6-text-low); margin-bottom: 10px !important; }
	.g6-side .g6-links { grid-template-columns: 1fr; }
	.g6-ad--sidebar { display: block; margin: 22px 0 0; }
}

/* ---------- Reduced motion / animations off ---------- */
@media (prefers-reduced-motion: reduce) {
	.g6-app *, .g6-app *::before, .g6-app *::after, .g6-splash * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.g6-still *, .g6-still .g6-stage { animation: none !important; }
