:root {
  --ink: #142335;
  --deep: #101d2b;
  --red: #a7291c;
  --paper: #fff3d9;
  --gold: #e9b564;
  --gothic: "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --display: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Noto Serif CJK JP", "MS PMincho", serif;
  font-family: var(--gothic);
  color: var(--ink);
  background: var(--deep);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #097ba0; outline-offset: 4px; }
.shell { width: min(88%, 1400px); margin-inline: auto; }
.skip { position: fixed; top: 0; left: 1rem; background: white; color: var(--ink); z-index: 15; padding: .8rem; transform: translateY(-150%); }
.skip:focus { transform: none; }
.masthead { background: var(--ink); color: var(--paper); border-bottom: 3px solid #b89053; }
.header-inner, .brand, nav, .actions, .hero-format, .cast-heading, .foot-inner, .dialog-bar { display: flex; align-items: center; }
.header-inner { min-height: 76px; justify-content: space-between; gap: 1.5rem; }
.brand { gap: .55rem; color: inherit; text-decoration: none; white-space: nowrap; font: 900 1.65rem/1 var(--display); }
.latin { font-family: Georgia, serif; font-style: italic; font-weight: 900; }
.seal { display: grid; place-items: center; width: 36px; height: 36px; background: #b83221; border: 1px solid #eea373; outline: 1px solid #b83221; outline-offset: 2px; font: 900 1.65rem/1 var(--display); transform: rotate(-4deg); margin-right: .35rem; }
.brand-edition { padding: .34rem .42rem .3rem; border: 1px solid #c9ad78; font: 700 .875rem/1 var(--gothic); color: #f0d79e; letter-spacing: .06em; }
nav { gap: clamp(1.35rem, 3.4vw, 3.7rem); }
nav a, .foot-inner a { text-decoration-thickness: 1px; text-underline-offset: .4em; }
nav a { text-decoration: none; font-size: .9rem; font-weight: 700; padding: .8rem 0; }
nav a:hover { text-decoration: underline; color: #f9cc83; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #ffe6b2; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 26%; }
.hero-inner { min-height: clamp(465px, 42.9vw, 770px); display: flex; align-items: center; }
.hero-copy { padding-block: 2.7rem 4.7rem; }
.hero-format { gap: .65rem; color: #78291c; font-weight: 800; font-size: clamp(.9rem, 1.1vw, 1.1rem); letter-spacing: .1em; }
.lantern { width: 14px; height: 16px; display: inline-block; background: var(--red); border-radius: 45%; border-block: 3px solid var(--ink); }
h1 { margin: 1.2rem 0 1.3rem -.045em; font-family: var(--display); font-size: clamp(2.9rem, 4.65vw, 5.2rem); font-weight: 900; letter-spacing: -.075em; line-height: 1.21; -webkit-text-stroke: .025em currentColor; }
h1 span { display: block; }
h1 span:last-child { color: var(--red); }
.hero-desc { font-size: clamp(1rem, 1.17vw, 1.18rem); font-weight: 650; line-height: 1.9; }
.actions { margin-top: 1.75rem; flex-wrap: wrap; gap: .7rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .82rem 1.3rem; min-height: 46px; color: var(--paper); font-size: .92rem; font-weight: 800; text-decoration: none; border: 1.5px solid var(--ink); }
.primary { background: var(--ink); box-shadow: 3px 3px 0 #ae6f3c; }
.primary:hover { background: #29425a; }
.outline { background: #fff0d6; color: var(--ink); }
.outline:hover { background: #fff9ed; }
.poster-symbol { width: .76rem; height: .96rem; border: 1.5px solid currentColor; background: linear-gradient(currentColor,currentColor) center 65% / 55% 1px no-repeat; }
.info { color: var(--paper); background: var(--ink); border-block: 2px solid #b59a68; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 1.42rem; }
.facts > div { display: flex; align-items: baseline; justify-content: center; gap: clamp(.7rem, 1.8vw, 1.7rem); border-right: 1px solid #63717a; }
.facts > div:last-child { border: 0; }
.facts dt { color: #eacc98; font-size: .875rem; font-weight: 650; letter-spacing: .08em; }
.facts dd { font: 800 clamp(1.04rem, 1.5vw, 1.5rem)/1.4 var(--display); }
.facts dd span { font-family: Georgia, serif; }
.story { background: #fff8e9; padding: clamp(3.8rem, 6vw, 6.5rem) 0; }
.story-grid { display: grid; grid-template-columns: 1fr 1.8fr; align-items: center; gap: 7%; max-width: 1180px; }
.rule { display: block; width: 2.6rem; height: .35rem; background: var(--red); margin-bottom: .9rem; transform: skew(-18deg); }
h2 { font: 900 clamp(2.1rem, 3.6vw, 3.6rem)/1.25 var(--display); letter-spacing: -.045em; }
.prose { max-width: 42em; }
.prose p { font-size: clamp(1rem, 1.18vw, 1.15rem); line-height: 1.95; }
.prose p + p { margin-top: .8rem; }
.cast { padding: clamp(3rem, 5.2vw, 5.8rem) 0; background: var(--ink); color: var(--paper); border-block-start: 5px double #b19765; }
.cast-heading { gap: 1.6rem; margin-bottom: 2rem; }
.line { flex: 1; border-block: 1px solid #93846b; height: 4px; }
.roster { display: grid; grid-template-columns: minmax(230px,.75fr) minmax(360px,1.6fr); gap: clamp(1.6rem, 4.5vw, 5rem); align-items: stretch; }
.lead-card { margin: 0; border: 2px solid var(--gold); background: #edcc92; display:flex; flex-direction:column; }
.portrait { flex:1; min-height: 170px; background: url("./assets/20261123_yutora-key-art.jpg") 78% 12% / auto 136% no-repeat; }
.lead-caption { background: var(--paper); color: var(--ink); border-top: 2px solid var(--ink); padding: .65rem 1.1rem; display: flex; align-items: center; gap: 1rem; }
.lead-caption span { background: var(--red); color: #fff8e9; padding: .22rem .55rem; font-size: .875rem; font-weight: 700; }
.lead-caption h3 { font: 900 1.9rem/1.25 var(--display); }
.locked h3 { font-size: 1rem; font-weight: 650; letter-spacing: .08em; margin: 0 0 1rem; }
.slots { display: grid; list-style: none; grid-template-columns: repeat(3,1fr); gap: .7rem; padding: 0; margin: 0; }
.slots li { position:relative; display: grid; justify-items: center; align-content: center; gap: .2rem; padding: .6rem .2rem; border: 1px solid #8a806d; background: repeating-linear-gradient(-45deg,transparent 0 6px,#ffffff04 6px 8px), #1d2c3c; }
.slots li::before, .slots li::after { content:""; position:absolute; width: 5px; height: 5px; background: var(--gold); }
.slots li::before { top: 0; left: 0; } .slots li::after { right: 0; bottom: 0; }
.mystery-sign { font: 900 2.55rem/1 Georgia, serif; color: #e8d4af; }
.slots li span:last-child { font: 700 .81rem/1.4 "Arial Narrow", Arial, sans-serif; letter-spacing: .1em; color: #ecdcbf; }
footer { border-top: 1px solid #766e5b; background: var(--deep); color: #e9dcca; }
.foot-inner { min-height: 76px; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.foot-inner span { font-family: var(--display); font-weight: 700; }
dialog { max-width: min(92vw, 640px); max-height: 92vh; max-height: 92dvh; padding: 0; background: var(--paper); color: var(--ink); border: 2px solid #bd9661; overflow-y: auto; overscroll-behavior: contain; }
dialog::backdrop { background: #09121dde; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-bar { position: sticky; top: 0; background: var(--ink); color: var(--paper); justify-content: space-between; gap: 1rem; padding: .5rem .85rem; }
.dialog-bar h2 { font: 700 1rem var(--gothic); }
.dialog-bar button { min-height: 38px; cursor: pointer; padding: .25rem .6rem; border: 1px solid #958972; background: transparent; color: inherit; }
.dialog-bar button span { margin-left: .25em; }
dialog img { display: block; width: auto; max-width: 100%; height: auto; max-height: 70vh; margin-inline: auto; }
.poster-original { display: block; text-align: center; padding: .7rem; font-size: .9rem; font-weight: 700; }
@media (min-width: 1650px) { .hero-art img { object-position: center 15%; } }
@media (max-width: 940px) and (min-width: 701px) {
  .shell { width: 92%; }
  .hero-inner { min-height: 410px; }
  .hero-art img { object-position: 55% center; }
  .hero-copy { padding-block: 2rem; }
  h1 { font-size: 4.8vw; }
  .hero-desc { font-size: .99rem; }
  .actions { gap: .55rem; }
  .button { padding-inline: .75rem; }
}
@media (max-width: 700px) {
  .shell { width: 89%; }
  .header-inner { width: 100%; flex-direction: column; gap: 0; min-height: 0; }
  .brand { align-self: flex-start; font-size: 1.4rem; padding: .78rem 0; margin-left: 5.5%; }
  .seal { width: 28px; height: 28px; font-size: 1.35rem; }
  nav { width: 100%; justify-content: space-evenly; gap: 0; border-top: 1px solid #374655; }
  nav a { font-size: .875rem; padding: .65rem .45rem; }
  .hero { display: flex; flex-direction: column; background: #ffe6b2; }
  .hero-art { position: relative; z-index: auto; inset: auto; height: clamp(215px, 54vw, 330px); border-bottom: 2px solid var(--ink); }
  .hero-art img { object-position: 80% 18%; }
  .hero-inner { min-height: 0; position: relative; }
  .hero-copy { padding: 1.55rem 0 1.7rem; width: 100%; }
  h1 { font-size: clamp(2.15rem, 8.9vw, 3.45rem); margin-block: .66rem .75rem; line-height: 1.18; }
  .hero-format { font-size: .875rem; }
  .hero-desc { font-size: 1rem; line-height: 1.72; }
  .actions { margin-top: 1.1rem; gap: .5rem; }
  .button { font-size: .875rem; padding: .6rem .85rem; }
  .facts { width: 96%; padding-block: .9rem; }
  .facts > div { flex-direction:column; align-items:center; gap: .18rem; }
  .facts dt { font-size: .875rem; letter-spacing: 0; }
  .facts dd { font-size: 1.1rem; }
  .story { padding: 2.65rem 0; }
  .story-grid { grid-template-columns: 1fr; gap: 1rem; }
  .desktop-break { display: none; }
  .rule { margin-bottom: .5rem; }
  .cast { padding: 2.45rem 0; }
  .cast-heading { gap: .9rem; margin-bottom: 1.2rem; }
  .roster { grid-template-columns: 1fr; gap: 1.45rem; }
  .portrait { min-height: clamp(185px, 48vw, 300px); background-position: 78% 15%; }
  .slots { gap: .5rem; }
  .slots li span:last-child { font-size: .75rem; letter-spacing: .045em; }
  .foot-inner { font-size: .875rem; min-height: 58px; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }

.facts time { white-space: nowrap; }
.facts time small { font-size: .78em; }
@media (max-width: 360px) { .facts dd { font-size: 1rem; } }
