/* энерго☆лаб — аниме-хомпейдж начала 2000-х */

@font-face {
  font-family: "Cordata PPC";
  src: url("../fonts/cordata-ppc-400.3aaae81494b1.woff") format("woff");
  font-display: swap;
}

:root {
  --ink: #5B3A55;
  --ink-soft: #7A6175;
  --pink: #FFB3D6;
  --pink-l: #FFE3F0;
  --pink-xl: #FFF4F9;
  --pink-m: #FF8FC0;
  --hot: #FF5FA2;
  --rose: #C2185B;
  --sky: #8EC8FF;
  --sky-l: #DDF0FF;
  --sky-xl: #F3FAFF;
  --sky-d: #2A6FB8;
  --lemon: #FFF59A;
  --gold: #FFE14D;
  --lime: #C6F432;
  --night: #1B1424;
  --red: #CC0000;
  --ch-green: #117743;
  --new: #FF3366;
  --grey: #F1E7EE;
  --f: "Cordata PPC", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-synthesis: none; -webkit-font-smoothing: none; }
body {
  margin: 0;
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background-color: #FFFFFF;
  background-image:
    linear-gradient(90deg, rgba(255, 160, 200, .32) 50%, transparent 50%),
    linear-gradient(rgba(255, 160, 200, .32) 50%, transparent 50%);
  background-size: 24px 24px;
  min-height: 100vh;
}
img { max-width: 100%; }
a { color: var(--sky-d); }
a:hover { color: var(--rose); }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--new); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-soft); }
.rose { color: var(--rose); }
.skyd { color: var(--sky-d); }
.hl { color: var(--gold); }
.pre { white-space: pre-line; }

/* ---------- анимации ---------- */
@keyframes blink { to { visibility: hidden; } }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes eq { 0% { transform: scaleY(.3); } 50% { transform: scaleY(1); } 100% { transform: scaleY(.5); } }
@keyframes tw { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
@keyframes pop { 50% { transform: scale(1.15) rotate(-4deg); } }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }
.new { display: inline-block; color: #FFFFFF; background: var(--new); padding: 0 4px; border-radius: 3px; animation: blink 1s steps(2, start) infinite; }
.bob { animation: bob 2.4s ease-in-out infinite; }
.tw { animation: tw 1.6s ease-in-out infinite; }
.spark { position: fixed; z-index: 99; pointer-events: none; color: var(--hot); font-size: 16px; animation: spark .7s ease-out forwards; }
@media (prefers-reduced-motion: reduce) {
  .new, .bob, .tw, .marquee-track, .eq-on .eqb { animation: none !important; }
}

/* ---------- каркас ---------- */
.site { max-width: 1040px; margin: 0 auto; padding: 20px 12px 40px; }

.tabs { display: flex; align-items: flex-end; gap: 8px; padding: 0 14px; }
.tab-main {
  display: flex; align-items: center; gap: 8px; padding: 10px 26px 8px; background: #FFFFFF;
  border: 3px solid var(--sky); border-bottom: none; border-radius: 18px 40px 0 0;
  text-decoration: none; color: var(--sky-d); font-size: 32px; line-height: 1;
}
.tab-main:hover { color: var(--rose); }
.tab-main svg { width: 26px; height: 26px; flex: none; }
.tab-icon {
  width: 56px; height: 44px; display: grid; place-items: center;
  border: 3px solid var(--pink); border-bottom: none; border-radius: 12px 12px 0 0;
  background: repeating-linear-gradient(90deg, var(--pink-l) 0 6px, #FFFFFF 6px 12px);
}
.tab-icon.sky { border-color: var(--sky); background: repeating-linear-gradient(90deg, var(--sky-l) 0 6px, #FFFFFF 6px 12px); }
.tab-icon:hover { transform: translateY(-2px); }
.tabs .grow { flex: 1; }

.frame {
  background: #FFFFFF; border: 3px solid var(--sky); border-radius: 14px;
  box-shadow: 0 0 0 5px #FFFFFF, 0 0 0 8px var(--pink);
  padding: 12px; display: flex; flex-direction: column; gap: 14px;
}

/* ---------- баннер ---------- */
.banner {
  position: relative; overflow: hidden; border: 3px double var(--pink-m); border-radius: 8px; min-height: 250px;
  background-color: var(--pink-l);
  background-image: radial-gradient(#FFFFFF 2px, transparent 2.5px), radial-gradient(#FFC2DE 2px, transparent 2.5px);
  background-size: 20px 20px; background-position: 0 0, 10px 10px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 20px;
}
.banner .sparkle { position: absolute; }
.banner-text { flex: 999 1 330px; min-width: 0; position: relative; }
.welcome-badge {
  display: inline-block; color: var(--sky-d); background: #FFFFFF; border: 2px dashed var(--sky);
  border-radius: 6px; padding: 0 10px; margin-bottom: 8px;
}
.site-title {
  font-size: 64px; line-height: 1; color: var(--hot); letter-spacing: 1px; overflow-wrap: anywhere;
  text-shadow: 3px 0 0 #FFF, -3px 0 0 #FFF, 0 3px 0 #FFF, 0 -3px 0 #FFF, 3px 3px 0 #FFF, -3px -3px 0 #FFF, 3px -3px 0 #FFF, -3px 3px 0 #FFF, 6px 6px 0 var(--sky);
}
.site-title a { color: inherit; text-decoration: none; }
.site-sub { font-size: 24px; color: var(--sky-d); margin-top: 8px; text-shadow: 2px 2px 0 #FFFFFF; }
.tagline { margin-top: 8px; max-width: 380px; background: rgba(255, 255, 255, .85); border-radius: 6px; padding: 4px 8px; white-space: pre-line; }

.polaroids { flex: 1 1 170px; position: relative; min-height: 180px; }
.polaroid {
  position: absolute; width: 116px; background: #FFFFFF; padding: 8px 8px 22px;
  box-shadow: 2px 3px 0 rgba(91, 58, 85, .25); border: 1px solid #E9D2E2;
}
.polaroid.p1 { left: 8px; top: 18px; transform: rotate(-8deg); }
.polaroid.p2 { left: 82px; top: 52px; width: 108px; transform: rotate(7deg); }
.polaroid .ph {
  height: 96px; display: grid; place-items: center; text-align: center; color: var(--sky-d);
  background: repeating-linear-gradient(45deg, var(--sky-l) 0 6px, #FFFFFF 6px 12px); overflow: hidden;
}
.polaroid.p2 .ph { height: 88px; color: var(--rose); background: repeating-linear-gradient(-45deg, var(--pink-l) 0 6px, #FFFFFF 6px 12px); }
.polaroid .ph img { width: 100%; height: 100%; object-fit: cover; }
.polaroid .tape { position: absolute; left: 34px; top: -10px; width: 50px; height: 18px; background: rgba(142, 200, 255, .6); transform: rotate(4deg); }
.polaroid.p2 .tape { left: 30px; width: 46px; background: rgba(255, 179, 214, .7); transform: rotate(-5deg); }

.mascot { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; margin: 0 auto; }
.bubble {
  position: relative; background: #FFFFFF; border: 2px solid var(--ink); border-radius: 14px;
  padding: 4px 12px; margin-bottom: 10px; white-space: nowrap;
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px; background: #FFFFFF;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateX(-50%) rotate(45deg);
}
.mascot svg, .mascot img { width: 130px; height: 190px; object-fit: contain; }

/* компактный баннер на внутренних страницах */
.banner.compact { min-height: 0; padding: 12px 16px; }
.banner.compact .site-title { font-size: 48px; }
.banner.compact .site-sub { font-size: 16px; margin-top: 4px; }
.banner.compact .mascot svg, .banner.compact .mascot img { width: 64px; height: 94px; }
.banner.compact .bubble { margin-bottom: 6px; }

/* ---------- меню и тикер ---------- */
.nav {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 8px;
  border: 2px dotted var(--pink); border-radius: 10px; background: #FFFAFD;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none;
  background: #FFFFFF; border: 2px solid var(--pink); border-radius: 99px; padding: 6px 12px; min-height: 40px;
}
.pill:hover, .pill[aria-current="page"] { background: var(--pink-l); color: var(--rose); }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ink); flex: none; }

.marquee {
  overflow: hidden; border-top: 2px dashed var(--sky); border-bottom: 2px dashed var(--sky);
  padding: 4px 0; color: var(--sky-d); background: var(--sky-xl);
}
.marquee-track { display: flex; width: max-content; gap: 56px; white-space: nowrap; animation: mq 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a { color: inherit; }

/* ---------- колонки ---------- */
.cols { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.col { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.col-left { flex: 1 1 200px; }
.col-main { flex: 999 1 380px; }
.col-right { flex: 1 1 220px; }
.row2 { display: flex; flex-wrap: wrap; gap: 14px; }
.row2 > * { flex: 1 1 220px; min-width: 0; }

/* ---------- коробки ---------- */
.box { background: #FFFFFF; border: 2px solid var(--pink); border-radius: 10px; overflow: hidden; }
.box.sky { border-color: var(--sky); }
.bh {
  display: flex; align-items: center; gap: 8px; padding: 4px 10px; color: var(--rose);
  border-bottom: 2px dashed var(--pink);
  background: repeating-linear-gradient(45deg, var(--pink-l) 0 6px, #FFFFFF 6px 12px);
}
.box.sky .bh { color: var(--sky-d); border-bottom-color: var(--sky); background: repeating-linear-gradient(45deg, var(--sky-l) 0 6px, #FFFFFF 6px 12px); }
.bh h2, .bh h3 { font-size: 16px; }
.bb { padding: 10px; }
.stack { display: flex; flex-direction: column; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
  color: var(--ink); background: var(--lemon); border: 2px solid var(--ink); border-radius: 6px;
  padding: 6px 16px; min-height: 44px; cursor: pointer;
  box-shadow: inset -2px -2px 0 rgba(91, 58, 85, .25), inset 2px 2px 0 #FFFFFF;
}
.btn:hover { color: var(--ink); background: #FFF9C4; }
.btn:active { box-shadow: inset 2px 2px 0 rgba(91, 58, 85, .25); }
.btn.grey { background: #EFEFEF; border-color: #808080; }
.btn.pink { background: var(--pink-l); }
.chip {
  display: inline-block; color: var(--rose); text-decoration: none; background: #FFFFFF;
  border: 2px solid var(--pink); border-radius: 99px; padding: 0 10px;
}
a.chip:hover, .chip.on { background: var(--pink-m); color: #FFFFFF; border-color: var(--pink-m); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- профиль / лаборанты ---------- */
.member { display: flex; gap: 8px; align-items: center; }
.ava {
  width: 52px; height: 52px; flex: none; border: 2px solid var(--tint, var(--pink)); border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; color: var(--tint-text, var(--rose));
  background: repeating-linear-gradient(45deg, var(--tint-light, var(--pink-l)) 0 4px, #FFFFFF 4px 8px);
}
.ava img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.member-name { color: var(--tint-text, var(--rose)); }

/* ---------- календарь ---------- */
.cal-head { justify-content: space-between; }
.cal-head a { color: var(--sky-d); text-decoration: none; padding: 0 6px; }
.cal { padding: 8px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.cal span, .cal a { display: block; line-height: 26px; border-radius: 50%; text-decoration: none; color: inherit; }
.cal .sun { color: var(--red); }
.cal .sat { color: var(--sky-d); }
.cal .review { background: var(--pink-l); color: var(--rose); }
.cal a.review:hover { background: var(--pink-m); color: #FFFFFF; }
.cal .today { background: var(--pink-m); color: #FFFFFF; }
.cal-legend { padding: 0 10px 8px; color: var(--ink-soft); }
.cal-legend i { display: inline-block; width: 12px; height: 12px; background: var(--pink); border-radius: 50%; vertical-align: -1px; }

/* ---------- клап, памятка ---------- */
.clap { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 12px; }
.clap.popped .btn { animation: pop .3s ease; }
.memo {
  position: relative; background: var(--lemon); border: 2px solid #E8C94A; padding: 14px 12px 12px;
  transform: rotate(-1.5deg); box-shadow: 2px 3px 0 rgba(91, 58, 85, .2);
}
.memo::before { content: ""; position: absolute; left: 50%; top: -9px; width: 60px; height: 16px; background: rgba(255, 179, 214, .75); transform: translateX(-50%) rotate(-3deg); }
.memo-title { color: var(--rose); margin-bottom: 4px; }

/* ---------- приветствие и UPDATE ---------- */
.lined {
  height: 150px; overflow-y: auto; padding: 8px 10px; line-height: 24px; white-space: pre-line;
  background: repeating-linear-gradient(0deg, #FFFFFF 0 23px, var(--pink-l) 23px 24px);
  scrollbar-color: var(--pink) var(--pink-l);
}
.lined::-webkit-scrollbar { width: 12px; }
.lined::-webkit-scrollbar-track { background: var(--pink-l); }
.lined::-webkit-scrollbar-thumb { background: var(--pink); border: 2px solid var(--pink-l); border-radius: 6px; }
.updates { list-style: none; margin: 0; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.updates time { color: var(--sky-d); }
.updates a { color: inherit; }

/* ---------- карточка банки (профиль персонажа) ---------- */
.card-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 2px solid var(--sky); }
.card-head svg { flex: none; }
.card-head h2 { font-size: 24px; color: var(--sky-d); }
.can-tabs { display: flex; flex-wrap: wrap; border-bottom: 2px solid var(--pink); }
.can-tab {
  flex: 1 1 110px; min-height: 40px; border: none; border-right: 2px solid var(--pink); cursor: pointer;
  color: var(--rose); background: #FFFFFF; text-decoration: none; display: grid; place-items: center; padding: 4px 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.can-tab:last-child { border-right: none; }
.can-tab:hover { background: var(--pink-l); color: var(--rose); }
.can-tab[aria-selected="true"] { background: var(--pink); color: #FFFFFF; }
.panel[hidden] { display: none; }

.profile { display: flex; flex-wrap: wrap; }
.profile-info { flex: 1 1 240px; min-width: 0; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.profile-meta { color: var(--ink-soft); }
.profile-name { font-size: 32px; line-height: 1.1; color: var(--rose); overflow-wrap: anywhere; }
.profile-name a { color: inherit; text-decoration: none; }
.profile-name a:hover { text-decoration: underline; }
.verdicts { display: flex; flex-wrap: wrap; gap: 8px; }
.verdict {
  flex: 1 1 130px; border: 2px solid var(--tint, var(--pink)); border-radius: 10px; padding: 8px 10px;
  background: var(--tint-xl, var(--pink-xl));
}
.verdict-who { color: var(--tint-text, var(--rose)); }
.verdict-score { font-size: 32px; line-height: 1.1; }
.verdict-score small { font-size: 16px; }
.verdict-text { color: var(--ink-soft); }
.verdict details { margin-top: 6px; }
.verdict summary { cursor: pointer; color: var(--sky-d); }

.stats { border-top: 2px dashed var(--pink); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.stat { display: flex; align-items: flex-end; }
.stat b { font-weight: 400; color: var(--rose); text-align: right; }
.lead { flex: 1; border-bottom: 2px dotted #C9A9C4; margin: 0 6px; transform: translateY(-4px); min-width: 10px; }
.boost-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.boost { display: flex; gap: 2px; padding: 3px; border: 2px solid var(--ink); border-radius: 4px; background: #FFFFFF; }
.boost i { flex: 1; height: 12px; background: var(--grey); }
.boost i.on { background: var(--pink-m); }
.boost i.on.hot { background: var(--new); }
.ingredients summary { cursor: pointer; color: var(--sky-d); }
.ingredients p { margin-top: 4px; color: var(--ink-soft); white-space: pre-line; }

.art {
  flex: 0 1 230px; min-width: 190px; position: relative; min-height: 340px; overflow: hidden;
  background-color: var(--sky-l); background-image: radial-gradient(#FFFFFF 2px, transparent 2.5px); background-size: 14px 14px;
  border-left: 2px solid var(--sky); display: flex; align-items: center; justify-content: center;
}
.art-label { position: absolute; left: 10px; top: 10px; color: #FFFFFF; background: var(--pink-m); border-radius: 4px; padding: 0 6px; z-index: 2; }
.art-vert {
  position: absolute; right: 10px; top: 40px; writing-mode: vertical-rl; font-size: 24px; letter-spacing: 4px;
  color: var(--sky-d); text-shadow: 2px 2px 0 #FFFFFF; z-index: 2;
}
.art-photo { max-width: 78%; max-height: 300px; object-fit: contain; image-rendering: pixelated; transform: rotate(-4deg); filter: drop-shadow(6px 6px 0 rgba(91, 58, 85, .25)); }

/* нарисованная банка */
.can {
  --c1: #6E8FE0; --c2: #C9CFE0; --band: #FFE14D; --w: 110px; --h: 220px; --b: 4px;
  position: relative; width: var(--w); height: var(--h); flex: none;
  border: var(--b) solid var(--ink); border-radius: calc(var(--w) * .2);
  background: linear-gradient(90deg, var(--c1) 0 50%, var(--c2) 50% 100%);
}
.can::before {
  content: ""; position: absolute; left: 11%; right: 11%; top: calc(var(--h) * -.065); height: calc(var(--h) * .065);
  border: var(--b) solid var(--ink); border-bottom: none; border-radius: 6px 6px 0 0; background: #E9E2EC;
}
.can::after {
  content: ""; position: absolute; left: 0; right: 0; top: 36%; height: 20%; background: var(--band);
  border-top: var(--b) solid var(--ink); border-bottom: var(--b) solid var(--ink);
}
.can i { position: absolute; left: 12%; top: 6%; bottom: 6%; width: 9%; border-radius: 5px; background: rgba(255, 255, 255, .5); z-index: 1; }
.can.stripes { background: repeating-linear-gradient(135deg, var(--c1) 0 14px, var(--c2) 14px 18px); }
.can.stripes::after { display: none; }
.can.gradient { background: linear-gradient(180deg, var(--c1), var(--c2)); }
.can.big { box-shadow: 6px 6px 0 rgba(91, 58, 85, .25); transform: rotate(-6deg); }
.can.mid { --w: 64px; --h: 120px; --b: 3px; }
.can.small { --w: 40px; --h: 74px; --b: 2px; }
.can-img-mid { width: 90px; height: 130px; object-fit: contain; image-rendering: pixelated; }
.art-hint { position: absolute; left: 10px; bottom: 10px; background: rgba(255, 255, 255, .9); border-radius: 4px; padding: 0 6px; }

/* ---------- гостевая в стиле 2ch ---------- */
.bbs { border: 2px solid #C9C9C9; background: #EFEFEF; border-radius: 4px; scroll-margin-top: 12px; }
.bbs-head { padding: 8px 12px; border-bottom: 1px solid #C9C9C9; background: #FFFFFF; }
.bbs-head h2 { font-size: 24px; color: var(--red); overflow-wrap: anywhere; }
.bbs-posts { padding: 10px 14px; display: flex; flex-direction: column; gap: 14px; color: #222222; }
.post-h { overflow-wrap: anywhere; }
.post-h .nm { color: var(--ch-green); }
.post-h .st { color: var(--rose); }
.post-b { padding-left: 32px; margin-top: 2px; overflow-wrap: anywhere; white-space: pre-line; }
.bbs-more { padding: 0 14px 10px; }
.bbs-form { margin: 0 14px 14px; padding: 10px; border: 1px solid #C9C9C9; background: #FFFFFF; display: flex; flex-direction: column; gap: 8px; }
.bbs-form textarea {
  width: 100%; min-height: 84px; resize: vertical; color: #222222; font-size: 16px;
  border: 1px solid #A0A0A0; padding: 6px; background: #FFFFFF;
}
.bbs-form-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.bbs-form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; }
.rating { border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: 4px; }
.rating legend { float: left; padding: 0; margin-right: 4px; }
.rating-stars { display: inline-flex; flex-direction: row-reverse; }
.rating-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-stars label { width: 36px; height: 40px; display: grid; place-items: center; cursor: pointer; color: #E0D6DD; }
.rating-stars svg { width: 24px; height: 24px; }
.rating-stars input:checked ~ label,
.rating-stars label:hover, .rating-stars label:hover ~ label { color: var(--hot); }
.rating-stars input:focus-visible + label { outline: 3px solid var(--new); outline-offset: -2px; border-radius: 6px; }
.flash { list-style: none; margin: 0; padding: 0 14px; display: flex; flex-direction: column; gap: 6px; }
.flash li { border: 1px solid #A0A0A0; background: #FFFFDD; padding: 6px 10px; color: #222222; }
.flash li.error { background: #FFE3E3; border-color: var(--red); }

/* ---------- счётчик ---------- */
.counter { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; text-align: center; }
.digits { display: flex; gap: 2px; }
.digits span { width: 22px; height: 30px; display: grid; place-items: center; font-size: 24px; color: #FFFFFF; border-radius: 3px; }
.kiri-note { color: var(--ink-soft); border-top: 2px dotted var(--pink); padding-top: 6px; }
.kiri-hit { color: #FFFFFF; background: var(--new); border-radius: 6px; padding: 4px 8px; animation: pop .6s ease 3; }

/* ---------- Winamp-плеер ---------- */
.amp {
  border: 2px solid var(--ink); border-radius: 6px; background: var(--pink); padding: 4px;
  box-shadow: inset 2px 2px 0 var(--pink-l), inset -2px -2px 0 var(--rose);
}
.amp-title {
  display: flex; align-items: center; gap: 6px; padding: 2px 4px;
  background: repeating-linear-gradient(180deg, var(--pink-l) 0 2px, var(--pink) 2px 4px);
}
.amp-title span:first-child { background: var(--pink); padding: 0 4px; }
.amp-title .grow { flex: 1; }
.amp-title i { width: 10px; height: 10px; background: #FFFFFF; border: 1px solid var(--ink); }
.amp-lcd { margin-top: 4px; background: var(--night); border: 2px solid var(--ink); padding: 6px 8px; color: var(--lime); display: flex; gap: 8px; }
.amp-left { flex: none; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; }
.amp-time { font-size: 24px; line-height: 1; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 22px; }
.eqb { width: 6px; background: var(--lime); transform-origin: bottom; transform: scaleY(.3); }
.eq-on .eqb { animation: eq .5s ease-in-out infinite alternate; }
.eq-on .eqb:nth-child(2n) { animation-duration: .35s; }
.eq-on .eqb:nth-child(3n) { animation-duration: .6s; }
.amp-right { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.amp-now { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.amp-kbps { color: var(--sky); }
.amp-state { color: var(--pink); }
.amp-seek { height: 8px; margin-top: 4px; background: #3A2A48; cursor: pointer; border: 1px solid #5B3A55; }
.amp-seek div { height: 100%; width: 0; background: var(--lime); }
.amp-ctrl { display: flex; gap: 4px; margin-top: 4px; }
.amp-ctrl button {
  flex: 1; min-height: 40px; background: var(--pink-l); border: 2px solid var(--ink); border-radius: 3px; cursor: pointer;
  display: grid; place-items: center;
}
.amp-ctrl button.play { flex: 1.4; background: var(--lemon); }
.amp-ctrl button:disabled { opacity: .5; cursor: default; }
.amp-ctrl svg { width: 16px; height: 16px; display: block; }
.amp .ico-pause { display: none; }
.amp.playing .ico-pause { display: block; }
.amp.playing .ico-play { display: none; }
.amp-list { list-style: none; margin: 4px 0 0; padding: 4px; background: var(--night); border: 2px solid var(--ink); }
.amp-list button {
  width: 100%; display: flex; gap: 6px; text-align: left; border: none; padding: 4px; min-height: 32px; cursor: pointer;
  color: var(--lime); background: transparent;
}
.amp-list button:hover { background: #3A2A48; }
.amp-list button[aria-current="true"] { color: #FFFFFF; background: var(--sky-d); }
.amp-list button:disabled { opacity: .55; cursor: default; }
.amp-list .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amp-empty { color: var(--lime); padding: 4px; }

/* ---------- рейтинг, ссылки ---------- */
.rank { margin: 0; padding: 10px; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rank a { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; min-height: 30px; }
.rank a:hover .rank-name { text-decoration: underline; }
.medal { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink); background: #FFFFFF; }
.rank li:nth-child(1) .medal { background: var(--gold); }
.rank li:nth-child(2) .medal { background: #E3E3EA; }
.rank li:nth-child(3) .medal { background: #FFC28A; }
.rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-score { color: var(--rose); }
.b88s { display: flex; flex-wrap: wrap; gap: 6px; }
.b88 {
  min-width: 88px; height: 31px; padding: 0 6px; border: 1px solid var(--ink); display: grid; place-items: center;
  text-decoration: none; overflow: hidden; white-space: nowrap; line-height: 1;
}
.b88.img { padding: 0; border: 0; }
.b88 img { width: 88px; height: 31px; image-rendering: pixelated; display: block; }
.b88.dashed { border-style: dashed; }
.b88.ours { background: var(--pink-m); color: #FFFFFF; text-shadow: 1px 1px 0 var(--rose); width: 88px; }

/* ---------- каталог ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.search { display: flex; gap: 8px; flex: 1 1 260px; }
.search input {
  flex: 1; min-width: 0; border: 2px solid var(--pink); border-radius: 6px; padding: 6px 10px; min-height: 44px; background: #FFFFFF; font-size: 16px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; height: 100%; }
.card:hover { border-color: var(--pink-m); transform: translateY(-2px); }
.card-img {
  display: grid; place-items: center; min-height: 160px; padding: 20px 10px 12px; border-bottom: 2px dashed var(--pink);
  background-color: var(--sky-l); background-image: radial-gradient(#FFFFFF 2px, transparent 2.5px); background-size: 14px 14px;
}
.card-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-name { color: var(--rose); }
.card-stats { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: auto; padding-top: 4px; }
.score-pill { background: var(--pink-m); color: #FFFFFF; padding: 0 6px; border-radius: 4px; }
.empty { text-align: center; padding: 30px 16px; }

/* ---------- подкаст ---------- */
.ep { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px; border-bottom: 2px dotted var(--pink); }
.ep:last-child { border-bottom: 0; }
.ep-cover {
  width: 96px; height: 96px; flex: none; border: 2px solid var(--sky); border-radius: 8px; object-fit: cover; image-rendering: pixelated;
  background: repeating-linear-gradient(45deg, var(--sky-l) 0 4px, #FFFFFF 4px 8px); display: grid; place-items: center; font-size: 24px; color: var(--sky-d);
}
.ep-body { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ep-title { font-size: 24px; color: var(--rose); line-height: 1.2; }

/* ---------- о нас: карточки персонажей ---------- */
.chara { display: flex; flex-wrap: wrap; }
.chara-art {
  flex: 0 1 220px; min-width: 180px; min-height: 260px; position: relative; display: grid; place-items: center; overflow: hidden;
  background-color: var(--tint-light, var(--pink-l)); background-image: radial-gradient(#FFFFFF 2px, transparent 2.5px); background-size: 14px 14px;
  border-right: 2px solid var(--tint, var(--pink));
}
.chara-art .big-ava {
  width: 150px; height: 150px; border-radius: 50%; border: 3px solid var(--tint, var(--pink)); background: #FFFFFF;
  display: grid; place-items: center; font-size: 48px; color: var(--tint-text, var(--rose)); overflow: hidden;
}
.chara-art .big-ava img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.chara-art .vert { position: absolute; right: 8px; top: 10px; writing-mode: vertical-rl; font-size: 24px; letter-spacing: 4px; color: var(--tint-text, var(--rose)); text-shadow: 2px 2px 0 #FFFFFF; }
.chara-info { flex: 1 1 260px; min-width: 0; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.chara-name { font-size: 32px; line-height: 1.1; color: var(--tint-text, var(--rose)); }

/* ---------- подвал ---------- */
.footer { position: relative; margin-top: 4px; padding: 18px 12px 12px; text-align: center; background: var(--pink-l); border-radius: 0 0 8px 8px; }
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background-image: radial-gradient(circle at 10px 0, #FFFFFF 9px, transparent 9.5px); background-size: 20px 10px;
}
.footer .top-link { display: inline-block; margin-top: 6px; }
.crumbs a { color: var(--sky-d); }

/* =================== МОБИЛЬНАЯ ВЕРСИЯ =================== */
@media (max-width: 860px) {
  /* сначала главное: отзыв и гостевая → плеер/рейтинг → профиль/календарь */
  .col-main { order: 1; }
  .col-right { order: 2; }
  .col-left { order: 3; }
  .col-left, .col-right { flex-basis: 100%; }
}

@media (max-width: 700px) {
  .site { padding: 10px 8px 28px; }
  .tabs { padding: 0 8px; gap: 6px; }
  .tab-main { font-size: 24px; padding: 8px 14px 6px; border-radius: 14px 28px 0 0; }
  .tab-main svg { width: 20px; height: 20px; }
  .tab-icon { width: 48px; height: 40px; }
  .frame { padding: 8px; gap: 10px; border-radius: 10px; }
  .banner { padding: 14px; min-height: 0; }
  .polaroids { display: none; }
  .site-title { font-size: 48px; }
  .banner.compact .site-title { font-size: 32px; }
  .site-sub { font-size: 16px; }
  .mascot svg, .mascot img { width: 96px; height: 140px; }
  .banner:not(.compact) .mascot { position: absolute; right: 8px; bottom: 8px; opacity: .95; }
  .banner:not(.compact) .bubble { display: none; }
  .banner:not(.compact) .site-sub, .banner:not(.compact) .tagline, .banner:not(.compact) .welcome-badge { margin-right: 96px; }
  .nav { padding: 6px; gap: 4px; }
  .pill { padding: 4px 10px; }
  .art { flex-basis: 100%; order: -1; min-height: 260px; border-left: none; border-bottom: 2px solid var(--sky); }
  .art .can.big { --w: 84px; --h: 168px; }
  .art-photo { max-height: 220px; }
  .post-b { padding-left: 12px; }
  .bbs-posts { padding: 10px; }
  .bbs-form { margin: 0 8px 10px; }
  .bbs-form-foot .btn { width: 100%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-img { min-height: 130px; }
  .chara-art { flex-basis: 100%; border-right: none; border-bottom: 2px solid var(--tint, var(--pink)); min-height: 220px; }
  .memo { transform: none; }
}

@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
  .site-title { font-size: 32px; }
  .banner:not(.compact) .site-sub, .banner:not(.compact) .tagline, .banner:not(.compact) .welcome-badge { margin-right: 70px; }
  .mascot svg, .mascot img { width: 70px; height: 102px; }
}
