/* b8ne.dev: a winter night. Bottone, the pressable 8, is the star; snow settles, the moon sets, buttons press. */

@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Martian Mono";
  src: url("/assets/fonts/martian-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Lilita One";
  src: url("/assets/fonts/lilita-one-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #000;
  --sky: #0d1030;
  --horizon: #2a1d6b;
  --polar: #10132e;
  --polar-2: #171b42;
  --line: #2b3170;
  --snow: #eef2ff;
  --frost: #a3abd9;
  --violet: #9d74ff;
  --violet-deep: #6a33e6;
  --blue: #5b93ff;
  --ice: #cfe6ff;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  /* Motion: things settle like snow, buttons spring back. */
  --out: cubic-bezier(.22, 1, .36, 1);
  --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.5%, 1.077 22.8%, 1.104 25.6%, 1.11 28.1%, 1.106 30.8%, 1.077 36.2%, 1.017 45.7%, .993 52.6%, .988 58.1%, .998 74.1%, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--polar);
  color: var(--snow);
  font: 400 1.0625rem/1.6 var(--text);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ice); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--snow); color: var(--polar); padding: .6rem 1rem; border-radius: 999px;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
/* Grid tracks may shrink below their content (the console shelf scrolls instead of widening the page). */
.loves, .contact, .product, .about, .entry, .dev, .langs { grid-template-columns: minmax(0, 1fr); }

/* Physical buttons: the whole site is named after one. */
.btn {
  --face: var(--violet-deep);
  --edge: #3d1699;
  display: inline-flex; align-items: center; gap: .55em;
  padding: .8em 1.35em .75em;
  border: 0; border-radius: 999px;
  background: var(--face); color: #fff;
  font: 600 1rem/1 var(--text);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 5px 0 var(--edge), 0 8px 18px rgb(0 0 0 / .35);
  transform: translateY(0);
  transition: transform .08s ease, box-shadow .08s ease, filter .2s ease;
}
.btn:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 0 var(--edge), 0 10px 22px rgb(0 0 0 / .35); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge), 0 3px 8px rgb(0 0 0 / .35); }
.btn--ghost { --face: #232a63; --edge: #0c0f2b; color: var(--snow); }
.btn--ice { --face: var(--ice); --edge: #7d99c8; color: #12163a; }
.btn--ice:hover { color: #12163a; }
.btn[aria-disabled="true"] { cursor: default; filter: saturate(.6); }
.btn[aria-disabled="true"]:hover, .btn[aria-disabled="true"]:active { transform: none; box-shadow: 0 5px 0 var(--edge), 0 8px 18px rgb(0 0 0 / .35); }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn.is-done { animation: pop .4s var(--spring); }

/* Header */
.top {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--gutter);
}
.logo {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--snow); text-decoration: none;
  font: 800 1.15rem/1 var(--display); letter-spacing: -.02em;
}
.logo img { width: 1.6rem; height: auto; transition: rotate .5s var(--spring); }
.logo:hover img { rotate: -14deg; }
.logo b { color: var(--violet); font-weight: inherit; }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 2.5vw, 1.8rem); font-weight: 500; }
.nav a { color: var(--snow); text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav .lang { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; transition: border-color .2s ease, background .2s ease; }
.nav .lang:hover { text-decoration: none; border-color: var(--violet); background: rgb(157 116 255 / .12); }

/* Hero: the night */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 8rem;
  background: linear-gradient(180deg, var(--night) 0%, var(--sky) 48%, var(--horizon) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 30%; z-index: -3;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 41% 26%, #dfe6ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 69% 31%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 83% 9%, #dfe6ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 27%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 5% 38%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 46%, #dfe6ff 50%, transparent 51%);
  background-size: 420px 300px;
  opacity: .8;
  animation: fade-in 1.6s ease both, twinkle 5s ease-in-out 1.6s infinite;
}
.aurora { position: absolute; inset: -10% -20% 30%; z-index: -2; pointer-events: none; filter: blur(42px); opacity: .85; animation: fade-in 2.6s var(--out) both; }
.aurora i {
  position: absolute; display: block; border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) {
  left: 0; top: 18%; width: 75%; height: 22%;
  background: linear-gradient(90deg, transparent, #7c4dff 30%, #4f7dff 70%, transparent);
  transform: rotate(-9deg);
}
.aurora i:nth-child(2) {
  left: 30%; top: 30%; width: 80%; height: 16%;
  background: linear-gradient(90deg, transparent, #3d6dff 25%, #a77bff 60%, transparent);
  transform: rotate(7deg);
  animation-duration: 34s; animation-delay: -8s;
}
.aurora i:nth-child(3) {
  left: 10%; top: 6%; width: 60%; height: 12%;
  background: linear-gradient(90deg, transparent, #6fd3ff 40%, transparent);
  opacity: .45;
  animation-duration: 40s; animation-delay: -16s;
}
@keyframes drift {
  from { translate: -6% 0; scale: 1 1; }
  to { translate: 8% 4%; scale: 1.15 .8; }
}
@keyframes twinkle { 50% { opacity: .55; } }
@keyframes fade-in { from { opacity: 0; } }
.snow { position: absolute; inset: 0; z-index: 0; pointer-events: none; width: 100%; height: 100%; }
/* A flat frozen plain: the word stands on its horizon. */
.ground {
  position: relative; z-index: 1;
  padding: clamp(1.6rem, 4vh, 2.6rem) 0 clamp(3.5rem, 9vh, 6rem);
  background: linear-gradient(180deg, #262b70 0%, #1b2054 20%, #141843 55%, var(--polar) 100%);
  box-shadow: 0 -1px 0 rgb(207 230 255 / .55), 0 -12px 40px rgb(157 116 255 / .25);
}
.ground::before {
  content: ""; position: absolute; z-index: -1; right: -8%; bottom: 100%; width: 46%; height: clamp(2rem, 6vw, 4.5rem);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(180deg, #343a8c, #2a2f78);
  box-shadow: inset 0 1px 0 rgb(207 230 255 / .45);
}

.moon {
  position: absolute; z-index: 2; top: clamp(5rem, 13vh, 8rem); right: clamp(1.5rem, 9vw, 9rem);
  width: clamp(3.4rem, 7vw, 5rem); aspect-ratio: 1; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 38% 35%, #fffdf6 0 40%, #e4e6ff 70%, #b9c0f2 100%);
  box-shadow: 0 0 40px 6px rgb(207 230 255 / .35), 0 0 120px 30px rgb(157 116 255 / .18);
  transition: transform .4s var(--spring), box-shadow .3s ease;
}
.moon:hover, .moon:focus-visible { transform: scale(1.1); box-shadow: 0 0 50px 12px rgb(207 230 255 / .5), 0 0 140px 40px rgb(157 116 255 / .28); }
.moon::after {
  content: ""; position: absolute; inset: 22% 18% auto auto; width: 18%; aspect-ratio: 1; border-radius: 50%;
  background: rgb(150 160 220 / .35); box-shadow: -1.3rem 1.1rem 0 -.1rem rgb(150 160 220 / .25);
}

/* Luna's card flies out of the moon and back into it. */
.luna {
  margin: auto; width: min(22rem, 100% - 2rem); padding: 1.4rem 1.5rem;
  border: 1px solid var(--line); border-radius: 1.25rem;
  background: var(--polar-2); color: var(--snow);
  box-shadow: 0 30px 80px rgb(0 0 0 / .6);
  transition: opacity .3s ease, scale .55s var(--spring), translate .55s var(--spring), overlay .55s allow-discrete, display .55s allow-discrete;
}
.luna:not(:popover-open) { opacity: 0; scale: .15; translate: 34vw -36vh; }
@starting-style { .luna:popover-open { opacity: 0; scale: .15; translate: 34vw -36vh; } }
.luna::backdrop { background: rgb(5 6 15 / .6); backdrop-filter: blur(3px); transition: opacity .3s ease, overlay .3s allow-discrete, display .3s allow-discrete; }
@starting-style { .luna:popover-open::backdrop { opacity: 0; } }
.luna h2 { font: 700 1.3rem/1.2 var(--display); margin-bottom: .5rem; }
.luna p { color: var(--frost); }
.luna__photo { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 1rem 0; border-radius: 1rem; }
.luna .btn { margin-top: .4rem; }

.hero__word { position: relative; z-index: 2; }
.word {
  display: flex; align-items: baseline;
  font: 800 clamp(5rem, 27vw, 19rem)/.8 var(--display);
  letter-spacing: -.045em;
  color: var(--snow);
  margin: 0 0 var(--sink, -.03em) -.04em;
  text-shadow: 0 0 60px rgb(157 116 255 / .35);
}
.word > span { display: block; }
.bottone {
  display: block; flex: none; position: relative;
  width: .66em; height: .86em; margin: 0 .03em 0 .01em; padding: 0;
  border: 0; background: none; cursor: pointer;
  font-size: inherit; color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.bottone svg { width: 100%; height: 100%; overflow: visible; }
.bottone__body {
  transform-box: fill-box; transform-origin: 50% 100%;
  rotate: var(--lean, 0deg);
  transition: transform .35s cubic-bezier(.34, 1.8, .5, 1), rotate .6s var(--out);
}
.bottone.is-down .bottone__body { transform: scale(1.1, .84); transition-duration: .07s, .6s; }
/* The eyes follow the pointer and keyboard focus (site.js sets --look-x and --look-y). */
.bottone__eyes {
  transform-box: fill-box; transform-origin: center;
  translate: var(--look-x, 0px) var(--look-y, 0px);
  transition: translate .25s var(--out);
  animation: blink 6s infinite;
}
.bottone.is-down .bottone__eyes { transform: scaleY(.25); animation: none; }
@keyframes blink { 0%, 96%, 100% { transform: scaleY(1); } 98% { transform: scaleY(.1); } }
.bottone .acc { display: none; }
.bottone[data-acc="headphones"] .acc--headphones,
.bottone[data-acc="crown"] .acc--crown,
.bottone[data-acc="strawhat"] .acc--strawhat,
.bottone[data-acc="party"] .acc--party { display: inline; }
.bottone { --bt-hi: #b79bff; --bt-mid: #7d45f2; --bt-lo: #4a1cb8; --bt-dish-hi: #9a6dff; --bt-dish-lo: #4f1fc2; --bt-feet: #3b1699; }
.bottone .s-hi { stop-color: var(--bt-hi); }
.bottone .s-mid { stop-color: var(--bt-mid); }
.bottone .s-lo { stop-color: var(--bt-lo); }
.bottone .s-dish-hi { stop-color: var(--bt-dish-hi); }
.bottone .s-dish-lo { stop-color: var(--bt-dish-lo); }
.bottone .feet { fill: var(--bt-feet); }
.bottone.is-gold { --bt-hi: #fff2b8; --bt-mid: #f3b532; --bt-lo: #a8640b; --bt-dish-hi: #ffd76a; --bt-dish-lo: #b9760f; --bt-feet: #7a4a08; }

/* Opening: the letters rise out of the snow, Bottone drops in and lands, the entry settles. */
.word { animation: intro-clip 2.2s; }
.word > span { animation: rise 1s var(--spring) .15s both; }
.word > span:last-child { animation-delay: .3s; }
.hero .bottone { animation: land .9s cubic-bezier(.34, 1.5, .5, 1) .45s both; }
.hero .bottone .bottone__body { animation: squash .5s ease-out .85s; }
.entry > * { animation: settle .7s var(--out) both; }
.entry > :nth-child(1) { animation-delay: 1s; }
.entry > :nth-child(2) { animation-delay: 1.08s; }
.entry > :nth-child(3) { animation-delay: 1.16s; }
.entry > :nth-child(4) { animation-delay: 1.24s; }
.entry > :nth-child(5) { animation-delay: 1.32s; }
@keyframes intro-clip { from, to { clip-path: inset(-50vh -50vw 0); } }
@keyframes rise { from { translate: 0 105%; } }
@keyframes land { from { translate: 0 -120%; opacity: 0; } 60% { opacity: 1; } to { translate: 0 0; } }
@keyframes squash { 30% { scale: 1.14 .8; } 60% { scale: .95 1.06; } }
@keyframes settle { from { opacity: 0; translate: 0 -.9rem; } }
@keyframes pop { 40% { scale: 1.12; } }
/* A new hat drops on his head and he hops for joy. */
.bottone.is-unlocked .bottone__body { animation: hop .6s var(--out); }
.bottone.is-unlocked .acc { animation: hat-drop .8s var(--spring) both; }
@keyframes hop { 35% { translate: 0 -14px; scale: .95 1.06; } 70% { translate: 0 0; scale: 1.08 .9; } }
@keyframes hat-drop { from { translate: 0 -70px; opacity: 0; } 30% { opacity: 1; } }

.entry { display: grid; gap: 1.1rem; max-width: 40rem; }
.pron { color: var(--frost); font-size: 1.1rem; }
.pron i { color: var(--snow); font-style: italic; letter-spacing: .04em; }
.pron small { font-size: .9rem; margin-left: .6rem; font-style: italic; }
.senses { display: grid; gap: .55rem; padding-left: 1.6rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.senses li::marker { font: 700 .95rem var(--display); color: var(--violet); }
.presses { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .7rem; color: var(--frost); font-size: .95rem; min-height: 1.6em; }
.presses .score { font: 600 .95rem/1 var(--mono); color: var(--ice); letter-spacing: .04em; }
.presses .msg.is-new { animation: pop .5s var(--spring); color: var(--snow); }
/* The score rolls like an odometer, one reel per digit. */
.odometer { display: inline-flex; vertical-align: middle; }
.odometer > span { height: 1.2em; overflow: hidden; }
.odometer > span > span { display: block; white-space: pre; line-height: 1.2em; translate: 0 calc(var(--d, 0) * -1.2em); transition: translate .5s var(--spring); }
.cta { display: flex; flex-wrap: wrap; gap: .9rem 1rem; margin-top: .4rem; }
.now { color: var(--frost); font-size: .95rem; }

/* Sections */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.hero + .luna + .section { padding-top: clamp(3rem, 6vw, 5rem); }
.section + .section { padding-top: 0; }
.h2 { font: 700 clamp(2rem, 5.2vw, 3.4rem)/1.05 var(--display); letter-spacing: -.03em; margin-bottom: clamp(2rem, 4vw, 3rem); text-wrap: balance; }
.h3 { font: 600 1.35rem/1.2 var(--display); letter-spacing: -.015em; margin-bottom: 1.2rem; }
.lead { font-size: 1.15rem; max-width: 40rem; color: var(--frost); }
.muted { color: var(--frost); }

/* Products: each keeps its own world inside the night. */
.product {
  position: relative; overflow: hidden;
  display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  padding: clamp(1.5rem, 4vw, 3.2rem);
  border-radius: 2rem;
}
.product + .product { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.product__name { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.product__name img { width: 3.2rem; height: 3.2rem; border-radius: .9rem; }
.product__body { display: grid; gap: 1rem; max-width: 34rem; }
.product__links { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .6rem; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.facts li { padding: .3rem .75rem; border-radius: 999px; font-size: .88rem; }

.gametome {
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgb(99 102 241 / .28), transparent 60%),
    radial-gradient(40rem 30rem at 0% 100%, rgb(168 85 247 / .22), transparent 60%),
    #161c28;
  border: 1px solid #2a3350;
}
.gametome h3 { font: 900 2rem/1 var(--text); letter-spacing: -.04em; }
.gametome .tagline { font-size: 1.35rem; font-weight: 600; line-height: 1.3; color: #fff; }
.gametome .facts li { background: rgb(99 102 241 / .16); color: #c7d2fe; }
.gametome .btn { --face: #6366f1; --edge: #3730a3; }
.gametome .btn--ghost { --face: #232c45; --edge: #0f141d; }
.gametome__shot { border-radius: 1rem; box-shadow: 0 30px 60px rgb(0 0 0 / .5); border: 1px solid #2a3350; transition: transform .6s var(--out), box-shadow .6s var(--out); }
.gametome:hover .gametome__shot { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 40px 70px rgb(0 0 0 / .55); }
.socials { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; }
.socials a {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  color: #c7d2fe; background: rgb(255 255 255 / .05);
  transition: background .2s ease, color .2s ease, scale .4s var(--spring);
}
.socials a:hover { color: #fff; background: rgb(255 255 255 / .12); scale: 1.15; }
.socials svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.small-label { font-size: .9rem; color: var(--frost); }

/* Gelatia keeps the blueberry sky of its store art: rays turning slowly behind the knight. */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rays { to { --spin: 18deg; } }
.gelatia-panel {
  --sun: 76% 56%;
  isolation: isolate;
  color: #fff6fb;
  border: 1px solid #3a2c7a;
  background:
    radial-gradient(circle at var(--sun), rgb(255 228 160 / .5), rgb(255 189 54 / .12) 12rem, transparent 22rem),
    radial-gradient(circle at var(--sun), transparent 30%, rgb(14 8 36 / .65) 100%),
    repeating-conic-gradient(from var(--spin) at var(--sun), #271d56 0 9deg, #43305a 9deg 18deg);
  animation: rays 8s linear infinite;
}
.gelatia-panel > * { position: relative; z-index: 1; }
.gelatia-panel h3 {
  font: 400 clamp(2.6rem, 6vw, 3.6rem)/1 "Lilita One", var(--display);
  color: #ffbd36;
  background: linear-gradient(180deg, #ffe680 20%, #ffb21f 85%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: .1em #140b2c; paint-order: stroke fill;
  filter: drop-shadow(0 .07em 0 #140b2c);
  letter-spacing: .01em;
}
.gelatia-panel .product__name img { border: 2px solid #140b2c; }
.gelatia-panel p { color: #efe6ff; font-weight: 500; }
.gelatia-panel .facts li { background: rgb(42 21 64 / .8); color: #ffd9ea; font-weight: 600; box-shadow: inset 0 0 0 1px #4a3a8a; }
.gelatia-panel .btn { --face: #ff6eaa; --edge: #140b2c; color: #fff; }
.gelatia-panel .btn--ghost { --face: #3a2c7a; --edge: #140b2c; }
.gelatia-panel__art { justify-self: center; width: min(70%, 19rem); filter: drop-shadow(0 18px 18px rgb(10 5 30 / .5)); transform-origin: 50% 100%; animation: jelly 2.6s ease-in-out infinite; }
.gelatia-panel > .coins { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.coins .coin:nth-child(1) { --x: 58%; --y: 16%; --s: 2.4rem; }
.coins .coin:nth-child(2) { --x: 89%; --y: 12%; --s: 1.9rem; --delay: -1.2s; }
.coins .coin:nth-child(3) { --x: 60%; --y: 72%; --s: 2.9rem; --delay: -2.1s; }
.coins .coin:nth-child(4) { --x: 90%; --y: 64%; --s: 2.2rem; --delay: -.6s; }
@keyframes jelly { 50% { scale: 1.035 .965; } }
/* Gelatia's gold coin, shared with the Gelatia page. */
.coin {
  position: absolute; left: var(--x); top: var(--y); width: var(--s, 2.4rem); aspect-ratio: 1;
  background: url("/assets/img/gelatia/coin.webp") center / contain no-repeat;
  filter: drop-shadow(0 6px 6px rgb(10 5 30 / .45));
  animation: coin-bob 3.4s ease-in-out var(--delay, 0s) infinite;
}
@keyframes coin-bob { 50% { translate: 0 -10px; rotate: 8deg; } }

.dev { display: grid; gap: 1rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.dev .h3 { grid-column: 1 / -1; margin-bottom: .2rem; }
.dev__item { display: grid; align-content: start; gap: .4rem; padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--polar-2); transition: border-color .3s ease; }
.dev__item:hover { border-color: #4a3f9e; }
.dev__item h4 { font: 600 1.15rem/1.25 var(--display); letter-spacing: -.01em; }
.dev__item p { color: var(--frost); max-width: 44rem; }
.stack { font-size: .9rem; color: var(--ice); }

.archive { margin-top: clamp(3rem, 6vw, 4.5rem); }
.archive table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.archive th { text-align: left; font-weight: 600; color: var(--frost); font-size: .85rem; padding: 0 1rem .7rem 0; }
.archive td { padding: .85rem 1rem .85rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.archive td:first-child { color: var(--frost); font-variant-numeric: tabular-nums; width: 4.5rem; }
.archive td:nth-child(2) { font-weight: 600; white-space: nowrap; }
.archive td:nth-child(3) { color: var(--frost); }
.archive td:last-child { text-align: right; white-space: nowrap; padding-right: 0; }
.archive tbody tr { transition: background .2s ease; }
.archive tbody tr:hover { background: linear-gradient(90deg, rgb(157 116 255 / .1), transparent 80%); }
.archive .private { color: var(--frost); font-size: .9rem; }

/* About */
.about { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about__photo { border-radius: 1.5rem; width: min(100%, 22rem); box-shadow: 0 0 0 1px var(--line), 0 30px 70px rgb(0 0 0 / .45), 0 0 90px rgb(157 116 255 / .18); }
.about__text { display: grid; gap: 1.1rem; max-width: 40rem; }
.about__text p { color: #d6dcfa; }
.facts-list { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.5rem; margin-top: .6rem; padding: 1.2rem 0; border-block: 1px solid var(--line); }
.facts-list dt { color: var(--frost); }
.langs { display: grid; gap: 2rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.langs__group { display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; padding: 0; list-style: none; }
.langs__group li { display: grid; gap: .25rem; }
.langs__hi { font: 700 clamp(1.6rem, 4vw, 2.4rem)/1.1 var(--display); letter-spacing: -.02em; transform-origin: 20% 100%; }
.langs__group li:hover .langs__hi { animation: wave .7s var(--out); }
@keyframes wave { 20% { rotate: -7deg; } 45% { rotate: 6deg; } 70% { rotate: -3deg; } }
.langs__hi:lang(ja), .langs__hi:lang(ko), .langs__hi:lang(ru), .langs__hi:lang(ar) { font-family: system-ui, "Noto Sans", sans-serif; font-weight: 700; }
.langs__name { font-size: .9rem; color: var(--frost); }
.langs--love .langs__hi { color: var(--violet); }

/* Things I love */
.shelf {
  --shelf-h: clamp(6.5rem, 12vw, 9.5rem);
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(9.5rem, 1fr); gap: clamp(1rem, 3vw, 2.5rem);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 1rem .25rem .5rem;
  background: linear-gradient(180deg, #343c7c, #1a1f4a) no-repeat 0 calc(1rem + var(--shelf-h)) / 100% 14px local;
  view-timeline-name: --shelf;
}
.shelf figure { --led: #5b93ff; display: grid; grid-template-rows: var(--shelf-h) auto; justify-items: center; scroll-snap-align: start; }
.shelf figure:last-child { --led: #7ee36b; }
.shelf img {
  align-self: end; max-height: 100%; width: auto; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 12px 10px rgb(0 0 0 / .6));
  transition: transform .45s var(--spring), filter .35s ease;
}
/* Hover a console: it lifts off the shelf and powers on. */
.shelf figure:hover img { transform: translateY(-10px); filter: drop-shadow(0 18px 12px rgb(0 0 0 / .6)) drop-shadow(0 0 16px var(--led)); }
.shelf figcaption { margin-top: 1.6rem; text-align: center; font-size: .9rem; color: var(--frost); }
.shelf figcaption b { display: block; color: var(--snow); font-weight: 600; }

.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); gap: 1.6rem; max-width: 60rem; list-style: none; padding: 0; perspective: 60rem; }
.covers figure { display: grid; gap: .8rem; align-content: start; }
.covers img {
  width: 100%; aspect-ratio: 7 / 10; object-fit: cover; border-radius: .5rem; box-shadow: 0 18px 40px rgb(0 0 0 / .5); background: var(--polar-2);
  transition: transform .5s var(--spring), box-shadow .5s var(--out);
}
/* Hover a game: pulled halfway off the shelf. */
.covers li:hover img { transform: translateY(-8px) rotate(-2deg); box-shadow: 0 28px 50px rgb(0 0 0 / .55), 0 0 40px rgb(157 116 255 / .2); }
.covers .is-logo img { object-fit: contain; padding: 14%; }
.covers figcaption b { display: block; font-weight: 600; }
.covers figcaption span { color: var(--frost); font-size: .9rem; }

.loves { display: grid; gap: clamp(3.5rem, 7vw, 5rem); }
.loves > .h2 { margin-bottom: -1rem; }
.loves .muted { margin-top: 1.2rem; max-width: 46rem; }
.loves__grid { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; }
.chips li { padding: .45rem .95rem; border-radius: 999px; background: var(--polar-2); border: 1px solid var(--line); transition: transform .4s var(--spring), border-color .2s ease; }
.chips li:hover { transform: translateY(-3px); border-color: var(--violet); }
.chips .fav { background: var(--violet-deep); border-color: var(--violet-deep); color: #fff; font-weight: 600; }
.seasons { display: grid; gap: .55rem; padding-left: 1.7rem; }
.seasons li::marker { font: 700 .95rem var(--display); color: var(--violet); }
.seasons li span { color: var(--frost); }
.luna-card { display: grid; gap: 1rem; justify-items: start; }
.luna-card .h3 { margin-bottom: 0; }
.luna-card .muted { margin-top: 0; }
/* Luna in a round frame with a moonlight glow: in this sky, the moon is hers. */
.luna-card__photo {
  width: min(100%, 16rem); aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgb(0 0 0 / .45), 0 0 70px 6px rgb(207 230 255 / .16);
  transition: transform .6s var(--spring);
}
.luna-card__photo:hover { transform: rotate(-4deg) scale(1.03); }

/* Contact */
.contact { display: grid; gap: 2.4rem; }
.mail {
  font: 700 clamp(1.4rem, 5vw, 3rem)/1.1 var(--display); letter-spacing: -.03em; color: var(--snow); text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(90deg, var(--violet), var(--blue)) no-repeat 0 100% / 0 .08em;
  transition: background-size .5s var(--out), color .3s ease;
}
.mail:hover { color: #fff; background-size: 100% .08em; }
.discord { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; }
.discord code { font: 600 1.05rem/1 var(--mono); color: var(--ice); }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); gap: .7rem; list-style: none; padding: 0; }
.contact > .h2 { margin-bottom: -.8rem; }
/* Profile links are buttons too: they press down. */
.links a {
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .9rem; padding: .8rem 1.1rem;
  border: 1px solid var(--line); border-radius: 1rem; background: var(--polar-2);
  height: 100%; color: var(--snow); text-decoration: none; line-height: 1.3;
  box-shadow: 0 4px 0 #0c0f2b;
  transition: transform .1s ease, box-shadow .1s ease, border-color .2s ease;
}
.links a > :first-child { grid-row: span 2; }
.links a:hover { border-color: var(--violet); transform: translateY(-2px); box-shadow: 0 6px 0 #0c0f2b; }
.links a:active { transform: translateY(3px); box-shadow: 0 1px 0 #0c0f2b; }
.links a:hover > :first-child { animation: wiggle .5s var(--out); }
@keyframes wiggle { 30% { rotate: -12deg; scale: 1.15; } 65% { rotate: 8deg; } }
.links svg, .links img { width: 1.4rem; height: 1.4rem; fill: currentColor; border-radius: .3rem; }
.links small { color: var(--frost); font-size: .85rem; overflow-wrap: anywhere; }

/* Footer */
.foot { padding: 3rem 0 3.5rem; border-top: 1px solid var(--line); color: var(--frost); font-size: .92rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.foot a { color: var(--frost); }
.foot details { width: 100%; }
.foot summary { cursor: pointer; }
.foot details ul { margin-top: .8rem; padding-left: 1.2rem; display: grid; gap: .3rem; }

/* Long documents (privacy, deletion, support) */
.doc { padding: 7.5rem 0 5rem; }
.doc .wrap { max-width: 44rem; }
.doc h1 { font: 700 clamp(1.9rem, 5vw, 2.7rem)/1.1 var(--display); letter-spacing: -.03em; margin-bottom: 1rem; }
.doc h2 { font: 600 1.25rem/1.3 var(--display); margin: 2.4rem 0 .8rem; }
.doc p, .doc li { color: #d6dcfa; }
.doc p + p, .doc ul, .doc ol { margin-top: .9rem; }
.doc ul, .doc ol { padding-left: 1.3rem; display: grid; gap: .5rem; }
.doc hr { margin: 3.5rem 0; border: 0; border-top: 1px solid var(--line); }
.doc code { font-family: var(--mono); font-size: .85em; }
.doc .meta, .doc p.meta { color: var(--frost); }
.doc .switch { display: flex; gap: .6rem; margin-bottom: 2rem; }
.doc .switch a { padding: .35rem .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; }

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 6rem var(--gutter); }
.lost img { width: 9rem; margin: 0 auto 1.5rem; rotate: -12deg; transform-origin: 50% 100%; animation: sway 3.2s ease-in-out infinite; }
@keyframes sway { 50% { rotate: 6deg; } }
.lost h1 { font: 800 clamp(3rem, 12vw, 6rem)/1 var(--display); letter-spacing: -.04em; }
.lost p { color: var(--frost); margin: 1rem auto 2rem; max-width: 30rem; }
.lost .cta { justify-content: center; }

@media (min-width: 720px) {
  .product { grid-template-columns: 1fr 1.15fr; }
  .gelatia-panel { grid-template-columns: 1.1fr .9fr; }
  .about { grid-template-columns: 22rem 1fr; }
  .loves__grid { grid-template-columns: repeat(2, 1fr); }
  .dev { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 719px) {
  .gametome__shot { order: -1; }
  .gelatia-panel { --sun: 50% 84%; }
  .coins .coin:nth-child(1) { --x: 8%; --y: 74%; }
  .coins .coin:nth-child(2) { --x: 82%; --y: 71%; }
  .coins .coin:nth-child(3) { --x: 14%; --y: 90%; }
  .coins .coin:nth-child(4) { --x: 80%; --y: 91%; }
  .archive thead { display: none; }
  .archive tr { display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .8rem; padding: .9rem 0; border-top: 1px solid var(--line); }
  .archive td { padding: 0; border: 0; }
  .archive td:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
  .archive td:first-child { width: auto; }
  .nav .hide-sm { display: none; }
}

/* Scroll-driven entrances: content settles into place as it scrolls in, like snow.
   Browsers without scroll timelines simply show everything. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .h2, .h3, .product, .dev__item, .archive tbody tr, .about__photo, .facts-list, .seasons li, .luna-card__photo, .contact > div:not(:has(.h3)), .links li, .shelf-note, .covers-note, .chips-note {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }
    .product.gelatia-panel {
      animation: settle linear both, rays 8s linear infinite;
      animation-timeline: view(), auto;
      animation-range: entry 0% entry 80%, normal;
    }
    .covers li { animation: flip-in linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    .chips li, .langs__group li { animation: pop-in linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    /* The consoles drop onto the shelf one after the other (the shelf scrolls sideways, so it lends them its timeline). */
    .shelf figure { animation: drop linear both; animation-timeline: --shelf; animation-range: entry 10% entry 70%; }
    .shelf figure:nth-child(2) { animation-range: entry 18% entry 78%; }
    .shelf figure:nth-child(3) { animation-range: entry 26% entry 86%; }
    .shelf figure:nth-child(4) { animation-range: entry 34% entry 94%; }
    .shelf figure:nth-child(5) { animation-range: entry 42% cover 52%; }
    /* The moon sets slowly while you scroll away from the night. */
    .moon { animation: moonset linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
  @view-transition { navigation: auto; }
}
@keyframes flip-in { from { opacity: 0; rotate: y 50deg; translate: 0 1rem; } }
@keyframes pop-in { from { opacity: 0; scale: .6; } 70% { scale: 1.06; } }
@keyframes drop { 0% { opacity: 0; translate: 0 -70px; } 55% { opacity: 1; translate: 0 6px; } 75% { translate: 0 -4px; } }
@keyframes moonset { to { translate: 0 22vh; } }

/* Page transitions: entering Gelatia, the day rises from the horizon; leaving it, the night spreads from the moon. */
html:active-view-transition-type(into-gelatia)::view-transition-old(root),
html:active-view-transition-type(into-night)::view-transition-old(root) { animation: none; }
html:active-view-transition-type(into-gelatia)::view-transition-new(root) { animation: sunrise .9s var(--out) both; }
html:active-view-transition-type(into-night)::view-transition-new(root) { animation: nightfall .9s var(--out) both; }
@keyframes sunrise { from { clip-path: circle(0 at 50% 100%); } to { clip-path: circle(150% at 50% 100%); } }
@keyframes nightfall { from { clip-path: circle(0 at 85% 12%); } to { clip-path: circle(150% at 85% 12%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .snow { display: none; }
}
