/* Fi's panel — graphite pencil on paper, silver, and one blue: her eyes.
   The sketch grammar (rough filter, hatch, rotated captions) is the same
   contract Рене draws against in render/template.html; only the accent
   moved from crimson to blue and the readouts got a monospace face. */
@font-face { font-family: "Neucha"; src: url(/static/neucha.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/static/plexmono.ttf) format("truetype"); font-display: swap; }

:root {
  color-scheme: light;
  --paper: #fbfbfb;
  --ink: #2b2b30;
  --ink-soft: #6d6f78;
  --silver: #c3c6cf;
  --silver-light: #eceef2;
  --blue: #2c5be3;
  --blue-deep: #1f3fae;
  --blue-tint: #e8eefc;
  --rust: #b8471c;
  --card: color-mix(in oklab, var(--ink) 4%, var(--paper));
  --border: color-mix(in srgb, var(--ink) 12%, transparent);
  --hand: "Neucha", "Comic Sans MS", "Bradley Hand", cursive;
  --mono: "Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 110% -10%, var(--blue-tint) 0%, transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 27px, color-mix(in srgb, var(--silver) 45%, transparent) 27px 28px),
    var(--paper);
  font-family: var(--hand);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  padding: 16px 14px 40px;
}
a { color: var(--blue-deep); }
.mono { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--ink-soft); }
.blue { color: var(--blue); }
.rust { color: var(--rust); }
.wrap { max-width: 1020px; margin: 0 auto; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .wrap { grid-template-columns: 1fr 1fr; }
  .span2 { grid-column: 1 / -1; }
}

/* header: Fi at the desk, looking at the page */
header.head {
  display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-items: center;
  padding: 6px 4px 2px;
}
.fi {
  width: 108px; aspect-ratio: 1; border-radius: 50%; flex: 0 0 auto;
  position: relative; overflow: hidden;
  background: #fff; border: 2px solid var(--silver);
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--silver-light), 6px 8px 0 -2px var(--blue-tint);
  transform: rotate(-2deg);
}
@media (min-width: 760px) { .fi { width: 136px; } }
/* The animated widget is laid out at 2x and scaled down: layers with
   perspective/rotation are rasterised at layout size, so this is what keeps
   her sharp on Retina screens. Percent geometry inside scales along. */
.fi .fi-avatar {
  position: absolute; left: 0; top: 0; width: 200%; height: 200%; aspect-ratio: auto;
  transform: scale(.5); transform-origin: 0 0;
}
.head h1 { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: .01em; }
.head h1 small { display: block; font-size: 17px; color: var(--ink-soft); font-weight: 400; margin-top: 2px; }
.head .sub { margin-top: 6px; }
.head .chatlink { margin-top: 10px; border-color: #d0302c; color: #a8221f; }
.head .chatlink:hover { background: #fbe7e6; }

/* cards: paper notes with a pencil edge */
.card {
  position: relative; padding: 14px 16px 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 3px 4px 0 -1px var(--silver-light);
  opacity: 0; transform: translateY(8px);
  animation: rise .5s cubic-bezier(.2,.7,.2,1) forwards;
}
.card:nth-child(2) { animation-delay: .05s } .card:nth-child(3) { animation-delay: .1s }
.card:nth-child(4) { animation-delay: .15s } .card:nth-child(5) { animation-delay: .2s }
.card:nth-child(6) { animation-delay: .25s } .card:nth-child(7) { animation-delay: .3s }
.card:nth-child(8) { animation-delay: .35s } .card:nth-child(9) { animation-delay: .4s }
@keyframes rise { to { opacity: 1; transform: none; } }
.card h2 {
  margin: 0 0 10px; font-size: 21px; font-weight: 600; line-height: 1.2;
  transform: rotate(-.4deg); display: flex; align-items: baseline; gap: 8px;
}
.card h2::before { content: "◆"; color: var(--blue); font-size: 12px; transform: translateY(-2px); }
.card h2 .right { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); font-weight: 400; }

/* the stamp — Fi's verdict */
.stamp {
  display: inline-block; padding: 3px 12px 2px; transform: rotate(-5deg);
  font-family: var(--hand); font-size: 22px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); border: 3px double var(--blue); border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 .35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
              linear-gradient(#000, #000);
  mask-composite: add;
}
.stamp.off { color: var(--ink-soft); border-color: var(--silver); }
.stamp.bad { color: var(--rust); border-color: var(--rust); }

/* status block: Рене's face beside the verdict */
.state { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: start; }
.rene {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: #fff;
  border: 2px solid var(--silver); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--silver-light);
}
.rene.busy { animation: breathe 1.6s ease-in-out infinite; box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--blue); }
@keyframes breathe { 50% { transform: scale(1.04); } }
.lines { display: grid; gap: 4px; }
.lines div { display: flex; gap: 8px; align-items: baseline; }
.lines b { font-weight: 600; min-width: 92px; color: var(--ink-soft); }

/* checks (containers) */
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px dashed var(--silver); border-radius: 10px; }
.check svg { width: 26px; height: 26px; flex: 0 0 auto; }
.check .name { font-size: 18px; }
.check .det { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }

/* gauges (resources) */
.gauges { display: grid; gap: 12px; }
.gauge .row { display: flex; align-items: baseline; gap: 10px; }
.gauge .row .lbl { font-size: 18px; }
.gauge .row .val { margin-left: auto; font-family: var(--mono); font-size: 13px; }
.gauge svg { width: 100%; height: 22px; display: block; }
.spark { width: 100%; height: 56px; display: block; margin-top: 4px; }
.days { width: 100%; height: auto; display: block; margin-top: 6px; }
.ink { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.ink-blue { fill: none; stroke: var(--blue); stroke-linecap: round; stroke-linejoin: round; }
.pencil { filter: url(#rough-pencil); }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 8px; }
.tile { padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--paper) 70%, transparent); border: 1px solid var(--border); }
.tile .k { font-size: 14px; color: var(--ink-soft); }
.tile .v { font-family: var(--mono); font-size: 20px; line-height: 1.2; }
.calc { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--blue); background: var(--blue-tint); border-radius: 0 8px 8px 0; }

/* lists */
.log, .msgs { display: grid; gap: 4px; font-family: var(--mono); font-size: 12.5px; }
.log div { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-soft); }
.log div.hot { color: var(--ink); }
.log div.bad { color: var(--rust); }
.log time { color: var(--silver); margin-right: 6px; }
.chat + .chat { margin-top: 14px; }
.chat h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; transform: rotate(-.3deg); }
.msgs > div { display: grid; grid-template-columns: 38px 1fr; gap: 8px; padding: 2px 0; border-bottom: 1px dashed var(--border); }
.msgs > div:last-child { border-bottom: 0; }
.msgs .body { min-width: 0; }
.msgs .who { font-family: var(--hand); font-size: 15px; font-weight: 600; margin-right: 6px; white-space: nowrap; }
.msgs .who.me { color: var(--blue-deep); }
.msgs .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.msgs time { color: var(--silver); }
.empty { color: var(--ink-soft); font-style: italic; }

footer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 6px 4px; }
footer form { margin-left: auto; }
button, .btn {
  text-decoration: none; display: inline-block;
  font-family: var(--hand); font-size: 17px; color: var(--blue-deep); background: transparent;
  border: 2px solid var(--blue); border-radius: 999px; padding: 4px 14px; cursor: pointer;
  transition: transform .15s, background .15s;
}
button:hover, .btn:hover { background: var(--blue-tint); transform: rotate(-1.5deg); }

/* login */
.login { max-width: 460px; margin: 8vh auto 0; text-align: center; }
.login .fi { width: 150px; margin: 0 auto 14px; transform: rotate(-3deg); }
.login h1 { font-size: 32px; margin: 0 0 6px; }
.login p { margin: 6px 0; }
.login form { display: grid; gap: 10px; margin: 18px 0 10px; }
.login .field {
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
  border-bottom: 2px solid var(--silver); padding: 6px 12px;
}
.login .field:focus-within { border-bottom-color: var(--blue); }
.login .at { font-family: var(--mono); font-size: 19px; color: var(--blue); user-select: none; }
.login input {
  font-family: var(--mono); font-size: 17px; padding: 4px 0; width: 14ch;
  border: 0; background: transparent; color: var(--ink); outline: none;
}
.login .public { margin-top: 28px; text-align: left; }
.login .public h2 { font-size: 19px; margin: 0 0 8px; transform: rotate(-.4deg); display: flex; align-items: baseline; gap: 8px; }
.login .public h2::before { content: "◆"; color: var(--blue); font-size: 11px; }
.login .public .stamp { font-size: 17px; margin-bottom: 10px; }
.login .note { min-height: 1.5em; color: var(--blue-deep); }

/* admins editor */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 6px 3px 12px;
  border: 1.5px solid var(--blue); border-radius: 999px; background: var(--blue-tint);
  font-family: var(--mono); font-size: 12.5px; color: var(--blue-deep);
}
.chip button { border: 0; padding: 0 6px; font-size: 14px; line-height: 1.4; border-radius: 999px; color: var(--blue-deep); }
.chip button:hover { background: #fff; transform: none; }
.addrow { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; }
.addrow .at { font-family: var(--mono); font-size: 19px; color: var(--blue); }
.addrow input {
  font-family: var(--mono); font-size: 15px; padding: 6px 4px; flex: 1 1 auto; min-width: 0;
  border: 0; border-bottom: 2px solid var(--silver); background: transparent; color: var(--ink); outline: none;
}
.addrow input:focus { border-bottom-color: var(--blue); }
.sub-h { margin: 0 0 6px; font-size: 18px; font-weight: 600; display: flex; align-items: baseline; gap: 10px; transform: rotate(-.3deg); }
button.mini { font-size: 13px; padding: 1px 10px; border-width: 1.5px; }
.members { display: grid; gap: 10px; }
.mchat .mtitle { font-size: 17px; margin-bottom: 4px; }
.member { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--border); cursor: pointer; }
.member:last-child { border-bottom: 0; }
.member input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }
.member .mname { font-size: 16px; white-space: nowrap; }
.member .mono { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
button:disabled { opacity: .45; cursor: default; transform: none; }

/* ---------------- chat page (design C, Рене's paper & crimson) ---------------- */
.chatpage {
  --rp: #fbfbfa; --ri: #211e1e; --rs: #6f6b67; --rr: #d0302c; --rrd: #a8221f; --rrt: #fbe7e6; --rrs: #f3c9c7;
  --rb: color-mix(in srgb, #211e1e 12%, transparent); --rm: color-mix(in srgb, #211e1e 10%, transparent);
  padding: 0; min-height: 100dvh; background: var(--rp); color: var(--ri); font-size: 19px;
}
.chatpage { background: radial-gradient(circle at 1px 1px, color-mix(in srgb, #211e1e 14%, transparent) 1px, transparent 1.5px) 0 0 / 18px 18px var(--rp); }
.cshell { min-height: 100dvh; max-width: 1480px; margin: 0 auto; display: grid; grid-template-rows: auto 1fr; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .cshell { grid-template-columns: 340px 1fr; grid-template-rows: 1fr; } }
.cside { position: sticky; top: 0; z-index: 5; background: #fff; display: flex; gap: 12px; align-items: center; padding: 10px 14px; }
.cside > svg.wob-svg { display: none; }
@media (min-width: 900px) {
  /* a card lying on the paper, its own height; scrolls inside itself on short windows */
  .cside { flex-direction: column; align-items: stretch; align-self: start; position: sticky; top: 18px; margin: 18px 0 18px 18px; padding: 22px 20px 18px; gap: 14px;
           max-height: calc(100dvh - 36px); overflow: visible; background: transparent; border-radius: 22px; }
  .cside > svg.wob-svg { display: block; }
  .cside-edge { display: none; }
  .avawrap { max-width: min(100%, 38vh); }
}
.cside .ava { position: relative; width: 84px; height: 84px; border-radius: 22px; overflow: hidden; flex: 0 0 auto; background: #fff; }
@media (min-width: 900px) { .cside .ava { width: 100%; height: auto; aspect-ratio: 1; border-radius: 26px; } }
/* the animated widget is laid out at 2x and scaled down: 3D-transformed layers rasterise at layout size */
.cside .ava .reneko-avatar { position: absolute; left: 0; top: 0; width: 200%; height: 200%; transform: scale(.5); transform-origin: 0 0; }
.cside .ava.busy { animation: breathe 1.6s ease-in-out infinite; }
@media (min-width: 900px) { .cside .ava { width: 100%; height: auto; aspect-ratio: 1; border-radius: 28px; } }
.cside .name { font-size: 26px; line-height: 1; }
.cside .name b { color: var(--rr); font-weight: 400; display: block; font-size: 16px; margin-bottom: 2px; }
.cside .emo { font-size: 16px; } .cside .emo b { color: var(--rrd); font-weight: 400; }
.rstamp { display: inline-block; padding: 1px 10px; border: 2px double var(--rr); border-radius: 6px; color: var(--rr); font-size: 14px; letter-spacing: .06em; transform: rotate(-3deg); background: #fff; }
.rstamp.off { color: var(--rs); border-color: #c9c5c0; } .rstamp.bad { color: #7a1a17; border-color: #7a1a17; }
.cmds { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; align-items: center; }
@media (min-width: 900px) { .cmds { margin-left: 0; margin-top: auto; flex-direction: column; align-items: stretch; } }
.cmd { font-family: var(--hand); font-size: 15px; padding: 3px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ri); cursor: pointer; text-align: left; transition: none; }
.cmd::before { content: "# "; color: var(--rr); }
.cmd:hover .wob-fill { fill: var(--rrt); } .cmd:hover { transform: none; }
.cmd.armed { color: #fff; } .cmd.armed .wob-fill { fill: var(--rr); } .cmd.armed .wob-stroke { stroke: var(--rr); }
.cmd.sent { color: #fff; } .cmd.sent .wob-fill { fill: var(--ri); }
.cmd:disabled { opacity: .4; }
.chint { font-family: var(--mono); font-size: 11px; color: var(--rs); }
/* the way back to Fi: her colours, not Рене's */
.filink {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 3px 12px 3px 4px;
  border: 1.5px solid #2c5be3; border-radius: 999px; background: #e8eefc; color: #1f3fae; text-decoration: none; font-size: 15px;
}
.filink img { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #c3c6cf; background: #fff; object-fit: cover; }
.filink:hover { background: #fff; }
@media (min-width: 900px) { .filink { margin-top: 12px; justify-content: center; } }

.cmain { display: flex; flex-direction: column; min-height: 100dvh; }
.clog { flex: 1 1 auto; padding: 18px 16px 10px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) { .clog { padding: 18px 24px 10px; width: min(100%, 960px); margin: 0 auto; } }
.cmsg { position: relative; display: flex; flex-direction: column; gap: 2px; max-width: 82%; align-items: flex-start; }
@media (min-width: 900px) { .cmsg { max-width: 72%; } }
.cmsg.me { align-self: flex-end; align-items: flex-end; }
.cbub { position: relative; padding: 10px 14px 7px; border-radius: 16px; min-width: 0; isolation: isolate; }
.cbub > :is(.who, .q, .pic, .pagecard, .text, .meta) { position: relative; }
.cmsg.her .cbub::before { content: "ᐱ ᐱ"; position: absolute; left: 10px; top: -13px; font-size: 12px; color: var(--rr); letter-spacing: -2px; }
.cbub .who { font-size: 14px; color: var(--rrd); margin-bottom: 2px; }
.cbub .g { color: var(--rs); font-style: italic; }
.cbub .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.cbub .q { font-family: var(--mono); font-size: 12px; color: var(--rs); border-left: 2px solid var(--rr); padding-left: 8px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.cbub .meta { display: flex; gap: 8px; align-items: center; margin-top: 3px; font-family: var(--mono); font-size: 11px; color: var(--rs); }
.cbub .meta .reacts { margin-left: auto; display: flex; gap: 4px; }
/* reactions hang from the bubble on strings; each swings on its own pendulum */
.hang { display: flex; gap: 14px; padding: 0 10px 0 18px; align-items: flex-start; pointer-events: none; }
.cmsg.me .hang { padding: 0 18px 0 10px; }
.orn { position: relative; width: 26px; height: calc(var(--len) + 26px); margin-top: -8px; transform-origin: 50% 0; will-change: transform; pointer-events: auto; }
.orn .str { position: absolute; left: 50%; top: -2px; width: 1.3px; height: calc(var(--len) + 4px); background: var(--ri); opacity: .75; transform: translateX(-50%); }
.orn .bob { position: absolute; left: 0; top: var(--len); width: 26px; height: 26px; border-radius: 50%; border: 1.3px solid var(--rrs); background: #fff; display: grid; place-items: center; }
.orn.mine .bob { border-color: var(--rr); cursor: pointer; }
.orn.mine:hover .bob { background: var(--rrt); }
.orn.rip { pointer-events: none; animation: rip .7s ease-in forwards; }
.orn.rip .str { animation: snap .25s ease-out forwards; }
@keyframes rip { 0% { transform: rotate(0); opacity: 1; } 100% { transform: translateY(70px) rotate(35deg); opacity: 0; } }
@keyframes snap { to { transform: translateX(-50%) scaleY(.15) rotate(25deg); opacity: 0; } }
.cbub a.pic img { display: block; max-width: min(64vw, 460px); max-height: 60vh; border-radius: 10px; border: 1px solid var(--ri); margin: 0 0 6px; }
/* no overflow clipping: the pencil outline lives partly outside the box; the frame rounds itself */
.pagecard { border-radius: 12px; margin: 2px 0 6px; width: min(78vw, 640px); }
.pagecard .bar { border-radius: 12px 12px 0 0; }
.pagecard .bar { display: flex; align-items: center; gap: 8px; padding: 4px 10px; font-family: var(--mono); font-size: 11px; color: var(--rs); border-bottom: 1px dashed var(--rb); }
.pagecard .bar b { color: var(--rr); font-weight: 400; } .pagecard .bar a { margin-left: auto; color: var(--rrd); }
.pagecard iframe { width: 100%; height: 240px; border: 0; display: block; background: #fff; overflow: hidden; transition: height .2s; border-radius: 0 0 11px 11px; }
/* the action strip sits under the bubble, on the bubble's side */
/* pencil outlines (wobble.js): the svg sits behind the element's content */
.wob { position: relative; isolation: isolate; }
.wob > svg.wob-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: -1; }
.wob-fill { fill: #fff; stroke: none; } .wob-stroke { fill: none; stroke: var(--ri); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cmsg.me .cbub .wob-stroke { stroke: var(--rr); }
.tawrap:focus-within .wob-stroke { stroke: var(--rr); }
.cside-edge { position: absolute; right: 0; left: 0; bottom: -4px; height: 8px; z-index: 3; }
.cside-edge > svg.wob-svg { z-index: 0; }
.avawrap { flex: 0 0 auto; padding: 4px; transform: rotate(-2deg); }

/* reaction: a faint paw under the bubble; press it and the toe pads fan out (design A) */
.cact { display: flex; align-items: flex-start; padding: 0 8px; min-height: 26px; }
.cmsg.me .cact { flex-direction: row-reverse; }
.pawbtn { position: relative; width: 26px; height: 26px; border: 0; background: transparent; padding: 0; cursor: pointer; opacity: .28; transition: opacity .15s, transform .15s; }
.cmsg:hover .pawbtn, .pawbtn.open { opacity: 1; }
.pawbtn.open { transform: scale(.9) rotate(-8deg); }
@media (hover: none) { .pawbtn { opacity: .45; } }
#fanlayer { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.fan { position: absolute; width: 0; height: 0; transform: translate(0, -4px); }
.pad { position: absolute; left: -17px; top: -34px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; pointer-events: auto;
  opacity: 0; transform: translate(0, 10px) scale(.3); transition: transform .28s cubic-bezier(.2,1.4,.4,1), opacity .15s; }
.pad .wob-fill { fill: #fff; } .pad:hover .wob-fill { fill: var(--rrt); }
.pad.big { width: 42px; height: 40px; left: -21px; top: -40px; font-family: var(--hand); font-size: 15px; color: var(--rs); }
.pad.big > i { font-style: normal; }
/* the old symmetric fan: toes above, «ещё» under them, a second row further out */
.fan.open .pad { opacity: 1; }
.fan.open .pad:nth-child(1) { transform: translate(-56px, -26px) rotate(-14deg); transition-delay: 0s; }
.fan.open .pad:nth-child(2) { transform: translate(-20px, -50px) rotate(-6deg); transition-delay: .04s; }
.fan.open .pad:nth-child(3) { transform: translate(20px, -50px) rotate(6deg); transition-delay: .08s; }
.fan.open .pad:nth-child(4) { transform: translate(56px, -26px) rotate(14deg); transition-delay: .12s; }
.fan.open .pad.big { transform: translate(0, -2px); transition-delay: .16s; }
.fan.open .pad:nth-child(n+6) { opacity: 0; pointer-events: none; }
.fan.open.more .pad:nth-child(n+6) { opacity: 1; pointer-events: auto; }
.fan .pad:nth-child(6) { transform: translate(-90px, -64px); } .fan .pad:nth-child(7) { transform: translate(-46px, -92px); }
.fan .pad:nth-child(8) { transform: translate(46px, -92px); } .fan .pad:nth-child(9) { transform: translate(90px, -64px); }
.pad.big > i { font-style: normal; display: inline-block; }
/* her icons */
.ricon .ink { fill: none; stroke: var(--ri); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ricon .accent, .paw .ink, .tail .ink, .note .ink { fill: none; stroke: var(--ri); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ricon .accent { stroke: var(--rr); }
.ricon .accent-fill { fill: var(--rr); stroke: var(--ri); stroke-width: 1.2; }
.orn .ricon { display: block; }
/* the tail: hers only, off the right corner; hover wiggles it and a note is written on the paper */
.tail { position: absolute; right: 14px; bottom: -34px; z-index: 2; cursor: pointer; overflow: visible; transform: scaleX(-1); transform-origin: 56px 4px; transition: transform .25s; }
.cmsg:hover .tail, .tail:hover { transform: scaleX(-1) rotate(-8deg); }
.tail:hover .ink { stroke: var(--rr); }
.note { position: absolute; left: calc(100% + 34px); bottom: -30px; z-index: 2; font-family: var(--hand); font-size: 17px; color: var(--rs); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; transform: rotate(-4deg); transform-origin: left center; }
.note svg { vertical-align: middle; }
.cmsg.her:hover .note { opacity: 1; }
.cmsg.her { padding-bottom: 10px; }
.ctyping { padding: 0 20px 6px; color: var(--rs); font-size: 15px; }
.ctyping i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--rr); margin-right: 3px; animation: dot 1.2s infinite; }
.ctyping i:nth-child(2) { animation-delay: .2s } .ctyping i:nth-child(3) { animation-delay: .4s }
.cfoot { position: relative; background: transparent; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
@media (max-width: 899px) { .cfoot { background: #fff; } .cfoot > svg.wob-svg { display: none; } }
.cfoot { position: sticky; bottom: 0; z-index: 5; }
@media (min-width: 900px) { .cfoot { bottom: 18px; width: min(100% - 48px, 912px); margin: 6px auto 18px; padding: 12px 14px; border-radius: 18px; } }
.creply { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--rs); padding: 0 6px 6px; }
.creply span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.creply button { border: 0; background: transparent; color: var(--rs); padding: 0 6px; }
.crow { display: flex; gap: 8px; align-items: flex-end; }
.crow .tawrap { flex: 1; position: relative; isolation: isolate; }
.crow textarea { width: 100%; resize: none; font-family: var(--hand); font-size: 19px; line-height: 1.3; padding: 10px 14px; border: 0; background: transparent; color: var(--ri); outline: none; max-height: 180px; display: block; }
/* composer buttons: her drawings, no boxes — a taped sketch card to attach, a cat that eats the message to send */
.crow button.ibtn { width: 50px; height: 50px; padding: 2px; border: 0; background: transparent; cursor: pointer; transition: transform .15s; filter: none; }
.crow button.ibtn svg { width: 100%; height: 100%; display: block; overflow: visible; }
.crow .ibtn .ink { fill: none; stroke: var(--ri); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.crow .ibtn .tape { fill: var(--rrt); stroke: var(--rr); stroke-width: 1.2; }
.crow #photo .card { transform-origin: 16px 16px; transform: rotate(-8deg); transition: transform .2s; filter: url(#rough-soft); }
.crow #photo:hover .card { transform: rotate(0deg) scale(1.08); }
.crow .send .maw { fill: var(--rr); stroke: var(--ri); stroke-width: 1.6; stroke-linejoin: round; }
.crow .send .tongue { fill: #f7b1ad; stroke: none; }
.crow .send .mouth { transform-origin: 16px 18px; transform: scaleY(.55); transition: transform .18s cubic-bezier(.3,1.4,.5,1); }
.crow .send:hover .mouth, .crow .send.hungry .mouth { transform: scaleY(1.15); }
.crow .send .whisk { transition: transform .18s; transform-origin: 16px 16px; }
.crow .send:hover .whisk { transform: scaleX(1.08); }
.crow .send:hover { transform: rotate(-4deg) scale(1.06); }
.crow .send:disabled { opacity: .5; animation: chomp .5s ease-in-out infinite; }
@keyframes chomp { 0%, 100% { transform: scale(1); } 50% { transform: scale(.94) rotate(3deg); } }
.crow button:disabled { opacity: .4; }
.cempty { color: var(--rs); font-style: italic; }
