:root {
	--ink: #172033;
	--muted: #5c667a;
	--paper: #fffaf2;
	--blue: #2563eb;
	--line: #dbe2ee;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--ink);
	background: linear-gradient(135deg, #fffaf2 0%, #eef5ff 100%);
	font-family: Georgia, 'Times New Roman', serif;
}

nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	padding: 16px;
	background-color: #1f2937;
}

nav a {
	padding: 10px 16px;
	color: #ffffff;
	background-color: #2563eb;
	border-radius: 6px;
	text-decoration: none;
	font-family: Arial, sans-serif;
}

nav a:hover {
	background-color: #1d4ed8;
}

main {
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
	padding: 48px 0 64px;
}

.page-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 36px;
}

h1,
h2 {
	margin-top: 0;
}

h1 {
	max-width: 620px;
	margin-bottom: 12px;
	font-size: clamp(2.2rem, 5vw, 4.5rem);
	line-height: 0.98;
}

.lede {
	max-width: 560px;
	margin: 0;
	color: var(--muted);
	font-size: 1.1rem;
	line-height: 1.6;
}

kbd {
	display: inline-block;
	margin-right: 3px;
	padding: 2px 6px;
	border: 1px solid var(--line);
	border-radius: 4px;
	color: var(--ink);
	background: #ffffff;
	font-family: Arial, sans-serif;
	font-size: 0.85em;
}

.experience-intro {
	margin-bottom: 28px;
}

.experience-game {
	position: relative;
	width: min(100%, 72vh);
	aspect-ratio: 2760 / 3016;
	min-height: 0;
	margin-inline: auto;
	overflow: hidden;
	border: 1px solid #34435c;
	border-radius: 8px;
	background: url('Resources/game_resources/xp_parking_lot.png') center / 100% 100% no-repeat;
	box-shadow: 0 24px 50px rgba(31, 41, 55, 0.2);
}

.experience-fullscreen-message {
	display: none;
	max-width: 560px;
	margin: 32px auto;
	padding: 24px;
	border: 3px solid #11182c;
	background: #fffdf1;
	box-shadow: 6px 6px 0 #11182c;
	text-align: center;
}

.experience-fullscreen-message h2 {
	margin: 0 0 8px;
}

.experience-fullscreen-message p {
	margin: 0;
}

@media (max-width: 1023px), (max-height: 699px) {
	.experience-game,
	.experience-controls {
		display: none;
	}

	.experience-fullscreen-message {
		display: block;
	}
}

.parking-space {
	position: absolute;
	z-index: 1;
	opacity: 0;
	pointer-events: none;
}

.parking-space--one {
	left: 15%;
	top: 20%;
	width: 16%;
	height: 14%;
}

.parking-space--two {
	right: 15%;
	top: 20%;
	width: 16%;
	height: 14%;
}

.parking-space--three {
	left: 15%;
	top: 53%;
	width: 16%;
	height: 14%;
}

.parking-space--four {
	right: 15%;
	top: 53%;
	width: 16%;
	height: 14%;
}

.car {
	position: absolute;
	top: var(--car-y, 86%);
	left: var(--car-x, 50%);
	width: 64px;
	height: 104px;
	object-fit: contain;
	image-rendering: pixelated;
	transform: translate(-50%, -50%);
	transition: left 60ms linear, top 60ms linear;
	z-index: 2;
}

.experience-dialog {
	width: min(560px, calc(100% - 32px));
	min-height: 240px;
	padding: 24px;
	border: 4px solid #11182c;
	border-radius: 0;
	background: #fffdf1;
	color: #11182c;
	box-shadow: 8px 8px 0 #11182c;
}

.experience-dialog::backdrop {
	background: rgba(7, 12, 25, 0.72);
}

.experience-dialog-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.experience-dialog-header h2 {
	margin: 0;
}

.experience-dialog-close {
	display: grid;
	width: 32px;
	height: 32px;
	flex: 0 0 auto;
	place-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #11182c;
	font-family: inherit;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	text-shadow: none;
	cursor: pointer;
}

.experience-dialog-close:hover,
.experience-dialog-close:focus-visible {
	background: transparent;
	color: #11182c;
	outline: none;
}

.experience-dialog-content {
	min-height: 160px;
	margin-top: 20px;
}

.car[data-direction='a'],
.car[data-direction='d'] {
	width: 120px;
	height: 72px;
}

.unlock-card {
	position: absolute;
	top: 50%;
	left: 50%;
	width: min(360px, calc(100% - 40px));
	padding: 28px;
	border: 1px solid #b9d8ff;
	border-radius: 8px;
	background: rgba(17, 26, 53, 0.94);
	color: #ffffff;
	box-shadow: 0 20px 50px rgba(5, 12, 30, 0.4);
	transform: translate(-50%, -50%);
	z-index: 3;
}

.unlock-card[hidden] {
	display: none;
}

.unlock-card h2 {
	margin-bottom: 10px;
}

.unlock-card p:not(.eyebrow) {
	color: #d5e1f5;
	line-height: 1.5;
}

.game-status,
.drive-button {
	position: absolute;
	z-index: 2;
}

.game-status {
	bottom: 22px;
	left: 24px;
	margin: 0;
	color: #ffffff;
	font-family: Arial, sans-serif;
	font-size: 0.85rem;
}

.drive-button {
	right: 24px;
	bottom: 16px;
	margin: 0;
}

.experience-controls {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 18px;
}

.experience-controls .game-status {
	position: static;
	margin: 0 auto 0 0;
}

.experience-controls .drive-button {
	position: static;
}

.reset-drive-button {
	margin: 0;
}

.drive-button:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.experience-card {
	position: absolute;
	width: 180px;
	padding: 16px;
	border: 1px solid rgba(185, 216, 255, 0.45);
	border-radius: 6px;
	background: rgba(17, 26, 53, 0.76);
	color: #ffffff;
	box-shadow: 0 10px 24px rgba(5, 12, 30, 0.2);
	z-index: 1;
}

.experience-card::after {
	position: absolute;
	inset: 8px;
	border: 1px dashed rgba(185, 216, 255, 0.35);
	content: '';
	pointer-events: none;
}

.experience-card span {
	color: #b9d8ff;
	font-family: Arial, sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
}

.experience-card h2 {
	margin: 8px 0 4px;
	font-size: 1.15rem;
}

.experience-card p {
	margin: 0;
	color: #d5e1f5;
	font-size: 0.85rem;
	line-height: 1.4;
}

.experience-card-top-left {
	top: 24px;
	left: 24px;
}

.experience-card-top-right {
	top: 24px;
	right: 24px;
}

.experience-card-bottom-left {
	bottom: 78px;
	left: 24px;
}

.experience-card-bottom-right {
	right: 24px;
	bottom: 78px;
}

.projects-header {
	margin-bottom: 32px;
}

.eyebrow {
	margin: 0 0 10px;
	color: var(--blue);
	font-family: Arial, sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.home-hero {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 24px;
	align-items: stretch;
	padding-top: 24px;
}

.home-panel {
	padding: 24px;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(31, 41, 55, 0.08);
}

.photo-panel {
	display: grid;
	grid-template-rows: repeat(2, minmax(150px, 1fr));
	gap: 18px;
}

.home-photo {
	display: block;
	width: 96%;
	height: 96%;
	min-height: 0;
	object-fit: cover;
	justify-self: center;
	align-self: center;
}

.welcome-panel {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.welcome-panel h1 {
	margin-bottom: 12px;
}

.welcome-image {
	display: block;
	flex: 1 1 0;
	width: 100%;
	min-height: 0;
	margin-top: 20px;
	object-fit: contain;
	object-position: center bottom;
}

.failure-shelf-section {
	padding-top: 0;
}

.failure-shelf {
	padding: 30px;
	border: 1px solid #d8cdbb;
	border-radius: 10px;
	background: rgba(255, 251, 241, 0.82);
	box-shadow: 0 16px 38px rgba(91, 72, 51, 0.1);
}

.failure-shelf-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 26px;
}

.failure-shelf-header h2 {
	margin-bottom: 10px;
	font-size: clamp(2rem, 4vw, 3.2rem);
}

.shelf-note {
	margin: 0 0 8px;
	color: var(--muted);
	font-family: Arial, sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.failure-shelf-content {
	display: grid;
	grid-template-columns: minmax(300px, 1.2fr) minmax(240px, 0.8fr);
	gap: 28px;
	align-items: stretch;
	padding: 24px 24px 20px;
	border-bottom: 12px solid #6b4533;
	background: linear-gradient(180deg, #b8794b 0%, #8e5839 100%);
	box-shadow: inset 0 -8px 0 rgba(61, 37, 27, 0.2), 0 8px 14px rgba(91, 72, 51, 0.16);
}

.book-list {
	display: flex;
	align-items: end;
	justify-content: center;
	gap: 10px;
	min-height: 210px;
	padding: 12px 12px 0;
	border-bottom: 4px solid rgba(70, 39, 26, 0.55);
}

.failure-book {
	position: relative;
	width: 76px;
	height: 178px;
	margin: 0;
	padding: 18px 12px;
	border: 0;
	border-radius: 4px 7px 2px 2px;
	color: rgba(255, 255, 255, 0.92);
	box-shadow: inset -8px 0 rgba(0, 0, 0, 0.12), 5px 4px 8px rgba(54, 30, 20, 0.2);
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 1.08rem;
	line-height: 1.15;
	text-align: center;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	text-transform: none;
	transform-origin: bottom center;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.failure-book::after {
	position: absolute;
	inset: 10px 8px;
	border: 1px solid rgba(255, 255, 255, 0.38);
	content: '';
	pointer-events: none;
}

.failure-book:hover,
.failure-book:focus-visible,
.failure-book.is-selected {
	transform: translateY(-12px) rotate(-2deg);
	box-shadow: inset -8px 0 rgba(0, 0, 0, 0.12), 8px 12px 14px rgba(54, 30, 20, 0.24);
	outline: none;
}

.book-blue {
	background: #315b82;
}

.book-rust {
	height: 162px;
	background: #a94f3d;
}

.book-green {
	height: 190px;
	background: #56745c;
}

.book-gold {
	height: 168px;
	background: #ad7b32;
}

.failure-reading-panel {
	align-self: center;
	min-height: 170px;
	padding: 24px;
	border: 1px solid rgba(255, 248, 229, 0.55);
	background: rgba(255, 250, 236, 0.94);
	box-shadow: 0 12px 20px rgba(62, 36, 24, 0.16);
}

.failure-reading-panel h3 {
	margin-bottom: 10px;
	font-size: 1.85rem;
}

.failure-reading-panel p:last-child {
	margin: 0;
	color: var(--muted);
	line-height: 1.55;
}

.journey-section {
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
	padding: 0 0 64px;
}

.journey-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
}

.journey-header h2 {
	margin-bottom: 10px;
	font-size: clamp(2rem, 4vw, 3.4rem);
}

.globe-hint {
	margin: 0 0 10px;
	color: var(--muted);
	font-family: Arial, sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.globe-hint span {
	display: inline-block;
	margin-right: 6px;
	color: var(--blue);
	font-size: 1.2rem;
}

.globe-explorer {
	display: grid;
	grid-template-columns: minmax(300px, 1.15fr) minmax(260px, 0.85fr);
	min-height: 470px;
	overflow: hidden;
	border: 1px solid #34435c;
	border-radius: 12px;
	background: #101a31;
	box-shadow: 0 24px 50px rgba(31, 41, 55, 0.2);
}

.globe-stage {
	display: grid;
	place-items: center;
	min-height: 470px;
	background: radial-gradient(circle at 50% 45%, #294f79 0%, #172b4b 44%, #101a31 75%);
}

.globe {
	position: relative;
	width: min(370px, 78vw);
	aspect-ratio: 1;
	overflow: hidden;
	border: 4px solid rgba(178, 221, 255, 0.8);
	border-radius: 50%;
	background: #3685aa;
	box-shadow: inset -34px -24px 55px rgba(5, 22, 47, 0.7), inset 18px 12px 34px rgba(218, 247, 255, 0.23), 0 0 0 14px rgba(144, 208, 240, 0.08), 0 24px 60px rgba(0, 0, 0, 0.35);
	cursor: grab;
	touch-action: none;
	user-select: none;
}

.globe:focus-visible {
	outline: 4px solid #f8d57a;
	outline-offset: 6px;
}

.globe.is-dragging {
	cursor: grabbing;
}

.globe::before,
.globe::after {
	position: absolute;
	inset: -10%;
	border: 1px solid rgba(217, 245, 255, 0.32);
	border-radius: 50%;
	content: '';
	pointer-events: none;
}

.globe::before {
	transform: scaleX(0.34);
}

.globe::after {
	inset: 10% -10%;
	transform: scaleY(0.28);
}

.globe-map {
	position: absolute;
	top: 0;
	left: 50%;
	width: 760px;
	height: 100%;
	background: repeating-linear-gradient(90deg, transparent 0 94px, rgba(209, 244, 255, 0.2) 95px 96px), repeating-linear-gradient(0deg, transparent 0 76px, rgba(209, 244, 255, 0.15) 77px 78px);
	transform: translateX(-50%);
	transition: transform 120ms ease-out;
}

.continent {
	position: absolute;
	background: #79b886;
	filter: drop-shadow(3px 4px 0 rgba(17, 72, 76, 0.2));
	transform: rotate(-8deg);
}

.continent-north-america {
	top: 24%;
	left: 16%;
	width: 148px;
	height: 92px;
	clip-path: polygon(8% 12%, 35% 0, 56% 10%, 82% 7%, 100% 28%, 83% 48%, 69% 48%, 62% 78%, 48% 69%, 39% 100%, 25% 73%, 8% 69%, 17% 43%, 0 31%);
}

.continent-south-america {
	top: 53%;
	left: 32%;
	width: 68px;
	height: 125px;
	clip-path: polygon(45% 0, 80% 17%, 68% 38%, 85% 57%, 67% 78%, 48% 100%, 26% 76%, 30% 57%, 7% 38%, 24% 15%);
}

.continent-europe {
	top: 25%;
	left: 50%;
	width: 75px;
	height: 55px;
	clip-path: polygon(0 35%, 18% 8%, 43% 14%, 57% 0, 72% 22%, 100% 27%, 80% 54%, 91% 78%, 54% 70%, 36% 100%, 24% 65%);
}

.continent-africa {
	top: 38%;
	left: 51%;
	width: 105px;
	height: 145px;
	clip-path: polygon(25% 0, 61% 12%, 78% 32%, 100% 46%, 78% 67%, 60% 100%, 34% 82%, 22% 58%, 0 43%, 17% 23%);
}

.continent-asia {
	top: 22%;
	left: 60%;
	width: 190px;
	height: 110px;
	clip-path: polygon(0 24%, 17% 0, 39% 10%, 55% 2%, 71% 18%, 100% 22%, 88% 49%, 73% 44%, 67% 73%, 43% 62%, 27% 91%, 15% 60%, 0 70%);
}

.continent-australia {
	top: 65%;
	left: 74%;
	width: 92px;
	height: 58px;
	clip-path: polygon(0 35%, 18% 7%, 61% 0, 100% 27%, 88% 75%, 57% 100%, 25% 81%);
}

.location-dot {
	position: absolute;
	width: 12px;
	height: 12px;
	border: 3px solid #fff8dc;
	border-radius: 50%;
	background: #f06e5b;
	box-shadow: 0 0 0 5px rgba(240, 110, 91, 0.25), 0 2px 10px rgba(0, 0, 0, 0.35);
	transform: translate(-50%, -50%);
}

.location-new-york { top: 36%; left: 37%; }
.location-london { top: 32%; left: 57%; }
.location-tokyo { top: 36%; left: 87%; }
.location-sydney { top: 73%; left: 87%; }

.destination-panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 44px;
	color: #ffffff;
	background: rgba(9, 17, 36, 0.62);
}

.destination-panel .eyebrow {
	color: #f8d57a;
}

.destination-details {
	min-height: 170px;
}

.destination-number {
	color: #8ccde7;
	font-family: Arial, sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
}

.destination-details h3 {
	margin: 12px 0 10px;
	font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.destination-details p {
	max-width: 300px;
	margin: 0;
	color: #cbd9ec;
	line-height: 1.6;
}

.destination-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 22px;
}

.destination-button {
	margin: 0;
	padding: 9px 12px;
	border: 1px solid rgba(185, 216, 255, 0.35);
	color: #d5e1f5;
	background: transparent;
	font-size: 0.78rem;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.destination-button:hover,
.destination-button.is-selected {
	border-color: #f8d57a;
	color: #101a31;
	background: #f8d57a;
}

.about-header {
	margin-bottom: 24px;
}

.about-intro {
	max-width: 760px;
	margin: 0;
	color: var(--muted);
	line-height: 1.8;
	font-size: 1.05rem;
}

.crafting-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	margin-top: 32px;
}

.crafting-table-wrapper {
	position: relative;
	display: inline-block;
	max-width: 560px;
	width: min(100%, 560px);
}

.crafting-table {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 18px 44px rgba(17, 24, 44, 0.12);
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
}

.crafting-table-wrapper .recipe-book-button {
	position: absolute;
	top: 20%;
	left: 2.5%;
	z-index: 3;
	width: 12%;
	height: 11%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
}

.crafting-table-wrapper .recipe-book-button:hover,
.crafting-table-wrapper .recipe-book-button:focus-visible {
	border: 2px solid #f4c95d;
	background: rgba(244, 201, 93, 0.18);
	box-shadow: none;
	outline: 2px solid #11182c;
}

.recipe-dialog {
	width: min(900px, calc(100% - 32px));
	max-width: none;
	max-height: calc(100% - 32px);
	padding: 24px;
	border: 4px solid #11182c;
	border-radius: 0;
	background: #fffdf1;
	color: #11182c;
	box-shadow: 8px 8px 0 #11182c;
	overflow: auto;
}

.recipe-dialog::backdrop {
	background: rgba(7, 12, 25, 0.72);
}

.recipe-dialog-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.recipe-dialog-header h2 {
	margin: 0;
}

.recipe-dialog-header .recipe-dialog-close {
	flex: 0 0 auto;
	margin: 0;
}

.recipe-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.recipe-list figure {
	margin: 0;
	padding: 12px;
	border: 2px solid #263250;
	background: #ffffff;
	text-align: center;
}

.recipe-list img {
	display: block;
	width: 100%;
	max-height: 48vh;
	object-fit: contain;
	image-rendering: pixelated;
}

.recipe-list figcaption {
	margin-top: 10px;
	font-weight: 700;
}

.crafting-grid,
.crafting-cell,
.crafting-result,
.inventory-slot {
	position: absolute;
}

.crafting-grid {
	top: 9.7%;
	left: 16.4%;
	display: grid;
	width: 31.1%;
	height: 33%;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, 1fr);
}

.crafting-cell {
	position: relative;
	display: grid;
	min-width: 0;
	min-height: 0;
	place-items: center;
	pointer-events: auto;
}

.crafting-table-wrapper .crafting-result {
	top: 18%;
	left: 68%;
	z-index: 2;
	display: grid;
	width: 15%;
	height: 16%;
	place-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	box-sizing: border-box;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	color: inherit;
	text-transform: none;
	cursor: pointer;
	transition: transform 140ms ease, filter 140ms ease;
}

.crafting-table-wrapper .crafting-result[hidden] {
	display: none;
}

.has-recipe .crafting-result:not([hidden]) {
	animation: sword-pop 260ms cubic-bezier(0.2, 0.8, 0.2, 1.2);
}

@keyframes sword-pop {
	from {
		opacity: 0;
		transform: scale(0.45);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

.crafting-result img {
	width: 82%;
	height: 82%;
	object-fit: contain;
	image-rendering: pixelated;
}

.crafting-table-wrapper .crafting-result:hover,
.crafting-table-wrapper .crafting-result:focus-visible {
	transform: translateY(-2px) scale(1.04);
	filter: brightness(1.06);
	background: transparent;
	color: inherit;
	box-shadow: none;
}

.crafting-inventory {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.inventory-grid,
.hotbar {
	position: absolute;
	left: 4%;
	display: grid;
	width: 92%;
	grid-template-columns: repeat(9, minmax(0, 1fr));
	pointer-events: none;
}

.inventory-grid {
	top: 50.5%;
	height: 32%;
	grid-template-rows: repeat(3, minmax(0, 1fr));
}

.hotbar {
	top: 85.5%;
	height: 10.5%;
}

.inventory-slot {
	position: relative;
	display: grid;
	place-items: center;
	pointer-events: auto;
}

.inventory-slot img {
	width: 78%;
	height: 78%;
	object-fit: contain;
	image-rendering: pixelated;
}

.inventory-item {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	pointer-events: auto;
	touch-action: none;
	user-select: none;
	cursor: grab;
}

.inventory-item:active {
	cursor: grabbing;
}

.crafting-cell .inventory-item {
	width: 82%;
	height: 82%;
}

.inventory-item img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	image-rendering: pixelated;
	pointer-events: none;
}

.inventory-item.is-dragging {
	opacity: 0.25;
}

.crafting-drag-preview {
	position: fixed;
	z-index: 1000;
	width: 42px;
	height: 42px;
	transform: translate(-50%, -50%);
	pointer-events: none;
	opacity: 0.9;
}

.crafting-drag-preview img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	image-rendering: pixelated;
}

.inventory-item-count {
	position: absolute;
	right: 2px;
	bottom: 0;
	color: white;
	font-size: clamp(0.55rem, 2vw, 0.85rem);
	font-weight: 700;
	text-shadow: 1px 1px 2px #111;
}

.crafting-output {
	max-width: 560px;
	width: 100%;
	padding: 18px 20px;
	border: 3px solid #263250;
	background: #fff9df;
	box-shadow: 6px 6px 0 #11182c;
	text-align: center;
}

.crafting-output[hidden] {
	display: none;
}

.crafting-output h2 {
	margin: 0;
	font-size: 1.35rem;
}

.crafting-output p {
	margin: 0;
	color: var(--muted);
	line-height: 1.7;
}

.pointer-note {
	position: fixed;
	z-index: 20;
	padding: 10px 14px;
	border: 3px solid #11182c;
	background: #f4c95d;
	color: #11182c;
	box-shadow: 4px 4px 0 #11182c;
	font-family: 'Courier New', Courier, monospace;
	font-size: 0.82rem;
	font-weight: 700;
	pointer-events: none;
	animation: pointer-note-pop 180ms steps(3, end) both;
}

.pointer-note[hidden] {
	display: none;
}

@keyframes pointer-note-pop {
	from {
		opacity: 0;
		transform: scale(0.75);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.projects-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.project-card {
	position: relative;
	display: block;
	min-height: 240px;
	padding: 28px;
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	box-shadow: 0 12px 28px rgba(31, 41, 55, 0.08);
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card--in-progress {
	isolation: isolate;
}

.project-status-badge {
	position: absolute;
	top: 16px;
	right: 16px;
	padding: 6px 10px;
	border: 1px solid rgba(245, 158, 11, 0.9);
	border-radius: 999px;
	background: rgba(255, 245, 203, 0.92);
	color: #7c4a00;
	font-family: Arial, sans-serif;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transform: rotate(9deg);
	box-shadow: 0 6px 12px rgba(120, 113, 108, 0.12);
	z-index: 1;
}

.project-badge-image {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	background: #f3f6fb;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
	z-index: 1;
}

.project-hover-image {
	position: absolute;
	top: -34px;
	right: -72px;
	width: 230px;
	height: 158px;
	border: 2px solid rgba(255, 255, 255, 0.95);
	border-radius: 8px;
	background: #f3f6fb;
	box-shadow: 0 18px 34px rgba(15, 23, 42, 0.28);
	opacity: 0;
	object-fit: cover;
	transform: translateY(10px) scale(0.82);
	transition: opacity 180ms ease, transform 180ms ease;
	z-index: 3;
}

.project-card--hover-preview {
	overflow: visible;
}

.project-card:hover .project-hover-image,
.project-card:focus-visible .project-hover-image {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.project-card:hover,
.project-card:focus-visible {
	transform: translateY(-8px) scale(1.02);
	border-color: var(--blue);
	box-shadow: 0 20px 40px rgba(37, 99, 235, 0.18);
	outline: none;
}


.project-tech {
	display: block;
	margin-top: 10px;
	color: var(--blue);
	font-family: Arial, sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
}

.project-card h2 {
	margin-bottom: 0;
	font-size: 1.8rem;
}

.project-card p {
	max-height: 0;
	margin: 0;
	color: var(--muted);
	line-height: 1.5;
	opacity: 0;
	overflow: hidden;
	transform: translateY(8px);
	transition: max-height 180ms ease, opacity 180ms ease, transform 180ms ease, margin 180ms ease;
}

.project-card:hover p,
.project-card:focus-visible p {
	max-height: 80px;
	margin-top: 12px;
	opacity: 1;
	transform: translateY(0);
}

.resume-link {
	flex: 0 0 auto;
	padding: 13px 18px;
	color: #ffffff;
	background: var(--blue);
	border-radius: 6px;
	font-family: Arial, sans-serif;
	font-weight: 700;
	text-decoration: none;
}

.resume-link:hover {
	background: #1d4ed8;
}

.contact-grid {
	display: grid;
	grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
	gap: 24px;
	align-items: start;
}

.contact-stack {
	display: grid;
	gap: 24px;
}

.panel {
	padding: 28px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 16px 40px rgba(31, 41, 55, 0.08);
}

.social-panel {
	padding-bottom: 18px;
}

.social-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 16px;
}

.social-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 110px;
	padding: 12px 10px;
	color: var(--ink);
	background: #f4f7ff;
	border: 1px solid var(--line);
	border-radius: 10px;
	text-decoration: none;
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
	transform: translateY(-3px);
	border-color: var(--blue);
	box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
	outline: none;
}

.social-link svg {
	width: 34px;
	height: 34px;
	fill: currentColor;
}

.social-link span {
	font-family: Arial, sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.survey-panel {
	grid-row: span 2;
}

.panel h2 {
	margin-bottom: 8px;
	font-size: 1.8rem;
}

.panel p {
	margin-top: 0;
	color: var(--muted);
	line-height: 1.5;
}

fieldset {
	border: 0;
	padding: 0;
}

legend {
	margin-bottom: 14px;
	font-weight: 700;
}

label {
	display: block;
	margin: 16px 0 6px;
	font-family: Arial, sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
}

input,
select,
textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--line);
	border-radius: 4px;
	color: var(--ink);
	background: #ffffff;
	font: inherit;
}

textarea {
	min-height: 120px;
	resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
	outline: 3px solid rgba(37, 99, 235, 0.2);
	border-color: var(--blue);
}

button {
	margin-top: 20px;
	padding: 12px 18px;
	border: 0;
	border-radius: 4px;
	color: #ffffff;
	background: var(--blue);
	font-family: Arial, sans-serif;
	font-weight: 700;
	cursor: pointer;
}

button:hover {
	background: #1d4ed8;
}

@media (max-width: 720px) {
	main {
		padding-top: 32px;
	}

	.page-header {
		flex-direction: column;
	}

	.contact-grid {
		grid-template-columns: 1fr;
	}

	.projects-grid {
		grid-template-columns: 1fr;
	}

	.failure-shelf {
		padding: 22px 16px;
	}

	.failure-shelf-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.failure-shelf-content {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 18px 12px 16px;
	}

	.book-list {
		gap: 6px;
		padding-right: 0;
		padding-left: 0;
	}

	.failure-book {
		width: 23%;
		padding: 14px 8px;
		font-size: 0.76rem;
	}

	.project-hover-image {
		right: -28px;
		width: 190px;
		height: 132px;
	}

	.journey-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.globe-explorer {
		grid-template-columns: 1fr;
	}

	.globe-stage {
		min-height: 390px;
	}

	.destination-panel {
		min-height: 360px;
		padding: 32px;
	}

	.about-columns {
		grid-template-columns: 1fr;
	}

	.experience-card {
		width: 145px;
	}

	.experience-card-top-left,
	.experience-card-top-right {
		top: 58px;
	}

	.experience-card-bottom-left,
	.experience-card-bottom-right {
		bottom: 78px;
	}

	.survey-panel {
		grid-row: auto;
	}
}

:root {
	--ink: #182238;
	--muted: #58647a;
	--paper: #fff9df;
	--blue: #3155d9;
	--line: #b9c4db;
	--pixel-shadow: 6px 6px 0 rgba(24, 34, 56, 0.2);
}

body {
	color: var(--ink);
	background-color: #f4edcf;
	background-image: linear-gradient(rgba(49, 85, 217, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(49, 85, 217, 0.06) 1px, transparent 1px);
	background-size: 24px 24px;
	font-family: 'Courier New', Courier, monospace;
}

nav {
	gap: 8px;
	padding: 14px;
	border-bottom: 6px solid #11182c;
	background: #202b52;
	box-shadow: 0 6px 0 rgba(17, 24, 44, 0.28);
}

nav a,
button,
.resume-link {
	border: 3px solid #11182c;
	border-radius: 0;
	box-shadow: 4px 4px 0 #11182c;
	font-family: 'Courier New', Courier, monospace;
	font-weight: 700;
	text-transform: uppercase;
}

nav a {
	padding: 9px 13px;
	background: #4c70e8;
}

nav a:hover,
nav a:focus-visible,
button:hover {
	background: #f4c95d;
	color: #11182c;
}

main {
	padding-top: 44px;
}

h1,
h2,
h3,
.eyebrow,
.project-tech,
.shelf-note,
.space-label,
.game-status,
.destination-number {
	font-family: 'Courier New', Courier, monospace;
	font-weight: 700;
}

h1,
h2,
h3 {
	text-shadow: 3px 3px 0 #f4c95d;
}

.eyebrow {
	color: #c04c68;
	letter-spacing: 0.08em;
}

.lede {
	font-family: 'Courier New', Courier, monospace;
	font-size: 1rem;
	line-height: 1.7;
}

.home-panel,
.about-card,
.project-card,
.panel,
.failure-shelf,
.failure-reading-panel {
	border: 3px solid #263250;
	border-radius: 0;
	box-shadow: var(--pixel-shadow);
}

.home-panel,
.about-card,
.project-card,
.panel {
	background: #fff9df;
}

.home-photo {
	border-radius: 0;
}

.project-card {
	box-shadow: var(--pixel-shadow);
}

.project-card:hover,
.project-card:focus-visible {
	border-color: #c04c68;
	box-shadow: 8px 8px 0 #c04c68;
}

.project-status-badge,
.project-badge-image,
.project-hover-image {
	box-shadow: 4px 4px 0 rgba(17, 24, 44, 0.35);
}

button {
	background: var(--blue);
}

input,
select,
textarea {
	border: 3px solid #263250;
	border-radius: 0;
	background: #fffdf1;
	font-family: 'Courier New', Courier, monospace;
}

input:focus,
select:focus,
textarea:focus {
	outline: 4px solid #f4c95d;
	border-color: #c04c68;
}

.failure-shelf {
	background: #fff9df;
}

.failure-shelf-content {
	border: 3px solid #263250;
	border-bottom: 12px solid #50352c;
	box-shadow: 6px 6px 0 rgba(24, 34, 56, 0.25);
}

.failure-book {
	border: 3px solid #263250;
	border-radius: 0;
	box-shadow: 4px 4px 0 rgba(54, 30, 20, 0.35);
	font-family: 'Courier New', Courier, monospace;
	font-weight: 700;
}

.failure-book:hover,
.failure-book:focus-visible,
.failure-book.is-selected {
	box-shadow: 6px 8px 0 rgba(54, 30, 20, 0.4);
}

.failure-reading-panel {
	background: #fffdf1;
}

.experience-game {
	border: 4px solid #11182c;
	border-radius: 0;
	box-shadow: 8px 8px 0 #11182c;
}

.experience-card,
.unlock-card {
	border: 3px solid #b9d8ff;
	border-radius: 0;
	box-shadow: 5px 5px 0 rgba(5, 12, 30, 0.45);
}

.drive-button,
.destination-button,
.social-link {
	border-radius: 0;
}

.social-link {
	border: 3px solid var(--line);
	box-shadow: 4px 4px 0 rgba(24, 34, 56, 0.16);
}

.social-link:hover,
.social-link:focus-visible {
	border-color: #c04c68;
	box-shadow: 6px 6px 0 rgba(192, 76, 104, 0.3);
}

.projects-layout {
	display: grid;
	grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.5fr);
	align-items: start;
	gap: 20px;
}

.website-stack {
	padding: 20px;
	border: 3px solid #263250;
	background: #fff9df;
	box-shadow: var(--pixel-shadow);
}

.website-stack h2 {
	margin-bottom: 12px;
	font-size: 1.35rem;
}

.website-stack p {
	margin: 0 0 12px;
	color: var(--muted);
}

.website-stack ul {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.website-stack li {
	padding: 8px 10px;
	border: 2px solid #263250;
	background: #fffdf1;
	font-size: 0.9rem;
	font-weight: 700;
}

.projects-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
}

.project-card {
	min-height: 0;
	padding: 0;
	border: 3px solid #263250;
	border-radius: 0;
	background: #fff9df;
	box-shadow: 5px 5px 0 rgba(24, 34, 56, 0.18);
	overflow: hidden;
	transform: none;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.project-card:hover,
.project-card:focus-within,
.project-card.is-open {
	border-color: #c04c68;
	box-shadow: 7px 7px 0 rgba(192, 76, 104, 0.35);
	transform: none;
}

.project-toggle {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 64px;
	margin: 0;
	padding: 16px 20px;
	border: 0;
	border-radius: 0;
	color: #182238;
	background: #fff9df;
	box-shadow: none;
	font-family: 'Courier New', Courier, monospace;
	text-align: left;
	text-transform: none;
}

.project-toggle:hover,
.project-toggle:focus-visible {
	color: #182238;
	background: #f4edcf;
	outline: 3px solid #c04c68;
	outline-offset: -5px;
}

.project-toggle-title {
	font-size: 1.25rem;
	font-weight: 700;
}

.project-status-badge {
	position: static;
	margin-left: auto;
	padding: 5px 8px;
	border: 2px solid #7c4a00;
	border-radius: 0;
	box-shadow: 2px 2px 0 rgba(17, 24, 44, 0.25);
	font-size: 0.64rem;
	transform: none;
}

.project-toggle-icon {
	margin-left: auto;
	font-size: 1.5rem;
	line-height: 1;
	transition: transform 160ms ease;
}

.project-status-badge + .project-toggle-icon {
	margin-left: 0;
}

.project-details {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 240ms ease;
}

.project-card.is-hovered .project-details,
.project-card.is-open .project-details {
	grid-template-rows: var(--project-details-height, 1fr);
}

.project-details-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 0;
	padding: 0 20px;
	border-top: 0 solid #b9c4db;
	background: #fffdf1;
	overflow: hidden;
	transition: padding 240ms ease, border-width 240ms ease;
}

.project-card.is-hovered .project-details-inner,
.project-card.is-open .project-details-inner {
	padding: 20px;
	border-top-width: 2px;
}

.project-detail-image {
	display: block;
	flex: 0 0 220px;
	width: 220px;
	max-height: 150px;
	border: 3px solid #263250;
	background: #f4edcf;
	box-shadow: 4px 4px 0 rgba(24, 34, 56, 0.18);
	object-fit: cover;
}

.project-detail-image--bill {
	position: absolute;
	right: 20px;
	bottom: 20px;
	width: 112px;
	height: 88px;
	max-height: 88px;
	border: 0;
	background: transparent;
	box-shadow: none;
	object-fit: contain;
}

.project-card--bill .project-details-inner {
	position: relative;
	padding-right: 156px;
}

.project-copy {
	min-width: 0;
}

.project-copy .project-tech {
	margin-top: 0;
	font-size: 0.82rem;
}

.project-copy p {
	max-height: none;
	margin: 10px 0 0;
	color: var(--muted);
	line-height: 1.65;
	opacity: 1;
	transform: none;
}

.project-link-button {
	display: inline-block;
	margin-top: 16px;
	padding: 9px 12px;
	border: 3px solid #11182c;
	color: #ffffff;
	background: #3155d9;
	box-shadow: 4px 4px 0 #11182c;
	font-family: 'Courier New', Courier, monospace;
	font-size: 0.76rem;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
}

.project-link-button:hover,
.project-link-button:focus-visible {
	color: #11182c;
	background: #f4c95d;
	outline: 3px solid #c04c68;
	outline-offset: 2px;
}

.project-card.is-hovered .project-toggle-icon,
.project-card.is-open .project-toggle-icon {
	transform: rotate(45deg);
}

@media (max-width: 720px) {
	.projects-layout {
		grid-template-columns: 1fr;
	}

	.project-details-inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 16px;
	}

	.project-detail-image {
		flex-basis: auto;
		width: min(100%, 320px);
		max-height: 190px;
	}

	.project-card--bill .project-details-inner {
		display: block;
		padding-right: 116px;
	}

	.project-detail-image--bill {
		right: 12px;
		bottom: 16px;
		width: 88px;
		height: 72px;
	}

	.project-status-badge {
		font-size: 0.55rem;
	}
}