:root {
--bg: #FAFAFA;
--bg-warm: #F5F0E8;
--bg-card: #FFFFFF;
--border: #2A2A2A;
--border-light: rgba(42,42,42,0.12);
--text: #1A1A1A;
--text-muted: #6B6B6B;
--accent: #E1C070;
--accent-light: #EDD3B2;
--accent-dark: #C9A84E;
--discord: #5865F2;
--discord-hover: #4752C4;
--radius: 6px;
--radius-lg: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
scroll-behavior: smooth;
background: var(--bg-warm);
}

body {
font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg-warm);
color: var(--text);
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
line-height: 1.6;
}

.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
white-space: nowrap;
border: 0;
}

.iso-grid {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
opacity: 0.08;
background-size: 40px 40px;
background-image:
linear-gradient(to right, var(--border-light) 1px, transparent 1px),
linear-gradient(to bottom, var(--border-light) 1px, transparent 1px);
}

#gate {
position: fixed;
inset: 0;
z-index: 9999;
background: var(--bg-warm);
display: flex;
align-items: center;
justify-content: center;
transition: opacity 1s ease, visibility 1s;
}

.gate-iso {
position: absolute;
inset: 0;
opacity: 0.08;
background-size: 40px 40px;
background-image:
linear-gradient(to right, var(--border-light) 1px, transparent 1px),
linear-gradient(to bottom, var(--border-light) 1px, transparent 1px);
}

.gate-inner {
position: relative;
z-index: 2;
display: flex;
flex-direction: column;
align-items: center;
gap: 28px;
}

.gate-logo {
width: 140px;
height: 140px;
object-fit: contain;
animation: float 5s ease-in-out infinite;
filter: drop-shadow(0 8px 24px rgba(225,192,112,0.25));
}

@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-12px); }
}

.gate-line {
width: 1px;
height: 40px;
background: linear-gradient(to bottom, transparent, var(--accent-dark), transparent);
}

#enter {
background: var(--accent);
color: var(--text);
border: 2px solid var(--border);
padding: 16px 44px;
font-family: inherit;
font-size: 13px;
font-weight: 700;
letter-spacing: 2px;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 4px 4px 0px var(--border);
position: relative;
}

#enter:hover {
background: var(--accent-dark);
transform: translate(-2px, -2px);
box-shadow: 6px 6px 0px var(--border);
}

#enter:active {
transform: translate(2px, 2px);
box-shadow: 2px 2px 0px var(--border);
}

.is-hidden { display: none !important; }

#app {
position: relative;
z-index: 1;
}

#app.show {
display: block;
animation: fadeUp 1.2s ease forwards;
}

@keyframes fadeUp {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}

nav {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 100;
padding: 0 24px;
background: rgba(245,240,232,0.85);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-bottom: 1px solid var(--border-light);
transition: transform 0.3s ease;
}

.nav-inner {
max-width: 960px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
height: 80px;
}

.nav-brand {
display: flex;
align-items: center;
text-decoration: none;
}

.nav-brand-img {
height: 64px;
width: auto;
object-fit: contain;
transform: translateY(4px); /* Slight adjustment for the character's feet */
}



.nav-cta {
display: flex;
align-items: center;
gap: 8px;
text-decoration: none;
color: var(--text);
font-size: 13px;
font-weight: 600;
padding: 8px 16px;
border: 2px solid var(--border);
background: var(--bg-card);
box-shadow: 3px 3px 0px var(--border);
transition: all 0.2s;
}

.nav-cta:hover {
transform: translate(-1px, -1px);
box-shadow: 4px 4px 0px var(--border);
background: var(--accent-light);
}

.hero {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 120px 24px 100px;
position: relative;
}

.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: radial-gradient(ellipse at 50% 30%, rgba(225,192,112,0.12) 0%, transparent 70%);
pointer-events: none;
}

.hero-content {
position: relative;
z-index: 2;
max-width: 680px;
}

.hero-tag {
display: inline-block;
font-size: 11px;
font-weight: 800;
letter-spacing: 4px;
color: var(--text);
margin-bottom: 32px;
background: var(--accent);
padding: 8px 20px;
border: 2px solid var(--border);
box-shadow: 3px 3px 0px var(--border);
}

.hero h1 {
font-size: clamp(34px, 5.5vw, 58px);
font-weight: 800;
line-height: 1.08;
color: var(--text);
margin-bottom: 28px;
letter-spacing: -1px;
}

.hero-sub {
font-size: 17px;
line-height: 1.75;
color: var(--text-muted);
max-width: 520px;
margin: 0 auto 40px;
}

.hero-actions {
display: flex;
gap: 14px;
justify-content: center;
flex-wrap: wrap;
}

.btn {
display: inline-flex;
align-items: center;
gap: 10px;
text-decoration: none;
font-family: inherit;
font-size: 14px;
font-weight: 700;
padding: 14px 28px;
transition: all 0.2s ease;
cursor: pointer;
border: 2px solid var(--border);
box-shadow: 4px 4px 0px var(--border);
}

.btn:active {
transform: translate(2px, 2px);
box-shadow: 2px 2px 0px var(--border);
}

.btn-primary {
background: var(--discord);
color: #fff;
}

.btn-primary:hover {
background: var(--discord-hover);
transform: translate(-2px, -2px);
box-shadow: 6px 6px 0px var(--border);
}

.btn-ghost {
background: var(--bg-card);
color: var(--text);
}

.btn-ghost:hover {
background: var(--accent-light);
transform: translate(-2px, -2px);
box-shadow: 6px 6px 0px var(--border);
}

.section {
padding: 120px 24px;
text-align: center;
position: relative;
z-index: 1;
}

.section-inner {
max-width: 640px;
margin: 0 auto;
background: var(--bg-card);
padding: 56px 48px;
border: 2px solid var(--border);
box-shadow: 8px 8px 0px var(--border-light);
}

.section-tag {
font-size: 11px;
font-weight: 800;
letter-spacing: 4px;
color: var(--text-muted);
margin-bottom: 16px;
text-transform: uppercase;
}

.section h2 {
font-size: clamp(26px, 3.5vw, 38px);
font-weight: 800;
color: var(--text);
margin-bottom: 20px;
letter-spacing: -0.5px;
line-height: 1.15;
}

.section-text {
font-size: 16px;
line-height: 1.8;
color: var(--text-muted);
}

.pillars {
padding: 20px 24px 120px;
position: relative;
z-index: 1;
}

.pillars-grid {
max-width: 860px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}

.pillar {
background: var(--bg-card);
border: 2px solid var(--border);
padding: 36px 28px;
transition: all 0.25s ease;
box-shadow: 5px 5px 0px var(--border-light);
position: relative;
}

.pillar::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 3px;
background: var(--accent);
transform: scaleX(0);
transform-origin: left;
transition: transform 0.4s ease;
}

.pillar:hover {
transform: translateY(-4px);
box-shadow: 5px 9px 0px var(--border-light);
}

.pillar:hover::after {
transform: scaleX(1);
}

.pillar-icon {
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
background: var(--accent-light);
border: 2px solid var(--border);
margin-bottom: 20px;
font-size: 18px;
color: var(--text);
box-shadow: 3px 3px 0px var(--border);
}

.pillar h3 {
font-size: 17px;
font-weight: 700;
margin-bottom: 10px;
}

.pillar p {
font-size: 14px;
line-height: 1.7;
color: var(--text-muted);
}

.nostalgia {
padding: 60px 24px 120px;
position: relative;
z-index: 1;
}

.nostalgia-inner {
max-width: 900px;
margin: 0 auto;
display: grid;
grid-template-columns: 1.2fr 1fr;
gap: 60px;
align-items: center;
background: var(--bg-card);
border: 2px solid var(--border);
padding: 60px 48px;
box-shadow: 8px 8px 0px var(--border-light);
}

.nostalgia-text h2 {
font-size: clamp(28px, 4vw, 42px);
font-weight: 800;
margin-bottom: 20px;
letter-spacing: -0.5px;
}

.nostalgia-text p {
font-size: 16px;
line-height: 1.8;
color: var(--text-muted);
margin-bottom: 16px;
}

.nostalgia-text p:last-child {
margin-bottom: 0;
color: var(--text);
font-weight: 600;
font-style: italic;
}

.pixel-window {
border: 2px solid var(--border);
box-shadow: 6px 6px 0px var(--border);
overflow: hidden;
width: 100%;
}

.pixel-window-bar {
display: flex;
align-items: center;
gap: 6px;
padding: 10px 14px;
background: var(--accent);
border-bottom: 2px solid var(--border);
}

.pixel-dot {
width: 10px;
height: 10px;
border: 2px solid var(--border);
background: var(--bg-card);
}

.pixel-window-bar span {
margin-left: auto;
font-size: 11px;
font-weight: 700;
letter-spacing: 1px;
color: var(--text);
}

.pixel-window-body {
padding: 24px 20px;
background: var(--bg-warm);
display: flex;
flex-direction: column;
gap: 10px;
min-height: 200px;
position: relative;
}

.pixel-line {
height: 8px;
background: var(--accent-light);
border: 1px solid var(--border-light);
animation: linePulse 3s ease-in-out infinite;
}

.pixel-line:nth-child(2) { animation-delay: 0.3s; }
.pixel-line:nth-child(3) { animation-delay: 0.6s; }
.pixel-line:nth-child(4) { animation-delay: 0.9s; }
.pixel-line:nth-child(5) { animation-delay: 1.2s; }
.pixel-line:nth-child(6) { animation-delay: 1.5s; }

.w40 { width: 40%; }
.w50 { width: 50%; }
.w60 { width: 60%; }
.w70 { width: 70%; }
.w80 { width: 80%; }
.w90 { width: 90%; }

@keyframes linePulse {
0%, 100% { opacity: 0.4; }
50% { opacity: 1; }
}

.pixel-avatar {
position: absolute;
bottom: 16px;
right: 20px;
width: 32px;
height: 40px;
background: var(--accent-dark);
border: 2px solid var(--border);
box-shadow: 2px 2px 0px var(--border);
animation: avatarBounce 2s ease-in-out infinite;
}

@keyframes avatarBounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-6px); }
}

.faq {
padding: 60px 24px 120px;
position: relative;
z-index: 1;
}

.faq-inner {
max-width: 700px;
margin: 0 auto;
}

.faq-header {
text-align: center;
margin-bottom: 40px;
}

.faq-header h2 {
font-size: clamp(24px, 3vw, 34px);
font-weight: 800;
letter-spacing: -0.5px;
}

.faq-list {
display: flex;
flex-direction: column;
gap: 12px;
}

.faq-item {
background: var(--bg-card);
border: 2px solid var(--border);
box-shadow: 4px 4px 0px var(--border-light);
transition: box-shadow 0.2s;
}

.faq-item[open] {
box-shadow: 4px 4px 0px var(--accent);
}

.faq-item summary {
padding: 20px 24px;
font-size: 15px;
font-weight: 700;
cursor: pointer;
list-style: none;
display: flex;
justify-content: space-between;
align-items: center;
transition: background 0.2s;
user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
content: '+';
font-size: 20px;
font-weight: 300;
color: var(--text-muted);
transition: transform 0.3s;
flex-shrink: 0;
margin-left: 16px;
}

.faq-item[open] summary::after {
transform: rotate(45deg);
}

.faq-item summary:hover {
background: var(--bg-warm);
}

.faq-item p {
padding: 0 24px 20px;
font-size: 15px;
line-height: 1.75;
color: var(--text-muted);
}

.join {
padding: 0 24px 140px;
position: relative;
z-index: 1;
}

.join-inner {
max-width: 760px;
margin: 0 auto;
background: var(--accent-light);
border: 2px solid var(--border);
padding: 72px 48px;
text-align: center;
box-shadow: 10px 10px 0px var(--border);
position: relative;
overflow: hidden;
}

.join-inner::before {
content: '';
position: absolute;
top: -60px;
right: -60px;
width: 200px;
height: 200px;
background: var(--accent);
opacity: 0.3;
border-radius: 50%;
pointer-events: none;
}

.join-inner h2 {
font-size: clamp(28px, 4vw, 40px);
font-weight: 800;
margin-bottom: 16px;
letter-spacing: -0.5px;
position: relative;
}

.join-text {
font-size: 16px;
line-height: 1.7;
color: var(--text);
margin-bottom: 36px;
max-width: 540px;
margin-left: auto;
margin-right: auto;
position: relative;
}

.btn-discord {
background: var(--discord);
color: #fff;
padding: 16px 36px;
font-size: 15px;
position: relative;
}

.btn-discord:hover {
background: var(--discord-hover);
transform: translate(-2px, -2px);
box-shadow: 6px 6px 0px var(--border);
}

footer {
background: var(--bg-card);
border-top: 2px solid var(--border);
padding: 48px 24px;
position: relative;
z-index: 1;
}

.footer-inner {
max-width: 960px;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
text-align: center;
}

.footer-brand {
display: flex;
align-items: center;
}

.footer-brand-img {
height: 24px;
width: auto;
object-fit: contain;
}



.footer-links {
display: flex;
gap: 24px;
}

.footer-links a {
font-size: 13px;
color: var(--text-muted);
text-decoration: none;
transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
font-size: 13px;
color: var(--text-muted);
}

.footer-disclaimer {
font-size: 11px;
color: #aaa;
max-width: 500px;
}

.reveal {
opacity: 0;
transform: translateY(28px);
transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
opacity: 1;
transform: translateY(0);
}

@media (max-width: 768px) {
.hero {
padding: 110px 20px 80px;
min-height: 92vh;
}

.hero h1 { letter-spacing: -0.5px; }

.hero-sub { font-size: 15px; }

.hero-actions {
flex-direction: column;
align-items: center;
}

.btn {
width: 100%;
max-width: 280px;
justify-content: center;
}

.section { padding: 80px 20px; }

.section-inner { padding: 40px 24px; }

.pillars { padding: 0 20px 80px; }

.pillars-grid {
grid-template-columns: 1fr;
gap: 16px;
}

.nostalgia { padding: 40px 20px 80px; }

.nostalgia-inner {
grid-template-columns: 1fr;
padding: 36px 24px;
gap: 32px;
}

.faq { padding: 40px 20px 80px; }

.join { padding: 0 20px 80px; }

.join-inner { padding: 48px 24px; }
}

@media (max-width: 480px) {
.nav-cta span { display: none; }

.nav-inner { height: 64px; }

.nav-brand-img {
height: 50px;
transform: translateY(2px);
}

.gate-logo {
width: 100px;
height: 100px;
}

#enter {
padding: 14px 32px;
font-size: 12px;
}

.pillar { padding: 28px 20px; }
}
