:root {
	--pm-ink: #fbf8ff;
	--pm-muted: #c9bddf;
	--pm-night: #100725;
	--pm-night-2: #1b0c3b;
	--pm-violet: #8d5af2;
	--pm-rose: #ff77aa;
	--pm-aqua: #69e1e0;
	--pm-gold: #ffd36a;
	--pm-danger: #ff587d;
	--pm-line: rgba(255, 255, 255, .13);
	--pm-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--pm-night); }
body.pelimagia-theme {
	margin: 0;
	background:
		radial-gradient(circle at 12% 8%, rgba(141, 90, 242, .22), transparent 30rem),
		radial-gradient(circle at 87% 21%, rgba(255, 119, 170, .16), transparent 29rem),
		var(--pm-night);
	color: var(--pm-ink);
	font-family: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}
body.pelimagia-theme.admin-bar .pm-site-header { top: 32px; }
body.pelimagia-theme button,
body.pelimagia-theme input,
body.pelimagia-theme textarea,
body.pelimagia-theme select { font: inherit; }
body.pelimagia-theme button,
body.pelimagia-theme a { -webkit-tap-highlight-color: transparent; }
body.pelimagia-theme a { color: inherit; text-decoration: none; }
body.pelimagia-theme img { max-width: 100%; height: auto; }
body.pelimagia-theme [hidden] { display: none !important; }

.pm-icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; }
.pm-skip-link {
	position: fixed;
	z-index: 9999;
	left: 16px;
	top: -100px;
	padding: 11px 16px;
	border-radius: 0 0 10px 10px;
	color: #1c1230 !important;
	background: var(--pm-aqua);
	font-weight: 900;
}
.pm-skip-link:focus { top: 0; }

.pm-site-shell {
	min-height: 100vh;
	overflow: hidden;
	background-image:
		radial-gradient(circle at 20% 42%, rgba(105, 225, 224, .05), transparent 20rem),
		linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
	background-size: auto, 54px 54px, 54px 54px;
}

.pm-site-header {
	position: sticky;
	z-index: 50;
	top: 0;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	width: min(1180px, calc(100% - 32px));
	min-height: 74px;
	margin: 16px auto 0;
	padding: 0 18px;
	border: 1px solid var(--pm-line);
	border-radius: 22px;
	background: rgba(19, 9, 43, .78);
	box-shadow: 0 22px 60px rgba(5, 2, 18, .35);
	backdrop-filter: blur(20px);
}

.pm-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: max-content;
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -.04em;
}
.pm-brand strong { color: var(--pm-gold); }
.pm-brand-mark {
	position: relative;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255,255,255,.24);
	border-radius: 14px;
	color: white;
	background: linear-gradient(145deg, var(--pm-rose), var(--pm-violet));
	box-shadow: 0 8px 24px rgba(141,90,242,.4);
}
.pm-brand-mark > .pm-icon-book { width: 23px; height: 23px; }
.pm-brand-mark > .pm-icon-sparkle {
	position: absolute;
	right: -4px;
	top: -5px;
	width: 14px;
	height: 14px;
	color: var(--pm-gold);
	filter: drop-shadow(0 0 8px var(--pm-gold));
}
.pm-site-header nav { display: flex; gap: 5px; }
.pm-site-header nav a {
	padding: 10px 12px;
	border-radius: 12px;
	color: #d7cde8;
	font-size: 14px;
	font-weight: 800;
	transition: .2s ease;
}
.pm-site-header nav a:hover,
.pm-site-header nav a:focus-visible { color: white; background: rgba(255,255,255,.08); }
.pm-header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.pm-mini-crowns { display: flex; align-items: center; gap: 6px; color: var(--pm-gold); font-size: 14px; font-weight: 900; }
.pm-mini-crowns .pm-icon { width: 18px; height: 18px; }
.pm-install-button,
.pm-portal-button,
.pm-game-tile > button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 8px 14px;
	border: 1px solid var(--pm-line);
	border-radius: 13px;
	color: white;
	background: rgba(255,255,255,.1);
	font-weight: 900;
	cursor: pointer;
	transition: .2s ease;
}
.pm-install-button:hover,
.pm-portal-button:hover,
.pm-game-tile > button:hover { transform: translateY(-2px); background: rgba(255,255,255,.18); }
.pm-install-button .pm-icon { width: 18px; }
.pm-install-help {
	position: fixed;
	z-index: 80;
	right: 24px;
	top: 104px;
	display: flex;
	gap: 18px;
	width: min(390px, calc(100% - 32px));
	padding: 18px;
	border: 1px solid rgba(105,225,224,.32);
	border-radius: 18px;
	background: rgba(28,14,58,.97);
	box-shadow: 0 24px 70px rgba(0,0,0,.45);
}
.pm-install-help strong { display: block; margin-bottom: 4px; }
.pm-install-help p { margin: 0; color: var(--pm-muted); font-size: 13px; line-height: 1.5; }
.pm-install-help button { border: 0; color: white; background: transparent; cursor: pointer; }

.pm-hero {
	position: relative;
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	align-items: center;
	width: min(1180px, calc(100% - 40px));
	min-height: 690px;
	margin: 0 auto;
	padding: 76px 0 66px;
}
.pm-hero-copy { position: relative; z-index: 2; padding-left: 12px; }
.pm-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--pm-aqua);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .15em;
	text-transform: uppercase;
}
.pm-eyebrow .pm-icon { width: 17px; height: 17px; }
.pm-hero h1,
.pm-section-heading h2,
.pm-album-copy h2,
.pm-daily-banner h2,
.pm-family h2,
.pm-question-card h1,
.pm-result-card h1,
.pm-generic-card h1 {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	letter-spacing: -.05em;
}
.pm-hero h1 {
	max-width: 650px;
	margin: 20px 0;
	font-size: clamp(50px, 6.2vw, 82px);
	line-height: .96;
	text-wrap: balance;
}
.pm-hero-copy > p { max-width: 570px; margin: 0; color: var(--pm-muted); font-size: 18px; line-height: 1.72; }
.pm-hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.pm-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 54px;
	padding: 12px 24px;
	border-radius: 16px;
	font-weight: 900;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.pm-button .pm-icon { width: 19px; height: 19px; }
.pm-button-primary {
	border: 1px solid rgba(255,255,255,.18);
	color: white;
	background: linear-gradient(135deg, #d74b94, #8655e9 65%, #477fc4);
	box-shadow: 0 14px 36px rgba(134,85,233,.32), inset 0 1px rgba(255,255,255,.25);
}
.pm-button-primary:hover,
.pm-button-primary:focus-visible { transform: translateY(-2px); background: linear-gradient(135deg, #e759a2, #9668f6 65%, #4f91dd); box-shadow: 0 18px 44px rgba(134,85,233,.42); }
.pm-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.pm-listen-button { display: inline-flex; align-items: center; gap: 8px; padding: 14px 16px; border: 0; color: #d9d0e7; background: transparent; font-weight: 800; cursor: pointer; }
.pm-listen-button:hover { color: white; }
.pm-listen-button .pm-icon { width: 18px; }
.pm-hero-stats { display: flex; gap: 24px; margin-top: 40px; }
.pm-hero-stats div { display: grid; gap: 3px; }
.pm-hero-stats div + div { padding-left: 24px; border-left: 1px solid var(--pm-line); }
.pm-hero-stats strong { font-family: Georgia, serif; font-size: 22px; }
.pm-hero-stats span { color: #a99bbc; font-size: 12px; }
.pm-hero-stats strong span { color: inherit; font-size: inherit; }
.pm-hero-visual { position: relative; width: 120%; height: 570px; margin-left: -5%; }
.pm-hero-visual::before { content: ""; position: absolute; inset: 15% 10% 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255,119,170,.27), rgba(141,90,242,.15) 45%, transparent 72%); filter: blur(20px); }
.pm-hero-world {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: 38% 38% 28% 40% / 32% 32% 42% 45%;
	-webkit-mask-image: radial-gradient(ellipse 63% 54% at 53% 51%, #000 42%, transparent 79%);
	mask-image: radial-gradient(ellipse 63% 54% at 53% 51%, #000 42%, transparent 79%);
	filter: saturate(1.08) drop-shadow(0 35px 55px rgba(5,1,20,.55));
}
.pm-hero-luma { position: absolute; z-index: 4; right: 8%; bottom: 5%; width: 142px; filter: drop-shadow(0 18px 22px rgba(0,0,0,.45)); animation: pm-float 4.2s ease-in-out infinite; }
.pm-floating-reward { position: absolute; z-index: 3; display: flex; align-items: center; gap: 7px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.17); border-radius: 14px; background: rgba(25,12,54,.72); box-shadow: 0 12px 30px rgba(0,0,0,.3); backdrop-filter: blur(13px); font-size: 12px; font-weight: 900; }
.pm-floating-reward .pm-icon { width: 18px; color: var(--pm-gold); }
.pm-reward-one { left: 15%; top: 20%; animation: pm-float 5s ease-in-out infinite; }
.pm-reward-two { right: 6%; top: 34%; animation: pm-float 5.5s .7s ease-in-out infinite; }
@keyframes pm-float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }

.pm-section-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.pm-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 28px; }
.pm-section-heading h2,
.pm-album-copy h2,
.pm-daily-banner h2,
.pm-family h2 { margin: 10px 0 0; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.05; }
.pm-section-heading > p { max-width: 430px; margin: 0; color: var(--pm-muted); line-height: 1.65; }
.pm-compact-heading { align-items: start; }

.pm-worlds { padding: 90px 0; }
.pm-world-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pm-world-card { position: relative; min-height: 430px; padding: 32px; overflow: hidden; border: 1px solid var(--pm-line); border-radius: 34px; box-shadow: var(--pm-shadow); isolation: isolate; }
.pm-princess-world { background: radial-gradient(circle at 79% 24%, rgba(255,213,114,.23), transparent 23%), linear-gradient(140deg, #48226f, #271343 62%, #1c1037); }
.pm-barbie-world { background: radial-gradient(circle at 80% 22%, rgba(105,225,224,.18), transparent 24%), linear-gradient(140deg, #7f2862, #3a194e 61%, #1d123a); }
.pm-world-card::before,
.pm-world-card::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.pm-world-card::before { right: -70px; top: -40px; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.11); box-shadow: inset 0 0 70px rgba(255,255,255,.05); }
.pm-world-card::after { right: 10px; top: 22px; width: 160px; height: 160px; border: 1px solid rgba(255,255,255,.1); }
.pm-world-orbit { position: absolute; right: 58px; top: 52px; display: grid; place-items: center; width: 112px; height: 112px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: var(--pm-gold); background: rgba(255,255,255,.07); box-shadow: 0 0 55px rgba(255,211,106,.15), inset 0 0 30px rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.pm-barbie-world .pm-world-orbit { color: var(--pm-aqua); box-shadow: 0 0 55px rgba(105,225,224,.16); }
.pm-world-orbit .pm-icon { width: 47px; height: 47px; }
.pm-world-content { position: absolute; left: 32px; right: 32px; bottom: 32px; }
.pm-world-content > span { color: #e4d8f2; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .13em; }
.pm-world-content h3 { max-width: 390px; margin: 8px 0; font-family: Georgia, serif; font-size: 36px; letter-spacing: -.04em; }
.pm-world-content p { max-width: 410px; margin: 0; color: #c9bddb; line-height: 1.55; }
.pm-world-tags { display: flex; gap: 7px; margin: 18px 0; }
.pm-world-tags span { padding: 6px 9px; border: 1px solid var(--pm-line); border-radius: 999px; color: #ddd4e9; background: rgba(255,255,255,.06); font-size: 11px; font-weight: 800; }
.pm-portal-button .pm-icon { width: 17px; }

.pm-games { padding: 75px 0 100px; }
.pm-game-library { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.pm-game-tile { position: relative; min-height: 330px; padding: 24px; overflow: hidden; border: 1px solid var(--pm-line); border-radius: 27px; background: linear-gradient(145deg, rgba(45,24,78,.88), rgba(27,13,52,.88)); box-shadow: 0 18px 45px rgba(0,0,0,.18); transition: transform .2s ease, border-color .2s ease; }
.pm-game-tile:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.26); }
.pm-game-princess { background: radial-gradient(circle at 90% 0%, rgba(255,211,106,.12), transparent 32%), linear-gradient(145deg, rgba(67,28,96,.92), rgba(28,13,52,.9)); }
.pm-game-barbie { background: radial-gradient(circle at 90% 0%, rgba(255,119,170,.16), transparent 34%), linear-gradient(145deg, rgba(89,29,83,.92), rgba(31,14,55,.9)); }
.pm-game-number { position: absolute; right: 15px; top: 5px; color: rgba(255,255,255,.055); font-family: Georgia, serif; font-size: 76px; font-weight: 900; line-height: 1; }
.pm-game-symbol { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 36px; border-radius: 17px; color: var(--pm-gold); background: rgba(255,211,106,.1); }
.pm-game-barbie .pm-game-symbol { color: var(--pm-rose); background: rgba(255,119,170,.1); }
.pm-game-mixed .pm-game-symbol { color: var(--pm-aqua); background: rgba(105,225,224,.1); }
.pm-game-symbol .pm-icon { width: 25px; height: 25px; }
.pm-game-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-game-meta span { padding: 5px 8px; border: 1px solid var(--pm-line); border-radius: 999px; color: #cfc3df; font-size: 10px; font-weight: 800; }
.pm-game-tile h3 { margin: 13px 0 8px; font-size: 19px; line-height: 1.25; }
.pm-game-tile p { margin: 0 0 20px; color: var(--pm-muted); font-size: 13px; }
.pm-game-tile > button { position: absolute; left: 24px; bottom: 22px; min-height: 40px; font-size: 12px; }
.pm-game-tile > button .pm-icon { width: 15px; }

.pm-modes { padding: 78px 0 110px; }
.pm-mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pm-mode-card { position: relative; min-height: 260px; padding: 24px; border: 1px solid var(--pm-line); border-radius: 26px; background: rgba(37,20,65,.68); transition: transform .2s ease, border-color .2s ease; }
.pm-mode-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.25); }
.pm-mode-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 28px; border-radius: 17px; }
.pm-mode-icon .pm-icon { width: 26px; height: 26px; }
.pm-mode-rose .pm-mode-icon { color: #ff98bd; background: rgba(255,119,170,.13); }
.pm-mode-aqua .pm-mode-icon { color: var(--pm-aqua); background: rgba(105,225,224,.12); }
.pm-mode-violet .pm-mode-icon { color: #b797ff; background: rgba(141,90,242,.15); }
.pm-mode-gold .pm-mode-icon { color: var(--pm-gold); background: rgba(255,211,106,.13); }
.pm-mode-card h3 { margin: 0 0 9px; font-size: 18px; }
.pm-mode-card p { margin: 0; color: var(--pm-muted); font-size: 14px; line-height: 1.55; }
.pm-mode-card > button { position: absolute; right: 20px; bottom: 20px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--pm-line); border-radius: 12px; color: white; background: rgba(255,255,255,.07); cursor: pointer; transition: .2s ease; }
.pm-mode-card > button:hover { background: rgba(255,255,255,.16); transform: translateX(2px); }
.pm-mode-card > button .pm-icon { width: 17px; }

.pm-album { padding: 30px 0 110px; }
.pm-album-panel { display: grid; grid-template-columns: .8fr 1.2fr; min-height: 500px; overflow: hidden; border: 1px solid var(--pm-line); border-radius: 38px; background: radial-gradient(circle at 12% 80%, rgba(105,225,224,.12), transparent 30%), radial-gradient(circle at 75% 10%, rgba(255,119,170,.12), transparent 34%), rgba(33,17,61,.8); }
.pm-album-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.pm-album-art::before { content: ""; position: absolute; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 80px rgba(105,225,224,.11), inset 0 0 70px rgba(141,90,242,.11); }
.pm-magic-book { position: relative; display: grid; place-items: center; width: 240px; height: 200px; color: var(--pm-gold); filter: drop-shadow(0 25px 32px rgba(0,0,0,.35)); }
.pm-magic-book > .pm-icon-book { width: 190px; height: 190px; stroke-width: .8; }
.pm-book-star { position: absolute; color: white; filter: drop-shadow(0 0 8px var(--pm-aqua)); animation: pm-float 4s ease-in-out infinite; }
.pm-book-star .pm-icon { width: 26px; height: 26px; }
.pm-star-a { left: 35px; top: 15px; }
.pm-star-b { right: 28px; top: 48px; animation-delay: .7s; }
.pm-album-copy { align-self: center; padding: 60px 70px 60px 30px; }
.pm-album-copy h2 { max-width: 600px; }
.pm-album-copy > p { max-width: 570px; color: var(--pm-muted); line-height: 1.7; }
.pm-album-progress-line { max-width: 560px; margin: 28px 0 22px; }
.pm-album-progress-line > div:first-child { display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--pm-muted); font-size: 13px; }
.pm-album-progress-line strong { color: var(--pm-gold); }
.pm-progress { width: 100%; height: 9px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.pm-progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pm-aqua), var(--pm-violet), var(--pm-rose)); transition: width .35s ease; }
.pm-album-progress-line .pm-progress > span { background: linear-gradient(90deg, var(--pm-rose), var(--pm-gold)); }
.pm-badge-row { display: flex; gap: 10px; }
.pm-badge-row > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; }
.pm-earned-badge { border: 1px solid rgba(255,211,106,.25); color: var(--pm-gold); background: rgba(255,211,106,.1); }
.pm-earned-badge .pm-icon { width: 22px; }
.pm-locked-badge { border: 1px dashed rgba(255,255,255,.14); color: #81758f; background: rgba(255,255,255,.025); font-weight: 900; }

.pm-daily-banner { position: relative; display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 20px; min-height: 210px; margin-bottom: 100px; padding: 30px 42px; overflow: hidden; border: 1px solid rgba(255,211,106,.2); border-radius: 32px; background: radial-gradient(circle at 10% 50%, rgba(255,211,106,.13), transparent 24%), linear-gradient(110deg, rgba(71,31,103,.9), rgba(36,17,69,.9)); }
.pm-daily-banner img { width: 135px; height: 150px; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(0,0,0,.35)); }
.pm-daily-banner h2 { font-size: 34px; }
.pm-daily-banner p { margin: 8px 0 0; color: var(--pm-muted); }

.pm-family { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; padding: 20px 0 100px; }
.pm-family-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pm-family-points p { margin: 0; padding: 22px; border: 1px solid var(--pm-line); border-radius: 20px; color: var(--pm-muted); background: rgba(255,255,255,.035); font-size: 13px; line-height: 1.65; }
.pm-family-points strong { color: white; font-size: 14px; }

.pm-site-footer { display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; gap: 30px; width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 40px 0 50px; border-top: 1px solid var(--pm-line); color: #9f93b2; font-size: 12px; }
.pm-footer-brand { color: white; font-size: 18px; }
.pm-footer-brand .pm-brand-mark { width: 36px; height: 36px; border-radius: 12px; }
.pm-site-footer > p { text-align: center; }
.pm-footer-links { display: flex; justify-content: end; gap: 18px; }
.pm-footer-links a:hover { color: white; }
.pm-site-footer small { grid-column: 1 / -1; text-align: center; color: #776c8c; }

.pm-game-screen,
.pm-result-screen { min-height: 100vh; background: radial-gradient(circle at 18% 0%, rgba(141,90,242,.25), transparent 30rem), radial-gradient(circle at 87% 90%, rgba(255,119,170,.16), transparent 30rem), var(--pm-night); }
body.pm-playing .pm-site-header,
body.pm-playing .pm-home-content,
body.pm-playing .pm-site-footer,
body.pm-results .pm-site-header,
body.pm-results .pm-home-content,
body.pm-results .pm-site-footer,
body.pm-playing .pm-tmdb-credit,
body.pm-results .pm-tmdb-credit { display: none; }
.pm-game-topbar { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 22px; width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 26px 0; }
.pm-round-control { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--pm-line); border-radius: 14px; color: white; background: rgba(255,255,255,.07); cursor: pointer; }
.pm-round-control:hover { background: rgba(255,255,255,.13); }
.pm-round-control .pm-icon { width: 19px; }
.pm-game-progress-wrap { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.pm-game-progress-wrap > span { color: var(--pm-muted); font-size: 12px; font-weight: 800; }
.pm-game-tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.pm-auto-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 10px; border: 1px solid var(--pm-line); border-radius: 999px; color: #b9aecb; background: rgba(255,255,255,.05); font-size: 10px; font-weight: 900; cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.pm-auto-toggle > span:first-child { width: 8px; height: 8px; border-radius: 50%; background: #817592; box-shadow: 0 0 0 3px rgba(129,117,146,.12); }
.pm-auto-toggle.is-active { border-color: rgba(105,225,224,.24); color: var(--pm-aqua); background: rgba(105,225,224,.07); }
.pm-auto-toggle.is-active > span:first-child { background: var(--pm-aqua); box-shadow: 0 0 0 3px rgba(105,225,224,.13), 0 0 12px rgba(105,225,224,.45); }
.pm-auto-toggle:focus-visible { outline: 2px solid var(--pm-aqua); outline-offset: 2px; }
.pm-crown-counter { display: flex; align-items: center; gap: 6px; color: var(--pm-gold); font-weight: 900; }
.pm-crown-counter .pm-icon { width: 20px; }
.pm-question-stage { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 38px 0 80px; }
.pm-luma-bubble { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px; }
.pm-luma-bubble img { width: 68px; height: 68px; object-fit: contain; filter: drop-shadow(0 10px 15px rgba(0,0,0,.35)); }
.pm-luma-bubble p { margin: 0; padding: 10px 14px; border: 1px solid var(--pm-line); border-radius: 14px 14px 14px 4px; color: var(--pm-muted); background: rgba(255,255,255,.05); font-size: 13px; }
.pm-question-card { padding: clamp(26px, 5vw, 54px); border: 1px solid var(--pm-line); border-radius: 34px; background: rgba(34,17,65,.86); box-shadow: 0 35px 90px rgba(0,0,0,.3); }
.pm-question-world { display: inline-flex; align-items: center; gap: 7px; color: var(--pm-aqua); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.pm-question-world .pm-icon { width: 17px; }
.pm-question-image-wrap { width: min(350px, 100%); margin: 20px auto 24px; }
.pm-question-image-frame { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; background: #170b31; box-shadow: 0 22px 55px rgba(0,0,0,.35); }
.pm-question-image-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .45s ease, transform .45s ease; }
.pm-question-image-wrap.is-mystery .pm-question-image-frame img { filter: blur(12px) saturate(.72); transform: scale(1.1); }
.pm-question-image-wrap.is-revealed .pm-question-image-frame img { filter: none; transform: scale(1); }
.pm-image-mystery-label { display: none; position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: max-content; padding: 8px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: white; background: rgba(19,9,43,.82); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(10px); }
.pm-question-image-wrap.is-mystery .pm-image-mystery-label { display: block; }
.pm-question-image-wrap figcaption { margin-top: 7px; color: #9386a8; text-align: center; font-size: 10px; }
.pm-question-card h1 { max-width: 700px; margin: 20px 0 30px; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; }
.pm-answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pm-answer-option { display: grid; grid-template-columns: 38px 1fr 24px; align-items: center; gap: 12px; min-height: 68px; padding: 10px 16px; border: 1px solid var(--pm-line); border-radius: 17px; color: white; text-align: left; background: rgba(255,255,255,.055); cursor: pointer; transition: .18s ease; }
.pm-answer-option:hover:not(:disabled),
.pm-answer-option:focus-visible:not(:disabled) { transform: translateY(-2px); border-color: rgba(105,225,224,.4); background: rgba(105,225,224,.08); }
.pm-answer-letter { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #d8cfe7; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 900; }
.pm-answer-check { width: 19px; color: var(--pm-aqua); }
.pm-answer-option:disabled { cursor: default; }
.pm-answer-correct { border-color: rgba(105,225,224,.5); background: rgba(105,225,224,.13); }
.pm-answer-correct .pm-answer-letter { color: #102b2d; background: var(--pm-aqua); }
.pm-answer-wrong { border-color: rgba(255,88,125,.45); background: rgba(255,88,125,.1); }
.pm-answer-wrong .pm-answer-letter { color: white; background: #d94269; }
.pm-answer-muted { opacity: .55; }
.pm-answer-note { display: flex; gap: 13px; margin-top: 18px; padding: 15px 17px; border: 1px solid rgba(105,225,224,.16); border-radius: 16px; color: var(--pm-aqua); background: rgba(105,225,224,.09); }
.pm-answer-note.pm-note-learning { border-color: rgba(255,211,106,.16); color: var(--pm-gold); background: rgba(255,211,106,.08); }
.pm-answer-note > span .pm-icon { width: 20px; }
.pm-answer-note strong { display: block; margin-bottom: 3px; font-size: 13px; }
.pm-answer-note p { margin: 0; color: var(--pm-muted); font-size: 13px; line-height: 1.5; }
.pm-question-next { position: relative; display: flex; margin: 24px 0 0 auto; overflow: hidden; }
.pm-question-next.is-auto::after { position: absolute; left: 0; bottom: 0; width: 0; height: 3px; border-radius: 999px; background: rgba(255,255,255,.78); content: ''; animation: pm-auto-next var(--pm-auto-delay, 2.4s) linear forwards; }
@keyframes pm-auto-next { to { width: 100%; } }

.pm-result-screen { position: relative; display: grid; place-items: center; padding: 40px 20px; overflow: hidden; }
.pm-result-card { position: relative; z-index: 2; width: min(720px, 100%); padding: clamp(34px, 6vw, 64px); text-align: center; border: 1px solid var(--pm-line); border-radius: 38px; background: radial-gradient(circle at 50% 0%, rgba(255,211,106,.14), transparent 35%), rgba(34,17,65,.9); box-shadow: 0 38px 100px rgba(0,0,0,.38); }
.pm-reward-burst { display: grid; place-items: center; width: 116px; height: 116px; margin: 0 auto 24px; border: 1px solid rgba(255,211,106,.3); border-radius: 50%; color: var(--pm-gold); background: rgba(255,211,106,.09); box-shadow: 0 0 70px rgba(255,211,106,.18); animation: pm-reward 1.4s ease both; }
.pm-reward-burst .pm-icon { width: 55px; height: 55px; }
@keyframes pm-reward { 0% { transform: scale(.4) rotate(-18deg); opacity: 0; } 70% { transform: scale(1.08) rotate(3deg); } 100% { transform: scale(1); opacity: 1; } }
.pm-result-card h1 { margin: 12px 0; font-size: clamp(40px, 7vw, 62px); line-height: 1; }
.pm-result-copy { max-width: 520px; margin: 0 auto; color: var(--pm-muted); line-height: 1.65; }
.pm-result-rewards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 30px 0; }
.pm-result-rewards div { display: grid; justify-items: center; gap: 3px; padding: 18px 10px; border: 1px solid var(--pm-line); border-radius: 18px; background: rgba(255,255,255,.04); }
.pm-result-rewards .pm-icon { width: 22px; color: var(--pm-gold); }
.pm-result-rewards strong { font-size: 19px; }
.pm-result-rewards span { color: var(--pm-muted); font-size: 11px; }
.pm-result-actions { display: flex; justify-content: center; gap: 10px; }
.pm-button-soft { border: 1px solid var(--pm-line); color: white; background: rgba(255,255,255,.05); }
.pm-button-soft:hover { background: rgba(255,255,255,.1); }
.pm-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pm-confetti i { position: absolute; top: -10%; width: 8px; height: 18px; border-radius: 3px; animation: pm-confetti-fall var(--duration, 3s) var(--delay, 0s) ease-in forwards; }
@keyframes pm-confetti-fall { to { transform: translate3d(var(--drift, 0), 115vh, 0) rotate(720deg); } }

.pm-toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border: 1px solid rgba(105,225,224,.25); border-radius: 999px; color: white; background: rgba(24,12,51,.96); box-shadow: 0 16px 50px rgba(0,0,0,.35); font-size: 13px; font-weight: 800; }

.pm-generic { display: grid; place-items: center; min-height: 72vh; width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 70px 0; }
.pm-generic-card { width: 100%; padding: clamp(30px, 7vw, 70px); border: 1px solid var(--pm-line); border-radius: 36px; background: rgba(34,17,65,.82); box-shadow: var(--pm-shadow); }
.pm-generic-card h1 { margin: 14px 0; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; }
.pm-generic-card p { color: var(--pm-muted); }
.pm-generic-card .pm-button { margin-top: 15px; }
.pm-generic-luma { display: block; width: 120px; margin: 0 auto 20px; }
.pm-entry { padding: 20px 0; border-bottom: 1px solid var(--pm-line); }
.pm-entry h1 { font-size: 34px; }
.pm-entry h1 a:hover { color: var(--pm-gold); }

body.pelimagia-theme :focus-visible { outline: 3px solid var(--pm-aqua); outline-offset: 3px; }

@media (max-width: 1080px) {
	.pm-game-library { grid-template-columns: repeat(2, 1fr); }
	.pm-family { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 960px) {
	.pm-site-header { grid-template-columns: 1fr auto; }
	.pm-site-header nav { display: none; }
	.pm-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 70px; }
	.pm-hero-copy { padding: 0; text-align: center; }
	.pm-hero-copy > p { margin-inline: auto; }
	.pm-hero-actions,
	.pm-hero-stats { justify-content: center; }
	.pm-hero-visual { width: 100%; height: 500px; margin: -20px 0 0; }
	.pm-section-heading { align-items: start; flex-direction: column; gap: 15px; }
	.pm-mode-grid { grid-template-columns: 1fr 1fr; }
	.pm-album-panel { grid-template-columns: 1fr; }
	.pm-album-copy { padding: 20px 45px 55px; }
	.pm-daily-banner { grid-template-columns: 110px 1fr; }
	.pm-daily-banner img { width: 105px; }
	.pm-daily-banner .pm-button { grid-column: 2; width: max-content; }
	.pm-site-footer { grid-template-columns: 1fr; justify-items: center; }
	.pm-site-footer > p { margin: 0; }
	.pm-footer-links { justify-content: center; }
}

@media (max-width: 782px) {
	body.pelimagia-theme.admin-bar .pm-site-header { top: 46px; }
}

@media (max-width: 700px) {
	.pm-site-header { width: calc(100% - 20px); min-height: 64px; margin-top: 10px; padding: 0 12px; border-radius: 18px; }
	.pm-brand { font-size: 18px; }
	.pm-brand-mark { width: 38px; height: 38px; border-radius: 12px; }
	.pm-mini-crowns { display: none; }
	.pm-install-button { width: 42px; padding: 0; }
	.pm-install-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.pm-hero { width: calc(100% - 28px); padding-top: 52px; }
	.pm-hero h1 { font-size: clamp(46px, 14vw, 62px); }
	.pm-hero-copy > p { font-size: 16px; }
	.pm-hero-actions { flex-direction: column; }
	.pm-button { width: 100%; }
	.pm-hero-stats { gap: 12px; }
	.pm-hero-stats div + div { padding-left: 12px; }
	.pm-hero-stats strong { font-size: 18px; }
	.pm-hero-visual { height: 390px; margin-top: -5px; }
	.pm-hero-luma { right: 2%; width: 95px; }
	.pm-reward-one { left: 3%; }
	.pm-reward-two { right: 0; }
	.pm-section-wrap { width: calc(100% - 28px); }
	.pm-worlds { padding: 64px 0; }
	.pm-world-grid,
	.pm-mode-grid,
	.pm-game-library,
	.pm-family-points { grid-template-columns: 1fr; }
	.pm-world-card { min-height: 430px; padding: 24px; }
	.pm-world-content { left: 24px; right: 24px; bottom: 24px; }
	.pm-world-content h3 { font-size: 31px; }
	.pm-world-orbit { right: 34px; top: 36px; }
	.pm-game-tile { min-height: 290px; }
	.pm-mode-card { min-height: 220px; }
	.pm-album { padding-bottom: 70px; }
	.pm-album-art { min-height: 300px; }
	.pm-album-copy { padding: 10px 24px 38px; }
	.pm-album-progress-line > div:first-child { gap: 10px; }
	.pm-daily-banner { grid-template-columns: 78px 1fr; padding: 24px 20px; margin-bottom: 70px; }
	.pm-daily-banner img { width: 78px; height: 100px; }
	.pm-daily-banner h2 { font-size: 26px; }
	.pm-daily-banner .pm-button { grid-column: 1 / -1; width: 100%; }
	.pm-family { padding-bottom: 70px; }
	.pm-game-topbar { grid-template-columns: 40px 1fr auto; gap: 10px; }
	.pm-game-progress-wrap { grid-template-columns: 1fr; gap: 5px; }
	.pm-game-progress-wrap > span { display: none; }
	.pm-question-stage { padding-top: 18px; }
	.pm-question-card { border-radius: 25px; }
	.pm-question-image-wrap { width: min(280px, 100%); }
	.pm-answer-grid { grid-template-columns: 1fr; }
	.pm-answer-option { min-height: 62px; }
	.pm-question-next { width: 100%; }
	.pm-game-tools { gap: 8px; }
	.pm-auto-toggle { padding: 6px 8px; }
	.pm-auto-toggle b { display: none; }
	.pm-result-rewards { gap: 6px; }
	.pm-result-actions { flex-direction: column; }
	.pm-site-footer { text-align: center; }
	.pm-footer-links { flex-wrap: wrap; }
}

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

/* --------------------------------------------------------------------------
   PeliMagia 1.4 — visual home, private player profile and weekly cup
   -------------------------------------------------------------------------- */

.pm-profile-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 180px;
	min-height: 42px;
	padding: 5px 10px 5px 6px;
	border: 1px solid var(--pm-line);
	border-radius: 14px;
	color: white;
	background: rgba(255,255,255,.06);
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
}
.pm-profile-chip > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-profile-avatar,
.pm-player-hub-avatar {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	border: 1px solid rgba(255,255,255,.24);
	color: white;
	background: linear-gradient(145deg, #f04f9b, #7a50df);
	box-shadow: 0 9px 24px rgba(122,80,223,.28);
	font-weight: 1000;
	letter-spacing: -.03em;
}
.pm-profile-avatar { width: 32px; height: 32px; border-radius: 10px; font-size: 10px; }
.pm-player-hub-avatar { width: 58px; height: 58px; border-radius: 18px; font-size: 17px; }
[data-avatar="crown"] { background: linear-gradient(145deg, #ffb542, #dc5f8e); }
[data-avatar="gem"] { background: linear-gradient(145deg, #32cbd0, #6454df); }
[data-avatar="book"] { background: linear-gradient(145deg, #7e58e8, #b93f9f); }
[data-avatar="heart"] { background: linear-gradient(145deg, #ff6d97, #b94388); }
[data-avatar="sparkle"] { background: linear-gradient(145deg, #55deda, #9561ed); }

.pm-player-hub {
	display: grid;
	grid-template-columns: auto minmax(220px, 1fr) auto auto;
	align-items: center;
	gap: 18px;
	margin-top: 42px;
	padding: 15px 18px;
	border: 1px solid rgba(105,225,224,.18);
	border-radius: 22px;
	background: linear-gradient(100deg, rgba(105,225,224,.07), rgba(141,90,242,.08), rgba(255,119,170,.06));
	box-shadow: 0 18px 55px rgba(0,0,0,.14);
}
.pm-player-hub-copy span { color: var(--pm-aqua); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.pm-player-hub-copy h2 { margin: 2px 0 0; font-family: Georgia, serif; font-size: 22px; letter-spacing: -.025em; }
.pm-player-hub-stats { display: flex; align-items: center; gap: 8px; }
.pm-player-hub-stats span { display: inline-flex; align-items: center; gap: 5px; padding: 8px 10px; border-radius: 11px; color: #e9e1f3; background: rgba(255,255,255,.06); font-size: 12px; }
.pm-player-hub-stats .pm-icon { width: 15px; color: var(--pm-gold); }
.pm-player-hub-actions { display: flex; align-items: center; gap: 8px; }
.pm-player-hub-actions .pm-button { width: auto; min-height: 40px; padding: 8px 13px; border-radius: 12px; font-size: 12px; }
.pm-profile-edit { padding: 9px 11px; border: 0; color: #d9cfe8; background: transparent; font-size: 12px; font-weight: 900; cursor: pointer; }
.pm-profile-edit:hover { color: white; }

.pm-hero-cinematic { min-height: 650px; padding-top: 46px; }
.pm-hero-cinematic .pm-hero-copy > p { max-width: 540px; }
.pm-hero-cinematic .pm-hero-visual { height: 590px; }
.pm-hero-cinematic .pm-hero-world { opacity: .48; filter: saturate(.95) contrast(1.02); }
.pm-hero-poster-stack { position: absolute; z-index: 2; inset: 64px 40px 55px 55px; }
.pm-hero-poster {
	position: absolute;
	width: 235px;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border: 2px solid rgba(255,255,255,.28);
	border-radius: 24px;
	box-shadow: 0 28px 70px rgba(0,0,0,.5);
}
.pm-hero-poster-1 { z-index: 3; left: 31%; top: 2%; transform: rotate(2deg); }
.pm-hero-poster-2 { z-index: 2; left: 4%; top: 14%; transform: rotate(-11deg) scale(.88); filter: saturate(.85); }
.pm-hero-poster-3 { z-index: 1; right: 0; top: 15%; transform: rotate(11deg) scale(.88); filter: saturate(.85); }
.pm-hero-cinematic .pm-hero-luma { right: 2%; bottom: 1%; width: 128px; }
.pm-hero-cinematic .pm-reward-one { left: 3%; top: 23%; }
.pm-hero-cinematic .pm-reward-two { right: 0; top: 20%; }

.pm-heading-short { margin-bottom: 26px; }
.pm-today { padding: 35px 0 82px; }
.pm-mission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pm-mission-card {
	position: relative;
	min-height: 430px;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 30px;
	background: #261340;
	box-shadow: 0 25px 65px rgba(0,0,0,.26);
	isolation: isolate;
	transition: transform .25s ease, border-color .25s ease;
}
.pm-mission-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.34); }
.pm-mission-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.pm-mission-card:hover > img { transform: scale(1.045); }
.pm-mission-card::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(11,4,29,.02) 20%, rgba(12,5,31,.28) 45%, rgba(13,5,33,.98) 100%); }
.pm-mission-card > div { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 23px; }
.pm-mission-card > div > span { display: inline-flex; padding: 6px 9px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: white; background: rgba(20,8,43,.58); backdrop-filter: blur(10px); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.pm-mission-card h3 { margin: 10px 0 3px; font-family: Georgia, serif; font-size: 29px; letter-spacing: -.035em; }
.pm-mission-card p { margin: 0 0 15px; color: #d5c9e5; font-size: 13px; }
.pm-mission-card button,
.pm-expert-card button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 12px;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 12px;
	color: white;
	background: rgba(255,255,255,.12);
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
}
.pm-mission-card button:hover,
.pm-expert-card button:hover { background: rgba(255,255,255,.23); }
.pm-mission-card button .pm-icon,
.pm-expert-card button .pm-icon { width: 15px; }

.pm-worlds { padding: 74px 0 90px; }
.pm-world-card {
	position: relative;
	min-height: 520px;
	padding: 0;
	overflow: hidden;
	border-radius: 36px;
	background: #271246;
	isolation: isolate;
}
.pm-world-card::before,
.pm-world-card::after { display: none; }
.pm-world-media { position: absolute; inset: 0; overflow: hidden; }
.pm-world-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,6,38,.04), rgba(17,6,38,.18) 38%, rgba(19,7,42,.98) 86%); }
.pm-world-media img { position: absolute; top: -7%; width: 47%; height: 76%; object-fit: cover; border: 1px solid rgba(255,255,255,.22); border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.34); }
.pm-world-media img:nth-child(1) { z-index: 3; left: 27%; transform: rotate(2deg); }
.pm-world-media img:nth-child(2) { z-index: 2; left: -4%; top: 2%; transform: rotate(-10deg) scale(.9); }
.pm-world-media img:nth-child(3) { z-index: 1; right: -4%; top: 2%; transform: rotate(10deg) scale(.9); }
.pm-world-content { z-index: 4; left: 30px; right: 30px; bottom: 28px; }
.pm-world-content > span { color: var(--pm-aqua); }
.pm-princess-world .pm-world-content > span { color: var(--pm-gold); }
.pm-world-content h3 { margin: 6px 0; font-size: 39px; }
.pm-world-content p { margin-bottom: 16px; }

.pm-games { padding: 65px 0 80px; }
.pm-game-carousel,
.pm-expert-carousel {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(275px, 31%);
	gap: 18px;
	overflow-x: auto;
	padding: 6px 3px 24px;
	scroll-snap-type: x mandatory;
	overscroll-behavior-inline: contain;
	scrollbar-color: rgba(255,255,255,.22) transparent;
}
.pm-game-card {
	min-height: 430px;
	overflow: hidden;
	border: 1px solid var(--pm-line);
	border-radius: 28px;
	background: rgba(36,17,65,.88);
	box-shadow: 0 20px 50px rgba(0,0,0,.2);
	scroll-snap-align: start;
	transition: transform .2s ease, border-color .2s ease;
}
.pm-game-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.3); }
.pm-game-card-media { position: relative; height: 270px; overflow: hidden; }
.pm-game-card-media::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(36,17,65,1)); }
.pm-game-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pm-game-card:hover .pm-game-card-media img { transform: scale(1.04); }
.pm-card-status { position: absolute; z-index: 2; left: 14px; top: 14px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: white; background: rgba(17,7,37,.7); backdrop-filter: blur(9px); font-size: 10px; font-weight: 900; }
.pm-game-card.is-completed .pm-card-status { color: #10282b; background: var(--pm-aqua); }
.pm-game-card-body { padding: 2px 18px 18px; }
.pm-game-card-body h3 { min-height: 50px; margin: 11px 0 13px; font-size: 19px; line-height: 1.3; }
.pm-game-card-footer { display: flex; align-items: center; justify-content: space-between; color: var(--pm-muted); font-size: 12px; }
.pm-game-card-footer button,
.pm-mode-visual-card button {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--pm-line);
	border-radius: 13px;
	color: white;
	background: rgba(255,255,255,.1);
	cursor: pointer;
}
.pm-game-card-footer button:hover,
.pm-mode-visual-card button:hover { background: rgba(255,255,255,.2); transform: translateX(2px); }
.pm-game-card-footer .pm-icon,
.pm-mode-visual-card button .pm-icon { width: 17px; }

.pm-modes { padding: 70px 0 105px; }
.pm-mode-visual-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pm-mode-visual-card { position: relative; min-height: 365px; overflow: hidden; border: 1px solid var(--pm-line); border-radius: 27px; background: #261240; }
.pm-mode-visual-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pm-mode-visual-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,5,32,.05) 18%, rgba(14,5,32,.25) 43%, rgba(14,5,32,.97) 100%); }
.pm-mode-visual-card > div { position: absolute; z-index: 2; left: 19px; right: 19px; bottom: 18px; }
.pm-mode-visual-card > div > span { display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; color: var(--pm-aqua); background: rgba(22,9,47,.62); backdrop-filter: blur(9px); }
.pm-mode-visual-card > div > span .pm-icon { width: 21px; }
.pm-mode-visual-card h3 { margin: 10px 0 2px; font-size: 18px; }
.pm-mode-visual-card p { margin: 0; color: #d4c9e3; font-size: 12px; }
.pm-mode-visual-card button { position: absolute; right: 0; bottom: 0; }

.pm-cup-home {
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	align-items: center;
	gap: 35px;
	min-height: 480px;
	margin-bottom: 100px;
	padding: 48px;
	overflow: hidden;
	border: 1px solid rgba(255,211,106,.24);
	border-radius: 40px;
	background: radial-gradient(circle at 80% 15%, rgba(255,119,170,.18), transparent 33%), radial-gradient(circle at 5% 90%, rgba(105,225,224,.12), transparent 35%), linear-gradient(130deg, #321355, #1b0c3b);
	box-shadow: 0 30px 80px rgba(0,0,0,.27);
}
.pm-cup-home h2,
.pm-cup-stage h1,
.pm-cup-champion h1 { font-family: Georgia, serif; letter-spacing: -.05em; }
.pm-cup-home h2 { margin: 12px 0; font-size: clamp(42px, 5vw, 62px); line-height: 1; }
.pm-cup-home-copy > p { max-width: 480px; margin: 0 0 24px; color: var(--pm-muted); line-height: 1.7; }
.pm-cup-preview { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; }
.pm-cup-preview > div { width: 235px; aspect-ratio: 2 / 3; overflow: hidden; border: 2px solid rgba(255,255,255,.25); border-radius: 25px; box-shadow: 0 28px 65px rgba(0,0,0,.42); }
.pm-cup-preview > div:first-child { transform: rotate(-7deg) translateX(18px); }
.pm-cup-preview > div:last-child { transform: rotate(7deg) translateX(-18px); }
.pm-cup-preview img { width: 100%; height: 100%; object-fit: cover; }
.pm-cup-preview > span { position: relative; z-index: 3; display: grid; place-items: center; width: 66px; height: 66px; border: 2px solid rgba(255,255,255,.32); border-radius: 50%; color: #2d153c; background: var(--pm-gold); box-shadow: 0 10px 35px rgba(255,211,106,.35); font-family: Georgia, serif; font-weight: 900; }

.pm-expert-zone { padding: 25px 0 105px; }
.pm-expert-zone .pm-section-heading { padding-top: 26px; border-top: 1px solid var(--pm-line); }
.pm-expert-carousel { grid-auto-columns: minmax(250px, 27%); }
.pm-expert-card { position: relative; min-height: 360px; overflow: hidden; border: 1px solid rgba(105,225,224,.15); border-radius: 26px; background: #211139; scroll-snap-align: start; }
.pm-expert-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,5,30,.02), rgba(13,5,30,.95)); }
.pm-expert-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.78); }
.pm-expert-card > div { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; }
.pm-expert-card > div > span { color: var(--pm-aqua); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.pm-expert-card h3 { margin: 6px 0 13px; font-size: 19px; line-height: 1.25; }

/* Advertising remains invisible until the administrator enables a slot. */
.pm-ad-slot {
	width: min(1180px, calc(100% - 40px));
	min-height: 88px;
	margin: 24px auto 70px;
	padding: 14px;
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 20px;
	background: rgba(255,255,255,.035);
	text-align: center;
}
.pm-ad-label { display: block; margin-bottom: 8px; color: #8f82a3; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pm-ad-code { display: grid; min-height: 50px; place-items: center; overflow: hidden; }
.pm-ad-code iframe,
.pm-ad-code img { max-width: 100%; }
.pm-ad-slot-footer { margin-top: 20px; margin-bottom: 28px; }

.pm-profile-modal { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 20px; }
.pm-profile-backdrop { position: absolute; inset: 0; background: rgba(8,3,20,.82); backdrop-filter: blur(12px); }
.pm-profile-card {
	position: relative;
	z-index: 2;
	width: min(530px, 100%);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 34px;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 34px;
	text-align: center;
	background: radial-gradient(circle at 50% 0%, rgba(255,119,170,.18), transparent 30%), #21103f;
	box-shadow: 0 40px 110px rgba(0,0,0,.52);
}
.pm-profile-close { position: absolute; right: 18px; top: 18px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--pm-line); border-radius: 12px; color: white; background: rgba(255,255,255,.06); cursor: pointer; }
.pm-profile-luma { width: 105px; height: 105px; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(0,0,0,.34)); }
.pm-profile-card h2 { margin: 13px 0 2px; font-family: Georgia, serif; font-size: 25px; }
.pm-generated-name { display: block; color: var(--pm-gold); font-family: Georgia, serif; font-size: clamp(32px, 7vw, 44px); line-height: 1.05; }
.pm-name-another { margin: 10px 0 18px; border: 0; color: var(--pm-aqua); background: transparent; font-size: 12px; font-weight: 900; cursor: pointer; }
.pm-avatar-choices { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.pm-avatar-choices button { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--pm-line); border-radius: 14px; color: #cfc3df; background: rgba(255,255,255,.05); cursor: pointer; }
.pm-avatar-choices button.is-selected { border-color: var(--pm-aqua); color: #142b2d; background: var(--pm-aqua); box-shadow: 0 0 25px rgba(105,225,224,.25); }
.pm-avatar-choices .pm-icon { width: 22px; }
.pm-profile-card > .pm-button { width: 100%; }
.pm-recovery-panel { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--pm-line); }
.pm-recovery-panel > button { border: 0; color: #e8deef; background: transparent; font-size: 12px; font-weight: 900; cursor: pointer; }
.pm-recovery-panel p { margin: 13px 0; color: var(--pm-muted); font-size: 12px; }
.pm-code-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 15px; }
.pm-code-row code { padding: 9px; border: 1px solid rgba(255,211,106,.22); border-radius: 10px; color: var(--pm-gold); background: rgba(255,211,106,.07); font-size: 12px; font-weight: 900; }
.pm-code-row button,
.pm-recover-form button { padding: 9px 11px; border: 1px solid var(--pm-line); border-radius: 10px; color: white; background: rgba(255,255,255,.08); font-size: 11px; font-weight: 900; cursor: pointer; }
.pm-recovery-panel label { display: block; margin: 12px 0 6px; color: var(--pm-muted); font-size: 11px; text-align: left; }
.pm-recover-form { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.pm-recover-form input { min-width: 0; padding: 10px 12px; border: 1px solid var(--pm-line); border-radius: 11px; color: white; background: rgba(255,255,255,.06); text-transform: uppercase; }
.pm-reset-progress { margin-top: 18px; border: 0; color: #a899b7; background: transparent; font-size: 10px; cursor: pointer; }
.pm-reset-progress:hover { color: #ff91aa; }
body.pm-modal-open { overflow: hidden; }

.pm-cup-screen { min-height: 100vh; padding-bottom: 60px; background: radial-gradient(circle at 16% 8%, rgba(255,119,170,.22), transparent 30rem), radial-gradient(circle at 84% 92%, rgba(105,225,224,.16), transparent 30rem), var(--pm-night); }
body.pm-cup-playing .pm-site-header,
body.pm-cup-playing .pm-home-content,
body.pm-cup-playing .pm-site-footer,
body.pm-cup-playing .pm-tmdb-credit { display: none; }
.pm-cup-topbar { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 20px; width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 25px 0; }
.pm-cup-topbar > div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; color: var(--pm-muted); font-size: 12px; font-weight: 900; }
.pm-cup-week { color: var(--pm-gold); font-size: 12px; font-weight: 900; }
.pm-cup-stage,
.pm-cup-champion { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 25px 0 60px; text-align: center; }
.pm-cup-stage h1,
.pm-cup-champion h1 { margin: 12px 0 28px; font-size: clamp(43px, 6vw, 68px); line-height: 1; }
.pm-cup-duel { display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); align-items: center; gap: 18px; }
.pm-cup-contender { position: relative; min-height: 630px; padding: 0; overflow: hidden; border: 2px solid rgba(255,255,255,.18); border-radius: 34px; color: white; background: #261240; box-shadow: 0 30px 75px rgba(0,0,0,.32); cursor: pointer; transition: transform .22s ease, border-color .22s ease, opacity .22s ease; }
.pm-cup-contender:hover:not(:disabled) { transform: translateY(-7px); border-color: var(--pm-gold); }
.pm-cup-contender img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pm-cup-contender::after { content: ""; position: absolute; inset: 38% 0 0; background: linear-gradient(transparent, rgba(14,5,33,.98)); }
.pm-cup-contender strong { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 62px; font-family: Georgia, serif; font-size: 28px; line-height: 1.08; }
.pm-cup-contender > span { position: absolute; z-index: 2; left: 50%; bottom: 21px; transform: translateX(-50%); color: var(--pm-aqua); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.pm-cup-contender.is-chosen { border-color: var(--pm-gold); transform: scale(1.025); }
.pm-cup-contender.is-not-chosen { opacity: .38; transform: scale(.96); }
.pm-versus { display: grid; place-items: center; width: 70px; height: 70px; border: 2px solid rgba(255,255,255,.3); border-radius: 50%; color: #32163e; background: var(--pm-gold); box-shadow: 0 16px 38px rgba(255,211,106,.28); font-family: Georgia, serif; font-size: 20px; }
.pm-cup-champion { display: grid; justify-items: center; }
.pm-champion-poster { width: min(350px, 72vw); aspect-ratio: 2 / 3; overflow: hidden; border: 3px solid var(--pm-gold); border-radius: 30px; box-shadow: 0 0 80px rgba(255,211,106,.22), 0 35px 80px rgba(0,0,0,.4); }
.pm-champion-poster img { width: 100%; height: 100%; object-fit: cover; }
.pm-cup-champion p { max-width: 520px; margin: -10px 0 24px; color: var(--pm-muted); }

@media (max-width: 1080px) {
	.pm-player-hub { grid-template-columns: auto 1fr auto; }
	.pm-player-hub-actions { grid-column: 2 / -1; }
	.pm-mode-visual-grid { grid-template-columns: repeat(2, 1fr); }
	.pm-cup-preview > div { width: 195px; }
}

@media (max-width: 960px) {
	.pm-player-hub { margin-top: 28px; }
	.pm-hero-cinematic .pm-hero-visual { height: 540px; }
	.pm-hero-poster-stack { inset: 50px 12% 40px; }
	.pm-hero-poster { width: 225px; }
	.pm-mission-grid { grid-template-columns: repeat(2, 1fr); }
	.pm-mission-card:first-child { grid-column: 1 / -1; min-height: 470px; }
	.pm-game-carousel { grid-auto-columns: minmax(270px, 46%); }
	.pm-cup-home { grid-template-columns: 1fr; text-align: center; }
	.pm-cup-home-copy > p { margin-inline: auto; }
	.pm-cup-home .pm-button { margin-inline: auto; }
	.pm-cup-preview { min-height: 330px; }
	.pm-cup-duel { grid-template-columns: minmax(0, 1fr) 55px minmax(0, 1fr); gap: 10px; }
	.pm-versus { width: 55px; height: 55px; font-size: 15px; }
	.pm-cup-contender { min-height: 540px; }
}

@media (max-width: 700px) {
	.pm-ad-slot { width: calc(100% - 20px); margin-bottom: 48px; padding: 10px; border-radius: 16px; }
	.pm-profile-chip { width: 40px; padding: 3px; border: 0; background: transparent; }
	.pm-profile-chip > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.pm-profile-avatar { width: 36px; height: 36px; }
	.pm-player-hub { grid-template-columns: auto 1fr; gap: 12px; margin-top: 22px; padding: 13px; }
	.pm-player-hub-copy h2 { font-size: 18px; }
	.pm-player-hub-stats { grid-column: 1 / -1; justify-content: space-between; }
	.pm-player-hub-stats span { flex: 1; justify-content: center; padding: 7px 5px; }
	.pm-player-hub-actions { grid-column: 1 / -1; width: 100%; }
	.pm-player-hub-actions .pm-button { flex: 1; }
	.pm-profile-edit { margin-left: auto; }
	.pm-hero-cinematic { padding-top: 58px; }
	.pm-hero-cinematic .pm-hero-visual { height: 430px; }
	.pm-hero-poster-stack { inset: 36px 7% 30px; }
	.pm-hero-poster { width: 46%; max-width: 185px; border-radius: 18px; }
	.pm-hero-poster-1 { left: 27%; }
	.pm-hero-poster-2 { left: 0; }
	.pm-hero-poster-3 { right: 0; }
	.pm-hero-cinematic .pm-hero-luma { width: 86px; }
	.pm-hero-cinematic .pm-floating-reward { display: none; }
	.pm-today { padding-bottom: 58px; }
	.pm-mission-grid {
		display: grid;
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 84%;
		gap: 13px;
		overflow-x: auto;
		padding-bottom: 16px;
		scroll-snap-type: x mandatory;
	}
	.pm-mission-card,
	.pm-mission-card:first-child { grid-column: auto; min-height: 410px; scroll-snap-align: start; }
	.pm-world-card { min-height: 470px; }
	.pm-world-media img { height: 72%; }
	.pm-world-content { left: 22px; right: 22px; bottom: 22px; }
	.pm-world-content h3 { font-size: 32px; }
	.pm-game-carousel,
	.pm-expert-carousel { grid-auto-columns: 83%; gap: 13px; }
	.pm-game-card { min-height: 410px; }
	.pm-game-card-media { height: 260px; }
	.pm-mode-visual-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.pm-mode-visual-card { min-height: 315px; }
	.pm-mode-visual-card > div { left: 14px; right: 14px; bottom: 14px; }
	.pm-mode-visual-card h3 { max-width: 110px; font-size: 16px; }
	.pm-mode-visual-card p { display: none; }
	.pm-cup-home { width: calc(100% - 20px); margin-bottom: 70px; padding: 34px 18px; border-radius: 30px; }
	.pm-cup-preview > div { width: 42%; max-width: 170px; border-radius: 18px; }
	.pm-cup-preview > span { width: 52px; height: 52px; }
	.pm-profile-card { padding: 28px 18px; border-radius: 26px; }
	.pm-avatar-choices { gap: 5px; }
	.pm-avatar-choices button { width: 43px; height: 43px; }
	.pm-code-row { flex-direction: column; }
	.pm-recover-form { grid-template-columns: 1fr; }
	.pm-cup-topbar { grid-template-columns: 40px 1fr; }
	.pm-cup-week { display: none; }
	.pm-cup-topbar > div { grid-template-columns: 1fr; gap: 5px; }
	.pm-cup-duel { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 5px; }
	.pm-versus { width: 40px; height: 40px; border-width: 1px; font-size: 12px; }
	.pm-cup-contender { min-height: 440px; border-radius: 22px; }
	.pm-cup-contender strong { left: 10px; right: 10px; bottom: 48px; font-size: 18px; }
	.pm-cup-contender > span { bottom: 15px; font-size: 9px; }
}

@media (max-width: 420px) {
	.pm-player-hub-stats span { font-size: 10px; }
	.pm-mode-visual-grid { grid-template-columns: 1fr; }
	.pm-mode-visual-card { min-height: 340px; }
	.pm-mode-visual-card h3 { max-width: none; font-size: 19px; }
	.pm-cup-contender { min-height: 370px; }
}
