:root {
  --bg: #050816;
  --bg-2: #071022;
  --panel: rgba(11, 18, 36, 0.78);
  --panel-strong: rgba(14, 23, 46, 0.94);
  --line: rgba(91, 142, 255, 0.22);
  --line-bright: rgba(54, 229, 255, 0.44);
  --text: #f8fbff;
  --muted: #9fb0ca;
  --cyan: #36e5ff;
  --blue: #4aa8ff;
  --violet: #8b5cf6;
  --green: #67e8a5;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% -10%, rgba(54, 229, 255, 0.2), transparent 34rem),
    radial-gradient(circle at 84% 12%, rgba(139, 92, 246, 0.28), transparent 36rem),
    linear-gradient(180deg, #050816 0%, #071022 46%, #050816 100%);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.glow { position: fixed; width: 24rem; height: 24rem; filter: blur(80px); opacity: .35; pointer-events: none; z-index: -1; }
.glow-cyan { top: 12rem; left: -9rem; background: var(--cyan); }
.glow-purple { right: -8rem; top: 4rem; background: var(--violet); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 5vw, 4.5rem);
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 22, 0.74);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139,92,246,.28), rgba(54,229,255,.18));
  box-shadow: 0 0 32px rgba(54,229,255,.22);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 4px; display: block; }
.brand small { display: block; color: var(--muted); font-size: .76rem; margin-top: .1rem; }
nav { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
nav a {
  color: var(--muted);
  font-size: .92rem;
  padding: .58rem .82rem;
  border-radius: 999px;
}
nav a:hover, .support-link { color: var(--text); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); }
main { width: min(1180px, calc(100vw - 2rem)); margin: 0 auto; }
.hero { padding: clamp(4rem, 10vw, 8rem) 0 4rem; text-align: center; }
.eyebrow {
  margin: 0 0 .85rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 800;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 880px;
  margin: 0 auto 1.15rem;
  font-size: clamp(2.55rem, 8vw, 6.1rem);
  line-height: .93;
  letter-spacing: -.075em;
}
h2 { font-size: clamp(1.9rem, 4vw, 3.05rem); letter-spacing: -.05em; margin-bottom: .55rem; }
h3 { font-size: 1.18rem; letter-spacing: -.025em; }
.hero-copy {
  max-width: 720px;
  margin: 0 auto 1.8rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}
.search {
  display: flex;
  align-items: center;
  gap: .85rem;
  max-width: 820px;
  margin: 0 auto;
  padding: .72rem;
  border: 1px solid var(--line-bright);
  background: rgba(8, 14, 32, .78);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  border-radius: 24px;
}
.search span { color: var(--cyan); font-size: 1.35rem; padding-left: .55rem; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
}
.search button {
  border: 0;
  color: #03101a;
  font-weight: 800;
  padding: .86rem 1.25rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  cursor: pointer;
}
.quick-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.quick-tags a, .pill {
  color: #c9f8ff;
  font-size: .8rem;
  border: 1px solid rgba(54, 229, 255, .2);
  background: rgba(54, 229, 255, .08);
  border-radius: 999px;
  padding: .42rem .72rem;
}
.section { padding: 3rem 0; }
.section-heading { margin-bottom: 1.25rem; }
.section-heading p:not(.eyebrow) { color: var(--muted); max-width: 580px; line-height: 1.7; }
.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.guide-card, .game-card, .topic-grid a {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 25, 50, .86), rgba(8, 13, 28, .86));
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.guide-card:hover, .game-card:hover, .topic-grid a:hover { transform: translateY(-3px); border-color: var(--line-bright); }
.guide-card { display: flex; min-height: 245px; flex-direction: column; padding: 1.15rem; }
.guide-card.featured { background: linear-gradient(135deg, rgba(139, 92, 246, .28), rgba(54, 229, 255, .12)), var(--panel-strong); }
.guide-card p { color: var(--muted); line-height: 1.6; }
.meta { margin-top: auto; color: var(--green); font-family: "JetBrains Mono", monospace; font-size: .78rem; }
.split-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: start; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.game-card { padding: 1.15rem; min-height: 118px; }
.game-card strong { display: block; font-size: 1.15rem; margin-bottom: .45rem; }
.game-card span { display: block; color: var(--muted); line-height: 1.5; }
.game-card.active { border-color: var(--line-bright); box-shadow: 0 0 36px rgba(54, 229, 255, .08); }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.topic-grid a { padding: 1.1rem; font-weight: 700; }
.topic-grid span { color: var(--cyan); font-family: "JetBrains Mono", monospace; margin-right: .55rem; }
.article-shell { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 3rem 0 5rem; }
.sidebar { position: sticky; top: 88px; align-self: start; border: 1px solid var(--line); border-radius: 22px; padding: 1rem; background: var(--panel); }
.sidebar a { display: block; color: var(--muted); padding: .65rem .75rem; border-radius: 12px; }
.sidebar a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.article { max-width: 820px; padding: 2rem; border: 1px solid var(--line); border-radius: 28px; background: rgba(7, 12, 27, .72); }
.article h1 { font-size: clamp(2.1rem, 5vw, 4rem); text-align: left; margin-left: 0; }
.article p, .article li { color: var(--muted); line-height: 1.75; }
.step { border-left: 2px solid var(--cyan); padding-left: 1rem; margin: 1.4rem 0; }
code, pre { font-family: "JetBrains Mono", monospace; }
code { color: #b9f7ff; background: rgba(54,229,255,.08); border: 1px solid rgba(54,229,255,.14); padding: .13rem .35rem; border-radius: .45rem; }
pre { overflow: auto; padding: 1rem; border-radius: 16px; background: #030713; border: 1px solid rgba(255,255,255,.08); color: #d8ecff; }
footer { display: flex; justify-content: space-between; gap: 1rem; width: min(1180px, calc(100vw - 2rem)); margin: 2rem auto 0; padding: 2rem 0; color: var(--muted); border-top: 1px solid rgba(255,255,255,.08); }
@media (max-width: 900px) {
  .guide-grid, .split-section, .article-shell { grid-template-columns: 1fr; }
  .topic-grid, .game-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .site-header { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .search { align-items: stretch; flex-direction: column; padding: .8rem; }
  .search > span { display: none; }
  .search input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: .85rem 1rem;
    border: 1px solid rgba(54, 229, 255, .24);
    border-radius: 16px;
    background: rgba(3, 7, 19, .72);
    color: var(--text);
    box-sizing: border-box;
  }
  .search input::placeholder { color: #8ea4ba; opacity: 1; }
  .search button { width: 100%; min-height: 48px; }
  footer { flex-direction: column; }
}

.full-library{grid-template-columns:repeat(4,minmax(0,1fr));}
.full-games{grid-template-columns:repeat(2,minmax(0,1fr));}
.games-clean{display:block;}
.featured-games{grid-template-columns:repeat(3,minmax(0,1fr));}
.search{position:relative;}
.search-suggestions{position:absolute;left:0;right:0;top:calc(100% + .7rem);z-index:40;display:none;max-height:390px;overflow:auto;padding:.55rem;border:1px solid var(--line-bright);border-radius:22px;background:rgba(5,8,22,.96);box-shadow:0 28px 90px rgba(0,0,0,.48);backdrop-filter:blur(18px);text-align:left;}
.search-suggestions.show{display:grid;gap:.45rem;}
.search-suggestions a,.search-suggestions p{display:grid;gap:.22rem;margin:0;padding:.85rem 1rem;border-radius:16px;color:var(--text);border:1px solid transparent;}
.search-suggestions strong{display:block;font-size:.98rem;line-height:1.25;}
.search-suggestions a:hover{background:rgba(54,229,255,.08);border-color:rgba(54,229,255,.22);}
.search-suggestions span{display:block;padding:0;color:var(--muted);font-size:.86rem;line-height:1.45;}
.game-drawer-toggle{position:fixed;left:0;top:84px;z-index:60;display:flex;align-items:center;gap:.55rem;min-height:48px;padding:.75rem 1rem .75rem .8rem;border:1px solid rgba(139,92,246,.45);border-left:0;border-radius:0 16px 16px 0;background:linear-gradient(90deg,rgba(49,32,82,.98),rgba(28,45,80,.96));color:#dbeafe;font-weight:900;letter-spacing:.01em;box-shadow:0 18px 55px rgba(0,0,0,.32),0 0 24px rgba(139,92,246,.22);cursor:pointer;}
.game-drawer-toggle .hamb{font-size:1.2rem;color:#c4b5fd;line-height:1;}
.game-drawer-toggle:hover{border-color:rgba(54,229,255,.5);background:linear-gradient(90deg,rgba(65,44,110,.98),rgba(28,63,105,.96));}
.drawer-scrim{position:fixed;inset:0;z-index:70;background:rgba(0,0,0,.48);backdrop-filter:blur(3px);}
.game-drawer{position:fixed;left:0;top:0;bottom:0;z-index:80;width:min(285px,calc(100vw - 1.5rem));padding:0;background:#07101f;border-right:1px solid rgba(139,92,246,.55);box-shadow:30px 0 90px rgba(0,0,0,.48);transform:translateX(-105%);transition:transform .22s ease;overflow:auto;}
.game-drawer.open{transform:translateX(0);}
.drawer-brand{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.85rem .85rem;border-bottom:1px solid rgba(139,92,246,.45);background:linear-gradient(90deg,#322154,#171b3b);}
.drawer-brand .brand{gap:.55rem;}
.drawer-brand .brand-mark{width:34px;height:34px;border-radius:10px;}
.drawer-brand strong{font-size:1rem;}
.drawer-brand small{font-size:.7rem;}
.drawer-head{padding:1rem .85rem .65rem;margin:0;}
.drawer-head h2{font-size:1.35rem;margin:.15rem 0 .35rem;}
.drawer-help{display:block;color:var(--muted);font-size:.86rem;line-height:1.45;}
.drawer-close{width:38px;height:38px;border-radius:12px;border:1px solid rgba(196,181,253,.32);background:rgba(255,255,255,.06);color:#ddd6fe;font-size:1.2rem;cursor:pointer;}
.drawer-links{display:grid;gap:.32rem;padding:.2rem .55rem 1rem;}
.drawer-links a{display:grid;grid-template-columns:28px 1fr;align-items:center;gap:.55rem;padding:.72rem .75rem;border:1px solid transparent;border-radius:10px;background:transparent;color:#aeb8ca;}
.drawer-links a:hover{border-color:rgba(54,229,255,.35);background:linear-gradient(90deg,rgba(139,92,246,.28),rgba(54,229,255,.13));color:#eaf7ff;}
.drawer-links a:first-child{border-color:rgba(54,229,255,.32);background:linear-gradient(90deg,rgba(139,92,246,.36),rgba(54,229,255,.18));color:#dbeafe;}
.drawer-links strong{font-size:.94rem;font-weight:800;}
.drawer-icon{display:grid;place-items:center;width:24px;height:24px;color:#aeb8ca;font-size:1rem;}
.drawer-links span:not(.drawer-icon){display:none;}
@media (max-width:1100px){.full-library{grid-template-columns:repeat(3,minmax(0,1fr));}.featured-games{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:760px){.full-library,.full-games,.featured-games{grid-template-columns:1fr;}.game-drawer-toggle{position:relative;top:auto;left:0;bottom:auto;z-index:9;width:max-content;margin:.75rem 0 0 0;border-left:0;border-radius:0 999px 999px 0;min-height:44px;padding:.65rem .9rem .65rem .75rem;}.search input{font-size:1rem;}.search-suggestions{position:static;margin-top:.5rem;width:100%;}}
