/* DOA5 Last Round — Kasumi character archive */
/* Dark fighter aesthetic: near-black, crimson accents, white text */

*, ::after, ::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:          #0d0d12;
  --bg-panel:    rgba(15, 15, 22, 0.92);
  --border:      rgba(160, 20, 30, 0.45);
  --border-bright: rgba(200, 30, 40, 0.8);
  --red:         #c0171f;
  --red-hot:     #e82030;
  --red-dim:     rgba(192, 23, 31, 0.6);
  --white:       #f0eff0;
  --white-dim:   rgba(240, 239, 240, 0.6);
  --radius:      6px;
}

html { font-size: 16px; }

body {
  font-family: 'Rajdhani', 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Subtle noise/grain overlay */
.bg-fixed {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg);
  /* diagonal dark vignette */
  background-image:
    radial-gradient(ellipse at 60% 40%, rgba(120, 5, 10, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(80, 0, 5, 0.12) 0%, transparent 50%);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 40px 80px;
  display: flex;
  gap: 0;
  align-items: flex-start;
}

/* Lang toggle */
.lang-toggle {
  display: flex;
  gap: 0;
  padding: 12px 22px 0;
  justify-content: flex-end;
}

.lang-btn {
  padding: 4px 12px;
  border: 1px solid var(--border-bright);
  background: transparent;
  color: var(--white-dim);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: 0.15s;
}

.lang-btn:first-child { border-radius: 3px 0 0 3px; }
.lang-btn:last-child  { border-radius: 0 3px 3px 0; border-left: none; }

.lang-btn.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red-hot);
}

.lang-btn:not(.active):hover {
  background: rgba(192, 23, 31, 0.2);
  color: var(--white);
}


.info-panel {
  width: 360px;
  flex-shrink: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    0 8px 40px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  z-index: 20;
  overflow: hidden;
}

/* Red top accent bar */
.info-panel::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-hot), transparent);
}

.info-header {
  padding: 20px 22px 12px;
}

.info-header .name-img {
  max-width: 160px;
  height: auto;
  display: block;
}

.info-header .name-img[hidden] {
  display: none;
}

.info-header .name-img.en {
  /* red-on-white logo: screen mode knocks out the white bg */
  mix-blend-mode: screen;
  max-width: 200px;
}

.chara-title {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red-hot);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Noto Sans JP', sans-serif;
}

.info-divider {
  width: 100%;
  height: auto;
  display: block;
  /* tint the divider red */
  filter: sepia(1) saturate(4) hue-rotate(-10deg) brightness(0.7);
  opacity: 0.5;
}

/* Bio */
.info-bio {
  padding: 14px 22px 10px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--white-dim);
}

.info-bio .cv-line {
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.info-bio .label {
  color: var(--red-hot);
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.05em;
  margin-right: 8px;
}

/* Fighting style */
.info-style,
.info-story {
  padding: 12px 22px 10px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--white-dim);
}

.section-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-hot);
  margin-bottom: 6px;
}

/* Stats table */
.info-stats {
  padding: 12px 22px 8px;
}

.stat-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(160, 20, 30, 0.15);
  font-size: 0.85rem;
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-label {
  color: var(--red-hot);
  font-weight: 700;
  letter-spacing: 0.04em;
  min-width: 110px;
  flex-shrink: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.78rem;
}

.stat-value {
  color: var(--white);
  font-weight: 600;
  font-family: 'Noto Sans JP', sans-serif;
}

/* Footer */
.info-footer {
  padding: 14px 22px 16px;
  text-align: center;
}

.info-footer .credit {
  font-size: 0.65rem;
  color: rgba(240, 239, 240, 0.25);
  line-height: 1.7;
}

.info-footer .credit a {
  color: var(--red-dim);
  text-decoration: none;
}

.info-footer .credit a:hover {
  color: var(--red-hot);
}

/* ─── Hero render ─── */
.hero-render {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 700px;
  pointer-events: none;
}

.hero-render img {
  position: absolute;
  top: -30px;
  right: 125px;
  width: 450px;
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 0 40px rgba(180, 10, 20, 0.2));
  -webkit-mask-image:
    linear-gradient(to bottom, black 45%, transparent 85%),
    linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
  mask-image:
    linear-gradient(to bottom, black 45%, transparent 85%),
    linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
  -webkit-mask-composite: intersect;
  mask-composite: intersect;
}

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .page {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  .hero-render {
    order: -1;
    min-height: auto;
    width: 100%;
    overflow: hidden;
    height: 60vw;
  }

  .hero-render img {
    position: relative;
    top: -10px;
    right: 0;
    width: 110%;
    max-width: none;
  }

  .info-panel {
    width: 92%;
    margin: 0 auto 40px;
  }
}
.back-link {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 9999;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    font-family: Arial, sans-serif;
    text-shadow: 0 1px 4px #000, 0 0 8px #000;
    transition: opacity 0.2s;
    opacity: 0.55;
}
.back-link:hover { opacity: 1; }
