/**
 * PG Treasure Hunt — Front styles (scoped .pgth-root)
 */

.pgth-root {
	--pgth-gold: #c9a227;
	--pgth-gold-light: #f0d878;
	--pgth-navy: #1a2a4a;
	--pgth-navy-deep: #0f1a30;
	--pgth-success: #2ecc71;
	--pgth-error: #e74c3c;
	--pgth-radius: 12px;
	--pgth-shadow: 0 8px 32px rgba(15, 26, 48, 0.25);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--pgth-navy);
	box-sizing: border-box;
}

.pgth-root *,
.pgth-root *::before,
.pgth-root *::after {
	box-sizing: inherit;
}

.pgth-header {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.pgth-scores {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.pgth-map-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--pgth-navy);
}

.pgth-score {
	background: linear-gradient(135deg, var(--pgth-navy), var(--pgth-navy-deep));
	color: #fff;
	padding: 0.75rem 1.25rem;
	border-radius: var(--pgth-radius);
	box-shadow: var(--pgth-shadow);
	min-width: 140px;
}

.pgth-score--month {
	background: linear-gradient(135deg, #2c5282, var(--pgth-navy));
}

.pgth-score__label {
	display: block;
	font-size: 0.75rem;
	opacity: 0.8;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.pgth-score__value {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--pgth-gold-light);
}

.pgth-month-select {
	padding: 0.5rem 1rem;
	border-radius: 8px;
	border: 2px solid var(--pgth-gold);
	background: #fff;
	font-size: 0.95rem;
}

.pgth-modal__title {
	margin: 0 0 1rem;
	font-size: 1.15rem;
	color: var(--pgth-navy);
}

.pgth-modal__actions {
	margin-top: 1rem;
}

.pgth-btn--secondary {
	background: #eef2f7;
	color: var(--pgth-navy);
}

.pgth-poi-readonly__badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background: #d5f5e3;
	color: #1e8449;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.pgth-poi-readonly__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.pgth-poi-readonly__item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	padding: 0.75rem 1rem;
	background: #f7f9fc;
	border-radius: 8px;
	border-left: 3px solid var(--pgth-gold);
}

.pgth-poi-readonly__text {
	flex: 1;
	line-height: 1.45;
}

.pgth-poi-readonly__status {
	flex-shrink: 0;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #7f8c8d;
}

.pgth-map-wrap {
	position: relative;
	border-radius: var(--pgth-radius);
	overflow: hidden;
	box-shadow: var(--pgth-shadow);
	background: var(--pgth-navy-deep);
}

.pgth-map-loading {
	padding: 3rem;
	text-align: center;
	color: #fff;
}

.pgth-map {
	position: relative;
	line-height: 0;
}

.pgth-map__image {
	width: 100%;
	height: auto;
	display: block;
}

.pgth-map__pois {
	position: absolute;
	inset: 0;
}

.pgth-poi {
	position: absolute;
	transform: translate(-50%, -50%);
	width: 2.5rem;
	height: 2.5rem;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	background: radial-gradient(circle at 30% 30%, var(--pgth-gold-light), var(--pgth-gold));
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 4px 12px rgba(0, 0, 0, 0.4);
	opacity: 0;
	animation: pgth-poi-appear 0.5s ease forwards;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	z-index: 2;
}

.pgth-poi:hover,
.pgth-poi:focus {
	transform: translate(-50%, -50%) scale(1.15);
	box-shadow: 0 0 0 4px var(--pgth-gold-light), 0 6px 20px rgba(201, 162, 39, 0.6);
	outline: none;
}

.pgth-poi--validated {
	background: radial-gradient(circle at 30% 30%, #7dcea0, var(--pgth-success));
	animation: none;
	opacity: 1;
}

.pgth-poi--validated::after {
	content: "✓";
	color: #fff;
	font-weight: bold;
	font-size: 1rem;
	line-height: 2.5rem;
	display: block;
	text-align: center;
}

@keyframes pgth-poi-appear {
	from {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

.pgth-poi:nth-child(1) { animation-delay: 0.05s; }
.pgth-poi:nth-child(2) { animation-delay: 0.1s; }
.pgth-poi:nth-child(3) { animation-delay: 0.15s; }
.pgth-poi:nth-child(4) { animation-delay: 0.2s; }
.pgth-poi:nth-child(5) { animation-delay: 0.25s; }
.pgth-poi:nth-child(6) { animation-delay: 0.3s; }
.pgth-poi:nth-child(7) { animation-delay: 0.35s; }
.pgth-poi:nth-child(8) { animation-delay: 0.4s; }
.pgth-poi:nth-child(9) { animation-delay: 0.45s; }
.pgth-poi:nth-child(10) { animation-delay: 0.5s; }
.pgth-poi:nth-child(11) { animation-delay: 0.55s; }
.pgth-poi:nth-child(12) { animation-delay: 0.6s; }

/* Modal */
.pgth-modal[hidden] {
	display: none !important;
}

.pgth-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.pgth-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 26, 48, 0.7);
	backdrop-filter: blur(4px);
	animation: pgth-fade-in 0.25s ease;
}

.pgth-modal__panel {
	position: relative;
	background: #fff;
	border-radius: var(--pgth-radius);
	max-width: 520px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: var(--pgth-shadow);
	animation: pgth-modal-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
	z-index: 1;
}

.pgth-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--pgth-navy);
	line-height: 1;
	z-index: 2;
}

.pgth-modal__content {
	padding: 2rem 1.5rem 1.5rem;
}

.pgth-question {
	margin-bottom: 1.5rem;
}

.pgth-question__text {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 1rem;
	line-height: 1.5;
}

.pgth-question__input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 2px solid #dde3ed;
	border-radius: 8px;
	font-size: 1rem;
	transition: border-color 0.2s;
}

.pgth-question__input:focus {
	border-color: var(--pgth-gold);
	outline: none;
}

.pgth-choices {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.pgth-choice {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border: 2px solid #dde3ed;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}

.pgth-choice:hover {
	border-color: var(--pgth-gold);
	background: #fffdf5;
}

.pgth-choice input {
	accent-color: var(--pgth-gold);
}

.pgth-btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background: linear-gradient(135deg, var(--pgth-gold), #a88620);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s;
}

.pgth-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(201, 162, 39, 0.4);
}

.pgth-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.pgth-feedback {
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	font-weight: 600;
	animation: pgth-fade-in 0.3s ease;
}

.pgth-feedback--correct {
	background: #d5f5e3;
	color: #1e8449;
}

.pgth-feedback--incorrect {
	background: #fadbd8;
	color: #922b21;
}

.pgth-feedback--correct.pgth-feedback--celebrate {
	animation: pgth-celebrate 0.6s ease;
}

@keyframes pgth-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes pgth-modal-in {
	from {
		opacity: 0;
		transform: scale(0.9) translateY(10px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

@keyframes pgth-celebrate {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.03); }
}

.pgth-notice {
	padding: 1rem 1.25rem;
	border-radius: var(--pgth-radius);
	background: #eef2f7;
}

.pgth-notice--closed {
	background: #fdebd0;
}

.pgth-form p {
	margin-bottom: 1rem;
}

.pgth-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.pgth-form input,
.pgth-form select {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 6px;
}

.pgth-account h2 {
	margin-top: 1.5rem;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

/* Navigation 12 mois */
.pgth-month-nav {
	margin-bottom: 1rem;
	overflow-x: auto;
}

.pgth-month-nav__list {
	display: flex;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0.25rem 0;
	min-width: min-content;
}

.pgth-month-pill {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: 2px solid #c5cdd8;
	background: #fff;
	font-weight: 700;
	font-size: 0.85rem;
	cursor: pointer;
	transition: transform 0.15s, border-color 0.15s, background 0.15s;
	color: var(--pgth-navy);
}

.pgth-month-pill--open {
	border-color: var(--pgth-gold);
}

.pgth-month-pill--progress {
	border-color: var(--pgth-gold);
	box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
}

.pgth-month-pill--completed {
	background: var(--pgth-success);
	border-color: var(--pgth-success);
	color: #fff;
}

.pgth-month-pill--locked {
	opacity: 0.45;
	cursor: not-allowed;
	background: #eef2f7;
}

.pgth-month-pill--current:not(.pgth-month-pill--active) {
	outline: 2px dashed var(--pgth-gold);
	outline-offset: 2px;
}

.pgth-month-pill--active {
	background: var(--pgth-navy);
	border-color: var(--pgth-navy);
	color: #fff;
	transform: scale(1.08);
}

.pgth-month-pill:hover:not(.pgth-month-pill--locked) {
	transform: scale(1.06);
}

.pgth-poi--locked {
	opacity: 0.55;
	cursor: not-allowed;
	box-shadow: none;
}

.pgth-toast {
	position: fixed;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	background: var(--pgth-navy-deep);
	color: #fff;
	padding: 0.75rem 1.25rem;
	border-radius: 999px;
	z-index: 100000;
	box-shadow: var(--pgth-shadow);
	font-size: 0.9rem;
	animation: pgth-fade-in 0.25s ease;
}

.pgth-locked-msg p {
	line-height: 1.5;
}

/* Compte — progression */
.pgth-progress-bar-wrap {
	height: 10px;
	background: #e8edf3;
	border-radius: 999px;
	overflow: hidden;
	margin: 1rem 0 0.35rem;
	max-width: 480px;
}

.pgth-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, var(--pgth-gold), #a88620);
	border-radius: 999px;
	transition: width 0.4s ease;
}

.pgth-progress-label {
	font-size: 0.9rem;
	color: #5a6a7e;
	margin-bottom: 1.25rem;
}

.pgth-month-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
}

.pgth-month-table th,
.pgth-month-table td {
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid #e8edf3;
	text-align: left;
}

.pgth-status {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 600;
}

.pgth-status--completed { background: #d5f5e3; color: #1e8449; }
.pgth-status--in_progress { background: #fdebd0; color: #9a6700; }
.pgth-status--not_started { background: #eef2f7; color: #5a6a7e; }

/* Classement */
.pgth-leaderboard-player {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	padding: 1rem 1.25rem;
	background: linear-gradient(135deg, var(--pgth-navy), var(--pgth-navy-deep));
	color: #fff;
	border-radius: var(--pgth-radius);
	margin-bottom: 1.25rem;
}

.pgth-leaderboard-player__rank {
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--pgth-gold-light);
}

.pgth-leaderboard-table {
	width: 100%;
	border-collapse: collapse;
}

.pgth-leaderboard-table th,
.pgth-leaderboard-table td {
	padding: 0.65rem 0.75rem;
	border-bottom: 1px solid #e8edf3;
	text-align: left;
}

.pgth-leaderboard-table__me {
	background: #fffdf5;
	font-weight: 600;
}

.pgth-leaderboard-meta {
	font-size: 0.85rem;
	color: #5a6a7e;
	margin-top: 0.75rem;
}

/* ═══════════════════════════════════════════
   Mode expédition — Indiana Jones / carte immersive
   ═══════════════════════════════════════════ */

.pgth-root--expedition {
	--pgth-gold: #c4922a;
	--pgth-gold-light: #f4d67a;
	--pgth-navy: #2a1a0e;
	--pgth-navy-deep: #0d0804;
	--pgth-leather: #3d2817;
	--pgth-parchment: #e8d4a8;
	--pgth-blood: #7a1e12;
	--pgth-radius: 2px;
	--pgth-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
	position: fixed;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
	font-family: "IM Fell English", Georgia, serif;
	color: var(--pgth-parchment);
	background: var(--pgth-navy-deep);
}

.pgth-root--expedition .pgth-hud {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 30;
	pointer-events: none;
	padding: 0.75rem 1rem 0;
}

.pgth-root--expedition .pgth-hud > * {
	pointer-events: auto;
}

.pgth-hud__bar {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.65rem;
}

.pgth-hud__brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--pgth-gold-light);
	font-family: "Cinzel Decorative", serif;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
	flex-shrink: 0;
}

.pgth-hud__brand-icon {
	color: var(--pgth-gold);
	font-size: 1rem;
}

.pgth-hud__nav {
	display: flex;
	gap: 0.5rem;
	margin-left: auto;
	flex-shrink: 0;
}

.pgth-hud__link {
	color: var(--pgth-parchment);
	text-decoration: none;
	font-family: "IM Fell English SC", serif;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.35rem 0.65rem;
	border: 1px solid rgba(196, 146, 42, 0.45);
	background: rgba(13, 8, 4, 0.55);
	backdrop-filter: blur(4px);
	transition: border-color 0.2s, color 0.2s;
}

.pgth-hud__link:hover {
	color: var(--pgth-gold-light);
	border-color: var(--pgth-gold);
}

.pgth-root--expedition .pgth-map-title {
	flex: 1;
	margin: 0;
	text-align: center;
	font-family: "Cinzel Decorative", serif;
	font-size: clamp(0.9rem, 2.5vw, 1.15rem);
	font-weight: 700;
	color: var(--pgth-gold-light);
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pgth-hud__panel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	padding: 0.65rem 0.85rem;
	background: linear-gradient(180deg, rgba(42, 26, 14, 0.92), rgba(13, 8, 4, 0.88));
	border: 1px solid rgba(196, 146, 42, 0.35);
	box-shadow: var(--pgth-shadow), inset 0 1px 0 rgba(244, 214, 122, 0.12);
	backdrop-filter: blur(6px);
}

.pgth-root--expedition .pgth-scores {
	display: flex;
	gap: 0.65rem;
}

.pgth-root--expedition .pgth-score {
	background: linear-gradient(145deg, #4a3020, #2a1a0e);
	border: 1px solid rgba(196, 146, 42, 0.4);
	padding: 0.45rem 0.85rem;
	min-width: 90px;
	border-radius: var(--pgth-radius);
	box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.pgth-root--expedition .pgth-score__label {
	font-family: "IM Fell English SC", serif;
	font-size: 0.65rem;
	letter-spacing: 0.12em;
	color: rgba(232, 212, 168, 0.7);
}

.pgth-root--expedition .pgth-score__value {
	font-family: "Cinzel Decorative", serif;
	font-size: 1.35rem;
	color: var(--pgth-gold-light);
}

.pgth-root--expedition .pgth-month-nav {
	margin: 0;
	flex: 1;
	overflow-x: auto;
}

.pgth-root--expedition .pgth-month-pill {
	width: 2.15rem;
	height: 2.15rem;
	border: 1px solid rgba(196, 146, 42, 0.5);
	background: rgba(13, 8, 4, 0.7);
	color: var(--pgth-parchment);
	font-family: "Cinzel Decorative", serif;
	font-size: 0.75rem;
}

.pgth-root--expedition .pgth-month-pill--active {
	background: var(--pgth-blood);
	border-color: var(--pgth-gold);
	color: var(--pgth-gold-light);
	box-shadow: 0 0 16px rgba(196, 146, 42, 0.45);
}

.pgth-root--expedition .pgth-month-pill--completed {
	background: #2d4a28;
	border-color: #5a8f50;
}

.pgth-map-controls {
	display: flex;
	gap: 0.35rem;
	flex-shrink: 0;
}

.pgth-map-controls__btn {
	width: 2.15rem;
	height: 2.15rem;
	border: 1px solid rgba(196, 146, 42, 0.5);
	background: rgba(13, 8, 4, 0.85);
	color: var(--pgth-gold-light);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	font-family: "Cinzel Decorative", serif;
	transition: background 0.2s, transform 0.15s;
}

.pgth-map-controls__btn:hover {
	background: var(--pgth-leather);
	transform: scale(1.05);
}

.pgth-hud__hint {
	margin: 0.45rem 0 0;
	font-family: "IM Fell English SC", serif;
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(232, 212, 168, 0.55);
	text-align: center;
	transition: opacity 0.4s;
}

.pgth-hud__hint--hidden {
	opacity: 0;
	pointer-events: none;
}

.pgth-map-viewport {
	flex: 1;
	position: relative;
	overflow: hidden;
	cursor: grab;
	touch-action: none;
	background:
		radial-gradient(ellipse at 50% 40%, #2a1f12 0%, #0d0804 70%),
		#0d0804;
}

.pgth-map-viewport--dragging {
	cursor: grabbing;
}

.pgth-map-stage {
	position: absolute;
	top: 0;
	left: 0;
	transform-origin: 0 0;
	will-change: transform;
	filter: sepia(0.15) contrast(1.05) saturate(1.1);
}

.pgth-root--expedition .pgth-map__image {
	width: 100%;
	height: 100%;
	object-fit: fill;
	display: block;
	user-select: none;
	-webkit-user-drag: none;
}

.pgth-root--expedition .pgth-map__pois {
	position: absolute;
	inset: 0;
}

.pgth-vignette {
	pointer-events: none;
	position: absolute;
	inset: 0;
	z-index: 15;
	background:
		radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.55) 100%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.45) 100%);
}

.pgth-torch {
	pointer-events: none;
	position: absolute;
	width: 180px;
	height: 180px;
	z-index: 14;
	opacity: 0.35;
	background: radial-gradient(circle, rgba(255, 160, 50, 0.35) 0%, transparent 70%);
	animation: pgth-torch-flicker 4s ease-in-out infinite;
}

.pgth-torch--tl { top: -40px; left: -40px; }
.pgth-torch--br { bottom: -40px; right: -40px; animation-delay: 2s; }

@keyframes pgth-torch-flicker {
	0%, 100% { opacity: 0.3; transform: scale(1); }
	50% { opacity: 0.45; transform: scale(1.05); }
}

.pgth-map-loading[hidden],
.pgth-root--expedition .pgth-map-loading[hidden] {
	display: none !important;
}

.pgth-map-stage[hidden] {
	display: none !important;
}

.pgth-root--expedition .pgth-map-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 12;
	font-family: "IM Fell English SC", serif;
	font-size: 1rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--pgth-gold-light);
	background: rgba(13, 8, 4, 0.85);
}

.pgth-root--expedition .pgth-poi {
	width: 2rem;
	height: 2rem;
	background: none;
	border-radius: 0;
	box-shadow: none;
	animation: pgth-x-appear 0.6s ease forwards;
}

.pgth-root--expedition .pgth-poi::before {
	content: "✕";
	display: block;
	font-size: 1.75rem;
	line-height: 1;
	color: var(--pgth-blood);
	text-shadow:
		0 0 12px rgba(244, 214, 122, 0.9),
		0 2px 4px rgba(0, 0, 0, 0.8);
	font-weight: bold;
}

.pgth-root--expedition .pgth-poi:hover,
.pgth-root--expedition .pgth-poi:focus {
	transform: translate(-50%, -50%) scale(1.2);
}

.pgth-root--expedition .pgth-poi--validated::before {
	content: "✓";
	color: #5a9f50;
}

.pgth-root--expedition .pgth-poi--validated::after {
	display: none;
}

@keyframes pgth-x-appear {
	from { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(-45deg); }
	to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

.pgth-root--expedition .pgth-toast {
	bottom: 2rem;
	background: rgba(42, 26, 14, 0.95);
	border: 1px solid var(--pgth-gold);
	font-family: "IM Fell English SC", serif;
	letter-spacing: 0.06em;
}

.pgth-root--expedition .pgth-modal__backdrop {
	background: rgba(0, 0, 0, 0.82);
}

.pgth-root--expedition .pgth-modal__panel {
	background: linear-gradient(180deg, #f0e0c0 0%, #dcc9a0 100%);
	border: 3px double #5c3d20;
	border-radius: 2px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), inset 0 0 60px rgba(92, 61, 32, 0.15);
	color: #2a1a0e;
	max-width: 480px;
}

.pgth-modal__scroll-edge {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 12px;
	background: linear-gradient(180deg, #c4a060, transparent);
	opacity: 0.5;
	pointer-events: none;
}

.pgth-root--expedition .pgth-modal__title {
	font-family: "Cinzel Decorative", serif;
	color: #2a1a0e;
	border-bottom: 1px solid rgba(92, 61, 32, 0.3);
	padding-bottom: 0.5rem;
}

.pgth-root--expedition .pgth-question__text {
	font-family: "IM Fell English", serif;
	color: #3d2817;
}

.pgth-root--expedition .pgth-btn {
	background: linear-gradient(180deg, #8b2500, #5c1500);
	border: 1px solid #3d0d00;
	font-family: "IM Fell English SC", serif;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	box-shadow: 0 4px 0 #3d0d00;
	border-radius: 2px;
}

.pgth-root--expedition .pgth-btn--secondary {
	background: transparent;
	color: #3d2817;
	border: 1px solid #5c3d20;
	box-shadow: none;
}

.pgth-root--expedition .pgth-choice {
	border-color: rgba(92, 61, 32, 0.35);
	background: rgba(255, 255, 255, 0.35);
}

body.pgth-modal-open {
	overflow: hidden;
}

@media (max-width: 768px) {
	.pgth-hud__bar {
		flex-wrap: wrap;
	}
	.pgth-hud__brand-text {
		display: none;
	}
	.pgth-root--expedition .pgth-map-title {
		order: 3;
		width: 100%;
		text-align: left;
	}
	.pgth-hud__panel {
		flex-direction: column;
		align-items: stretch;
	}
}

