@font-face {
  font-family:Huninn;
  src:url("assets/display.ttf") format("truetype");
  font-weight:400;
  font-display:swap;
}

@font-face {
  font-family:HuninnSwift;
  src:url("assets/display.woff2") format("woff2");
  font-weight:400;
  font-display:swap;
}

:root {
  --ink:#29263b;
  --sub:#625966;
  --paper:#fffaf2;
  --pink:#ffabc7;
  --rose:#d93670;
  --line:2px solid var(--ink);
  --head:Huninn,"Microsoft JhengHei",sans-serif;
  --body:Huninn,"Microsoft JhengHei",system-ui,sans-serif;
  --latin:"Arial Narrow","Impact","Arial Black",sans-serif;
  --gutter:clamp(20px,5.5vw,88px);
}

:root {
  --head:HuninnSwift,Huninn,"Microsoft JhengHei",sans-serif;
  --body:HuninnSwift,Huninn,"Microsoft JhengHei",system-ui,sans-serif;
}

*,*::before,*::after {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:17px/1.55 var(--body);
  overflow-x:clip;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:20px;
}

h1,h2,h3,p {
  margin:0;
}

h1,h2,h3,strong {
  font-family:var(--head);
}

button,a {
  font:inherit;
  color:inherit;
  touch-action:manipulation;
}

button {
  cursor:pointer;
}

a {
  text-decoration:none;
}

button:focus-visible,a:focus-visible,summary:focus-visible {
  outline:3px solid #185ba8;
  outline-offset:4px;
}

img {
  display:block;
  max-width:100%;
}

button {
  background:none;
}

.wrap,.head-wrap,.hero-wrap,.foot-wrap {
  width:min(100%,1500px);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

.site-head {
  background:var(--paper);
  border-bottom:var(--line);
  position:relative;
  z-index:2;
}

.head-wrap {
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand {
  display:inline-flex;
  align-items:center;
  gap:13px;
}

.brand img {
  width:120px;
  height:45px;
  object-fit:contain;
}

.brand>span {
  border-left:1px solid #a59aa2;
  padding-left:14px;
  font-size:15px;
  font-weight:bold;
  line-height:1.3;
}

.head-nav,.head-nav a,.foot-links,.button,.round,.text-button,.duration,.gesture-hint,.scene-name,.book-actions,.inline-links,.quiz-top,.replay-links {
  display:flex;
  align-items:center;
}

.head-nav {
  gap:clamp(12px,2.8vw,42px);
  font-size:14px;
  font-weight:bold;
}

.head-nav a {
  gap:6px;
}

.head-nav a:hover,.foot-links button:hover,.sub-link:hover {
  text-decoration:underline;
  text-underline-offset:4px;
}

.icon {
  display:inline-block;
  width:1.17em;
  height:1.17em;
  vertical-align:-.14em;
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.hero {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:#ffafc9;
  border-bottom:var(--line);
}

.hero::before,.quiz-main::before,.result-banner::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  pointer-events:none;
  background-image:radial-gradient(#c85786 1px,transparent 1.25px);
  background-size:7px 7px;
  opacity:.49;
  mask-image:linear-gradient(115deg,#0000 12%,#0000 34%,#000 98%);
}

.hero::after {
  content:"";
  position:absolute;
  z-index:-1;
  inset:auto -12% -160px -20%;
  height:240px;
  transform:rotate(-8deg);
  background:#ff99bc;
}

.hero-wrap {
  display:grid;
  grid-template-columns: .93fr 1.07fr;
  min-height:clamp(530px,41vw,660px);
  position:relative;
  align-items:center;
}

.hero-copy {
  position:relative;
  z-index:3;
  padding-block:58px 55px;
  pointer-events:none;
}

.hero-copy a {
  pointer-events:auto;
}

.hero-copy h1 {
  font:900 clamp(52px,5.9vw,92px)/1.11 var(--head);
  letter-spacing:-.075em;
  width:max-content;
  max-width:100%;
  transform:rotate(-2deg);
  transform-origin:left bottom;
  -webkit-text-stroke:1.5px var(--ink);
}

.hero-copy h1>span {
  display:inline-block;
  color:var(--paper);
  -webkit-text-stroke:2.4px var(--ink);
  paint-order:stroke fill;
  text-shadow:3px 4px 0 var(--ink);
}

.question-mark {
  display:inline-block;
  transform:rotate(7deg);
  margin-left:.02em;
}

.hero-copy p {
  font-size:clamp(16px,1.45vw,22px);
  line-height:1.65;
  margin:24px 0 26px;
}

.button {
  width:fit-content;
  justify-content:center;
  gap:14px;
  min-height:48px;
  padding:10px 22px;
  border:var(--line);
  border-radius:9px;
  font-weight:800;
  box-shadow:3px 3px 0 var(--ink);
  transition:transform .18s,box-shadow .18s;
}

.button:hover,.round:hover,.choice:hover {
  transform:translate(-1px,-2px);
  box-shadow:4px 5px 0 var(--ink);
}

.button:active,.round:active,.choice:active {
  transform:translate(2px,2px);
  box-shadow:none;
}

.primary {
  background:var(--ink);
  color:white;
  box-shadow:3px 3px 0 var(--paper),4.5px 4.5px 0 var(--ink);
}

.primary:hover {
  box-shadow:4px 4px 0 var(--paper),5.5px 5.5px 0 var(--ink);
}

.secondary {
  background:var(--paper);
}

.hero-start {
  padding:13px 25px;
  min-width:176px;
  font-size:20px;
  justify-content:space-between;
}

.duration {
  gap:7px;
  font-size:13px;
  margin:16px 0 0 2px;
}

.duration span {
  padding-inline:3px;
}

.hero-art {
  height:clamp(415px,33.8vw,522px);
  width:min(100%,640px);
  justify-self:center;
  position:relative;
  isolation:isolate;
}

.orbit {
  position:absolute;
  border:3px solid #fff5e5;
  border-radius:50%;
  inset:14% -8% 19% -4%;
  transform:rotate(-24deg);
  z-index:-1;
  opacity:.95;
}

.spark {
  position:absolute;
  color:var(--paper);
  font:normal 68px/.9 Georgia,serif;
  -webkit-text-stroke:1.8px var(--ink);
  z-index:3;
  pointer-events:none;
}

.spark-a {
  left:1%;
  top:4%;
  transform:rotate(8deg);
}

.spark-b {
  right:1%;
  top:3%;
  font-size:45px;
}

.spark-c {
  right:0;
  bottom:5%;
  font-size:57px;
}

.hero-card {
  position:absolute;
  width:49%;
  height:85%;
  transform:rotate(var(--angle));
  animation:card-enter .65s cubic-bezier(.2,.85,.24,1) both;
}

.hero-card-face {
  width:100%;
  height:100%;
  padding:7px 7px 0;
  border:2.8px solid var(--ink);
  border-radius:15px;
  background:var(--paper);
  box-shadow:5px 6px 0 var(--ink);
  pointer-events:none;
}

.card-tani {
  --angle:9deg;
  --hover-turn:-5deg;
  --hover-shift:5px;
  right:3%;
  top:7%;
  --art:#a2d6ed;
  --artdots:#608fb9;
}

.card-suzuki {
  --angle:-10deg;
  --hover-turn:5deg;
  --hover-shift:-5px;
  left:6%;
  top:10%;
  --art:#f87fac;
  --artdots:#c34e7e;
  animation-delay:.07s;
}

.card-frame {
  position:relative;
  height:calc(100% - 40px);
  overflow:hidden;
  border:1.5px solid var(--ink);
  border-radius:7px 7px 1px 1px;
  background-color:var(--art);
  background-image:radial-gradient(var(--artdots) .9px,transparent 1.2px);
  background-size:6px 6px;
}

.card-frame::before {
  content:"";
  position:absolute;
  border:1.5px solid #fff9;
  inset:7px;
  z-index:1;
  pointer-events:none;
}

.card-frame img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  position:relative;
}

@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .hero-card-face {
    transition:transform .34s cubic-bezier(.22,.8,.25,1),box-shadow .34s ease-out;
  }
  .hero-card .card-frame img {
    transition:transform .45s cubic-bezier(.22,.8,.25,1);
    transform-origin:center 42%;
  }
  .hero-card:hover {
    z-index:2;
  }
  .hero-card:hover .hero-card-face {
    transform:translate(var(--hover-shift),-14px) rotate(var(--hover-turn)) scale(1.035);
    box-shadow:8px 13px 0 var(--ink);
  }
  .hero-card:hover .card-frame img {
    transform:scale(1.065) translateX(var(--hover-shift));
  }
}

.card-corner {
  position:absolute;
  top:4px;
  left:12px;
  font:900 27px Georgia;
  color:#fff;
  z-index:2;
  text-shadow:1px 1px var(--ink);
}

.card-title {
  display:flex;
  flex-direction:column;
  position:absolute;
  bottom:6px;
  left:12px;
  color:white;
  letter-spacing:.015em;
  transform:skew(-6deg);
  filter:drop-shadow(2px 2px 0 var(--ink));
}

.card-title small,.card-title b {
  font-family:Impact,"Arial Black",sans-serif;
  line-height:.95;
  paint-order:stroke fill;
  -webkit-text-stroke:2.4px var(--ink);
}

.card-title small {
  font-size:clamp(14px,1.35vw,21px);
  letter-spacing:.075em;
}

.card-title b {
  font-size:clamp(34px,3.45vw,57px);
}

.card-foot {
  height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 5px;
  gap:4px;
}

.card-foot strong {
  font-size:16px;
}

.card-foot>span {
  font:700 10px/1 monospace;
  letter-spacing:.08em;
}

.cast-section {
  padding-block:46px 56px;
}

.section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:22px;
}

.section-head h2,.book-section h2 {
  font-size:clamp(29px,3vw,43px);
  line-height:1.1;
  letter-spacing:-.06em;
  -webkit-text-stroke:.5px currentColor;
}

.heading-dot {
  color:var(--rose);
}

.section-head p {
  font-size:15px;
  color:var(--sub);
  margin-top:8px;
}

.shelf-controls {
  display:flex;
  gap:8px;
}

.round {
  border:var(--line);
  border-radius:50%;
  width:39px;
  height:39px;
  justify-content:center;
  background:var(--paper);
  transition:.15s;
}

.round:disabled {
  opacity:.3;
  pointer-events:none;
}

.round .icon {
  width:17px;
}

.cast-shelf {
  display:flex;
  overflow-x:auto;
  scroll-snap-type:x proximity;
  gap:clamp(12px,1.55vw,22px);
  padding:4px 4px 9px 0;
  scrollbar-width:thin;
  scrollbar-color:#d7bfbe transparent;
}

.cast-tile {
  border:0;
  padding:0;
  text-align:left;
  flex:0 0 calc((100% - 5 * clamp(12px,1.55vw,22px))/6);
  scroll-snap-align:start;
  min-width:138px;
}

.tile-image {
  display:block;
  position:relative;
  overflow:hidden;
  aspect-ratio:1.23;
  border:var(--line);
  border-radius:9px;
  background:var(--color);
  background-image:radial-gradient(#29263b35 .9px,transparent 1.3px);
  background-size:6px 6px;
}

.tile-image img {
  width:100%;
  height:100%;
  object-fit:contain;
  transition:transform .25s;
}

.cast-tile:hover img {
  transform:scale(1.075) rotate(-2deg);
}

.cast-tile strong {
  font-size:18px;
}

.tile-meta {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:5px;
  margin:7px 2px 0;
}

.tile-meta small {
  font:bold 10px/1.2 monospace;
  color:var(--sub);
}

.foot-wrap {
  border-top:1px solid #c4b7ba;
  padding-block:19px 23px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
}

.foot-copy {
  font-size:12px;
  color:var(--sub);
}

.foot-links {
  gap:18px;
  flex-wrap:wrap;
}

.foot-links button,.sub-link {
  border:0;
  padding:0;
  background:none;
  font-size:13px;
  text-underline-offset:4px;
}

.skip {
  position:absolute;
  transform:translateY(-150%);
  background:var(--paper);
  padding:8px;
  z-index:7;
}

.skip:focus {
  transform:none;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@keyframes card-enter {
  from {
    opacity:0;
    transform:translateY(22px) rotate(calc(var(--angle) - 7deg));
  }
  to {
    opacity:1;
    transform:translateY(0) rotate(var(--angle));
  }
}

.quiz-main,.result-banner {
  background:#ffc5d6;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border-bottom:var(--line);
}

.quiz-main::before,.result-banner::before {
  mask-image:linear-gradient(125deg,#000a,transparent 45%,#000);
  background-size:8px 8px;
}

.quiz-main {
  min-height:calc(100svh - 164px);
  padding:25px var(--gutter) 38px;
}

.play-wrap {
  max-width:580px;
  margin:auto;
}

.quiz-top {
  justify-content:space-between;
  gap:12px;
}

.text-button {
  border:0;
  padding:4px 0;
  gap:6px;
  font-size:15px;
}

.page-count {
  font:700 19px/1.2 monospace;
  letter-spacing:.04em;
}

.progress-line {
  height:7px;
  border:1.5px solid var(--ink);
  border-radius:12px;
  background:var(--paper);
  margin:9px 0 23px;
  overflow:hidden;
}

.progress-line>div {
  height:100%;
  background:var(--ink);
  transition:width .25s;
}

.quiz-pile {
  position:relative;
  isolation:isolate;
  perspective:1100px;
  margin:0 5px;
}

.quiz-pile::before,.quiz-pile::after {
  content:"";
  position:absolute;
  border:var(--line);
  inset:5px 3px -3px;
  background:#ffd46f;
  border-radius:16px;
  transform:rotate(-1.8deg);
  z-index:-2;
}

.quiz-pile::after {
  transform:rotate(1.7deg);
  background:#afddeb;
  z-index:-1;
}

.quiz-card {
  background:var(--paper);
  border:2.5px solid var(--ink);
  border-radius:15px;
  box-shadow:3px 4px 0 var(--ink);
  padding:9px;
  position:relative;
  touch-action:pan-y;
  user-select:none;
  transform-origin:50% 90%;
  transition:transform .16s;
}

.quiz-card.dragging {
  transition:none;
  cursor:grabbing;
}

.quiz-card.from-stack {
  animation:from-stack .28s ease-out;
}

.quiz-card.throw-left,.quiz-card.throw-right {
  animation:throw-card .27s ease-in both;
  --exit:-135px;
  --rotate:-12deg;
}

.quiz-card.throw-right {
  --exit:135px;
  --rotate:12deg;
}

@keyframes from-stack {
  from {
    transform:translateY(7px) scale(.97);
    opacity:.55;
  }
  to {
    transform:none;
    opacity:1;
  }
}

@keyframes throw-card {
  to {
    opacity:0;
    transform:translateX(var(--exit)) rotate(var(--rotate));
  }
}

.question-illustration {
  height:clamp(136px,19vh,193px);
  border:1.5px solid var(--ink);
  border-radius:7px 7px 2px 2px;
  position:relative;
  overflow:hidden;
  background:#ddc7dc;
}

.question-illustration img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 38%;
  pointer-events:none;
}

.illus-number {
  position:absolute;
  left:10px;
  top:8px;
  font:900 36px/.95 Impact,"Arial Black",sans-serif;
  color:white;
  -webkit-text-stroke:1.4px var(--ink);
  paint-order:stroke fill;
  text-shadow:2px 2px var(--ink);
}

.screen-spark {
  position:absolute;
  right:10px;
  bottom:1px;
  font:38px/1 Georgia;
  color:#fff4b8;
  -webkit-text-stroke:1.4px var(--ink);
}

.question-text {
  padding:18px 15px 14px;
}

.scene-name {
  font-size:13px;
  font-weight:bold;
  color:#a62353;
  letter-spacing:.05em;
  margin-bottom:7px;
}

.question-text h1 {
  font-size:clamp(23px,2.6vw,33px);
  line-height:1.36;
  letter-spacing:-.04em;
  outline:0;
}

.option-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin:0 8px 8px;
}

.choice {
  width:100%;
  display:flex;
  align-items:center;
  gap:9px;
  border:var(--line);
  background:#ffe3ed;
  border-radius:7px;
  box-shadow:2px 3px var(--ink);
  padding:10px 12px;
  min-height:64px;
  text-align:left;
  font-size:15px;
  line-height:1.45;
  transition:.15s;
}

.choice-right {
  background:#def0f4;
}

.choice-direction {
  display:flex;
  flex:none;
}

.choice[aria-pressed="true"] {
  box-shadow:inset 0 0 0 2px var(--ink);
  background:#ffcf6a;
}

.gesture-hint {
  justify-content:center;
  gap:8px;
  color:#664558;
  font-size:13px;
  margin:19px auto 13px;
}

.why-question {
  border-top:1px solid #9d7283;
  padding:10px 0 0;
  font-size:14px;
}

.why-question summary,dialog summary {
  cursor:pointer;
  font-weight:700;
}

.why-question p {
  margin:7px 0;
}

.source-link,.read-on,.sub-link {
  text-decoration:underline;
  text-underline-offset:3px;
}

.source-link {
  font-size:14px;
  overflow-wrap:anywhere;
}

.source-link .icon {
  width:11px;
}

.result-layout {
  display:grid;
  grid-template-columns: minmax(240px,.82fr) 1.18fr;
  gap:clamp(30px,6vw,95px);
  align-items:center;
  padding-block:50px;
}

.result-card-wrap {
  perspective:1100px;
  display:grid;
  place-items:center;
}

.result-art-card {
  width:clamp(230px,23vw,320px);
  border:3px solid var(--ink);
  border-radius:12px;
  background:var(--paper);
  box-shadow:5px 5px 0 var(--ink);
  padding:6px 6px 0;
  transform:rotate(-5deg);
  animation:reveal .8s cubic-bezier(.17,.72,.2,1) both;
}

@keyframes reveal {
  0% {
    transform:translateY(18px) rotate(-10deg) rotateY(110deg);
    opacity:0;
  }
  35% {
    opacity:1;
  }
  100% {
    transform:rotate(-5deg) rotateY(0);
  }
}

.result-picture {
  aspect-ratio:1;
  position:relative;
  overflow:hidden;
  border:1.5px solid var(--ink);
  border-radius:5px;
  background:var(--color);
  background-image:radial-gradient(#29263b42 1px,transparent 1.2px);
  background-size:6px 6px;
}

.result-picture img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.result-stamp {
  position:absolute;
  bottom:6px;
  left:10px;
  font:900 clamp(30px,4vw,53px)/1 Impact,"Arial Black",sans-serif;
  color:white;
  -webkit-text-stroke:2px var(--ink);
  paint-order:stroke fill;
  text-shadow:2px 2px var(--ink);
  transform:skew(-7deg);
}

.match-lead {
  font-weight:bold;
}

.result-copy h1 {
  font-size:clamp(44px,6.7vw,87px);
  font-weight:400;
  line-height:1.15;
  margin:3px 0 12px;
  letter-spacing:-.035em;
}

.tags {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:10px 0 16px;
}

.tags span {
  border:1px solid var(--ink);
  border-radius:50px;
  background:#fff5e9;
  padding:3px 11px;
  font-size:13px;
}

.result-copy h2 {
  font-size:clamp(22px,2.4vw,32px);
  line-height:1.3;
  margin:17px 0 8px;
}

.result-copy>p:not(.match-lead) {
  max-width:36em;
  font-size:17px;
}

.read-on {
  display:inline-block;
  margin-top:14px;
  font-size:14px;
  font-weight:bold;
}

.pair-body {
  display:grid;
  grid-template-columns:1.04fr .96fr;
  gap:clamp(25px,5.5vw,85px);
  padding-block:45px 48px;
}

.pair-body h2 {
  font-size:clamp(25px,2.5vw,35px);
  line-height:1.25;
  letter-spacing:-.04em;
}

.reason-list>div {
  padding:13px 0;
  border-bottom:1px solid #dacbd1;
}

.reason-list h3 {
  font-size:17px;
  margin-bottom:4px;
  color:#a32655;
}

.reason-list p,.story-panel p,.book-copy p {
  line-height:1.7;
}

.pair-body .sub-link {
  margin-top:13px;
  font-size:15px;
}

.story-panel {
  border:var(--line);
  background:#ffedf1;
  border-radius:11px;
  align-self:start;
  padding:22px;
  box-shadow:3px 4px 0 var(--ink);
}

.story-panel p {
  margin-top:12px;
}

.book-band {
  border-block:var(--line);
  background:#f8e6db;
}

.book-section {
  display:flex;
  align-items:center;
  gap:clamp(28px,5vw,75px);
  padding-block:38px;
}

.book-cover {
  width:clamp(105px,13vw,165px);
  height:auto;
  box-shadow:5px 6px 0 #29263b;
  border:1px solid var(--ink);
  transform:rotate(-4deg);
  margin-left:4px;
}

.book-copy {
  max-width:710px;
}

.book-copy h2 small {
  font-size:.52em;
  display:inline-block;
}

.book-copy p {
  margin:10px 0;
}

.byline {
  font-size:13px;
  color:var(--sub);
}

.book-actions {
  flex-wrap:wrap;
  gap:13px;
  margin-top:17px;
}

.book-actions .button {
  font-size:15px;
  min-height:40px;
  padding:8px 15px;
}

.replay-links {
  gap:24px;
  padding-block:20px;
  justify-content:center;
  font-size:15px;
}

.replay-links>a {
  display:flex;
  align-items:center;
  gap:6px;
}

.replay-links a:hover {
  text-decoration:underline;
}

.empty-result {
  padding-block:85px;
}

.empty-result p {
  margin:12px 0 24px;
}

.art-credits {
  list-style:none;
  padding:0;
}

.art-credits>li {
  border-bottom:1px solid #d8c6ca;
  padding:10px 0;
}

.art-credits span {
  display:block;
  font-size:12px;
  color:var(--sub);
}

.card-tani .card-title {
  right:10px;
  left:auto;
  text-align:right;
}

.card-tani .card-foot {
  flex-direction:row-reverse;
}

.hero-copy h1 {
  -webkit-text-stroke:.35px var(--ink);
  letter-spacing:-.06em;
}

.question-illustration {
  height:clamp(155px,23vh,220px);
}

.question-illustration img {
  object-position:center 14%;
}

.result-actions {
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  margin-top:17px;
}

.result-actions .read-on {
  margin:0;
}

.result-actions .button {
  font-size:14px;
  min-height:40px;
  padding:7px 12px;
}

.result-actions .button:disabled {
  opacity:.65;
  cursor:progress;
}

#save-status:empty {
  display:none;
}

#save-status:not(:empty) {
  margin-top:12px;
  font-size:13px;
}

dialog {
  max-width:min(620px,calc(100vw - 30px));
  max-height:85svh;
  width:100%;
  padding:0;
  background:var(--paper);
  color:var(--ink);
  border:2.5px solid var(--ink);
  border-radius:14px;
  box-shadow:5px 6px 0 var(--ink);
  overflow:auto;
}

dialog::backdrop {
  background:#221a35a3;
}

.modal-open {
  overflow:hidden;
}

.modal-tools {
  height:0;
  position:sticky;
  top:10px;
  z-index:1;
  display:flex;
  justify-content:flex-end;
  margin-right:11px;
}

.close-dialog {
  width:34px;
  height:34px;
  background:white;
}

.modal-body {
  padding:25px;
}

.modal-body h2 {
  font-size:31px;
  line-height:1.2;
  padding-right:34px;
  margin-bottom:16px;
  letter-spacing:-.04em;
}

.modal-body h3 {
  font-size:19px;
  margin:18px 0 5px;
}

.modal-body p {
  margin:8px 0;
  font-size:16px;
}

.modal-body details {
  margin:13px 0;
  border-top:1px solid #ccbdc4;
  padding-top:10px;
}

.source-cloud {
  display:flex;
  flex-wrap:wrap;
  gap:7px 15px;
  padding:10px 0;
}

.sources-list {
  padding-left:22px;
}

.sources-list li {
  margin:12px 0;
}

.sources-list p {
  font-size:14px;
}

.modal-character {
  position:relative;
  overflow:hidden;
  height:180px;
  border:var(--line);
  border-radius:8px;
  background-color:var(--color);
  background-image:radial-gradient(#29263b35 1px,transparent 1.3px);
  background-size:7px 7px;
}

.modal-character img {
  height:100%;
  width:100%;
  object-fit:contain;
}

.modal-character b {
  position:absolute;
  left:10px;
  bottom:6px;
  font:900 32px/1 Impact,"Arial Black",sans-serif;
  color:white;
  text-shadow:2px 2px 0 var(--ink);
  -webkit-text-stroke:2px var(--ink);
  paint-order:stroke fill;
}

.mini-book {
  padding:0 5px;
  align-items:flex-start;
  gap:19px;
}

.mini-book .book-cover {
  width:83px;
}

.mini-book h2 {
  font-size:21px;
  margin:0;
  padding:0;
}

.mini-book .book-actions {
  gap:10px;
}

.mini-book .button {
  font-size:14px;
}

.answer-log {
  padding-left:22px;
}

.answer-log li {
  margin:12px 0;
}

.answer-log small {
  color:var(--sub);
}

.answer-log p {
  margin:3px 0;
}

@media(max-width:650px) {
  .quiz-main {
    padding:19px 15px 30px;
  }
  .question-illustration {
    height:clamp(113px,22vh,170px);
  }
  .question-text {
    padding:13px 6px 10px;
  }
  .question-text h1 {
    font-size:23px;
  }
  .option-row {
    margin:0 2px 4px;
    gap:7px;
  }
  .choice {
    padding:9px 7px;
    gap:4px;
    align-items:flex-start;
    font-size:14px;
  }
  .choice-direction {
    margin-top:2px;
  }
  .choice-direction .icon {
    width:13px;
  }
  .progress-line {
    margin-bottom:19px;
  }
  .result-layout {
    grid-template-columns:1fr;
    gap:25px;
    padding-block:25px;
  }
  .result-art-card {
    width:179px;
  }
  .result-stamp {
    font-size:28px;
  }
  .result-copy h1 {
    font-size:46px;
    margin:2px 0 7px;
  }
  .result-copy h2 {
    margin:8px 0;
  }
  .result-copy>p:not(.match-lead) {
    font-size:16px;
  }
  .tags {
    margin:8px 0 10px;
  }
  .pair-body {
    grid-template-columns:1fr;
    gap:23px;
    padding-block:29px;
  }
  .story-panel {
    padding:16px;
  }
  .book-section {
    align-items:flex-start;
    gap:18px;
    padding-block:26px;
  }
  .book-cover {
    width:75px;
  }
  .book-copy h2 {
    font-size:25px;
  }
  .book-copy p {
    font-size:15px;
  }
  .book-actions {
    gap:11px;
  }
  .book-actions .button {
    font-size:14px;
  }
  .modal-body {
    padding:19px;
  }
  .modal-body h2 {
    font-size:26px;
  }
  .mini-book {
    display:block;
    padding:0;
  }
  .mini-book .book-cover {
    float:left;
    width:69px;
    margin:3px 17px 8px 0;
  }
  .mini-book p {
    font-size:15px;
  }
  .mini-book .book-actions {
    clear:both;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
  }
}

@media(min-width:1500px) {
  .hero-art {
    height:505px;
  }
}

@media(max-width:920px) {
  .hero-wrap {
    grid-template-columns:.9fr 1.1fr;
    min-height:480px;
  }
  .hero-art {
    height:35vw;
    min-height:310px;
  }
  .hero-copy h1 {
    font-size:clamp(46px,6.1vw,60px);
  }
  .hero-copy p {
    font-size:16px;
  }
  .card-foot {
    height:30px;
  }
  .card-frame {
    height:calc(100% - 30px);
  }
  .card-foot strong {
    font-size:13px;
  }
  .card-foot>span {
    font-size:8px;
  }
  .hero-card-face {
    padding:5px 5px 0;
  }
  .hero-start {
    font-size:18px;
  }
  .cast-tile {
    flex-basis:calc((100% - 3 * 15px)/4);
  }
}

@media(max-width:650px) {
  :root {
    --gutter:21px;
  }
  .head-wrap {
    min-height:61px;
    gap:8px;
  }
  .brand img {
    width:84px;
    height:38px;
  }
  .brand {
    gap:6px;
  }
  .brand>span {
    display:none;
  }
  .head-nav {
    gap:16px;
    font-size:13px;
  }
  .hero-wrap {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    min-height:0;
    padding-top:29px;
    padding-bottom:20px;
  }
  .hero-copy {
    padding:0;
    display:grid;
    justify-items:start;
    grid-template-columns:1fr auto;
    column-gap:8px;
    align-items:center;
  }
  .hero-copy h1 {
    grid-column:1/-1;
    font-size:clamp(44px,9.9vw,60px);
    line-height:1.06;
    -webkit-text-stroke:1px var(--ink);
  }
  .hero-copy h1>span {
    -webkit-text-stroke:1.8px var(--ink);
    text-shadow:2.5px 2.5px 0 var(--ink);
  }
  .hero-copy p {
    grid-column:1/-1;
    margin:14px 0 16px;
    font-size:16px;
    line-height:1.5;
  }
  .hero-start {
    min-width:140px;
    font-size:17px;
    min-height:43px;
    padding:8px 16px;
  }
  .duration {
    justify-self:start;
    font-size:12px;
    gap:5px;
    margin:2px 0 0;
  }
  .hero-art {
    width:min(100%,395px);
    height:min(74vw,298px);
    min-height:0;
    align-self:center;
    margin:15px 0 10px;
  }
  .card-title b {
    font-size:32px;
  }
  .card-title small {
    font-size:13px;
  }
  .card-tani {
    right:5%;
  }
  .card-suzuki {
    left:8%;
  }
  .hero-card {
    width:45%;
    height:86%;
  }
  .hero-card-face {
    box-shadow:3px 4px 0 var(--ink);
    border-width:2px;
    border-radius:10px;
  }
  .card-foot {
    height:27px;
  }
  .card-frame {
    height:calc(100% - 27px);
  }
  .spark-a {
    font-size:41px;
    left:0;
    top:19%;
  }
  .spark-b {
    font-size:32px;
    right:0;
  }
  .spark-c {
    font-size:36px;
    bottom:2%;
  }
  .hero::after {
    height:190px;
    bottom:-145px;
  }
  .cast-section {
    padding-block:30px 36px;
  }
  .section-head {
    margin-bottom:13px;
  }
  .section-head p {
    font-size:13px;
    margin-top:4px;
  }
  .cast-tile {
    flex-basis:36%;
    min-width:107px;
  }
  .round {
    width:32px;
    height:32px;
  }
  .shelf-controls {
    gap:5px;
  }
  .foot-wrap {
    align-items:flex-start;
    flex-direction:column-reverse;
    gap:10px;
  }
  .cast-tile strong {
    font-size:16px;
  }
  .tile-meta small {
    font-size:8px;
  }
}

.brand img {
  width:78px;
  height:52px;
  object-position:left center;
}

@media(max-width:650px) {
  .brand img {
    width:54px;
    height:38px;
  }
  .brand>span {
    display:block;
    font-size:12px;
    padding-left:8px;
  }
  .hero-copy h1 {
    -webkit-text-stroke:.25px var(--ink);
  }
}

@media(max-width:360px) {
  .head-nav {
    gap:9px;
    font-size:12px;
  }
  .hero-copy {
    grid-template-columns:1fr;
  }
  .duration {
    margin-top:10px;
  }
  .hero-copy p {
    font-size:15px;
  }
}
