/* about.timur — слой полировки: стерильно и дорого в каждом касании.
   Правила движения взяты из taste-skill (motion.md): одни тайминги и кривые, без отскоков,
   подъём карточки 2px, зум фото 1.03, нажатие .985. Блик и звук добавлены сознательно и дозированно. */

:root {
  --m-in: 150ms; --m-out: 120ms; --m-press: 90ms; --m-image: 600ms;
  --m-enter: cubic-bezier(.22, 1, .36, 1);
  --shadow-soft: 0 10px 24px rgba(49, 49, 52, .10);
}

/* ---------- появление: слова всплывают из лёгкой дымки ---------- */
@keyframes rise {
  from { opacity: 0; translate: var(--tx, 0) 14px; filter: blur(7px); }
  to   { filter: blur(0); }
}
.nw, .tagline, .status { animation-duration: 1s; animation-timing-function: var(--m-enter); }
.duo-text > *, .vt, .bwin { animation-timing-function: var(--m-enter); }

/* ---------- блик на тексте ---------- */
.shine { position: relative; }
.shine::after {
  content: attr(data-shine);
  position: absolute; inset: 0; box-sizing: border-box; display: block;
  padding: inherit; margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit;
  text-align: inherit; white-space: inherit; pointer-events: none;
  background-image: linear-gradient(104deg, transparent 34%, var(--shine, rgba(255, 255, 255, 1)) 50%, transparent 66%);
  background-size: 300% 100%; background-position: 140% 0; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.nw .u.shine, .topnav a.shine { --shine: rgba(0, 0, 0, 1); }
.nw .u.shine { display: inline-block; }
.brand.shine { display: inline-block; }
@keyframes shine-sweep { from { background-position: 140% 0; } to { background-position: -40% 0; } }
.shine.shine-on::after { animation: shine-sweep 1.5s cubic-bezier(.4, 0, .2, 1) 1 both; }
@media (hover: hover) and (pointer: fine) {
  .shine:hover::after { animation: shine-sweep 1.5s cubic-bezier(.4, 0, .2, 1) 1 both; }
}

/* ---------- наведение и нажатие (как в motion.md) ---------- */
.kbtn, .shuffle, .seg button, .cats button, .chip, .bb, .snd, .back, .site-btn { transition-duration: var(--m-in); }
.kbtn:active, .shuffle:active, .seg button:active, .cats button:active, .chip:active, .bb:active, .snd:active { transform: scale(.985); transition-duration: var(--m-press); }

.tile, .vt, .statgrid button { transition: translate .18s var(--ease), box-shadow .2s var(--ease), background .25s; }
.tile:hover, .vt:hover, .statgrid button:hover { translate: 0 -2px; box-shadow: var(--shadow-soft); z-index: 2; }
.tile:hover img { transform: scale(1.04) !important; }
.tile img, .vt img { transition-duration: var(--m-image); transition-timing-function: var(--ease); }
.vt:hover img { transform: scale(1.03); }
.statgrid button { overflow: hidden; }
.statgrid button img { transition: transform var(--m-image) var(--ease); }
.statgrid button:hover img { transform: scale(1.03); }

h2, .pf-title { text-wrap: balance; }

/* ---------- переключатель звука ---------- */
.snd {
  display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 12px; border: 1px solid var(--line2);
  border-radius: 999px; color: var(--gray); font-size: 12px; letter-spacing: .02em; background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: color .25s, border-color .25s, transform var(--m-in);
}
.snd:hover { color: var(--ink); border-color: var(--ink); }
.snd-ico { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.snd-ico i { width: 2px; border-radius: 2px; background: currentColor; display: block; }
.snd-ico i:nth-child(1) { height: 5px; } .snd-ico i:nth-child(2) { height: 11px; } .snd-ico i:nth-child(3) { height: 7px; }
.snd[aria-pressed="false"] { opacity: .75; }
.snd[aria-pressed="false"] .snd-ico i { height: 2px !important; }
.snd .snd-lbl::after { content: " вкл"; }
.snd[aria-pressed="false"] .snd-lbl::after { content: " выкл"; }
@media (max-width: 760px) { .snd .snd-lbl { display: none; } .snd { width: 34px; padding: 0; justify-content: center; } }

/* ---------- меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  .shine::after { display: none; }
  .tile, .vt, .statgrid button { transition: none; }
  .tile:hover, .vt:hover, .statgrid button:hover { translate: none; }
}

/* блик по персонажу: canvas с силуэтом, полоса света считается в polish.js */
.glare { position: fixed; z-index: 3; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .glare { display: none; } }
