
	/* ── Base & breathing background (4-7-8 technique, 19s cycle) ────────────── */
	/*
 * 4-7-8 breathing: inhale 4s → hold 7s → exhale 8s = 19s cycle
 * 0–21% = inhale  |  21–58% = hold  |  58–100% = exhale
 * Slightly longer exhale activates the parasympathetic nervous system.
 */
	body {
		background-color: #080f08;
		animation: bodyBreathe 19s ease-in-out infinite;
	}

	@keyframes bodyBreathe {

		0%,
		100% {
			background-color: #2a4e2a;
		}

		21% {
			background-color: #193119
		}

		/* end of inhale — slightly lighter */
		58% {
			background-color: #112111;
		}

		/* end of hold — still lighter */
	}

	/* Radial glow that expands on inhale, holds, then retreats on exhale */
	.breathe-bg {
		position: fixed;
		inset: 0;
		background: radial-gradient(ellipse at 50% 45%, #1d4a1d 0%, #0d1d0d 45%, transparent 75%);
		animation: breatheGlow 19s ease-in-out infinite;
		pointer-events: none;
		z-index: 0;
		opacity: 0;
		will-change: opacity;
	}

	@keyframes breatheGlow {

		0%,
		100% {
			opacity: 0;
		}

		/* exhale — dark */
		21% {
			opacity: 0.22;
		}

		/* end inhale — glow peak */
		58% {
			opacity: 0.22;
		}

		/* end hold — glow peak */
	}

	#forest-game {
		position: relative;
		z-index: 1;
		background: transparent;
		min-height: 100vh;
		color: #c8e6c0;
		font-family: Georgia, 'Times New Roman', serif;
	}

	/* ── Breathing guide (bottom-right corner) ───────────────────────────────── */
	.breathe-guide {
		position: fixed;
		bottom: 1.4rem;
		right: 1.4rem;
		z-index: 2000;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: .3rem;
		opacity: 0;
		transition: opacity .4s;
		pointer-events: none;
	}

	.breathe-guide.visible {
		opacity: 1;
		pointer-events: auto;
	}

	/* Pulsing circle — expands on inhale, holds, contracts on exhale */
	.breathe-dot {
		width: 10px;
		height: 10px;
		border-radius: 50%;
		background: #2a6a2a;
		border: 1px solid #4a9a4a;
		animation: breatheDot 19s ease-in-out infinite;
		will-change: transform;
	}

	@keyframes breatheDot {

		0%,
		100% {
			transform: scale(1);
			background: #1a4a1a;
			border-color: #2a6a2a;
			box-shadow: none;
		}

		21%,
		58% {
			transform: scale(2.2);
			background: #3a8a3a;
			border-color: #5aba5a;
			box-shadow: 0 0 10px #2a7a2a88;
		}
	}

	/* Phase labels — appear and fade during their respective phases */
	.breathe-label {
		font-family: monospace;
		font-size: .62rem;
		color: #4a9a4a;
		letter-spacing: .06rem;
		opacity: 0;
		white-space: nowrap;
		will-change: opacity;
	}

	.bl-in {
		animation: showIn 19s ease-in-out infinite;
	}

	.bl-hold {
		animation: showHold 19s ease-in-out infinite;
	}

	.bl-out {
		animation: showOut 19s ease-in-out infinite;
	}

	@keyframes showIn {
		0% {
			opacity: 0.9;
		}

		18% {
			opacity: 0.9;
		}

		23% {
			opacity: 0;
		}

		100% {
			opacity: 0;
		}
	}

	@keyframes showHold {
		0% {
			opacity: 0;
		}

		22% {
			opacity: 0;
		}

		26% {
			opacity: 0.9;
		}

		55% {
			opacity: 0.9;
		}

		60% {
			opacity: 0;
		}

		100% {
			opacity: 0;
		}
	}

	@keyframes showOut {
		0% {
			opacity: 0;
		}

		57% {
			opacity: 0;
		}

		62% {
			opacity: 0.9;
		}

		97% {
			opacity: 0.9;
		}

		100% {
			opacity: 0;
		}
	}

	/* Toggle button */
	.breathe-toggle {
		position: fixed;
		bottom: 1.4rem;
		right: 1.4rem;
		z-index: 2001;
		background: none;
		border: 1px solid #1e4a1e;
		color: #2d5a2d;
		font-family: monospace;
		font-size: .65rem;
		padding: .2rem .45rem;
		border-radius: 4px;
		cursor: pointer;
		letter-spacing: .04rem;
		transition: color .2s, border-color .2s;
	}

	.breathe-toggle:hover {
		color: #5a9a5a;
		border-color: #3d7a3d;
	}

	.breathe-toggle.guide-on {
		bottom: 6rem;
		/* shift up when guide is visible */
		color: #3d7a3d;
		border-color: #2d6a2d;
	}

	.game-shell {
		max-width: 980px;
		margin: 0 auto;
		padding: 1.5rem 1rem 4rem;
	}

	/* ── Onboarding ──────────────────────────────────────────────────────────── */
	.onboarding-screen {
		min-height: 100vh;
		background: #0b1a0b;
		background-image: radial-gradient(#1e4a1e22 1px, transparent 1px);
		background-size: 18px 18px;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 2rem 1rem;
	}

	.onboarding-box {
		background: #0f230f;
		border: 4px solid #000;
		border-radius: 8px;
		padding: 2rem 1.75rem;
		max-width: 420px;
		width: 100%;
		box-shadow: 8px 8px 0 #000;
	}

	.ob-title {
		font-family: 'Bangers', Georgia, serif;
		font-size: 2rem;
		color: #7cbf70;
		letter-spacing: .15rem;
		text-align: center;
		text-shadow: 2px 2px 0 #000;
		margin-bottom: .3rem;
	}

	.ob-trees {
		text-align: center;
		font-size: 1.4rem;
		letter-spacing: .2rem;
		margin-bottom: .5rem;
	}

	.ob-sub {
		font-family: monospace;
		font-size: .76rem;
		color: #3d6e3d;
		text-align: center;
		margin-bottom: 1.75rem;
		line-height: 1.55;
	}

	.ob-field {
		margin-bottom: 1.2rem;
	}

	.ob-label {
		display: block;
		font-family: monospace;
		font-size: .74rem;
		color: #5a9a5a;
		letter-spacing: .07rem;
		text-transform: uppercase;
		margin-bottom: .4rem;
	}

	.ob-req {
		color: #8a4a4a;
	}

	.ob-input {
		width: 100%;
		background: #132913;
		border: 2px solid #1e4a1e;
		color: #c8e6c0;
		padding: .6rem .75rem;
		border-radius: 5px;
		font-family: Georgia, serif;
		font-size: .95rem;
		outline: none;
		box-sizing: border-box;
		transition: border-color .15s;
	}

	.ob-input:focus {
		border-color: #5baa50;
	}


	.begin-btn {
		width: 100%;
		background: #1f4a1f;
		border: 3px solid #000;
		color: #c8f0b8;
		padding: .8rem;
		border-radius: 6px;
		font-family: 'Bangers', Georgia, serif;
		font-size: 1.25rem;
		letter-spacing: .12rem;
		cursor: pointer;
		transition: background .18s, box-shadow .1s, transform .1s;
		margin-top: .75rem;
		box-shadow: 4px 4px 0 #000;
		text-transform: uppercase;
	}

	.begin-btn:hover:not(:disabled) {
		background: #2a6a2a;
		transform: translate(-1px, -1px);
		box-shadow: 5px 5px 0 #000;
	}

	.begin-btn:disabled {
		opacity: .4;
		cursor: not-allowed;
	}

	.ob-error {
		font-family: monospace;
		font-size: .76rem;
		color: #9a4a4a;
		text-align: center;
		margin-top: .6rem;
	}

	/* ── Canopy ──────────────────────────────────────────────────────────────── */
	.canopy {
		text-align: center;
		padding: 1.2rem 0 .8rem;
		border-bottom: 3px solid #000;
		margin-bottom: 1.5rem;
		user-select: none;
		position: relative;
	}

	.canopy::before {
		content: '';
		position: absolute;
		inset: 0;
		background-image: radial-gradient(#2a5c2a1a 1px, transparent 1px);
		background-size: 8px 8px;
		pointer-events: none;
	}

	.canopy-trees {
		font-size: 1.8rem;
		letter-spacing: .2rem;
		color: #2a5c2a;
		line-height: 1;
		position: relative;
	}

	.canopy h1 {
		font-family: 'Bangers', Georgia, serif;
		font-size: 2rem;
		letter-spacing: .15rem;
		color: #7cbf70;
		margin: .4rem 0 0;
		position: relative;
		text-shadow: 2px 2px 0 #000;
	}

	.canopy-sub {
		font-size: .78rem;
		color: #3d6e3d;
		margin: .2rem 0 0;
		font-family: monospace;
		position: relative;
	}

	/* ── Focus mode ──────────────────────────────────────────────────────────── */
	.focus-btn {
		position: absolute;
		top: .9rem;
		right: 0;
		z-index: 2;
		background: none;
		border: 1px solid #1e4a1e;
		color: #3d7a3d;
		padding: .25rem .6rem;
		border-radius: 5px;
		font-size: .75rem;
		font-family: monospace;
		cursor: pointer;
		transition: color .15s, border-color .15s;
		letter-spacing: .04rem;
	}

	.focus-btn:hover {
		color: #7cbf70;
		border-color: #3d7a3d;
	}

	body.forest-focus {
		background: #0b1a0b !important;
	}

	body.forest-focus nav.navbar,
	body.forest-focus footer {
		display: none !important;
	}

	body.forest-focus main {
		margin-top: 0 !important;
		max-width: 100% !important;
		width: 100% !important;
		padding: 0 !important;
	}

	body.forest-focus .game-shell {
		max-width: 100%;
		padding: 1rem 1.5rem 2rem;
	}

	body.forest-focus .focus-btn {
		color: #5baa50;
		border-color: #3d7a3d;
	}

	/* ── Focus mode — enhanced immersion ─────────────────────────────────────── */

	/* Each sidebar card dims individually so minimap can be exempted.
	   Hover restores to full opacity (desktop). No pointer-events change —
	   controls remain clickable through the dim. */
	body.forest-focus .sidebar-card {
		opacity: 0.18;
		transition: opacity .6s ease;
	}
	/* Minimap card — always fully visible in focus mode */
	body.forest-focus .sidebar-card:first-child {
		opacity: 1;
	}
	body.forest-focus .sidebar-card:hover {
		opacity: 1;
		transition: opacity .3s ease;
	}

	/* Canopy header — nearly invisible, just structural; hover reveals */
	body.forest-focus .canopy {
		opacity: 0.08;
		transition: opacity .6s ease;
	}
	body.forest-focus .canopy:hover {
		opacity: 1;
		transition: opacity .3s ease;
	}

	/* Comic strip — dim; hover to browse */
	body.forest-focus .comic-strip {
		opacity: 0.15;
		transition: opacity .6s ease;
	}
	body.forest-focus .comic-strip:hover {
		opacity: 1;
		transition: opacity .3s ease;
	}

	/* Breathe toggle — recede but remain accessible */
	body.forest-focus .breathe-toggle {
		opacity: 0.22;
		transition: opacity .3s;
	}
	body.forest-focus .breathe-toggle:hover {
		opacity: 1;
	}

	/* Coord badge — hidden in focus */
	body.forest-focus .coord-badge {
		display: none;
	}

	/* Slow text reveal: fires on each scene because Vue recreates the node via :key.
	   animation-fill: both means the element is opacity 0 before the delay, then
	   eases to 1 — so text appears to surface from darkness after the panel fades in. */
	body.forest-focus .scene-text {
		animation: focusReveal 2.4s ease-out both;
		animation-delay: .35s;
	}

	/* Scene title also fades in, slightly faster than the body text */
	body.forest-focus .scene-title {
		animation: focusReveal 1.4s ease-out both;
		animation-delay: .15s;
	}

	@keyframes focusReveal {
		from { opacity: 0; }
		to   { opacity: 1; }
	}

	/* ── Columns ─────────────────────────────────────────────────────────────── */
	.game-columns {
		display: grid;
		grid-template-columns: 215px 1fr;
		gap: 1.25rem;
		align-items: start;
	}

	@media (max-width: 700px) {
		.game-columns {
			grid-template-columns: 1fr;
		}
	}

	/* ── Scene panel ─────────────────────────────────────────────────────────── */

	/* Vue <Transition name="scene-fade"> — panel cross-fade on move */
	.scene-fade-enter-active { transition: opacity .45s ease; }
	.scene-fade-leave-active  { transition: opacity .2s ease;  }
	.scene-fade-enter-from,
	.scene-fade-leave-to      { opacity: 0; }

	.scene-wrap {
		position: relative;
	}

	.scene-panel {
		background: #0f230f;
		border: 3px solid #000;
		border-radius: 6px;
		overflow: hidden;
		box-shadow: 5px 5px 0 #000;
		display: flex;
		flex-direction: column;
		min-height: 400px;
	}

	/* Comic image in scene — images from Replicate are 1:1 square; lock ratio to prevent stretch */
	.scene-comic-img {
		width: 100%;
		aspect-ratio: 1 / 1;
		object-fit: cover;
		display: block;
		border-bottom: 3px solid #000;
	}

	.scene-img-caption {
		background: #e8d060;
		color: #1a1a1a;
		padding: .3rem .75rem;
		font-family: 'Bangers', Georgia, serif;
		font-size: .85rem;
		letter-spacing: .06rem;
		border-bottom: 3px solid #000;
		text-transform: uppercase;
	}

	.scene-img-cached {
		font-size: .65rem;
		font-family: monospace;
		color: #8a7a20;
		margin-left: .4rem;
	}

	.scene-img-loading {
		background: repeating-linear-gradient(45deg, #0f230f, #0f230f 5px, #132913 5px, #132913 12px);
		height: 200px;
		display: flex;
		align-items: center;
		justify-content: center;
		border-bottom: 3px solid #000;
		flex-direction: column;
		gap: .5rem;
		color: #3d7a3d;
		font-family: monospace;
		font-size: .78rem;
	}

	.scene-img-error {
		background: #1a0a0a;
		height: 80px;
		display: flex;
		align-items: center;
		justify-content: center;
		border-bottom: 3px solid #000;
		flex-direction: column;
		gap: .4rem;
		font-family: monospace;
		font-size: .75rem;
		color: #9a4a4a;
	}

	.spinner-ring {
		width: 26px;
		height: 26px;
		border: 3px solid #1e4a1e;
		border-top-color: #5baa50;
		border-radius: 50%;
		animation: spin .8s linear infinite;
	}

	@keyframes spin {
		to {
			transform: rotate(360deg);
		}
	}

	.img-retry {
		background: none;
		border: 1px solid #5c2a2a;
		color: #9a5a5a;
		padding: .2rem .55rem;
		border-radius: 4px;
		cursor: pointer;
		font-size: .72rem;
		font-family: monospace;
	}

	.img-retry:hover {
		background: #2a1010;
	}

	/* Scene body */
	.scene-body {
		padding: 1.25rem 1.25rem 1rem;
		display: flex;
		flex-direction: column;
		flex: 1;
	}

	.scene-title {
		font-family: 'Bangers', Georgia, serif;
		font-size: 1.3rem;
		color: #e8d060;
		letter-spacing: .08rem;
		text-transform: uppercase;
		text-shadow: 1px 1px 0 #000;
		margin-bottom: .85rem;
		display: flex;
		align-items: center;
		gap: .5rem;
	}

	.scene-title .mood {
		font-size: 1.25rem;
	}

	.scene-text {
		flex: 1;
		font-size: .95rem;
		line-height: 1.78;
		color: #b8d9b0;
		margin-bottom: 1.25rem;
	}

	/* Journey echo — reflective memory line, subtly distinguished from base text */
	.journey-echo {
		color: #7aaa7a;
		font-style: italic;
		opacity: 0.82;
		font-size: .92em;
		letter-spacing: .01em;
	}

	.scene-text em {
		color: #8fd080;
		font-style: italic;
	}

	.scene-text strong {
		color: #a8f090;
		font-weight: 600;
	}

	/* ── Choices ─────────────────────────────────────────────────────────────── */
	.choices {
		display: flex;
		flex-direction: column;
		gap: .55rem;
	}

	.choice-btn {
		background: #132913;
		border: 2px solid #2a5c2a;
		color: #a0d890;
		padding: .65rem 1rem;
		border-radius: 5px;
		text-align: left;
		cursor: pointer;
		font-size: .9rem;
		font-family: Georgia, serif;
		transition: background .15s, border-color .15s, transform .1s, box-shadow .1s;
		line-height: 1.4;
		box-shadow: inset 0 0 14px #000c, 0 0 0 1px #1a2e1a;
	}

	.choice-btn:hover:not(:disabled) {
		background: #1f4a1f;
		border-color: #5baa50;
		color: #c8f0b8;
		transform: translate(-1px, -1px);
		box-shadow: 3px 3px 0 #000;
	}

	.choice-btn:disabled {
		opacity: .38;
		cursor: not-allowed;
	}

	.choice-btn .req-hint {
		display: block;
		font-size: .75rem;
		color: #4a7a4a;
		margin-top: .2rem;
		font-family: monospace;
	}

	/* ── D-pad navigation ────────────────────────────────────────────────────── */
	.dpad {
		display: grid;
		grid-template-columns: repeat(3, minmax(150px, 1fr));
		grid-template-rows: auto auto auto;
		gap: .35rem;
		width: 100%;
		max-width: 460px;
		margin: 1.2rem 0 0;
		user-select: none;
	}

	/* Grid slot assignments — positions match a compass rose */
	.dpad-n                         { grid-column: 2; grid-row: 1; }
	.dpad-w                         { grid-column: 1; grid-row: 2; align-self: center; }
	.dpad-center, .dpad-center-void { grid-column: 2; grid-row: 2; }
	.dpad-e                         { grid-column: 3; grid-row: 2; align-self: center; }
	.dpad-s                         { grid-column: 2; grid-row: 3; }

	.dpad-btn {
		background: #132913;
		border: 2px solid #2a5c2a;
		color: #a0d890;
		border-radius: 6px;
		cursor: pointer;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: .2rem;
		padding: .55rem .4rem;
		min-height: 58px;
		box-shadow: inset 0 0 10px #000c, 0 0 0 1px #1a2e1a;
		transition: background .15s, border-color .15s, transform .1s, box-shadow .1s;
		font-family: Georgia, serif;
		text-align: center;
	}

	.dpad-btn:hover:not(:disabled) {
		background: #1f4a1f;
		border-color: #5baa50;
		color: #c8f0b8;
		transform: translate(-1px, -1px);
		box-shadow: 3px 3px 0 #000;
	}

	.dpad-btn:disabled {
		opacity: .22;
		cursor: not-allowed;
	}

	/* Direction label — arrow + compass name */
	.dpad-dir {
		font-size: .88rem;
		font-family: Georgia, serif;
		line-height: 1.2;
		color: inherit;
	}

	/* Terrain line — emoji + terrain name */
	.dpad-terrain {
		font-size: .78rem;
		line-height: 1.2;
		color: #7aaa7a;
	}
	.dpad-btn:hover:not(:disabled) .dpad-terrain { color: #a0d890; }

	/* At-edge placeholder when direction is blocked by map boundary */
	.dpad-edge { opacity: .4; letter-spacing: .15em; }

	/* Center action button — distinct style, still rectangular to hold text */
	.dpad-btn.dpad-center {
		background: #0f2318;
		border-color: #2a6a48;
		border-radius: 8px;
		padding: .5rem .4rem;
		min-height: 58px;
	}
	.dpad-btn.dpad-center:hover {
		background: #1a4228;
		border-color: #5baa80;
		transform: translate(-1px, -1px);
		box-shadow: 3px 3px 0 #000;
	}
	.dpad-center-icon  { font-size: 1.2rem; line-height: 1; }
	.dpad-center-label {
		font-size: .75rem;
		font-family: Georgia, serif;
		color: #7ac890;
		line-height: 1.2;
	}
	.dpad-btn.dpad-center:hover .dpad-center-label { color: #a0e0a0; }

	/* Empty center when no action — keeps grid symmetry */
	.dpad-center-void {
		background: #0a150a;
		border-radius: 8px;
		min-height: 58px;
		opacity: .2;
		border: 2px solid #1a2e1a;
	}

	/* ── Endings ─────────────────────────────────────────────────────────────── */
	.ending-good {
		border-color: #6e5a00 !important;
	}

	.ending-good .scene-title {
		color: #f0d050;
	}

	.ending-badge {
		display: inline-block;
		background: #e8d060;
		color: #1a1a1a;
		padding: .25rem .75rem;
		border: 2px solid #000;
		border-radius: 3px;
		font-family: 'Bangers', Georgia, serif;
		font-size: .9rem;
		margin-bottom: .85rem;
		letter-spacing: .08rem;
		box-shadow: 2px 2px 0 #000;
		text-transform: uppercase;
	}

	.deadend-panel {
		border-color: #1a0a0a !important;
		background: #0d0508 !important;
	}

	.deadend-panel .scene-title {
		color: #5a3a3a;
	}

	.deadend-badge {
		display: inline-block;
		background: #1a0505;
		color: #7a3030;
		padding: .25rem .75rem;
		border: 2px solid #3a0a0a;
		border-radius: 3px;
		font-family: 'Bangers', Georgia, serif;
		font-size: .9rem;
		margin-bottom: .85rem;
		letter-spacing: .08rem;
		box-shadow: 2px 2px 0 #000;
		text-transform: uppercase;
	}
.anchor-badge {
	display: inline-block;
	background: #1a1200;
	color: #e8a030;
	padding: .25rem .75rem;
	border: 2px solid #c8700040;
	border-radius: 3px;
	font-family: 'Bangers', Georgia, serif;
	font-size: 1.05rem;
	letter-spacing: .04em;
	margin-bottom: .6rem;
	text-shadow: 0 1px 4px #0008;
}
.anchor-scene .scene-body {
	background: linear-gradient(160deg, #141000 0%, #0f1a0f 100%);
	border-color: #c8700040;
}


	.restart-btn {
		background: #1f4a1f;
		border: 2px solid #4a8a4a;
		color: #90d880;
		padding: .65rem 1.4rem;
		border-radius: 6px;
		cursor: pointer;
		font-family: 'Bangers', Georgia, serif;
		font-size: 1rem;
		letter-spacing: .06rem;
		margin-top: 1.25rem;
		transition: background .18s;
		box-shadow: 2px 2px 0 #000;
	}

	/* ── Exit choice buttons ────────────────────────────────────────────────── */
	.exit-choice {
		display: flex;
		gap: .6rem;
		margin-top: 1rem;
		flex-wrap: wrap;
	}

	.finish-walk-btn {
		background: #c8a040;
		color: #0b1a0b;
		border: none;
		border-radius: 4px;
		padding: .55rem 1.1rem;
		font-family: 'Bangers', Georgia, serif;
		font-size: 1rem;
		letter-spacing: .06rem;
		cursor: pointer;
		transition: background .15s;
	}
	.finish-walk-btn:hover { background: #e8c060; }

	.stay-longer-btn {
		background: transparent;
		color: #7aaa7a;
		border: 1px solid #3a6a3a;
		border-radius: 4px;
		padding: .55rem 1.1rem;
		font-family: 'Bangers', Georgia, serif;
		font-size: 1rem;
		letter-spacing: .06rem;
		cursor: pointer;
		transition: border-color .15s, color .15s;
	}
	.stay-longer-btn:hover { border-color: #7aaa7a; color: #a0d0a0; }

	.ending-title {
		font-family: 'Bangers', Georgia, serif;
		font-size: 1.3rem;
		color: #e8d060;
		letter-spacing: .1rem;
		text-shadow: 2px 2px 0 #000;
		margin-bottom: .5rem;
	}

	.restart-btn:hover {
		background: #2a6a2a;
	}

	/* ── Sidebar ─────────────────────────────────────────────────────────────── */
	.sidebar {
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}

	.sidebar-card {
		background: #0f230f;
		border: 3px solid #000;
		border-radius: 6px;
		padding: 1rem;
		box-shadow: 3px 3px 0 #000;
	}

	.sidebar-title {
		font-family: 'Bangers', Georgia, serif;
		font-size: .85rem;
		color: #e8d060;
		letter-spacing: .12rem;
		text-transform: uppercase;
		margin-bottom: .75rem;
		padding-bottom: .4rem;
		border-bottom: 2px solid #000;
		text-shadow: 1px 1px 0 #000;
	}

	/* Player card */
	.player-avatar {
		width: 76px;
		height: 76px;
		border-radius: 50%;
		border: 3px solid #000;
		object-fit: cover;
		display: block;
		margin: 0 auto .55rem;
		box-shadow: 3px 3px 0 #000;
	}

	.player-avatar-placeholder {
		width: 76px;
		height: 76px;
		border-radius: 50%;
		border: 3px solid #1e4a1e;
		background: #132913;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 2rem;
		margin: 0 auto .55rem;
		box-shadow: 3px 3px 0 #000;
	}

	.player-name-display {
		font-family: 'Bangers', Georgia, serif;
		font-size: 1.15rem;
		color: #7cbf70;
		letter-spacing: .1rem;
		text-align: center;
		text-shadow: 1px 1px 0 #000;
	}

	.player-scene {
		font-family: monospace;
		font-size: .68rem;
		color: #3d6e3d;
		text-align: center;
		margin-top: .2rem;
		line-height: 1.45;
	}

	.player-gate {
		font-family: monospace;
		font-size: .7rem;
		color: #3d6e3d;
		text-align: center;
		margin-top: .65rem;
		line-height: 1.6;
	}

	.player-gate a {
		color: #5baa50;
		border: 1px solid #2a5c2a;
		padding: .15rem .5rem;
		border-radius: 4px;
		text-decoration: none;
		display: inline-block;
		margin-top: .3rem;
		font-size: .68rem;
	}

	.edit-profile-btn {
		display: block;
		margin: .55rem auto 0;
		background: none;
		border: 1px solid #1e4a1e;
		color: #2d5a2d;
		font-family: monospace;
		font-size: .68rem;
		padding: .18rem .5rem;
		border-radius: 4px;
		cursor: pointer;
		transition: color .15s, border-color .15s;
	}

	.edit-profile-btn:hover {
		color: #5a9a5a;
		border-color: #3d7a3d;
	}

	.restart-always-btn {
		display: block;
		margin: .55rem auto 0;
		background: #1a1a0a;
		border: 1px solid #4a4a1e;
		color: #9a9a5a;
		font-family: monospace;
		font-size: .68rem;
		padding: .18rem .5rem;
		border-radius: 4px;
		cursor: pointer;
		transition: color .15s, border-color .15s;
	}

	.restart-always-btn:hover {
		color: #c8c870;
		border-color: #7a7a3d;
	}

	.enter-action {
		margin-top: 1rem;
		padding-top: .75rem;
		border-top: 1px solid #1e4a1e;
	}

	.enter-btn {
		width: 100%;
		padding: .55rem .75rem;
		background: #0f230f;
		border: 2px solid #2a5c2a;
		color: #88c878;
		font-family: Georgia, serif;
		font-size: .85rem;
		border-radius: 5px;
		cursor: pointer;
		box-shadow: 2px 2px 0 #000;
		transition: background .15s, border-color .15s;
		text-align: left;
	}

	.enter-btn:hover:not(:disabled) {
		background: #1a3a1a;
		border-color: #5baa50;
	}

	.enter-btn:disabled {
		opacity: .5;
		cursor: not-allowed;
	}

	.req-hint {
		display: block;
		font-size: .72rem;
		color: #9a6a3a;
		margin-top: .2rem;
	}

	.enter-title {
		font-family: 'Bangers', Georgia, serif;
		font-size: 1.4rem;
		color: #e8d060;
		letter-spacing: .1rem;
		text-shadow: 2px 2px 0 #000;
		margin-bottom: .75rem;
	}

	.exit-location-btn {
		margin-top: 1.2rem;
		padding: .45rem .9rem;
		background: #0f1f0f;
		border: 2px solid #2a4a2a;
		color: #7cbf70;
		font-family: monospace;
		font-size: .8rem;
		border-radius: 5px;
		cursor: pointer;
		box-shadow: 2px 2px 0 #000;
		transition: background .15s, border-color .15s;
	}

	.exit-location-btn:hover {
		background: #1a3a1a;
		border-color: #5baa50;
	}

	/* Inventory */
	.inv-empty {
		font-family: monospace;
		font-size: .78rem;
		color: #2d5a2d;
	}

	.inv-items {
		display: flex;
		flex-direction: column;
		gap: .4rem;
	}

	.inv-tag {
		display: inline-block;
		background: #132913;
		border: 2px solid #000;
		color: #88c878;
		padding: .28rem .6rem;
		border-radius: 4px;
		font-size: .8rem;
		font-family: monospace;
		box-shadow: 2px 2px 0 #000;
	}

	/* Trail log */
	.log-list {
		display: flex;
		flex-direction: column;
		gap: .3rem;
		max-height: 130px;
		overflow-y: auto;
	}

	.log-list::-webkit-scrollbar {
		width: 4px;
	}

	.log-list::-webkit-scrollbar-thumb {
		background: #2a5c2a;
		border-radius: 2px;
	}

	.log-entry {
		font-family: monospace;
		font-size: .73rem;
		color: #3d6e3d;
		padding: .15rem 0;
		border-bottom: 1px solid #132913;
		line-height: 1.4;
	}

	.log-entry.log-choice {
		color: #5a9a5a;
	}

	.log-entry.log-item {
		color: #7aba6a;
	}

	/* ── Comic strip ─────────────────────────────────────────────────────────── */
	.comic-strip {
		margin-top: 2.5rem;
		padding-top: 1.5rem;
		border-top: 3px solid #000;
	}

	.comic-strip-header {
		font-family: 'Bangers', Georgia, serif;
		font-size: 1.15rem;
		color: #e8d060;
		letter-spacing: .15rem;
		text-transform: uppercase;
		text-shadow: 2px 2px 0 #000;
		margin-bottom: 1rem;
		display: flex;
		align-items: center;
		gap: .85rem;
		flex-wrap: wrap;
	}

	.share-btn {
		background: #132913;
		border: 2px solid #2a5c2a;
		color: #7cbf70;
		padding: .28rem .75rem;
		border-radius: 5px;
		cursor: pointer;
		font-family: monospace;
		font-size: .72rem;
		letter-spacing: .04rem;
		box-shadow: 2px 2px 0 #000;
		transition: background .15s, border-color .15s;
		text-transform: none;
	}

	.share-btn:hover:not(:disabled) {
		background: #1f4a1f;
		border-color: #5baa50;
	}

	.share-btn:disabled {
		opacity: .5;
		cursor: not-allowed;
	}

	.share-error {
		font-family: monospace;
		font-size: .72rem;
		color: #9a4a4a;
		text-transform: none;
		letter-spacing: 0;
	}

	.panels-row {
		display: flex;
		gap: 0;
		overflow-x: auto;
		padding-bottom: .75rem;
		border: 4px solid #000;
	}

	.panels-row::-webkit-scrollbar {
		height: 6px;
	}

	.panels-row::-webkit-scrollbar-thumb {
		background: #2a5c2a;
		border-radius: 3px;
	}

	.panel-thumb {
		flex: 0 0 auto;
		width: 160px;
		background: #0f230f;
		border: 0;
		border-right: 4px solid #000;
		border-radius: 0;
		overflow: hidden;
		cursor: default;
	}

	.panel-thumb:last-child {
		border-right: 0;
	}

	.panel-thumb img {
		width: 100%;
		aspect-ratio: 1 / 1;
		object-fit: cover;
		display: block;
		border-bottom: 3px solid #000;
	}

	.panel-thumb-body {
		padding: .3rem .4rem .4rem;
	}

	.panel-thumb-title {
		font-family: 'Bangers', Georgia, serif;
		font-size: .8rem;
		color: #e8d060;
		letter-spacing: .05rem;
		text-transform: uppercase;
		text-shadow: 1px 1px 0 #000;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.panel-thumb-caption {
		font-family: monospace;
		font-size: .62rem;
		color: #5a9a5a;
		margin-top: .2rem;
		line-height: 1.35;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	/* ── Game size selector ─────────────────────────────────────────────────── */
	.size-selector {
		display: flex;
		gap: .5rem;
		flex-wrap: wrap;
	}

	.size-btn {
		flex: 1;
		min-width: 90px;
		background: #132913;
		border: 2px solid #1e4a1e;
		color: #5a9a5a;
		border-radius: 5px;
		padding: .55rem .4rem;
		cursor: pointer;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: .15rem;
		transition: background .15s, border-color .15s, transform .1s;
		box-shadow: 2px 2px 0 #000;
	}

	.size-btn:hover { background: #1a3a1a; border-color: #4a8a4a; }

	.size-btn.active {
		background: #1f4a1f;
		border-color: #5baa50;
		color: #c8f0b8;
		box-shadow: 3px 3px 0 #000;
	}

	.size-icon { font-size: 1.3rem; }
	.size-label { font-family: 'Bangers', Georgia, serif; font-size: .9rem; letter-spacing: .08rem; }
	.size-desc  { font-family: monospace; font-size: .62rem; color: #3d6e3d; }
	.size-btn.active .size-desc { color: #5baa50; }

	/* ── Coord badge in scene title ──────────────────────────────────────────── */
	.coord-badge {
		font-family: monospace;
		font-size: .7rem;
		color: #3d6e3d;
		background: #0f230f;
		border: 1px solid #1e4a1e;
		border-radius: 3px;
		padding: .1rem .35rem;
		margin-left: auto;
		letter-spacing: 0;
		font-weight: normal;
	}

	/* ── Mini-map ─────────────────────────────────────────────────────────────── */
	.mini-map-canvas {
		display: block;
		width: 100%;
		aspect-ratio: 1;
		border: 2px solid #000;
		border-radius: 3px;
		box-shadow: 2px 2px 0 #000;
	}

	.coord-display { display: none; }
.sit-btn {
	background: transparent;
	color: #7ab870;
	border: 1.5px solid #3a5a3a88;
	border-radius: 6px;
	padding: .45rem 1.1rem;
	font-family: Georgia, serif;
	font-size: .87rem;
	font-style: italic;
	cursor: pointer;
	opacity: .8;
	transition: opacity .2s, border-color .2s;
}
.sit-btn:hover {
	opacity: 1;
	border-color: #5a8a5a;
}
.sit-title {
	font-family: Georgia, serif;
	font-style: italic;
	color: #5baa50;
	font-size: .88rem;
	letter-spacing: .14em;
	opacity: .7;
	margin-bottom: .8rem;
	text-align: center;
}
.sit-text {
	animation: sitFadeIn 3.5s ease-out forwards;
}
@keyframes sitFadeIn {
	from { opacity: 0; transform: translateY(5px); }
	to   { opacity: 1; transform: translateY(0); }
}
.exit-sit-btn {
	background: transparent;
	color: #4a7a4a;
	border: none;
	font-family: Georgia, serif;
	font-size: .82rem;
	font-style: italic;
	cursor: pointer;
	padding: .4rem 0;
	margin-top: 1rem;
	display: block;
	opacity: .65;
	transition: opacity .2s, color .2s;
}
.exit-sit-btn:hover {
	opacity: 1;
	color: #7aba70;
}

