/* Talk to Joe: a pre-rendered conversation in the style of an early-2000s
   adventure game (js/talk.js). Clips are 640x480; the idle loop sits under the
   line clip so the picture never goes black between lines. */
.talk { gap: 4px; }
.talk-screen {
    position: relative; aspect-ratio: 4 / 3; padding: 2px;
    background: #000; box-shadow: var(--bevel-in); cursor: default;
}
.talk-video { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: cover; display: block; }
.talk-video.is-hidden { visibility: hidden; }
.talk-screen .player-nojs { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
html.js .talk-screen .player-nojs { display: none; }
.talk-subtitle {
    margin: 0; min-height: 50px; padding: 6px 10px;
    background: #000; color: #fff; box-shadow: var(--bevel-in);
    line-height: 1.6; user-select: text;
}
.talk-subtitle:empty::before { content: "\00a0"; }
.talk-choices {
    display: flex; flex-direction: column; gap: 2px; min-height: 108px; padding: 4px;
    background: #fff; box-shadow: var(--bevel-in);
}
.talk-choices button {
    min-height: 22px; padding: 2px 8px; text-align: left;
    background: transparent; box-shadow: none; color: #000080;
}
.talk-choices button::before { content: "\25B8\00a0"; color: var(--accent, #f78cbd); }
.talk-choices button:hover { background: #000080; color: #fff; }
.talk-choices button:focus-visible { outline: 1px dotted #000; outline-offset: -3px; }
.talk-choices button:active { box-shadow: none; padding: 2px 8px; }
.talk-choices .talk-wait { margin: auto; color: #808080; }

@media (max-width: 640px), (max-height: 480px) {
    .talk-subtitle { min-height: 40px; }
    .talk-choices { min-height: 0; }
    .talk-choices button { min-height: 32px; }
}
