/* A Meme Daemon. One system: night indigo ground, lamp yellow for the action, violet for the name.
   Container 1240, one left edge, spacing 8/16/24/32/48/64/96, one plate style, two faces (+ mono for addresses). */
@import url("/fonts/fonts.css");

:root {
  --night: #15112b;
  --night-2: #1e1838;
  --night-3: #2a2250;
  --ink: #f4efff;
  --ink-2: #cfc6ea;
  --lamp: #ffd08a;
  --lamp-2: #ffbf5e;
  --violet: #8b5cf6;
  --lilac: #c4a8ff;
  --moss: #4e7a3a;
  --glass: #bfe3dc;
  --wood: #7a4e2d;
  --line: rgba(191, 227, 220, 0.22);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --container: 1240px;
  --edge: max(24px, calc((100vw - var(--container)) / 2));
  --display: "Chakra Petch", "Trebuchet MS", sans-serif;
  --text: "Nunito", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--night); color: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 400 18px/1.55 var(--text); font-variant-numeric: tabular-nums;
  background: var(--night); overflow-x: hidden; min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.02; letter-spacing: -0.01em; }
p { margin: 0; }
b, strong { font-weight: 800; color: var(--ink); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 10px; }

/* ---------- nav: one short row, left edge ---------- */
.nav { position: absolute; z-index: 20; top: var(--s3); left: calc(var(--edge) - 16px); display: flex; gap: var(--s1); align-items: center; }
.nav a {
  font: 700 17px/1 var(--text); text-decoration: none; color: var(--ink-2); padding: 14px 18px; border-radius: 12px; min-height: 48px;
  display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--lamp); border-radius: 0; }
.nav .menu-btn { display: none; }

.home .nav, .lost .nav { left: max(8px, calc(max(24px, calc(100vw - min(100vw, calc(100vh * 16 / 9)) * 0.67 - 560px)) - 16px)); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px;
  border-radius: 16px; font: 800 19px/1 var(--text); text-decoration: none; cursor: pointer; border: 0;
  transition: transform 120ms ease-out, background-color 160ms ease-out, box-shadow 160ms ease-out;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-lamp { background: linear-gradient(180deg, #ffe0a6, var(--lamp) 55%, var(--lamp-2)); color: #2a1a05; box-shadow: 0 6px 24px rgba(255, 191, 94, 0.28), inset 0 -3px 0 rgba(120, 70, 0, 0.25); }
.btn-lamp:hover { box-shadow: 0 8px 30px rgba(255, 191, 94, 0.42), inset 0 -3px 0 rgba(120, 70, 0, 0.25); }
.btn-ghost { background: rgba(21, 17, 43, 0.55); color: var(--ink); box-shadow: inset 0 0 0 2px rgba(196, 168, 255, 0.55); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--lilac); background: rgba(42, 34, 80, 0.7); }

/* ---------- the plate (one style for every panel) ---------- */
.plate {
  background: rgba(30, 24, 56, 0.88); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3) var(--s4);
}

/* ---------- the contract plate + links ---------- */
.links { display: flex; gap: var(--s1); align-items: stretch; flex-wrap: wrap; }
.links { flex-wrap: nowrap; }
.links .ca { flex: 1 1 auto; }
.links .mark-btn { flex: none; width: 56px; padding: 0; justify-content: center; }
.links .mark-btn .mlabel { display: none; }
.ca {
  display: flex; align-items: center; gap: var(--s2); min-height: 56px; padding: 10px 8px 10px 18px; border-radius: 16px;
  background: rgba(30, 24, 56, 0.9); border: 1px solid var(--line); flex: 1 1 320px; min-width: 0;
}
.ca-label { font: 700 16px/1 var(--text); color: var(--lilac); white-space: nowrap; }
.ca-value { font: 500 16px/1.3 var(--mono); color: var(--ink); overflow-wrap: anywhere; min-width: 0; flex: 1; user-select: all; }
.ca-value.waiting { font: 600 16px/1.3 var(--text); color: var(--ink-2); user-select: none; }
.ca-copy {
  min-height: 44px; padding: 0 20px; border-radius: 12px; border: 0; cursor: pointer; font: 800 16px/1 var(--text);
  background: var(--violet); color: #fff; white-space: nowrap;
}
.ca-copy[disabled] { background: rgba(139, 92, 246, 0.25); color: var(--ink-2); cursor: not-allowed; }
.mark-btn { position: relative;
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; border-radius: 16px;
  background: rgba(30, 24, 56, 0.9); border: 1px solid var(--line); text-decoration: none; font: 800 17px/1 var(--text); color: var(--ink);
}
.mark-btn img { width: 22px; height: 22px; object-fit: contain; }
.mark-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.mark-btn:not([aria-disabled="true"]):hover { border-color: var(--lilac); }

/* ---------- hero: the terrarium on the desk ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); --sw: min(100vw, calc(100vh * 16 / 9)); --sl: calc(100vw - var(--sw)); --cr: calc(var(--sl) + var(--sw) * 0.33); --cl: max(24px, calc(var(--cr) - 560px)); }
.stage { position: relative; width: min(100%, calc(100vh * 16 / 9)); aspect-ratio: 16 / 9; margin-left: auto; }
.stage::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 8%; background: linear-gradient(90deg, var(--night), transparent); pointer-events: none; }
.hero-top { display: flex; flex-direction: column; gap: var(--s3); }
.stage picture { display: block; }
.stage .pic { position: absolute; inset: 0; max-width: none; width: 100%; height: 100%; object-fit: cover; user-select: none; }
/* everything placed on the picture is in percent of the picture box */
.on-pic { position: absolute; }
.lamp-glow {
  left: var(--lamp-x); top: var(--lamp-y); width: 44%; aspect-ratio: 1; transform: translate(-50%, -30%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 208, 138, 0.55), rgba(255, 208, 138, 0.12) 55%, transparent 72%);
  mix-blend-mode: screen; opacity: var(--glow, 0.6); transition: opacity 900ms ease-out;
}
.dim { inset: 0; pointer-events: none; background: radial-gradient(60% 70% at var(--lamp-x) 55%, transparent, rgba(10, 8, 30, 0.55)); opacity: var(--dim, 0.2); transition: opacity 900ms ease-out; }
.floor { left: var(--floor-l); width: var(--floor-w); top: var(--floor-y); height: 1px; }

/* the demon on the floor line */
.demon { position: absolute; inset: 0; pointer-events: none; }
.d-pos { position: absolute; bottom: 0; left: 50%; width: calc(var(--demon-w) * var(--scale, 0.7)); transform: translateX(-50%); transition: width 420ms cubic-bezier(.2,.8,.2,1); }
.d-hop, .d-face-dir, .d-squash { position: relative; transform-origin: 50% 100%; }
.d-face-dir { transition: transform 160ms ease-out; }
.d-squash { aspect-ratio: 640 / 633; }
.d-squash > img { position: absolute; user-select: none; }
.d-body { inset: 0; width: 100%; height: 100%; z-index: 2; }
.d-tail { z-index: 1; }
.d-horns, .d-eyes, .d-mouth { z-index: 3; }
.d-shadow { position: absolute; left: 12%; right: 12%; bottom: -4%; height: 9%; border-radius: 50%; background: rgba(20, 30, 10, 0.45); filter: blur(4px); z-index: -1; }
.demon.back .d-eyes, .demon.back .d-mouth { opacity: 0; }
.demon.back .d-tail { z-index: 4; }
.demon.dead .d-pos { opacity: 0; transition: opacity 900ms ease-out 300ms; }
.d-ghost { position: absolute; width: calc(var(--demon-w) * 0.62); bottom: 0; transform: translate(-50%, 0); opacity: 0; pointer-events: none; }
.demon.dead .d-ghost { opacity: 0.82; animation: ghost-rise 3.2s cubic-bezier(.2,.8,.2,1) forwards, ghost-float 4s ease-in-out 3.2s infinite alternate; }
@keyframes ghost-rise { from { transform: translate(-50%, 0) scale(0.8); opacity: 0; } to { transform: translate(-50%, calc(var(--ghost-up) * -1)) scale(1); opacity: 0.82; } }
@keyframes ghost-float { from { transform: translate(-50%, calc(var(--ghost-up) * -1)); } to { transform: translate(-50%, calc(var(--ghost-up) * -1 - 12px)); } }
.d-puff, .d-sweat, .d-heart { position: absolute; bottom: calc(var(--demon-w) * 0.7); width: calc(var(--demon-w) * 0.28); transform: translate(10%, 0); opacity: 0; pointer-events: none; }
.demon.asleep .d-puff { opacity: 0.9; animation: puff 3.4s ease-out infinite; }
@keyframes puff { from { transform: translate(10%, 10px) scale(0.6); opacity: 0; } 30% { opacity: 0.9; } to { transform: translate(40%, -40px) scale(1.1); opacity: 0; } }
.d-sweat { width: calc(var(--demon-w) * 0.1); }
.d-sweat.on, .d-heart.on { animation: pop-up 1.3s ease-out forwards; }
@keyframes pop-up { from { opacity: 0; transform: translate(20%, 0) scale(0.6); } 20% { opacity: 1; } to { opacity: 0; transform: translate(20%, -46px) scale(1); } }

/* the bowl: the satiety meter */
.floor { z-index: 2; }
.bowl { z-index: 3; left: var(--bowl-x); top: var(--floor-y); width: var(--bowl-w); transform: translate(-50%, -88%); }
.bowl .food-win { position: absolute; left: 6%; width: 88%; bottom: 62%; height: 70%; overflow: hidden; z-index: 2; }
.bowl .food { position: absolute; left: 0; width: 100%; bottom: 0; transform: translateY(var(--food-cut, 50%)); transition: transform 600ms cubic-bezier(.2,.8,.2,1); }
.bowl .dish { z-index: 1; }
.bowl .dish { position: relative; width: 100%; }
.pellet, .crumb { position: absolute; width: 2.1%; pointer-events: none; z-index: 6; }
.crumb { width: 3.4%; }

/* the row of tombstones and eggs: the book of generations */
.row { z-index: 5; left: var(--row-l); width: var(--row-w); top: var(--row-y); display: flex; justify-content: center; gap: 1.4%; transform: translateY(-86%); }
.row a { position: relative; width: var(--row-item); display: block; transition: transform 160ms ease-out; }
.row a:hover, .row a:focus-visible { transform: translateY(-6%); }
.row a img { width: 100%; }
.row a.egg img { width: 82%; margin: 0 auto; }
.row a .tag { position: absolute; left: 50%; top: 104%; transform: translateX(-50%); font: 800 16px/1 var(--text); color: var(--ink); background: rgba(21, 17, 43, 0.92); padding: 12px 16px; visibility: hidden; border-radius: 8px; white-space: nowrap; opacity: 0; transition: opacity 160ms; }
.row a:hover .tag, .row a:focus-visible .tag { opacity: 1; visibility: visible; }

/* stickers on the glass: downloads */
.stickers { left: var(--stk-x); top: var(--stk-y); display: flex; flex-direction: column; gap: var(--s2); }
.sticker {
  position: relative; width: var(--stk-w); aspect-ratio: 1; display: grid; place-items: center; text-decoration: none;
  transform: rotate(var(--rot, -6deg)); transition: transform 160ms ease-out; color: #2b1d48;
}
.sticker img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sticker span { position: relative; font: 800 clamp(16px, 1.25vw, 22px)/1.05 var(--text); text-align: center; margin-top: -18%; padding: 0 18%; }
.sticker small { display: block; font: 700 16px/1.2 var(--text); color: #6a5a8a; margin-top: 4px; }
.sticker:hover { transform: rotate(0deg) scale(1.04); }

/* ---------- the copy column on the calm sky ---------- */
.copy { position: absolute; z-index: 10; left: var(--cl); top: 0; bottom: 0; width: calc(var(--cr) - var(--cl)); display: flex; flex-direction: column; justify-content: center; padding: 88px 0 var(--s4); gap: var(--s3); }
.copy .hero-top { gap: var(--s2); }
.name { margin: 0; }
.name span {
  display: inline; font: 700 clamp(60px, calc(var(--sw) * 0.068), 124px)/0.92 var(--display); color: #a985ff; letter-spacing: -0.02em;
  text-shadow: 0 0 26px rgba(139, 92, 246, 0.6), 0 0 2px rgba(255, 255, 255, 0.4);
  color: #b190ff;
}
.headline { font: 700 clamp(24px, calc(var(--sw) * 0.022), 36px)/1.15 var(--display); color: var(--ink); }
.headline em { font-style: normal; color: var(--lamp); }
.lede { font-size: 18px; color: var(--ink-2); max-width: 32em; }
.actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.live { display: flex; align-items: baseline; column-gap: var(--s2); row-gap: 6px; flex-wrap: wrap; font-size: 17px; color: var(--ink-2); min-height: 52px; }
.live .sat { font: 700 44px/1 var(--display); color: var(--lamp); min-width: 2.2ch; display: inline-block; text-align: right; }
.live .sat-of { font: 700 17px/1 var(--text); color: var(--ink-2); margin-left: -8px; }
.live .who b { color: var(--ink); }
.live .test { width: 100%; font: 700 16px/1.3 var(--text); color: var(--glass); display: flex; gap: 8px; align-items: center; }
.live .test::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--glass); box-shadow: 0 0 10px var(--glass); flex: none; }
.live .test.live-on::before { background: #7ee08a; box-shadow: 0 0 10px #7ee08a; }

/* ---------- sections below the first screen ---------- */
.section { padding: var(--s7) var(--edge) 0; }
.section:last-of-type { padding-bottom: var(--s7); }
.sec-head { margin-bottom: var(--s5); max-width: 760px; }
.sec-head h2 { font-size: 44px; }
.sec-head p { margin-top: var(--s2); color: var(--ink-2); }
.container { max-width: var(--container); }

/* event list */
.events { list-style: none; margin: 0; padding: 0; }
.events li { display: grid; grid-template-columns: 104px 1fr auto; gap: var(--s3); align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); min-height: 60px; }
.events .kind { font: 800 16px/1 var(--text); padding: 12px 16px; border-radius: 10px; text-align: center; }
.events .k-buy { background: rgba(255, 208, 138, 0.16); color: var(--lamp); }
.events .k-sell { background: rgba(196, 168, 255, 0.14); color: var(--lilac); }
.events .k-death { background: rgba(244, 239, 255, 0.12); color: var(--ink); }
.events .k-birth { background: rgba(126, 224, 138, 0.16); color: #9be8a4; }
.events .what { color: var(--ink-2); min-width: 0; }
.events .what b { color: var(--ink); }
.events .sat-move { font: 700 18px/1 var(--display); color: var(--ink); white-space: nowrap; }
.events a { color: var(--lilac); text-decoration: none; }
.events a:hover { text-decoration: underline; }
.events li.fresh { animation: fresh 900ms ease-out; }
@keyframes fresh { from { background: rgba(255, 208, 138, 0.12); } to { background: transparent; } }

/* three steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.step { display: flex; flex-direction: column; gap: var(--s2); }
.step img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.step h3 { font-size: 28px; }
.step p { color: var(--ink-2); }
.step .n { font: 700 18px/1 var(--display); color: var(--lamp); }

/* desktop download band */
.band { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s6); align-items: center; }
.band img { width: 100%; border-radius: var(--radius); }
.band .txt { display: flex; flex-direction: column; gap: var(--s3); }
.band h2 { font-size: 44px; }
.band p { color: var(--ink-2); }

.risk { font-size: 16px; color: var(--ink-2); margin-top: var(--s5); }
.err-line { font: 700 16px/1.3 var(--text); color: var(--lilac); min-height: 21px; }

/* ---------- tables (book) ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 17px; }
.table th { text-align: left; font: 700 16px/1.2 var(--text); color: var(--lilac); padding: 12px 18px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: rgba(255, 255, 255, 0.03); }
.mono { font-family: var(--mono); font-size: 16px; }

/* ---------- inner pages ---------- */
.page-top { position: relative; padding: 120px var(--edge) var(--s5); }
.page-top h1 { font-size: clamp(48px, 6vw, 88px); color: #b694ff; text-shadow: 0 0 24px rgba(139, 92, 246, 0.45); }
.page-top p { margin-top: var(--s2); font-size: 19px; color: var(--ink-2); max-width: 40em; }

@media (max-width: 980px) {
  .nav { top: var(--s2); left: var(--s2); right: var(--s2); }
  .nav a:not(.menu-btn) { display: none; }
  .nav .menu-btn { display: inline-flex; align-items: center; height: 48px; background: rgba(30, 24, 56, 0.9); border: 1px solid var(--line); color: var(--ink); font: 800 17px/1 var(--text); padding: 0 20px; min-height: 48px; border-radius: 14px; cursor: pointer; margin-left: auto; }
  .nav.open { flex-direction: column; align-items: stretch; background: rgba(21, 17, 43, 0.97); border: 1px solid var(--line); border-radius: 18px; padding: var(--s2); gap: 4px; }
  .nav.open a:not(.menu-btn) { display: flex; font-size: 20px; }
  .nav.open .menu-btn { order: -1; }
  .home .hero { display: flex; flex-direction: column; }
  .home .hero .stage { order: 0; }
  .home .hero .copy { order: 1; }
  .stage { aspect-ratio: 9 / 16; width: 100%; }
  .stickers { display: none; }
  .links { flex-wrap: wrap; }
  .links .ca { flex: 1 1 100%; }
  .links .mark-btn { flex: 1 1 0; width: auto; padding: 0 24px; min-width: max-content; }
  .links .mark-btn .mlabel { display: inline; }
  .stage::before { display: none; }
  .copy { position: static; width: auto; padding: 0 var(--s3) var(--s5); gap: var(--s3); margin-top: -2px; }
  .hero-top { position: absolute; z-index: 10; left: var(--s3); right: var(--s3); top: 84px; display: flex; flex-direction: column; gap: var(--s2); }
  .name span { font-size: clamp(44px, 13vw, 64px); }
  .headline { font-size: 24px; }
  .section { padding: var(--s6) var(--s3) 0; }
  .sec-head h2, .band h2 { font-size: 34px; }
  .steps, .band { grid-template-columns: 1fr; }
  .events li { grid-template-columns: 80px 1fr; }
  .events .sat-move { grid-column: 2; }
  .page-top { padding: 96px var(--s3) var(--s4); }
  .table-wrap { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* 404: the empty terrarium */
.lost-shell { left: 58%; top: 80%; width: 6%; transform: translate(-50%, -80%); }
@media (max-width: 980px) { .lost-shell { left: 50%; top: 79%; width: 18%; } }
body.lost .hero { min-height: 100vh; }

/* a still portrait of a generation */
.doll { display: inline-block; position: relative; width: 72px; aspect-ratio: 1; }
.doll-in { position: absolute; left: 14%; right: 14%; bottom: 4%; aspect-ratio: 640 / 633; }
.doll-big { width: min(320px, 70vw); }

/* book */
.test-note { color: var(--glass) !important; font-weight: 700; font-size: 17px !important; }
.tombs { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.tombs a { width: 56px; text-align: center; text-decoration: none; color: var(--ink-2); font: 700 16px/1.2 var(--text); }
.tombs a img { width: 100%; }
.tombs a:hover { color: var(--ink); }
.book { list-style: none; margin: 0; padding: 0; }
.book-row { display: grid; grid-template-columns: 88px 1.1fr 1.7fr 0.8fr 1.2fr; gap: var(--s3); align-items: center; padding: 22px 20px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.book-row a { color: var(--lilac); }
.b-n { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.b-num { font: 700 32px/1 var(--display); color: var(--ink); }
.b-look { font-size: 16px; color: var(--ink-2); }
.b-ate small { display: block; font-size: 16px; }
.alive { color: #9be8a4; font-weight: 800; }
/* generation */
.gen-top { display: grid; grid-template-columns: auto 1fr; gap: var(--s6); align-items: center; }
.gen-head { display: flex; flex-direction: column; gap: var(--s2); }
.genome, .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2) var(--s4); margin: var(--s3) 0 0; }
.facts { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: var(--s5); }
.genome dt, .facts dt { font: 700 16px/1.2 var(--text); color: var(--lilac); }
.genome dd, .facts dd { margin: 4px 0 0; color: var(--ink); font-size: 18px; }
.facts a, .genome a { color: var(--lilac); }
.chart-wrap { padding: var(--s3); }
#chart { width: 100%; height: 320px; display: block; }
.egg-big { width: min(240px, 60vw); }
@media (max-width: 980px) {
  .book-row { grid-template-columns: 72px 1fr; }
  .book-row .b-life, .book-row .b-ate, .book-row .b-burn { grid-column: 2; }
  .gen-top { grid-template-columns: 1fr; gap: var(--s3); }
  .genome { grid-template-columns: repeat(2, 1fr); }
}

/* inner page blocks */
.page-top .links { margin-top: var(--s4); max-width: 640px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); }
.two > div > p + p, .two > div > .table + .note, .two > div > p + pre, .two > div > pre + p { margin-top: var(--s2); }
.h3 { font: 700 22px/1.2 var(--display); margin: var(--s3) 0 var(--s1); }
.note { margin-top: var(--s2); color: var(--ink-2); font-size: 17px; }
.code { font: 500 16px/1.5 var(--mono); background: rgba(30, 24, 56, 0.9); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: var(--s2) 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.use { margin: 0; padding-left: 22px; display: grid; gap: var(--s2); color: var(--ink-2); }
.use b { color: var(--ink); }
.src-list { margin: 0; padding-left: 22px; display: grid; gap: var(--s2); color: var(--ink-2); }
.src-list a, .two a, .dl-phone a { color: var(--lilac); }
.table td { color: var(--ink-2); }
.dl-top { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center; }
.dl-top img { width: 100%; border-radius: var(--radius); }
.dl-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.dl-card { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); }
.dl-card h3 { font-size: 34px; }
.dl-card p { color: var(--ink-2); }
.dl-card .btn[aria-disabled="true"] { opacity: 0.6; cursor: default; }
.dl-card dt { font: 700 16px/1.2 var(--text); color: var(--lilac); margin-top: var(--s1); }
.dl-card dd { margin: 6px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.dl-ver, .dl-phone { margin-top: var(--s3); color: var(--ink-2); }
@media (max-width: 980px) {
  .two, .dl-top, .dl-cards { grid-template-columns: 1fr; gap: var(--s4); }
}

/* /pet: the demon alone */
body.pet { overflow: hidden; height: 100vh; height: 100dvh; }
.pet-hero { height: 100vh; height: 100dvh; display: grid; place-items: center; }
.pet-hero .stage { margin: 0 auto; width: min(100vw, calc(100dvh * 16 / 9)); }
.pet-hero .stage::before { display: none; }
.pet-bar { position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: var(--s3); padding: 10px 10px 10px 24px; border-radius: 20px; background: rgba(21, 17, 43, 0.86); border: 1px solid var(--line); white-space: nowrap; }
.pet-home { font: 700 20px/1 var(--display); color: #b190ff; text-decoration: none; }
.pet-live { display: flex; align-items: baseline; gap: 10px; color: var(--ink-2); font-size: 17px; min-height: 40px; align-items: center; }
.pet-live .sat { font: 700 32px/1 var(--display); color: var(--lamp); }
.pet-live .sat-of { font: 700 16px/1 var(--text); }
.pet-mode { position: absolute; z-index: 20; top: 16px; left: 50%; transform: translateX(-50%); font: 700 16px/1.3 var(--text); color: var(--glass); background: rgba(21, 17, 43, 0.8); padding: 10px 18px; border-radius: 12px; white-space: nowrap; }
.pet-hint { position: absolute; z-index: 30; left: 16px; right: 16px; bottom: 110px; display: flex; flex-direction: column; gap: var(--s2); }
@media (max-width: 980px) {
  .pet-hero { place-items: start center; }
  .pet-hero .stage { width: min(100vw, calc((100dvh - 150px) * 9 / 16)); aspect-ratio: 9 / 16; }
  .pet-home { display: none; }
  .pet-bar { flex-wrap: wrap; justify-content: center; white-space: normal; width: calc(100vw - 32px); padding: 12px 16px; gap: 8px var(--s2); }
  .pet-mode { white-space: normal; text-align: center; width: max-content; max-width: calc(100vw - 32px); }
}
