.g-nav { justify-content: space-between; }
.g-nav-actions { display: flex; align-items: center; gap: 14px; }
.g-back { color: var(--muted); font-weight: 700; font-size: 14px; text-decoration: none !important; transition: color .2s; }
.g-back:hover { color: var(--text); }

/* Hero */

.g-hero {
  position: relative;
  padding: 140px 0 70px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(#060912, #0d1530);
}
.g-hero-bg {
  position: absolute; inset: -4%;
  background: center 40% / cover no-repeat;
  opacity: 0;
  transition: opacity 1.4s;
  animation: gdrift 30s ease-in-out infinite alternate;
}
.g-hero-bg.loaded { opacity: .55; }
.g-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 15, 20, .92), rgba(11, 15, 20, .55) 60%, rgba(11, 15, 20, .3)), linear-gradient(transparent 60%, var(--bg));
}
@keyframes gdrift { to { transform: scale(1.08) translate(-1.5%, 1%); } }
.g-hero-inner { position: relative; z-index: 1; }
.g-hero h1 {
  margin: 0 0 18px;
  max-width: 820px;
  font: 400 clamp(20px, 3.6vw, 38px)/1.4 var(--pixel);
  text-shadow: 0 4px 0 rgba(0, 0, 0, .5);
  animation: rise .9s var(--ease) both;
}
.g-sub { margin: 0 0 30px; color: #c7d0dc; font-size: 17px; animation: rise .9s .1s var(--ease) both; }
.g-search {
  display: flex; align-items: center; gap: 12px;
  max-width: 520px;
  padding: 0 16px;
  background: rgba(11, 16, 22, .85);
  border: 2px solid #2c3846;
  border-radius: 4px;
  transition: border-color .2s, box-shadow .2s;
  animation: rise .9s .2s var(--ease) both;
}
.g-search:focus-within { border-color: var(--grass); box-shadow: 0 0 0 4px rgba(108, 212, 76, .15); }
.g-search svg { flex: none; width: 16px; height: 16px; color: var(--muted); }
.g-search input { border: 0; background: none; padding: 14px 0; box-shadow: none !important; }

/* Layout */

.g-layout { display: grid; grid-template-columns: 230px 1fr; gap: 56px; padding: 56px 0 110px; align-items: start; }
.g-toc { position: sticky; top: 88px; display: grid; gap: 2px; }
.g-toc-title { font: 400 10px/1 var(--pixel); color: var(--muted); text-transform: uppercase; margin-bottom: 14px; }
.g-toc-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none !important;
  transition: color .2s, background .2s;
}
.g-toc-link span { width: 8px; height: 8px; background: var(--c); opacity: .45; transition: opacity .2s, box-shadow .2s; }
.g-toc-link:hover, .g-toc-link.active { color: var(--text); background: rgba(255, 255, 255, .04); }
.g-toc-link.active span { opacity: 1; box-shadow: 0 0 10px var(--c); }
.g-toc-subs { display: grid; margin: 2px 0 8px 14px; padding-left: 12px; border-left: 1px solid var(--line-2); }
.g-toc-sub { padding: 5px 8px; color: #6f7c8b; font-size: 14px; font-weight: 600; text-decoration: none !important; transition: color .2s; }
.g-toc-sub:hover, .g-toc-sub.active { color: var(--text); }

/* Sections */

.g-sec { margin-bottom: 72px; scroll-margin-top: 90px; }
.g-sec-head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.g-sec-head .mini-cube { --s: 46px; margin: 0; flex: none; }
.g-sec-head h2 { margin: 0; color: var(--c); }
.g-note {
  display: inline-block; margin-top: 4px;
  color: var(--muted); font-weight: 700; font-size: 14px;
}

/* Commands as chat lines */

.g-cmds { display: grid; gap: 10px; }
.g-cmd {
  position: relative;
  display: grid; gap: 8px;
  width: 100%;
  padding: 14px 52px 14px 16px;
  text-align: left;
  color: var(--text);
  background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .25));
  border: 1px solid var(--line);
  border-left: 3px solid var(--c);
  border-radius: 3px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.g-cmd:hover { transform: translateX(6px); border-color: color-mix(in srgb, var(--c) 45%, transparent); border-left-color: var(--c); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 14%, rgba(0, 0, 0, .55)), rgba(0, 0, 0, .25)); }
.g-chat { display: inline-flex; align-items: center; flex-wrap: wrap; font: 400 13px/1.7 var(--pixel); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; word-break: break-word; }
.g-chat i { font-style: normal; color: #ffd84a; text-shadow: 2px 2px 0 #3f3600; }
.g-caret { width: 10px; height: 3px; margin-left: 4px; align-self: flex-end; margin-bottom: 7px; background: #fff; opacity: 0; }
.g-cmd:hover .g-caret { opacity: 1; animation: blink .8s steps(2) infinite; }
.g-alt { font-size: 13px; color: var(--muted); font-weight: 700; }
.g-alt b { font: 400 11px/1.6 var(--pixel); color: #fff; }
.g-desc { color: #b9c4d0; font-weight: 600; font-size: 15px; }
.g-copy {
  position: absolute; right: 16px; top: 50%;
  width: 18px; height: 18px;
  margin-top: -9px;
  color: var(--muted);
  opacity: .4;
  transition: opacity .2s, color .2s, transform .2s var(--ease);
}
.g-copy svg { width: 100%; height: 100%; display: block; }
.g-cmd:hover .g-copy { opacity: 1; color: var(--c); }
.g-cmd.copied { animation: gcopied .6s var(--ease); }
.g-cmd.copied .g-copy { transform: scale(1.3); color: var(--grass); opacity: 1; }
@keyframes gcopied { 30% { background: rgba(108, 212, 76, .2); border-color: var(--grass); } }
.g-inline { padding: 1px 6px; border-radius: 3px; background: rgba(0, 0, 0, .35); font: 400 .78em/1.6 var(--pixel); color: inherit; }

.g-heading { margin: 36px 0 14px; font: 400 13px/1.4 var(--pixel); color: var(--text); }
.g-text { color: #c3ccd7; }

/* Book */

.g-book {
  position: relative;
  max-width: 680px;
  padding: 28px 30px 22px;
  color: #3b2a14;
  background:
    repeating-linear-gradient(transparent 0 31px, rgba(120, 85, 40, .12) 31px 32px),
    linear-gradient(#f6ead0, #ecdcb8);
  border-radius: 3px;
  box-shadow: inset 0 0 0 3px #c9ad79, inset 0 0 0 6px #f6ead0, inset 0 0 40px rgba(140, 100, 40, .25), 0 26px 50px -24px #000;
}
.g-book.reveal { transform: perspective(900px) rotateY(-14deg) translateY(20px); transform-origin: left center; }
.g-book.reveal.in { transform: none; }
.g-book ol { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.g-book > ol > li { position: relative; counter-increment: step; padding-left: 46px; margin-bottom: 18px; }
.g-book > ol > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font: 400 12px/1 var(--pixel);
  color: #f6ead0;
  background: #7a5428;
  box-shadow: inset -3px -3px 0 #5a3c1a, inset 3px 3px 0 #9c6e3a;
}
.g-book p { margin: 0; font-weight: 600; font-size: 15px; }
.g-book .g-inline { background: rgba(122, 84, 40, .14); }
.g-book ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.mc-btn { font-weight: 800; color: var(--b); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Features */

.g-feats { display: grid; border-top: 1px solid var(--line); }
.g-feat {
  position: relative;
  display: grid; grid-template-columns: 210px 1fr; column-gap: 32px;
  padding: 28px 24px 26px 28px;
  border-bottom: 1px solid var(--line);
  transition: background .4s;
}
.g-feat::before {
  content: '';
  position: absolute; left: 0; top: 22px; bottom: 22px;
  width: 3px;
  background: var(--c);
  box-shadow: 0 0 14px var(--c);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .6s var(--ease);
}
.g-feat.in::before { transform: scaleY(1); transition-delay: .25s; }
.g-feat:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 9%, transparent), transparent 70%); }
.g-feat > header { grid-column: 1; grid-row: 1 / span 20; align-self: start; display: flex; align-items: center; gap: 16px; }
.g-feat > :not(header) { grid-column: 2; }
.g-feat .mini-cube { --s: 40px; margin: 0; flex: none; }
.g-feat:hover .mini-cube .cube { animation-duration: 3s; }
.g-feat h3 { margin: 0; font-size: 18px; color: var(--text); transition: color .3s; }
.g-feat:hover h3 { color: var(--c); }
.g-feat p { margin: 0 0 10px; color: #c3ccd7; font-size: 15px; max-width: 760px; }
.g-feat p:last-child { margin-bottom: 0; }
.g-feat ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 760px; }
.g-feat li { position: relative; padding-left: 20px; color: #c3ccd7; font-size: 15px; }
.g-feat li::before { content: ''; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--c); }
.g-feat .g-inline { font-size: .72em; }

.g-empty { padding: 60px 0; color: var(--muted); font-weight: 700; text-align: center; }

.g-page .footer-inner { padding: 30px 0; }
.g-page .footer-logo { margin: 0; }

@media (max-width: 960px) {
  .g-layout { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .g-toc {
    position: sticky; top: 57px; z-index: 20;
    display: flex; gap: 6px;
    margin: 0 -16px 32px;
    padding: 10px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(11, 15, 20, .97);
    border-bottom: 1px solid var(--line);
  }
  .g-toc::-webkit-scrollbar { display: none; }
  .g-toc-title, .g-toc-subs { display: none; }
  .g-toc-link { flex: none; padding: 8px 12px; border: 1px solid var(--line-2); font-size: 14px; }
  .g-toc-link.active { border-color: var(--c); }
  .g-sec { scroll-margin-top: 120px; }
  .g-feat { grid-template-columns: 1fr; padding: 22px 6px 22px 20px; }
  .g-feat > header { grid-row: auto; margin-bottom: 14px; }
  .g-feat > :not(header) { grid-column: 1; }
  .g-feat ul:has(li:nth-child(5)) { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .g-hero { padding: 104px 0 44px; }
  .g-sub { font-size: 15px; }
  .g-back { display: none; }
  .g-chat { font-size: 11px; }
  .g-cmd { padding: 12px 44px 12px 14px; }
  .g-cmd:hover { transform: none; }
  .g-book { padding: 22px 18px 14px; }
  .g-book > ol > li { padding-left: 40px; }
  .g-sec-head .mini-cube { --s: 38px; }
  .g-hero-bg { animation: none; }
}

/* Changelog */
.c-main { padding: 56px 0 110px; max-width: 860px; }
.c-list { display: flex; flex-direction: column; gap: 22px; }
.c-entry { padding: 26px 28px; }
.c-latest { border-color: rgba(108, 212, 76, .55); }
.c-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.c-head h2 { margin: 0; font: 400 clamp(16px, 2.4vw, 22px)/1.3 var(--pixel); }
.c-badge { padding: 4px 10px; border-radius: 999px; background: rgba(108, 212, 76, .18); color: #8fe36e; font-size: 12px; font-weight: 800; }
.c-date { color: var(--muted); font-size: 14px; }
.c-title { margin: 6px 0 4px; color: #c7d0dc; }
.c-entry h3 { margin: 18px 0 6px; font-size: 15px; letter-spacing: .02em; }
.c-entry ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: #c7d0dc; line-height: 1.55; }
.c-empty { color: var(--muted); }

/* Drink recipes menu */
.g-drinks { display: grid; gap: 10px; margin-top: 18px; }
.g-drink { border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 10px; background: rgba(255, 255, 255, .03); overflow: hidden; }
.g-drink summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; font-weight: 700; list-style: none; }
.g-drink summary::-webkit-details-marker { display: none; }
.g-drink summary::after { content: '+'; margin-left: auto; color: var(--muted); font-size: 20px; transition: transform .2s; }
.g-drink[open] summary::after { content: '−'; }
.g-drink summary:hover { background: rgba(255, 255, 255, .04); }
.g-drink ul { margin: 0; padding: 4px 18px 16px 38px; display: grid; gap: 6px; color: #c7d0dc; line-height: 1.55; }
.g-drink p { margin: 0; padding: 4px 18px 12px; color: #c7d0dc; }
.g-drink .mini-cube { --s: 26px; margin: 0; flex: none; }
.g-drink:hover .mini-cube .cube { animation-duration: 3s; }
.g-drink summary { padding: 10px 16px; }

.g-drink .drink-icon { width: 28px; height: 28px; flex: none; image-rendering: pixelated; transition: transform .2s; }
.g-drink:hover .drink-icon, .g-drink[open] .drink-icon { transform: scale(1.12) rotate(-6deg); }
