/* ============================================================
   PROPERI SPACE — интерактивные и «живые» виджеты
   ============================================================ */

/* ---------- общий холст эффектов ---------- */
.fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.fx canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.aquafx {
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(94, 234, 212, .1), transparent 60%),
    linear-gradient(180deg, rgba(12, 40, 52, .55), rgba(5, 16, 24, .8));
}

/* ---------- кнопка «Не нажимать» ---------- */
.nobtn {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  text-align: center;
}
.nobtn-hint {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}
.nobtn-btn {
  position: relative;
  width: min(176px, 100%);
  min-height: 58px;
  border-radius: 12px;
  border: 1px solid rgba(255, 92, 122, .45);
  background:
    radial-gradient(120% 140% at 30% 0%, rgba(255, 255, 255, .16), transparent 42%),
    linear-gradient(180deg, #ff5c7a, #c22b4a);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 92, 122, .22), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .12s, box-shadow .2s, filter .2s;
}
.nobtn-btn b {
  position: absolute;
  top: 6px;
  right: 9px;
  font-size: 10px;
  opacity: .8;
}
.nobtn-btn:hover { filter: brightness(1.06); box-shadow: 0 10px 30px rgba(255, 92, 122, .32), inset 0 1px 0 rgba(255, 255, 255, .3); }
.nobtn-btn:active { transform: translateY(1px) scale(.985); }
.nobtn-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}
.nobtn-status {
  min-height: 14px;
  font-size: 10.5px;
  color: var(--dim);
  line-height: 1.4;
}

/* ---------- магический шар ---------- */
.orb {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px 14px 12px;
}
.orb-ball {
  width: 62px;
  height: 62px;
  margin: 2px auto 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 26px;
  color: #d9e8ff;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .5), transparent 26%),
    radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--acc) 45%, #0b1524), #060a12 74%);
  border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--acc) 8%, transparent), 0 10px 26px rgba(0, 0, 0, .45), inset 0 -8px 18px rgba(0, 0, 0, .55);
  transition: box-shadow .3s, transform .3s;
}
.orb-ball.thinking {
  animation: orbThink 1.1s ease-in-out infinite;
}
@keyframes orbThink {
  0%, 100% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--acc) 8%, transparent), 0 10px 26px rgba(0, 0, 0, .45); }
  50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--acc) 14%, transparent), 0 10px 30px rgba(0, 0, 0, .5); }
}
.orb-form {
  display: flex;
  gap: 6px;
}
.orb-input {
  flex: 1;
  min-width: 0;
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .28);
  color: var(--text);
  font-family: var(--font);
  font-size: 11px;
  outline: none;
}
.orb-input:focus { border-color: color-mix(in srgb, var(--acc) 52%, transparent); box-shadow: 0 0 0 3px var(--acc-soft); }
.orb-btn {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent);
  background: var(--acc-soft);
  color: var(--acc);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.orb-btn:hover { background: color-mix(in srgb, var(--acc) 20%, transparent); }
.orb-answer {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 2px 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

/* ---------- фальшивая системная ошибка ---------- */
.errdlg {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1b2430, #121822);
  color: #dfe7f2;
}
.errdlg-title {
  flex: 0 0 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  background: linear-gradient(180deg, #2a3646, #202a38);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 10px;
  letter-spacing: .04em;
  color: #c7d3e3;
}
.errdlg-title span { color: #ffcf4a; font-size: 11px; }
.errdlg-title b { font-weight: 600; }
.errdlg-title i {
  margin-left: auto;
  font-style: normal;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #9fb0c6;
  font-size: 13px;
  cursor: pointer;
}
.errdlg-title i:hover { background: #c42b3d; color: #fff; }
.errdlg-body {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 14px 8px;
  overflow: auto;
}
.errdlg-ico {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffe08a, #e8a400);
  color: #402800;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .25);
}
.errdlg-name { display: block; font-size: 11.5px; margin-bottom: 4px; }
.errdlg-text { margin: 0; font-size: 10.5px; line-height: 1.5; color: #aebbd0; }
.errdlg-actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 8px 12px 12px;
}
.errdlg-ok,
.errdlg-cancel {
  min-width: 74px;
  height: 27px;
  border-radius: 5px;
  font-size: 10.5px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #263143;
  color: #dfe7f2;
}
.errdlg-ok { background: #2f6fd0; border-color: #3d82e6; color: #fff; }
.errdlg-ok:hover { background: #3a7ce0; }
.errdlg-cancel:hover { background: #303e54; }
.shake-err { animation: errShake .3s ease; }
@keyframes errShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ---------- паника ---------- */
.panic {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  text-align: center;
}
.panic-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}
.panic-btn {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 1px solid rgba(255, 92, 122, .55);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .22), transparent 32%),
    radial-gradient(circle at 50% 62%, #ff6b86, #b51f3d 72%);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  cursor: pointer;
  box-shadow: 0 0 0 8px rgba(255, 92, 122, .08), 0 12px 28px rgba(0, 0, 0, .4), inset 0 -10px 20px rgba(0, 0, 0, .25);
  transition: transform .12s, box-shadow .25s;
}
.panic-btn i {
  position: absolute;
  top: 16px;
  right: 20px;
  font-style: normal;
  font-size: 13px;
  opacity: .8;
}
.panic-btn:hover { box-shadow: 0 0 0 12px rgba(255, 92, 122, .12), 0 12px 30px rgba(0, 0, 0, .45), inset 0 -10px 20px rgba(0, 0, 0, .25); }
.panic-btn:active { transform: scale(.96); }
.panic-text { font-size: 10.5px; color: var(--dim); line-height: 1.4; }
body.panic-mode .panic-btn { animation: panicPulse .45s ease-in-out infinite alternate; }
body.panic-mode .panic-text { color: var(--danger); }
@keyframes panicPulse {
  from { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 92, 122, .1), 0 0 22px rgba(255, 92, 122, .25); }
  to { transform: scale(1.035); box-shadow: 0 0 0 18px rgba(255, 92, 122, .03), 0 0 42px rgba(255, 92, 122, .5); }
}

/* ---------- терминал ---------- */
.term {
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 80% at 90% 0%, rgba(91, 155, 255, .07), transparent 55%),
    #070b11;
  font-family: var(--mono);
}
.term-log {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 10px 12px 6px;
  font-size: 10px;
  line-height: 1.6;
  color: #c7d3e3;
}
.term-log .dim { color: #61708a; }
.term-log .cmd { color: var(--acc); }
.term-form {
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: var(--acc);
}
.term-form span { font-size: 11px; }
.term-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: #e7edf5;
  font-family: var(--mono);
  font-size: 10.5px;
  outline: none;
}
.term-input::placeholder { color: #46536a; }

/* ---------- секундомер ---------- */
.stopwatch {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  align-items: center;
}
.sw-time {
  font-family: var(--mono);
  font-size: clamp(22px, 13cqw, 34px);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.sw-btns {
  display: flex;
  gap: 6px;
  width: 100%;
  justify-content: center;
}
.sw-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.sw-btn:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.sw-btn.primary {
  border-color: color-mix(in srgb, var(--acc) 45%, transparent);
  background: var(--acc-soft);
  color: var(--acc);
}
.sw-btn.icon { padding: 0; width: 32px; font-size: 13px; }
.sw-btn:disabled { opacity: .35; cursor: not-allowed; }
.sw-laps {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sw-laps div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .028);
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
}
.sw-laps b { color: var(--muted); font-weight: 600; }

/* ---------- счётчик ---------- */
.counter {
  height: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
  padding: 14px;
}
.counter-value {
  font-family: var(--mono);
  font-size: clamp(30px, 18cqw, 52px);
  font-weight: 800;
  color: var(--text);
  text-align: center;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.counter-value.negative { color: var(--danger); }
.counter-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
}
.counter-btn:hover { background: var(--acc-soft); color: var(--acc); }
.counter-btn:active { transform: scale(.94); }
.counter-reset {
  grid-column: 1 / -1;
  justify-self: center;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 5px;
}
.counter-reset:hover { color: var(--danger); background: var(--danger-soft); }

/* ---------- пароли ---------- */
.passwd {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}
.passwd-value {
  flex: 1;
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px dashed var(--line-2);
  background: rgba(0, 0, 0, .26);
  color: var(--acc);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .03em;
  word-break: break-all;
  overflow: auto;
  user-select: all;
}
.passwd-actions { display: flex; gap: 6px; }
.passwd-btn {
  flex: 1;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.passwd-btn:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.passwd-btn.primary {
  border-color: color-mix(in srgb, var(--acc) 45%, transparent);
  background: var(--acc-soft);
  color: var(--acc);
}
.passwd-note {
  min-height: 12px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--dim);
  text-align: center;
}

@media (max-width: 900px) {
  .orb-ball { width: 54px; height: 54px; font-size: 22px; }
  .panic-btn { width: 88px; height: 88px; }
}

/* ---------- виджет «Музыка» ---------- */
.music-embed {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #070b11;
}
.music-embed iframe {
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 0;
  background: #070b11;
}
.music-embed-foot {
  flex: 0 0 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 11px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--dim);
}
.music-embed-foot a {
  color: var(--acc);
  text-decoration: none;
  font-weight: 600;
}
.music-embed-foot a:hover { text-decoration: underline; }

.music-setup {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
}
.ms-ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent);
  background: var(--acc-soft);
  color: var(--acc);
  margin-bottom: 2px;
}
.music-setup b { font-size: 13px; font-weight: 600; }
.music-setup .ms-hint {
  max-width: 250px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--dim);
}

.music-pc {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}
.mp-body { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mp-art {
  position: relative;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.035) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 50% 50%, #0b1119 30%, var(--panel-2) 31%, #0a0e15 100%);
  color: var(--acc);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.025), 0 8px 20px rgba(0,0,0,.3);
}
.mp-art::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-2);
}
.mp-note { display: grid; place-items: center; opacity: .85; }
.mp-wave {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  opacity: 0;
  transition: opacity .2s;
}
.music-pc.playing .mp-wave { opacity: .85; }
.music-pc.playing .mp-note { opacity: .28; }
.mp-wave i {
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: var(--acc);
  animation: mpWave 0.9s ease-in-out infinite alternate;
}
.mp-wave i:nth-child(2) { animation-delay: -.25s; }
.mp-wave i:nth-child(3) { animation-delay: -.5s; }
.mp-wave i:nth-child(4) { animation-delay: -.15s; }
.mp-wave i:nth-child(5) { animation-delay: -.4s; }
@keyframes mpWave {
  from { height: 3px; opacity: .5; }
  to { height: 11px; opacity: 1; }
}
.mp-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mp-eyebrow {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--acc);
}
.mp-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--text);
}
.mp-artist {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-album {
  font-size: 9px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-progress {
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.mp-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--acc), var(--acc-3));
  transition: width .4s linear;
}
.mp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--dim);
}
.music-pc.playing .mp-status { color: var(--acc); }
.mp-status::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
  vertical-align: 1px;
}
.music-pc.playing .mp-status::before {
  opacity: 1;
  box-shadow: 0 0 7px var(--acc);
}

/* ---------- экранное время ---------- */
.screentime {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px 14px 12px;
  overflow: hidden;
}
.st-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.st-eyebrow {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--acc);
}
.st-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.st-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
}
.screentime.active .st-status { color: var(--acc); }
.screentime.active .st-status::before { box-shadow: 0 0 8px var(--acc); opacity: 1; }
.st-big {
  font-family: var(--mono);
  font-size: clamp(26px, 15cqw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .015em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.st-under {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 9.5px;
  color: var(--dim);
}
.st-under b { color: var(--muted); font-weight: 600; }
.st-progress {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.st-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--acc), var(--acc-3));
  transition: width .5s linear;
}
.screentime.done .st-progress i { background: linear-gradient(90deg, #63e08a, var(--acc)); }
.st-goal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.st-goal .st-pct { color: var(--acc); }
.st-row {
  display: flex;
  gap: 14px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.st-cell { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-cell span {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}
.st-cell b {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-week {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 34px;
  margin-top: 1px;
}
.st-day {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  min-width: 0;
}
.st-bar {
  width: 100%;
  max-width: 14px;
  height: 2%;
  min-height: 2px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .1);
  transition: height .4s ease;
}
.st-day.today .st-bar { background: linear-gradient(180deg, var(--acc), var(--acc-2)); }
.st-day small {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--dim);
  line-height: 1;
}
.st-day.today small { color: var(--acc); }

/* ---------- фурсона ---------- */
.fursona {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 12px 12px;
  position: relative;
  overflow: hidden;
}
.fs-art {
  position: relative;
  flex: 1;
  min-height: 110px;
  width: 100%;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.fs-art svg {
  width: min(180px, 100%);
  height: 100%;
  max-height: 190px;
  overflow: visible;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .35));
  transition: transform .18s ease;
}
.fs-art:hover svg { transform: translateY(-1px) scale(1.015); }
.fursona.petted .fs-art svg { animation: fsBounce .5s ease; }
@keyframes fsBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-5px) scale(1.03) rotate(-1deg); }
  70% { transform: translateY(0) scale(.995) rotate(1deg); }
}
.fs-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.2;
  text-align: center;
}
.fs-name { font-size: 14px; font-weight: 650; color: var(--text); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-sub {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}
.fs-mood { min-height: 12px; font-size: 10px; color: var(--muted); text-align: center; }
.fs-pet {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 13px;
  border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent);
  background: var(--acc-soft);
  color: var(--acc);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.fs-pet:hover { background: color-mix(in srgb, var(--acc) 20%, transparent); }
.fs-pet:active { transform: scale(.97); }
.fs-paw { display: grid; place-items: center; }
.fs-count {
  font-family: var(--mono);
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(0, 0, 0, .22);
  color: var(--text);
  font-weight: 600;
}
.fs-heart {
  position: absolute;
  bottom: 18%;
  z-index: 3;
  color: #ff6b9d;
  font-size: 16px;
  pointer-events: none;
  animation: fsHeart 1.15s ease-out forwards;
  text-shadow: 0 2px 10px rgba(255, 107, 157, .5);
}
@keyframes fsHeart {
  0% { opacity: 0; transform: translateY(0) scale(.6); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-46px) scale(1.15); }
}

/* ---------- лапки ---------- */
.paws {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(110% 90% at 50% 0%, rgba(255, 255, 255, .035), transparent 60%),
    linear-gradient(180deg, rgba(12, 18, 28, .35), rgba(7, 10, 16, .5));
}
.paws canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}
.paws-count,
.paws-hint {
  position: absolute;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}
.paws-count { top: 10px; right: 12px; color: var(--acc); }
.paws-hint { left: 12px; bottom: 10px; }

/* ---------- фурри-фото ---------- */
.furry {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 20%, rgba(255, 255, 255, .04), transparent 60%),
    #070b11;
}
.furry img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: opacity .35s ease, transform .4s ease;
}
.furry.loading img { opacity: 0; }
.furry:hover img { transform: scale(1.012); }
.furry-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 24%, transparent 62%, rgba(0, 0, 0, .82));
}
.furry-top {
  position: absolute;
  top: 9px;
  left: 11px;
  right: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.furry-badge {
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(8, 11, 16, .58);
  color: rgba(255, 255, 255, .82);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.furry-refresh {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(8, 11, 16, .55);
  color: rgba(255, 255, 255, .8);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .15s, color .15s, border-color .15s;
}
.furry-refresh:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .28); }
.furry-refresh:disabled { opacity: .35; cursor: default; }
.furry-info {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.furry-artist {
  max-width: 68%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
  pointer-events: auto;
}
.furry-artist:hover { text-decoration: underline; }
.furry-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--mono);
  font-size: 8px;
  color: rgba(255, 255, 255, .62);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
  white-space: nowrap;
}
.furry-count { color: rgba(255, 255, 255, .82); }
.furry-loading,
.furry-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
  background: rgba(7, 11, 17, .76);
  color: var(--dim);
  font-size: 10px;
}
.furry-loading[hidden],
.furry-error[hidden] { display: none; }
.furry-error .fe-ico { color: var(--acc); opacity: .8; }
.furry-error b { color: var(--text); font-size: 12px; }
.furry-error .fe-text { max-width: 230px; line-height: 1.5; }
