:root {
  --bg-0: #070f17;
  --bg-1: #0c1a28;
  --bg-2: #0f2536;
  --panel: rgba(14, 38, 58, 0.85);
  --panel-solid: #0e263a;
  --ink: #dff2ff;
  --ink-dim: #7fa3c0;
  --ink-mute: #4e7895;
  --accent: #34e2ff;
  --accent-glow: rgba(52, 226, 255, 0.55);
  --accent-dim: rgba(52, 226, 255, 0.25);
  --border: rgba(52, 226, 255, 0.35);
  --border-strong: rgba(52, 226, 255, 0.65);

  --orange: #ffb147;
  --orange-glow: rgba(255, 177, 71, 0.55);
  --red: #ff4d56;
  --green: #7fe07d;
  --purple: #c69bff;

  --phys: #e78253;
  --phys-bg: rgba(231, 130, 83, 0.18);
  --ment: #34e2ff;
  --ment-bg: rgba(52, 226, 255, 0.18);
  --surv: #a77bd8;
  --surv-bg: rgba(167, 123, 216, 0.18);
  --sci:  #4ec389;
  --sci-bg: rgba(78, 195, 137, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse at top, #113048 0%, #070f17 55%, #030810 100%) fixed,
    var(--bg-0);
  color: var(--ink);
  font-family: 'Rajdhani', 'Oxanium', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(52, 226, 255, 0.03) 0px,
      rgba(52, 226, 255, 0.03) 1px,
      transparent 1px,
      transparent 3px
    );
  z-index: 0;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: #a4f4ff; text-decoration: none; }

h1 {
  font-size: 38px;
  margin: 0 0 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 0 18px var(--accent-dim);
}
h2 {
  font-size: 22px;
  margin: 36px 0 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
h3 {
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 18px 0 8px;
}

.lede {
  color: var(--ink-dim);
  font-size: 17px;
}

code {
  background: rgba(52, 226, 255, 0.1);
  color: #a4f4ff;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 17px;
  font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

.source-note {
  color: var(--ink-mute);
  font-size: 17px;
  margin-top: 18px;
  font-style: italic;
}

/* ---------- header / footer ---------- */

.site-header {
  background: linear-gradient(180deg, rgba(12, 26, 40, 0.95) 0%, rgba(12, 26, 40, 0.65) 100%);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: relative;
  z-index: 2;
}
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--accent-dim);
}
.site-nav {
  display: flex;
  align-items: center;
}
.site-nav > a {
  margin-left: 28px;
  color: var(--ink-dim);
  font-size: 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-nav > a:hover { color: var(--accent); }
.nav-more {
  position: relative;
  margin-left: 28px;
}
.nav-more > summary {
  list-style: none;
  cursor: pointer;
  color: var(--ink-dim);
  font-size: 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary:hover { color: var(--accent); }
.nav-more[open] > summary { color: var(--accent); }
.nav-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--panel-solid);
  border: 1px solid var(--border);
  padding: 10px 0;
  min-width: 220px;
  z-index: 10;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}
.nav-more-menu a {
  display: block;
  padding: 8px 18px;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: none;
}
.nav-more-menu a:hover {
  background: rgba(52, 226, 255, 0.08);
  color: var(--accent);
}

main.wrap { padding-top: 36px; padding-bottom: 72px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  color: var(--ink-mute);
  font-size: 17px;
  text-align: center;
  letter-spacing: 0.06em;
}

/* ---------- breadcrumb ---------- */

.breadcrumb {
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 4px 0 16px 0;
  min-height: 18px;
}
.breadcrumb a { color: var(--ink-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--ink); }

.pc-title-row {
  display: grid;
  grid-template-columns: 1fr 200px 200px;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 10px;
}
.pc-title-row h1 { margin: 0; }
.pc-rotate-link-prev,
.pc-rotate-link-next {
  display: block;
  width: 100%;
}
.pc-rotate-link-prev { text-align: left; }
.pc-rotate-link-next { text-align: right; }

.pc-rotate {
  display: flex;
  gap: 10px;
  align-items: center;
}
.pc-rotate-link {
  font-family: 'Oxanium', 'Rajdhani', sans-serif;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a4f4ff;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(95, 214, 238, 0.45);
  background: rgba(8, 22, 36, 0.7);
  border-radius: 3px;
}
.pc-rotate-link:hover {
  color: #ffffff;
  background: rgba(40, 90, 120, 0.85);
  border-color: rgba(120, 220, 240, 0.85);
}

/* ---------- PC card grid (index + characters list) ---------- */

.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin: 20px 0 30px;
}
.pc-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 12px;
  text-align: center;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
  position: relative;
}
.pc-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 0 24px var(--accent-dim);
}
.pc-card-portrait {
  width: 100%;
  aspect-ratio: 1;
  background: radial-gradient(ellipse at center, #143347, #06101a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.pc-card-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pc-card-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.pc-card-class {
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 2px;
  text-shadow: 0 0 8px var(--orange-glow);
}

/* ---------- character detail sheet ---------- */

.pc-sheet {
  position: relative;
  width: 1192px;
  max-width: 100%;
  height: 660px;
  margin: 14px auto 0;
  font-family: 'Oxanium', 'Rajdhani', 'Segoe UI', sans-serif;
  color: #dff6ff;
  user-select: none;
}

/* ------ sidebar ------ */

.pc-sidebar {
  position: absolute;
  left: 0;
  top: 0;
  width: 260px;
  height: 660px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(50, 130, 170, 0.22) 0%, rgba(8, 24, 38, 0) 65%),
    url('/img/ui/Box_Sidebar_BG.png') center / cover no-repeat,
    #07182a;
  border: 1px solid rgba(95, 214, 238, 0.4);
  box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.55), inset 0 0 14px rgba(95, 214, 238, 0.18);
}

.sb-portrait {
  position: absolute;
  left: 52px;
  top: 24px;
  width: 162px;
  height: 162px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #1b4a6b 0%, #0a1c2b 75%);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.55);
}
.sb-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  display: block;
}

.sb-level {
  position: absolute;
  left: 196px;
  top: 40px;
  width: 46px;
  height: 56px;
  background: linear-gradient(180deg, #162b3d 0%, #0b1a28 100%);
  border: 2px solid #ffb347;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(255, 179, 71, 0.55);
}
.sb-level-num {
  color: #ffb347;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  font-family: 'Oxanium', sans-serif;
}
.sb-level-lbl {
  color: #ffb347;
  font-size: 17px;
  letter-spacing: 1px;
  margin-top: 1px;
}

.sb-nameplate {
  position: absolute;
  left: 24px;
  top: 200px;
  width: 212px;
  height: 36px;
  background: linear-gradient(180deg, #ff7a3c 0%, #d94f1a 100%);
  border: 2px solid #2a4156;
  border-top-color: #ffb480;
  box-shadow: 0 0 10px rgba(255, 122, 60, 0.45), inset 0 0 6px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
}
.sb-name {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.sb-class {
  position: absolute;
  left: 24px;
  top: 240px;
  width: 212px;
  text-align: center;
  color: #dff6ff;
  font-size: 17px;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(52, 226, 255, 0.4);
}

.sb-states {
  position: absolute;
  left: 22px;
  top: 290px;
  width: 216px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sb-states li {
  position: relative;
  height: 42px;
  margin-bottom: 8px;
  background: linear-gradient(180deg, rgba(20, 50, 70, 0.95) 0%, rgba(8, 24, 38, 0.95) 100%);
  border: 1px solid rgba(90, 160, 200, 0.55);
  border-radius: 3px;
  display: flex;
  align-items: center;
  padding: 0 12px 0 44px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.45);
}
.sb-states li img {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 3px rgba(255, 200, 80, 0.6));
}
.sb-states .sb-state-name {
  flex: 1;
  color: #dff6ff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.sb-states .sb-state-val {
  color: #ffb347;
  font-size: 22px;
  font-weight: 700;
  font-family: 'Oxanium', sans-serif;
  min-width: 24px;
  text-align: right;
}

.sb-inventory {
  position: absolute;
  left: 22px;
  top: 582px;
  width: 216px;
  height: 48px;
  background: linear-gradient(180deg, #11384d 0%, #061a28 100%);
  border: 2px solid rgba(80, 200, 220, 0.6);
  border-radius: 3px;
  color: #a4f4ff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(52, 226, 255, 0.25), inset 0 0 8px rgba(0, 0, 0, 0.5);
}

/* ------ content panel ------ */

.pc-content {
  position: absolute;
  left: 260px;
  top: 0;
  width: 932px;
  height: 660px;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(80, 220, 240, 0.18) 0%, rgba(8, 30, 46, 0) 60%),
    url('/img/ui/BigBox_BG_01_Blue.png') center / cover no-repeat,
    #07182a;
  border: 1px solid rgba(120, 50, 60, 0.6);
  border-left: none;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.55), inset 0 0 18px rgba(52, 226, 255, 0.18);
  overflow: hidden;
}
.pc-content::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 6px;
  background: linear-gradient(180deg, rgba(140, 230, 255, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}
.pc-content::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: linear-gradient(0deg, rgba(140, 230, 255, 0.45) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

/* tab bar */

.pc-tabs {
  position: absolute;
  left: 30px;
  right: 90px;
  top: 18px;
  height: 42px;
  display: flex;
  gap: 8px;
  align-items: stretch;
  z-index: 4;
}
.pc-tab {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: 'Oxanium', 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #7fb6cf;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(20, 50, 70, 0.7) 0%, rgba(8, 24, 38, 0.7) 100%);
  border: 1px solid rgba(80, 160, 200, 0.55);
  border-radius: 3px 3px 0 0;
  border-bottom: 2px solid rgba(80, 160, 200, 0.35);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.45);
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}
.pc-tab:hover {
  color: #c8f7ff;
  background: linear-gradient(180deg, rgba(40, 90, 120, 0.85) 0%, rgba(10, 32, 50, 0.85) 100%);
  border-color: rgba(120, 220, 240, 0.7);
}
.pc-tab.active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(60, 160, 195, 0.55) 0%, rgba(20, 80, 110, 0.7) 100%);
  border-color: #5fd6ee;
  border-bottom-color: #5fd6ee;
  box-shadow: 0 0 12px rgba(95, 214, 238, 0.45), inset 0 0 8px rgba(95, 214, 238, 0.25);
}

.pc-close {
  position: absolute;
  right: 22px;
  top: 18px;
  width: 46px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oxanium', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #ff7a82;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(70, 14, 22, 0.85) 0%, rgba(28, 6, 10, 0.85) 100%);
  border: 1px solid rgba(255, 90, 100, 0.7);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(255, 77, 86, 0.35), inset 0 0 6px rgba(0, 0, 0, 0.55);
  z-index: 5;
}
.pc-close:hover {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(180, 30, 40, 0.95) 0%, rgba(80, 12, 18, 0.95) 100%);
}

.pc-title-name {
  position: absolute;
  left: 50%;
  top: 82px;
  transform: translateX(-50%);
  font-family: 'Oxanium', 'Rajdhani', sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(95, 214, 238, 0.7), 0 2px 6px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  z-index: 3;
  white-space: nowrap;
}
.pc-title-job {
  position: absolute;
  left: 50%;
  top: 148px;
  transform: translateX(-50%);
  font-family: 'Oxanium', 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(95, 214, 238, 0.7), 0 2px 5px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  z-index: 3;
  white-space: nowrap;
}
.pc-title-day {
  position: absolute;
  left: 50%;
  top: 220px;
  transform: translateX(-50%);
  font-family: 'Oxanium', 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(95, 214, 238, 0.7), 0 2px 5px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  z-index: 3;
  white-space: nowrap;
}

/* main title banner under the tabs (SKILLS / TRAITS / BATTLE / ...) */

.pc-banner {
  position: absolute;
  left: 50%;
  top: 76px;
  transform: translateX(-50%);
  min-width: 360px;
  padding: 10px 60px 12px;
  text-align: center;
  font-family: 'Oxanium', 'Rajdhani', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 8px;
  color: #ffffff;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(20, 60, 88, 0.85) 0%, rgba(6, 22, 38, 0.85) 100%);
  border: 1px solid rgba(95, 214, 238, 0.55);
  border-top: 2px solid rgba(140, 230, 255, 0.85);
  box-shadow: 0 0 18px rgba(52, 226, 255, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.55);
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 20px 100%, 0 50%);
  text-shadow: 0 0 8px rgba(95, 214, 238, 0.5), 0 2px 4px rgba(0, 0, 0, 0.7);
  z-index: 3;
}

/* ------ shared skill row pill (used by skills cards and the sidebar's siblings) ------ */

.sk-card {
  position: absolute;
  width: 290px;
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, rgba(10, 30, 48, 0.78) 0%, rgba(4, 14, 24, 0.85) 100%);
  border: 1px solid rgba(95, 214, 238, 0.35);
  border-radius: 5px;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.55), inset 0 0 10px rgba(0, 0, 0, 0.4);
  z-index: 2;
}
.sk-card-physical   { left:  18px; top: 90px; }
.sk-card-mental     { right: 18px; top: 90px; }
.sk-card-survival   { left:  18px; top: 348px; }
.sk-card-scientific { right: 18px; top: 348px; }

.sk-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  margin-bottom: 10px;
  font-family: 'Oxanium', 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 3px;
}
.sk-card-physical   .sk-card-head { color: #ffb88a; background: linear-gradient(90deg, rgba(231, 130, 83, 0.35), rgba(231, 130, 83, 0.05)); border-left: 3px solid #e78253; }
.sk-card-mental     .sk-card-head { color: #b6f3ff; background: linear-gradient(90deg, rgba(95, 214, 238, 0.35), rgba(95, 214, 238, 0.05)); border-left: 3px solid #5fd6ee; }
.sk-card-survival   .sk-card-head { color: #d8b8ff; background: linear-gradient(90deg, rgba(167, 123, 216, 0.35), rgba(167, 123, 216, 0.05)); border-left: 3px solid #a77bd8; }
.sk-card-scientific .sk-card-head { color: #b8f0d3; background: linear-gradient(90deg, rgba(78, 195, 137, 0.35), rgba(78, 195, 137, 0.05)); border-left: 3px solid #4ec389; }

.sk-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sk-rows { gap: 6px; }
.sk-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
}
.sk-row .sk-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.7));
}
.sk-row .sk-icon img {
  display: block;
  width: 64px;
  height: 46px;
  object-fit: contain;
}
.sk-row .sk-pill {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(20, 50, 70, 0.95) 0%, rgba(8, 24, 38, 0.95) 100%);
  border: 1px solid rgba(95, 214, 238, 0.55);
  border-radius: 3px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}
.sk-row .sk-name {
  font-family: 'Oxanium', 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #dff6ff;
  text-transform: uppercase;
}
.sk-row .sk-val {
  font-family: 'Oxanium', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffb347;
  min-width: 32px;
  text-align: right;
}

/* per-group pill border tint */
.sk-card-physical   .sk-pill { border-color: rgba(231, 130, 83, 0.7); }
.sk-card-mental     .sk-pill { border-color: rgba(95, 214, 238, 0.7); }
.sk-card-survival   .sk-pill { border-color: rgba(167, 123, 216, 0.7); }
.sk-card-scientific .sk-pill { border-color: rgba(78, 195, 137, 0.7); }

/* center body area */

.sk-body {
  position: absolute;
  left: 50%;
  top: 84px;
  transform: translateX(-50%);
  width: 280px;
  height: 530px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(ellipse at center 35%, rgba(95, 214, 238, 0.42) 0%, rgba(20, 60, 90, 0.5) 35%, rgba(6, 18, 30, 0.0) 70%);
  border-radius: 50% / 42%;
  z-index: 1;
}
.sk-body img {
  max-height: 96%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.7));
}

/* ------ traits tab ------ */

.tr-signature {
  position: absolute;
  top: 90px;
  width: 290px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(10, 30, 48, 0.85) 0%, rgba(4, 14, 24, 0.9) 100%);
  border: 1px solid rgba(127, 224, 125, 0.55);
  border-radius: 5px;
  box-shadow: 0 0 14px rgba(127, 224, 125, 0.18), inset 0 0 10px rgba(0, 0, 0, 0.4);
  z-index: 2;
}
.tr-signature.pos { left: 18px; }
.tr-signature.neg {
  right: 18px;
  border-color: rgba(255, 90, 100, 0.55);
  box-shadow: 0 0 14px rgba(255, 90, 100, 0.18), inset 0 0 10px rgba(0, 0, 0, 0.4);
}
.tr-signature h3 {
  margin: 0 0 6px;
  font-family: 'Oxanium', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #a6ffb0;
  text-transform: uppercase;
}
.tr-signature.neg h3 { color: #ff9ea3; }
.tr-signature p { margin: 0; font-size: 17px; line-height: 1.4; color: #dff6ff; }

.tr-cols {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 272px;
  bottom: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  z-index: 2;
}
.tr-col {
  background: linear-gradient(180deg, rgba(10, 30, 48, 0.85) 0%, rgba(4, 14, 24, 0.9) 100%);
  border: 1px solid rgba(95, 214, 238, 0.45);
  border-radius: 5px;
  padding: 10px 12px;
  overflow: auto;
}
.tr-col h4 {
  margin: 0 0 8px;
  font-family: 'Oxanium', sans-serif;
  font-size: 17px;
  letter-spacing: 2.5px;
  text-align: center;
  text-transform: uppercase;
  color: #b6f3ff;
}
.tr-col.pos h4 { color: #a6ffb0; }
.tr-col.neg h4 { color: #ff9ea3; }
.tr-col ul { list-style: none; margin: 0; padding: 0; }
.tr-col li {
  font-size: 17px;
  line-height: 1.4;
  color: #dff6ff;
  padding: 5px 0;
  border-bottom: 1px solid rgba(95, 214, 238, 0.15);
}

/* ------ battle tab ------ */

.bt-panel {
  position: absolute;
  background: linear-gradient(180deg, rgba(10, 30, 48, 0.85) 0%, rgba(4, 14, 24, 0.9) 100%);
  border: 1px solid rgba(95, 214, 238, 0.45);
  border-radius: 5px;
  padding: 10px 14px;
  color: #dff6ff;
  font-size: 17px;
  z-index: 2;
}
.bt-panel h4 {
  margin: 0 0 6px;
  font-family: 'Oxanium', sans-serif;
  font-size: 17px;
  letter-spacing: 2px;
  color: #b6f3ff;
  text-transform: uppercase;
}
.bt-class    { left:  18px; top: 90px; width: 200px; }
.bt-stats    { left:  18px; top: 174px; width: 200px; }
.bt-init     { right: 18px; top: 90px; width: 180px; }
.bt-combat   { right: 18px; top: 174px; width: 180px; }
.bt-passives { right: 18px; top: 290px; width: 180px; }
.bt-skills   { left:  18px; right: 18px; bottom: 22px; }
.bt-skills h4 { font-size: 17px; text-align: center; }
.bt-skill-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.bt-skill-row .slot {
  width: 96px; height: 100px;
  background: linear-gradient(180deg, rgba(20, 50, 70, 0.95) 0%, rgba(8, 24, 38, 0.95) 100%);
  border: 1px solid rgba(95, 214, 238, 0.55);
  border-radius: 3px;
  color: #7fa3c0;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}

/* ------ relationships tab ------ */

.rel-grid {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 90px;
  bottom: 22px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 12px;
  align-content: start;
  z-index: 2;
}
.rel-card {
  background: linear-gradient(180deg, rgba(10, 30, 48, 0.85) 0%, rgba(4, 14, 24, 0.9) 100%);
  border: 1px solid rgba(95, 214, 238, 0.45);
  border-radius: 5px;
  padding: 10px 6px 12px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
}
.rel-card:hover {
  border-color: rgba(95, 214, 238, 0.85);
  box-shadow: 0 0 12px rgba(95, 214, 238, 0.35);
}
.rel-card .rel-port {
  width: 78px; height: 78px;
  margin: 0 auto 8px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle, #1b4a6b 0%, #0a1c2b 70%);
  border: 1px solid rgba(95, 214, 238, 0.5);
}
.rel-card .rel-port img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.rel-card .rel-name {
  font-family: 'Oxanium', sans-serif;
  font-size: 17px;
  color: #dff6ff;
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
  text-transform: uppercase;
}
.rel-card .rel-bar {
  display: block;
  height: 6px;
  margin-top: 6px;
  background: rgba(80, 160, 200, 0.3);
  border: 1px solid rgba(95, 214, 238, 0.4);
  border-radius: 2px;
}

/* ------ bio tab ------ */

.bio-id {
  position: absolute;
  left: 18px;
  top: 90px;
  width: 380px;
  bottom: 22px;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(10, 30, 48, 0.85) 0%, rgba(4, 14, 24, 0.9) 100%);
  border: 1px solid rgba(95, 214, 238, 0.45);
  border-radius: 5px;
  overflow: hidden;
  z-index: 2;
}
.bio-id h3 {
  margin: 0 0 12px;
  font-family: 'Oxanium', sans-serif;
  font-size: 18px;
  letter-spacing: 4px;
  color: #b6f3ff;
  text-align: center;
}
.bio-id dl { margin: 0; font-size: 17px; }
.bio-id dt { color: #7fa3c0; font-size: 17px; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 8px; }
.bio-id dd { margin: 2px 0 0; color: #dff6ff; font-weight: 600; }
.bio-id .bio-photo {
  float: right;
  width: 110px; height: 110px;
  margin: 0 0 8px 12px;
  border-radius: 4px;
  overflow: hidden;
  background: radial-gradient(circle, #1b4a6b 0%, #0a1c2b 70%);
  border: 1px solid rgba(95, 214, 238, 0.6);
}
.bio-id .bio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }

.bio-overview {
  position: absolute;
  left: 414px;
  right: 18px;
  top: 90px;
  bottom: 22px;
  padding: 14px 20px;
  background: linear-gradient(180deg, rgba(10, 30, 48, 0.85) 0%, rgba(4, 14, 24, 0.9) 100%);
  border: 1px solid rgba(95, 214, 238, 0.45);
  border-radius: 5px;
  overflow: auto;
  z-index: 2;
}
.bio-overview h3 {
  margin: 0 0 12px;
  font-family: 'Oxanium', sans-serif;
  font-size: 18px;
  letter-spacing: 4px;
  color: #b6f3ff;
  text-align: center;
}
.bio-overview p {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.55;
  color: #dff6ff;
}

/* ------ nav strip under the sheet ------ */

.pc-nav-strip {
  width: 1192px;
  max-width: 100%;
  margin: 18px auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 17px;
}
.pc-nav-strip a {
  color: #a4f4ff;
  text-decoration: none;
  letter-spacing: 1px;
  padding: 8px 14px;
  border: 1px solid rgba(52, 226, 255, 0.35);
  border-radius: 3px;
  background: rgba(8, 22, 36, 0.6);
}
.pc-nav-strip a:hover { background: rgba(52, 226, 255, 0.15); }

/* ---------- skill comparison table on /characters ---------- */

.table-wrap { overflow-x: auto; margin-top: 12px; }

.skills-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 17px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.skills-table th,
.skills-table td {
  padding: 7px 9px;
  border: 1px solid rgba(52, 226, 255, 0.14);
  text-align: center;
  white-space: nowrap;
}
.skills-table thead th {
  background: rgba(52, 226, 255, 0.08);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skills-table .col-name { text-align: left; }
.skills-table .col-name a { color: var(--ink); }
.skills-table .col-name a:hover { color: var(--accent); }
.skills-table .col-class {
  text-align: left;
  color: var(--orange);
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skills-table .col-total { font-weight: 700; color: var(--accent); }
.skills-table .col-day {
  text-align: center;
  font-size: 17px;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.group-head.group-physical   { background: var(--phys); color: #12060a; }
.group-head.group-mental     { background: var(--ment); color: #06141b; }
.group-head.group-survival   { background: var(--surv); color: #062012; }
.group-head.group-scientific { background: var(--sci);  color: #15091e; }

.skill-head {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 17px;
  color: var(--ink-dim);
}

.skills-table .skill-val {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.skills-table .skill-val.v20 { color: #ff6666; }
.skills-table .skill-val.v30 { color: #ff8f60; }
.skills-table .skill-val.v40 { color: #ffbd60; }
.skills-table .skill-val.v50 { color: #ffe066; }
.skills-table .skill-val.v60 { color: #b8e060; }
.skills-table .skill-val.v70 { color: #7fe07d; text-shadow: 0 0 6px rgba(127, 224, 125, 0.5); }

/* Detail view skill cells share the same color ramp via .skill-val */
.skill-row .skill-val.v20 { color: #ff6666; }
.skill-row .skill-val.v30 { color: #ff8f60; }
.skill-row .skill-val.v40 { color: #ffbd60; }
.skill-row .skill-val.v50 { color: #ffe066; }
.skill-row .skill-val.v60 { color: #b8e060; }
.skill-row .skill-val.v70 { color: #7fe07d; text-shadow: 0 0 8px rgba(127, 224, 125, 0.6); }

/* ---------- reference tables on /difficulty and /glossary ---------- */

.diff-table,
.gloss-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 17px;
  background: var(--panel);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.diff-table { table-layout: fixed; }
.gloss-table { table-layout: fixed; }
.diff-table col.diff-col-name { width: 40%; }
.diff-table col.diff-col-mode { width: 15%; }
.diff-table th,
.diff-table td {
  word-wrap: break-word;
}
.diff-table th,
.diff-table td,
.gloss-table th,
.gloss-table td {
  padding: 8px 12px;
  border: 1px solid rgba(52, 226, 255, 0.14);
  text-align: left;
  vertical-align: top;
}
.diff-table thead th,
.gloss-table thead th {
  background: rgba(52, 226, 255, 0.08);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 17px;
}
.diff-col-mechanic,
.gloss-table .gloss-col-term {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.diff-val {
  font-variant-numeric: tabular-nums;
  color: var(--ink-dim);
}
.diff-untouched {
  color: var(--ink-dim);
  padding-left: 20px;
}
.diff-untouched li { margin: 4px 0; }
.diff-intro {
  color: var(--ink-dim);
  font-size: 17px;
  margin: 6px 0 12px 0;
  line-height: 1.5;
}

/* ---------- /classes class skill blocks ---------- */

.class-section { margin-bottom: 36px; }
.class-skills {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.class-skill-block {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 12px 14px;
}
.class-skill-block h3 {
  margin: 0 0 8px 0;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.class-skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.class-skill-list li {
  padding: 3px 0;
  color: var(--ink);
  font-size: 17px;
}
.class-skill-list a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dotted var(--border);
}
.class-skill-list a:hover { color: var(--accent); }
@media (max-width: 800px) {
  .class-skills { grid-template-columns: 1fr; }
}

/* ---------- BATTLE tab ---------- */

.bt-topline {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: 14px;
  margin-bottom: 18px;
  align-items: stretch;
}
.bt-topline-class {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bt-topline-label {
  font-size: 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 6px;
}
.bt-topline-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}
.bt-topline-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.bt-stat {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: center;
}
.bt-stat-label {
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 6px;
}
.bt-stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.bt-skills {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.bt-skills-col {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 12px 14px;
}
.bt-skills-col h4 {
  margin: 0 0 8px 0;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.bt-skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bt-skill-list li {
  padding: 4px 0;
  color: var(--ink);
  font-size: 17px;
  border-bottom: 1px solid rgba(52, 226, 255, 0.08);
}
.bt-skill-list li:last-child { border-bottom: none; }
.bt-skill-surge li {
  color: var(--orange);
  font-weight: 600;
}
@media (max-width: 800px) {
  .bt-topline { grid-template-columns: 1fr; }
  .bt-skills { grid-template-columns: 1fr; }
}
.bt-constants {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.bt-constants h4 {
  margin: 0 0 10px 0;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.bt-constants dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 0;
}
.bt-constants dt {
  color: var(--ink);
  font-weight: 600;
}
.bt-constants dd {
  margin: 0;
  color: var(--ink-dim);
}

/* ---------- landing page reference links ---------- */

.landing-links {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.landing-links li {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 14px 16px;
}
.landing-links a {
  color: var(--ink);
  text-decoration: none;
  display: block;
}
.landing-links a strong {
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.landing-links a:hover { color: var(--accent); }
.landing-links a:hover strong { text-shadow: 0 0 6px var(--accent-glow); }

/* ---------- BIO tab ---------- */

.bio-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 2fr;
  gap: 18px;
}
.bio-id,
.bio-overview {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 16px 18px;
}
.bio-id h3,
.bio-overview h3 {
  margin: 0 0 12px 0;
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
.bio-id-body {
  display: grid;
  grid-template-columns: 1fr minmax(70px, 90px);
  gap: 12px;
  align-items: start;
}
.bio-dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 12px;
}
.bio-dl dt {
  color: var(--ink-dim);
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  align-self: center;
}
.bio-dl dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}
.bio-photo img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
}
.bio-particularities-h {
  margin: 16px 0 6px 0;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.bio-particularities {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bio-particularities li {
  padding: 4px 0;
  color: var(--ink);
  border-bottom: 1px solid rgba(52, 226, 255, 0.08);
}
.bio-particularities li:last-child { border-bottom: none; }
.bio-overview p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}
@media (max-width: 800px) {
  .bio-grid { grid-template-columns: 1fr; }
}
