/* Lookism rate — «глянец и неон»: розовый, фиолетовый, циан на ночном фоне.
   Макеты — холст Claude Design, страница «Lookism rate». */

.rate {
  --rt-bg: #0C0620;
  --rt-pink: #FF2EA6;
  --rt-violet: #7B2FF7;
  --rt-cyan: #16D9E3;
  --rt-card: rgba(255, 255, 255, 0.06);
  --rt-line: rgba(255, 255, 255, 0.12);
  --rt-dim: #B9A8D9;
  --rt-display: "Dela Gothic One", var(--font-display, sans-serif);
  position: fixed; inset: 0; z-index: 46;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  background:
    radial-gradient(80% 40% at 90% 0%, rgba(255, 46, 166, 0.40), transparent 70%),
    radial-gradient(70% 35% at 0% 40%, rgba(22, 217, 227, 0.22), transparent 70%),
    var(--rt-bg);
  background-attachment: fixed;
  color: #FFFFFF; font-family: var(--font-body, Manrope, sans-serif);
  padding: 0 var(--safe-right, 0px) calc(28px + var(--safe-bottom, 0px)) var(--safe-left, 0px);
}
.rate button { font-family: inherit; color: inherit; }
.rt-head {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  min-height: 60px; padding: var(--safe-top, 0px) 14px 0;
  background: rgba(12, 6, 32, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.rt-icon { width: 40px; height: 40px; display: grid; place-items: center; }
.rt-title {
  font-family: var(--rt-display); font-size: 20px; font-style: italic; color: #FFE3F6;
  text-shadow: 0 0 10px var(--rt-pink), 0 0 22px rgba(255, 46, 166, 0.6);
}
.rt-sub { flex: 1; text-align: right; font-size: 12px; color: var(--rt-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-pad { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.rt-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--rt-dim); }
.rt-center { text-align: center; }
.rt-dim { font-size: 12px; color: var(--rt-dim); }
.rt-cyan { font-size: 12px; color: var(--rt-cyan); }
.rt-label { font-size: 11px; letter-spacing: 0.16em; color: var(--rt-dim); }
.rt-box {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px; border-radius: 16px; background: var(--rt-card); border: 1px solid var(--rt-line);
}
.rt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rt-btn {
  min-height: 50px; border-radius: 14px; font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, var(--rt-pink), var(--rt-violet));
  box-shadow: 0 8px 24px rgba(255, 46, 166, 0.35);
}
.rt-btn-ghost { background: var(--rt-card); border: 1px solid var(--rt-line); box-shadow: none; }
.rt-btn:active { transform: scale(0.97); }
.rt-btn:disabled { opacity: 0.45 !important; }
.rt-mini {
  min-height: 34px; min-width: 44px; padding: 0 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; background: var(--rt-card); border: 1px solid var(--rt-line);
}
.rt-mini.is-hot { background: var(--rt-pink); border-color: var(--rt-pink); box-shadow: 0 0 12px rgba(255, 46, 166, 0.5); }
.rt-mini:disabled { opacity: 0.55 !important; }
.rt-pill {
  padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  background: var(--rt-card); border: 1px solid var(--rt-line); color: var(--rt-dim);
}
.rt-pill.is-on { background: var(--rt-pink); border-color: var(--rt-pink); color: #FFFFFF; }
.rt-tabs, .rt-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.rt-link-red { align-self: center; font-size: 12px; color: #FF8A9A; padding: 6px; }

/* Аватарка с неоновым кольцом. */
.rt-ava {
  width: var(--s); height: var(--s); flex: 0 0 auto; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: #26163F;
  border: 2px solid var(--ring); box-shadow: 0 0 12px var(--ring);
}
.rt-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rt-ava b { font-weight: 800; font-size: calc(var(--s) * 0.42); color: #FFE3F6; }
.rt-ava.is-canon img { filter: saturate(0.8); }
.rt-ava.is-mogged { position: relative; }
.rt-ava.is-mogged::after {
  content: "✓"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(12, 6, 32, 0.55); color: var(--rt-cyan); font-weight: 800;
}

/* Тир-лист. */
.rt-tierlist { padding: 0 12px; gap: 0; }
.rt-tier-row { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 6px 0; border-bottom: 1px solid var(--rt-line); }
.rt-tier-row:last-child { border-bottom: 0; }
.rt-tier-name { width: 98px; flex: 0 0 auto; display: flex; flex-direction: column; }
.rt-tier-name b { font-family: var(--rt-display); font-size: 13px; color: var(--c); text-shadow: 0 0 8px color-mix(in srgb, var(--c) 45%, transparent); }
.rt-tier-name i { font-style: normal; font-size: 10px; color: var(--rt-dim); }
.rt-tier-people { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.rt-person { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 52px; padding: 0; }
.rt-person span { font-size: 9px; color: var(--rt-dim); max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-person.is-me span { color: #FFD84D; }
.rt-more { align-self: center; font-size: 11px; color: var(--rt-dim); }

/* Полоса заявок и подбора. */
#rt-banner:empty { display: none; }
.rt-banner {
  display: flex; align-items: center; gap: 10px; margin: 0 16px 4px; padding: 10px 12px;
  border-radius: 14px; background: rgba(123, 47, 247, 0.28); border: 1px solid rgba(123, 47, 247, 0.6);
  font-size: 13px;
}
.rt-banner > span:not(.rt-ava):not(.rt-spin) { flex: 1; min-width: 0; }
.rt-banner.is-in { background: rgba(255, 46, 166, 0.22); border-color: var(--rt-pink); animation: rt-pulse 1.4s ease-in-out infinite; }
@keyframes rt-pulse { 50% { box-shadow: 0 0 18px rgba(255, 46, 166, 0.55); } }
.rt-spin {
  width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: var(--rt-cyan);
  animation: rt-spin 0.8s linear infinite;
}
@keyframes rt-spin { to { transform: rotate(360deg); } }

/* Карточка. */
.rt-hero {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 46, 166, 0.35), rgba(123, 47, 247, 0.35) 60%, rgba(22, 217, 227, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.rt-hero-flat { background: var(--rt-card); border-color: var(--rt-line); }
.rt-chip {
  position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--c); color: #0C0620; font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
}
.rt-scan { position: relative; display: block; }
.rt-scan::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(22, 217, 227, 0.22) 0 1px, transparent 1px 8px);
}
.rt-scan.is-scanning::before {
  content: ""; position: absolute; left: -8px; right: -8px; height: 3px; z-index: 2;
  background: var(--rt-cyan); box-shadow: 0 0 14px var(--rt-cyan);
  animation: rt-scanline 0.9s ease-in-out infinite alternate;
}
@keyframes rt-scanline { from { top: 0; } to { top: calc(100% - 3px); } }
.rt-nick { font-size: 18px; }
.rt-psl {
  font-family: var(--rt-display); font-size: 44px; line-height: 1; color: #FFE3F6;
  text-shadow: 0 0 14px var(--rt-pink);
}
.rt-bar-row { display: grid; grid-template-columns: 104px 1fr 44px; align-items: center; gap: 8px; font-size: 12px; }
.rt-bar-row > span:first-child { color: var(--rt-dim); }
.rt-bar-row b { text-align: right; }
.rt-bar-row.is-hidden b { color: var(--rt-dim); font-weight: 600; font-size: 11px; }
.rt-bar { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.rt-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--rt-violet), var(--rt-pink)); transition: width 0.6s; }
.rt-switch { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--rt-dim); }
.rt-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rt-switch span {
  position: relative; flex: 0 0 40px; height: 24px; border-radius: 12px; background: rgba(255, 255, 255, 0.14);
  transition: background 0.15s;
}
.rt-switch span::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #FFFFFF; transition: left 0.15s;
}
.rt-switch input:checked + span { background: linear-gradient(135deg, var(--rt-pink), var(--rt-violet)); }
.rt-switch input:checked + span::after { left: 19px; }

/* Луксмаксинг. */
.rt-group { font-family: var(--rt-display); font-size: 14px; color: #FFE3F6; }
.rt-method { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--rt-line); }
.rt-method.is-off .rt-method-body { opacity: 0.6; }
.rt-method-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rt-method-body b { font-size: 14px; }
.rt-streak { font-style: normal; font-size: 11px; color: #FFB86B; }
.rt-levels { display: flex; gap: 3px; }
.rt-levels i { width: 14px; height: 5px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.rt-levels i.on { background: var(--rt-pink); box-shadow: 0 0 6px rgba(255, 46, 166, 0.6); }

/* Подготовка. */
.rt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rt-prep {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 12px; border-radius: 14px; background: var(--rt-card); border: 1px solid var(--rt-line);
}
.rt-prep b { font-size: 14px; }
.rt-prep.is-on {
  background: linear-gradient(160deg, rgba(255, 46, 166, 0.35), rgba(123, 47, 247, 0.35));
  border-color: var(--rt-pink);
}
.rt-prep:disabled:not(.is-on) { opacity: 0.5 !important; }
.rt-prep.is-on:disabled { opacity: 1 !important; }
.rt-emoji { font-size: 22px; }

/* Моггинг. */
.rt-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.rt-vs-mark { font-family: var(--rt-display); font-size: 22px; text-shadow: 0 0 12px var(--rt-pink); }
.rt-fighter { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.rt-ava-wrap { position: relative; display: block; }
.rt-fighter.is-lost .rt-ava { filter: grayscale(0.7) brightness(0.8); }
.rt-stamp {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; rotate: -14deg;
  padding: 2px 8px; border: 3px solid #FF3B5C; border-radius: 4px;
  font-family: var(--rt-display); font-size: 17px; letter-spacing: 0.04em; color: #FF3B5C;
  background: rgba(12, 6, 32, 0.55); white-space: nowrap;
  text-shadow: 0 0 8px rgba(255, 59, 92, 0.8); box-shadow: 0 0 12px rgba(255, 59, 92, 0.5);
  animation: rt-stamp 0.35s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
@keyframes rt-stamp { from { scale: 2.2; opacity: 0; } to { scale: 1; opacity: 1; } }
.rt-vs-row { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; font-size: 13px; opacity: 0.35; transition: opacity 0.25s; }
.rt-vs-row.is-shown { opacity: 1; }
.rt-vs-row span { text-align: center; color: var(--rt-dim); font-size: 12px; }
.rt-vs-row b { color: var(--rt-dim); }
.rt-vs-row b:last-child { text-align: right; }
.rt-vs-row b.is-a { color: var(--rt-pink); }
.rt-vs-row b.is-b { color: var(--rt-cyan); }
.rt-vs-total { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid var(--rt-line); padding-top: 10px; }
.rt-vs-total span { font-size: 11px; letter-spacing: 0.2em; color: var(--rt-dim); }
.rt-vs-total b { font-family: var(--rt-display); font-size: 26px; }
.rt-vs-total b.is-a { color: var(--rt-pink); }
.rt-vs-total b.is-b { color: var(--rt-cyan); text-align: right; }
.rt-verdict {
  text-align: center; font-family: var(--rt-display); font-size: 20px; font-style: italic;
  color: #FFE3F6; text-shadow: 0 0 14px var(--rt-cyan);
}
.rt-log span { font-size: 12px; line-height: 1.55; color: #EDE3FF; }

/* Народная оценка. */
.rt-scores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rt-score {
  min-height: 48px; border-radius: 12px; font-weight: 800; font-size: 17px;
  background: var(--rt-card); border: 1px solid var(--rt-line);
}
.rt-score:active { background: linear-gradient(135deg, var(--rt-pink), var(--rt-violet)); }

/* Всплывающее сообщение внутри модуля. */
.toast.toast-rt {
  top: calc(var(--safe-top, 0px) + 70px); bottom: auto; clip-path: none;
  border-radius: 14px; background: rgba(38, 16, 70, 0.95); border: 1px solid var(--rt-pink, #FF2EA6);
  color: #FFFFFF; box-shadow: 0 8px 24px rgba(255, 46, 166, 0.35);
}
.toast.toast-rt.bad { border-color: #FF3B5C; }

/* Панель владельца: тир-лист руками. */
.rt-input {
  width: 100%; min-width: 0; box-sizing: border-box; padding: 9px 10px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--rt-line); color: #FFFFFF;
  font: 600 16px var(--font-body, Manrope, sans-serif); outline: none;
}
.rt-input:focus { border-color: var(--rt-pink); }
.rt-tier-edit {
  display: grid; grid-template-columns: 34px 1fr 1fr 36px; gap: 6px; align-items: center;
  padding: 8px 0; border-top: 1px solid var(--rt-line);
}
.rt-tier-edit .rt-tname { grid-column: 2 / 4; }
.rt-tfield { grid-column: span 2; display: flex; align-items: center; gap: 6px; }
.rt-tfield:first-of-type { grid-column: 1 / 3; }
.rt-tfield span { flex: 0 0 auto; font-size: 11px; color: var(--rt-dim); }
.rt-tier-edit .rt-mini { min-width: 34px; padding: 0; }
.rt-color { width: 34px; height: 34px; padding: 0; border: 1px solid var(--rt-line); border-radius: 8px; background: none; }
.rt-heroes { display: flex; flex-direction: column; }
.rt-hero-row { display: grid; grid-template-columns: 36px 1fr 118px 44px; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rt-line); }
.rt-hero-row.is-hidden { opacity: 0.55; }
.rt-hero-name { min-width: 0; display: flex; flex-direction: column; }
.rt-hero-name b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-select {
  min-width: 0; padding: 8px 6px; border-radius: 10px; background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--rt-line); color: #FFFFFF; font: 600 13px var(--font-body, Manrope, sans-serif);
}
