:root {
  color-scheme: dark;
  --bg: #08090d;
  --panel: #11141b;
  --panel-strong: #171b24;
  --text: #f6f7fb;
  --muted: #a9b0c0;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #36f7ff;
  --pink: #ff4fd8;
  --lime: #b8ff5d;
  --amber: #ffd166;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;


}

/* ─── Light mode ──────────────────────────────────────────────── */

/* Set html background so browser never flashes white during theme repaint */
[data-theme="light"] {
  background-color: #f0ecff;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f0ff;
  --panel: #eae6f8;
  --panel-strong: #ddd8f5;
  --text: #1c1828;
  --muted: #6b6180;
  --line: rgba(120, 100, 180, 0.18);
  --cyan: #0097a7;
  --pink: #b5006b;
  --lime: #87c32d;
  --amber: #bc6a00;
  --shadow: 0 24px 70px rgba(60, 40, 100, 0.12);
}

[data-theme="light"] body.home-page {
  background:
    radial-gradient(circle at 14% 5%, rgb(58, 106, 123), transparent 30rem),
    radial-gradient(circle at 86% 29%, rgb(149, 168, 88), transparent 28rem),
    linear-gradient(150deg, #f4f0ff 0%, #f0ecff 52%, #f5f0ff 100%);
}

[data-theme="light"] .brand-mark {
  box-shadow:
    10px 0 0 -4px var(--pink),
    0 0 22px rgba(68, 229, 247, 0.4);
}

[data-theme="light"] .toy-card {
  background: rgba(255, 253, 255, 0.72);
  border-color: rgba(160, 130, 220, 0.22);
}

[data-theme="light"] .toy-card.live:hover,
[data-theme="light"] .toy-card.live:focus-visible {
  border-color: rgba(0, 151, 167, 0.55);
  background: rgba(240, 236, 255, 0.88);
}

[data-theme="light"] .toy-card.locked {
  color: rgba(28, 24, 40, 0.55);
}

[data-theme="light"] .back-link,
[data-theme="light"] .sound-toggle {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(244, 240, 255, 0.85);
}

[data-theme="light"] .sound-toggle[aria-pressed="true"] {
  border-color: rgba(0, 151, 167, 0.62);
  box-shadow: 0 0 24px rgba(0, 151, 167, 0.2);
}

[data-theme="light"] .toy-status p {
  border-color: rgba(120, 100, 180, 0.20);
  background: rgba(244, 240, 255, 0.82);
  color: rgba(28, 24, 40, 0.78);
}

[data-theme="light"] .tt-thumb {
  transform: translateX(24px);
  background: var(--amber);
  box-shadow: 0 0 8px rgba(250, 84, 15, 1);
}

[data-theme="light"] .theme-toggle:hover {
  color: var(--amber);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 4%, rgba(54, 247, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(255, 79, 216, 0.12), transparent 25rem),
    linear-gradient(145deg, #08090d 0%, #10131a 52%, #07080c 100%);
  color: var(--text);
}

.home-page::before {
  content: '';
  position: fixed;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 82%, rgba(246, 247, 251, 0.12), transparent 33rem),
    radial-gradient(circle at 12% 22%, rgba(54, 247, 255, 0.12), transparent 44rem),
    radial-gradient(circle at 88% 30%, rgba(184, 255, 93, 0.08), transparent 40rem),
    linear-gradient(180deg, rgba(8, 9, 13, 0.1), rgba(8, 9, 13, 0.5));
  backdrop-filter: blur(20px) saturate(0.92);
  transition: opacity 1800ms ease;
}

[data-theme="light"] .home-page::before {
  background:
    radial-gradient(circle at 50% 82%, rgba(255, 253, 255, 0.36), transparent 33rem),
    radial-gradient(circle at 12% 22%, rgba(0, 151, 167, 0.12), transparent 44rem),
    radial-gradient(circle at 88% 30%, rgba(135, 195, 45, 0.1), transparent 40rem),
    linear-gradient(180deg, rgba(244, 240, 255, 0.08), rgba(244, 240, 255, 0.52));
}

.home-page.still-garden::before {
  opacity: 1;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.back-link {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 150ms ease;
}

.back-link:hover {
  color: var(--cyan);
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow:
    10px 0 0 -4px var(--pink),
    0 0 22px rgba(54, 247, 255, 0.5);
}

.home-page.still-garden .brand-mark {
  animation: still-mark-breathe 7.5s ease-in-out infinite;
}

.home-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 72px;
}

.intro {
  max-width: 790px;
  padding: 38px 0 34px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.45rem, 7vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.intro-copy {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.model-showcase {
  column-count: 4;
  column-gap: 26px;
  margin-top: 22px;
}

.still-signature {
  position: fixed;
  z-index: 3;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0;
  color: rgba(246, 247, 251, 0.74);
  font-size: 1.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 0 18px rgba(54, 247, 255, 0.26);
  text-transform: lowercase;
  transform: translate(-50%, 8px);
  transition:
    opacity 1400ms ease,
    transform 1400ms ease;
}

[data-theme="light"] .still-signature {
  color: rgba(28, 24, 40, 0.66);
  text-shadow: 0 0 18px rgba(255, 253, 255, 0.9);
}

.home-page.still-garden .still-signature {
  opacity: 1;
  transform: translate(-50%, 0);
}

.home-page.still-garden .toy-card.live {
  animation: still-card-breathe 7.5s ease-in-out infinite;
}

.home-page.still-garden .toy-card.live:nth-of-type(2n) {
  animation-delay: -2.5s;
}

.home-page.still-garden .toy-card.live:nth-of-type(3n) {
  animation-delay: -5s;
}

.model-section {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.model-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.model-heading h2 {
  margin: -.15rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
}

.model-kicker {
  margin: 0;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.model-heading-title {
  display: flex;
  align-items: end;
  gap: 10px;
}

.assist-note {
  margin: 0 0 3px;
  color: var(--lime);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.toy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.toy-card {
  display: grid;
  grid-template-rows: minmax(190px, 1fr) auto;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 20, 27, 0.72);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.toy-card.live {
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.toy-card.live:hover,
.toy-card.live:focus-visible {
  border-color: rgba(54, 247, 255, 0.7);
  background: rgba(23, 27, 36, 0.86);
  transform: translateY(-3px);
  outline: none;
}

.toy-card.locked {
  color: rgba(246, 247, 251, 0.62);
}

.toy-preview {
  position: relative;
  min-height: 190px;
  background: #0c0e14;
}

.model-tag {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.fluid-preview {
  background:
    radial-gradient(circle at 23% 42%, rgba(54, 247, 255, 0.7), transparent 18%),
    radial-gradient(circle at 54% 48%, rgba(255, 79, 216, 0.58), transparent 17%),
    radial-gradient(circle at 72% 31%, rgba(184, 255, 93, 0.42), transparent 14%),
    linear-gradient(150deg, #090a12, #18102a 56%, #07121a);
}

.fluid-preview span {
  position: absolute;
  width: 46%;
  height: 18px;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.85;
  transform: rotate(-18deg);
}

.fluid-preview span:nth-child(1) {
  left: 13%;
  top: 35%;
  background: var(--cyan);
  box-shadow: 0 0 28px var(--cyan);
}

.fluid-preview span:nth-child(2) {
  left: 36%;
  top: 51%;
  background: var(--pink);
  box-shadow: 0 0 28px var(--pink);
}

.fluid-preview span:nth-child(3) {
  left: 22%;
  top: 65%;
  background: var(--lime);
  box-shadow: 0 0 26px var(--lime);
}

.tension-preview {
  overflow: hidden;
  background:
    radial-gradient(circle at 58% 48%, rgba(255, 79, 116, 0.2), transparent 20%),
    radial-gradient(circle at 52% 52%, rgba(54, 247, 255, 0.12), transparent 42%),
    linear-gradient(145deg, #070912, #12101a 58%, #030407);
}

.tension-preview span {
  position: absolute;
  left: -10%;
  width: 122%;
  height: 2px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  transform-origin: center;
}

.tension-preview span:nth-child(1) {
  top: 27%;
  transform: rotate(18deg);
}

.tension-preview span:nth-child(2) {
  top: 46%;
  background: var(--amber);
  box-shadow: 0 0 14px var(--amber);
  transform: rotate(-15deg);
}

.tension-preview span:nth-child(3) {
  top: 63%;
  background: #ff4f74;
  box-shadow: 0 0 18px #ff4f74;
  transform: rotate(12deg);
}

.tension-preview span:nth-child(4) {
  top: 74%;
  transform: rotate(-24deg);
}

.particle-preview {
  background-image:
    radial-gradient(circle at 18% 28%, rgba(255, 209, 102, 0.78) 0 3px, transparent 4px),
    radial-gradient(circle at 48% 56%, rgba(54, 247, 255, 0.65) 0 4px, transparent 5px),
    radial-gradient(circle at 76% 38%, rgba(255, 79, 216, 0.6) 0 3px, transparent 4px),
    radial-gradient(circle at 64% 76%, rgba(184, 255, 93, 0.55) 0 4px, transparent 5px),
    linear-gradient(145deg, #11141b, #090a0f);
}

.pulse-preview {
  overflow: hidden;
  background: #030407;
}

.pulse-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'><defs><filter id='gp' x='-40%25' y='-40%25' width='180%25' height='180%25'><feGaussianBlur stdDeviation='1.5' result='b'/><feMerge><feMergeNode in='b'/><feMergeNode in='SourceGraphic'/></feMerge></filter></defs><polygon points='0,48 85,50 0,52' fill='white' fill-opacity='0.2' filter='url(%23gp)'/><line x1='0' y1='50' x2='85' y2='50' stroke='white' stroke-width='0.5' opacity='0.6' filter='url(%23gp)'/><g filter='url(%23gp)'><line x1='115' y1='50' x2='200' y2='50' stroke='%23cc00ff' stroke-width='2.2' opacity='0.8'/><line x1='115' y1='50' x2='200' y2='61' stroke='%234455ff' stroke-width='2.2' opacity='0.8'/><line x1='115' y1='50' x2='200' y2='72' stroke='%2300ccff' stroke-width='2.2' opacity='0.8'/><line x1='115' y1='50' x2='200' y2='84' stroke='%2333ee66' stroke-width='2.2' opacity='0.8'/><line x1='115' y1='50' x2='200' y2='97' stroke='%23ffdd00' stroke-width='2.2' opacity='0.8'/><line x1='115' y1='50' x2='182' y2='100' stroke='%23ff7700' stroke-width='2.2' opacity='0.8'/><line x1='115' y1='50' x2='168' y2='100' stroke='%23ff2244' stroke-width='2.2' opacity='0.8'/></g><polygon points='100,24 70,76 130,76' fill='%23c0ddff' fill-opacity='0.07' stroke='%23aaddff' stroke-width='0.9'/><polygon points='100,24 70,76 130,76' fill='none' stroke='%23c0ddff' stroke-width='3' opacity='0.25' filter='url(%23gp)'/></svg>");
  background-size: 100% 100%;
}

.hex-preview {
  overflow: hidden;
  background: #030407;
}

.hex-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 190' preserveAspectRatio='none'><defs><filter id='gg' x='-20%25' y='-20%25' width='140%25' height='140%25'><feGaussianBlur stdDeviation='1.2' result='blur'/><feMerge><feMergeNode in='blur'/><feMergeNode in='SourceGraphic'/></feMerge></filter><pattern id='scanlines' width='100' height='4' patternUnits='userSpaceOnUse'><line x1='0' y1='0' x2='100' y2='0' stroke='black' stroke-width='1.2' opacity='0.35'/></pattern><radialGradient id='vignette' cx='50%25' cy='50%25' r='70%25'><stop offset='50%25' stop-color='black' stop-opacity='0'/><stop offset='100%25' stop-color='black' stop-opacity='0.8'/></radialGradient></defs><rect width='300' height='190' fill='%23030407'/><g font-family='Courier New, monospace' font-size='10' font-weight='bold' text-anchor='middle'><text x='18' y='22' fill='%232a3b2a'>4F</text><text x='46' y='22' fill='%232a3b2a'>8C</text><text x='74' y='22' fill='%232a3b2a'>D2</text><text x='102' y='22' fill='%232a3b2a'>E0</text><text x='130' y='22' fill='%232a3b2a'>1A</text><text x='158' y='22' fill='%232a3b2a'>B7</text><text x='186' y='22' fill='%232a3b2a'>3E</text><text x='214' y='22' fill='%232a3b2a'>99</text><text x='242' y='22' fill='%232a3b2a'>F5</text><text x='270' y='22' fill='%232a3b2a'>0B</text><text x='18' y='46' fill='%232a3b2a'>76</text><text x='46' y='46' fill='%232a3b2a'>A3</text><text x='78' y='46' fill='%23ff0055' filter='url(%23gg)'>FF</text><text x='102' y='46' fill='%232a3b2a'>5D</text><text x='130' y='46' fill='%232a3b2a'>C1</text><text x='158' y='46' fill='%232a3b2a'>88</text><text x='186' y='46' fill='%232a3b2a'>E2</text><text x='214' y='46' fill='%232a3b2a'>40</text><text x='242' y='46' fill='%232a3b2a'>B9</text><text x='270' y='46' fill='%232a3b2a'>D7</text><text x='18' y='70' fill='%232a3b2a'>E8</text><text x='46' y='70' fill='%232a3b2a'>10</text><text x='74' y='78' fill='%23161a16'>D2</text><text x='102' y='70' fill='%232a3b2a'>9A</text><text x='130' y='70' fill='%232a3b2a'>F3</text><text x='154' y='76' fill='%2300ffff' filter='url(%23gg)'>2B</text><text x='186' y='70' fill='%232a3b2a'>0C</text><text x='210' y='86' fill='%234d6d4d'>8B</text><text x='242' y='70' fill='%232a3b2a'>6E</text><text x='270' y='70' fill='%232a3b2a'>A5</text><text x='18' y='94' fill='%232a3b2a'>C4</text><text x='46' y='94' fill='%232a3b2a'>7B</text><text x='74' y='104' fill='%234d6d4d'>F1</text><text x='102' y='94' fill='%232a3b2a'>5E</text><text x='130' y='94' fill='%232a3b2a'>02</text><text x='158' y='94' fill='%232a3b2a'>7F</text><text x='186' y='94' fill='%232a3b2a'>D4</text><text x='210' y='110' fill='%23161a16'>33</text><text x='242' y='94' fill='%232a3b2a'>89</text><text x='270' y='94' fill='%232a3b2a'>20</text><text x='10' y='118' fill='%2339ff14' filter='url(%23gg)'>AA</text><text x='38' y='118' fill='%2339ff14' filter='url(%23gg)'>BB</text><text x='66' y='118' fill='%23ff00ff' filter='url(%23gg)'>CC</text><text x='102' y='118' fill='%232a3b2a'>0D</text><text x='130' y='118' fill='%232a3b2a'>E3</text><text x='158' y='118' fill='%232a3b2a'>61</text><text x='186' y='118' fill='%232a3b2a'>5A</text><text x='214' y='118' fill='%232a3b2a'>C7</text><text x='242' y='118' fill='%232a3b2a'>42</text><text x='270' y='118' fill='%232a3b2a'>9F</text><text x='18' y='142' fill='%232a3b2a'>9E</text><text x='46' y='142' fill='%232a3b2a'>55</text><text x='74' y='142' fill='%232a3b2a'>81</text><text x='102' y='142' fill='%232a3b2a'>D6</text><text x='130' y='142' fill='%232a3b2a'>F0</text><text x='158' y='142' fill='%232a3b2a'>3B</text><text x='186' y='142' fill='%232a3b2a'>C8</text><text x='220' y='140' fill='%23ffff00' filter='url(%23gg)'>77</text><text x='242' y='142' fill='%232a3b2a'>E4</text><text x='270' y='142' fill='%232a3b2a'>13</text><text x='18' y='166' fill='%232a3b2a'>12</text><text x='46' y='166' fill='%232a3b2a'>D9</text><text x='74' y='166' fill='%232a3b2a'>07</text><text x='102' y='166' fill='%232a3b2a'>FE</text><text x='130' y='166' fill='%232a3b2a'>8A</text><text x='158' y='166' fill='%232a3b2a'>45</text><text x='186' y='166' fill='%232a3b2a'>9D</text><text x='214' y='166' fill='%232a3b2a'>C0</text><text x='242' y='166' fill='%232a3b2a'>35</text><text x='270' y='166' fill='%232a3b2a'>B2</text></g><rect width='300' height='190' fill='url(%23scanlines)'/><rect width='300' height='190' fill='url(%23vignette)'/></svg>");
  background-size: 100% 100%;
}

.fracture-preview {
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 50%, rgba(54, 247, 255, 0.18), transparent 35%),
    #030407;
}

.fracture-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><defs><filter id='gf' x='-60%25' y='-60%25' width='220%25' height='220%25'><feGaussianBlur stdDeviation='0.8' result='b'/><feMerge><feMergeNode in='b'/><feMergeNode in='SourceGraphic'/></feMerge></filter></defs><g filter='url(%23gf)' fill='none' stroke-linecap='round'><circle cx='48' cy='50' r='10' stroke='%2336f7ff' stroke-width='0.7' opacity='0.25'/><circle cx='48' cy='50' r='20' stroke='%2336f7ff' stroke-width='0.5' opacity='0.15'/><polyline points='48,50 55,38 65,28 75,16' stroke='%2336f7ff' stroke-width='1.2' opacity='0.85'/><polyline points='48,50 62,47 78,44 92,42' stroke='%2336f7ff' stroke-width='1.1' opacity='0.8'/><polyline points='48,50 62,58 76,64 88,70' stroke='%23ff4fd8' stroke-width='1.1' opacity='0.75'/><polyline points='48,50 46,63 44,76 42,90' stroke='%2336f7ff' stroke-width='1.0' opacity='0.75'/><polyline points='48,50 38,58 26,65 14,72' stroke='%2336f7ff' stroke-width='1.1' opacity='0.8'/><polyline points='48,50 34,48 20,46 7,44' stroke='%23ff4fd8' stroke-width='1.0' opacity='0.7'/><polyline points='48,50 40,40 28,30 18,22' stroke='%2336f7ff' stroke-width='1.1' opacity='0.8'/><polyline points='48,50 50,36 52,22 54,8' stroke='%2336f7ff' stroke-width='1.2' opacity='0.85'/><line x1='55' y1='38' x2='63' y2='32' stroke='%2336f7ff' stroke-width='0.8' opacity='0.6'/><line x1='62' y1='58' x2='70' y2='52' stroke='%23ff4fd8' stroke-width='0.7' opacity='0.55'/><line x1='38' y1='58' x2='30' y2='52' stroke='%2336f7ff' stroke-width='0.7' opacity='0.55'/><line x1='50' y1='36' x2='44' y2='30' stroke='%2336f7ff' stroke-width='0.7' opacity='0.55'/></g><circle cx='48' cy='50' r='3.5' fill='white' fill-opacity='0.3'/><circle cx='48' cy='50' r='1.8' fill='white' fill-opacity='0.95'/></svg>");
  background-size: 100% 100%;
}

.popcorn-preview {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 40% 40%, rgba(255, 54, 54, 0.536), transparent 40%),
    radial-gradient(circle at 65% 55%, rgba(255, 79, 216, 0.22), transparent 35%),
    radial-gradient(circle at 20% 60%, rgba(255, 209, 102, 0.18), transparent 28%),
    radial-gradient(circle at 75% 30%, rgba(239, 233, 46, 0.455), transparent 22%),
    linear-gradient(145deg, #070503, #140a0a);
}

.popcorn-preview::before,
.popcorn-preview::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
}

.popcorn-preview::before {
  width: 32%;
  height: 32%;
  top: 34%;
  left: 34%;
  border-color: #fa500f;
  box-shadow: 0 0 18px rgb(255, 208, 0);
}

.popcorn-preview::after {
  width: 18%;
  height: 18%;
  top: 41%;
  left: 41%;
  border-color: rgb(252, 186, 132);
  background: radial-gradient(circle, rgba(255, 77, 0, 0.8) 0%, transparent 70%);
  box-shadow: 0 0 14px rgba(255, 211, 34, 0.942);
}

.connector-preview {
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #0e0e22, #06060f);
}

.connector-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><defs><filter id='gl' x='-50%25' y='-50%25' width='200%25' height='200%25'><feGaussianBlur stdDeviation='1.5' result='b'/><feMerge><feMergeNode in='b'/><feMergeNode in='SourceGraphic'/></feMerge></filter></defs><g filter='url(%23gl)' stroke-width='0.8' opacity='0.7'><line x1='20' y1='27' x2='50' y2='14' stroke='%238b7fff'/><line x1='50' y1='14' x2='80' y2='28' stroke='%23ff7eb3'/><line x1='20' y1='27' x2='13' y2='64' stroke='%238b7fff'/><line x1='80' y1='28' x2='79' y2='63' stroke='%236ef0ff'/><line x1='50' y1='14' x2='47' y2='52' stroke='%23ff7eb3'/><line x1='47' y1='52' x2='13' y2='64' stroke='%2374c0fc'/><line x1='47' y1='52' x2='79' y2='63' stroke='%2374c0fc'/><line x1='13' y1='64' x2='30' y2='84' stroke='%23ffd166'/><line x1='79' y1='63' x2='68' y2='84' stroke='%23ff9f7f'/><line x1='30' y1='84' x2='68' y2='84' stroke='%23a9e34b'/><line x1='20' y1='27' x2='47' y2='52' stroke='%238b7fff'/><line x1='80' y1='28' x2='47' y2='52' stroke='%236ef0ff'/><line x1='50' y1='14' x2='79' y2='63' stroke='%23ff7eb3' opacity='0.5'/><line x1='13' y1='64' x2='68' y2='84' stroke='%23ffd166' opacity='0.5'/></g></svg>");
  background-size: 100% 100%;
}

.connector-preview span {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.connector-preview span:nth-child(1) {
  left: 20%;
  top: 27%;
  background: #8b7fff;
  box-shadow: 0 0 12px #8b7fff, 0 0 26px rgba(139, 127, 255, 0.4);
}

.connector-preview span:nth-child(2) {
  left: 50%;
  top: 14%;
  background: #ff7eb3;
  box-shadow: 0 0 12px #ff7eb3, 0 0 26px rgba(255, 126, 179, 0.4);
}

.connector-preview span:nth-child(3) {
  left: 80%;
  top: 28%;
  background: #6ef0ff;
  box-shadow: 0 0 12px #6ef0ff, 0 0 26px rgba(110, 240, 255, 0.4);
}

.connector-preview span:nth-child(4) {
  left: 13%;
  top: 64%;
  background: #ffd166;
  box-shadow: 0 0 12px #ffd166, 0 0 26px rgba(255, 209, 102, 0.4);
}

.connector-preview span:nth-child(5) {
  left: 47%;
  top: 52%;
  background: #74c0fc;
  box-shadow: 0 0 12px #74c0fc, 0 0 26px rgba(116, 192, 252, 0.4);
}

.connector-preview span:nth-child(6) {
  left: 79%;
  top: 63%;
  background: #ff9f7f;
  box-shadow: 0 0 12px #ff9f7f, 0 0 26px rgba(255, 159, 127, 0.4);
}

.connector-preview span:nth-child(7) {
  left: 30%;
  top: 84%;
  background: #a9e34b;
  box-shadow: 0 0 12px #a9e34b, 0 0 26px rgba(169, 227, 75, 0.4);
}

.connector-preview span:nth-child(8) {
  left: 68%;
  top: 84%;
  background: #e77ff5;
  box-shadow: 0 0 12px #e77ff5, 0 0 26px rgba(231, 127, 245, 0.4);
}

.gravity-preview {
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, #0c0817, #030207);
}

.gravity-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 130'><defs><filter id='glow' x='-30%25' y='-30%25' width='160%25' height='160%25'><feGaussianBlur stdDeviation='2' result='blur'/><feMerge><feMergeNode in='blur'/><feMergeNode in='SourceGraphic'/></feMerge></filter></defs><g filter='url(%23glow)' stroke-width='0.8' opacity='0.75'><path d='M10,25 Q100,50 190,25' fill='none' stroke='%23ff4fd8'/><path d='M10,50 Q100,85 190,50' fill='none' stroke='%2336f7ff'/><path d='M10,75 Q100,105 190,75' fill='none' stroke='%23b8ff5d'/><path d='M10,100 Q100,120 190,100' fill='none' stroke='%23ffd166'/></g><circle cx='100' cy='75' r='8' fill='%23000' stroke='%2336f7ff' stroke-width='1.5' filter='url(%23glow)'/><circle cx='100' cy='75' r='12' fill='none' stroke='%2336f7ff' stroke-width='0.5' opacity='0.5'/></svg>");
  background-size: 100% 100%;
}

.sand-preview {
  background:
    radial-gradient(ellipse at 62% 56%, rgba(240, 204, 132, 0.5), transparent 30%),
    radial-gradient(ellipse at 30% 74%, rgba(178, 148, 92, 0.22), transparent 45%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 7px),
    linear-gradient(165deg, #241c12, #16110a 55%, #0c0a06);
}

.toy-meta {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.toy-title {
  font-size: 1.08rem;
  font-weight: 800;
}

.toy-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.toy-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 999px;
  padding: 0 8px;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.toy-description {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.toy-page {
  min-height: 100vh;
  overflow: hidden;
  background: #030407;
}

.toy-nav {
  position: fixed;
  z-index: 5;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}

.back-link,
.sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 8, 12, 0.62);
  color: var(--text);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.back-link {
  padding: 0 14px;
}

.sound-toggle {
  width: 42px;
  cursor: pointer;
}

.sound-toggle[aria-pressed="true"] {
  border-color: rgba(54, 247, 255, 0.62);
  box-shadow: 0 0 24px rgba(54, 247, 255, 0.26);
}

.fluid-canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  touch-action: none;
  cursor: crosshair;
}

.toy-status {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.toy-status p {
  max-width: min(620px, 100%);
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(7, 8, 12, 0.58);
  color: rgba(246, 247, 251, 0.78);
  font-size: 0.92rem;
  line-height: 1.4;
  text-align: center;
  backdrop-filter: blur(18px);
}

@media (max-width: 860px) {
  .home-shell {
    padding-top: 16px;
  }

  .intro {
    padding-top: 22px;
  }

  .model-showcase {
    column-count: 1;
  }

  .toy-grid {
    grid-template-columns: 1fr;
  }

  .toy-card {
    min-height: 300px;
  }
}

@media (max-width: 860px) {
  .theme-toggle {
    gap: 5px;
  }

  .tt-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ─── Theme toggle button ─────────────────────────────────────── */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 150ms ease;
}

.theme-toggle:hover {
  color: var(--cyan);
}

.tt-track {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--panel);
  flex-shrink: 0;
  transition: background 200ms ease, border-color 200ms ease;
}

.tt-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(54, 247, 255, 0.5);
  transition:
    transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
    background 200ms ease,
    box-shadow 200ms ease;
}

.tt-label {
  font-size: 0.9rem;
  line-height: 1;
  user-select: none;
}

@keyframes still-card-breathe {

  0%,
  100% {
    filter: saturate(1);
    transform: translateY(0);
  }

  50% {
    filter: saturate(1.08) brightness(1.05);
    transform: translateY(-2px);
  }
}

@keyframes still-mark-breathe {

  0%,
  100% {
    box-shadow:
      10px 0 0 -4px var(--pink),
      0 0 22px rgba(54, 247, 255, 0.5);
  }

  50% {
    box-shadow:
      10px 0 0 -4px var(--pink),
      0 0 34px rgba(54, 247, 255, 0.72),
      0 0 52px rgba(184, 255, 93, 0.2);
  }
}