/* MIMAI page extras: the demo player, the takeover. Ink and paper only. */

/* ---------------------------------------------------- the demo player */
.vn { position: relative; max-width: 1040px; border: 1px solid var(--paper); background: var(--ink); outline: none; }
.vn:focus-visible { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--thought); }
.vn-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); border-bottom: 1px solid var(--paper); }
/* the shot has the game's own caption baked into its bottom fifth: crop it off */
.vn-bg { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transform: scale(1.27); transform-origin: 50% 2%; }
.vn-stage[data-bg="dark"] .vn-bg { filter: brightness(.18) contrast(1.3); }
.vn-stage[data-bg="black"] .vn-bg { visibility: hidden; }
.vn-stage.cut { animation: vn-cut .3s steps(3) backwards; }
@keyframes vn-cut { 0% { clip-path: inset(0 0 100% 0); } 100% { clip-path: inset(0); } }
.vn-hud {
  position: absolute; right: 12px; top: 10px; display: flex; gap: 12px;
  font: 22px/1 var(--f-term); color: var(--thought); background: var(--ink); padding: 4px 10px;
}
.vn-hud .vn-time { color: var(--paper); }
.vn-centered {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; white-space: pre-line;
  font: italic clamp(18px, 2.4vw, 28px)/1.6 var(--f-pixel); color: var(--paper); padding: 20px;
}
.vn-centered[hidden] { display: none; }

.vn-box { position: relative; padding: 18px 28px 22px; min-height: 8.2em; font-size: clamp(18px, 1.9vw, 23px); line-height: 1.55; cursor: inherit; }
.vn-box[hidden] { display: none; }
.vn-who { display: inline-block; margin-bottom: 8px; padding: 2px 10px; background: var(--paper); color: var(--ink); font: 20px/1.2 var(--f-term); letter-spacing: .06em; }
.vn-who[hidden] { display: none; }
.vn-line { margin: 0; color: var(--thought); }
.vn-line.is-s { color: var(--paper); }
.vn-line.is-her { color: var(--paper); font-size: 1.12em; }
.vn-next { position: absolute; right: 22px; bottom: 14px; width: 12px; height: 8px; background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 50% 100%); visibility: hidden; }
.vn-next.on { visibility: visible; animation: vn-bob .8s steps(2) infinite; }
@keyframes vn-bob { 50% { transform: translateY(4px); } }

.vn-menu { margin: 30px 22px 22px; }
.vn-menu[hidden] { display: none; }

.vn-cover {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 24px;
  background:
    conic-gradient(rgba(11,11,13,.92) 25%, rgba(11,11,13,.6) 0 50%, rgba(11,11,13,.92) 0 75%, rgba(11,11,13,.6) 0) 0 0 / 4px 4px;
}
.vn-cover[hidden] { display: none; }
.vn-cover.is-end { background: var(--ink); }
.vn-hint { font: 20px/1 var(--f-term); color: var(--dim); }
.vn-start { font-size: 22px; padding-inline: 26px; }
.vn-endt { margin: 0; font: 24px/1.3 var(--f-term); color: var(--red); letter-spacing: .04em; }
.vn-ends { margin: 0 0 6px; color: var(--thought); max-width: 30em; }
.vn-ends.dim { color: var(--dim); font-size: 16px; }

@media (max-width: 640px) {
  .vn-box { padding: 14px 16px 20px; min-height: 9.5em; }
  .vn-menu { margin: 26px 10px 14px; }
  .vn-menu .t { font-size: 20px; }
  .vn-hud { font-size: 18px; right: 6px; top: 6px; }
}

/* the right column next to "her thoughts arrive in a box": what the box looks like */
#wake-box li .item { color: var(--thought); }

/* ---------------------------------------------------- she notices */
.taken .h-l { color: var(--red); }
.taken .statusbar b { background: var(--red); color: var(--ink); padding: 0 6px; }
.taken .band .track { color: var(--red); }
.take-box {
  position: fixed; left: 50%; bottom: calc(var(--frame) + 60px); transform: translateX(-50%); z-index: 92;
  width: min(560px, calc(100vw - 2 * var(--frame) - 24px)); box-shadow: 8px 8px 0 rgba(0,0,0,.75);
  animation: take-in .3s steps(4) backwards;
}
.take-q { margin: 0 0 14px 12px; min-height: 1.5em; font-size: 22px; color: var(--paper); }
.take-box.bye { animation: take-out .3s steps(3) forwards; }
@keyframes take-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes take-out { from { clip-path: inset(0); } to { clip-path: inset(0 0 100% 0); } }

@media (prefers-reduced-motion: reduce) {
  .vn-stage.cut, .take-box, .take-box.bye, .vn-next.on { animation: none; }
}
