/* Цветовые роли M3. Значения переписывает app.js из material-color-utilities,
   здесь фолбэк (фиолетовая схема), если библиотека не загрузилась. */
:root {
  --primary: #65558f; --on-primary: #fff;
  --primary-container: #e9ddff; --on-primary-container: #4d3d75;
  --secondary: #625b71; --secondary-container: #e8def8; --on-secondary-container: #4a4458;
  --tertiary: #7e5260; --tertiary-container: #ffd9e3; --on-tertiary-container: #633b48;
  --surface: #fdf7ff; --on-surface: #1d1b20; --on-surface-variant: #49454f;
  --surface-container-low: #f7f2fa; --surface-container: #f3edf7;
  --surface-container-high: #ece6f0; --surface-container-highest: #e6e0e9;
  --outline-variant: #cac4d0; --inverse-surface: #322f35; --inverse-on-surface: #f5eff7;

  /* motion: expressive spring tokens */
  --spring-fast: cubic-bezier(.34, 1.2, .45, 1);
  --spring: cubic-bezier(.3, 1.08, .4, 1);
  --emph: cubic-bezier(.2, 0, 0, 1);
  --font: "Google Sans Flex", "Roboto Flex", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--surface); color: var(--on-surface);
  min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .6s var(--emph), color .6s var(--emph);
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.material-symbols-rounded { font-size: 24px; line-height: 1; user-select: none; }

main { max-width: 1120px; margin: 0 auto; padding: 24px 16px 64px; }

/* ===== HERO ===== */
.hero {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: 40px; padding: 44px 44px; margin-bottom: 12px;
  background: var(--surface-container-low); border-radius: 48px; overflow: hidden;
  transition: background-color .6s var(--emph);
}
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; overflow: visible; }
.shape path { transition: fill .6s var(--emph); }
.s-burst { width: 420px; height: 420px; right: -110px; top: -140px; animation: spin 40s linear infinite; }
.s-burst path { fill: var(--primary-container); }
.s-clover { width: 160px; height: 160px; right: 22%; bottom: -50px; animation: spin 24s linear infinite reverse; }
.s-clover path { fill: var(--tertiary-container); }
.s-pill { width: 90px; height: 90px; right: 6%; bottom: 40px; animation: bob 6s ease-in-out infinite; }
.s-pill path { fill: var(--secondary-container); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-14px) rotate(20deg); } }

.avatar {
  position: relative; width: 184px; height: 184px; z-index: 1; cursor: pointer;
  transition: transform .9s var(--spring);
}
.avatar:hover { transform: scale(1.05); }
.avatar:active { transform: scale(.94); transition-duration: .25s; }
.avatar-halo {
  position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px);
  overflow: visible; animation: spin 18s linear infinite reverse;
  transition: transform 1s var(--spring);
}
.avatar-halo path { fill: var(--primary); opacity: .9; transition: fill .6s var(--emph); }
.avatar:hover .avatar-halo { transform: scale(1.06) rotate(30deg); }
.avatar-svg { position: relative; width: 100%; height: 100%; overflow: visible; animation: spin 30s linear infinite; }
.avatar-svg image { transform-origin: 100px 100px; animation: spin 30s linear infinite reverse; }
/* вход аватарки */
.loaded .avatar { animation: avatarIn 1.1s var(--spring) both .15s; }
@keyframes avatarIn { from { transform: scale(.3) rotate(-90deg); opacity: 0; } }

.hero-text { position: relative; z-index: 1; min-width: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 12px;
  border-radius: 8px; background: var(--surface-container-highest);
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 #3ddc8488; animation: ping 2s infinite; }
@keyframes ping { to { box-shadow: 0 0 0 8px #3ddc8400; } }
h1 {
  font-size: clamp(44px, 7vw, 84px); line-height: .95; letter-spacing: -.035em;
  font-weight: 800; font-variation-settings: "wdth" 120, "ROND" 100, "opsz" 144;
  margin: 14px 0 10px; color: var(--on-surface); word-break: break-word;
}
.bio { font-size: 18px; line-height: 1.45; color: var(--on-surface-variant); max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  height: 32px; padding: 0 16px; display: inline-flex; align-items: center;
  border-radius: 8px; border: 1px solid var(--outline-variant);
  font-size: 14px; font-weight: 500; background: var(--surface-container-low);
}

/* ===== CONNECTED BUTTON GROUP ===== */
.group { display: flex; gap: 4px; margin-bottom: 12px; }
.gbtn {
  flex: 1; display: flex; align-items: center; gap: 20px; min-height: 104px; padding: 0 32px;
  border-radius: 16px; text-align: left;
  transition: border-radius .8s var(--spring), transform .8s var(--spring), background-color .6s var(--emph);
}
.gbtn:first-child { border-radius: 52px 16px 16px 52px; }
.gbtn:last-child { border-radius: 16px 52px 52px 16px; }
.gbtn:hover { border-radius: 52px; transform: scale(1.02); }
.gbtn:active { transform: scale(.985); }
.gbtn.primary { background: var(--primary); color: var(--on-primary); }
.gbtn.tonal { background: var(--secondary-container); color: var(--on-secondary-container); }
.brand { width: 40px; height: 40px; flex-shrink: 0; }
.gtext { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.gtext b { font-size: 28px; font-weight: 700; font-variation-settings: "wdth" 110, "ROND" 100; letter-spacing: -.01em; }
.gtext small { font-size: 15px; opacity: .8; }
.gbtn .material-symbols-rounded { font-size: 28px; transition: transform .7s var(--spring); }
.gbtn:hover .material-symbols-rounded { transform: translate(2px, -2px); }

/* ===== STATS ===== */
.stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.stat {
  padding: 28px 32px; border-radius: 32px; display: flex; flex-direction: column; gap: 4px;
  transition: border-radius .8s var(--spring), transform .8s var(--spring), background-color .6s var(--emph);
}
.stat:hover { border-radius: 48px; transform: scale(1.03); }
.stat b { font-size: 64px; line-height: 1; font-weight: 800; font-variation-settings: "wdth" 125, "ROND" 100; letter-spacing: -.03em; }
.stat span { font-size: 16px; opacity: .85; }
.stat.tertiary { background: var(--tertiary-container); color: var(--on-tertiary-container); }
.stat.secondary { background: var(--primary-container); color: var(--on-primary-container); }
.stat.surface { background: var(--surface-container-high); }

/* ===== PROJECTS ===== */
.section-head { display: flex; align-items: center; gap: 24px; margin: 0 8px 24px; }
h2 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -.03em; font-variation-settings: "wdth" 115, "ROND" 100; }
.wave { flex: 1; height: 16px; overflow: visible; }
.wave path { fill: none; stroke: var(--primary); stroke-width: 4; stroke-linecap: round; }

.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.card {
  grid-column: span 3; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px; padding: 32px; min-height: 260px;
  background: var(--surface-container); border-radius: 28px;
  transition: border-radius .8s var(--spring), transform .8s var(--spring), background-color .6s var(--emph);
}
.card.wide { grid-column: span 6; min-height: 280px; background: var(--primary-container); color: var(--on-primary-container); }
.card.alt { background: var(--tertiary-container); color: var(--on-tertiary-container); }
.card:hover { border-radius: 48px; transform: scale(1.02); }
.card:last-child:nth-child(even) { grid-column: span 6; }
.card:active { transform: scale(.99); }
.card-shape { width: 56px; height: 56px; overflow: visible; transition: transform 1.2s var(--spring); }
.card-shape path { fill: var(--primary); transition: fill .6s var(--emph); }
.card.wide .card-shape path { fill: var(--on-primary-container); }
.card.alt .card-shape path { fill: var(--tertiary); }
.card:hover .card-shape { transform: rotate(45deg); }
.card h3 { font-size: 32px; line-height: 1.05; font-weight: 700; font-variation-settings: "wdth" 110, "ROND" 100; letter-spacing: -.02em; word-break: break-word; }
.card.wide h3 { font-size: clamp(36px, 5vw, 52px); }
.card p { font-size: 16px; line-height: 1.5; opacity: .82; flex: 1; max-width: 60ch; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta > span {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 999px; background: color-mix(in srgb, currentColor 10%, transparent);
  font-size: 14px; font-weight: 600;
}
.meta .material-symbols-rounded { font-size: 18px; font-variation-settings: "FILL" 1; }
.card .go {
  position: absolute; right: 24px; top: 24px; width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; background: var(--surface); color: var(--on-surface);
  transition: border-radius .7s var(--spring), transform .7s var(--spring);
}
.card:hover .go { border-radius: 28px; transform: rotate(45deg); }

.loader { grid-column: 1 / -1; display: grid; place-items: center; padding: 64px; }
.loader svg { width: 48px; height: 48px; animation: spin 1.2s linear infinite; }
.loader path { fill: var(--primary); }

footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 48px 8px 0; color: var(--on-surface-variant); font-size: 14px; }

/* ===== TOP APP BAR + MENU ===== */
.appbar {
  max-width: 1120px; margin: 0 auto; padding: 16px 16px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 22px; font-weight: 800; font-variation-settings: "wdth" 115, "ROND" 100; letter-spacing: -.02em; }
.logo span { color: var(--primary); transition: color .6s var(--emph); }
.menu-anchor { position: relative; }
.tb-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-container-high);
  transition: border-radius .5s var(--spring), background-color .3s var(--emph);
}
.tb-btn:hover { background: var(--surface-container-highest); border-radius: 16px; }
.tb-btn[aria-expanded="true"] { border-radius: 16px; background: var(--primary); color: var(--on-primary); }

.menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 264px;
  padding: 12px; border-radius: 24px;
  background: var(--surface-container); box-shadow: 0 8px 28px -6px rgb(0 0 0 / .3);
  transform-origin: top right; transform: scale(.85); opacity: 0; visibility: hidden;
  transition: transform .4s var(--spring), opacity .2s var(--emph), visibility 0s .4s;
}
.menu.open { transform: none; opacity: 1; visibility: visible; transition: transform .45s var(--spring), opacity .2s var(--emph); }
.menu-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-surface-variant); margin: 4px 4px 8px; }
.menu-label:not(:first-child) { margin-top: 16px; }
.segmented { display: flex; gap: 2px; }
.segmented button {
  flex: 1; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 14px; font-weight: 600; background: var(--surface-container-highest);
  transition: border-radius .5s var(--spring), background-color .3s var(--emph), color .3s var(--emph);
}
.segmented .material-symbols-rounded { font-size: 20px; }
.segmented button:first-child { border-radius: 22px 8px 8px 22px; }
.segmented button:last-child { border-radius: 8px 22px 22px 8px; }
.segmented button.on { background: var(--primary); color: var(--on-primary); border-radius: 22px; }
.palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.swatch {
  aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  transition: border-radius .5s var(--spring), transform .4s var(--emph);
}
.swatch svg { width: 100%; height: 100%; display: block; }
.swatch:hover { transform: scale(1.05); }
.swatch[aria-checked="true"] { border-radius: 14px; outline: 2px solid var(--on-surface); outline-offset: 2px; }

.snackbar {
  position: fixed; left: 50%; bottom: 24px; z-index: 11;
  transform: translate(-50%, 24px) scale(.9); opacity: 0;
  min-height: 48px; padding: 14px 20px; border-radius: 8px;
  background: var(--inverse-surface); color: var(--inverse-on-surface); font-size: 14px;
  transition: transform .5s var(--spring), opacity .25s;
}
.snackbar.show { transform: translate(-50%, 0) scale(1); opacity: 1; }

/* появление с пружиной */
.rise { opacity: 0; transform: translateY(48px) scale(.94); }
.rise.in { opacity: 1; transform: none; transition: opacity .5s var(--emph), transform .9s var(--spring); }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; border-radius: 36px; }
  .avatar { width: 136px; height: 136px; margin-left: 14px; }
  .s-burst { width: 300px; height: 300px; right: -120px; top: -100px; }
  .group { flex-direction: column; }
  .gbtn, .gbtn:first-child, .gbtn:last-child { border-radius: 16px; min-height: 88px; padding: 0 24px; }
  .gbtn:first-child { border-radius: 40px 40px 16px 16px; }
  .gbtn:last-child { border-radius: 16px 16px 40px 40px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat.tertiary { grid-column: 1 / -1; }
  .stat b { font-size: 48px; }
  .card, .card.wide { grid-column: 1 / -1; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
}

/* ===== РАЗВОРАЧИВАЕМАЯ КАРТОЧКА ===== */
.card { cursor: pointer; }
.card:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.card.open { grid-column: 1 / -1; border-radius: 40px; }
.card.open:hover { transform: none; }
.card .go .material-symbols-rounded { transition: transform .7s var(--spring); }
.card.open .go { border-radius: 28px; transform: none; }
.card.open .go .material-symbols-rounded { transform: rotate(180deg); }
.card:hover .go { transform: none; }

.details { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--spring); cursor: default; }
.card.open .details { grid-template-rows: 1fr; }
.details-inner {
  overflow: hidden; min-height: 0; opacity: 0;
  transition: opacity .3s var(--emph);
}
.card.open .details-inner { opacity: 1; transition: opacity .5s var(--emph) .15s; }
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px;
}
.facts div { padding: 14px 16px; border-radius: 20px; background: color-mix(in srgb, currentColor 8%, transparent); }
.facts dt { font-size: 12px; opacity: .7; text-transform: uppercase; letter-spacing: .05em; }
.facts dd { font-size: 18px; font-weight: 700; margin-top: 2px; }
.topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.topics span { font-size: 13px; padding: 4px 10px; border-radius: 8px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.release { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; opacity: .9; }
.release[hidden], .btn[hidden] { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-bottom: 2px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px;
  border-radius: 26px; font-size: 16px; font-weight: 600;
  transition: border-radius .6s var(--spring), background-color .3s var(--emph);
}
.btn:hover { border-radius: 14px; }
.btn.filled { background: var(--primary); color: var(--on-primary); }
.card.wide .btn.filled { background: var(--on-primary-container); color: var(--primary-container); }
.btn.outlined { border: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.btn.outlined:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
@media (max-width: 800px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .btn { flex: 1; justify-content: center; }
}

/* ===== СТАТУС DISCORD ===== */
.status-dot {
  position: absolute; right: 14%; bottom: 10%; width: 36px; height: 36px; border-radius: 50%;
  border: 6px solid var(--surface-container-low); background: #80848e; z-index: 2;
  transition: background-color .4s var(--emph), border-color .6s var(--emph);
}
.status-dot[data-status="online"] { background: #3ba55d; }
.status-dot[data-status="idle"] { background: #faa61a; }
.status-dot[data-status="dnd"] { background: #ed4245; }

.activities { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; max-width: 520px; }
.activities[hidden] { display: none; }
.act {
  display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px;
  border-radius: 24px; background: color-mix(in srgb, var(--surface-container-highest) 80%, transparent);
  backdrop-filter: blur(12px);
  transition: border-radius .8s var(--spring), transform .8s var(--spring);
}
.act:hover { border-radius: 36px; transform: scale(1.02); }
.act-art { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.act-ph { display: grid; place-items: center; background: var(--primary-container); color: var(--on-primary-container); font-size: 28px; }
.act-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.act-kind { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }
.act-text b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-text > span:not(.act-kind) { font-size: 13px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-bar { height: 4px; border-radius: 2px; background: var(--surface-container-low); margin-top: 6px; overflow: hidden; }
.act-bar i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 2px; transition: width 1s linear; }

/* ===== ТЕПЛОВАЯ КАРТА ===== */
.heat-wrap { padding: 24px 28px; border-radius: 32px; background: var(--surface-container); margin-bottom: 12px; }
.heat-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.heat-head h3 { font-size: 24px; font-weight: 700; font-variation-settings: "wdth" 110, "ROND" 100; }
.heat-head span { color: var(--on-surface-variant); font-size: 14px; }
.heat-scroll { overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.heat { display: grid; grid-template-rows: repeat(7, 13px); grid-auto-flow: column; grid-auto-columns: 13px; gap: 4px; width: max-content; }
.heat i { border-radius: 4px; background: var(--surface-container-highest); transition: transform .4s var(--spring), border-radius .4s var(--spring); }
.heat i:hover { transform: scale(1.5); border-radius: 50%; }
.heat i.l1 { background: color-mix(in srgb, var(--primary) 30%, var(--surface-container-highest)); }
.heat i.l2 { background: color-mix(in srgb, var(--primary) 55%, var(--surface-container-highest)); }
.heat i.l3 { background: color-mix(in srgb, var(--primary) 80%, var(--surface-container-highest)); }
.heat i.l4 { background: var(--primary); }
.heat i:not([class]) { visibility: hidden; }

/* ===== СТЕК ===== */
.block { padding-top: 56px; }
.stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.tech {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 8px 16px;
  border-radius: 28px; background: var(--surface-container-low);
  transition: border-radius .8s var(--spring), transform .8s var(--spring), background-color .6s var(--emph);
}
.tech:hover { border-radius: 44px; transform: scale(1.04); }
.tech-shape { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.tech-shape svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.2s var(--spring); }
.tech-shape path { fill: var(--secondary-container); transition: fill .6s var(--emph); }
.tech:nth-child(3n+2) .tech-shape path { fill: var(--tertiary-container); }
.tech:nth-child(3n) .tech-shape path { fill: var(--primary-container); }
.tech:hover .tech-shape svg { transform: rotate(60deg); }
.tech-icon {
  position: relative; font-style: normal; font-weight: 800; font-size: 18px; color: var(--on-secondary-container);
  font-variation-settings: "wdth" 120, "ROND" 100;
}
.tech-icon.has-icon {
  width: 28px; height: 28px; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.tech-name { font-size: 15px; font-weight: 600; }

/* ===== README ===== */
.readme { margin-top: 16px; border-radius: 24px; background: var(--surface); color: var(--on-surface); position: relative; cursor: auto; }
.readme[hidden] { display: none; }
.readme-head { display: flex; align-items: center; gap: 8px; padding: 14px 20px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--outline-variant); }
.readme-head .material-symbols-rounded { font-size: 20px; }
.readme-body { padding: 4px 24px 20px; max-height: 340px; overflow: hidden; line-height: 1.6; font-size: 15px; transition: max-height .8s var(--emph); }
.readme:not(.full) .readme-body { -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); }
.readme.full .readme-body { max-height: none; }
.readme-body h1, .readme-body h2, .readme-body h3 { margin: 20px 0 8px; font-size: 20px; font-weight: 700; line-height: 1.2; }
.readme-body h1 { font-size: 24px; }
.readme-body p, .readme-body ul, .readme-body ol, .readme-body pre, .readme-body table, .readme-body blockquote { margin: 10px 0; }
.readme-body ul, .readme-body ol { padding-left: 22px; }
.readme-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.readme-body img { max-width: 100%; height: auto; border-radius: 12px; }
.readme-body code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--surface-container-high); }
.readme-body pre { padding: 14px 16px; border-radius: 16px; background: var(--surface-container-high); overflow-x: auto; }
.readme-body pre code { padding: 0; background: none; }
.readme-body blockquote { padding-left: 14px; border-left: 3px solid var(--primary); opacity: .85; }
.readme-body table { border-collapse: collapse; display: block; overflow-x: auto; }
.readme-body th, .readme-body td { padding: 6px 12px; border: 1px solid var(--outline-variant); }
.readme-more {
  display: block; margin: 0 auto; padding: 10px 20px 16px; font-size: 14px; font-weight: 600; color: var(--primary);
}
.readme-more[hidden] { display: none; }

/* ===== ПРОЧЕЕ ===== */
.views { display: inline-flex; align-items: center; gap: 6px; }
.views[hidden] { display: none; }
.views .material-symbols-rounded { font-size: 18px; }
.confetti { position: fixed; z-index: 50; pointer-events: none; overflow: visible; }
.segmented button { padding: 0 8px; }
@media (max-width: 800px) {
  .heat-wrap { padding: 20px; }
  .status-dot { width: 30px; height: 30px; border-width: 5px; }
  .act-art { width: 48px; height: 48px; }
}

/* ===== ЗАСТАВКА ЗАГРУЗКИ ===== */
.splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--surface); color: var(--on-surface);
  transition: clip-path 1s var(--emph), visibility 0s 1s;
  clip-path: circle(150% at 50% 50%);
}
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.splash-shape { width: 96px; height: 96px; overflow: visible; animation: spin 2.4s linear infinite; }
.splash-shape path { fill: var(--primary); transition: fill .6s var(--emph); }
.splash-logo { font-size: 28px; font-weight: 800; font-variation-settings: "wdth" 115, "ROND" 100; letter-spacing: -.02em; }
.splash-logo span { color: var(--primary); }
.splash-bar { width: 160px; height: 6px; border-radius: 3px; background: var(--surface-container-highest); overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 40%; border-radius: 3px; background: var(--primary); animation: bar 1.2s var(--emph) infinite; }
@keyframes bar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.loaded .splash { clip-path: circle(0% at 50% 50%); visibility: hidden; }
.loaded .splash-inner { transform: scale(.6); opacity: 0; transition: transform .6s var(--emph), opacity .4s; }

/* ===== ПРОГРЕСС И FAB ===== */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 30;
  background: var(--primary); transform-origin: left; transform: scaleX(0);
  border-radius: 0 2px 2px 0;
}
.fab-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 25; width: 64px; height: 64px;
  display: grid; place-items: center; color: var(--on-primary-container);
  transform: scale(0) rotate(-90deg); transition: transform .7s var(--spring);
}
.fab-top.show { transform: none; }
.fab-top:active { transform: scale(.9); transition-duration: .2s; }
.fab-top svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 4px 10px rgb(0 0 0 / .25)); }
.fab-top path { fill: var(--primary-container); transition: fill .6s var(--emph); }
.fab-top .material-symbols-rounded { position: relative; font-size: 26px; }
@media (max-width: 800px) { .fab-top { right: 16px; bottom: 16px; width: 56px; height: 56px; } }

/* ===== ПАСХАЛКИ ===== */
/* глитч перед случайным падением на 404 */
.glitch main, .glitch .appbar { animation: glitch .65s steps(2) both; }
@keyframes glitch {
  0% { transform: none; filter: none; }
  15% { transform: translate(-6px, 2px) skewX(6deg); filter: hue-rotate(90deg) contrast(1.6); clip-path: inset(10% 0 30% 0); }
  30% { transform: translate(8px, -4px) skewX(-10deg); filter: hue-rotate(-120deg) saturate(3); clip-path: inset(40% 0 5% 0); }
  50% { transform: translate(-3px, 6px) scale(1.02); filter: invert(1); clip-path: inset(0 0 60% 0); }
  70% { transform: translate(5px, 0) skewY(4deg); filter: hue-rotate(200deg) blur(1px); clip-path: inset(25% 0 25% 0); }
  100% { transform: scale(.9); filter: blur(8px); opacity: 0; clip-path: inset(50% 0 50% 0); }
}
/* дискотека */
.party .card, .party .stat, .party .tech, .party .gbtn { animation: dance .5s ease-in-out infinite alternate; }
.party .stat:nth-child(2n), .party .tech:nth-child(2n), .party .card:nth-child(2n) { animation-delay: -.25s; }
.party .hero-shapes .shape { animation-duration: 1.5s !important; }
@keyframes dance { from { transform: rotate(-2deg) scale(.98); } to { transform: rotate(2deg) scale(1.03); } }
