/* ==========================================================================
   Openworld -- the guides (gen/guides.py): the download page's colours,
   type, buttons and motion (site.css, fx.css), plus the hub, the topics and
   the articles: hero with a live runway, table of contents, the blocks
   (gen/blocks.py), the scenes' controls, cards.
   ========================================================================== */
.page-guides .topbar { transform: none; }
.page-guides main { display: block; }
.page-guides section[id], .gh2, .gfaq h2 { scroll-margin-top: 88px; }
.topbar-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--grass); }

/* ---- heroes ------------------------------------------------------------------- */
.ghero {
  --accent: var(--violet);
  position: relative; overflow: hidden; isolation: isolate; min-height: 92vh; min-height: 92svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: calc(84px + 2vh) var(--gutter) calc(var(--parade-h) + 26px);
}
.ghero-topic { min-height: 78vh; min-height: 78svh; }
.ghero:not(:has(.ghero-runway)) { min-height: 70vh; padding-bottom: 70px; }
.ghero-bg { position: absolute; inset: 0; z-index: -3; background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 10%, #dfe8ff 50%, transparent 51%), radial-gradient(1px 1px at 66% 34%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 84% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 92% 52%, #cfe0ff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 80%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 74% 72%, #fff 50%, transparent 51%),
    linear-gradient(180deg, #070b16, #0b1430 55%, var(--bg)); }
.ghero-shot { position: absolute; inset: -10% 0 -10%; opacity: 0.4; }
.ghero-shot img { width: 100%; height: 100%; object-fit: cover; animation: drift 14s ease-out both; }
.ghero-glow { position: absolute; inset: 0; background:
    radial-gradient(ellipse 60% 55% at 50% 42%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(10, 15, 28, 0.55), rgba(10, 15, 28, 0.1) 35%, rgba(10, 15, 28, 0.35) 70%, var(--bg)); }
.ghero::after { content: ""; position: absolute; inset: auto 0 0; height: 40px; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent, var(--bg)); }
.ghero .cubes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ghero-inner { position: relative; z-index: 3; width: 100%; max-width: 980px; display: flex; flex-direction: column; align-items: center; }
.ghero .kicker { color: var(--accent); margin-top: 22px; animation: rise 0.8s 0.05s both; }
.ghero .kicker::before { box-shadow: 3px 3px 0 color-mix(in srgb, var(--accent) 45%, #000); }
.ghero-title { font-size: clamp(2.1rem, 5.2vw, 4.3rem); max-width: 17em; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.ghero-title strong, .ghero-title b {
  font-weight: 800; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #fff));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ghero-lead { margin-top: 18px; max-width: 38em; font: 700 clamp(1.05rem, 1.6vw, 1.3rem)/1.5 var(--display); color: #d6e0f2; animation: rise 0.9s 0.35s both; }
.ghero-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin-top: 16px; font: 700 0.92rem var(--display); color: var(--muted); animation: rise 0.9s 0.45s both; }
.ghero-meta img { width: 30px; height: 30px; }
.ghero-meta b { color: var(--ink); }
.ghero-meta .sep { opacity: 0.5; }
.ghero .cta { margin-top: 26px; }
.ghero-runway { z-index: 1; }
.ghero-hub .ghero-title { font-size: clamp(2.4rem, 6vw, 5rem); }
.ghero-main, .ghero-cta { display: flex; flex-direction: column; align-items: center; width: 100%; }
.ghero .gphone { align-self: center; }

/* An article: no full screen of hero. The title, the lead and « In short » share the first
   screen with the call to action, the runway stays a strip under them: the reader sees at
   once what the page is about, and can start reading right away. */
.ghero-article { --parade-h: clamp(110px, 15vh, 160px); min-height: 0; justify-content: flex-start; padding-top: calc(78px + 1.5vh); padding-bottom: calc(var(--parade-h) + 8px); }
.ghero-inner.has-aside { display: grid; max-width: 1200px; text-align: left; align-items: center; gap: 0 clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); grid-template-areas: "main aside" "cta aside"; }
.has-aside .ghero-main { grid-area: main; align-items: flex-start; }
.has-aside .ghero-aside { grid-area: aside; align-self: center; }
.has-aside .ghero-cta { grid-area: cta; align-items: flex-start; }
.has-aside .crumbs ol, .has-aside .ghero-meta, .has-aside .cta-note { justify-content: flex-start; }
.has-aside .cta { align-items: flex-start; margin-top: 22px; }
.has-aside .ghero-title { font-size: clamp(2rem, 4vw, 3.5rem); }
.has-aside .ghero-lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); }
.has-aside .gphone { align-self: flex-start; text-align: left; }
.has-aside .gphone .phone-actions { justify-content: flex-start; }
.ghero-aside .gsummary { background: linear-gradient(135deg, rgba(179, 140, 255, 0.16), rgba(14, 22, 40, 0.82) 60%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); animation: rise 0.9s 0.55s both; }
.ghero-aside .gsummary li { font-size: 0.98rem; line-height: 1.5; color: #d6e0f2; }
.gsummary-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 9px 16px; border-radius: 12px; text-decoration: none;
  font: 800 0.95rem var(--display); color: #fff; background: rgba(179, 140, 255, 0.22); border: 1px solid rgba(179, 140, 255, 0.55); transition: background 0.2s, transform 0.15s; }
.gsummary-go:hover { background: rgba(179, 140, 255, 0.35); transform: translateY(-2px); }
.gsummary-go span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
@media (max-width: 980px) {
  .ghero-inner.has-aside { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "aside" "cta"; }
  .has-aside .ghero-aside { margin-top: 22px; }
}

/* the breadcrumb */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin: 0; padding: 6px 14px; border-radius: 99px;
  background: rgba(10, 15, 28, 0.55); border: 1px solid var(--line); font: 700 0.84rem var(--display); color: var(--muted); animation: rise 0.8s both; }
.crumbs li + li::before { content: "›"; margin: 0 9px; opacity: 0.6; }
.crumbs a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

/* ---- the article ----------------------------------------------------------------- */
.gshell { position: relative; padding: clamp(30px, 5vw, 60px) 0 40px; }
.gbody {
  --wide: min(1120px, calc(100vw - 2 * var(--gutter)));
  --col: min(740px, calc(100vw - 2 * var(--gutter)));
  display: grid; grid-template-columns: [wide-start] 1fr [col-start] var(--col) [col-end] 1fr [wide-end];
  width: var(--wide); margin: 0 auto; font-size: 1.12rem; line-height: 1.75; color: #d3dcef;
}
.gbody > * { grid-column: col; min-width: 0; }
.gbody > .wide { grid-column: wide; }
.gbody strong { color: var(--ink); }
.gbody a:not(.btn):not(.gcat-link) { color: var(--ink); text-decoration-color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gbody a:not(.btn):not(.gcat-link):hover { color: var(--gold); }
.gbody code { font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: #060a14; border: 1px solid var(--line); }
.gp, .glead { margin-top: 1.05em; }
.glead { font-size: 1.24rem; color: var(--ink); }
.gh2 { margin-top: 2.6em; font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: #fff; }
.gh2 .kicker { display: block; }
.gh2::before { content: ""; display: block; width: 46px; height: 8px; margin-bottom: 18px; border-radius: 3px;
  background: linear-gradient(90deg, var(--grass) 0 33%, var(--water) 33% 66%, var(--gold) 66%); }
.gh3 { margin-top: 1.9em; font-size: clamp(1.25rem, 2.2vw, 1.55rem); color: #fff; }
.glist { margin: 1em 0 0; padding: 0; list-style: none; }
.glist li { position: relative; padding-left: 30px; margin-top: 0.5em; }
.glist li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 11px; height: 11px; border-radius: 3px; background: var(--grass); box-shadow: 2px 2px 0 var(--grass-3); }
ol.glist { counter-reset: n; }
ol.glist li::before { counter-increment: n; content: counter(n); width: 22px; height: 22px; left: 0; top: 0.2em; display: grid; place-items: center; font: 800 0.8rem var(--display); color: #0d2a0f; }
.gquote { margin: 1.6em 0 0; padding: 22px 26px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border-left: 5px solid var(--violet); font: 700 1.25rem/1.5 var(--display); color: var(--ink); }
.gquote cite { display: block; margin-top: 8px; font: 700 0.9rem var(--display); color: var(--muted); font-style: normal; }

/* in short */
.gsummary { margin-top: 0; padding: 24px 28px 22px; border-radius: 22px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(179, 140, 255, 0.12), rgba(90, 201, 220, 0.06)); border: 1px solid rgba(179, 140, 255, 0.35); }
.gsummary::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: var(--violet); opacity: 0.12; filter: blur(30px); }
.gsummary-title { font: 800 0.82rem var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--violet); }
.gsummary ul { list-style: none; margin: 10px 0 0; padding: 0; }
.gsummary li { position: relative; padding-left: 28px; margin-top: 8px; font-size: 1.04rem; }
.gsummary li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 12px; border-radius: 3px; background: var(--violet); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.25); }

/* callouts */
.gcallout { --c: var(--grass); display: flex; gap: 16px; margin-top: 1.6em; padding: 18px 22px; border-radius: 18px;
  background: color-mix(in srgb, var(--c) 9%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.gcallout-note { --c: var(--water); }
.gcallout-fun { --c: var(--rose); }
.gcallout-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--c); box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 45%, #000), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  -webkit-mask: none; display: grid; place-items: center; }
.gcallout-icon::before { content: "!"; font: 800 1.1rem var(--display); color: #0a0f1c; }
.gcallout-tip .gcallout-icon::before { content: "✦"; }
.gcallout-title { font: 800 1.08rem var(--display); color: var(--ink); }
.gcallout p + p { margin-top: 4px; }
.gcallout p { font-size: 1.02rem; }

/* figures */
.gfig { margin: 2em 0 0; }
.gfig-frame { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--line); }
.gfig-frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); transform: scale(1.06); }
.gfig.in .gfig-frame img { transform: none; }
.gfig figcaption, .gscene figcaption, .gpaint figcaption { margin-top: 12px; font: 700 0.92rem/1.5 var(--display); color: var(--muted); text-align: center; }

/* numbers */
.gstats { list-style: none; margin: 2em 0 0; padding: 26px 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px 14px; text-align: center;
  border-radius: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); border: 1px solid var(--line); }
.gstats b { display: block; font: 800 clamp(2.4rem, 5vw, 3.6rem)/1 var(--display); font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gstats span { display: block; margin-top: 8px; color: var(--muted); font: 700 0.95rem var(--display); }

/* how-to steps */
.gsteps { list-style: none; margin: 1.6em 0 0; padding: 0; display: grid; gap: 14px; }
.gsteps > li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.gsteps > li > b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--grass); color: #0d2a0f; font: 800 1.15rem var(--display); box-shadow: 0 4px 0 var(--grass-3); }
.gsteps h3 { font-size: 1.15rem; color: var(--ink); }
.gsteps p { margin-top: 4px; font-size: 1rem; color: var(--muted); }
.gsteps p strong { color: var(--ink); }

/* compare */
.gcompare { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; margin-top: 2em; }
.gcompare-col { padding: 24px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.gcompare-col.is-voxel { background: linear-gradient(160deg, rgba(179, 140, 255, 0.14), rgba(126, 217, 87, 0.05)); border-color: rgba(179, 140, 255, 0.45); }
.gcompare-col h3 { margin-top: 14px; font-size: 1.3rem; color: var(--ink); }
.gcompare-col ul { list-style: none; margin: 10px 0 0; padding: 0; }
.gcompare-col li { position: relative; padding-left: 26px; margin-top: 7px; font-size: 1rem; }
.gcompare-col.is-flat li::before { content: "–"; position: absolute; left: 4px; color: var(--muted); font-weight: 800; }
.gcompare-col.is-voxel li::before { content: "✓"; position: absolute; left: 2px; color: var(--grass); font-weight: 800; }
.gcompare-vs { align-self: center; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: #131d35; border: 1px solid var(--line); font: 800 1rem var(--display); color: var(--gold); transform: rotate(-6deg); }
.gcompare.is-plain .gcompare-col h3 { margin-top: 0; }
.gcompare.is-plain .gcompare-col.is-flat li::before { content: "•"; }
.gcta-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gcode { margin: 1.6em 0 0; }
.gcode-box { position: relative; border-radius: 16px; background: #0a0f1c; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.gcode-box[data-lang]::before { content: attr(data-lang); position: absolute; left: 16px; top: 10px; font: 800 0.7rem var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.gcode pre { margin: 0; padding: 34px 18px 18px; overflow-x: auto; font: 600 0.92rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #d6def0; white-space: pre; }
.gcode-copy { position: absolute; right: 10px; top: 8px; padding: 4px 11px; border-radius: 9px; border: 1px solid var(--line); background: #131d35; color: #fff; font: 800 0.78rem var(--display); cursor: pointer; }
.gcode-copy:hover { border-color: var(--grass); }
.gcode figcaption { margin-top: 10px; font: 700 0.92rem/1.5 var(--display); color: var(--muted); text-align: center; }
.gcompare-art { height: 170px; display: grid; place-items: center; }
.gcompare-art.voxel img { width: 170px; height: 170px; animation: gfloat 5s ease-in-out infinite; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.5)); }
.flat-cube { --s: 86px; position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; animation: cube-spin 9s linear infinite; }
.flat-cube i { position: absolute; inset: 0; border-radius: 3px;
  background: linear-gradient(#6b3e26 0 25%, transparent 25%), conic-gradient(from 90deg at 37.5% 62.5%, #1d2a44 0 25%, transparent 0) 0 0 / 50% 100%,
              linear-gradient(transparent 75%, #c2555a 75% 87.5%, transparent 87.5%) 0 0 / 100% 100% no-repeat, #f1c9a5;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.15); image-rendering: pixelated; }
.flat-cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.flat-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); background: linear-gradient(#6b3e26 0 60%, #f1c9a5 60%); }
.flat-cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); background: linear-gradient(#6b3e26 0 30%, #e8bd97 30%); }
.flat-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); background: linear-gradient(#6b3e26 0 30%, #e8bd97 30%); }
.flat-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); background: #6b3e26; }
.flat-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); background: #d9ab84; }
@keyframes cube-spin { from { transform: rotateX(-18deg) rotateY(0); } to { transform: rotateX(-18deg) rotateY(360deg); } }
@media (max-width: 720px) { .gcompare { grid-template-columns: 1fr; } .gcompare-vs { justify-self: center; } }

/* ---- the 3D scenes ----------------------------------------------------------------- */
.gscene { margin: 2.2em 0 0; }
.gscene-stage { position: relative; height: clamp(380px, 62vh, 600px); border-radius: 28px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  background: radial-gradient(ellipse 70% 60% at 50% 38%, #2b2350, #12193a 62%, #0a0f1c); box-shadow: inset 0 0 0 1px var(--line), 0 34px 80px rgba(0, 0, 0, 0.5); }
.gscene-wardrobe .gscene-stage { cursor: grab; height: clamp(440px, 72vh, 660px); }
.gscene-wardrobe .gscene-stage:active { cursor: grabbing; }
.gscene-lineup .gscene-stage { height: clamp(340px, 54vh, 520px); background: radial-gradient(ellipse 80% 70% at 50% 30%, #2f5c94, #1a3358 60%, #0e1a33); }
.gscene-forge .gscene-stage { height: clamp(360px, 56vh, 540px); background: radial-gradient(ellipse 70% 60% at 50% 75%, #4a2516, #1c1220 55%, #0a0d18); }
/* pinned scenes: the stage stays while the reader scrolls (gen/blocks.py scroll) */
.gscroll { position: relative; height: var(--len, 300vh); }
.gscroll-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; border-radius: 28px;
  background: radial-gradient(ellipse 70% 60% at 50% 38%, #2b2350, #12193a 62%, #0a0f1c); box-shadow: inset 0 0 0 1px var(--line), 0 34px 80px rgba(0, 0, 0, 0.5); }
.gscroll .gscene-stage { position: absolute; inset: 0; height: auto; border-radius: 0; background: none; box-shadow: none; }
.gscene-fallback-shot { width: 100%; height: 100%; object-fit: cover; }
.gscene-fallback:has(.gscene-fallback-shot) { padding: 0; }
.gscene-planet .gscroll-sticky {
  background:
    radial-gradient(1.5px 1.5px at 8% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 14%, #dfe8ff 50%, transparent 51%), radial-gradient(1px 1px at 57% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 76% 24%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 92% 62%, #cfe0ff 50%, transparent 51%),
    radial-gradient(1px 1px at 14% 88%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 48% 84%, #fff 50%, transparent 51%),
    linear-gradient(180deg, #03050b, #060a16 50%, #03050b);
}
.gscene-cave .gscroll-sticky { background: radial-gradient(ellipse at 50% 70%, #1a1310, #07090f 70%); }
.gscene-skydive .gscroll-sticky { background: linear-gradient(180deg, #0c1a3c 0%, #274f8f 34%, #6f8fc4 58%, #f0b37e 82%, #f38a5a 100%); }
.gscene-builder .gscene-stage { height: clamp(320px, 54vh, 540px); background: radial-gradient(ellipse at 50% 30%, #2b4f7e, #142440 70%); }
@media (prefers-reduced-motion: reduce) {
  .gscroll { height: auto; }
  .gscroll-sticky { position: relative; height: auto; min-height: 80vh; }
  .gscroll .gscene-stage { position: relative; height: 70vh; }
}
.gscene-stage:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.gscene-fallback { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 4px; padding: 20px; }
.gscene-fallback img { width: clamp(70px, 11vw, 120px); height: auto; }
.has-webgl > .gscene-fallback { display: none; }
.gscene-hint { position: absolute; left: 16px; top: 14px; z-index: 3; padding: 5px 12px; border-radius: 99px; pointer-events: none;
  font: 700 0.8rem var(--display); color: rgba(255, 255, 255, 0.85); background: rgba(10, 15, 28, 0.6); border: 1px solid var(--line); }
.gburst { position: absolute; z-index: 6; width: 9px; height: 9px; border-radius: 2px; pointer-events: none; box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.25);
  animation: confetti 0.9s cubic-bezier(0.2, 0.6, 0.4, 1) forwards; }

/* the fitting room */
.wardrobe-ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; align-items: end;
  padding: 16px 18px 16px; background: linear-gradient(180deg, transparent, rgba(8, 11, 22, 0.85) 45%); pointer-events: none; }
.wardrobe-ui > * { pointer-events: auto; }
.wardrobe-name { display: flex; flex-direction: column; line-height: 1.15; }
.wardrobe-name b { font: 800 clamp(1.4rem, 3vw, 2rem) var(--display); color: #fff; }
.wardrobe-cat { font: 800 0.75rem var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--violet); }
.wardrobe-name small { font: 700 0.9rem var(--display); color: var(--muted); }
.wardrobe-name small::first-letter { text-transform: uppercase; }
.wardrobe-nav { display: flex; align-items: center; gap: 10px; font: 800 0.9rem var(--display); color: var(--muted); font-variant-numeric: tabular-nums; }
.wbtn-round { width: 44px; height: 44px; border-radius: 13px; border: 0; cursor: pointer; font: 800 1.6rem/1 var(--display); color: #0d2a0f;
  background: linear-gradient(180deg, #9be47a, var(--grass)); box-shadow: 0 5px 0 var(--grass-3), 0 10px 20px rgba(0, 0, 0, 0.35); transition: transform 0.12s, box-shadow 0.12s; }
.wbtn-round:hover { transform: translateY(-2px); }
.wbtn-round:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--grass-3); }
.wardrobe-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; }
.wardrobe-chips button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; cursor: pointer;
  font: 800 0.82rem var(--display); color: var(--ink); background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); transition: background 0.2s, border-color 0.2s, transform 0.15s; }
.wardrobe-chips button::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.wardrobe-chips button:hover { transform: translateY(-2px); }
.wardrobe-chips button[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 26%, transparent); border-color: var(--c); }

/* the forge */
.forge-ui { position: absolute; right: 16px; top: 14px; z-index: 4; }
.forge-ui .btn { --face: var(--gold); --side: #8a5a00; --text-c: #2b1a00; }
.forge-labels { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3; list-style: none; margin: 0; padding: 0 6%; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; pointer-events: none; }
.forge-labels b { display: block; font: 800 1rem var(--display); color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.forge-labels span { font: 800 0.75rem var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

/* ---- skins: categories, builds, gallery ----------------------------------------------- */
.gcats { list-style: none; margin: 2em 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gcat { position: relative; display: flex; flex-direction: column; padding: 18px 18px 16px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s; transition-delay: calc(var(--i, 0) * 70ms), 0s, 0s; }
.gcat:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.gcat::after { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: var(--accent); opacity: 0.16; filter: blur(40px); }
.gcat-pics { position: relative; height: 130px; margin: -4px 0 6px; }
.gcat-pics img { position: absolute; bottom: 0; z-index: 2; width: 120px; height: 120px; left: calc(50% - 60px + var(--x, 0) * 62px); transform-origin: 50% 100%;
  transition: transform 0.4s cubic-bezier(0.2, 1.4, 0.4, 1); filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.45)); }
.gcat-pics img:nth-child(2) { --x: -1; z-index: 1; transform: scale(0.86); }
.gcat-pics img:nth-child(3) { --x: 1; z-index: 1; transform: scale(0.86); }
.gcat:hover .gcat-pics img { transform: translateY(-8px) scale(1.04); }
.gcat:hover .gcat-pics img:nth-child(2) { transform: translateY(-4px) rotate(-6deg) scale(0.9); }
.gcat:hover .gcat-pics img:nth-child(3) { transform: translateY(-4px) rotate(6deg) scale(0.9); }
.gcat h3 { font-size: 1.3rem; color: #fff; }
.gcat-count { margin-top: 2px; font: 700 0.9rem var(--display); color: var(--muted); }
.gcat-count b { color: var(--accent); font-size: 1.1rem; }
.gcat-text { margin-top: 8px; font-size: 0.95rem; line-height: 1.55; color: var(--muted); flex: 1; }
.gcat-link { margin-top: 12px; align-self: flex-start; font: 800 0.9rem var(--display); color: var(--accent); text-decoration: none; }
.gcat-link::after { content: " →"; transition: margin 0.2s; }
.gcat-link:hover::after { margin-left: 4px; }

.gwearers { list-style: none; margin: 2em 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gwearer { text-align: center; padding: 14px 10px 18px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.gwearer-pics { position: relative; height: 120px; }
.gwearer-pics img { position: absolute; bottom: 0; width: 100px; height: 100px; left: calc(50% - 50px + var(--x, 0) * 44px); filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.45)); }
.gwearer-pics img:nth-child(1) { z-index: 2; width: 116px; height: 116px; left: calc(50% - 58px); }
.gwearer-pics img:nth-child(2) { --x: -1; }
.gwearer-pics img:nth-child(3) { --x: 1; }
.gwearer b { display: block; margin-top: 6px; font: 800 2.4rem/1 var(--display); color: #fff; }
.gwearer span { font: 700 0.95rem var(--display); color: var(--muted); }
@media (max-width: 720px) { .gwearers { grid-template-columns: repeat(2, 1fr); } }

.ggallery { margin-top: 1.6em; padding: 18px; border-radius: 28px; background: linear-gradient(180deg, #111a33, #0c1426); border: 1px solid var(--line); }
.ggallery-bar { position: sticky; top: 64px; z-index: 5; display: flex; flex-direction: column; gap: 12px; margin: -18px -18px 0; padding: 18px 18px 14px; border-radius: 28px 28px 0 0;
  background: rgba(17, 26, 51, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ggallery-search { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 16px; background: #060a14; border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s; }
.ggallery-search:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(179, 140, 255, 0.18); }
.ggallery-search svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; flex: none; }
.ggallery-search input { flex: 1; min-width: 0; padding: 13px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 700 1rem var(--display); }
.ggallery-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ggallery-chips button { --c: var(--grass); display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; cursor: pointer;
  font: 800 0.84rem var(--display); color: var(--ink); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); transition: background 0.2s, border-color 0.2s; }
.ggallery-chips button span { color: var(--muted); font-weight: 700; }
.ggallery-chips button[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 24%, transparent); border-color: var(--c); }
.ggallery-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ggallery-grid li { position: relative; display: flex; flex-direction: column; align-items: center; padding: 8px 6px 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent; transition: background 0.2s, border-color 0.2s; animation: pop-in 0.4s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
.ggallery-grid li:hover { background: rgba(179, 140, 255, 0.1); border-color: rgba(179, 140, 255, 0.4); }
.ggallery-grid img { width: 100%; max-width: 128px; height: auto; aspect-ratio: 1; transition: transform 0.3s cubic-bezier(0.2, 1.5, 0.4, 1); }
.ggallery-grid li:hover img { transform: translateY(-8px) scale(1.06); }
.ggallery-grid span { margin-top: 2px; font: 800 0.8rem/1.2 var(--display); text-align: center; color: var(--ink); }
@keyframes pop-in { from { opacity: 0; transform: scale(0.9) translateY(8px); } }
.ggallery-empty { padding: 30px 10px; text-align: center; color: var(--muted); font: 700 1rem var(--display); }
.ggallery-foot { margin-top: 16px; text-align: center; }

/* ---- the editor, drawn ---------------------------------------------------------------- */
.gpaint { margin: 2em 0 0; }
.gpaint-window { border-radius: 20px; overflow: hidden; background: #0f1830; border: 1px solid rgba(179, 140, 255, 0.35); box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5); }
.gpaint-head { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #16213f; border-bottom: 1px solid var(--line); font: 800 0.9rem var(--display); color: var(--ink); }
.gpaint-head .dot { width: 11px; height: 11px; border-radius: 50%; background: #ff6b6b; }
.gpaint-head .dot:nth-child(2) { background: var(--gold); }
.gpaint-head .dot:nth-child(3) { background: var(--grass); margin-right: 8px; }
.gpaint-body { display: grid; grid-template-columns: 170px minmax(0, 1fr) 190px; gap: 18px; padding: 18px; align-items: center; }
.gpaint-tools { display: flex; flex-direction: column; gap: 6px; }
.gpaint-tool, .gpaint-toggle { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 11px; font: 800 0.86rem var(--display); color: var(--muted);
  background: rgba(255, 255, 255, 0.04); border: 1px solid transparent; transition: all 0.25s; }
.gpaint-tool i, .gpaint-toggle i { width: 14px; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); transition: background 0.25s; }
.gpaint-toggle { margin-top: 2px; }
.gpaint-toggle i { border-radius: 99px; width: 24px; position: relative; }
.gpaint-toggle i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: left 0.25s; }
.gpaint-tool.on { color: #0d2a0f; background: var(--grass); box-shadow: 0 3px 0 var(--grass-3); }
.gpaint-tool.on i { background: rgba(13, 42, 15, 0.35); }
.gpaint-toggle.on { color: var(--ink); border-color: var(--violet); }
.gpaint-toggle.on i { background: var(--violet); }
.gpaint-toggle.on i::after { left: 12px; }
.gpaint-canvas { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin: 0 auto; border-radius: 14px; transition: background 0.8s, box-shadow 0.8s;
  background: repeating-conic-gradient(#1a2445 0 25%, #16203d 0 50%) 0 0 / 12.5% 12.5%; box-shadow: inset 0 0 0 1px var(--line); }
.gpaint-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(16, 1fr); }
.gpaint-grid i { transition: background 0.15s, filter 0.8s, box-shadow 0.8s; }
.gpaint-grid i.on { box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.18), inset 2px 2px 0 rgba(255, 255, 255, 0.16); }
.gpaint-grid i.pop { animation: voxel-pop 0.35s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes voxel-pop { from { transform: scale(0.2); } }
.gpaint-axis { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: repeating-linear-gradient(180deg, var(--violet) 0 6px, transparent 6px 12px); opacity: 0; transition: opacity 0.3s; }
.gpaint-window:has(.gpaint-toggle[data-toggle="mirror"].on) .gpaint-axis { opacity: 0.7; }
.gpaint-cursor, .gpaint-ghost { position: absolute; left: 50%; top: 50%; z-index: 3; width: 22px; height: 26px; margin: -2px 0 0 -2px; pointer-events: none; transition: left 0.18s ease, top 0.18s ease;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'%3E%3Cpath d='M1 1v17l4.5-4.2 3 6.7 3-1.4-3-6.6H15z' fill='white' stroke='black' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat; }
.gpaint-ghost { opacity: 0; filter: hue-rotate(200deg) saturate(3); transition: left 0.18s ease, top 0.18s ease, opacity 0.3s; }
.gpaint-ghost.on { opacity: 0.55; }
.gpaint-canvas.night { background: #03050d; box-shadow: inset 0 0 0 1px rgba(110, 243, 255, 0.2); }
.gpaint-canvas.night .gpaint-grid i.on:not(.glow) { filter: brightness(0.22) saturate(0.6); }
.gpaint-grid i.glow { position: relative; z-index: 1; box-shadow: 0 0 14px 4px rgba(110, 243, 255, 0.75); }
.clearing .gpaint-grid i { opacity: 0; transition: opacity 0.4s; }
.gpaint-side p { font: 800 0.8rem var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.gpaint-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 10px; }
.gpaint-swatches i { aspect-ratio: 1; border-radius: 9px; box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.2); transition: transform 0.2s, box-shadow 0.2s; }
.gpaint-swatches i.on { transform: scale(1.12); box-shadow: 0 0 0 3px var(--gold), inset -3px -3px 0 rgba(0, 0, 0, 0.2); }
.gpaint-swatches i.is-glow { box-shadow: 0 0 10px rgba(110, 243, 255, 0.6), inset -3px -3px 0 rgba(0, 0, 0, 0.2); }
.gpaint-side .gpaint-status { margin-top: 16px; min-height: 4.2em; letter-spacing: 0; text-transform: none; font: 800 0.98rem/1.4 var(--display); color: var(--gold); }
.gpaint-status.flash { animation: rise 0.45s both; }
@media (max-width: 820px) {
  .gpaint-body { grid-template-columns: 1fr; }
  .gpaint-tools { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .gpaint-side { text-align: center; }
  .gpaint-swatches { grid-template-columns: repeat(7, 1fr); }
}

/* ---- calls to action ---------------------------------------------------------------- */
.gcta { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 2.4em; padding: clamp(24px, 4vw, 40px); border-radius: 30px; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 70% 90% at 0% 0%, rgba(126, 217, 87, 0.18), transparent 60%), radial-gradient(ellipse 60% 80% at 100% 100%, rgba(179, 140, 255, 0.22), transparent 60%), #0f1a30;
  border: 1px solid rgba(126, 217, 87, 0.4); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.gcta.has-art { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.gcta::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 34px), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 34px); }
.gcta h3 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); color: #fff; }
.gcta-lead { margin-top: 10px; color: #d3dcef; font-size: 1.05rem; }
.gcta .cta { align-items: flex-start; margin-top: 22px; }
.gcta .cta-note { justify-content: flex-start; }
.gcta-art { position: relative; height: 240px; }
.gcta-art img { position: absolute; bottom: 0; width: 170px; height: 170px; left: calc(50% - 85px + var(--x, 0) * 86px); filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.5));
  animation: gfloat 5s ease-in-out infinite; animation-delay: calc(var(--k) * -1.6s); }
.gcta-art img:nth-child(1) { z-index: 2; width: 200px; height: 200px; left: calc(50% - 100px); }
.gcta-art img:nth-child(2) { --x: -1; }
.gcta-art img:nth-child(3) { --x: 1; }
.gcta-license { margin-top: 2.4em; max-width: none; }
.gcta-steps { margin-top: 2.4em; padding: clamp(22px, 3.6vw, 34px); border-radius: 28px; background: linear-gradient(180deg, rgba(126, 217, 87, 0.08), rgba(126, 217, 87, 0.02)); border: 1px solid rgba(126, 217, 87, 0.3); text-align: center; }
.gsteps-title { font-size: clamp(1.5rem, 3vw, 2.1rem); color: #fff; }
.gcta-steps .steps { margin-top: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: left; max-width: none; }
.gcta-steps .cta { margin-top: 24px; }
.gphone { margin-top: 18px; }
.gphone-text { color: var(--muted); font-size: 0.98rem; }
.gphone .phone-actions { justify-content: flex-start; }
.ghero .gphone { max-width: 440px; text-align: center; }
.ghero .gphone .phone-actions { justify-content: center; }
@media (max-width: 820px) {
  .gcta.has-art { grid-template-columns: 1fr; }
  .gcta-art { height: 180px; order: -1; }
  .gcta-art img { width: 130px; height: 130px; left: calc(50% - 65px + var(--x, 0) * 66px); }
  .gcta-art img:nth-child(1) { width: 160px; height: 160px; left: calc(50% - 80px); }
  .gcta-steps .steps { grid-template-columns: 1fr; }
}

/* ---- questions, end of the article ------------------------------------------------------ */
.gfaq .faq { max-width: none; margin-top: 16px; }
.gfaq .faq summary { font-size: 1.08rem; color: var(--ink); }
.gfaq .faq details p { font-size: 1.02rem; }
.gend { margin-top: 3em; padding: 24px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.gauthor { display: flex; gap: 16px; align-items: center; }
.gauthor img { width: 56px; height: 56px; flex: none; }
.gauthor b { font: 800 1.1rem var(--display); color: #fff; }
.gauthor p { margin-top: 2px; font-size: 0.98rem; color: var(--muted); line-height: 1.5; }
.gdates { margin-top: 14px; font: 700 0.88rem var(--display); color: var(--muted); }
.gshare { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.gshare a { font: 800 0.9rem var(--display); color: var(--ink); }
.glangs { margin-top: 16px; }
.glangs summary { cursor: pointer; font: 800 0.9rem var(--display); color: var(--ink); }
.glangs summary span { margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--panel-2); color: var(--muted); font-size: 0.8rem; }
.glangs ul { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; padding: 0; list-style: none; }
.glangs a { font: 700 0.86rem var(--display); color: var(--muted); text-decoration: none; }
.glangs a:hover { color: var(--ink); }

/* ---- the table of contents ------------------------------------------------------------------ */
.gtoc { position: fixed; left: max(18px, calc((100vw - 1120px) / 2 - 250px)); top: 100px; z-index: 20; width: 220px; opacity: 0; visibility: hidden; transform: translateX(-12px);
  transition: opacity 0.4s, transform 0.4s, visibility 0.4s; }
body.toc-on .gtoc { opacity: 1; visibility: visible; transform: none; }
.gtoc-title { font: 800 0.76rem var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.gtoc ol { list-style: none; margin: 12px 0 0; padding: 0; border-left: 2px solid var(--line); }
.gtoc li a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; font: 700 0.86rem/1.35 var(--display); color: var(--muted); text-decoration: none; transition: color 0.2s, border-color 0.2s; }
.gtoc li a:hover { color: var(--ink); }
.gtoc li a.on { color: #fff; border-left-color: var(--violet); }
.gtoc-cta { display: flex; gap: 10px; align-items: center; margin-top: 22px; padding: 12px; border-radius: 16px; text-decoration: none; background: rgba(126, 217, 87, 0.1); border: 1px solid rgba(126, 217, 87, 0.4); transition: transform 0.2s, background 0.2s; }
.gtoc-cta:hover { transform: translateY(-3px); background: rgba(126, 217, 87, 0.18); }
.gtoc-cta span { display: flex; flex-direction: column; line-height: 1.2; }
.gtoc-cta b { font: 800 0.95rem var(--display); color: #fff; }
.gtoc-cta small { font: 700 0.78rem var(--display); color: var(--muted); }
@media (max-width: 1599px) { .gtoc { display: none; } }
.gtoc-mobile { margin-bottom: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.gtoc-mobile summary { cursor: pointer; padding: 14px 18px; font: 800 0.95rem var(--display); color: var(--ink); list-style: none; }
.gtoc-mobile summary::after { content: "+"; float: right; color: var(--grass); font-size: 1.3rem; line-height: 1; }
.gtoc-mobile[open] summary::after { content: "–"; }
.gtoc-mobile ol { margin: 0; padding: 0 18px 14px 38px; }
.gtoc-mobile a { color: var(--muted); font: 700 0.95rem/1.9 var(--display); text-decoration: none; }
@media (min-width: 1600px) { .gtoc-mobile { display: none; } }

/* ---- hub and topics ----------------------------------------------------------------------- */
.gsection { padding: clamp(60px, 8vw, 110px) var(--gutter) 0; }
.gsection:last-child { padding-bottom: clamp(60px, 8vw, 110px); }
.gprose { max-width: 760px; margin: 0 auto; font-size: 1.12rem; line-height: 1.75; color: #d3dcef; }
.gprose strong { color: var(--ink); }
.gprose a { color: var(--ink); text-decoration-color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gtopic-intro { padding-top: clamp(40px, 6vw, 70px); }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; max-width: 1180px; margin: clamp(30px, 4vw, 50px) auto 0; }
.gfeatured-card { max-width: 1180px; margin: clamp(30px, 4vw, 50px) auto 0; }
.gcard { --accent: var(--violet); }
.gcard-link { display: flex; flex-direction: column; height: 100%; border-radius: 26px; overflow: hidden; text-decoration: none; background: var(--panel); border: 1px solid var(--line);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s, box-shadow 0.35s; }
.gcard-link:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.gcard-cover { position: relative; height: 230px; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 70% 80% at 50% 100%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%), linear-gradient(180deg, #121c3a, #1b1640); }
.gcard-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.6;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 28px), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 28px); }
.gcard-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0.55; }
.gcard-glow { position: absolute; left: 50%; bottom: -60px; width: 260px; height: 140px; margin-left: -130px; border-radius: 50%; background: var(--accent); opacity: 0.4; filter: blur(40px); }
.gcard-skins img { position: absolute; bottom: -6px; width: 170px; height: 170px; left: calc(50% - 85px + var(--x, 0) * 96px);
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.5)); transition: transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); }
.gcard-skins img:nth-child(1) { z-index: 2; width: 200px; height: 200px; left: calc(50% - 100px); }
.gcard-skins img:nth-child(2) { --x: -1; }
.gcard-skins img:nth-child(3) { --x: 1; }
.gcard-skins img:nth-child(2), .gcard-skins img:nth-child(3) { transform: scale(0.82); transform-origin: 50% 100%; }
.gcard-link:hover .gcard-skins img:first-child { transform: translateY(-10px) scale(1.04); }
.gcard-link:hover .gcard-skins img:nth-child(2) { transform: scale(0.86) rotate(-7deg) translateX(-10px); }
.gcard-link:hover .gcard-skins img:nth-child(3) { transform: scale(0.86) rotate(7deg) translateX(10px); }
.gcard-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 20px; }
.gcard-topic { font: 800 0.76rem var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.gcard h3 { margin-top: 8px; font-size: 1.35rem; color: #fff; }
.gcard-text { margin-top: 8px; color: var(--muted); font-size: 0.98rem; flex: 1; }
.gcard-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font: 700 0.85rem var(--display); color: var(--muted); }
.gcard-go { padding: 7px 14px; border-radius: 11px; font: 800 0.9rem var(--display); color: #0d2a0f; background: var(--grass); box-shadow: 0 4px 0 var(--grass-3); transition: transform 0.15s; }
.gcard-link:hover .gcard-go { transform: translateY(-2px); }
.gcard-big .gcard-link { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.gcard-big .gcard-cover { height: auto; min-height: 340px; }
.gcard-big .gcard-skins img { width: 230px; height: 230px; left: calc(50% - 115px + var(--x, 0) * 130px); }
.gcard-big .gcard-skins img:nth-child(1) { width: 270px; height: 270px; left: calc(50% - 135px); }
.gcard-big .gcard-body { padding: clamp(24px, 3vw, 40px); justify-content: center; }
.gcard-big h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.gcard-big .gcard-text { flex: 0; font-size: 1.05rem; }
@media (max-width: 820px) { .gcard-big .gcard-link { grid-template-columns: 1fr; } .gcard-big .gcard-cover { min-height: 260px; } }

.gtopics { max-width: 1180px; }
.gtopic { padding: 0; }
.gtopic a { display: block; height: 100%; padding: 26px 24px 22px; text-decoration: none; color: inherit; }
.gtopic-count { display: inline-block; margin-top: 14px; padding: 4px 11px; border-radius: 99px; font: 800 0.8rem var(--display); color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }

.gexplore { padding: 0; }
.gexplore a { display: block; height: 100%; text-decoration: none; color: inherit; }
.gexplore img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.gexplore:hover img { transform: scale(1.06); }
.gexplore h3 { margin: 16px 22px 0; font-size: 1.2rem; }
.gexplore p { margin: 6px 22px 22px; color: var(--muted); font-size: 0.96rem; }
.gexplore-grid { margin-bottom: 0; }

@keyframes gfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

@media (prefers-reduced-motion: reduce) {
  .gcard-skins img, .gcta-art img, .gcompare-art.voxel img, .flat-cube { animation: none !important; }
  .ggallery-grid li { animation: none; }
}
