/* ==========================================================================
   Gameodrop — cookie consent
   Banner + preferences modal + reopen button.
   ========================================================================== */

.gd-cc {
	--cc-bg: #141236;
	--cc-bg-2: #100e28;
	--cc-line: #2a2366;
	--cc-purple: #7b5cff;
	--cc-purple-2: #a48cff;
	--cc-gold: #ffe94a;
	--cc-text: rgba(255, 255, 255, .84);
	--cc-title: #fff;
	--cc-muted: #9a93cf;
	--cc-ease: cubic-bezier(.22, 1, .36, 1);

	font-family: var(--wd-text-font, "Open Sans", Arial, sans-serif);
	color: var(--cc-text);
	box-sizing: border-box;
}

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

/* --------------------------------------------------------------- banner  */

.gd-cc-banner {
	position: fixed;
	z-index: 99990;
	left: 24px;
	bottom: 24px;
	width: min(468px, calc(100vw - 48px));
	padding: 22px 24px 18px 30px;
	border-radius: 4px 18px 18px 4px;
	background:
		linear-gradient(180deg, rgba(21, 18, 54, .98) 0%, rgba(10, 8, 30, .98) 100%);
	border: 1px solid var(--cc-line);
	border-left: 0;
	box-shadow:
		0 30px 70px -25px rgba(0, 0, 0, .95),
		0 0 60px -34px rgba(123, 92, 255, .9);
	backdrop-filter: blur(16px) saturate(1.25);
	-webkit-backdrop-filter: blur(16px) saturate(1.25);
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .4s var(--cc-ease), transform .4s var(--cc-ease);
	overflow: hidden;
}

/* the vertical accent that anchors the card, instead of a centred glow */
.gd-cc-edge {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(180deg, var(--cc-purple) 0%, #5f43e0 46%, var(--cc-gold) 100%);
}

/* faint scanline texture — reads as game UI, not as a generic modal */
.gd-cc-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: repeating-linear-gradient(
		0deg,
		rgba(255, 255, 255, .022) 0 1px,
		transparent 1px 4px
	);
}

.gd-cc-banner.is-in {
	opacity: 1;
	transform: translateY(0);
}

.gd-cc-banner.is-out {
	opacity: 0;
	transform: translateY(16px);
	pointer-events: none;
}

.gd-cc-head {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 10px;
}

.gd-cc-ico {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	color: var(--cc-gold);
}

.gd-cc-ico svg {
	width: 22px;
	height: 22px;
	display: block;
}

.gd-cc-kicker {
	font-family: var(--wd-title-font, "Lexend Deca", Arial, sans-serif);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--cc-purple-2);
}

.gd-cc-title {
	margin: 0 0 8px;
	font-family: var(--wd-title-font, "Lexend Deca", Arial, sans-serif);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--cc-title);
	letter-spacing: -.01em;
}

.gd-cc-text {
	margin: 0 0 16px;
	font-size: 13.5px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .68);
}

/* ------------------------------------------------------ category chips  */

.gd-cc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 18px;
}

.gd-cc-chip {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 13px;
	border-radius: 8px;
	border: 1px solid var(--cc-line);
	background: rgba(255, 255, 255, .03);
	color: rgba(255, 255, 255, .6);
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.gd-cc-chip em {
	font-style: normal;
	font-weight: 500;
	font-size: 11px;
	color: #4ade80;
	opacity: .8;
}

.gd-cc-dot {
	width: 7px;
	height: 7px;
	border-radius: 2px;
	background: #3a3470;
	transition: background .2s ease, box-shadow .2s ease;
}

.gd-cc-chip.is-locked {
	cursor: default;
	border-color: rgba(74, 222, 128, .28);
	background: rgba(74, 222, 128, .07);
	color: rgba(255, 255, 255, .78);
}

.gd-cc-chip.is-locked .gd-cc-dot {
	background: #4ade80;
	box-shadow: 0 0 8px rgba(74, 222, 128, .8);
}

.gd-cc-chip[aria-pressed="true"] {
	border-color: rgba(123, 92, 255, .6);
	background: rgba(123, 92, 255, .16);
	color: #fff;
}

.gd-cc-chip[aria-pressed="true"] .gd-cc-dot {
	background: var(--cc-purple-2);
	box-shadow: 0 0 8px rgba(123, 92, 255, .9);
}

.gd-cc-chip:not(.is-locked):hover {
	border-color: rgba(123, 92, 255, .45);
	color: #fff;
}

.gd-cc-chip:focus-visible {
	outline: 2px solid var(--cc-purple-2);
	outline-offset: 2px;
}

.gd-cc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	align-items: center;
}

/* fine print row */
.gd-cc-fine {
	margin: 14px 0 0;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, .06);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: #5f598f;
}

.gd-cc-fine a,
.gd-cc-fine .gd-cc-link {
	font-size: 12px;
	color: #8f88c4;
	padding: 0;
	text-decoration: none;
	border-bottom: 1px solid rgba(143, 136, 196, .3);
}

.gd-cc-fine a:hover,
.gd-cc-fine .gd-cc-link:hover {
	color: #fff;
	border-bottom-color: currentColor;
}

/* --------------------------------------------------------------- buttons */

.gd-cc-btn {
	appearance: none;
	border: 0;
	cursor: pointer;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1;
	padding: 12px 20px;
	border-radius: 11px;
	transition: transform .22s var(--cc-ease), box-shadow .22s var(--cc-ease),
		background .22s ease, color .2s ease, border-color .2s ease;
	position: relative;
	overflow: hidden;
	white-space: nowrap;
}

.gd-cc-btn:focus-visible {
	outline: 2px solid var(--cc-purple-2);
	outline-offset: 2px;
}

.gd-cc-btn--accept {
	flex: 1 1 auto;
	background: linear-gradient(135deg, #7b5cff 0%, #a48cff 100%);
	color: #fff;
	box-shadow: 0 12px 28px -12px rgba(123, 92, 255, .85);
}

.gd-cc-btn--accept::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 -140%;
	width: 55%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent);
	transform: skewX(-18deg);
	opacity: 0;
}

.gd-cc-btn--accept:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 38px -14px rgba(123, 92, 255, 1);
}

.gd-cc-btn--accept:hover::after {
	animation: gd-cc-sweep .8s var(--cc-ease) forwards;
}

@keyframes gd-cc-sweep {
	0% { left: -140%; opacity: 0; }
	15% { opacity: 1; }
	100% { left: 170%; opacity: 0; }
}

.gd-cc-btn--reject {
	background: rgba(255, 255, 255, .05);
	color: rgba(255, 255, 255, .88);
	border: 1px solid var(--cc-line);
}

.gd-cc-btn--reject:hover {
	background: rgba(255, 255, 255, .1);
	border-color: rgba(123, 92, 255, .5);
	transform: translateY(-1px);
}

.gd-cc-link {
	appearance: none;
	background: none;
	border: 0;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--cc-muted);
	padding: 8px 4px;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(154, 147, 207, .4);
	transition: color .2s ease;
}

.gd-cc-link:hover {
	color: #fff;
}

.gd-cc-link:focus-visible {
	outline: 2px solid var(--cc-purple-2);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---------------------------------------------------------------- modal  */

.gd-cc-modal {
	position: fixed;
	inset: 0;
	z-index: 99995;
	display: grid;
	place-items: center;
	padding: 20px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease;
}

.gd-cc-modal.is-in {
	opacity: 1;
	pointer-events: auto;
}

.gd-cc-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 3, 20, .78);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.gd-cc-panel {
	position: relative;
	width: min(620px, 100%);
	max-height: min(86vh, 760px);
	display: flex;
	flex-direction: column;
	border-radius: 20px;
	background:
		radial-gradient(100% 60% at 0% 0%, rgba(123, 92, 255, .18) 0%, transparent 55%),
		linear-gradient(180deg, #181541 0%, #0e0c26 100%);
	border: 1px solid var(--cc-line);
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95);
	transform: translateY(18px) scale(.97);
	transition: transform .38s var(--cc-ease);
	overflow: hidden;
}

.gd-cc-modal.is-in .gd-cc-panel {
	transform: translateY(0) scale(1);
}

.gd-cc-panel-head {
	padding: 24px 26px 18px;
	border-bottom: 1px solid var(--cc-line);
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.gd-cc-panel-head .gd-cc-title {
	font-size: 19px;
}

.gd-cc-panel-sub {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--cc-muted);
}

.gd-cc-close {
	appearance: none;
	background: rgba(255, 255, 255, .05);
	border: 1px solid var(--cc-line);
	color: var(--cc-muted);
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	border-radius: 10px;
	cursor: pointer;
	margin-left: auto;
	display: grid;
	place-items: center;
	font-size: 18px;
	line-height: 1;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.gd-cc-close:hover {
	background: rgba(255, 255, 255, .1);
	color: #fff;
	border-color: rgba(123, 92, 255, .5);
}

.gd-cc-panel-body {
	padding: 8px 26px 4px;
	overflow-y: auto;
	flex: 1 1 auto;
}

.gd-cc-cat {
	padding: 18px 0;
	border-bottom: 1px solid rgba(42, 35, 102, .6);
}

.gd-cc-cat:last-child {
	border-bottom: 0;
}

.gd-cc-cat-top {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 7px;
}

.gd-cc-cat-name {
	font-family: var(--wd-title-font, "Lexend Deca", Arial, sans-serif);
	font-size: 15px;
	font-weight: 600;
	color: var(--cc-title);
	margin: 0;
}

.gd-cc-cat-desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--cc-muted);
	padding-right: 60px;
}

.gd-cc-locked {
	margin-left: auto;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #4ade80;
	background: rgba(74, 222, 128, .12);
	border: 1px solid rgba(74, 222, 128, .3);
	border-radius: 999px;
	padding: 5px 12px;
	white-space: nowrap;
}

/* switch */
.gd-cc-switch {
	margin-left: auto;
	flex: 0 0 auto;
	position: relative;
	display: inline-block;
	width: 48px;
	height: 27px;
}

.gd-cc-switch input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
	z-index: 2;
}

.gd-cc-track {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid var(--cc-line);
	transition: background .25s ease, border-color .25s ease;
}

.gd-cc-track::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: #b6afe0;
	transition: transform .28s var(--cc-ease), background .25s ease;
}

.gd-cc-switch input:checked + .gd-cc-track {
	background: linear-gradient(135deg, #7b5cff, #a48cff);
	border-color: transparent;
}

.gd-cc-switch input:checked + .gd-cc-track::before {
	transform: translateX(21px);
	background: #fff;
}

.gd-cc-switch input:focus-visible + .gd-cc-track {
	outline: 2px solid var(--cc-purple-2);
	outline-offset: 2px;
}

.gd-cc-panel-foot {
	padding: 18px 26px 22px;
	border-top: 1px solid var(--cc-line);
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	background: rgba(7, 5, 26, .5);
}

.gd-cc-panel-foot .gd-cc-btn--accept {
	flex: 0 0 auto;
}

.gd-cc-foot-note {
	width: 100%;
	margin: 4px 0 0;
	font-size: 12px;
	color: var(--cc-muted);
}

.gd-cc-foot-note a {
	color: var(--cc-muted);
	text-decoration: underline;
}

.gd-cc-foot-note a:hover {
	color: #fff;
}

/* ------------------------------------------------------------ reopen fab */

.gd-cc-fab {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 99980;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	cursor: pointer;
	border: 1px solid var(--cc-line);
	background: linear-gradient(180deg, rgba(24, 21, 62, .95), rgba(13, 11, 34, .95));
	color: var(--cc-muted);
	box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .9);
	opacity: 0;
	transform: scale(.85);
	pointer-events: none;
	transition: opacity .3s ease, transform .3s var(--cc-ease),
		color .2s ease, border-color .2s ease;
}

.gd-cc-fab.is-in {
	opacity: .55;
	transform: scale(1);
	pointer-events: auto;
}

.gd-cc-fab:hover {
	opacity: 1;
	color: var(--cc-purple-2);
	border-color: rgba(123, 92, 255, .55);
}

.gd-cc-fab svg {
	width: 20px;
	height: 20px;
	display: block;
}

/* the mobile bottom toolbar sits at the bottom too — lift the fab above it */
@media (max-width: 1024px) {
	.gd-cc-fab {
		bottom: 76px;
	}
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 600px) {
	.gd-cc-banner {
		left: 8px;
		right: 8px;
		bottom: 76px; /* clears the mobile toolbar */
		width: auto;
		padding: 18px 16px 15px 22px;
		border-radius: 4px 14px 14px 4px;
	}

	.gd-cc-title {
		font-size: 17px;
	}

	.gd-cc-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.gd-cc-btn {
		width: 100%;
		padding: 13px 18px;
	}

	.gd-cc-fine {
		justify-content: center;
		text-align: center;
	}

	.gd-cc-panel-head,
	.gd-cc-panel-body,
	.gd-cc-panel-foot {
		padding-left: 18px;
		padding-right: 18px;
	}

	.gd-cc-cat-desc {
		padding-right: 0;
	}

	.gd-cc-panel-foot .gd-cc-btn {
		width: 100%;
	}
}

/* respect the OS setting */
@media (prefers-reduced-motion: reduce) {
	.gd-cc-banner,
	.gd-cc-panel,
	.gd-cc-modal,
	.gd-cc-fab {
		transition-duration: .001ms !important;
	}

	.gd-cc-btn--accept::after {
		display: none;
	}
}
