/* ════════════════════════════════════════════
   CHARACTER PROFILE — style.css
   Загрузи этот файл на Neocities вместе с index.html и script.js
   ════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Comfortaa', sans-serif;
  background-color: #f5f0eb;
  color: #4a3c3c;
  min-height: 100vh;
  padding: 2.5rem 1rem;
}

h1, h2, h3, .serif { font-family: 'Comfortaa', serif; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f5f0eb; }
::-webkit-scrollbar-thumb { background: #c9afa9; border-radius: 3px; }

/* ── LAYOUT ── */
.wrapper { max-width: 780px; margin: 0 auto; }

/* ── CARD ── */
.card {
  background-color: #fff8f5;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 6px rgba(100,60,60,0.07);
  margin-bottom: 1.5rem;
}

/* ── HEADER CARD ── */
.header-card {
  background-color: #fff8f5;
  border-radius: 1.5rem;
  box-shadow: 0 2px 12px rgba(100,60,60,0.1);
  margin-bottom: 1.5rem;
  overflow: visible;
}

/* ── BANNER ── */
.banner {
  height: 140px;
  background: linear-gradient(135deg, #dbc9c3 0%, #c5b0a8 40%, #a89090 100%);
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 0 0;
}

.banner-dots {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 20px 20px;
}

.palette-row {
  position: absolute;
  bottom: 14px;
  right: 18px;
  display: flex;
  gap: 6px;
}

.palette-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* ── HEADER BODY ── */
.header-body { padding: 0 1.75rem 1.5rem; }

/* ── AVATAR ── */
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 1rem;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(100,60,60,0.12);
  margin-top: -48px;
  margin-bottom: 0.75rem;
  background-color: #dbc9c3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── NAME ROW ── */
.name-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.char-name {
  font-family: 'Comfortaa', serif;
  font-size: 2rem;
  font-weight: 900;
  color: #4a3232;
  line-height: 1.2;
}

.char-title {
  font-size: 0.85rem;
  font-weight: 600;
  font-style: italic;
  color: #a07878;
  margin-top: 2px;
}

/* ── SOCIAL LINKS ── */
.social-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-family: 'Comfortaa', sans-serif;
}

.social-link:hover { filter: brightness(1.08); transform: translateY(-1px); }

.social-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.social-link.youtube {
  background: rgba(255, 80, 80, 0.12);
  color: #c0504a;
  border-color: rgba(255, 80, 80, 0.28);
}

.social-link.telegram {
  background: rgba(50, 140, 210, 0.12);
  color: #3a7fbf;
  border-color: rgba(50, 140, 210, 0.28);
}

.social-link.boosty {
  background: rgba(255, 100, 30, 0.12);
  color: #d4601a;
  border-color: rgba(255, 100, 30, 0.28);
}

.social-link.toyhouse {
  background: rgba(120, 160, 130, 0.12);
  color: #5a8f6a;
  border-color: rgba(120, 160, 130, 0.28);
}

svg.sl.youtube {fill: #c0504a;}
svg.sl.telegram {fill: #3a7fbf;}
svg.sl.boosty{fill:#d4601a;}


/* ── SHORT DESC ── */
.short-desc {
  font-size: 95%;
  font-weight: 600;
  line-height: 1.8;
  color: #6e5555;
  border-left: 2px solid #c9a89e;
  padding-left: 1rem;
}

/* ── SECTION TITLE ── */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-title::before,
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #c9afa9, transparent);
}

.section-title span {
  font-family: 'Comfortaa', serif;
  font-size: 1rem;
  font-weight: 900;
  color: #7a5f5f;
  white-space: nowrap;
}

/* ── TABS ── */
.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.tab-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #d9ccc8;
  background-color: #ede4df;
  color: #9c7e7e;
  font-family: 'Comfortaa', sans-serif;
  transition: all 0.2s ease;
}

.tab-btn:hover { background-color: #ddd0cc; }

.tab-btn.active {
  background-color: #c9afa9;
  color: #fff;
  border-color: #c9afa9;
}

/* ── TAB PANELS ── */
.tab-panel {display: none;transition: opacity 0.75s ease-in-out 0.375s,min-height 0.375s ease-in-out, max-height 0.375s ease-in-out;}
.tab-panel.active {display: block;transition: opacity 0.75s ease-in-out 0.375s,min-height 0.375s ease-in-out, max-height 0.375s ease-in-out;}

/* ── 2-COL GRID ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.col-stack { display: flex; flex-direction: column; gap: 1.5rem; }

/* На мобильных — всё в одну колонку */
@media (max-width: 560px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ── INFO ROWS ── */
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #e8dcd8;
}

.info-row.no-border { border-bottom: none; }

.info-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: #b09090;
  width: 110px;
  flex-shrink: 0;
  padding-top: 2px;
}

.info-value {
  font-size: 95%;
  font-weight: 600;
  color: #4a3c3c;
}

/* ── STAT BARS ── */
.stat-item { margin-bottom: 0.85rem; }
.stat-item:last-child { margin-bottom: 0; }

.stat-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: #9c7e7e;
}

.stat-val {
  font-size: 0.7rem;
  font-weight: 600;
  color: #b09090;
}

.stat-track {
  height: 6px;
  border-radius: 999px;
  background-color: #ead9d5;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(to right, #c9a89e, #a07878);
}

/* ── TRAIT CHIPS ── */
.traits-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }

.trait-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  background-color: #f0e6e2;
  color: #7a5f5f;
  border: 1px solid #ddd0cc;
}

/* ── LIKES / DISLIKES ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

@media (max-width: 400px) { .two-col { grid-template-columns: 1fr; } }

.list-heading {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: #9c7e7e;
  margin-bottom: 0.75rem;
}

.custom-list { list-style: none; }

.custom-list li {
  font-size: 0.85rem;
  font-weight: 600;
  color: #5c4848;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.custom-list li::before { content: '✦'; color: #b09090; flex-shrink: 0; }

/* ── QUOTES ── */
.quote-block {
  font-family: 'Comfortaa', serif;
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 900;
  line-height: 1.8;
  color: #6e5555;
  border-left: 2px solid #c9a89e;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.quote-block:last-child { margin-bottom: 0; }

/* ── BACKSTORY ── */
.backstory-p {
  font-size: 95%;
  font-weight: 600;
  line-height: 1.9;
  color: #5c4848;
  margin-bottom: 1rem;
}

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  border-radius: 1rem;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #8a7070;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(100,60,60,0.12); }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.gallery-label {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.55);
  padding: 2px 8px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.gallery-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
  position: relative;
}

/* ── HOUSE RULES ── */
.rules-intro {
  font-size: 95%;
  font-weight: 600;
  line-height: 1.8;
  color: #6e5555;
  margin-bottom: 1.5rem;
  padding: 0.875rem 1.1rem;
  background: #f5ece8;
  border-radius: 0.75rem;
  border-left: 3px solid #c9a89e;
}

.rule-block { margin-bottom: 1.5rem; }
.rule-block:last-child { margin-bottom: 0; }

.rule-title {
  font-family: 'Comfortaa', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: #7a5f5f;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rule-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #c9afa9, transparent);
}

.rule-list { list-style: none; }

.rule-list li {
  font-size: 0.85rem;
  font-weight: 600;
  color: #5c4848;
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: #fdf7f4;
  align-items: flex-start;
}

.rule-icon {
  flex-shrink: 0;
  font-weight: 900;
  font-size: 0.9rem;
  line-height: 1.6;
}

.rule-ok  .rule-icon { color: #8aaa7a; }
.rule-no  .rule-icon { color: #c07878; }
.rule-ask .rule-icon { color: #a08878; }

/* ── CREDITS ── */
.credit-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 1rem;
  background: #f5ece8;
  border: 1px solid #e8dcd8;
  margin-bottom: 0.75rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  color: inherit;
}

.credit-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(100,60,60,0.1); }

.credit-thumb {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  background: #e2d0cb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  overflow: hidden;
}

.credit-thumb img { width: 100%; height: 100%; object-fit: cover; }

.credit-role {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: #b09090;
  margin-bottom: 2px;
}

.credit-name {
  font-size: 95%;
  font-weight: 600;
  color: #5c3c3c;
}

.credit-note {
  font-size: 0.75rem;
  font-weight: 600;
  color: #8a7070;
  margin-top: 1px;
}

.credit-arrow {
  margin-left: auto;
  color: #c9a89e;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.credits-note {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.7;
  color: #9c7e7e;
  text-align: center;
  margin-top: 1rem;
}

/* ── FOOTER ── */
.footer {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #c9a89e;
  margin-top: 2rem;
  padding-bottom: 1rem;
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30,15,15,0.75);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 1rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.8;
}

.lightbox-close:hover { opacity: 1; }
