/* GitHub Wrapped by PrintyPlay (/github-wrapped/). Standalone page. Minimal + Swiss (grid, hairline rules, flush-left grotesk) + postmodern shapes and flat colour. No gradients, no tints.
   Type: Inter Tight (grotesk) + JetBrains Mono for labels, both SIL OFL and self-hosted. */
@font-face { font-family: "GW Sans"; src: url(intertight-latin.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "GW Mono"; src: url(jbmono-bold-latin.woff2) format("woff2"); font-weight: 700; font-display: swap; }
:root { --gwd: "GW Sans", "Helvetica Neue", Arial, system-ui, sans-serif; --gwm: "GW Mono", ui-monospace, Consolas, monospace;
  --bh-k: #111111; --bh-c: #f2ede4; --bh-r: #e63a2e; --bh-y: #f7c31b; --bh-b: #2456d6; --bh-p: #ff6fb5; --bh-g: #22b14c; --bh-line: #2c2c2c; }
.gw-overlay, .gw-loading, .gw-err, body.bare { --display: var(--gwd); --body: var(--gwd); }

/* ---------- Standalone landing ---------- */
body.bare { margin: 0; background: var(--bh-k); color: var(--bh-c); font-family: var(--gwd); }
.bh { min-height: 100dvh; display: flex; flex-direction: column; }
.bh a { color: inherit; }
.bh-top { border-bottom: 1.5px solid var(--bh-line); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px clamp(18px, 4vw, 48px); }
.bh-brand { display: inline-flex; align-items: center; gap: 9px; font: 600 17px var(--gwd); text-decoration: none; }
.bh-brand svg { width: 28px; height: 28px; }
.bh-tag { font: 700 11.5px var(--gwm); letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.bh-hero { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(8px, 3vw, 36px) clamp(18px, 4vw, 48px) clamp(28px, 4vw, 48px); }
@media (min-width: 900px) { .bh-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.bh h1 { font: 800 clamp(58px, 11vw, 136px)/.86 var(--gwd); letter-spacing: -.055em; color: var(--bh-c); margin: 0 0 22px; }
.bh-k { display: block; border-top: 2px solid var(--bh-c); padding-top: 12px; max-width: 540px; font: 700 12.5px var(--gwm); letter-spacing: .18em; text-transform: uppercase; color: var(--bh-y); margin-bottom: 22px; }
.bh-lead { font: 400 clamp(17px, 2vw, 20px)/1.45 var(--gwd); color: rgba(242, 237, 228, .72); max-width: 34ch; margin: 0 0 30px; }
.bh .gw-form { display: grid; gap: 16px; max-width: 540px; }
.bh .gw-row { display: flex; align-items: center; gap: 4px; border-bottom: 3px solid var(--bh-c); transition: border-color .2s; }
.bh .gw-row:focus-within { border-color: var(--bh-y); }
.bh .gw-row .pre { font: 700 17px var(--gwm); opacity: .45; white-space: nowrap; }
.bh .gw-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--bh-c); font: 700 24px var(--gwm); padding: 10px 2px; }
.bh .gw-row input::placeholder { color: rgba(242, 237, 228, .3); }
.bh-go { justify-self: start; display: inline-flex; align-items: center; gap: 14px; border: 0; border-radius: 0; background: var(--bh-y); color: var(--bh-k); font: 700 19px var(--gwd); letter-spacing: -.01em; padding: 17px 28px; cursor: pointer; transition: background .2s, color .2s; }
.bh-go span { transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.bh-go:hover { background: var(--bh-r); color: #fff; } .bh-go:hover span { transform: translateX(6px); }
.bh .gw-opts { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; font: 500 14.5px var(--gwd); }
.bh .gw-opts label { display: inline-flex; align-items: center; gap: 8px; color: rgba(242, 237, 228, .65); }
.bh .gw-opts select { background: var(--bh-k); color: var(--bh-c); border: 1.5px solid var(--bh-line); border-radius: 0; padding: 6px 8px; font: 600 14px var(--gwd); }
.bh .gw-vs-toggle { background: none; border: 0; padding: 0; color: var(--bh-c); font: 600 14.5px var(--gwd); cursor: pointer; text-decoration: underline; text-decoration-color: var(--bh-r); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.bh .gw-swatches { display: inline-flex; gap: 7px; }
.bh .gw-swatches button { width: 20px; height: 20px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; box-shadow: 0 0 0 1.5px var(--bh-line); }
.bh .gw-swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bh-k), 0 0 0 4px var(--bh-c); }
.bh .gw-error { min-height: 1.3em; margin: 0; color: #ff7a6e; font-weight: 600; }

/* Hero: decorative contribution graph in GitHub greens */
.bh-graph { width: min(100%, 560px); justify-self: center; display: grid; gap: 6px; font: 700 11px var(--gwm); color: rgba(242, 237, 228, .55); }
.bh-gh { display: flex; justify-content: space-between; border-top: 2px solid var(--bh-c); padding-top: 10px; margin-bottom: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--bh-c); }
.bh-mons { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 8px; }
.bh-cells { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.bh-cells i, .bh-legend i { display: block; aspect-ratio: 1; border-radius: 2px; background: #262626; }
.bh-graph .l1 { background: #0e4429; } .bh-graph .l2 { background: #006d32; } .bh-graph .l3 { background: #26a641; } .bh-graph .l4 { background: #39d353; }
.bh-cells i { animation: bh-in .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--w) * 28ms + 150ms); }
.bh-cells + .bh-mons + .bh-cells i { animation-delay: calc(var(--w) * 28ms + 900ms); }
.bh-cells i.b { animation: bh-in .5s cubic-bezier(.2, .8, .2, 1) both, bh-blink 9s ease-in-out infinite; animation-delay: calc(var(--w) * 28ms + 150ms), calc(var(--k) * 1s + 2s); }
@keyframes bh-in { from { opacity: 0; transform: scale(.2); } }
@keyframes bh-blink { 0%, 86%, 100% { transform: none; } 90% { background: #f2ede4; transform: scale(1.25); } }
.bh-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 8px; }
.bh-legend i { width: 12px; }
.bh-legend span { margin: 0 4px; }

/* Live usage counter (real numbers from /api/wrapped-stats) */
.bh-count { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: -12px 0 28px; font: 700 12px var(--gwm); letter-spacing: .1em; text-transform: uppercase; color: rgba(242, 237, 228, .6); }
.bh-count b { font: 800 22px var(--gwd); letter-spacing: -.03em; color: #39d353; margin-right: 6px; font-variant-numeric: tabular-nums; }
.bh-count span::before { content: ""; display: inline-block; width: 8px; height: 8px; background: #39d353; margin-right: 8px; vertical-align: 2px; }

/* Featured public profiles */
.bh-devs { width: 100%; max-width: 1240px; margin: 0 auto; box-sizing: border-box; padding: 8px clamp(18px, 4vw, 48px) 36px; }
.bh-devs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; border-top: 2px solid var(--bh-c); padding-top: 14px; margin-bottom: 18px; }
.bh-devs-head h2 { margin: 0; font: 800 clamp(28px, 4vw, 44px)/1 var(--gwd); letter-spacing: -.045em; color: var(--bh-c); }
.bh-devs-head p { margin: 0; color: rgba(242, 237, 228, .6); font-size: 15px; }
.bh-devs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0; border-left: 1.5px solid var(--bh-line); border-top: 1.5px solid var(--bh-line); }
.bh-dev { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto auto auto; column-gap: 12px; text-align: left; background: none; border: 0; border-right: 1.5px solid var(--bh-line); border-bottom: 1.5px solid var(--bh-line); color: var(--bh-c); padding: 16px; cursor: pointer; font-family: var(--gwd); transition: background .2s, color .2s; }
.bh-dev img { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 50%; background: #222; }
.bh-dev .nm { font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.bh-dev .hd { font: 700 12px var(--gwm); opacity: .55; }
.bh-dev .kn { grid-column: 1 / -1; margin-top: 12px; font-size: 14px; opacity: .75; }
.bh-dev .go { grid-column: 1 / -1; margin-top: 10px; font: 700 12px var(--gwm); letter-spacing: .1em; text-transform: uppercase; color: #39d353; }
.bh-dev.vs { grid-template-columns: 1fr; }
.bh-dev.vs .go { color: var(--bh-y); }
.bh-dev:hover, .bh-dev:focus-visible { background: #39d353; color: #0d1117; outline: 0; }
.bh-dev:hover .go, .bh-dev:focus-visible .go { color: #0d1117; }
.bh-dev.vs:hover, .bh-dev.vs:focus-visible { background: var(--bh-y); }
@media (prefers-reduced-motion: reduce) { .bh-cells i { animation: none !important; } }

.bh-more, .bh-info { width: 100%; max-width: 1240px; margin: 0 auto; box-sizing: border-box; padding: 0 clamp(18px, 4vw, 48px) 36px; }
.bh-info-grid { display: grid; gap: 28px clamp(24px, 4vw, 56px); border-top: 2px solid var(--bh-c); padding-top: 18px; }
@media (min-width: 900px) { .bh-info-grid { grid-template-columns: 1.1fr 1fr 1fr; } }
.bh-info h2, .bh-more h2 { margin: 0 0 12px; font: 800 clamp(26px, 3.4vw, 40px)/1.02 var(--gwd); letter-spacing: -.045em; color: var(--bh-c); }
.bh-info h3 { margin: 4px 0 12px; font: 700 12px var(--gwm); letter-spacing: .14em; text-transform: uppercase; color: #39d353; }
.bh-info p { margin: 0; color: rgba(242, 237, 228, .72); line-height: 1.55; max-width: 46ch; }
.bh-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; color: rgba(242, 237, 228, .82); line-height: 1.45; counter-reset: s; }
.bh-list li { position: relative; padding-left: 22px; }
ul.bh-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 2px; background: #26a641; }
ol.bh-list li { counter-increment: s; padding-left: 30px; }
ol.bh-list li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: .1em; font: 700 12px var(--gwm); color: var(--bh-y); }
.bh-list b { color: var(--bh-c); }
.bh-more { padding-top: 8px; }
.bh-more h2 { border-top: 2px solid var(--bh-c); padding-top: 18px; }
.bh-faq { border-top: 1.5px solid var(--bh-line); }
.bh-faq details { border-bottom: 1px solid var(--bh-line); }
.bh-faq summary { cursor: pointer; list-style: none; padding: 14px 28px 14px 0; position: relative; font: 600 16px var(--gwd); color: var(--bh-c); }
.bh-faq summary::-webkit-details-marker { display: none; }
.bh-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 700 18px var(--gwm); color: #39d353; }
.bh-faq details[open] summary::after { content: "−"; }
.bh-faq p { margin: 0 0 16px; color: rgba(242, 237, 228, .72); line-height: 1.6; max-width: 76ch; }
.bh-indep { margin: 18px 0 0; font-size: 14px; color: rgba(242, 237, 228, .5); }
.bh-indep a { color: var(--bh-c); }
.bh-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 18px clamp(18px, 4vw, 48px); font: 700 11px var(--gwm); letter-spacing: .1em; text-transform: uppercase; color: rgba(242, 237, 228, .45); }
.bh-foot a { text-decoration: none; } .bh-foot a:hover { color: var(--bh-y); }

/* ---------- Story overlay ---------- */
.gw-overlay { position: fixed; inset: 0; z-index: 100; background: #0a0a0a; display: grid; place-items: center; touch-action: manipulation; user-select: none; -webkit-user-select: none; font-family: var(--display); }
.gw-frame { position: relative; width: 100vw; height: 100dvh; overflow: hidden; container-type: size; }
@media (min-width: 700px) { .gw-frame { height: min(94dvh, calc(100vw * 16 / 9)); width: min(100vw, calc(94dvh * 9 / 16)); border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); } }
.gw-bars { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 6; }
.gw-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; mix-blend-mode: difference; }
.gw-bar i { display: block; height: 100%; width: 0; background: #fff; }
.gw-top { position: absolute; top: 22px; left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; z-index: 6; }
.gw-top img { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.gw-top .who { flex: 1; font: 700 13px var(--gwm); color: var(--fg, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-ibtn { border: 0; width: 34px; height: 34px; border-radius: 0; background: none; color: var(--fg, #fff); display: grid; place-items: center; padding: 0; cursor: pointer; }
.gw-tap { position: absolute; top: 70px; bottom: 46px; border: 0; background: transparent; z-index: 3; padding: 0; cursor: pointer; }
.gw-tap.prev { left: 0; width: 30%; } .gw-tap.next { right: 0; width: 70%; }
.gw-tap:focus-visible { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: -6px; }
.gw-made { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; z-index: 6; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--fg, #fff); opacity: .92; }
.gw-made svg { width: 20px; height: 20px; }
.gw-made b { font-weight: 700; }

.gw-slide { position: absolute; inset: 0; padding: 84px 26px 56px; display: flex; flex-direction: column; visibility: hidden; pointer-events: none; overflow: hidden; isolation: isolate; background: var(--bg); color: var(--fg); z-index: 1; }
.gw-slide.on { visibility: visible; pointer-events: auto; z-index: 2; }
.gw-slide.prev { visibility: visible; z-index: 1; }
/* the travelling Bauhaus shape (moves and morphs between slides) */
.gw-shape { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 4; pointer-events: none; opacity: 0;
  transition: transform .95s cubic-bezier(.7, 0, .2, 1), width .95s cubic-bezier(.7, 0, .2, 1), height .95s cubic-bezier(.7, 0, .2, 1),
    clip-path .8s cubic-bezier(.7, 0, .2, 1), border-radius .8s cubic-bezier(.7, 0, .2, 1), background-color .5s ease, opacity .4s ease; }
.gw-slide .k { display: flex; justify-content: space-between; gap: 12px; font: 700 12px var(--gwm); letter-spacing: .14em; text-transform: uppercase; color: var(--fg); border-top: 2px solid var(--fg); padding-top: 10px; margin-bottom: 18px; }
.gw-slide .k::before { content: attr(data-n); order: 2; opacity: .6; }
.gw-slide h2, .gw-slide h3, .gw-err h2 { color: inherit; }
.gw-slide h2 { font-size: calc(clamp(36px, 11vw, 58px) * var(--fs, 1)); line-height: .92; margin: 0 0 16px; font-weight: 800; letter-spacing: -.05em; text-wrap: balance; }
.gw-slide p { font-family: var(--body); font-size: max(14px, calc(17.5px * var(--fs, 1))); font-weight: 400; line-height: 1.4; margin: 0; opacity: .8; }
.gw-slide .big { font-size: calc(clamp(96px, 31vw, 172px) * var(--fs, 1)); font-weight: 800; line-height: .84; letter-spacing: -.065em; color: var(--ac); font-variant-numeric: tabular-nums; }
.gw-slide .push { margin-top: auto; }
.gw-slide .note { font-size: 14px; opacity: .8; margin-top: 16px; }
.gw-slide .box { background: none; border-radius: 0; border-left: 4px solid var(--ac); padding: 6px 0 6px 14px; }
.gw-slide .hl { color: var(--ac); }

.gw-rv { opacity: 0; transform: translateY(26px); }
.on .gw-rv { animation: gw-rise .9s cubic-bezier(.16, 1, .3, 1) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes gw-rise { to { opacity: 1; transform: none; } }
/* headings reveal word by word from behind a mask */
.gw-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.gw-w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: 0 100%; }
.on .gw-w > span { animation: gw-word .8s cubic-bezier(.16, 1, .3, 1) forwards; animation-delay: calc(var(--wd, 0) * 1ms); }
@keyframes gw-word { to { transform: none; } }
.gw-slide h2.gw-rv { transform: none; }
/* big numbers land with weight */
.gw-slide .big.gw-rv { transform: scale(1.9); transform-origin: 0 70%; }
.on .big.gw-rv { animation: gw-land .9s cubic-bezier(.2, .9, .25, 1) forwards; animation-delay: calc(var(--d, 0) * 1ms + 500ms); }
@keyframes gw-land { 0% { opacity: 0; transform: scale(1.9) rotate(-4deg); } 45% { opacity: 1; transform: scale(.94) rotate(0); } 70% { transform: scale(1.03); } 100% { opacity: 1; transform: none; } }
.gw-pop { opacity: 0; }
.on .gw-pop { animation: gw-pop .8s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes gw-pop { 0% { opacity: 0; transform: scale(.4) rotate(-10deg); } 55% { opacity: 1; transform: scale(1.08) rotate(3deg); } 78% { transform: scale(.97) rotate(-1deg); } 100% { opacity: 1; transform: none; } }

/* intro */
.gw-avatar { width: calc(124px * var(--fs, 1)); height: calc(124px * var(--fs, 1)); border-radius: 50%; border: 5px solid var(--ac); object-fit: cover; background: rgba(0, 0, 0, .1); }
.gw-year { font-size: calc(clamp(110px, 38vw, 190px) * var(--fs, 1)); font-weight: 800; line-height: .82; letter-spacing: -.07em; margin-top: auto; color: var(--ac); }
.gw-stamp { display: inline-block; font: 700 13px var(--gwm); padding: 6px 10px; border: 2px solid currentColor; border-radius: 0; }

.gw-tally { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gw-tally .box b { display: block; font-size: 32px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.gw-tally .box span { font-family: var(--body); font-size: 13px; opacity: .78; }

/* month calendars */
.gw-mcals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px 14px; margin: 16px auto 0; width: min(100%, calc((100cqh - 470px) / 1.15 * var(--fs, 1))); }
.gw-mcal span { display: block; font: 700 11px var(--gwm); opacity: .7; margin-bottom: 4px; }
.gw-heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.gw-heat i { aspect-ratio: 1; border-radius: 2px; background: var(--h0, #161b22); opacity: 0; }
.gw-heat i.pad { visibility: hidden; }
.gw-heat i.fut { background: transparent; box-shadow: inset 0 0 0 1px var(--h0, #161b22); }
.gw-heat i.l1 { background: var(--h1); } .gw-heat i.l2 { background: var(--h2); } .gw-heat i.l3 { background: var(--h3); } .gw-heat i.l4 { background: var(--h4); }
.on .gw-heat i { animation: gw-cell .4s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes gw-cell { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }

/* vertical bars (months, quarters, weekdays) */
.gw-vbars { display: flex; align-items: flex-end; gap: 5px; height: calc(34cqh * var(--fs, 1)); margin-top: 18px; }
.gw-vbars > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.gw-vbars b { width: 100%; height: 0; border-radius: 0; background: none; box-shadow: inset 0 0 0 2px var(--fg); transition: height 1.1s cubic-bezier(.16, 1, .3, 1); }
.gw-vbars .pk b { background: var(--ac); box-shadow: none; }
.gw-vbars span { font: 700 10.5px var(--gwm); }
.gw-vbars em { font-style: normal; font-size: 12px; font-weight: 700; opacity: 0; transition: opacity .4s .9s; }
.on .gw-vbars em { opacity: .85; }
.gw-split { display: flex; height: 16px; border-radius: 0; overflow: hidden; margin-top: 12px; box-shadow: inset 0 0 0 2px var(--fg); }
.gw-split i { display: block; height: 100%; width: 0; background: var(--ac); transition: width 1s .5s cubic-bezier(.2, .8, .2, 1); }

/* streak dots */
.gw-dots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 18px; max-height: calc(26cqh * var(--fs, 1)); overflow: hidden; }
.gw-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ac); opacity: 0; }
.on .gw-dots i { animation: gw-cell .3s forwards; animation-delay: calc(var(--d) * 1ms); }


/* languages */
.gw-langs { display: flex; flex-direction: column; gap: 14px; }
.gw-lang { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.gw-lang strong { font-size: 20px; font-weight: 600; }
.gw-lang em { font-style: normal; font: 600 13px var(--gwm); opacity: .85; align-self: end; }
.gw-lang .tr { grid-column: 1 / -1; height: 14px; border-radius: 0; box-shadow: inset 0 -2px 0 var(--fg); overflow: hidden; }
.gw-lang .tr i { display: block; height: 100%; width: 0; border-radius: 0; background: var(--fg); transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.gw-lang:first-child .tr i { background: var(--ac); }

/* repos */
.gw-repos { display: flex; flex-direction: column; gap: 11px; }
.gw-repo { background: var(--fg); color: var(--bg); border-radius: 18px; padding: 14px 16px; }
.gw-repo .rk { font: 700 12px var(--gwm); color: var(--ac); }
.gw-repo .rn { font: 700 16px var(--gwm); word-break: break-all; }
.gw-repo .rd { font-family: var(--body); font-size: 13px; opacity: .75; margin: 5px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gw-repo .rm { display: flex; gap: 14px; font: 600 12px var(--gwm); }

/* persona */
/* geometric glyph instead of emoji (persona, verdict, streak) */
.gw-glyph { margin: 10px 0 14px; }
.gw-glyph i, .gw-sheet .ic i { display: block; width: calc(clamp(70px, 22vw, 110px) * var(--fs, 1)); aspect-ratio: 1; background: var(--ac); }
.gw-glyph i[data-s="circle"], .gw-sheet .ic i[data-s="circle"] { border-radius: 50%; }
.gw-glyph i[data-s="tri"], .gw-sheet .ic i[data-s="tri"] { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.gw-glyph i[data-s="half"], .gw-sheet .ic i[data-s="half"] { aspect-ratio: 2; border-radius: 999px 999px 0 0; }
.gw-glyph i[data-s="quarter"], .gw-sheet .ic i[data-s="quarter"] { border-radius: 100% 0 0 0; }
.gw-pname { font-size: calc(clamp(40px, 12vw, 62px) * var(--fs, 1)); font-weight: 800; letter-spacing: -.05em; line-height: .95; color: var(--ac); }
.gw-traits { display: flex; flex-wrap: wrap; gap: 8px; }
.gw-traits span { border: 2px solid var(--fg); border-radius: 0; padding: 5px 12px; font-weight: 600; font-size: 14px; }

/* compare */
.gw-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 20px 0; text-align: center; }
.gw-vs img { width: 100%; max-width: 120px; aspect-ratio: 1; border-radius: 50%; border: 4px solid var(--fg); object-fit: cover; justify-self: center; }
.gw-vs .x { font-size: 44px; font-weight: 700; color: var(--ac); }
.gw-vs .nm { font: 700 13px var(--gwm); margin-top: 8px; word-break: break-all; }
.gw-duel { display: flex; flex-direction: column; gap: 14px; }
.gw-duel .gw-drow > b { display: block; font-size: 14px; margin-bottom: 6px; font-weight: 600; }
.gw-duel .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gw-duel .side { border-radius: 0; padding: 10px 12px; background: none; box-shadow: inset 0 0 0 2px var(--fg); }
.gw-duel .side.win { background: var(--ac); color: var(--bg); box-shadow: none; }
.gw-duel .side strong { display: block; font-size: 26px; font-weight: 700; line-height: 1.05; }
.gw-duel .side small { font: 600 11px var(--gwm); opacity: .85; word-break: break-all; }

/* final */
.gw-final { padding-bottom: 54px; }
.gw-tabs { display: flex; gap: 6px; margin-bottom: 10px; position: relative; z-index: 7; }
.gw-tabs button { flex: 1; border: 0; border-radius: 0; padding: 8px 4px; font: 600 12.5px var(--display); background: none; box-shadow: inset 0 0 0 1.5px var(--fg); color: var(--fg); cursor: pointer; }
.gw-tabs button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.gw-canvas-wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.gw-canvas-wrap canvas { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 2px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.gw-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: relative; z-index: 7; }
.gw-acts button, .gw-acts a { border: 0; border-radius: 0; padding: 12px 8px; font: 700 14.5px var(--display); text-align: center; text-decoration: none; cursor: pointer; background: none; box-shadow: inset 0 0 0 2px var(--fg); color: var(--fg); }
.gw-acts .pri { background: var(--ac); color: var(--acfg, #fff); box-shadow: none; }
.gw-acts .wide { grid-column: 1 / -1; }
.gw-themes { display: flex; gap: 8px; justify-content: center; margin: 2px 0 10px; position: relative; z-index: 7; }
.gw-themes button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 0 0 1.5px var(--fg); cursor: pointer; padding: 0; }
.gw-themes button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ac); }

/* loading + errors */
.gw-loading { position: fixed; inset: 0; z-index: 101; display: grid; place-content: center; justify-items: center; gap: 24px; background: #111111; color: #fff; font-family: var(--display); }
.gw-loader { display: grid; grid-template-columns: repeat(12, 14px); gap: 5px; }
.gw-loader i { width: 14px; height: 14px; border-radius: 0; background: var(--bh-y); opacity: .12; animation: gw-pulse 1.4s infinite; }
@keyframes gw-pulse { 40% { opacity: 1; transform: scale(1.08); } }
.gw-loading p { font-size: 18px; margin: 0; }
.gw-err { position: fixed; inset: 0; z-index: 102; display: grid; place-content: center; text-align: center; padding: 30px; gap: 12px; background: #111111; color: var(--bh-c); font-family: var(--display); }
.gw-err .e { font: 800 90px/1 var(--gwd); color: var(--bh-y); }
.gw-err h2 { margin: 0; font-size: 2rem; }
.gw-err p { margin: 0 auto; color: rgba(242, 237, 228, .7); max-width: 40ch; }
.gw-toast { position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%); background: var(--bh-y); color: #111; padding: 10px 16px; border-radius: 0; font-weight: 700; z-index: 120; box-shadow: var(--shadow); }
body.gw-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .gw-overlay *, .gw-phone * { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .gw-rv, .gw-pop, .gw-heat i, .gw-dots i, .gw-w > span { opacity: 1; transform: none; filter: none; }
  .gw-slide { transform: none; }
  .gw-shape { transition: none; }
}

/* share sheet (inside the final slide, above tap zones and the brand bar) */
.gw-sheet { position: absolute; inset: 0; z-index: 9; background: rgba(10, 8, 20, .55); display: flex; align-items: flex-end; backdrop-filter: blur(3px); }
.gw-sheet-in { width: 100%; background: var(--bg); color: var(--fg); border-radius: 0; padding: 16px 16px 22px; display: grid; gap: 8px; box-shadow: 0 -10px 40px rgba(0, 0, 0, .35); animation: gw-up .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes gw-up { from { transform: translateY(40px); opacity: 0; } }
.gw-sheet-head { display: flex; align-items: center; justify-content: space-between; font-size: 20px; padding: 0 4px 4px; }
.gw-sheet-x { border: 0; background: none; color: var(--fg); width: 32px; height: 32px; font-size: 26px; line-height: 1; cursor: pointer; }
.gw-sheet [data-share] { display: flex; align-items: center; gap: 12px; text-align: left; border: 0; border-radius: 0; padding: 12px 14px; background: none; border-top: 1.5px solid var(--fg); color: var(--fg); cursor: pointer; font-family: var(--display); }
.gw-sheet [data-share] > .ic { width: 34px; display: grid; place-items: center; }
.gw-sheet .ic i { width: 26px; }
.gw-sheet [data-share] b { display: block; font-size: 17px; }
.gw-sheet [data-share] small { display: block; font-family: var(--body); font-size: 12.5px; opacity: .78; }
.gw-sheet [data-share].ready { box-shadow: inset 0 0 0 2px var(--ac); }
.gw-sheet [data-share].ready b::after { content: "  ready"; font: 700 11px var(--gwm); letter-spacing: .12em; text-transform: uppercase; color: var(--ac); }
.gw-sheet-note { min-height: 1.3em; margin: 2px 4px 0; font-family: var(--body); font-size: 13.5px; font-weight: 600; }

.gw-loader i:nth-child(3n+1) { background: var(--bh-r); } .gw-loader i:nth-child(3n+2) { background: var(--bh-b); } .gw-loader i:nth-child(4n) { border-radius: 50%; }
