
:root{
  --shin-accent:#d86f3b;
  --shin-accent-soft:#f0a16d;
  --shin-blue:#8ea4b8;
  --shin-panel:#0b1016;
  --shin-panel-2:#111923;
  --shin-line:rgba(255,255,255,.12);
  --shin-muted:#aab5c0;
}
body.character-file-page[data-shin-dossier] .article-layout{
  grid-template-columns:minmax(0,1fr) 300px;
}
body.character-file-page[data-shin-dossier] .shin-dossier{
  min-width:0;
}
body.character-file-page[data-shin-dossier] .shin-dossier section{
  margin:0 0 54px;
  scroll-margin-top:88px;
}
body.character-file-page[data-shin-dossier] .shin-dossier h2{
  margin:0 0 18px;
  font-size:clamp(1.65rem,3vw,2.35rem);
}
body.character-file-page[data-shin-dossier] .shin-dossier h3{
  margin:0 0 10px;
}
body.character-file-page[data-shin-dossier] .shin-dossier p{
  max-width:78ch;
}
.shin-toc{
  border:1px solid var(--shin-line);
  background:linear-gradient(145deg,var(--shin-panel-2),var(--shin-panel));
  padding:22px;
  margin:0 0 44px;
}
.shin-toc strong{display:block;margin-bottom:12px}
.shin-toc-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px 16px;
}
.shin-toc a{
  color:inherit;
  text-decoration:none;
  padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.shin-toc a:hover{color:var(--shin-accent-soft)}
.shin-fact-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:22px 0 28px;
}
.shin-fact{
  border:1px solid var(--shin-line);
  background:var(--shin-panel);
  padding:16px;
}
.shin-fact span{
  display:block;
  color:var(--shin-muted);
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:6px;
}
.shin-evidence-note,.shin-status-box{
  border-left:4px solid var(--shin-accent);
  background:rgba(216,111,59,.08);
  padding:18px 20px;
  margin:24px 0;
}
.shin-section-image{
  display:block;
  width:100%;
  max-width:900px;
  height:auto;
  margin:24px 0 8px;
  border:1px solid var(--shin-line);
  background:#05070a;
}
.shin-image-caption{
  color:var(--shin-muted);
  font-size:.88rem;
  margin-top:8px;
}
.shin-phase-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin:24px 0;
}
.shin-phase{
  border:1px solid var(--shin-line);
  background:linear-gradient(145deg,#101720,#0a0f15);
  padding:20px;
}
.shin-phase b{
  display:inline-flex;
  width:34px;height:34px;
  border-radius:50%;
  align-items:center;justify-content:center;
  border:1px solid rgba(216,111,59,.45);
  color:var(--shin-accent-soft);
  margin-bottom:12px;
}
.shin-interactive{
  border:1px solid var(--shin-line);
  background:linear-gradient(145deg,#111923,#080c11);
  padding:22px;
  margin:26px 0;
}
.shin-button-row{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin:14px 0 18px;
}
.shin-button-row button,
.shin-choice button,
.shin-random button{
  appearance:none;
  border:1px solid rgba(216,111,59,.48);
  background:#101720;
  color:#eef3f7;
  padding:10px 13px;
  border-radius:4px;
  cursor:pointer;
  font:inherit;
}
.shin-button-row button:hover,
.shin-choice button:hover,
.shin-random button:hover,
.shin-button-row button[aria-pressed="true"],
.shin-choice button[aria-pressed="true"]{
  background:rgba(216,111,59,.18);
  border-color:var(--shin-accent-soft);
}
.shin-panel-output{
  min-height:126px;
  border-top:1px solid var(--shin-line);
  padding-top:18px;
}
.shin-panel-output h3{color:var(--shin-accent-soft)}
.shin-relationship-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.shin-relationship{
  border:1px solid var(--shin-line);
  background:#0d131b;
  padding:18px;
}
.shin-relationship small{
  display:block;
  color:var(--shin-accent-soft);
  text-transform:uppercase;
  letter-spacing:.07em;
  margin-bottom:8px;
}
.shin-mirror-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.shin-mirror-column{
  border:1px solid var(--shin-line);
  background:#0c1219;
  padding:18px;
}
.shin-mirror-column h3{margin-top:0}
.shin-lab-progress{
  height:8px;
  background:#090d12;
  border:1px solid var(--shin-line);
  margin:12px 0 22px;
  overflow:hidden;
}
.shin-lab-progress span{
  display:block;height:100%;width:0;
  background:linear-gradient(90deg,var(--shin-accent),var(--shin-accent-soft));
  transition:width .2s ease;
}
.shin-scenario{
  border-top:1px solid var(--shin-line);
  padding:20px 0;
}
.shin-scenario:first-of-type{border-top:0}
.shin-choice{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin-top:12px;
}
.shin-result{
  border:1px solid rgba(216,111,59,.4);
  background:rgba(216,111,59,.06);
  padding:20px;
  margin-top:20px;
}
.shin-result-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:16px 0;
}
.shin-meter{
  background:#090d12;
  border:1px solid var(--shin-line);
  padding:12px;
}
.shin-meter strong{display:block;margin-bottom:8px}
.shin-meter-track{
  height:7px;background:#151c24;overflow:hidden
}
.shin-meter-track span{
  display:block;height:100%;width:0;background:var(--shin-accent);
}
.shin-unknown-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.shin-unknown{
  border:1px dashed rgba(255,255,255,.2);
  padding:16px;
  background:rgba(255,255,255,.02);
}
.shin-collecting-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  align-items:start;
}
.shin-collecting-grid figure{margin:0}
.shin-collecting-grid img{
  display:block;
  width:100%;
  height:auto;
  max-height:680px;
  object-fit:contain;
  border:1px solid var(--shin-line);
  background:#05070a;
}
.shin-source-list li{margin-bottom:10px}
.shin-source-list a{overflow-wrap:anywhere}
.shin-random-output{
  border-top:1px solid var(--shin-line);
  padding-top:14px;
  min-height:58px;
}
body.character-file-page[data-shin-dossier] main#article>.article-hero.character-hero{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr)!important;
  align-items:stretch!important;
  width:100%!important;
  max-width:var(--max)!important;
  margin:0 auto!important;
  padding:32px 20px 42px!important;
  overflow:visible!important;
  background:transparent!important;
  box-sizing:border-box!important;
}
body.character-file-page[data-shin-dossier] .article-hero-copy{
  position:relative!important;
  grid-column:1!important;
  grid-row:1!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  min-height:480px!important;
  padding:42px!important;
  border:1px solid var(--line)!important;
  border-right:0!important;
  background:linear-gradient(145deg,#111822,#080b10)!important;
  box-sizing:border-box!important;
}
body.character-file-page[data-shin-dossier] .article-hero-image{
  position:relative!important;
  grid-column:2!important;
  grid-row:1!important;
  min-height:480px!important;
  border:1px solid var(--line)!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  background-position:center center!important;
}
@media(max-width:900px){
  .shin-toc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .shin-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  body.character-file-page[data-shin-dossier] main#article>.article-hero.character-hero{
    grid-template-columns:1fr!important;
    padding:20px 16px 28px!important;
  }
  body.character-file-page[data-shin-dossier] .article-hero-copy{
    grid-column:1!important;grid-row:1!important;min-height:0!important;
    padding:28px 22px!important;border-right:1px solid var(--line)!important;border-bottom:0!important;
  }
  body.character-file-page[data-shin-dossier] .article-hero-image{
    grid-column:1!important;grid-row:2!important;min-height:0!important;
    aspect-ratio:16/9!important;background-size:cover!important;
  }
  body.character-file-page[data-shin-dossier] .article-layout{
    display:block!important;
    width:100%!important;
    padding:30px 16px 72px!important;
    box-sizing:border-box!important;
  }
  body.character-file-page[data-shin-dossier] .article-rail{position:static!important;margin-top:38px}
  .shin-fact-grid,.shin-phase-grid,.shin-relationship-grid,.shin-mirror-grid,.shin-unknown-grid,.shin-collecting-grid{grid-template-columns:1fr}
  .shin-toc-grid{grid-template-columns:1fr}
  .shin-choice{grid-template-columns:1fr}
}
