/* Full-width inside GTA6Story page template (theme caps .editable-page-body at 800px) */
.entry-content:has(.g6m),
.editable-page-body:has(.g6m) {
	max-width: none !important;
	width: 100%;
}

.g6m {
	--g6m-bg: var(--bg-primary, #0a0a0a);
	--g6m-card: var(--bg-card, #161616);
	--g6m-card-2: var(--bg-card-hover, #1c1c1c);
	--g6m-text: var(--text-primary, #fff);
	--g6m-muted: var(--text-secondary, #a1a1aa);
	--g6m-faint: var(--text-muted, #71717a);
	--g6m-accent: var(--accent, #ff1493);
	--g6m-line: var(--border, rgba(255, 255, 255, 0.1));
	--g6m-display: var(--font-display, "Bebas Neue", "Arial Narrow", Impact, sans-serif);
	color: var(--g6m-text);
	font-family: var(--font-ui, Inter, system-ui, sans-serif);
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 4px 0 56px;
	box-sizing: border-box;
}

.g6m *,
.g6m *::before,
.g6m *::after {
	box-sizing: border-box;
}

.g6m-grid {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	width: 100%;
}

.g6m-drop,
.g6m-plate,
.g6m-work,
.g6m-card {
	background: var(--g6m-card);
	border: 1px solid var(--g6m-line);
	border-radius: 12px;
	color: inherit;
}

.g6m-drop {
	width: 100%;
	min-height: 120px;
	border-style: dashed;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	cursor: pointer;
	margin-bottom: 14px;
}

.g6m-drop.is-over {
	border-color: var(--g6m-accent);
	background: var(--g6m-card-2);
}

.g6m-drop span,
.g6m-label,
.g6m-hint {
	color: var(--g6m-faint);
	font-size: 12px;
}

.g6m-label {
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 6px 0 6px;
}

.g6m-hint {
	margin: 0 0 10px;
	line-height: 1.45;
}

.g6m-plates {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.g6m-plate {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	padding: 10px 12px;
	cursor: pointer;
}

.g6m-plate.is-on {
	border-color: var(--g6m-accent);
	background: var(--g6m-card-2);
}

.g6m-num {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: #0a0a0a;
	border: 1px solid var(--g6m-line);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--g6m-text);
	flex-shrink: 0;
}

.g6m-plate.is-on .g6m-num {
	border-color: var(--g6m-accent);
	color: var(--g6m-accent);
}

.g6m-plate-name {
	font-size: 14px;
	line-height: 1.3;
}

.g6m-work {
	padding: 20px;
	width: 100%;
}

.g6m-canvas-wrap {
	background: #050505;
	border-radius: 8px;
	margin-bottom: 18px;
	display: flex;
	justify-content: center;
	align-items: center;
}

#g6mCanvas {
	display: block;
	width: 100%;
	max-width: 720px;
	height: auto;
	margin: 0 auto;
}

.g6m-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 12px;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--g6m-faint);
}

.g6m-field input[type="text"],
.g6m-field input[type="color"] {
	text-transform: none;
	letter-spacing: 0;
	background: var(--g6m-bg);
	color: var(--g6m-text);
	border: 1px solid var(--g6m-line);
	border-radius: 8px;
	padding: 12px;
	font-size: 16px;
	width: 100%;
}

.g6m-field input[type="range"] {
	accent-color: var(--g6m-accent);
	width: 100%;
}

.g6m-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.g6m-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.g6m-primary,
.g6m-ghost {
	min-height: 44px;
	border-radius: 8px;
	padding: 10px 16px;
	cursor: pointer;
	font-weight: 600;
}

.g6m-primary {
	background: var(--g6m-accent);
	color: #fff;
	border: none;
	flex: 1;
}

.g6m-ghost {
	background: transparent;
	color: var(--g6m-text);
	border: 1px solid var(--g6m-line);
}

.g6m-note {
	color: var(--g6m-muted);
	margin-top: 10px;
}

.g6m-guide,
.g6m-wall {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--g6m-line);
	max-width: 900px;
}

/* Match theme .archive-title — Bebas Neue (theme GTA display face) */
.g6m-guide h2,
.g6m-wall h2 {
	font-family: var(--g6m-display);
	font-size: clamp(1.9rem, 4vw, 2.75rem);
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 14px;
	color: var(--g6m-text);
	line-height: 1.05;
}

.g6m-steps {
	margin: 0;
	padding-left: 1.25rem;
	color: var(--g6m-muted);
	line-height: 1.65;
}

.g6m-steps li {
	margin-bottom: 10px;
}

.g6m-steps strong {
	color: var(--g6m-text);
}

.g6m-sub {
	color: var(--g6m-muted);
	line-height: 1.6;
	margin-top: 12px;
}

.g6m-list {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin: 16px 0 0;
	padding: 0;
	max-width: 1200px;
}

.g6m-card {
	width: 100%;
	padding: 0;
	overflow: hidden;
	cursor: pointer;
	text-align: left;
}

.g6m-card img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
}

.g6m-card span {
	display: block;
	padding: 8px 10px 10px;
	color: var(--g6m-muted);
	font-size: 12px;
}

@media (max-width: 900px) {
	.g6m-grid {
		grid-template-columns: 1fr;
	}
	.g6m-split,
	.g6m-list {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 520px) {
	.g6m-list {
		grid-template-columns: 1fr 1fr;
	}
}

/* Bottom ad placement */
.g6m-ad {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--g6m-line);
	width: 100%;
	max-width: 1200px;
}

.g6m-ad-label {
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--g6m-faint);
	margin: 0 0 10px;
	text-align: center;
}

.g6m-ad-box {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 90px;
	padding: 16px;
	background: var(--g6m-card);
	border: 1px solid var(--g6m-line);
	border-radius: 12px;
	overflow: hidden;
}

.g6m-ad-code {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.g6m-ad-code iframe,
.g6m-ad-code ins {
	max-width: 100%;
}

.g6m-ad-banner,
.g6m-ad-banner-img {
	display: block;
	max-width: 100%;
	margin: 0 auto;
}

.g6m-ad-banner img,
.g6m-ad-banner-img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border-radius: 4px;
}

/* Hide theme chrome on this page only: breadcrumb + "Page/Tool" label */
body:has(.g6m) .breadcrumb,
body:has(.g6m) .section-label,
body:has(.g6m) .editable-page-header .section-label {
	display: none !important;
}

body:has(.g6m) .editable-page-header {
	margin-bottom: 20px;
}

/* FAQ accordion */
.g6m-faq-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--g6m-line);
	padding: 0 0 14px;
	cursor: pointer;
	color: var(--g6m-text);
	text-align: left;
}

.g6m-faq-title {
	font-family: var(--g6m-display);
	font-size: clamp(1.7rem, 3.5vw, 2.4rem);
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.05;
}

.g6m-faq-chevron {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	border: 1px solid var(--g6m-line);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: var(--g6m-accent);
	flex-shrink: 0;
}

.g6m-faq-toggle[aria-expanded="true"] .g6m-faq-chevron {
	transform: rotate(45deg);
}

.g6m-faq-body {
	padding-top: 16px;
}

/* Wall slider — up to 8 cards, 4 visible */
.g6m-wall-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 8px;
}

.g6m-wall-head h2 {
	margin-bottom: 6px;
}

.g6m-nav {
	display: flex;
	gap: 8px;
}

.g6m-nav-btn {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	border: 1px solid var(--g6m-line);
	background: var(--g6m-card);
	color: var(--g6m-text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.g6m-nav-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.g6m-nav-btn:not(:disabled):hover {
	border-color: var(--g6m-accent);
	color: var(--g6m-accent);
}

.g6m-slider {
	overflow: hidden;
	width: 100%;
}

.g6m-track {
	list-style: none;
	display: flex;
	margin: 0;
	padding: 0;
	transition: transform 0.35s ease;
	will-change: transform;
}

.g6m-slide {
	flex: 0 0 25%;
	max-width: 25%;
	padding: 0 7px;
	box-sizing: border-box;
}

.g6m-slide .g6m-card {
	width: 100%;
}

@media (max-width: 700px) {
	.g6m-slide {
		flex: 0 0 50%;
		max-width: 50%;
	}
}

.g6m-drag-hint {
	color: var(--g6m-faint);
	font-size: 12px;
	margin: 0 0 10px;
}

.g6m-text-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
}

.g6m-danger {
	border-color: rgba(255, 80, 80, 0.45) !important;
	color: #ff8a8a !important;
}

#g6mCanvas {
	cursor: grab;
	touch-action: none;
}

.g6m-share {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--g6m-line);
}

.g6m-share .g6m-label {
	margin-top: 0;
}

.g6m-share-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.g6m-share-btn {
	min-height: 40px;
	padding: 8px 14px;
	border-radius: 8px;
	border: 1px solid var(--g6m-line);
	background: var(--g6m-card);
	color: var(--g6m-text);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.g6m-share-btn:hover {
	border-color: var(--g6m-accent);
	color: var(--g6m-accent);
}

.g6m-share-tip {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: var(--g6m-faint);
	max-width: 640px;
}

/* Theme page excerpt under the H1 */
body:has(.g6m) .archive-intro {
	font-size: 0.9rem;
	line-height: 1.55;
	max-width: 640px;
}
