:root {
  --bg: #090d14;
  --bg-2: #0f1725;
  --panel: rgba(18, 25, 35, 0.72);
  --panel-strong: rgba(20, 28, 40, 0.9);
  --text: #edf6ff;
  --muted: #a4b4c8;
  --line: rgba(146, 175, 214, 0.18);
  --accent: #9bf6c8;
  --accent-2: #71e6b0;
  --blue: #6bb6ff;
  --blue-2: #7ad7ff;
  --glow: rgba(107, 182, 255, 0.4);
  --max: 1440px;
}
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(107, 182, 255, 0.8) rgba(12, 17, 24, 0.9);
  scrollbar-width: thin;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(107, 182, 255, 0.18), transparent 24%),
    radial-gradient(circle at 80% 0%, rgba(155, 246, 200, 0.14), transparent 28rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  cursor: none;
}
button, a { cursor: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(107, 182, 255, 0.32); }
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(12, 17, 24, 0.9);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(122, 215, 255, 0.95), rgba(107, 182, 255, 0.8));
  border-radius: 999px;
  border: 2px solid rgba(12, 17, 24, 0.9);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(155, 246, 200, 0.9), rgba(122, 215, 255, 0.95));
}
main {
  position: relative;
  isolation: isolate;
}
main > * {
  scroll-margin-top: 100px;
}
.cursor-dot, .cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 10px;
  height: 10px;
  background: var(--blue-2);
  box-shadow: 0 0 24px rgba(107, 182, 255, 0.9);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(107, 182, 255, 0.9);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.cursor-ring.active {
  width: 48px;
  height: 48px;
  border-color: rgba(122, 215, 255, 0.95);
}
.nav {
  width: min(calc(100% - 32px), 1280px);
  height: 76px; margin: 20px auto 0; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid rgba(146, 175, 214, 0.18);
  border-radius: 999px;
  position: sticky; top: 18px; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(9, 13, 20, 0.5);
  box-shadow: 0 18px 40px rgba(4, 8, 15, 0.3);
}
.brand { font: 700 18px "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.brand span { color: var(--accent); }
nav { display: flex; gap: 26px; color: var(--muted); font-size: 14px; }
nav a:hover, .text-link:hover { color: var(--text); }
.hero {
  width: 100%; max-width: none; margin: auto; min-height: 650px; padding: 100px 48px 110px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center;
}
.eyebrow { color: var(--accent); font: 700 12px "Space Grotesk", sans-serif; letter-spacing: .14em; margin: 0 0 18px; }
h1, h2 { font-family: "Space Grotesk", sans-serif; letter-spacing: -.055em; line-height: .98; margin: 0; }
h1 { font-size: clamp(58px, 8vw, 100px); max-width: 760px; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(38px, 5vw, 64px); }
.lede { color: var(--muted); font-size: 20px; max-width: 600px; margin: 28px 0 34px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 14px;
  border: 1px solid rgba(255,255,255,0.06); transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  box-shadow: 0 18px 35px rgba(7, 10, 18, 0.22);
}
.button:hover { transform: translateY(-2px); }
.primary { background: linear-gradient(135deg, #c1ffe8, #9bf6c8); color: #07110c; }
.primary:hover { box-shadow: 0 20px 40px rgba(155, 246, 200, 0.16); }
.secondary { background: rgba(255,255,255,0.03); border-color: var(--line); }
.hero-card {
  background: rgba(18,22,27,.72); border: 1px solid rgba(146, 175, 214, 0.18);
  border-radius: 22px; backdrop-filter: blur(12px);
  box-shadow: 0 35px 90px rgba(12,16,24,0.38); overflow: hidden; transform: rotate(1.5deg);
}
.terminal-top { height: 40px; border-bottom: 1px solid var(--line); display:flex; align-items:center; gap:7px; padding:0 16px; }
.terminal-top i { width:8px; height:8px; border-radius:50%; background:#444c55; }
pre { margin:0; padding:30px; font: 14px/2 "SFMono-Regular", Consolas, monospace; color:#d8dde2; white-space:pre-wrap; }
.muted { color:#68727d; } .accent { color:var(--accent); } .cursor { animation: blink 1s steps(2,end) infinite; }
.section {
  width: 100%; max-width: none; margin: auto; padding: 100px 48px; border-top: 1px solid var(--line);
  position: relative;
}
.section::after {
  content: "";
  position: absolute;
  inset: 18px auto auto 24px;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  opacity: 0.7;
}
.about { display:grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.about-copy { max-width: 650px; color: var(--muted); font-size: 18px; }
.facts { margin-top: 35px; border-top:1px solid var(--line); }
.facts div { display:grid; grid-template-columns:130px 1fr; padding:16px 0; border-bottom:1px solid var(--line); font-size:14px; }
.facts strong { color:var(--text); } .facts span { color:var(--muted); }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:30px; margin-bottom:45px; }
.text-link { color:var(--accent); font-weight:700; font-size:14px; }
.pill {
  display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid rgba(122, 215, 255, 0.35);
  border-radius: 999px; background: rgba(108, 178, 255, 0.08); color: var(--blue-2); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.repo-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.repo {
  min-height:230px; padding:25px; border:1px solid rgba(146, 175, 214, 0.18); background:rgba(16, 22, 30, 0.72);
  border-radius:16px; display:flex; flex-direction:column; transition:.2s; backdrop-filter: blur(8px);
}
.repo:hover { transform:translateY(-4px); border-color: rgba(122, 215, 255, 0.44); }
.repo h3 { font:700 23px "Space Grotesk", sans-serif; margin:0 0 10px; }
.repo p { color:var(--muted); font-size:14px; margin:0 0 20px; flex:1; }
.meta { display:flex; gap:14px; color:#7e8995; font-size:12px; }
.repo-link { margin-top:16px; color:var(--accent); font-size:13px; font-weight:700; }
.loading { gap:15px; }
.loading span { height:12px; background:#1d232a; border-radius:5px; animation:pulse 1.2s infinite alternate; }
.loading span:first-child { width:60%; height:24px; } .loading span:nth-child(2){width:90%}.loading span:nth-child(3){width:75%}
@keyframes pulse { to { opacity:.4; } }
.game-shell {
  background: linear-gradient(135deg, rgba(14, 20, 28, 0.9), rgba(10, 15, 20, 0.92));
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
}
.game-info {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 24px 16px; flex-wrap: wrap;
}
.stat {
  min-width: 110px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02);
}
.stat span { display:block; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.stat strong { font-size: clamp(20px, 3vw, 28px); font-family: "Space Grotesk", sans-serif; letter-spacing: -.05em; }
.game-area {
  position: relative; height: 350px; border-top: 1px solid var(--line); background:
    linear-gradient(180deg, rgba(107, 182, 255, 0.08), rgba(255,255,255,0) 38%),
    radial-gradient(circle at 50% 10%, rgba(122, 215, 255, 0.18), transparent 40%),
    rgba(10,12,14,.8);
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.game-area::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(transparent 0%, rgba(255,255,255,.02) 50%, transparent 100%);
  pointer-events: none;
}
.game-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; text-align:center; pointer-events: none; z-index: 2;
}
.game-overlay h3 { margin:0; font-size: clamp(28px, 4vw, 42px); font-family: "Space Grotesk", sans-serif; }
.game-overlay p { margin: 10px 0 0; color: var(--muted); max-width: 36ch; }
.bagel {
  position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border: none; border-radius: 50%;
  font-size: 2rem; background: radial-gradient(circle at 30% 30%, #ffe8b3, #f7bd52 42%, #d28f26 100%);
  box-shadow: 0 14px 26px rgba(243, 174, 70, 0.25), inset 0 -8px 12px rgba(120,73,18,0.25);
  transform: translateY(0);
  animation: floatBagel 1.9s ease-in-out forwards;
  z-index: 3;
  opacity: 1;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.bagel::before {
  content: ""; position: absolute; inset: 10px 12px 12px; border-radius: 50%; border: 2px solid rgba(102, 62, 17, 0.45);
}
.bagel:hover { transform: scale(1.06); }
@keyframes floatBagel {
  0% { opacity: 0; transform: translateY(-10px) scale(0.85); }
  12% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(260px) translateX(var(--drift, 0px)) scale(1.2); }
}
.bagel.missed { opacity: 0.35; }
.contact-box { background:linear-gradient(135deg,rgba(17,26,35,0.9),rgba(11,13,18,0.95)); border:1px solid var(--line); border-radius:18px; padding:60px; backdrop-filter: blur(10px); }
.contact-box p:not(.eyebrow) { color:var(--muted); margin:18px 0 28px; }
.email-line { margin-top: 0; margin-bottom: 24px; color: var(--text); }
.email-line a { color: var(--accent); }
.email-line a:hover { color: var(--accent-2); }
footer { width: 100%; max-width: none; margin:auto; padding:28px 48px 45px; display:flex; justify-content:space-between; color:#68727d; font-size:12px; }
@media (max-width: 800px) {
  nav a:nth-child(1), nav a:nth-child(2) { display:none; }
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  .scroll-rail { display: none; }
  .hero { grid-template-columns:1fr; padding-top:70px; }
  .hero-card { transform:none; }
  .about { grid-template-columns:1fr; gap:35px; }
  .repo-grid { grid-template-columns:1fr; }
  .section-heading { align-items:start; flex-direction:column; }
  .game-info { justify-content: flex-start; }
  .game-area { height: 280px; }
  .contact-box { padding:35px 25px; }
  footer { flex-direction:column; gap:8px; }
}
