:root {
  --panel: rgba(16, 14, 11, 0.96);
  --panel-2: rgba(24, 21, 16, 0.98);
  --line: rgba(232,255,60,0.22);
  --line-strong: rgba(232,255,60,0.38);
  --text: #f7f0d8;
  --muted: rgba(247,240,216,0.72);
  --accent: #e8ff3c;
  --accent-2: #ff6b35;
  --danger: #ff4d4f;
}

*, *::before, *::after { cursor: none !important; }
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  background: #22d3ee;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2147483647; 
  transform: translate(-50%, -50%);
  transition: background 0.2s ease, width 0.15s ease, height 0.15s ease;
  box-shadow: 0 0 10px rgba(34,211,238,0.7), 0 0 20px rgba(34,211,238,0.3);
  will-change: left, top;
}
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1.5px solid rgba(34,211,238,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2147483646; 
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
  will-change: left, top;
}
#cursor.hovered { width: 8px; height: 8px; background: #fff; }
#cursor-ring.hovered { width: 44px; height: 44px; border-color: rgba(255,255,255,0.4); }
@media (max-width: 768px) {
  #cursor, #cursor-ring { display: none; }
  *, *::before, *::after { cursor: auto !important; }
}

#loadingOverlay {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(circle at 50% 15%, rgba(232,255,60,0.12), transparent 26%), #060504;
  display: none; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity .7s ease, transform .7s ease;
  overflow: hidden;
}
#loadingOverlay.hidden {
  opacity: 0; pointer-events: none; transform: scale(1.03);
}
#loadingOverlay::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  opacity: 0.14;
  pointer-events: none; z-index: 2;
  animation: loadingScan 4.5s linear infinite;
}
#loadingOverlay::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(255,107,53,.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 75% 100%, rgba(232,255,60,.14) 0%, transparent 55%);
  pointer-events: none; z-index: 1;
  animation: loadingPulse 3s ease-in-out infinite;
}

.ls-inner {
  position: relative; z-index: 3;
  width: min(92vw, 520px);
  display: flex; flex-direction: column; align-items: center;
  padding: 2.3rem 2rem 2.2rem;
  border: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(20,18,14,0.97) 0%, rgba(8,7,5,0.98) 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.06), inset 0 -3px 0 rgba(0,0,0,0.26), 0 20px 50px rgba(0,0,0,0.35);
  clip-path: polygon(0.8rem 0%, 100% 0%, 100% calc(100% - 0.8rem), calc(100% - 0.8rem) 100%, 0 100%, 0 0.8rem);
  overflow: hidden;
  transform: translateZ(0);
}
#loadingOverlay.is-lagging .ls-inner {
  animation: ls-jitter .16s steps(2,end) infinite;
}
#loadingOverlay.is-lagging .ls-title {
  animation: ls-title-flicker .12s steps(2,end) infinite;
}
#loadingOverlay.is-lagging .ls-tagline,
#loadingOverlay.is-lagging .ls-status,
#loadingOverlay.is-lagging .ls-sub {
  animation: ls-text-stutter .18s steps(2,end) infinite;
}
.ls-glitch-bar,
.ls-static,
.ls-scanline,
.ls-tear {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity .2s ease;
}
#loadingOverlay.is-lagging .ls-glitch-bar,
#loadingOverlay.is-lagging .ls-static,
#loadingOverlay.is-lagging .ls-scanline,
#loadingOverlay.is-lagging .ls-tear {
  opacity: 1;
}
.ls-glitch-bar {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.08) 12%, transparent 24%, rgba(255,0,0,.16) 46%, transparent 58%, rgba(0,255,255,.14) 70%, transparent 100%);
  mix-blend-mode: screen;
  transform: skewX(-12deg);
  animation: ls-scan .24s linear infinite;
}
.ls-glitch-bar.bar-b { transform: skewX(12deg) translateX(6%); opacity: .8; }
.ls-static {
  background-image: radial-gradient(circle, rgba(255,255,255,.75) 0 1px, transparent 2px);
  background-size: 7px 7px;
  opacity: .22;
  animation: ls-static-burst 1.4s steps(2,end) infinite;
}
.ls-scanline {
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.08) 48%, transparent 100%);
  mix-blend-mode: screen;
  animation: ls-scan 1.4s linear infinite;
}
.ls-tear {
  background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, transparent 16%, transparent 84%, rgba(255,255,255,.08) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 10%, 0 18%);
  transform: translateY(-8%);
  animation: ls-tear-drift 1.2s ease-in-out infinite alternate;
}
.ls-tear.tear-bottom { transform: translateY(8%) scaleY(-1); }

.ls-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.2rem, 4vw, 2.4rem);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); line-height: 1.2; text-align: center;
  margin-bottom: .8rem;
  position: relative;
  text-shadow: 0 0 18px rgba(232,255,60,0.22);
  animation: ls-flicker 3.8s ease-in-out infinite;
}
.ls-title::before, .ls-title::after {
  content: attr(data-text); position: absolute; inset: 0; opacity: 0;
  animation: ls-glitch 3.6s steps(2,end) infinite;
}
.ls-title::before {
  color: #ff4d4f; clip-path: polygon(0 20%, 100% 20%, 100% 42%, 0 42%);
  transform: translate(-2px, 1px);
}
.ls-title::after {
  color: #4dc9ff; clip-path: polygon(0 60%, 100% 60%, 100% 82%, 0 82%);
  transform: translate(2px, -1px);
}
@keyframes ls-flicker {
  0%,100% { opacity: 1 } 92% { opacity: 1 } 93% { opacity: .7 }
  94% { opacity: 1 } 96% { opacity: .85 } 97% { opacity: 1 }
}
@keyframes ls-jitter {
  0%,100% { transform: translate(0,0) scale(1) }
  20% { transform: translate(-2px,1px) scale(1.004) }
  50% { transform: translate(2px,-2px) scale(.998) }
  80% { transform: translate(-1px,1px) scale(1.001) }
}
@keyframes ls-title-flicker {
  0%,100% { opacity: 1; filter: blur(0px) }
  20% { opacity: .78; filter: blur(1px) }
  50% { opacity: 1; filter: blur(0px) }
  80% { opacity: .9; filter: blur(.6px) }
}
@keyframes ls-text-stutter {
  0%,100% { transform: translate(0,0) }
  30% { transform: translate(-1px,0) }
  60% { transform: translate(1px,1px) }
}
@keyframes ls-scan {
  from { transform: translateY(-20%) }
  to { transform: translateY(20%) }
}
@keyframes ls-static-burst {
  0%,100% { opacity: .16 } 50% { opacity: .3 }
}
@keyframes ls-tear-drift {
  from { transform: translateY(-10%) skewX(-8deg) }
  to { transform: translateY(10%) skewX(8deg) }
}

.ls-tagline {
  font-family: 'Space Mono', monospace;
  font-size: .62rem; letter-spacing: .5em; text-transform: uppercase;
  color: rgba(232,255,60,.5); margin-bottom: 2rem;
}

.ls-phases { display: flex; gap: 6px; margin-bottom: 1.4rem; }
.ls-phase-dot {
  width: 6px; height: 6px;
  background: rgba(232,255,60,.15);
  transition: background .3s, transform .3s;
}
.ls-phase-dot.active {
  background: #e8ff3c; box-shadow: 0 0 8px rgba(232,255,60,.6); transform: scaleX(3);
}
.ls-phase-dot.done { background: rgba(232,255,60,.45); }

.ls-progress-wrap {
  width: 100%; height: 3px; background: rgba(232,255,60,.08);
  margin-bottom: 1rem; position: relative; overflow: hidden;
  border: 1px solid rgba(232,255,60,.14);
}
.ls-progress-bar {
  height: 100%; width: 0%; background: linear-gradient(90deg, #f9ff70 0%, #d9e640 100%);
  transition: width .15s ease; box-shadow: 0 0 12px rgba(232,255,60,.7);
}
.ls-progress-bar::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 60px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: ls-shimmer 1.2s ease-in-out infinite;
}
@keyframes ls-shimmer {
  from { transform: translateX(-120px) } to { transform: translateX(60px) }
}
.ls-status {
  font-family: 'Space Mono', monospace;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(240,237,230,.58); margin-bottom: .5rem; min-height: 1.2em; text-align: center;
}
.ls-sub {
  font-family: 'Space Mono', monospace;
  font-size: .62rem; color: rgba(255,255,255,.23);
  letter-spacing: .18em; text-transform: uppercase; text-align: center;
}

.ls-ping {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: 'Space Mono', monospace;
  font-size: .62rem; letter-spacing: .25em; text-transform: uppercase;
  color: rgba(232,255,60,.38); display: flex; align-items: center; gap: .6rem;
}
.ls-ping-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(232,255,60,.3); animation: ls-pulse 1.6s ease-in-out infinite;
}
@keyframes ls-pulse {
  0%,100% { opacity: .3; transform: scale(1) } 50% { opacity: 1; transform: scale(1.4) }
}

.ls-corner { position: absolute; width: 20px; height: 20px; z-index: 3; }
.ls-corner::before, .ls-corner::after {
  content: ''; position: absolute; background: rgba(232,255,60,.4);
}
.ls-corner::before { width: 100%; height: 1px; top: 0; left: 0 }
.ls-corner::after  { width: 1px; height: 100%; top: 0; left: 0 }
.ls-corner-tl { top: 1.5rem; left: 1.5rem }
.ls-corner-tr { top: 1.5rem; right: 1.5rem; transform: scaleX(-1) }
.ls-corner-bl { bottom: 1.5rem; left: 1.5rem; transform: scaleY(-1) }
.ls-corner-br { bottom: 1.5rem; right: 1.5rem; transform: scale(-1) }

#botCheck {
  position: fixed; inset: 0; z-index: 10000;
  background: radial-gradient(circle at 50% 10%, rgba(232,255,60,0.12), transparent 24%), #060504;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity .5s ease;
  overflow: hidden;
}
#botCheck.hidden { opacity: 0; pointer-events: none; }
#botCheck::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.18) 3px, rgba(0,0,0,0.18) 4px
  );
  pointer-events: none; z-index: 2;
}

.bc-inner {
  position: relative; z-index: 3;
  width: min(94vw, 460px);
  display: flex; flex-direction: column; align-items: center;
  padding: 1.8rem 1.4rem 1.6rem;
  border: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(20,18,14,0.97) 0%, rgba(10,8,6,0.98) 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.05), inset 0 -3px 0 rgba(0,0,0,0.28), 0 20px 50px rgba(0,0,0,0.34);
  clip-path: polygon(0.8rem 0%, 100% 0%, 100% calc(100% - 0.8rem), calc(100% - 0.8rem) 100%, 0 100%, 0 0.8rem);
}
.bc-badge {
  font-family: 'Space Mono', monospace;
  font-size: .58rem; letter-spacing: .38em; text-transform: uppercase;
  color: rgba(232,255,60,.55); margin-bottom: 1rem;
  border: 1px solid rgba(232,255,60,.18); padding: .4rem .8rem;
  background: rgba(232,255,60,.05);
}
.bc-guide {
  font-family: 'Space Mono', monospace;
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(247,240,216,.56); text-align: center; margin-bottom: 1rem;
}
.bc-question {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.9rem, 3vw, 1.25rem);
  color: #f0ede6; text-align: center; margin-bottom: .6rem;
  letter-spacing: .04em; text-transform: uppercase;
  line-height: 1.6;
}
.bc-sub {
  font-family: 'Space Mono', monospace;
  font-size: .66rem; color: rgba(255,255,255,.34);
  letter-spacing: .16em; text-transform: uppercase;
  text-align: center; margin-bottom: 1.2rem;
}

.bc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; width: 100%; margin-bottom: 1.2rem;
}
.bc-tile {
  aspect-ratio: 1; border: 2px solid rgba(232,255,60,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(0,0,0,.2) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  transition: border-color .2s, background .2s, transform .1s;
  user-select: none; -webkit-user-select: none;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.08), inset 0 -2px 0 rgba(0,0,0,.22);
  padding: 0;
}
.bc-tile:hover { border-color: rgba(232,255,60,.35); background: rgba(232,255,60,.07); }
.bc-tile.selected {
  border-color: #e8ff3c; background: rgba(232,255,60,.15);
  transform: scale(.96);
}
.bc-tile.selected::after {
  content: '✓';
  position: absolute; top: 4px; right: 6px;
  font-size: .65rem; color: #e8ff3c; font-family: monospace;
}
.bc-tile.wrong {
  border-color: #ff4444; background: rgba(255,68,68,.12);
  animation: bc-shake .35s ease;
}
@keyframes bc-shake {
  0%,100% { transform: translateX(0) }
  20%     { transform: translateX(-6px) }
  60%     { transform: translateX(6px) }
}

.bc-confirm-btn {
  font-family: 'Space Mono', monospace;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: #060504; background: linear-gradient(180deg, #f9ff70 0%, #d9e640 100%);
  border: 2px solid rgba(232,255,60,.24); padding: .75rem 2.2rem;
  transition: opacity .2s, transform .1s;
  clip-path: polygon(0.7rem 0%, 100% 0%, calc(100% - 0.7rem) 100%, 0% 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.16), inset 0 -3px 0 rgba(0,0,0,0.22);
}
.bc-confirm-btn:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.2), inset 0 -3px 0 rgba(0,0,0,0.28), 0 6px 18px rgba(0,0,0,.22);
}
.bc-confirm-btn:hover { opacity: .9; }
.bc-confirm-btn:active { transform: scale(.97); }
.bc-confirm-btn:disabled { opacity: .3; }

.bc-error {
  font-family: 'Space Mono', monospace; font-size: .64rem;
  color: #ff4d4f; letter-spacing: .12em; text-transform: uppercase;
  margin-top: .75rem; min-height: 1rem; text-align: center;
  opacity: 0; transition: opacity .2s;
}
.bc-error.show { opacity: 1; }

.bc-attempts {
  font-family: 'Space Mono', monospace; font-size: .6rem;
  color: rgba(255,255,255,.2); letter-spacing: .2em;
  text-transform: uppercase; margin-top: .8rem;
}

.page-shell {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.page-shell.ready {
  opacity: 1;
  transform: none;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
  background: linear-gradient(180deg, #0c1520 0%, #1e2a23 42%, #090d10 100%);
}
.intro-overlay.active { opacity: 1; pointer-events: auto; }
.intro-overlay.fade { opacity: 0; }

.intro-backdrop {
  position: relative;
  width: min(92vw, 980px);
  height: min(76vh, 580px);
  border: 3px solid rgba(232,255,60,.3);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.45), 0 0 70px rgba(0,0,0,.45);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(95,151,255,.24) 0%, rgba(95,151,255,.05) 46%, rgba(0,0,0,.08) 100%),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: auto, 26px 26px, 26px 26px;
  transform: scale(.98);
  transition: transform .75s ease;
  animation: introPan 8s linear infinite alternate;
}
.intro-overlay.active .intro-backdrop { transform: scale(1); }

.intro-sun {
  position: absolute;
  top: 12%; left: 18%;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(232,255,60,.85) 35%, rgba(232,255,60,0) 72%);
  filter: blur(2px);
  animation: introSun 2.2s ease-in-out infinite alternate;
  opacity: .95;
}
.intro-hill {
  position: absolute; bottom: -4%; border-radius: 50%; background: linear-gradient(180deg, #4f6b3e 0%, #2d3f24 100%); box-shadow: inset 0 6px 0 rgba(255,255,255,.06);
}
.intro-hill.hill-a { left: -8%; width: 60%; height: 32%; }
.intro-hill.hill-b { right: -6%; width: 55%; height: 24%; }
.intro-particles {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.9) 0 2px, transparent 3px), radial-gradient(circle, rgba(232,255,60,.7) 0 2px, transparent 3px);
  background-size: 24px 24px, 32px 32px;
  opacity: .35;
  animation: introDust 2.4s linear infinite;
}
.intro-grid {
  position: absolute;
  left: 50%; bottom: 20%; transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  width: min(78%, 520px);
  z-index: 2;
}
.intro-block {
  aspect-ratio: 1;
  background: linear-gradient(180deg, #a06a2d 0%, #6c3b14 100%);
  border: 2px solid #51310e;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.18), inset 0 -2px 0 rgba(0,0,0,.24);
  transform: translateY(26px);
  opacity: 0;
  animation: introBlockRise .55s cubic-bezier(.2,.8,.2,1) forwards;
}
.intro-logo-build {
  position: absolute;
  left: 50%; bottom: 38%; transform: translateX(-50%);
  width: min(76%, 560px);
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  z-index: 3;
}
.intro-logo-block {
  aspect-ratio: 1;
  border: 2px solid rgba(82,49,14,.8);
  background: linear-gradient(180deg, #f3d98f 0%, #b7842a 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.2), inset 0 -2px 0 rgba(0,0,0,.24);
  opacity: 0;
  transform: translateY(14px) scale(.96);
  animation: introLogoRise .35s cubic-bezier(.2,.8,.2,1) forwards;
}
.intro-title-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  text-align: center;
  z-index: 3;
  padding-top: 2rem;
}
.intro-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.2rem, 3vw, 2.4rem);
  letter-spacing: .18em;
  color: #f7f0d7;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0,0,0,.35);
  transform: translateY(24px);
  opacity: 0;
  animation: introTextIn .7s ease .95s forwards;
}
.intro-sub {
  font-family: 'Space Mono', monospace;
  font-size: .74rem;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: rgba(232,255,60,.75);
  transform: translateY(24px);
  opacity: 0;
  animation: introTextIn .7s ease 1.15s forwards;
}

.hero-title,
.section-title,
.card-title,
.nav-logo-text,
.loading-title,
.bc-question,
.bc-badge,
.hero-eyebrow,
.section-label,
.footer-logo {
  font-family: 'Press Start 2P', monospace;
  letter-spacing: .04em;
}

.btn,
.nav-links a,
.server-bar,
.card,
.card-icon,
.bc-tile,
.bc-confirm-btn {
  box-shadow: inset 0 2px 0 rgba(255,255,255,.14), inset 0 -3px 0 rgba(0,0,0,.2);
}

.btn {
  clip-path: polygon(.65rem 0%, 100% 0%, calc(100% - .65rem) 100%, 0% 100%);
}

.card {
  clip-path: polygon(.8rem 0%, 100% 0%, 100% calc(100% - .8rem), calc(100% - .8rem) 100%, 0 100%, 0 .8rem);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid rgba(232,255,60,.25);
  background: rgba(232,255,60,.06);
  margin-bottom: 1rem;
  position: relative;
}
.card-icon::before,
.card-icon::after {
  content: '';
  position: absolute;
}
.card-icon.icon-axe::before {
  width: 44%; height: 44%; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg);
}
.card-icon.icon-sword::before {
  width: 32%; height: 70%; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg);
}
.card-icon.icon-fire::before {
  width: 40%; height: 40%; background: linear-gradient(180deg, #ffcf4d 0%, #ff7a00 100%); border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,122,0,.15), 0 -8px 0 rgba(120,60,0,.25);
  transform: rotate(-20deg);
}
.card-icon.icon-fire::after {
  width: 12%; height: 38%; background: #7c3e00; left: 44%; top: 8%; transform: rotate(12deg);
}

/* Feature cards */
.grid-3 {
  gap: 1.25rem;
  background: transparent;
}

.grid-3 > .card {
  min-height: 250px;
  padding: 1.9rem 1.75rem 1.75rem;
  border: 1px solid rgba(201, 243, 106, .22);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(201, 243, 106, .045), transparent 38%),
    linear-gradient(180deg, rgba(23, 31, 26, .98), rgba(13, 18, 15, .98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 16px 36px rgba(0, 0, 0, .22);
  clip-path: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.grid-3 > .card::before {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  left: 1.75rem;
  width: 3.5rem;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(201, 243, 106, .32);
  opacity: 1;
}

.grid-3 > .card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 243, 106, .55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 20px 42px rgba(0, 0, 0, .32),
    0 0 24px rgba(201, 243, 106, .035);
}

.grid-3 > .card .card-icon {
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 1.35rem;
  border: 1px solid rgba(201, 243, 106, .38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(201, 243, 106, .13), rgba(201, 243, 106, .025));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 8px 18px rgba(0, 0, 0, .18);
}

.grid-3 > .card .card-title {
  min-height: 2.2rem;
  margin-bottom: .55rem;
  color: #f0f4ec;
  font-size: .95rem;
  line-height: 1.55;
  letter-spacing: .025em;
}

.grid-3 > .card .card-body {
  max-width: 30rem;
  margin: 0;
  color: #b8c4b8;
  font-size: .92rem;
  line-height: 1.75;
}

@media (max-width: 768px) {
  .grid-3 {
    gap: .9rem;
  }

  .grid-3 > .card {
    min-height: 0;
    padding: 1.5rem;
  }

  .grid-3 > .card::before {
    left: 1.5rem;
  }
}

.bc-tile {
  background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(0,0,0,.18) 100%);
  border: 2px solid rgba(232,255,60,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, background .2s, transform .1s;
  padding: 0;
}
.bc-tile.selected {
  border-color: #e8ff3c;
  background: rgba(232,255,60,.16);
  transform: scale(.96);
}
.bc-tile.selected::after {
  content: '✓'; position: absolute; top: 4px; right: 6px; font-size: .6rem; color: #e8ff3c; font-family: 'Space Mono', monospace;
}
.bc-tile.wrong {
  border-color: #ff4444;
  background: rgba(255,68,68,.15);
  animation: bc-shake .35s ease;
}
.block-icon {
  position: relative;
  display: block;
  width: 56%;
  height: 56%;
  border: 2px solid rgba(0,0,0,.32);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.2), inset 0 -2px 0 rgba(0,0,0,.2);
}
.block-icon::before,
.block-icon::after {
  content: '';
  position: absolute;
}
.block-icon.block-dirt { background: linear-gradient(180deg, #8a4e1f 0%, #633518 100%); }
.block-icon.block-stone { background: linear-gradient(180deg, #8b8b8b 0%, #5b5b5b 100%); }
.block-icon.block-grass { background: linear-gradient(180deg, #4c8c2f 0%, #2d5d20 100%); }
.block-icon.block-torch { background: linear-gradient(180deg, #7a4d1c 0%, #3e2a10 100%); }
.block-icon.block-torch::before { width: 44%; height: 56%; background: linear-gradient(180deg, #ffcf4d 0%, #ff7a00 100%); left: 28%; top: 8%; }
.block-icon.block-torch::after { width: 24%; height: 24%; background: #3d1f09; left: 38%; top: 60%; }
.block-icon.block-diamond { background: linear-gradient(180deg, #6de7ff 0%, #3fbce4 100%); transform: rotate(45deg); }
.block-icon.block-creeper { background: linear-gradient(180deg, #5bb23b 0%, #2d7c21 100%); }
.block-icon.block-creeper::before { width: 24%; height: 24%; background: #1c1b1a; left: 20%; top: 24%; box-shadow: 24px 0 #1c1b1a; }
.block-icon.block-creeper::after { width: 52%; height: 16%; background: #1c1b1a; left: 24%; bottom: 20%; }
.block-icon.block-tnt { background: linear-gradient(180deg, #ff5a43 0%, #a31a17 100%); }
.block-icon.block-tnt::before { width: 54%; height: 18%; background: #ffe9a6; left: 22%; top: 20%; }
.block-icon.block-tnt::after { width: 18%; height: 42%; background: #f0dd8f; left: 41%; top: 36%; }

@keyframes introBlockRise {
  to { transform: translateY(0); opacity: 1; }
}
@keyframes introLogoRise {
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes introPan {
  from { transform: translateX(-1.5%) scale(1); }
  to { transform: translateX(1.5%) scale(1.01); }
}
@keyframes loadingPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.03); opacity: 1; }
}
@keyframes loadingScan {
  from { transform: translateY(-4%); }
  to { transform: translateY(4%); }
}
@keyframes ls-glitch {
  0%, 100% { opacity: 0; transform: translate(0,0); }
  10% { opacity: .8; transform: translate(-2px, 1px); }
  20% { opacity: 0; }
  40% { opacity: .7; transform: translate(2px, -1px); }
  55% { opacity: 0; }
  70% { opacity: .9; transform: translate(-1px, 1px); }
  85% { opacity: 0; }
}
@keyframes introTextIn {
  to { transform: translateY(0); opacity: 1; }
}
@keyframes introSun {
  from { transform: scale(1); filter: blur(2px); }
  to { transform: scale(1.06); filter: blur(3px); }
}
@keyframes introDust {
  from { transform: translateY(0); }
  to { transform: translateY(12px); }
}

body.home-page header {
  border-bottom-color: rgba(247, 240, 216, .12);
  background: linear-gradient(180deg, rgba(10, 15, 13, .78), rgba(10, 15, 13, .28));
  backdrop-filter: blur(12px);
}
body.home-page header.scrolled {
  background: rgba(10, 15, 13, .94);
}
body.home-page .nav-logo-text { color: #e8ff80; }
body.home-page .hero {
  min-height: calc(100svh - 80px);
  padding: 4rem 1.5rem .5rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: none;
  border-bottom: 1px solid rgba(232, 255, 60, .12);
}
body.home-page .hero-bg {
  background-image:
    linear-gradient(180deg, rgba(9, 17, 15, .12) 0%, rgba(9, 17, 15, .28) 36%, rgba(9, 15, 12, .94) 100%),
    url("/background.png");
  background-position: center center;
  filter: none;
  opacity: 1;
}
body.home-page .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 980px);
  margin: 0 auto;
}
body.home-page .server-bar {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto .6rem;
  padding: .7rem 1rem;
  gap: .75rem;
  border: 1px solid rgba(255, 241, 203, .28);
  border-radius: 999px;
  background: rgba(16, 23, 19, .62);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
}
body.home-page .server-bar-item {
  gap: .45rem;
  color: #f7f0d8;
  font-size: .68rem;
}
body.home-page .server-bar-label { color: rgba(247, 240, 216, .62); }
body.home-page .server-bar-sep { color: rgba(255, 241, 203, .4); }
body.home-page .server-address-button {
  padding: 0;
  border: 0;
  background: none;
  color: #f7f0d8;
  font: inherit;
  font-weight: 700;
}
body.home-page .server-address-button:hover { color: #e8ff80; }
body.home-page .hero-logo {
  display: block;
  width: clamp(190px, 25vw, 270px);
  height: auto;
  margin: -.25rem 0 .15rem;
  filter: drop-shadow(0 16px 24px rgba(8, 12, 9, .55));
}
body.home-page .hero-eyebrow {
  margin: 0 0 .4rem;
  color: #e8ff80;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .68rem;
  letter-spacing: .12em;
}
body.home-page .hero-title {
  margin: .25rem 0 .7rem;
  color: #fff8e9;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1;
  text-transform: none;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .4);
}
body.home-page .hero-title br { display: none; }
body.home-page .hero-title span { color: #e8ff80; }
body.home-page .hero-sub {
  max-width: 590px;
  margin: 0 auto 1.2rem;
  color: rgba(255, 248, 233, .84);
  font-size: .98rem;
  line-height: 1.65;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
body.home-page .hero-actions { gap: .75rem; }
body.home-page .hero-actions .btn {
  min-height: 46px;
  border-radius: 999px;
  font-size: .7rem;
  letter-spacing: .02em;
}
body.home-page .btn-primary {
  border-color: #e8ff80;
  background: #e8ff80;
  color: #182216;
}
body.home-page .btn-primary:hover {
  border-color: #f4ffbf;
  background: #f4ffbf;
  color: #182216;
}
body.home-page .btn-secondary {
  border-color: rgba(255, 248, 233, .54);
  background: rgba(14, 20, 17, .35);
}
body.home-page .hero-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
  width: 100%;
  margin-top: 1.55rem;
}
body.home-page .hero-link {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
  padding: .8rem .95rem;
  border: 1px solid rgba(255, 241, 203, .22);
  border-radius: 10px;
  background: rgba(18, 27, 21, .62);
  text-align: left;
  backdrop-filter: blur(10px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
body.home-page .hero-link:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 255, 128, .68);
  background: rgba(24, 37, 27, .86);
}
body.home-page .hero-link-number {
  display: grid;
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(232, 255, 128, .4);
  border-radius: 7px;
  background: rgba(232, 255, 128, .1);
  color: #e8ff80;
  font: 600 .68rem 'IBM Plex Mono', monospace;
}
body.home-page .hero-link-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .15rem;
}
body.home-page .hero-link-copy strong {
  overflow: hidden;
  color: #fff8e9;
  font-size: .8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.home-page .hero-link-copy small {
  color: rgba(255, 248, 233, .62);
  font-size: .68rem;
}
@media (max-width: 768px) {
  body.home-page .hero {
    min-height: calc(100svh - 68px);
    padding: 6rem 1.1rem 2rem;
  }
  body.home-page .hero-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home-page .hero-actions { flex-direction: row; }
}
@media (max-width: 480px) {
  body.home-page .hero { padding: 5.7rem 1rem 1.5rem; }
  body.home-page .server-bar {
    width: 100%;
    justify-content: center;
    gap: .45rem .8rem;
    padding: .65rem .7rem;
  }
  body.home-page .server-bar-sep { display: none; }
  body.home-page .server-bar-item { font-size: .62rem; }
  body.home-page .hero-logo { width: 156px; }
  body.home-page .hero-title br { display: initial; }
  body.home-page .hero-eyebrow { font-size: .58rem; letter-spacing: .07em; }
  body.home-page .hero-title { font-size: clamp(2.25rem, 10vw, 2.8rem); }
  body.home-page .hero-sub { font-size: .9rem; }
  body.home-page .hero-actions { width: 100%; gap: .55rem; }
  body.home-page .hero-actions .btn {
    width: auto;
    flex: 1;
    padding-inline: .55rem;
    font-size: .64rem;
  }
  body.home-page .hero-links { gap: .55rem; margin-top: 1.2rem; }
  body.home-page .hero-link { gap: .5rem; padding: .7rem .55rem; }
  body.home-page .hero-link-number { flex-basis: 1.9rem; width: 1.9rem; height: 1.9rem; }
  body.home-page .hero-link-copy strong { font-size: .72rem; }
  body.home-page .hero-link-copy small { font-size: .62rem; }
}
