/* The shared sheet of the three looks. The owner's reference (2026-11-22): one flat shape of one colour on a white page,
   heavy black type on it, a round black sticker as the only accent. So: no line around a shape, no shade, no gradient. */
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url('/poppins-500.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url('/poppins-600.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url('/poppins-700.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 800; font-display: swap; src: url('/poppins-800.woff2') format('woff2'); }

:root {
  --paper: #f4f3ef;
  --white: #fff;
  --ink: #111;
  --lemon: #ffdc2b;
  --water: #9ad7f5;
  --mute: #8b8a85;
  --up: #0a8f3c;
  --down: #d11a2a;
  --bar: 64px;
  --safe: env(safe-area-inset-bottom, 0px);
  font-family: Poppins, 'Avenir Next', Futura, 'Century Gothic', system-ui, sans-serif;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; background: var(--paper); }
body { transition: background-color .9s ease; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
button { border: 0; background: none; padding: 0; cursor: pointer; }

#app { position: fixed; inset: 0; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; background: var(--paper); transition: background-color .9s ease; overflow: hidden; }
#stage { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; }
#back, #fishes, #front, #says { position: absolute; inset: 0; }
#back { z-index: 0; }
#fishes { z-index: 1; }
#front { z-index: 2; }
#says { z-index: 3; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--lemon); outline-offset: 2px; }
#front, #says { pointer-events: none; }

/* The planes of the tank: each slides a little against the eye, and bleeds past the edges so that no gap shows. */
.plane { position: absolute; left: -34px; top: -22px; width: calc(100% + 68px); height: calc(100% + 44px); will-change: transform; }
.airs { position: absolute; inset: 0; }
.air { position: absolute; bottom: -20px; border-radius: 50%; background: #fff; opacity: .5; animation: rise linear infinite; }
@keyframes rise { to { transform: translateY(-110vh); } }
.night .air { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .air { display: none; } }

/* The name, set like a book's title. */
#word { position: absolute; z-index: 5; left: 18px; top: calc(14px + env(safe-area-inset-top, 0px)); margin: 0; font-size: 22px; font-weight: 800; letter-spacing: .01em; line-height: 1; transition: color .9s ease; }

/* ─── A fish ─── */
.fish { position: absolute; left: 0; top: 0; will-change: transform; transition: opacity .6s ease; }
.fish .body { width: 100%; height: 100%; }
.fish svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fish .mark { position: absolute; left: 0; top: 0; }
/* The X at the joint of body and tail: the only part of a fish that takes a tap, with room around it for a thumb. */
.fish { pointer-events: none; }
.fx { position: absolute; left: 0; top: 0; display: block; padding: 0; border: 0; background: none; pointer-events: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.xj { transition: scale .15s ease; }
.fish.xhot .xj { scale: 1.45; }
#x-tip { position: fixed; z-index: 60; left: 0; top: 0; height: 30px; padding: 0 13px; border-radius: 15px; background: var(--ink); color: #fff; font: 700 13px/30px Poppins, system-ui, sans-serif; white-space: nowrap; pointer-events: none; }
.fx::before { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, var(--reach, 48px)); height: max(100%, var(--reach, 48px)); transform: translate(-50%, -50%); border-radius: 50%; }
/* The project's X account, beside the name. */
#x-home { position: absolute; z-index: 5; left: 160px; top: calc(8px + env(safe-area-inset-top, 0px)); width: 34px; height: 34px; }
#x-home svg { width: 15px; height: 15px; }
/* Feed them with CA: a field at the top of the tank, left of the coin's bubble. */
.pellet-drop, .crumb { position: absolute; top: 0; border-radius: 50%; background: var(--lemon); animation: sink 2.6s cubic-bezier(.3, .1, .6, 1) both; }
.pellet-drop { width: 38px; height: 38px; margin-left: -19px; overflow: hidden; box-shadow: 0 0 0 3px var(--lemon); }
.pellet-drop img { display: block; width: 100%; height: 100%; object-fit: cover; }
.crumb { width: 9px; height: 9px; margin-left: -4px; animation-duration: 3s; }
@keyframes sink { from { transform: translateY(36px) scale(.5); opacity: 1; } 70% { opacity: 1; } to { transform: translateY(var(--to)) scale(1); opacity: 0; } }
#coin .fed { position: absolute; left: -10px; top: -9px; height: 22px; padding: 0 9px; border-radius: 11px; background: var(--ink); color: var(--lemon); font: 800 10.5px/22px Poppins, system-ui, sans-serif; white-space: nowrap; }
.fedby { align-self: center; margin-right: 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
/* A fish's film, before it goes to X. */
#clip { width: min(100% - 24px, 400px); max-height: calc(100% - 24px); margin: auto; padding: 0; border: 0; border-radius: 26px; background: var(--white); color: var(--ink); overflow: hidden auto; }
#clip:focus { outline: none; }
#clip::backdrop { background: rgba(17, 17, 17, .74); }
.clip-box { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 12px; }
#clip-close { position: absolute; right: 20px; top: 20px; z-index: 2; width: 38px; height: 38px; }
.film { position: relative; aspect-ratio: 1; max-height: 52vh; border-radius: 18px; overflow: hidden; background: #3aa0d8; display: grid; place-items: center; }
.film::before { content: ''; position: absolute; left: 22%; top: -30%; width: 26%; height: 160%; border-radius: 999px; background: #52b6e4; transform: rotate(24deg); }
.film-bars { position: absolute; left: 12px; right: 64px; top: 14px; display: flex; gap: 4px; }
.film-bars i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .42); overflow: hidden; }
.film-bars b { display: block; width: 0; height: 100%; background: #fff; }
.film-bars .done b { width: 100%; }
.film-bars .on b { animation: bar 3s linear forwards; }
@keyframes bar { to { width: 100%; } }
.film-fish { position: relative; width: 72%; aspect-ratio: 120 / 80; margin-bottom: 18%; }
.film-fish svg { display: block; width: 100%; height: 100%; overflow: visible; }
.film-mark { position: absolute; width: 19%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.film-mark svg { width: 100%; height: 100%; }
.film-line { position: absolute; left: 12px; right: 12px; bottom: 42px; margin: 0; padding: 9px 14px 11px; border-radius: 18px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; line-height: 1.32; }
.film-line b { display: block; color: var(--lemon); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.film-line.other { background: #fff; color: var(--ink); }
.film-line.other b { color: var(--ink); opacity: .55; }
.film-sign { position: absolute; left: 12px; bottom: 10px; display: flex; align-items: center; gap: 7px; color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.film-sign img { width: 22px; height: 22px; border-radius: 5px; }
.post { margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--paper); font-size: 14px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-line; }
.post b { font-weight: 800; }
#clip-go { position: relative; flex: none; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; }
#clip-go svg { position: relative; width: 17px; height: 17px; }
#clip-go span { position: relative; }
#clip-go i { display: none; }
#clip-go.making { background: var(--paper); color: var(--ink); }
#clip-go.making i { display: block; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--lemon); animation: bar 2.6s linear forwards; }
#clip-go.done { background: var(--lemon); color: var(--ink); }
/* The drag into the post (share.js gestureSvg): on a computer, after the first press, it takes the film's place and
   shows where the saved film is and where it goes. One loop of 6.4 s; positions are the drawing's own units (360 x 360). */
.dg-box { position: relative; aspect-ratio: 1; max-height: 52vh; border-radius: 18px; background: var(--paper); overflow: hidden; }
.dg-say { position: absolute; left: 16px; right: 56px; top: 12px; margin: 0; font-size: 14px; font-weight: 700; line-height: 30px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg { display: block; width: 100%; height: 100%; --dg: 6.4s; }
.dg-win { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.dg-rule { stroke: var(--ink); stroke-width: 3; }
.dg-soft { fill: #e7e4da; }
.dg-ink { fill: var(--ink); }
.dg-word { fill: var(--ink); opacity: .78; }
.dg-drop { fill: var(--lemon); fill-opacity: 0; stroke: var(--ink); stroke-width: 2.500; stroke-dasharray: 7 7; stroke-opacity: .34; animation: dg-drop var(--dg) infinite; }
.dg-key circle { fill: #fff; stroke: var(--ink); stroke-width: 3; animation: dg-key var(--dg) infinite; }
.dg-key path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dg-post rect { fill: var(--ink); animation: dg-post var(--dg) infinite; }
.dg-post path { fill: #fff; animation: dg-postx var(--dg) infinite; }
.dg-bub { transform-origin: 322px 72px; animation: dg-bub var(--dg) infinite; }
.dg-bub > rect:first-child { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.dg-film { animation: dg-film var(--dg) infinite; }
.dg-film .tail, .dg-film .face * { animation: none; }
.dg-ring { fill: none; stroke: var(--lemon); stroke-width: 5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.dg-r1 { animation: dg-r1 var(--dg) infinite; }
.dg-r2 { animation: dg-r2 var(--dg) infinite; }
.dg-hand { animation: dg-hand var(--dg) infinite; }
.dg-hand path { fill: #fff; stroke: var(--ink); stroke-width: 2.600; stroke-linejoin: round; }

/* The hand: to the downloads key, a press, to the film, a press held along the way, a release, to Post, a press. */
@keyframes dg-hand {
  0%, 6% { transform: translate(214px, 226px); opacity: 0; }
  9% { transform: translate(214px, 226px); opacity: 1; }
  19%, 21% { transform: translate(306px, 40px); }
  22% { transform: translate(306px, 40px) scale(.86); }
  24%, 27% { transform: translate(306px, 40px); }
  36%, 38% { transform: translate(222px, 108px); }
  40%, 43% { transform: translate(222px, 108px) scale(.86); }
  52% { transform: translate(214px, 150px) scale(.86); }
  62%, 64% { transform: translate(190px, 214px) scale(.86); }
  66%, 69% { transform: translate(190px, 214px); }
  79%, 80% { transform: translate(278px, 316px); }
  81.500% { transform: translate(278px, 316px) scale(.86); }
  83%, 93% { transform: translate(278px, 316px); opacity: 1; }
  98%, 100% { transform: translate(278px, 316px); opacity: 0; }
}
/* The downloads key calls the eye first, then goes yellow when pressed. */
@keyframes dg-key {
  0%, 4%, 12% { fill: #fff; }
  8%, 16% { fill: var(--lemon); }
  20% { fill: #fff; }
  22%, 60% { fill: var(--lemon); }
  66%, 100% { fill: #fff; }
}
@keyframes dg-r1 {
  0%, 21.500% { opacity: 0; transform: scale(1); }
  22% { opacity: 1; transform: scale(1); }
  30%, 100% { opacity: 0; transform: scale(1.9); }
}
@keyframes dg-r2 {
  0%, 81% { opacity: 0; transform: scale(1); }
  81.500% { opacity: 1; transform: scale(1); }
  90%, 100% { opacity: 0; transform: scale(1.9); }
}
/* The downloads list opens under its key with the film in it, and shuts once the film has left. */
@keyframes dg-bub {
  0%, 22.500% { opacity: 0; transform: scale(.5); }
  26%, 56% { opacity: 1; transform: scale(1); }
  63%, 100% { opacity: 0; transform: scale(1); }
}
/* The film: in the list, lifted, carried under the hand, then dropped: it fills the post's empty frame. */
@keyframes dg-film {
  0%, 23% { opacity: 0; transform: translate(190px, 84px) scale(.5); }
  26%, 40% { opacity: 1; transform: translate(190px, 84px); }
  43% { transform: translate(186px, 78px) scale(1.14) rotate(-5deg); }
  52% { transform: translate(178px, 120px) scale(1.14) rotate(-5deg); }
  64% { transform: translate(154px, 184px) scale(1.14) rotate(-5deg); animation-timing-function: cubic-bezier(.3, 1.4, .5, 1); }
  69%, 94% { opacity: 1; transform: translate(84px, 134px) scale(3.400); }
  99%, 100% { opacity: 0; transform: translate(84px, 134px) scale(3.400); }
}
@keyframes dg-drop {
  0%, 46% { fill-opacity: 0; stroke-opacity: .34; }
  54%, 64% { fill-opacity: .55; stroke-opacity: 1; }
  69%, 100% { fill-opacity: 0; stroke-opacity: 0; }
}
@keyframes dg-post {
  0%, 81% { fill: var(--ink); }
  82.500%, 94% { fill: var(--lemon); }
  99%, 100% { fill: var(--ink); }
}
@keyframes dg-postx {
  0%, 81% { fill: #fff; }
  82.500%, 94% { fill: var(--ink); }
  99%, 100% { fill: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .dg * { animation-play-state: paused; animation-delay: calc(var(--dg) * -.6); }
}
.c-pic .c-said { left: 8px; right: auto; top: 8px; }
.c-x { position: absolute; right: 9px; top: 3px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.c-x svg { width: 13px; height: 13px; }
.tail { animation: wag var(--wag, 1s) ease-in-out infinite alternate; }
@keyframes wag { from { transform: scaleX(1) skewY(-5deg); } to { transform: scaleX(.72) skewY(6deg); } }
.sleeping .tail, .ava .tail, .pick .tail { animation: none; }
.dizzy { animation: dizzy 1.1s linear infinite; }
/* A speaking mouth flaps; a sleeper's bubble swells and shrinks at its nose. */
.flap { animation: flap .2s ease-in-out infinite alternate; }
@keyframes flap { from { transform: scale(1, 1); } to { transform: scale(.82, .34); } }
.snot { transform-origin: 3px -4px; animation: snot 2.6s ease-in-out infinite alternate; }
@keyframes snot { from { transform: scale(.25); } to { transform: scale(1.25); } }
.ava .flap, .ava .snot, .c-fish .flap, .pick .flap { animation: none; }
@keyframes dizzy { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tail, .dizzy, .flap, .snot { animation: none; } }

/* ─── A line said in the water: a black sticker ─── */
.say { position: absolute; left: 0; top: 0; max-width: min(74%, 300px); padding: 10px 14px 11px; border-radius: 20px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; line-height: 1.32; opacity: 0; transition: opacity .25s ease; will-change: transform; }
.say.on { opacity: 1; }
.say b { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.say b i { width: 9px; height: 9px; border-radius: 50%; }
.say::after { content: ''; position: absolute; left: var(--tail, 30px); bottom: -7px; width: 16px; height: 16px; margin-left: -8px; background: var(--ink); border-radius: 3px; transform: rotate(45deg); }
.say.below::after { bottom: auto; top: -7px; }

/* ─── A piece of news: a coin ─── */
#coin { position: absolute; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--lemon); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; text-align: center; }
#coin { pointer-events: auto; color: var(--ink); text-decoration: none; }
#coin b { font-weight: 800; max-width: 84px; overflow: hidden; white-space: nowrap; }
/* A token with a picture: the picture is the coin, in a yellow ring, and its ticker on a black label under it. */
#coin.pic img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); border-radius: 50%; object-fit: cover; background: #fff; }
#coin .tag { position: absolute; left: 50%; bottom: -17px; transform: translateX(-50%); display: flex; align-items: baseline; gap: 6px; height: 28px; line-height: 28px; padding: 0 12px; border-radius: 14px; background: var(--ink); color: #fff; white-space: nowrap; }
#coin .tag b { max-width: 110px; font-size: 13px; text-overflow: ellipsis; }
#coin .tag .cap { opacity: .7; font-size: 11px; }
#coin .tag .up { color: #4ee07f; }
#coin .tag .down { color: #ff7a85; }
/* The mark that says a coin leads somewhere. */
#coin[href]::after { content: ''; position: absolute; right: -2px; top: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTggMTZMMTYgOE05IDhoN3Y3IiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmYiIHN0cm9rZS13aWR0aD0iMi42IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=") center / 16px no-repeat; }
#coin span { font-size: 12px; font-weight: 700; }
#coin .cap { font-size: 10.5px; font-weight: 600; opacity: .7; }
#coin.drop { animation: drop .9s cubic-bezier(.3, 1.4, .5, 1) both, bobc 4s ease-in-out .9s infinite alternate; }
@keyframes drop { from { transform: translateY(-260px); } to { transform: none; } }
@keyframes bobc { to { transform: translateY(7px) rotate(-4deg); } }
.up { color: var(--up); }
.down { color: var(--down); }

/* ─── Discs and pills: the black sticker ─── */
.disc { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; position: relative; }
.disc svg { width: 22px; height: 22px; }
.disc.lemon { background: var(--lemon); color: var(--ink); }
.disc.lemon svg { width: 27px; height: 20px; }
.disc.lemon i { position: absolute; right: -2px; top: -4px; width: 19px; height: 19px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 14px/19px Poppins, sans-serif; text-align: center; }
.disc.ghost { background: var(--paper); color: var(--ink); }
.pill { height: 46px; padding: 0 22px; border-radius: 23px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .01em; }
.pill.wide { width: 100%; }
.bad { animation: bad .4s; }
@keyframes bad { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-4px); } }

#unread { position: absolute; z-index: 5; right: 16px; top: calc(8px + env(safe-area-inset-top, 0px)); width: auto; min-width: 46px; padding: 0 14px; border-radius: 23px; display: flex; gap: 6px; font-weight: 800; font-size: 15px; }
#unread.none b { display: none; }
#unread.none { padding: 0; }
#unread svg { width: 20px; height: 20px; }

/* ─── Who is who: the button, then every fish's identity card ─── */
#roster-open { position: absolute; z-index: 5; right: 16px; top: calc(62px + env(safe-area-inset-top, 0px)); width: auto; min-width: 46px; padding: 0 13px 0 11px; border-radius: 23px; display: flex; gap: 6px; font-weight: 800; font-size: 15px; background: var(--lemon); color: var(--ink); }
#roster-open svg { width: 26px; height: 19px; }
.inline #roster-open { top: calc(8px + env(safe-area-inset-top, 0px)); }
#roster { position: absolute; z-index: 21; inset: 0; background: var(--white); transform: translateY(102%); transition: transform .34s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; overscroll-behavior: contain; padding: 0 16px calc(24px + var(--safe)); }
.roster-open #roster { transform: none; }
#roster h2 { margin: 0; padding: calc(18px + env(safe-area-inset-top, 0px)) 0 16px; font-size: 26px; font-weight: 800; letter-spacing: .01em; }
#roster-close { position: sticky; float: right; top: calc(10px + env(safe-area-inset-top, 0px)); margin-top: 10px; z-index: 2; }
#cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; clear: both; }
/* A card is a small book cover: the fish as one large shape cut by the edge, its name printed on it. */
.card { display: flex; flex-direction: column; text-align: left; border-radius: 20px; overflow: hidden; background: var(--paper); color: var(--ink); transition: transform .15s; }
.card:active { transform: scale(.97); }
.c-pic { position: relative; height: 124px; overflow: hidden; }
/* The card's edge cuts the tail, never the face. */
.c-fish { position: absolute; right: 3%; top: 50%; width: 104%; aspect-ratio: 120 / 80; transform: translateY(-56%); }
.c-fish svg { display: block; width: 100%; height: 100%; overflow: visible; }
.c-fish .tail { animation: none; }
.c-mark { position: absolute; width: 20%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.c-name { position: absolute; left: 12px; bottom: 3px; text-shadow: 0 0 0 var(--paper); font-size: 21px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1; }
.c-body { position: relative; flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 8px 12px 12px; }
.c-kind { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .6; padding-right: 62px; }
.c-trait { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.3; }
.c-model { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.c-ai { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 9px 3px 3px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.15; }
.c-ai svg { width: 18px; height: 18px; flex: none; }
.c-last { margin: 2px 0 0; padding: 0 10px; border: solid var(--ink); border-width: 7px 0 8px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* How many lines it has said: a small yellow counter, as on a jersey. */
.c-said { position: absolute; right: 10px; top: 4px; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--lemon); font: 800 10.5px/22px Poppins, sans-serif; text-align: center; white-space: nowrap; }
/* A fish called from its card is ringed for a moment, to be found in the tank. */
.fish.ping::before { content: ''; position: absolute; left: 50%; top: 50%; width: 130%; aspect-ratio: 1; border-radius: 50%; background: var(--lemon); transform: translate(-50%, -50%); animation: ping 1.2s ease-out infinite; z-index: -1; }
@keyframes ping { from { transform: translate(-50%, -50%) scale(.5); opacity: .9; } to { transform: translate(-50%, -50%) scale(1.25); opacity: 0; } }

/* ─── The bar ─── */
#dock { position: relative; z-index: 6; flex: none; background: var(--white); display: flex; flex-direction: column; min-height: 0; }
#bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 9px 12px calc(9px + var(--safe)); }
#bar .who { flex: none; height: 30px; padding: 0 10px; border-radius: 15px; background: var(--paper); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
#bar .write { flex: 1; min-width: 0; display: flex; gap: 8px; }
#bar input { flex: 1; min-width: 0; height: 46px; padding: 0 18px; border: 0; border-radius: 23px; background: var(--paper); font-size: 16px; font-weight: 500; outline: none; }
#bar input::placeholder { color: var(--mute); }
#bar .shut { flex: 1; height: 46px; border-radius: 23px; background: var(--paper); display: flex; align-items: center; justify-content: space-between; padding: 0 5px 0 6px; }
#bar .need { height: 36px; min-width: 36px; padding: 0 14px; border-radius: 18px; border: 2.5px dashed var(--ink); display: grid; place-items: center; font-size: 13px; }
#bar .need b { font-weight: 800; }
#bar .lock { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
#bar .lock svg { width: 18px; height: 18px; }

/* ─── The thread ─── */
#sheet { position: absolute; z-index: 20; inset: 0; background: var(--white); transform: translateY(102%); transition: transform .34s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
.thread-open #sheet { transform: none; }
#sheet-close { position: absolute; right: 16px; top: calc(8px + env(safe-area-inset-top, 0px)); z-index: 2; }
#sheet #thread { padding-top: 64px; }
#thread { scrollbar-width: thin; scrollbar-color: rgba(128, 128, 128, .5) transparent; flex: 1; min-height: 0; margin: 0; padding: 14px 16px 18px; list-style: none; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 14px; }
#thread li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500; line-height: 1.36; }
#thread li.line .ava { flex: none; margin-top: 3px; }
#thread li b { display: block; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
#thread li b em { font-style: normal; font-weight: 600; color: var(--mute); margin-left: 6px; letter-spacing: .02em; text-transform: none; }
#thread li.news { justify-content: center; }
.chip { color: var(--ink); display: inline-flex; align-items: baseline; gap: 8px; height: 30px; line-height: 30px; padding: 0 14px; border-radius: 15px; background: var(--lemon); font-size: 12.5px; font-weight: 700; }
.chip { text-decoration: none; }
.chip img { align-self: center; width: 22px; height: 22px; margin-left: -9px; border-radius: 50%; object-fit: cover; background: #fff; }
a.chip::after { content: '↗'; font-weight: 800; margin-left: -2px; }
.tk { color: inherit; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: inset 0 -2px 0 var(--lemon); }
.tk img { width: 17px; height: 17px; margin-right: 3px; border-radius: 50%; object-fit: cover; vertical-align: -3px; background: #fff; }
.chip b { display: inline !important; font-size: 13px !important; letter-spacing: 0 !important; text-transform: none !important; font-weight: 800; }
#thread li.chat { align-self: flex-end; max-width: 82%; flex-direction: column; gap: 1px; padding: 9px 14px 10px; border-radius: 20px; background: var(--ink); color: #fff; overflow-wrap: anywhere; }
#thread li.chat b { color: var(--lemon); }
#thread li.since { position: relative; padding-top: 22px; }
#thread li.since::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 3px; background: var(--lemon); }
.ava svg { display: block; width: 100%; height: 100%; }

/* ─── Create your fish ─── */
#make { width: 100%; max-width: 560px; height: 100%; max-height: none; margin: 0 auto; padding: 0; border: 0; background: var(--white); color: var(--ink); }
#make::backdrop { background: var(--white); }
#makeform { height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 12px 16px calc(14px + var(--safe)); overflow-y: auto; }
#cancel { position: absolute; right: 16px; top: 12px; z-index: 2; }
.preview { position: relative; flex: none; height: 30vh; min-height: 170px; margin: -12px -16px 0; overflow: hidden; background: var(--paper); }
#pv-fish { position: absolute; left: 50%; top: 52%; width: min(118%, 520px); aspect-ratio: 120 / 80; transform: translate(-46%, -50%); }
#pv-fish svg { width: 100%; height: 100%; display: block; overflow: visible; }
#pv-mark { position: absolute; width: 21%; aspect-ratio: 1; transform: translate(-50%, -50%); }
#pv-mark svg { display: block; width: 100%; height: 100%; }
#pv-name { position: absolute; left: 18px; bottom: 12px; font-size: 34px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1; max-width: calc(100% - 36px); overflow: hidden; white-space: nowrap; }
.pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pick button { aspect-ratio: 1; border-radius: 50%; background: var(--paper); display: grid; place-items: center; padding: 6px; transition: transform .15s; }
.pick button svg { width: 100%; display: block; overflow: visible; }
.pick button.on { background: var(--ink); transform: scale(1.06); }
.pick.labs { grid-template-columns: repeat(6, 1fr); }
.pick.labs button { padding: 9px; }
.pick.labs button.on { padding: 5px; }
#make input { height: 50px; padding: 0 18px; border: 0; border-radius: 25px; background: var(--paper); font-size: 16px; font-weight: 600; outline: none; }
#make input::placeholder { color: var(--mute); font-weight: 500; }
#fname { font-weight: 800 !important; letter-spacing: .04em; }
#swim { flex: none; height: 54px; border-radius: 27px; font-size: 17px; margin-top: auto; }

/* ─── Night: asleep, and broke ─── */
/* Asleep: a moon. Broke: the sun waits under the tank, and the time left until it rises is printed on it. */
#moon { position: absolute; border-radius: 50%; background: var(--lemon); opacity: 0; transition: opacity .8s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1); width: 150px; height: 150px; right: -44px; top: 84px; transform: translateY(-40px); }
.dozing #moon { opacity: 1; transform: none; }
#sun { position: relative; z-index: 7; flex: none; height: 0; margin: 0 -10%; overflow: hidden; background: var(--lemon); border-radius: 50% 50% 0 0 / 100% 100% 0 0; display: grid; place-items: center; transition: height .9s cubic-bezier(.2, .8, .2, 1); }
.broke #sun { height: 138px; }
.broke #bar { display: none; }
.broke #dock { margin-top: 0 !important; border-radius: 0 !important; }
.clock { padding-top: 22px; font-size: clamp(40px, 14vw, 68px); font-weight: 800; letter-spacing: .03em; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1; }
.night, .night #app { background: #0c0c0e; }
.night #word { color: #fff; }
.night #dock { background: #0c0c0e; }
.night #bar { opacity: .35; pointer-events: none; }
.night #unread { background: #fff; color: var(--ink); }

/* ─── The prototype's own buttons: not part of the page ─── */

/* ─── Look D: the television ─── */
/* Look D: an old wooden console television whose screen is the tank (the owner's picture, 2026-11-22). The set takes the
   whole window. The tank is nearly all of it; the conversation stands on the right, where the set has its knobs. */
body[data-look="D"] { --water: #37a6d8; --wood: #5a392b; --cream: #f1e9d6; background: #2a1a13; }
body[data-look="D"] #app { max-width: none; background: #2a1a13; }

/* The cabinet: dark walnut, its grain running along the top. */
.cabinet { position: absolute; inset: 0; display: flex; flex-direction: column; padding: clamp(22px, 4.6vh, 48px) clamp(10px, 2.4vw, 38px) clamp(12px, 3vh, 34px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16) 0, rgba(255, 255, 255, 0) 5px, rgba(255, 255, 255, .05) clamp(14px, 2.6vh, 26px), rgba(0, 0, 0, .42) clamp(15px, 2.8vh, 28px), rgba(0, 0, 0, 0) clamp(24px, 4.4vh, 44px)),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .10) 0 2px, rgba(0, 0, 0, 0) 2px 9px, rgba(255, 255, 255, .035) 9px 10px, rgba(0, 0, 0, 0) 10px 23px),
    repeating-linear-gradient(88deg, rgba(0, 0, 0, .07) 0 1px, rgba(0, 0, 0, 0) 1px 41px),
    linear-gradient(180deg, #6d4634 0%, #5a392b 40%, #47291e 100%); }
/* The one sentence, engraved on a brass plate screwed to the wood over the screen. */
.plaque { flex: none; align-self: center; position: relative; margin: 0 0 clamp(8px, 1.6vh, 16px); padding: 7px 30px 8px; max-width: 100%; border-radius: 4px; text-align: center; font-size: clamp(12px, 1.25vw, 17px); font-weight: 700; line-height: 1.25; letter-spacing: .01em; color: #2f2208;
  background: linear-gradient(180deg, #f0d48a 0%, #d2ad55 48%, #b78f3c 52%, #dcbb6a 100%); box-shadow: 0 0 0 1px #6b5220, 0 3px 8px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .55); }
.plaque::before, .plaque::after { content: ''; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f6e2a6, #7d5f22); box-shadow: 0 0 0 1px #5c4517; }
.plaque::before { left: 10px; }
.plaque::after { right: 10px; }

/* The chrome rim, then the dark face that holds the screen and the panel. */
.face { flex: 1; min-width: 0; min-height: 0; display: flex; gap: clamp(8px, 1.2vw, 16px); padding: clamp(8px, 1.1vw, 14px); border-radius: 16px;
  background: #171615;
  box-shadow: 0 0 0 2px #2b2a28, 0 0 0 clamp(5px, .7vw, 9px) #b9b8b2, 0 0 0 clamp(6px, .8vw, 10px) #6f6e69, inset 0 0 0 1px #000, 0 10px 30px rgba(0, 0, 0, .55);
  margin: clamp(6px, .8vw, 10px); }

/* The screen: a dark mask, and the picture tube's rounded glass over the water. */
.screen { position: relative; flex: 1; min-width: 0; min-height: 0; border-radius: 26px; background: #0b0b0b; padding: clamp(8px, 1.2vw, 16px); box-shadow: inset 0 0 0 2px #9d9c96, inset 0 0 0 4px #3a3937; }
body[data-look="D"] #stage { position: relative; width: 100%; height: 100%; flex: none; border-radius: 8% / 10%; background: var(--water); transition: background-color .9s ease; }
.glass { position: absolute; inset: clamp(8px, 1.2vw, 16px); border-radius: 8% / 10%; pointer-events: none; z-index: 8;
  background: linear-gradient(118deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .05) 22%, rgba(255, 255, 255, 0) 34%), radial-gradient(ellipse at 50% 46%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .34) 100%);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .7), inset 0 0 46px rgba(0, 0, 0, .42); }
.midplane { position: absolute; inset: 0; z-index: 45; pointer-events: none; }
/* The shut chest gives way to the open one at the second step. */
/* The shut chest gives way to the open one. (Scoped to the drawing: the bar has a shut box of its own.) */
g.shut { transition: opacity .5s ease; }
body[data-level="2"] g.shut, body[data-level="3"] g.shut, body[data-level="4"] g.shut { opacity: 0; }
.nearplane { position: absolute; inset: 0; }
.plane { transition: opacity .9s ease; }
.d { transform: scale(0); transform-box: fill-box; transform-origin: 50% 100%; transition: transform .9s cubic-bezier(.3, 1.35, .5, 1); }
body[data-level="1"] .d1, body[data-level="2"] .d1, body[data-level="3"] .d1, body[data-level="4"] .d1,
body[data-level="2"] .d2, body[data-level="3"] .d2, body[data-level="4"] .d2,
body[data-level="3"] .d3, body[data-level="4"] .d3,
body[data-level="4"] .d4 { transform: none; }

/* The panel: the name plate, the two knobs, the loudspeaker's slats, then the conversation. */
.panel { flex: none; width: clamp(280px, 27vw, 400px); display: flex; flex-direction: column; min-height: 0; border-radius: 12px; background: linear-gradient(180deg, #262524, #1a1918); box-shadow: inset 0 0 0 1px #3b3a37; overflow: hidden; }
.controls { flex: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 12px 14px 10px; }
body[data-look="D"] #word { position: static; color: #d9d6cc; font-size: 17px; letter-spacing: .08em; text-shadow: 0 1px 0 #000; }
.brand { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 4px; justify-self: start; background: linear-gradient(180deg, #3a3936, #24231f); box-shadow: inset 0 0 0 1px #55534e; }
.sign { width: 30px; height: 30px; border-radius: 6px; display: block; }
.knobs { display: flex; align-items: center; gap: 12px; }
.dial { position: relative; width: 66px; height: 66px; flex: none; border-radius: 50%; background: #0e0e0d; box-shadow: inset 0 0 0 2px #45433f, 0 1px 0 #4a4844; display: grid; place-items: center; }
.dial.small { width: 46px; height: 46px; }
.knob { grid-area: 1 / 1; width: 60%; height: 60%; border-radius: 50%; position: relative; transform: rotate(var(--turn, -90deg)); transition: transform .6s cubic-bezier(.3, 1.4, .5, 1);
  background: conic-gradient(#f4f4f1, #8b8a85, #e9e8e3, #77766f, #f4f4f1, #8f8e88, #ecebe6, #807f79, #f4f4f1); box-shadow: 0 2px 5px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(0, 0, 0, .35); }
.knob::after { content: ''; position: absolute; left: 50%; top: 4%; width: 4px; height: 40%; margin-left: -2px; border-radius: 2px; background: #c9281c; }
.knob.still { transform: rotate(38deg); }
.ticks { position: absolute; inset: 0; }
.ticks i { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(-27px); }
.ticks b { position: absolute; left: -5px; top: -7px; width: 10px; font: 700 9px/1 Poppins, sans-serif; color: #cfccc2; text-align: center; transform: rotate(calc(-1 * var(--a))); }
.lamp { width: 9px; height: 9px; border-radius: 50%; background: #58d66b; box-shadow: 0 0 8px #58d66b; transition: background-color .6s, box-shadow .6s; }
.night .lamp { background: #e2392b; box-shadow: 0 0 8px #e2392b; }
/* The gauge: the set's lit dial. Market cap above, memory below, one red needle through both. */
.gauge { grid-column: 1 / -1; padding: 8px 12px 9px; border-radius: 8px; color: #2a1a0c; cursor: ew-resize; touch-action: none; user-select: none; -webkit-user-select: none;
  background: linear-gradient(180deg, #fbefc9, #f1dfae); box-shadow: inset 0 0 0 2px #1b1a18, inset 0 0 18px rgba(160, 110, 20, .45), 0 0 0 1px #55534e; }
.g-row { display: flex; align-items: baseline; gap: 8px; line-height: 1.1; }
.g-k { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.g-cap, .g-mem { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.g-next { margin-left: auto; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 9px; background: #2a1a0c; color: #fbefc9; white-space: nowrap; }
.g-next:empty { display: none; }
.g-scale { position: relative; height: 52px; margin: 3px 8px 4px; border-top: 2px solid #2a1a0c; border-bottom: 2px solid #2a1a0c; background: repeating-linear-gradient(90deg, rgba(42, 26, 12, .28) 0 1px, transparent 1px 3.333%); }
.g-scale i { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid #2a1a0c; font-style: normal; }
.g-scale i b, .g-scale i em { position: absolute; left: 0; transform: translateX(-50%); padding: 0 2px; background: #f6e7bb; font: 700 10.5px/1 Poppins, sans-serif; white-space: nowrap; }
.g-scale i b { top: 5px; }
.g-scale i em { bottom: 5px; }
.g-scale i:first-child b, .g-scale i:first-child em { transform: none; left: 2px; }
.g-scale i:nth-last-child(2) b, .g-scale i:nth-last-child(2) em { transform: translateX(-100%); left: -2px; }
.g-scale i.past b, .g-scale i.past em { background: #2a1a0c; color: #fbefc9; }
.g-needle { position: absolute; top: -7px; bottom: -7px; left: var(--at, 0%); width: 3px; margin-left: -1.5px; border-radius: 2px; background: #c9281c; box-shadow: 0 0 6px rgba(201, 40, 28, .7); transition: left .5s cubic-bezier(.3, 1.3, .5, 1); }
.g-needle::before { content: ''; position: absolute; left: 50%; top: -5px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: #c9281c; }
.night .gauge { filter: brightness(.55); }

.grille { display: none; grid-column: 1 / -1; height: 26px; border-radius: 4px; background: repeating-linear-gradient(180deg, #0d0d0c 0 3px, #33322f 3px 5px); box-shadow: inset 0 0 0 1px #000; }

/* The button to every fish's card, as one of the set's keys. */
body[data-look="D"] #x-home { position: static; width: 38px; height: 38px; border-radius: 8px; background: linear-gradient(180deg, #f6eeda, #d8cdb2); color: var(--ink); box-shadow: 0 2px 0 #000, inset 0 1px 0 #fff; }
body[data-look="D"] #roster-open { position: static; height: 38px; min-width: 0; padding: 0 12px 0 10px; border-radius: 8px; background: linear-gradient(180deg, #f6eeda, #d8cdb2); color: var(--ink); box-shadow: 0 2px 0 #000, inset 0 1px 0 #fff; font-size: 14px; }
body[data-look="D"] #roster { background: #1a1918; color: var(--cream); }
body[data-look="D"] #roster h2 { color: var(--cream); }
body[data-look="D"] #roster-close { background: var(--cream); color: var(--ink); }

/* The conversation, on the dark panel. */
body[data-look="D"] #dock { flex: 1; min-height: 0; background: none; color: var(--cream); }
body[data-look="D"] #dock-top { flex: 1; min-height: 0; display: flex; }
body[data-look="D"] #thread { padding: 12px 14px 14px; gap: 13px; }
body[data-look="D"] #thread li { font-size: 14px; }
body[data-look="D"] #thread li b { color: #fff; }
body[data-look="D"] #thread .chip b { color: var(--ink); }
body[data-look="D"] #thread li b em { color: #9a968b; }
body[data-look="D"] #thread li.chat { background: var(--cream); color: var(--ink); }
body[data-look="D"] #thread li.chat b { color: #8a5a00; }
body[data-look="D"] #bar { padding: 9px 10px calc(10px + var(--safe)); border-top: 1px solid #000; box-shadow: 0 -1px 0 #3b3a37; }
body[data-look="D"] #bar .pill { background: var(--cream); color: var(--ink); }
body[data-look="D"] #bar input, body[data-look="D"] #bar .shut, body[data-look="D"] #bar .who { background: #35332f; color: var(--cream); }
body[data-look="D"] #bar input::placeholder { color: #9a968b; }
body[data-look="D"] #bar .need { border-color: var(--cream); }
body[data-look="D"] #bar .lock, body[data-look="D"] #bar .write .disc { background: var(--cream); color: var(--ink); }

/* Night. Asleep: a moon in the picture. Broke: the same moon, larger, with the time left printed on it. */
body[data-look="D"] #sun { display: none; }
.night[data-look="D"] #stage { background: #0f1c4a; }
.night .decor { opacity: .28; }
.night .wall { opacity: .2; }
body[data-look="D"] #moon { right: 6%; top: 9%; width: 120px; height: 120px; display: grid; place-items: center; }
body[data-look="D"] #moon .clock { display: none; padding: 0; font-size: 34px; }
.broke[data-look="D"] #moon { opacity: 1; transform: none; width: 230px; height: 230px; }
.broke[data-look="D"] #moon .clock { display: block; }
.night[data-look="D"] #dock { background: none; }
.night[data-look="D"] #thread { opacity: .4; }
.broke[data-look="D"] #bar { display: flex; }

/* A phone held upright: no room on the right, so the panel goes under the screen. */
@media (max-aspect-ratio: 1/1) {
  .face { flex-direction: column; }
  .screen { flex: 0 0 46%; }
  .plaque { padding: 6px 24px 7px; font-size: 12px; }
  .g-scale { height: 42px; }
  .controls { gap: 2px 12px; }
  .panel { width: auto; flex: 1; }
  .controls { grid-template-columns: 1fr auto; padding: 8px 12px 6px; }
  .grille { display: none; }
  .dial { width: 54px; height: 54px; }
  .dial.small { display: none; }
  .ticks i { transform: rotate(var(--a)) translateY(-22px); }
  .broke[data-look="D"] #moon { width: 170px; height: 170px; }
  body[data-look="D"] #coin { zoom: .78; }
  body[data-look="D"] #moon .clock { font-size: 26px; }
}


/* ─── The live page's own parts (the prototypes drew these with a fake wallet) ─── */
/* The X on a fish takes a tap only when the film is on. */
.has-film .fx { pointer-events: auto; }
/* The same on a fish's card: its X shows with the film, on a line of its own height beside the kind. */
body:not(.has-film) .c-x { display: none; }
.has-film .c-kind { line-height: 30px; }
.has-film .c-x { top: 8px; }
/* Feed them with CA: the form is the field. Its states: reader (a tap signs in), shut (no token), open, wait. */
#feed { position: absolute; z-index: 4; left: 14px; top: 12px; width: min(340px, calc(100% - 156px)); height: 44px; margin: 0; display: flex; align-items: center; gap: 9px; padding: 0 5px 0 12px; border-radius: 22px; background: var(--white); color: var(--ink); box-shadow: 0 3px 0 rgba(17, 17, 17, .22); overflow: hidden; }
#feed .pellet { position: relative; flex: none; width: 15px; height: 15px; border-radius: 50%; background: var(--lemon); box-shadow: inset 0 0 0 2.5px var(--ink); }
#feed input { position: relative; flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; outline: none; color: var(--ink); font: 600 14px Poppins, system-ui, sans-serif; }
#feed input:read-only { cursor: pointer; }
#feed input::placeholder { color: var(--ink); opacity: .62; font-weight: 700; }
@media (pointer: coarse) { #feed input { font-size: 16px; } }
#feed .disc { position: relative; flex: none; width: 34px; height: 34px; background: var(--ink); color: #fff; }
#feed .disc svg { width: 17px; height: 17px; }
#feed .disc:disabled { color: #fff; }
#feed .need { position: relative; margin-right: auto; height: 30px; padding: 0 11px; border-radius: 15px; border: 2.5px dashed var(--ink); display: grid; place-items: center; font-size: 12px; white-space: nowrap; }
#feed .need b { font-weight: 800; }
#feedfill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--lemon); transition: width 1s linear; }
#feedwait { position: relative; flex: 1; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
#feed.busy { pointer-events: none; }
#feed.busy .disc { animation: busy .7s linear infinite; }
@keyframes busy { to { transform: rotate(360deg); } }
.night #feed { opacity: .35; pointer-events: none; }
@media (max-width: 520px) {
  #feed { left: 10px; top: 10px; width: calc(100% - 112px); height: 42px; gap: 7px; padding-left: 14px; }
  #feed[data-state="open"] .pellet, #feed[data-state="reader"] .pellet { display: none; }
  #feed input::placeholder { font-size: 13.5px; }
  /* A narrow phone (360): the field's words were cut under the lock. */
  @media (max-width: 380px) {
    #feed { gap: 5px; padding-left: 11px; }
    #feed input::placeholder { font-size: 12px; }
  }
  /* The coin sits near the top on a phone: its feeder's label keeps inside the glass. */
  #coin .fed { left: -20px; top: 0; }
}
/* The bar: the sign-in button, or the visitor's short name, the words, send, and "create your fish". */
#bar .write { align-items: center; }
#bar #send { font-weight: 800; font-size: 15px; }
#bar #send:disabled, #bar #create:disabled { opacity: .5; }
body[data-look="D"] #bar #create { background: var(--lemon); color: var(--ink); }
#bar .shut { margin: 0; }
/* The dial under the admin key. */
.gauge.admin { cursor: ew-resize; touch-action: none; }
.g-live { margin-left: 8px; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--ink); color: #fff; font: 800 10px/20px Poppins, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }

/* Full screen: the key in the tank's corner, and the tank alone over the whole screen. */
/* White on the water, clear of the screen's rounded corner, so that it is seen at a glance. */
#full { position: absolute; z-index: 5; right: max(18px, 3.4%); bottom: max(16px, 4.4%); width: auto; min-width: 50px; height: 50px; padding: 0 13px; border-radius: 25px; display: flex; align-items: center; justify-content: center; background: var(--white); color: var(--ink); box-shadow: 0 3px 0 rgba(17, 17, 17, .28); cursor: pointer; }
#full svg { flex: none; width: 24px; height: 24px; }
#full span { max-width: 0; overflow: hidden; white-space: nowrap; font: 800 14px/1 Poppins, system-ui, sans-serif; transition: max-width .35s ease, margin .35s ease; }
#full.hint span, #full:hover span, #full:focus-visible span { max-width: 150px; margin-right: 9px; }
@media (hover: none) { #full:hover:not(.hint) span { max-width: 0; margin-right: 0; } }
body.full .screen { position: fixed; inset: 0; z-index: 50; flex: none; padding: 0; border-radius: 0; box-shadow: none; background: #000; }
body.full .glass { display: none; }
body.full #stage { border-radius: 0; }
body.full #full { right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
body.full #feed { left: calc(14px + env(safe-area-inset-left, 0px)); top: calc(12px + env(safe-area-inset-top, 0px)); }
.night #full { opacity: .85; }
/* Strangers' words never widen the page: a long word breaks, a long ticker is cut. */
#thread li { min-width: 0; max-width: 100%; }
#thread li .txt { min-width: 0; overflow-wrap: anywhere; }
.chip { min-width: 0; max-width: 100%; }
.chip b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.say { overflow-wrap: anywhere; }
#coin .tag b { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.c-name, .c-trait, .c-last { overflow-wrap: anywhere; }

/* ─── The tank as a wallpaper ─── */
/* ?wall: the water alone, edge to edge, with nothing to tap and no cursor; the mark stays small in a corner. */
body.wall .screen { position: fixed; inset: 0; z-index: 50; flex: none; padding: 0; border-radius: 0; box-shadow: none; background: #000; }
body.wall #stage { border-radius: 0; pointer-events: none; }
body.wall .glass, body.wall #feed, body.wall #full { display: none; }
body.wall, body.wall * { cursor: none !important; }
#wallmark { display: none; }
/* On a ground of its own: on the bare gravel its letters were lost among the bubbles. */
body.wall #wallmark { position: absolute; z-index: 5; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 5px; border-radius: 17px; background: rgba(17, 17, 17, .62); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .08em; opacity: .9; }
#wallmark img { width: 24px; height: 24px; border-radius: 6px; }
/* The key in the panel, and its sheet: the link, and the apps that take it. */
body[data-look="D"] #wall-open { position: static; width: 38px; height: 38px; border-radius: 8px; background: linear-gradient(180deg, #f6eeda, #d8cdb2); color: var(--ink); box-shadow: 0 2px 0 #000, inset 0 1px 0 #fff; cursor: pointer; }
#wall-open svg { width: 20px; height: 20px; }
#wallsheet { width: min(100% - 24px, 400px); max-height: calc(100% - 24px); margin: auto; padding: 0; border: 0; border-radius: 26px; background: var(--white); color: var(--ink); overflow: hidden auto; }
#wallsheet::backdrop { background: rgba(17, 17, 17, .74); }
.wall-box { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 12px; }
#wall-close { position: absolute; right: 20px; top: 20px; z-index: 2; width: 38px; height: 38px; }
.wall-pic { height: 112px; border-radius: 18px; background: var(--lemon); display: grid; place-items: center; }
.wall-pic svg { width: 150px; height: 102px; }
.wall-box h2 { margin: 2px 4px 0; font-size: 20px; font-weight: 800; line-height: 1.1; }
.wall-link { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 5px 0 16px; border-radius: 25px; background: var(--paper); }
.wall-link input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; outline: none; color: var(--ink); font: 600 13px Poppins, system-ui, sans-serif; text-overflow: ellipsis; }
.wall-link .disc { width: 40px; height: 40px; cursor: pointer; }
.wall-link .disc svg { width: 19px; height: 19px; }
.wall-link .disc.done { background: var(--lemon); color: var(--ink); }
.wall-rows { list-style: none; margin: 0; padding: 0 4px 6px; display: grid; gap: 8px; }
.wall-rows li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.wall-rows svg { flex: none; width: 28px; height: 28px; }
.wall-rows b { min-width: 76px; font-weight: 800; }
body.wall #coin[href]::after { display: none; }

/* ─── Copy in one tap ─── */
/* A line of the thread: a small key at its right, which reads "Copied" for a moment. */
.cp { flex: none; align-self: flex-start; min-width: 30px; height: 30px; padding: 0; border-radius: 15px; display: grid; place-items: center; background: none; color: inherit; opacity: .55; cursor: pointer; }
.cp:hover { opacity: 1; }
.cp svg { width: 17px; height: 17px; }
.cp.done { padding: 0 10px; background: var(--lemon); color: var(--ink); opacity: 1; font: 800 11px/30px Poppins, system-ui, sans-serif; letter-spacing: .04em; }
/* A sticker on the water takes the tap itself: a small copy mark beside the name says so, and "Copied" stands on it. */
.say { pointer-events: auto; cursor: pointer; }
.say:not(.on) { pointer-events: none; }
.cp-hint { margin-left: auto; padding-left: 10px; display: grid; opacity: .6; }
.cp-hint svg { width: 13px; height: 13px; }
.say.copied::before { content: 'Copied'; position: absolute; right: 8px; top: -11px; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--lemon); color: var(--ink); font: 800 11px/24px Poppins, system-ui, sans-serif; letter-spacing: .04em; }
/* Our token's contract address, under the name. */
.names { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
#ca-copy { display: flex; align-items: center; gap: 5px; height: 18px; padding: 0 7px; border-radius: 9px; background: #111; color: #d9d6cc; font: 700 10.5px/18px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; cursor: pointer; }
#ca-copy svg { width: 12px; height: 12px; opacity: .8; }
#ca-copy.done { background: var(--lemon); color: var(--ink); font-family: Poppins, system-ui, sans-serif; font-weight: 800; }
#ca-copy.done svg { display: none; }
/* A wallpaper takes no tap anywhere: neither a sticker, nor a fish's X, nor the coin. */
body.wall .say, body.wall .fx, body.wall #coin { pointer-events: none; }
/* The panel's keys on a phone held upright: four keys and the name share one row. */
@media (max-aspect-ratio: 1/1) {
  body[data-look="D"] .knobs { gap: 7px; }
  body[data-look="D"] #wall-open, body[data-look="D"] #x-home { width: 34px; height: 34px; }
  body[data-look="D"] #roster-open { height: 34px; padding: 0 9px 0 8px; gap: 4px; font-size: 13px; }
  body[data-look="D"] #word { font-size: 15px; }
  .brand { gap: 6px; padding-right: 8px; }
}
/* An address is read letter by letter: never capitals in place of small letters. */
#ca-copy, #ca-copy span { text-transform: none; font-variant: normal; }
#ca-copy { height: 20px; border-radius: 10px; font-size: 11.5px; line-height: 20px; }
/* In a phone's small tank the full-screen key keeps to its four corners: its words covered the fish's stickers. */
@media (max-width: 520px) { #full.hint span { max-width: 0; margin-right: 0; } }

/* The wallpaper sheet as three numbered steps: get the app, copy the link, paste it. */
.wall-steps { list-style: none; margin: 0; padding: 0 2px; display: grid; gap: 12px; }
.wall-steps > li { display: flex; gap: 10px; align-items: flex-start; }
.wall-steps > li > i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 14px/28px Poppins, system-ui, sans-serif; text-align: center; font-style: normal; }
.wall-steps > li > div { flex: 1; min-width: 0; display: grid; gap: 7px; }
.wall-steps > li > div > b { font-size: 15px; font-weight: 800; line-height: 28px; }
.wall-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wall-apps a { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 8px 8px 10px; border-radius: 16px; background: var(--lemon); color: var(--ink); text-decoration: none; }
.wall-apps a > svg:first-child { flex: none; width: 24px; height: 24px; }
.wall-apps a > svg:last-child { flex: none; width: 16px; height: 16px; margin-left: auto; }
.wall-apps a span { min-width: 0; display: grid; font-size: 11px; font-weight: 600; line-height: 1.2; }
.wall-apps a b { font-size: 13px; font-weight: 800; }
.wall-steps .wall-link { height: 46px; }
.wall-how { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.wall-how em { flex: none; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; display: grid; place-items: center; background: var(--paper); font: 800 11px/26px Poppins, system-ui, sans-serif; font-style: normal; }
.wall-how em svg { width: 15px; height: 15px; }
.wall-rows { padding-top: 4px; border-top: 2px solid var(--paper); }
.wall-rows li { align-items: flex-start; font-size: 13px; line-height: 1.35; }
.wall-rows svg { width: 22px; height: 22px; margin: 0 3px; }
.wall-rows b { min-width: 0; }

/* ─── Love ─── */
/* Couples, eggs and babies (love.js). A heart rides between two fish of a couple; a round egg waits on the gravel with
   a ring that fills; a pink pill tells each event in the thread; the couples stand over the fish cards. */
.heart, .egg, .burst { position: absolute; left: 0; top: 0; display: block; pointer-events: none; }
.heart { transition: opacity .5s ease; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25)); }
.heart svg, .egg svg, .burst svg { width: 100%; height: 100%; display: block; }
.egg { z-index: 96; filter: drop-shadow(0 3px 2px rgba(0, 0, 40, .35)); }
.egg svg { animation: eggrock 3.4s ease-in-out infinite; transform-origin: 50% 80%; }
.egg.soon svg { animation-duration: .5s; }
.egg.hatch { animation: eggpop 1.3s ease-out forwards; }
@keyframes eggrock { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes eggpop { 0% { filter: brightness(1); opacity: 1; scale: 1; } 25% { filter: brightness(3); scale: 1.5; } 100% { filter: brightness(3); opacity: 0; scale: 3.2; } }
.burst { z-index: 300; width: 0; height: 0; }
.burst svg { position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; animation: burst 2.4s cubic-bezier(.2, .8, .3, 1) forwards; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); }
@keyframes burst { 0% { transform: scale(.2); opacity: 0; } 14% { transform: scale(1.25); opacity: 1; } 28% { transform: scale(1); } 70% { transform: translateY(-46px) scale(1.05); opacity: 1; } 100% { transform: translateY(-90px) scale(1.1); opacity: 0; } }
.night .heart, .night .egg { opacity: .35 !important; }
.fish.child .mark { display: flex; }
.fish.child .mark svg { width: 50%; height: 100%; }
/* The pill of a love event: faces and one mark. */
#thread li.love { justify-content: center; }
.chip.pink { align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 18px; background: #ffd0e0; }
.chip.pink .ava { flex: none; }
.chip.pink .mk { flex: none; width: 20px; height: 20px; display: block; }
.chip.pink .mk svg { width: 100%; height: 100%; display: block; }
.chip.pink .mk.roe { width: 26px; height: 26px; }
.chip.pink.k-dumped { background: #e4e0d8; }
.chip.pink.k-hatched, .chip.pink.k-egg { background: #ffe9a8; }
/* The couples, over the cards. */
#pairs { clear: both; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
#pairs[hidden] { display: none; }
.pair { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 20px; background: #ffd0e0; color: var(--ink); }
.pair.gone { background: #e4e0d8; padding: 8px 12px; }
.p-two { display: flex; align-items: center; gap: 4px; }
.p-two .ava { flex: none; }
.p-heart { width: 22px; height: 22px; display: block; flex: none; }
.p-heart svg, .p-love svg, .p-egg svg { width: 100%; height: 100%; display: block; }
.p-love { display: grid; grid-template-columns: repeat(5, 13px); gap: 2px; }
.p-love i { width: 13px; height: 13px; display: block; }
.p-kid { display: flex; align-items: center; gap: 6px; padding-left: 10px; border-left: 2px solid rgba(17, 17, 17, .15); font-size: 13px; }
.p-kid b { font-weight: 800; }
.p-egg { width: 34px; height: 34px; display: block; }
@media (max-width: 520px) {
  .pair { gap: 8px; padding: 8px 10px; }
  .pair .p-two .ava { zoom: .8; }
}

/* ─── Life ─── */
/* A fish's ages and its moments (life.js). An old fish is faded; a dead one is taken by a net; a new one comes in a bag. */
.fish.s-old .body { filter: saturate(.42) brightness(1.12); }
.fish.dead { opacity: 1 !important; }
.fish.dead .fx, .fish.dead .mark { display: none; }
.net, .bag { position: absolute; left: 0; top: 0; display: block; pointer-events: none; }
.net svg, .bag svg { width: 100%; height: 100%; display: block; }
.net { z-index: 500; }
.bag { z-index: 450; transform-origin: 50% 0; animation: bagdrop .45s cubic-bezier(.3, 1.2, .5, 1); transition: opacity .5s ease, scale .5s ease; }
.bag.open { opacity: 0; scale: 1.5; }
@keyframes bagdrop { from { translate: 0 -160%; } to { translate: 0 0; } }
.burst.star svg { left: -24px; top: -24px; width: 48px; height: 48px; }
.chip.pink .mk.small { width: 14px; height: 14px; }
.chip.pink .mk.tall { width: 22px; height: 28px; }
.chip.pink.k-grew { background: #d3f0c2; }
.chip.pink.k-died, .chip.pink.k-widowed { background: #dcd9d2; }
.chip.pink.k-arrived { background: #cfe6ff; }
.chip.pink.k-arrived .mk.tall svg { filter: drop-shadow(0 0 0 #2a6fb0) brightness(.55); }
/* A card's life bar, from egg to death. */
.c-life { display: flex; align-items: center; gap: 5px; padding: 8px 12px 0; color: #8d8a86; }
.c-life .c-end { flex: none; width: 14px; height: 14px; display: block; }
.c-life .c-end svg { width: 100%; height: 100%; display: block; }
.c-line { flex: 1; height: 6px; border-radius: 3px; background: rgba(17, 17, 17, .12); overflow: hidden; }
.c-line i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ff8a2a, #e11d48); }
/* The last dead, under the cards. */
#memory { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 14px; border-radius: 20px; background: rgba(128, 128, 128, .22); filter: grayscale(.7); }
#memory[hidden] { display: none; }

/* ─── About ─── */
/* The "?" in the badge, and the sheet it unrolls: a picture and a short sentence a row. */
#about-open { flex: none; width: 24px; height: 24px; margin-left: 2px; padding: 0; border-radius: 50%; background: #f1ecdf; color: #111; font: 800 15px/24px Poppins, system-ui, sans-serif; text-align: center; cursor: pointer; box-shadow: 0 1px 0 #000, inset 0 1px 0 #fff; position: relative; }
#about-open::before { content: ''; position: absolute; inset: -9px; }
#about { width: min(100% - 24px, 430px); max-height: calc(100% - 24px); margin: auto; padding: 0; border: 0; border-radius: 26px; background: var(--white); color: var(--ink); overflow: hidden auto; }
#about::backdrop { background: rgba(17, 17, 17, .74); }
#about[open] { animation: unroll .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes unroll { from { clip-path: inset(0 0 100% 0 round 26px); translate: 0 -14px; } to { clip-path: inset(0 0 0 0 round 26px); translate: 0 0; } }
#about .wall-box { padding: 16px 14px 18px; gap: 14px; }
#about h2 { margin: 4px 50px 0 4px; }
#about-close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 38px; height: 38px; }
#about-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
#about-rows li { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 12px; }
.ab-pic { height: 62px; border-radius: 16px; background: #cfe9f7; display: flex; align-items: center; justify-content: center; gap: 2px; overflow: hidden; }
#about-rows li:nth-child(4n + 2) .ab-pic { background: var(--lemon); }
#about-rows li:nth-child(4n + 3) .ab-pic { background: #ffd0e0; }
#about-rows li:nth-child(4n) .ab-pic { background: #d3f0c2; }
.ab-fish { flex: none; display: block; aspect-ratio: 120 / 80; }
.ab-fish svg, .ab-i svg { width: 100%; height: 100%; display: block; }
.ab-fish .flap, .ab-fish .snot { animation: none; }
.ab-i { flex: none; display: block; }
#about-rows p { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.38; }
/* A phone held upright has no desktop to dress: the wallpaper key gives its place to the "?". */
@media (max-aspect-ratio: 1/1) {
  body[data-look="D"] #wall-open { display: none; }
  #about-rows li { grid-template-columns: 96px 1fr; gap: 10px; }
  #about-rows p { font-size: 13.5px; }
}

/* ─── PHOTO-SET START ─── */
/* The set is the owner's own picture (2026-11-22, late: "why not take the photo directly"). The picture is small and
   taken at an angle, so it was straightened and cut once into four frame pieces (site/set-*.webp): the wood, the silver
   face and the black mask around the glass; the control strip's frame. Each piece is laid as a nine-slice border, so the
   frame keeps its own thickness while its edges run the length of any screen. --u is one pixel of the picture.
   The glass's shine, the panel's silver and all that is inside the strip are drawn here. The water stays a flat drawing. */
body[data-look="D"] { --metal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1024' height='256'%3E%3Cfilter id='n0' x='0' y='0' width='100%' height='100%' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0012 0.7' numOctaves='3' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0 0 0 -0.24'/%3E%3C/filter%3E%3Cfilter id='n1' x='0' y='0' width='100%' height='100%' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0016 0.9' numOctaves='3' seed='17' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0.7 0 0 -0.29'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n0)'/%3E%3Crect width='100%' height='100%' filter='url(%23n1)'/%3E%3C/svg%3E"); --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n0' x='0' y='0' width='100%' height='100%' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85 0.85' numOctaves='2' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.42 0 0 0 -0.18'/%3E%3C/filter%3E%3Cfilter id='n1' x='0' y='0' width='100%' height='100%' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.9' numOctaves='2' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0.36 0 0 -0.16'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n0)'/%3E%3Crect width='100%' height='100%' filter='url(%23n1)'/%3E%3C/svg%3E"); --u: clamp(1.15px, .2vh, 1.9px); --wall: #17100c; background: var(--wall); }
body[data-look="D"] #app { background: var(--wall); }
.cabinet { padding: clamp(8px, 1.6vh, 16px) clamp(0px, 1vw, 14px) clamp(0px, 1.2vh, 12px);
  background: radial-gradient(ellipse 90% 80% at 50% 30%, #3a2a20 0%, #1d1410 60%, #0e0906 100%); }
/* The brass plate hangs on the wall over the set. */
.plaque { z-index: 1; margin-bottom: clamp(7px, 1.3vh, 13px); color: #33250a; text-shadow: 0 1px 0 rgba(255, 240, 190, .55);
  background: var(--grain), var(--metal), linear-gradient(180deg, #ecd08a 0%, #cfaa55 46%, #b28a3a 54%, #d6b566 100%);
  box-shadow: 0 0 0 1px #5c4517, 0 4px 7px rgba(0, 0, 0, .6), 0 10px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 250, 220, .7), inset 0 -1px 0 rgba(80, 50, 0, .5); }
.plaque::before, .plaque::after { background: radial-gradient(circle at 35% 30%, #fff3c4, #a8842f 55%, #4d3910); box-shadow: 0 0 0 1px #4d3910, 0 1px 1px rgba(0, 0, 0, .6); }

.face { gap: 0; padding: 0; margin: 0; border-radius: 0; background: none; box-shadow: 0 28px 44px -18px rgba(0, 0, 0, .8); }
/* The picture's frame around the glass. */
.screen { box-sizing: border-box; padding: 0; border-radius: 0; box-shadow: none; background: #090908; background-clip: padding-box;
  border-style: solid; border-color: transparent; border-width: calc(40 * var(--u)) calc(26 * var(--u)) calc(46 * var(--u)) calc(52 * var(--u));
  border-image: url(/set-screen-wide.webp) 100 65 115 130 stretch; }
body.full .screen, body.wall .screen { border-width: 0; border-image: none; }
body[data-look="D"] #stage { border-radius: 7% / 9%; }
/* Full screen and wallpaper have no set around the water: square corners, or black shows in them. */
body[data-look="D"].full #stage, body[data-look="D"].wall #stage { border-radius: 0; }
/* The glass: it bulges, it darkens to its edge, and the room's window lies on it. */
.glass { inset: 0; border-radius: 7% / 9%;
  background:
    radial-gradient(ellipse 34% 26% at 21% 17%, rgba(255, 255, 255, .27) 0%, rgba(255, 255, 255, .09) 45%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(ellipse 22% 14% at 84% 88%, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 60% 16% at 56% 2%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%),
    linear-gradient(112deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .02) 26%, rgba(255, 255, 255, 0) 40%),
    radial-gradient(ellipse 100% 100% at 50% 47%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .16) 78%, rgba(0, 0, 0, .5) 100%);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .9), inset 0 0 0 3px rgba(255, 255, 255, .07), inset 0 16px 26px -12px rgba(0, 0, 0, .6), inset 0 0 50px rgba(0, 0, 0, .34); }

/* The control strip: the picture's frame, and its silver drawn in the picture's own warm light. */
.panel { box-sizing: border-box; width: calc(clamp(330px, 27vw, 400px) + 24 * var(--u)); border-radius: 0; box-shadow: none; background-clip: padding-box;
  background: linear-gradient(180deg, rgba(0, 0, 0, .30) 0, rgba(0, 0, 0, 0) 14px), var(--grain), var(--metal), linear-gradient(180deg, #b39a8a 0%, #9b8172 40%, #836a5c 100%);
  border-style: solid; border-color: transparent; border-width: calc(22 * var(--u)) calc(22 * var(--u)) calc(22 * var(--u)) calc(2 * var(--u));
  border-image: url(/set-panel-wide.webp) 55 55 55 5 stretch; }
.controls { padding: 9px 9px 10px; }
/* The maker's badge: black, as on the set. */
.brand { padding: 5px 12px 5px 5px; border-radius: 5px; background: linear-gradient(180deg, #2b2a29 0%, #0d0d0d 55%, #070707 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px #000, 0 0 0 1px rgba(0, 0, 0, .5), 0 1px 0 1px rgba(255, 235, 215, .45), 0 3px 5px rgba(0, 0, 0, .3); }
body[data-look="D"] #word { color: #e9e5d9; }
/* The keys: black plastic in a chromed ring. */
body[data-look="D"] #wall-open, body[data-look="D"] #x-home, body[data-look="D"] #roster-open { border-radius: 9px; color: #f1ecdf;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, #56544f 0%, #222120 55%, #0d0d0c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 3px rgba(0, 0, 0, .6), 0 0 0 1px #000, 0 0 0 3px #cdbfb2, 0 0 0 4px rgba(0, 0, 0, .45), 0 4px 5px 2px rgba(0, 0, 0, .32); }
body[data-look="D"] #wall-open:active, body[data-look="D"] #x-home:active, body[data-look="D"] #roster-open:active { transform: translateY(1px); }
.lamp { box-shadow: 0 0 8px #58d66b, 0 0 0 3px #111, 0 0 0 4px #cdbfb2; }
.night .lamp { box-shadow: 0 0 8px #e2392b, 0 0 0 3px #111, 0 0 0 4px #cdbfb2; }
/* The dial: a lit card behind its own small glass. */
.gauge { position: relative; border-radius: 7px; background: radial-gradient(ellipse 90% 120% at 50% 40%, #fff6d6 0%, #f6e4b0 60%, #e2c683 100%);
  box-shadow: inset 0 0 0 2px #0d0d0c, inset 0 8px 12px -6px rgba(60, 30, 0, .55), inset 0 0 20px rgba(170, 110, 20, .42), 0 0 0 1px rgba(0, 0, 0, .55), 0 1px 0 1px rgba(255, 235, 215, .5); }
.gauge::after { content: ''; position: absolute; inset: 2px; border-radius: 5px; pointer-events: none; background: linear-gradient(168deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .06) 30%, rgba(255, 255, 255, 0) 44%); }
/* The conversation: a dark window in the silver, as the loudspeaker's opening is. */
body[data-look="D"] #dock { margin: 0 9px 9px; border-radius: 9px; overflow: hidden; background: linear-gradient(180deg, #121110, #1b1a18 30%, #181716);
  box-shadow: inset 0 0 0 1px #000, inset 0 12px 16px -10px #000, 0 0 0 1px rgba(0, 0, 0, .5), 0 1px 0 1px rgba(255, 235, 215, .45); }
.night[data-look="D"] #dock { background: linear-gradient(180deg, #0b0b0b, #121110); }
.broke[data-look="D"] #dock { border-radius: 9px !important; }
/* A laptop's window: the strip is narrower than its top row at full size (the name, the "?", three keys), and the
   set's frame cut the last key and the dial's end. Smaller keys and name there, and the strip never under 330px. */
@media (min-aspect-ratio: 1/1) and (max-width: 1540px) {
  .controls { gap: 4px 8px; }
  .knobs { gap: 8px; }
  .knobs .lamp { display: none; }
  .brand { gap: 6px; padding-right: 8px; }
  body[data-look="D"] #word { font-size: 15px; letter-spacing: .05em; }
  body[data-look="D"] #wall-open, body[data-look="D"] #x-home { width: 34px; height: 34px; }
  body[data-look="D"] #roster-open { height: 34px; padding: 0 8px 0 7px; gap: 4px; font-size: 13px; }
}
/* A phone held upright: the set without its strip, and the strip as a box of the same wood under it. */
@media (max-aspect-ratio: 1/1) {
  body[data-look="D"] { --u: clamp(.5px, .16vw, 1px); }
  .cabinet { padding: 8px 4px 4px; }
  .screen { border-width: calc(40 * var(--u)) calc(48 * var(--u)) calc(46 * var(--u)) calc(52 * var(--u)); border-image: url(/set-screen-tall.webp) 100 120 115 130 stretch; }
  .panel { width: auto; border-width: 0 calc(22 * var(--u)) calc(22 * var(--u)) calc(26 * var(--u)); border-image: url(/set-panel-tall.webp) 0 55 55 65 stretch; }
  .controls { padding: 7px 7px 7px; }
  body[data-look="D"] #dock { margin: 0 7px 7px; }
  /* The dial on one line (the owner, 2026-11-23: it took the conversation's room on a phone): MC and its figure,
     the scale filled up to its needle, the memory. The marks keep their places and lose their figures. */
  .gauge { display: flex; align-items: center; gap: 7px; padding: 7px 11px 7px; }
  .g-row { flex: none; gap: 5px; }
  .g-k { font-size: 0; letter-spacing: 0; opacity: 1; }
  .g-k::after { content: attr(data-short); font-size: 9.5px; letter-spacing: .1em; opacity: .7; }
  .g-cap, .g-mem { font-size: 16px; }
  .g-next { display: none; }
  .g-scale { flex: 1; min-width: 0; height: 12px; margin: 0 5px; }
  .g-scale::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--at, 0%); background: rgba(42, 26, 12, .32); transition: width .5s cubic-bezier(.3, 1.3, .5, 1); }
  .g-scale i b, .g-scale i em { display: none; }
  .g-needle { top: -5px; bottom: -5px; }
  .g-needle::before { top: -4px; width: 9px; height: 9px; margin-left: -4.5px; }
  /* The bar under the conversation: thinner, and its key sits lower. */
  body[data-look="D"] #bar { padding: 6px 8px calc(6px + var(--safe)); }
  #bar .pill { height: 40px; border-radius: 20px; }
  #bar input, #bar .shut { height: 42px; border-radius: 21px; }
}
/* ─── PHOTO-SET END ─── */

/* ─── Sound ─── */
/* The sound key: on the glass, in the corner opposite the full-screen key, as a film's mute key is. */
#mute { position: absolute; z-index: 5; left: max(18px, 3.4%); bottom: max(16px, 4.4%); width: 50px; height: 50px; padding: 0; border-radius: 25px; display: grid; place-items: center; background: var(--white); color: var(--ink); box-shadow: 0 3px 0 rgba(17, 17, 17, .28); cursor: pointer; }
#mute svg { width: 24px; height: 24px; }
#mute.off { background: #d9d6cc; color: #55524b; }
body.full #mute { left: calc(14px + env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.night #mute { opacity: .85; }
body.wall #mute { display: none; }
@media (max-width: 520px) { #mute { width: 44px; height: 44px; border-radius: 22px; } #mute svg { width: 21px; height: 21px; } }
