/* DOA2 PS2 — かすみ技表 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

:root {
  --navy:   #0a0a2e;
  --blue:   #1a1a6e;
  --accent: #4a9eff;
  --gold:   #c8a84b;
  --red:    #e03030;
  --hi:     #88aaff;
  --mid:    #ffcc44;
  --lo:     #ff6655;
  --text:   #e8e8f8;
  --dim:    rgba(255,255,255,0.45);
  --border: rgba(74,158,255,0.25);
  --row-even: rgba(255,255,255,0.03);
  --row-chain: rgba(74,158,255,0.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ─── Background Kasumi image (user-supplied) ─── */
#bg-kasumi {
  position: fixed;
  top: 0; right: 0;
  width: 40vw;
  height: 100vh;
  background: url('kasumi.webp') center top / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to left, transparent 0%, black 40%);
  mask-image: linear-gradient(to left, transparent 0%, black 40%);
}

/* ─── Page layout ─── */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ─── Header ─── */
.site-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.char-title {
  display: block;
  margin: 0 auto 12px;
  image-rendering: pixelated;
  filter: brightness(1.3) drop-shadow(0 0 8px rgba(74,158,255,0.5));
}
.subtitle {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ─── Sections ─── */
section {
  margin-bottom: 44px;
}

.section-head {
  margin-bottom: 12px;
}
.section-head img {
  display: block;
  image-rendering: pixelated;
  filter: brightness(1.2) drop-shadow(0 0 6px rgba(74,158,255,0.4));
}
.section-head.text-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 0 6px 12px;
  border-left: 3px solid var(--accent);
  margin-bottom: 12px;
}

/* ─── Table wrapper ─── */
.table-wrap {
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead tr {
  background: #0000cc;
}
thead th {
  padding: 8px 10px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
}
thead th:first-child { text-align: left; }

tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--row-even); }
tbody tr.chain-start,
tbody tr.chain-mid,
tbody tr.chain-end { background: var(--row-chain); }
tbody tr.spacer td { padding: 4px 0; background: transparent; border: none; }

td {
  padding: 6px 10px;
  vertical-align: middle;
  white-space: nowrap;
}
td:first-child {
  font-weight: 700;
  min-width: 140px;
  white-space: normal;
}
td:not(:first-child) { text-align: center; }

/* ─── Icons ─── */
img.icon {
  display: inline-block;
  vertical-align: middle;
  image-rendering: pixelated;
  width: 20px;
  height: 20px;
  margin: 0 1px;
}

/* ─── Attribute badges ─── */
.attr {
  font-size: 11px;
  font-weight: 700;
  color: var(--dim);
}
.attr.hi { color: var(--hi); }
.attr.mi { color: var(--mid); }
.attr.lo { color: var(--lo); }

/* ─── Damage column ─── */
td.dm {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--gold);
  text-align: right;
  padding-right: 16px;
}

/* ─── Notes ─── */
.note {
  font-size: 10px;
  color: var(--dim);
  font-weight: 400;
}

/* ─── Footer ─── */
footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 11px;
  color: var(--dim);
}
footer a {
  color: var(--accent);
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ─── Lang toggle ─── */
.lang-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 6px;
  z-index: 100;
}
.lang-btn {
  background: rgba(10,10,46,0.85);
  border: 1px solid var(--border);
  color: var(--dim);
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.lang-btn.active,
.lang-btn:hover {
  background: rgba(74,158,255,0.2);
  border-color: var(--accent);
  color: #fff;
}

/* ─── EN section label (below image headers) ─── */
.section-en-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 5px;
}

/* ─── Back link ─── */
.back-link {
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 11px;
  color: var(--dim);
  text-decoration: none;
  z-index: 100;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }
