:root {
	--bg: #07111f;
	--bg-deep: #030914;
	--panel: rgba(8, 22, 39, 0.82);
	--panel-strong: rgba(12, 30, 52, 0.96);
	--panel-soft: rgba(115, 196, 255, 0.08);
	--line: rgba(163, 212, 255, 0.16);
	--text: #f4f8fc;
	--muted: #aab8c9;
	--gold: #ffbf47;
	--gold-deep: #e38a1f;
	--cyan: #61d7ff;
	--red: #ff6a5f;
	--green: #93f59d;
	--shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
	--radius-xl: 32px;
	--radius-lg: 24px;
	--radius-md: 18px;
	--radius-sm: 14px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: 'Sora', sans-serif;
	background:
		radial-gradient(circle at top left, rgba(255, 191, 71, 0.2), transparent 28%),
		radial-gradient(circle at 85% 18%, rgba(97, 215, 255, 0.16), transparent 24%),
		linear-gradient(180deg, #07111f 0%, #050b15 45%, #030814 100%);
	color: var(--text);
	min-height: 100vh;
	line-height: 1.6;
	overflow-x: hidden;
}

body::before,
body::after {
	content: '';
	position: fixed;
	inset: auto;
	pointer-events: none;
	z-index: -1;
	filter: blur(12px);
	opacity: 0.55;
}

body::before {
	top: 5rem;
	right: -6rem;
	width: 18rem;
	height: 18rem;
	background: rgba(255, 106, 95, 0.14);
	border-radius: 50%;
	animation: drift 14s ease-in-out infinite;
}

body::after {
	left: -4rem;
	bottom: 6rem;
	width: 16rem;
	height: 16rem;
	background: rgba(97, 215, 255, 0.12);
	border-radius: 50%;
	animation: drift 18s ease-in-out infinite reverse;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
}

button {
	font: inherit;
}

.page-shell {
	width: min(1240px, calc(100vw - 2rem));
	margin: 0 auto;
	padding: 1rem 0 2rem;
}

.site-header {
	position: sticky;
	top: 1rem;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1rem 1.5rem;
	margin-bottom: 2rem;
	backdrop-filter: blur(18px);
	background: rgba(3, 12, 24, 0.7);
	border: 1px solid var(--line);
	border-radius: 999px;
	box-shadow: var(--shadow);
	animation: rise 0.8s ease-out;
}

.brand-mark {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	flex-shrink: 0;
}

.brand-kicker,
.eyebrow,
.game-label,
.footer-label,
.version-pill {
	font-family: 'Chakra Petch', sans-serif;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.brand-kicker {
	color: var(--muted);
	font-size: 0.72rem;
}

.brand-name {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--text);
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: 1.4rem;
	list-style: none;
}

.site-nav a {
	color: var(--muted);
	font-size: 0.94rem;
	transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
	color: var(--text);
	transform: translateY(-1px);
}

.header-status {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.version-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1rem;
	background: linear-gradient(135deg, rgba(255, 191, 71, 0.16), rgba(255, 191, 71, 0.03));
	border: 1px solid rgba(255, 191, 71, 0.25);
	border-radius: 999px;
	color: #ffd989;
	font-size: 0.74rem;
}

.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: rgba(11, 23, 39, 0.88);
	color: var(--text);
	cursor: pointer;
}

main {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.hero-section,
.tabbed-section,
.games-section,
.story-section,
.media-section,
.site-footer {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
	backdrop-filter: blur(18px);
	animation: rise 0.8s ease-out;
}

.hero-section {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
	gap: 2rem;
	padding: 2.2rem;
	position: relative;
	overflow: hidden;
}

.hero-section::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, transparent 35%, rgba(255, 191, 71, 0.08) 100%);
	pointer-events: none;
}

.hero-copy,
.hero-panel,
.footer-connect-card {
	position: relative;
	z-index: 1;
}

.eyebrow {
	color: var(--cyan);
	font-size: 0.82rem;
	margin-bottom: 0.9rem;
}

.hero-copy h1,
.section-heading h2,
.site-footer h2 {
	font-family: 'Chakra Petch', sans-serif;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.hero-copy h1 {
	font-size: clamp(2.8rem, 5vw, 5.2rem);
	max-width: 11ch;
	margin-bottom: 1.3rem;
}

.hero-text {
	max-width: 58ch;
	color: var(--muted);
	font-size: 1.04rem;
	margin-bottom: 1.8rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.8rem;
}

.btn-primary,
.btn-secondary,
.btn-discord {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.95rem 1.35rem;
	border-radius: 999px;
	font-weight: 600;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
	background: linear-gradient(135deg, var(--gold), var(--gold-deep));
	color: #1d1200;
	box-shadow: 0 12px 28px rgba(227, 138, 31, 0.28);
}

.btn-secondary {
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.02);
	color: var(--text);
}

.btn-discord {
	border: 1px solid rgba(127, 146, 255, 0.34);
	background: linear-gradient(135deg, rgba(88, 101, 242, 0.24), rgba(127, 146, 255, 0.14));
	color: #eef1ff;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-discord:hover,
.server-address:hover {
	transform: translateY(-2px);
}

.server-badges {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.server-badge,
.hero-portrait-card,
.hero-stats-grid article,
.tab-panel,
.game-card,
.video-card,
.footer-connect-card {
	background: var(--panel-strong);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}

.server-badge {
	padding: 1rem 1.1rem;
	min-height: 6.5rem;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
}

.server-badge span {
	display: block;
	font-size: 0.75rem;
	color: var(--muted);
	margin-bottom: 0.4rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.server-badge strong {
	font-size: 1.02rem;
	line-height: 1.4;
}

.server-badge.highlight {
	background: linear-gradient(135deg, rgba(255, 191, 71, 0.22), rgba(97, 215, 255, 0.1));
	border-color: rgba(255, 191, 71, 0.34);
}

.hero-panel {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hero-portrait-card {
	padding: 1rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 210px;
}

.profile-pic {
	width: 140px;
	height: 140px;
	object-fit: cover;
	border-radius: 28px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.portrait-copy p {
	color: var(--gold);
	font-size: 0.86rem;
	margin-bottom: 0.4rem;
}

.portrait-copy h2 {
	font-family: 'Chakra Petch', sans-serif;
	font-size: 1.65rem;
	line-height: 1.15;
}

.hero-stats-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.hero-stats-grid article {
	padding: 1.1rem;
	background: linear-gradient(180deg, rgba(97, 215, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.hero-stats-grid span {
	display: block;
	font-family: 'Chakra Petch', sans-serif;
	font-size: 2rem;
	color: var(--cyan);
	margin-bottom: 0.45rem;
}

.hero-stats-grid p,
.tab-panel p,
.story-layout p,
.video-copy p,
.footer-meta,
.screenshot-copy p,
.gallery-card figcaption,
.placeholder-shot span {
	color: var(--muted);
	font-size: 0.96rem;
}

.tabbed-section,
.games-section,
.story-section,
.media-section,
.screenshots-section,
.site-footer {
	padding: 1.7rem;
}

.tab-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-bottom: 1rem;
}

.tab-button {
	padding: 0.8rem 1.05rem;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.03);
	color: var(--muted);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab-button.active {
	background: linear-gradient(135deg, rgba(97, 215, 255, 0.2), rgba(255, 191, 71, 0.12));
	color: var(--text);
	border-color: rgba(97, 215, 255, 0.4);
}

.tab-panels {
	position: relative;
	min-height: 170px;
}

.tab-panel {
	display: none;
	padding: 1.35rem;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(97, 215, 255, 0.035));
	animation: fadeUp 0.35s ease;
}

.tab-panel.active {
	display: block;
}

.tab-panel h2 {
	font-family: 'Chakra Petch', sans-serif;
	font-size: 1.8rem;
	margin-bottom: 0.7rem;
}

.section-heading {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin-bottom: 1.4rem;
}

.section-heading h2,
.site-footer h2 {
	font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-heading.narrow {
	max-width: 34rem;
}

.game-grid,
.video-grid,
.story-layout,
.screenshot-showcase,
.mariokart-gallery,
.placeholder-grid,
.footer-connect-grid {
	display: grid;
	gap: 1rem;
}

.game-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-card {
	padding: 1.35rem;
	position: relative;
	overflow: hidden;
	min-height: 305px;
}

.game-card::after {
	content: '';
	position: absolute;
	inset: auto -20% -35% auto;
	width: 11rem;
	height: 11rem;
	border-radius: 50%;
	filter: blur(6px);
	opacity: 0.4;
}

.accent-red::after {
	background: rgba(255, 106, 95, 0.32);
}

.accent-gold::after {
	background: rgba(255, 191, 71, 0.32);
}

.accent-cyan::after {
	background: rgba(97, 215, 255, 0.28);
}

.game-label {
	display: inline-block;
	padding: 0.35rem 0.6rem;
	border-radius: 999px;
	font-size: 0.72rem;
	margin-bottom: 1rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--line);
}

.game-card h3,
.video-copy h3 {
	font-family: 'Chakra Petch', sans-serif;
	font-size: 1.7rem;
	margin-bottom: 0.65rem;
	position: relative;
	z-index: 1;
}

.game-card p {
	color: var(--muted);
	position: relative;
	z-index: 1;
	margin-bottom: 1rem;
}

.game-card ul {
	list-style: none;
	display: grid;
	gap: 0.6rem;
	position: relative;
	z-index: 1;
}

.game-card li {
	padding-left: 1rem;
	position: relative;
	color: #d7e4f2;
	font-size: 0.95rem;
}

.game-card li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.65rem;
	width: 0.42rem;
	height: 0.42rem;
	border-radius: 50%;
	background: var(--gold);
}

.story-layout {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-layout p {
	padding: 1.2rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, 0.02);
}

.video-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-card {
	overflow: hidden;
}

.screenshots-section {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
	backdrop-filter: blur(18px);
	animation: rise 0.8s ease-out;
}

.screenshot-showcase {
	grid-template-columns: 1.5fr 1fr;
	align-items: start;
}

.screenshot-block {
	padding: 1.35rem;
	background: var(--panel-strong);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	min-height: 100%;
}

.screenshot-copy {
	margin-bottom: 1rem;
	max-width: 42rem;
}

.screenshot-copy h3 {
	font-family: 'Chakra Petch', sans-serif;
	font-size: 1.85rem;
	line-height: 1.08;
	margin: 0.65rem 0;
}

.mariokart-gallery {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
}

.gallery-card {
	overflow: hidden;
	border-radius: var(--radius-md);
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.03);
}

.gallery-card-large {
	grid-column: span 2;
}

.gallery-card img {
	width: 100%;
	height: 100%;
	min-height: 220px;
	max-height: 310px;
	object-fit: cover;
}

.gallery-card figcaption {
	padding: 0.85rem 1rem;
	background: rgba(3, 10, 20, 0.76);
	border-top: 1px solid var(--line);
	font-size: 0.88rem;
	letter-spacing: 0.03em;
}

.screenshot-placeholder-block {
	background: linear-gradient(180deg, rgba(255, 106, 95, 0.08), rgba(255, 255, 255, 0.02));
}

.placeholder-grid {
	grid-template-columns: 1fr;
	min-height: 100%;
}

.placeholder-shot {
	min-height: 132px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-md);
	border: 1px dashed rgba(255, 255, 255, 0.18);
	background:
		linear-gradient(135deg, rgba(255, 106, 95, 0.09), rgba(97, 215, 255, 0.05)),
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 10px, rgba(255, 255, 255, 0.01) 10px 20px);
}

.placeholder-shot span {
	font-family: 'Chakra Petch', sans-serif;
	font-size: 0.95rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.video-frame {
	position: relative;
	aspect-ratio: 9 / 16;
	background: #02060d;
}

.video-frame.widescreen {
	aspect-ratio: 16 / 9;
}

.video-frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.video-copy {
	padding: 1.15rem;
}

.site-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	margin-top: 0.5rem;
	padding-bottom: 2rem;
}

.footer-connect-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	min-width: min(100%, 760px);
}

.footer-connect-card {
	padding: 1.3rem 1.4rem;
	background: linear-gradient(135deg, rgba(255, 191, 71, 0.16), rgba(97, 215, 255, 0.08));
}

.footer-discord-card {
	background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(127, 146, 255, 0.09));
}

.server-address {
	display: inline-block;
	font-family: 'Chakra Petch', sans-serif;
	font-size: clamp(1.4rem, 3vw, 2.25rem);
	margin: 0.2rem 0 0.5rem;
}

.discord-link {
	display: inline-block;
	font-family: 'Chakra Petch', sans-serif;
	font-size: clamp(1.05rem, 2vw, 1.45rem);
	margin: 0.2rem 0 0.65rem;
	color: #eef1ff;
	word-break: break-word;
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes drift {
	0%,
	100% {
		transform: translate3d(0, 0, 0);
	}
	50% {
		transform: translate3d(1rem, -1rem, 0);
	}
}

@media (max-width: 1080px) {
	.hero-section {
		grid-template-columns: 1fr;
	}

	.game-grid,
	.video-grid,
	.story-layout,
	.server-badges,
	.screenshot-showcase,
	.footer-connect-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-footer {
		flex-direction: column;
		align-items: stretch;
	}
}

@media (max-width: 760px) {
	.page-shell {
		width: min(100vw - 1rem, 100%);
		padding-top: 0.5rem;
	}

	.site-header {
		padding: 0.9rem 1rem;
		border-radius: 28px;
	}

	.site-nav {
		display: none;
		position: absolute;
		top: calc(100% + 0.7rem);
		left: 0;
		width: 100%;
		padding: 1rem;
		background: rgba(4, 12, 24, 0.96);
		border: 1px solid var(--line);
		border-radius: 24px;
	}

	.site-nav.active {
		display: block;
	}

	.site-nav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.version-pill {
		display: none;
	}

	.hero-section,
	.tabbed-section,
	.games-section,
	.story-section,
	.media-section,
	.site-footer {
		padding: 1.2rem;
		border-radius: 24px;
	}

	.hero-copy h1 {
		font-size: clamp(2.3rem, 12vw, 3.6rem);
	}

	.hero-portrait-card {
		flex-direction: column;
		align-items: flex-start;
	}

	.hero-stats-grid,
	.game-grid,
	.video-grid,
	.story-layout,
	.server-badges,
	.screenshot-showcase,
	.mariokart-gallery,
	.footer-connect-grid {
		grid-template-columns: 1fr;
	}

	.gallery-card-large {
		grid-column: span 1;
	}

	.tab-panels {
		min-height: 0;
	}

	.tab-panel h2,
	.game-card h3,
	.video-copy h3 {
		font-size: 1.45rem;
	}

	.footer-connect-card {
		min-width: 0;
	}

	.server-address {
		word-break: break-word;
	}

	.screenshot-copy h3 {
		font-size: 1.5rem;
	}
}
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
	header {
		padding: 0.5rem 20rem;
	}
	
}
/* Extra Extra Large devices, 4K */
@media only screen and (min-width: 2560px) {
	html {
		font-size: 30px;
	}
	main .skills-icons img {
		width: auto;
		height: 150px;
	}
	main .project-cards {
		font-size: 30px;
	}
	main .project-card:hover {
		transform: scale(1.05);
		cursor: pointer;
	}
}