/* ============================================================
   VALO//FIT — V1.0
   Fan-made tactical assessment. All visuals are original CSS/SVG.
   ============================================================ */

:root {
  --bg: #0a0d10;
  --bg-raised: #10151a;
  --panel: #13191f;
  --panel-2: #171e25;
  --cream: #ece8e1;
  --cream-dim: #b7b2a9;
  --muted: #7f8a93;
  --muted-2: #5c666e;
  --line: rgba(236, 232, 225, 0.12);
  --line-strong: rgba(236, 232, 225, 0.24);
  --red: #ff4655;
  --red-deep: #b72736;
  --teal: #24dfbd;
  --yellow: #f0c75e;
  --blue: #7e8cff;
  --display: "Bahnschrift SemiCondensed", "Bahnschrift", "DIN Alternate", "Arial Narrow", "Microsoft YaHei UI", sans-serif;
  --sans: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:focus-visible, [tabindex]:focus-visible, input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
a { color: inherit; }
svg { display: block; width: 1em; height: 1em; fill: none; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #fff; }

/* ---------- ambient background ---------- */
.app-shell { position: relative; min-height: 100vh; isolation: isolate; }
.ambient {
  position: fixed;
  z-index: -3;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: .5;
}
.ambient-a { width: 46vw; height: 46vw; top: -18vw; right: -8vw; background: rgba(255, 70, 85, .16); }
.ambient-b { width: 40vw; height: 40vw; bottom: -24vw; left: -10vw; background: rgba(36, 223, 189, .07); }
.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .3;
  background-image:
    linear-gradient(rgba(236,232,225,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236,232,225,.028) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 78%);
}
.noise::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.5));
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 16, .82);
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  text-align: left;
  flex: 0 0 auto;
}
.brand-mark {
  width: 34px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--red);
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong {
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: .055em;
  font-weight: 700;
}
.brand-copy strong span { color: var(--red); margin: 0 1px; }
.brand-copy small { font-size: 9px; color: var(--muted); letter-spacing: .24em; margin-top: 5px; }
.main-nav { display: flex; align-self: stretch; gap: 2px; margin-left: auto; }
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 17px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  transition: color .2s;
}
.nav-item span { font-family: var(--display); font-size: 9px; letter-spacing: .08em; color: var(--muted-2); margin-top: 2px; }
.nav-item::after {
  content: "";
  position: absolute;
  left: 17px; right: 17px; bottom: -1px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-item:hover { color: var(--cream); }
.nav-item.active { color: var(--cream); }
.nav-item.active::after { transform: scaleX(1); }
.nav-item.active span { color: var(--red); }
.topbar-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.offline-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 10px;
}
.offline-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.icon-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: .2s;
}
.icon-btn:hover { color: var(--cream); border-color: var(--line-strong); }
.icon-btn svg { width: 17px; height: 17px; }

/* ---------- shared ---------- */
.screens { position: relative; }
.screen { display: none; }
.screen.active { display: block; animation: screenIn .42s var(--ease); }
@keyframes screenIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.page-wrap { width: min(1320px, 100%); margin: 0 auto; padding: 38px var(--pad) 76px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow i { width: 28px; height: 1px; background: var(--red); }
.eyebrow span:first-child { color: var(--red); }
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.page-head h2 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.035em;
}
.ink-red { color: var(--red); }
.section-label {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--muted);
  text-transform: uppercase;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #ff5b68; }
.btn-ghost { border-color: var(--line-strong); color: var(--cream); background: rgba(236,232,225,.02); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(236,232,225,.06); }
.btn-compact { min-height: 40px; padding: 0 18px; }
.btn:disabled { opacity: .35; pointer-events: none; }
.btn-danger { background: var(--red-deep); }
.btn-danger:hover { background: #d02f3f; }
.text-btn {
  color: var(--muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  transition: color .2s;
}
.text-btn:hover { color: var(--cream); }
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(236,232,225,.04);
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  line-height: 1;
}
.mono { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* ---------- home hero ---------- */
.home-wrap { width: min(1440px, 100%); margin: 0 auto; padding: 0 var(--pad); }
.hero {
  min-height: min(780px, calc(100vh - 76px));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(460px, .98fr);
  align-items: center;
  gap: clamp(36px, 5vw, 90px);
  padding: 44px 0 30px;
}
.hero-copy { padding-bottom: 8px; }
.hero h1 {
  margin: 26px 0 24px;
  font-family: var(--display);
  font-size: clamp(58px, 6.7vw, 106px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.045em;
}
.hero h1 .hollow {
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 232, 225, .72);
  text-shadow: 0 0 32px rgba(236,232,225,.06);
}
.hero h1 em { font-style: normal; color: var(--red); margin-left: 4px; }
.hero-lead {
  max-width: 560px;
  margin: 0 0 30px;
  color: var(--cream-dim);
  font-size: 15px;
  line-height: 1.9;
}
.hero-actions { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.btn-primary .btn-main { font-size: 14px; font-weight: 700; }
.btn-primary .btn-sub {
  font-family: var(--display);
  font-size: 8px;
  letter-spacing: .12em;
  opacity: .72;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,.28);
}
.hero-meta {
  display: flex;
  gap: clamp(20px, 3.4vw, 52px);
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 620px;
}
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta b { font-family: var(--display); font-size: 29px; line-height: 1; font-weight: 600; letter-spacing: -.02em; }
.hero-meta b small { font-size: 12px; color: var(--muted); }
.hero-meta span { margin-top: 8px; font-size: 10px; color: var(--muted); letter-spacing: .12em; }

.hero-visual { align-self: center; }
.visual-frame {
  position: relative;
  height: clamp(440px, 58vh, 580px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 48%, rgba(255,70,85,.09), transparent 42%),
    linear-gradient(150deg, rgba(236,232,225,.045), transparent 36%),
    rgba(10,13,16,.6);
  overflow: hidden;
}
.visual-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(236,232,225,.055);
  pointer-events: none;
}
.corner { position: absolute; width: 18px; height: 18px; z-index: 3; border-color: var(--red); border-style: solid; }
.corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(236,232,225,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236,232,225,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 45%, #000, transparent 72%);
}
.orbit {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(236,232,225,.11);
  pointer-events: none;
}
.orbit-a { width: min(84%, 500px); aspect-ratio: 1; border-color: rgba(255,70,85,.28); animation: orbitSpin 56s linear infinite; }
.orbit-b { width: min(63%, 376px); aspect-ratio: 1; border-style: dashed; border-color: rgba(236,232,225,.18); animation: orbitSpinReverse 38s linear infinite; }
.orbit-c { width: min(42%, 250px); aspect-ratio: 1; border-color: rgba(236,232,225,.09); }
.orbit-a::before, .orbit-b::after {
  content: "";
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 14px var(--red);
}
.orbit-a::before { top: 10%; left: 20%; }
.orbit-b::after { bottom: 13%; right: 17%; background: var(--cream); box-shadow: 0 0 10px rgba(236,232,225,.8); }
@keyframes orbitSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes orbitSpinReverse { to { transform: translate(-50%, -50%) rotate(-360deg); } }
.orbit-ticks {
  position: absolute;
  top: 50%; left: 50%;
  width: min(92%, 550px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(236,232,225,.24) 0deg .6deg, transparent .6deg 7.5deg);
  mask: radial-gradient(circle, transparent 0 68%, #000 68.4% 69.2%, transparent 69.6%);
  opacity: .55;
  animation: orbitSpin 120s linear infinite;
}
.scanline {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  top: 22%;
  background: linear-gradient(90deg, transparent, rgba(255,70,85,.75), transparent);
  box-shadow: 0 0 22px rgba(255,70,85,.35);
  animation: scan 7s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 18%; opacity: .25; } 50% { top: 78%; opacity: .7; } }
.hero-role {
  position: absolute;
  left: 28px;
  bottom: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 4;
  background: rgba(10,13,16,.72);
  border-left: 2px solid var(--role-color, var(--red));
  padding: 10px 16px 10px 12px;
  backdrop-filter: blur(10px);
  max-width: calc(100% - 56px);
}
.hero-role-icon { width: 44px; height: 44px; color: var(--role-color, var(--cream)); flex: 0 0 auto; }
.hero-role-icon svg { width: 100%; height: 100%; }
.hero-role-copy { display: flex; flex-direction: column; min-width: 0; }
.hero-role-copy span { font-family: var(--display); font-size: 8px; letter-spacing: .17em; color: var(--muted); }
.hero-role-copy b { font-size: 19px; line-height: 1.2; margin-top: 2px; white-space: nowrap; }
.hero-role-copy small { font-family: var(--display); font-size: 8px; letter-spacing: .12em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-role-score { margin-left: 14px; padding-left: 16px; border-left: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; }
.hero-role-score span { font-family: var(--display); font-size: 8px; letter-spacing: .15em; color: var(--muted); }
.hero-role-score b { font-family: var(--display); font-size: 28px; line-height: 1; color: var(--role-color, var(--red)); margin-top: 4px; }
.role-dot {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: .12em;
}
.role-dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.rd-a { top: 15%; left: 12%; color: rgba(255,70,85,.8); }
.rd-b { top: 26%; right: 10%; color: rgba(240,199,94,.8); }
.rd-c { bottom: 25%; left: 10%; color: rgba(126,140,255,.8); }
.rd-d { bottom: 18%; right: 12%; color: rgba(36,223,189,.8); }
.visual-footer {
  position: absolute;
  left: 20px; right: 20px; bottom: 16px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--display);
  font-size: 8px;
  letter-spacing: .13em;
  color: var(--muted-2);
}
.hero-note { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-left: 2px; }
.note-line { width: 34px; height: 1px; background: var(--red); flex: 0 0 auto; }
.hero-note p { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .04em; }

/* ---------- home modules ---------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.module-card {
  position: relative;
  padding: 28px 30px 26px;
  min-height: 238px;
  border-right: 1px solid var(--line);
  background: rgba(236,232,225,.012);
  cursor: pointer;
  transition: background .25s, transform .25s var(--ease);
  overflow: hidden;
}
.module-card:last-child { border-right: 0; }
.module-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .35s var(--ease);
}
.module-card:hover { background: rgba(236,232,225,.035); }
.module-card:hover::before { width: 100%; }
.module-card:focus-visible { outline-offset: -3px; }
.module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: .14em;
}
.module-top svg { width: 22px; height: 22px; color: var(--muted); }
.module-card h3 { margin: 30px 0 10px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.module-card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.75; max-width: 93%; }
.module-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.module-tags span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  font-family: var(--display);
  font-size: 8px;
  letter-spacing: .1em;
  color: var(--muted);
}
.module-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 11px;
  color: var(--cream-dim);
}
.module-cta svg { width: 15px; height: 15px; color: var(--red); transition: transform .2s; }
.module-card:hover .module-cta svg { transform: translateX(4px); }
.module-feature { background: linear-gradient(145deg, rgba(255,70,85,.055), transparent 60%); }
.module-feature .module-top svg { color: var(--red); }
.module-dossier h3 { margin-top: 30px; }
.home-strip {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
  font-family: var(--display);
  font-size: 8px;
  letter-spacing: .13em;
  color: var(--muted-2);
}
.strip-label { color: var(--red); white-space: nowrap; }
.strip-items { display: flex; flex-wrap: wrap; gap: 20px; }
.strip-items span { position: relative; padding-left: 10px; }
.strip-items span::before { content: "/"; position: absolute; left: 0; color: var(--muted-2); }
.strip-disclaimer { margin-left: auto; white-space: nowrap; }

/* ---------- quiz ---------- */
.quiz-wrap { max-width: 1240px; }
.quiz-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(36px, 6vw, 86px);
  padding-top: 18px;
}
.quiz-rail { position: sticky; top: 112px; align-self: start; }
.rail-index { display: flex; align-items: flex-start; font-family: var(--display); color: var(--cream); }
.rail-index span { font-size: 68px; line-height: .82; font-weight: 600; letter-spacing: -.05em; }
.rail-index small { font-size: 14px; color: var(--muted-2); margin: 6px 0 0 6px; letter-spacing: .06em; }
.rail-line { width: 2px; height: 132px; background: var(--line); margin: 26px 0; position: relative; overflow: hidden; }
.rail-line i { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 0; background: var(--red); transition: height .5s var(--ease); }
.rail-category { font-size: 13px; color: var(--cream); letter-spacing: .04em; }
.rail-note { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.rail-legend { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 28px; }
.rail-legend span { border: 1px solid var(--line); padding: 4px 7px; font-family: var(--display); font-size: 8px; letter-spacing: .1em; color: var(--muted); }
.quiz-main { min-width: 0; }
.quiz-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--muted);
}
.quiz-topline span:last-child { color: var(--muted-2); }
.question-card { padding-top: 34px; transition: opacity .2s, transform .2s; }
.question-card.leaving { opacity: 0; transform: translateX(-16px); }
.question-card h3 {
  min-height: 2.9em;
  margin: 0 0 34px;
  font-size: clamp(24px, 2.7vw, 36px);
  line-height: 1.42;
  font-weight: 600;
  letter-spacing: -.025em;
}
.options { display: flex; flex-direction: column; gap: 9px; }
.option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 17px 18px;
  border: 1px solid var(--line);
  background: rgba(236,232,225,.015);
  color: var(--cream-dim);
  text-align: left;
  transition: background .18s, border-color .18s, color .18s, transform .18s var(--ease);
}
.option:hover {
  border-color: rgba(255,70,85,.65);
  background: rgba(255,70,85,.055);
  color: var(--cream);
  transform: translateX(5px);
}
.option-key {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  font-family: var(--display);
  font-size: 12px;
  color: var(--muted);
  transition: .18s;
}
.option-text { font-size: 14px; line-height: 1.65; }
.option-arrow { width: 16px; height: 16px; color: var(--muted-2); opacity: 0; transform: translateX(-4px); transition: .18s; }
.option:hover .option-arrow { opacity: 1; transform: none; color: var(--red); }
.option:hover .option-key { border-color: var(--red); color: var(--red); background: rgba(255,70,85,.08); }
.option.selected { border-color: var(--red); background: rgba(255,70,85,.09); color: #fff; }
.option.selected .option-key { background: var(--red); border-color: var(--red); color: #fff; }
.option.selected .option-arrow { opacity: 1; color: var(--red); transform: none; }
.quiz-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.key-hint { display: flex; align-items: center; gap: 5px; }
.key-hint span { margin-left: 5px; color: var(--muted-2); font-size: 9px; letter-spacing: .1em; }

/* ---------- result shared / quiz result ---------- */
.result-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.result-head h2 { margin: 10px 0 0; font-family: var(--display); font-size: clamp(32px, 4vw, 48px); line-height: 1; letter-spacing: -.035em; }
.result-head p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.result-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 16px; }
.role-result-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 34px 36px;
  border: 1px solid color-mix(in srgb, var(--role-color) 38%, transparent);
  background:
    radial-gradient(circle at 74% 20%, var(--role-soft), transparent 48%),
    linear-gradient(160deg, rgba(236,232,225,.055), transparent 55%),
    var(--panel);
  display: flex;
  flex-direction: column;
}
.role-result-hero::after {
  content: attr(data-index);
  position: absolute;
  right: -10px; bottom: -46px;
  font-family: var(--display);
  font-size: 260px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--role-color) 24%, transparent);
  pointer-events: none;
}
.result-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.result-kicker span { font-family: var(--display); font-size: 9px; letter-spacing: .18em; color: var(--muted); }
.result-kicker b { color: var(--role-color); font-family: var(--display); font-size: 9px; letter-spacing: .14em; }
.role-glyph { width: 104px; height: 104px; color: var(--role-color); margin: 28px 0 14px; position: relative; z-index: 1; }
.role-glyph svg { width: 100%; height: 100%; filter: drop-shadow(0 0 24px var(--role-soft)); }
.role-result-hero h2 { margin: 0; font-size: clamp(40px, 4.7vw, 64px); line-height: 1; letter-spacing: -.05em; position: relative; z-index: 1; }
.role-result-hero .en { margin-top: 6px; font-family: var(--display); font-size: 13px; letter-spacing: .3em; color: var(--role-color); position: relative; z-index: 1; }
.role-result-hero .tagline { margin: 16px 0 0; font-size: 14px; color: var(--cream-dim); letter-spacing: .06em; position: relative; z-index: 1; }
.role-fit-row { display: flex; align-items: flex-end; gap: 24px; margin-top: auto; padding-top: 30px; position: relative; z-index: 1; }
.fit-ring {
  --pct: 50;
  position: relative;
  width: 122px; height: 122px;
  border-radius: 50%;
  background: conic-gradient(var(--role-color) calc(var(--pct) * 1%), rgba(236,232,225,.08) 0);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.fit-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--panel); }
.fit-ring::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px dashed rgba(236,232,225,.12); }
.fit-ring div { position: relative; z-index: 1; text-align: center; }
.fit-ring b { display: block; font-family: var(--display); font-size: 37px; line-height: 1; letter-spacing: -.04em; }
.fit-ring span { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; letter-spacing: .14em; }
.fit-copy { padding-bottom: 6px; }
.fit-copy span { font-family: var(--display); font-size: 8px; letter-spacing: .15em; color: var(--muted); }
.fit-copy b { display: block; margin-top: 4px; font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--cream); }
.fit-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.analysis-panel {
  border: 1px solid var(--line);
  background: rgba(236,232,225,.022);
  padding: 28px 30px;
}
.analysis-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.analysis-head span { font-family: var(--display); font-size: 9px; letter-spacing: .16em; color: var(--muted); }
.analysis-head b { font-family: var(--display); font-size: 9px; letter-spacing: .1em; color: var(--teal); }
.radar-wrap { display: grid; place-items: center; padding: 6px 0 0; }
.radar-svg { width: 100%; max-width: 430px; height: auto; overflow: visible; }
.radar-label { font-family: var(--display); font-size: 10px; letter-spacing: .13em; fill: var(--muted); }
.radar-value { font-family: var(--display); font-size: 11px; fill: var(--cream); }
.style-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.style-tags span {
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--role-color) 35%, transparent);
  color: var(--role-color);
  background: var(--role-soft);
  font-size: 10px;
  letter-spacing: .04em;
}
.role-bars { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.role-bar { display: grid; grid-template-columns: 64px 1fr 34px; align-items: center; gap: 12px; font-size: 11px; }
.role-bar span { color: var(--muted); }
.role-bar b { font-family: var(--display); font-weight: 500; color: var(--cream); text-align: right; font-size: 12px; }
.bar-track { height: 4px; background: rgba(236,232,225,.07); overflow: hidden; }
.bar-track i { display: block; height: 100%; background: var(--bar-color, var(--red)); width: 0; transition: width .8s var(--ease); }
.result-lower { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-top: 16px; }
.insight-card {
  border: 1px solid var(--line);
  background: rgba(236,232,225,.018);
  padding: 28px 30px;
}
.insight-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.insight-card h3::before { content: ""; width: 3px; height: 14px; background: var(--role-color, var(--red)); }
.insight-card p { margin: 0; color: var(--cream-dim); font-size: 13px; line-height: 1.9; }
.insight-card .note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; }
.secondary-role { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.12); }
.secondary-role .mini-glyph { width: 38px; height: 38px; color: var(--secondary-color); }
.secondary-role .mini-glyph svg { width: 100%; height: 100%; }
.secondary-role div { display: flex; flex-direction: column; }
.secondary-role small { font-family: var(--display); font-size: 8px; letter-spacing: .13em; color: var(--muted); }
.secondary-role b { font-size: 14px; }
.secondary-role span { margin-left: auto; font-family: var(--display); font-size: 17px; color: var(--secondary-color); }
.agent-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.agent-chip { position: relative; overflow: hidden; padding: 7px 11px; border: 1px solid var(--line); background: rgba(0,0,0,.14); font-size: 11px; }
.agent-chip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--role-color); }
.agent-chip small { display: block; color: var(--muted-2); font-family: var(--display); font-size: 7px; letter-spacing: .1em; }
.role-watchout { margin-top: 16px; padding: 13px 14px; border-left: 2px solid var(--role-color); background: var(--role-soft); color: var(--cream-dim); font-size: 11.5px; line-height: 1.8; }
.role-watchout b { color: var(--role-color); font-weight: 600; margin-right: 6px; }
.strength-block { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.strength-block > span { display: block; font-family: var(--display); font-size: 8px; letter-spacing: .15em; color: var(--muted); margin-bottom: 9px; }
.strength-block .style-tags { margin-top: 0; }
.result-bottom-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.result-bottom-cta p { margin: 0; color: var(--muted); font-size: 11px; }
.result-bottom-cta .actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* ---------- game ---------- */
.game-wrap { max-width: 1320px; }
.game-head { align-items: flex-end; }
.best-readout { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.best-readout span { font-family: var(--display); font-size: 8px; letter-spacing: .18em; color: var(--muted); }
.best-readout b { font-family: var(--display); font-size: 34px; line-height: 1; letter-spacing: -.03em; color: var(--cream); margin: 4px 0 3px; }
.best-readout small { font-size: 9px; color: var(--muted-2); }
.game-intro { display: grid; grid-template-columns: 1fr 330px; gap: 28px; align-items: stretch; margin-bottom: 18px; }
.intro-copy p { max-width: 680px; margin: 9px 0 0; color: var(--cream-dim); font-size: 13px; line-height: 1.85; }
.role-hint { border: 1px solid var(--line); padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; background: rgba(236,232,225,.015); border-left: 2px solid var(--role-color, var(--line-strong)); }
.role-hint span { font-family: var(--display); font-size: 8px; letter-spacing: .14em; color: var(--muted); }
.role-hint b { font-size: 15px; margin-top: 2px; color: var(--role-color, var(--cream)); }
.role-hint small { color: var(--muted); font-size: 10px; line-height: 1.6; margin-top: 3px; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mode-card {
  position: relative;
  min-height: 214px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: rgba(236,232,225,.02);
  text-align: left;
  overflow: hidden;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.mode-card:hover { border-color: var(--line-strong); background: rgba(236,232,225,.035); transform: translateY(-2px); }
.mode-card.selected { border-color: rgba(255,70,85,.72); background: linear-gradient(120deg, rgba(255,70,85,.075), rgba(236,232,225,.015)); }
.mode-check {
  position: absolute;
  top: 18px; right: 18px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  color: transparent;
}
.mode-check svg { width: 13px; height: 13px; }
.mode-card.selected .mode-check { background: var(--red); border-color: var(--red); color: #fff; }
.mode-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.mode-top span { font-family: var(--display); font-size: 8px; letter-spacing: .16em; color: var(--red); }
.mode-top b { font-family: var(--display); font-size: 9px; letter-spacing: .12em; color: var(--muted); }
.mode-card h3 { position: relative; z-index: 2; margin: 22px 0 8px; font-size: 26px; letter-spacing: -.03em; }
.mode-card p { position: relative; z-index: 2; max-width: 330px; margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.75; }
.mode-stats { position: relative; z-index: 2; display: flex; gap: 6px; margin-top: 16px; }
.mode-stats span { padding: 3px 6px; border: 1px solid var(--line); font-family: var(--display); font-size: 7px; letter-spacing: .1em; color: var(--muted); }
.mode-stats span:first-child { color: var(--red); border-color: rgba(255,70,85,.25); }
.mode-art { position: absolute; right: 10px; bottom: 0; width: 45%; height: 90%; opacity: .8; pointer-events: none; }
.mode-art::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(236,232,225,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(236,232,225,.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 65% 60%, #000, transparent 72%);
}
.mode-art i {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(255,70,85,.8);
}
.mode-art i::after { content: ""; position: absolute; inset: -6px; border: 1px solid rgba(255,70,85,.32); border-radius: 50%; }
.mode-art.moving i { animation: targetFloat 4s ease-in-out infinite alternate; }
.mode-art.moving i:nth-child(2) { animation-delay: -1.3s; }
.mode-art.moving i:nth-child(3) { animation-delay: -2.7s; }
@keyframes targetFloat { to { transform: translate(14px, -10px); } }
.mode-reticle { position: absolute; left: 48%; top: 48%; width: 54px; height: 54px; border: 1px solid rgba(236,232,225,.12); border-radius: 50%; }
.mode-reticle::before, .mode-reticle::after { content: ""; position: absolute; background: rgba(236,232,225,.25); }
.mode-reticle::before { left: 50%; top: -8px; bottom: -8px; width: 1px; }
.mode-reticle::after { top: 50%; left: -8px; right: -8px; height: 1px; }
.motion-line { position: absolute; width: 100px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,70,85,.4), transparent); transform: rotate(-30deg); left: 30%; top: 55%; }
.protocol-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 24px; background: var(--line); border: 1px solid var(--line); }
.protocol { background: var(--bg); padding: 16px 18px; display: flex; gap: 12px; }
.protocol-num { font-family: var(--display); font-size: 9px; color: var(--red); letter-spacing: .1em; padding-top: 2px; }
.protocol b { display: block; font-size: 11.5px; font-weight: 600; }
.protocol p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.game-start-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 26px; }
.input-hint { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; flex-wrap: wrap; }
.input-hint span:first-child { font-family: var(--display); font-size: 8px; letter-spacing: .12em; color: var(--muted-2); margin-right: 2px; }
.btn-start { min-width: 230px; min-height: 58px; }

/* arena */
.arena {
  position: relative;
  height: min(70vh, 740px);
  min-height: 540px;
  border: 1px solid rgba(236,232,225,.18);
  background:
    radial-gradient(circle at 50% 48%, rgba(255,70,85,.055), transparent 46%),
    #070a0d;
  overflow: hidden;
  cursor: none;
  user-select: none;
}
#gameCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.arena-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(236,232,225,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236,232,225,.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 78%);
  pointer-events: none;
}
.arena::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(236,232,225,.05); z-index: 3; pointer-events: none; }
.arena::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 18%, transparent 80%, rgba(0,0,0,.42));
}
.game-hud { position: absolute; inset: 0; z-index: 4; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 26px; }
.hud-top { display: flex; align-items: flex-start; justify-content: space-between; }
.hud-cell { display: flex; flex-direction: column; min-width: 110px; }
.hud-cell span { font-family: var(--display); font-size: 8px; letter-spacing: .18em; color: var(--muted); }
.hud-cell b { font-family: var(--display); font-size: 38px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hud-cell.right { align-items: flex-end; }
.hud-cell.right b { color: var(--red); }
.hud-timer { display: flex; flex-direction: column; align-items: center; }
.hud-timer > span { font-family: var(--display); font-size: 8px; letter-spacing: .18em; color: var(--muted); }
.hud-timer > b { font-family: var(--display); font-size: 27px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.hud-timer > i { display: block; width: 160px; height: 2px; background: rgba(236,232,225,.12); margin-top: 7px; overflow: hidden; }
.hud-timer > i em { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; }
.hud-bottom { display: flex; align-items: flex-end; gap: 26px; }
.hud-mini { display: flex; flex-direction: column; min-width: 92px; }
.hud-mini span { font-family: var(--display); font-size: 7.5px; letter-spacing: .15em; color: var(--muted); }
.hud-mini b { font-family: var(--display); font-size: 18px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hud-mini.right { margin-left: auto; align-items: flex-end; }
.hud-mode { margin-left: auto; font-family: var(--display); font-size: 8px; letter-spacing: .13em; color: var(--muted-2); align-self: center; }
.hud-mini.right + .hud-mode { margin-left: 0; }
.hud-bottom .hud-mode { order: 3; }
.hud-bottom .hud-mini.right { order: 4; margin-left: 0; }
.hud-bottom { flex-wrap: wrap; }
.countdown {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(7,10,13,.55);
  backdrop-filter: blur(4px);
}
.countdown span { font-family: var(--display); font-size: clamp(100px, 16vw, 190px); line-height: .85; font-weight: 700; color: var(--cream); text-shadow: 0 0 50px rgba(255,70,85,.24); animation: countPulse .9s var(--ease); }
.countdown small { margin-top: 20px; font-family: var(--display); font-size: 10px; letter-spacing: .32em; color: var(--red); }
@keyframes countPulse { from { transform: scale(.72); opacity: .3; } to { transform: scale(1); opacity: 1; } }
.crosshair { position: absolute; z-index: 9; width: 30px; height: 30px; pointer-events: none; transform: translate(-50%, -50%); }
.crosshair i { position: absolute; background: rgba(236,232,225,.9); box-shadow: 0 0 3px rgba(0,0,0,.8); }
.crosshair i:nth-child(1), .crosshair i:nth-child(2) { width: 1.5px; height: 8px; left: 14px; }
.crosshair i:nth-child(1) { top: 0; }
.crosshair i:nth-child(2) { bottom: 0; }
.crosshair i:nth-child(3), .crosshair i:nth-child(4) { height: 1.5px; width: 8px; top: 14px; }
.crosshair i:nth-child(3) { left: 0; }
.crosshair i:nth-child(4) { right: 0; }
.crosshair b { position: absolute; left: 50%; top: 50%; width: 2px; height: 2px; background: var(--red); transform: translate(-50%, -50%); border-radius: 50%; }
.crosshair.hit { animation: crossHit .16s; }
@keyframes crossHit { 50% { transform: translate(-50%, -50%) scale(1.35); } }
.arena-flash { position: absolute; inset: 0; z-index: 7; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(255,70,85,.26), transparent 60%); opacity: 0; }
.arena-flash.on { animation: flash .22s ease-out; }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.arena-quit {
  position: absolute; top: 18px; right: 18px; z-index: 10;
  font-family: var(--display); font-size: 8px; letter-spacing: .12em;
  color: var(--muted); border: 1px solid var(--line); padding: 5px 8px;
  background: rgba(10,13,16,.6);
  cursor: pointer;
}
.arena-quit:hover { color: var(--cream); }
.arena-start-hint {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 6; font-family: var(--display); font-size: 9px; letter-spacing: .14em;
  color: var(--muted); white-space: nowrap;
  animation: hintPulse 2.4s ease-in-out infinite;
}
@keyframes hintPulse { 50% { opacity: .45; } }

/* game result */
.game-result-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-bottom: 16px; }
.grade-panel {
  position: relative;
  overflow: hidden;
  padding: 34px 36px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 86% 20%, rgba(255,70,85,.12), transparent 45%), var(--panel);
  display: flex;
  align-items: center;
  gap: 34px;
}
.grade-panel::after {
  content: "";
  position: absolute; right: -60px; bottom: -100px;
  width: 300px; height: 300px;
  border: 1px solid rgba(255,70,85,.15);
  transform: rotate(45deg);
}
.grade-letter { font-family: var(--display); font-size: clamp(110px, 14vw, 180px); line-height: .75; font-weight: 700; letter-spacing: -.06em; color: var(--cream); position: relative; z-index: 1; }
.grade-letter.grade-s { color: var(--yellow); text-shadow: 0 0 40px rgba(240,199,94,.2); }
.grade-letter.grade-a { color: var(--teal); text-shadow: 0 0 40px rgba(36,223,189,.16); }
.grade-copy { position: relative; z-index: 1; }
.grade-copy span { font-family: var(--display); font-size: 9px; letter-spacing: .18em; color: var(--muted); }
.grade-copy h2 { margin: 6px 0 8px; font-size: 26px; letter-spacing: -.03em; }
.grade-copy p { margin: 0; color: var(--muted); font-size: 11.5px; max-width: 300px; line-height: 1.7; }
.score-panel { padding: 30px 32px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; justify-content: center; }
.score-panel > span { font-family: var(--display); font-size: 9px; letter-spacing: .16em; color: var(--muted); }
.score-big { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 14px; }
.score-big b { font-family: var(--display); font-size: 62px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.score-big small { color: var(--muted); font-size: 11px; }
.new-best { display: inline-flex; align-items: center; gap: 5px; color: var(--yellow); font-family: var(--display); font-size: 9px; letter-spacing: .1em; }
.new-best svg { width: 13px; height: 13px; }
.score-panel .bar { height: 3px; background: rgba(236,232,225,.08); margin-top: 8px; }
.score-panel .bar i { display: block; height: 100%; background: var(--red); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 16px; }
.stat-card { background: var(--bg); padding: 20px 22px; }
.stat-card span { display: block; font-family: var(--display); font-size: 8px; letter-spacing: .15em; color: var(--muted); }
.stat-card b { display: block; margin-top: 6px; font-family: var(--display); font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-card b small { font-size: 11px; color: var(--muted); margin-left: 3px; }
.stat-card p { margin: 5px 0 0; color: var(--muted-2); font-size: 9.5px; line-height: 1.5; }
.game-result-lower { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; }
.benchmark-card, .advice-card { border: 1px solid var(--line); background: rgba(236,232,225,.018); padding: 26px 28px; }
.benchmark-card h3, .advice-card h3 { margin: 0 0 6px; font-size: 15px; }
.benchmark-card > p, .advice-card > p { margin: 0 0 18px; color: var(--muted); font-size: 10.5px; }
.bench-row { display: grid; grid-template-columns: 70px 1fr 48px; align-items: center; gap: 10px; margin-top: 14px; font-size: 10.5px; }
.bench-row > span { color: var(--muted); }
.bench-row b { font-family: var(--display); font-size: 11px; text-align: right; font-weight: 500; }
.bench-track { position: relative; height: 6px; background: rgba(236,232,225,.07); }
.bench-track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--role-color, var(--red)); }
.bench-track u { position: absolute; top: -4px; width: 1px; height: 14px; background: rgba(236,232,225,.55); text-decoration: none; }
.bench-legend { display: flex; gap: 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 9px; color: var(--muted-2); }
.bench-legend i { display: inline-block; width: 12px; height: 2px; margin-right: 5px; vertical-align: middle; }
.advice-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.advice-list li { display: flex; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--cream-dim); line-height: 1.65; }
.advice-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.advice-list b { color: var(--red); font-family: var(--display); font-size: 10px; min-width: 18px; }

/* ---------- empty states ---------- */
.empty-profile {
  max-width: 640px;
  margin: 64px auto 0;
  padding: 54px 48px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 0%, rgba(255,70,85,.08), transparent 55%), rgba(236,232,225,.015);
  text-align: center;
}
.empty-glyph { width: 88px; height: 88px; margin: 0 auto 20px; color: var(--red); opacity: .75; }
.empty-glyph svg { width: 100%; height: 100%; }
.empty-profile h3 { margin: 10px 0 10px; font-size: 28px; letter-spacing: -.03em; }
.empty-profile p { margin: 0 auto 24px; max-width: 440px; color: var(--muted); font-size: 12.5px; line-height: 1.9; }
.empty-profile .actions { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; }

/* ---------- roadmap done strip ---------- */
.v1-done {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 18px;
}
.v1-done span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(36,223,189,.22);
  background: rgba(36,223,189,.045);
  color: var(--cream-dim);
  font-size: 10px;
}
.v1-done svg { width: 12px; height: 12px; color: var(--teal); }

/* ---------- profile ---------- */
.profile-top { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-bottom: 16px; }
.id-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,70,85,.06), transparent 45%),
    radial-gradient(circle at 85% 25%, var(--role-soft, rgba(255,70,85,.1)), transparent 40%),
    var(--panel);
  padding: 30px 32px;
}
.id-card::after {
  content: "VALO//FIT";
  position: absolute; right: -24px; bottom: -22px;
  font-family: var(--display); font-size: 72px; letter-spacing: .02em; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px rgba(236,232,225,.07);
  transform: rotate(-6deg); pointer-events: none;
}
.id-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.id-label { font-family: var(--display); font-size: 8px; letter-spacing: .18em; color: var(--red); }
.id-name { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.id-name h2 { margin: 0; font-family: var(--display); font-size: clamp(34px, 4vw, 48px); line-height: 1; letter-spacing: -.03em; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edit-name { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.edit-name:hover { color: var(--cream); border-color: var(--line-strong); }
.id-tag { margin-top: 10px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.id-role { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.id-role .role-glyph { width: 60px; height: 60px; margin: 0; }
.id-role div { display: flex; flex-direction: column; }
.id-role span { font-family: var(--display); font-size: 8px; letter-spacing: .15em; color: var(--muted); }
.id-role b { font-size: 22px; line-height: 1.2; color: var(--role-color, var(--cream)); }
.id-role small { color: var(--muted); font-size: 10px; }
.id-stats { display: flex; gap: 28px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.id-stats div { display: flex; flex-direction: column; }
.id-stats b { font-family: var(--display); font-size: 22px; line-height: 1; }
.id-stats span { margin-top: 5px; color: var(--muted); font-size: 8.5px; letter-spacing: .12em; }
.id-barcode { display: flex; gap: 2px; align-items: flex-end; height: 34px; margin-top: 22px; opacity: .4; }
.id-barcode i { width: 2px; background: var(--cream); }
.id-side { border: 1px solid var(--line); background: rgba(236,232,225,.018); padding: 26px 28px; display: flex; flex-direction: column; }
.id-side h3 { margin: 0; font-size: 14px; }
.id-side > p { margin: 6px 0 14px; color: var(--muted); font-size: 10.5px; }
.trend-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.trend-svg { width: 100%; height: 130px; overflow: visible; }
.trend-empty { display: grid; place-items: center; height: 130px; color: var(--muted-2); font-size: 11px; border: 1px dashed var(--line); }
.id-side .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { border: 1px solid var(--line); background: rgba(236,232,225,.018); padding: 26px 28px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-size: 14px; }
.panel-head span { font-family: var(--display); font-size: 8px; letter-spacing: .15em; color: var(--muted); }
.history-list { display: flex; flex-direction: column; }
.history-item { display: grid; grid-template-columns: 60px 1fr 80px 62px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.history-item:last-child { border-bottom: 0; }
.history-type { font-family: var(--display); font-size: 8px; letter-spacing: .1em; color: var(--red); }
.history-type.game { color: var(--teal); }
.history-main b { display: block; font-size: 12px; font-weight: 500; }
.history-main small { color: var(--muted-2); font-size: 9px; }
.history-score { font-family: var(--display); font-size: 15px; text-align: right; }
.history-date { color: var(--muted-2); font-size: 9px; text-align: right; }
.empty-block { padding: 26px 0; text-align: center; color: var(--muted); font-size: 11.5px; }
.empty-block b { display: block; color: var(--cream-dim); font-size: 13px; margin-bottom: 5px; }
.mini-role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-role { border: 1px solid var(--line); padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.mini-role svg { width: 26px; height: 26px; color: var(--rc); }
.mini-role div { min-width: 0; }
.mini-role b { display: block; font-size: 11.5px; font-weight: 500; }
.mini-role span { color: var(--muted); font-family: var(--display); font-size: 8px; letter-spacing: .08em; }
.mini-role em { margin-left: auto; font-style: normal; font-family: var(--display); font-size: 15px; color: var(--rc); }
.profile-footer-actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ---------- report ---------- */
.report-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.report-toolbar .left { display: flex; flex-direction: column; }
.report-toolbar .left span { font-family: var(--display); font-size: 8px; letter-spacing: .18em; color: var(--red); }
.report-toolbar .left b { font-size: 13px; font-weight: 500; color: var(--muted); }
.report-toolbar .actions { display: flex; gap: 8px; }
.report-sheet { border: 1px solid var(--line); background: rgba(10,13,16,.55); }
.report-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(115deg, rgba(255,70,85,.08), transparent 50%);
}
.report-banner h1 { margin: 6px 0 0; font-family: var(--display); font-size: clamp(32px, 4vw, 48px); line-height: 1; letter-spacing: -.04em; }
.report-banner p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.report-id { text-align: right; }
.report-id span { display: block; font-family: var(--display); font-size: 8px; letter-spacing: .15em; color: var(--muted); }
.report-id b { display: block; font-family: var(--display); font-size: 18px; letter-spacing: .04em; margin: 3px 0; }
.report-id small { color: var(--muted-2); font-size: 9px; }
.report-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--line); }
.report-role { padding: 30px 32px; border-right: 1px solid var(--line); position: relative; overflow: hidden; }
.report-role::after { content: ""; position: absolute; right: -40px; bottom: -80px; width: 220px; height: 220px; border: 1px solid var(--role-color); opacity: .12; transform: rotate(45deg); }
.report-role .role-glyph { width: 66px; height: 66px; margin: 0 0 12px; }
.report-role h2 { margin: 0; font-size: 39px; letter-spacing: -.04em; line-height: 1; }
.report-role .en { margin-top: 5px; font-family: var(--display); font-size: 10px; letter-spacing: .24em; color: var(--role-color); }
.report-role p { margin: 16px 0 0; color: var(--cream-dim); font-size: 11.5px; line-height: 1.85; max-width: 520px; }
.report-role .fit-inline { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.fit-inline b { font-family: var(--display); font-size: 28px; color: var(--role-color); line-height: 1; }
.fit-inline span { color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.report-chart { padding: 24px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.report-chart .radar-svg { max-width: 320px; }
.report-body-grid { display: grid; grid-template-columns: 1.08fr .92fr; }
.report-section { padding: 28px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.report-section:nth-child(2n) { border-right: 0; }
.report-section.full { grid-column: 1 / -1; border-right: 0; }
.report-section.full .agent-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.report-section.full .training-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 26px; }
.report-section h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; font-size: 13px; }
.report-section h3 span { font-family: var(--display); font-size: 8px; color: var(--red); letter-spacing: .12em; }
.report-section p { margin: 0; color: var(--cream-dim); font-size: 11.5px; line-height: 1.85; }
.report-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 14px; }
.report-metric { background: var(--bg); padding: 14px 15px; }
.report-metric span { display: block; font-family: var(--display); font-size: 7.5px; letter-spacing: .12em; color: var(--muted); }
.report-metric b { display: block; font-family: var(--display); font-size: 24px; line-height: 1.2; font-weight: 600; }
.report-metric b small { font-size: 9px; color: var(--muted); }
.agent-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.agent-big { padding: 10px 14px; border: 1px solid var(--line); min-width: 82px; position: relative; }
.agent-big::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: var(--role-color); opacity: .55; }
.agent-big b { display: block; font-size: 12px; font-weight: 500; }
.agent-big span { color: var(--muted); font-family: var(--display); font-size: 7px; letter-spacing: .1em; }
.training-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.training-item { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.training-item:last-child { border-bottom: 0; }
.training-day { font-family: var(--display); font-size: 8px; letter-spacing: .1em; color: var(--red); padding-top: 3px; }
.training-item b { display: block; font-size: 11px; font-weight: 500; }
.training-item p { color: var(--muted); font-size: 10px; line-height: 1.6; margin: 2px 0 0; }
.report-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 32px; font-family: var(--display); font-size: 8px; letter-spacing: .12em; color: var(--muted-2); }
.report-qr { width: 42px; height: 42px; background: repeating-conic-gradient(var(--cream) 0 25%, transparent 0 50%) 0 0 / 7px 7px; opacity: .25; }

/* ---------- roadmap ---------- */
.build-badge {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(36,223,189,.25);
  color: var(--teal);
  padding: 7px 10px;
  font-family: var(--display); font-size: 8px; letter-spacing: .12em;
}
.build-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.roadmap-lead { max-width: 760px; margin: 0 0 28px; color: var(--cream-dim); font-size: 14px; line-height: 1.9; }
.roadmap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.roadmap-col { background: var(--bg); padding: 24px 22px 20px; }
.roadmap-col h3 { margin: 0 0 16px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.roadmap-col h3 span { font-family: var(--display); font-size: 8px; color: var(--red); letter-spacing: .1em; }
.roadmap-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.roadmap-col li { position: relative; padding-left: 16px; color: var(--muted); font-size: 10.5px; line-height: 1.7; }
.roadmap-col li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border: 1px solid var(--muted-2); }
.roadmap-col li.done { color: var(--cream-dim); }
.roadmap-col li.done::before { background: var(--teal); border-color: var(--teal); }
.packaging-card {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 30px;
  align-items: center;
  border: 1px solid rgba(255,70,85,.25);
  background: linear-gradient(110deg, rgba(255,70,85,.06), transparent 55%);
  padding: 30px 32px;
}
.packaging-copy h3 { margin: 7px 0 10px; font-size: 25px; letter-spacing: -.03em; }
.packaging-copy p { margin: 0; max-width: 720px; color: var(--cream-dim); font-size: 12px; line-height: 1.85; }
.packaging-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.packaging-tags span { border: 1px solid var(--line); padding: 3px 7px; color: var(--muted); font-family: var(--display); font-size: 7.5px; letter-spacing: .1em; }
.packaging-status { border-left: 1px solid var(--line); padding-left: 28px; }
.packaging-status > span { display: block; font-family: var(--display); font-size: 8px; letter-spacing: .15em; color: var(--muted); }
.packaging-status > b { display: block; font-family: var(--display); font-size: 56px; line-height: 1; letter-spacing: -.03em; color: var(--red); }
.packaging-status > small { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.status-bar { height: 2px; background: rgba(236,232,225,.1); margin-top: 12px; }
.status-bar i { display: block; width: 100%; height: 100%; background: var(--red); }

/* ---------- footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px var(--pad);
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 9.5px;
}
.footer-brand { font-family: var(--display); font-size: 13px; letter-spacing: .06em; color: var(--cream-dim); white-space: nowrap; }
.footer-brand span { color: var(--red); }
.footer-brand small { font-size: 8px; color: var(--muted-2); margin-left: 4px; }
.site-footer p { margin: 0; }
.footer-meta { display: flex; gap: 16px; margin-left: auto; font-family: var(--display); font-size: 8px; letter-spacing: .12em; white-space: nowrap; }

/* ---------- modal / toast ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4,6,8,.72);
  backdrop-filter: blur(8px);
}
.modal {
  width: min(430px, 100%);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  padding: 28px 30px 24px;
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
  animation: modalIn .25s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: scale(.97) translateY(8px); } to { opacity: 1; transform: none; } }
.modal-kicker { font-family: var(--display); font-size: 8px; letter-spacing: .18em; color: var(--red); }
.modal h3 { margin: 8px 0 8px; font-size: 20px; letter-spacing: -.02em; }
.modal p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.modal-field { display: block; margin-top: 16px; }
.modal-field span { display: block; color: var(--muted); font-family: var(--display); font-size: 8px; letter-spacing: .14em; margin-bottom: 6px; }
.modal-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  background: rgba(236,232,225,.04);
  color: var(--cream);
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: .06em;
}
.modal-field input:focus { outline: none; border-color: var(--red); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  transform: translate(-50%, 16px);
  padding: 10px 16px;
  background: var(--cream);
  color: #10151a;
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal utilities ---------- */
.reveal { animation: reveal .55s var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.delay-1 { animation-delay: .07s; }
.delay-2 { animation-delay: .14s; }
.delay-3 { animation-delay: .21s; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav-item { padding: 0 11px; }
  .nav-item span { display: none; }
  .offline-pill { display: none; }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); gap: 40px; }
  .visual-frame { height: 470px; }
  .role-bars { margin-top: 10px; }
  .report-body-grid { grid-template-columns: 1fr; }
  .report-section { border-right: 0; }
  .report-section:nth-child(2n) { border-right: 0; }
}
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 52px; }
  .hero-visual { display: none; }
  .hero-lead { max-width: 700px; }
  .module-grid { grid-template-columns: 1fr 1fr; }
  .module-card { border-bottom: 1px solid var(--line); }
  .module-card:nth-child(2) { border-right: 0; }
  .module-card:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .result-grid { grid-template-columns: 1fr; }
  .role-result-hero { min-height: 380px; }
  .game-result-hero { grid-template-columns: 1fr; }
  .profile-top { grid-template-columns: 1fr; }
  .report-hero { grid-template-columns: 1fr; }
  .report-role { border-right: 0; border-bottom: 1px solid var(--line); }
  .report-section.full .training-list { grid-template-columns: 1fr 1fr; }
  .report-section.full .agent-list { grid-template-columns: 1fr 1fr; }
  .roadmap-grid { grid-template-columns: 1fr 1fr; }
  .packaging-card { grid-template-columns: 1fr; }
  .packaging-status { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .packaging-status > b { font-size: 40px; }
  .status-bar { width: 100%; flex-basis: 100%; }
  .game-intro { grid-template-columns: 1fr; }
  .protocol-row { grid-template-columns: 1fr 1fr; }
  .report-toolbar { flex-wrap: wrap; }
}
@media (max-width: 820px) {
  .topbar { height: auto; min-height: 68px; flex-wrap: wrap; gap: 10px; padding-top: 12px; }
  .brand { margin-right: auto; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; height: 36px; margin-left: 0; }
  .nav-item { padding: 0 12px; font-size: 11px; }
  .nav-item::after { left: 12px; right: 12px; }
  .hero { padding-top: 38px; }
  .hero h1 { font-size: clamp(48px, 12vw, 76px); }
  .hero-meta { gap: 24px; }
  .module-grid { grid-template-columns: 1fr; }
  .module-card { border-right: 0 !important; }
  .module-card:last-child { grid-column: auto; }
  .home-strip { flex-wrap: wrap; gap: 10px; padding: 16px 0; }
  .strip-disclaimer { margin-left: 0; }
  .quiz-layout { display: block; }
  .quiz-rail { display: none; }
  .quiz-main { max-width: 720px; margin: 0 auto; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .result-head { flex-direction: column; align-items: flex-start; }
  .result-lower { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr; }
  .protocol-row { grid-template-columns: 1fr; }
  .game-start-row { flex-direction: column; align-items: stretch; }
  .btn-start { width: 100%; }
  .arena { min-height: 460px; height: 62vh; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .game-result-lower { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .report-banner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .report-id { text-align: left; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .site-footer { flex-wrap: wrap; gap: 8px 18px; }
  .footer-meta { margin-left: 0; }
}
@media (max-width: 560px) {
  :root { --pad: 16px; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 19px; }
  .topbar-actions { gap: 8px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .question-card h3 { font-size: 22px; }
  .option { grid-template-columns: 30px 1fr; gap: 12px; padding: 14px; }
  .option-arrow { display: none; }
  .option-key { width: 26px; height: 26px; font-size: 10px; }
  .option-text { font-size: 13px; }
  .result-bottom-cta { flex-direction: column; align-items: stretch; }
  .result-bottom-cta .actions .btn { flex: 1; }
  .role-result-hero { padding: 26px 24px; }
  .role-fit-row { gap: 16px; }
  .fit-ring { width: 100px; height: 100px; }
  .fit-ring b { font-size: 30px; }
  .analysis-panel, .insight-card, .panel { padding: 22px 20px; }
  .role-bar { grid-template-columns: 54px 1fr 28px; }
  .hud-cell b { font-size: 28px; }
  .hud-cell { min-width: 76px; }
  .hud-timer > b { font-size: 21px; }
  .hud-timer > i { width: 100px; }
  .game-hud { padding: 16px; }
  .hud-mini { min-width: 70px; }
  .hud-mode { display: none; }
  .grade-panel { padding: 26px 22px; gap: 20px; }
  .grade-letter { font-size: 100px; }
  .history-item { grid-template-columns: 48px 1fr 58px; }
  .history-date { display: none; }
  .report-section { padding: 22px 20px; }
  .report-section.full .training-list { grid-template-columns: 1fr; }
  .report-section.full .agent-list { grid-template-columns: 1fr 1fr; }
  .report-metrics { grid-template-columns: 1fr 1fr; }
  .site-footer p { width: 100%; }
  .arena-quit { top: 12px; right: 12px; }
}

/* ---------- print ---------- */
@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff !important; color: #111 !important; }
  .topbar, .site-footer, .report-toolbar .actions, .ambient, .noise, .modal-backdrop, .toast { display: none !important; }
  .screen { display: none !important; }
  #screen-report { display: block !important; }
  .page-wrap { padding: 0; max-width: none; }
  .report-toolbar { margin-bottom: 8px; }
  .report-toolbar .left span { color: #b72736; }
  .report-toolbar .left b { color: #444; }
  .report-sheet { border-color: #ccc; background: #fff; }
  .report-banner, .report-role, .report-chart, .report-section { background: #fff !important; border-color: #ddd !important; }
  .report-banner h1, .report-role h2, .report-section h3, .report-metric b, .agent-big b, .training-item b { color: #111 !important; }
  .report-role p, .report-section p, .training-item p, .report-metric span, .report-banner p, .report-metric b small { color: #444 !important; }
  .report-metric { background: #fff !important; }
  .report-foot { color: #777 !important; }
  .report-role .role-glyph { color: #333 !important; }
  .radar-label { fill: #555 !important; }
  .radar-value { fill: #111 !important; }
  .report-section { break-inside: avoid; }
}
