/*
 * Story Viewer in the v2 design (2026-11-10), loaded by template-parts/viewer-v2.php after service-v2.css.
 * service-v2.css draws the page; viewer-pages.css (enqueued in the head) draws the player, the ring and the
 * wait panel. This sheet only gives those parts their tokens inside .v2 and fits the viewer's own form
 * into the v2 tool card. Logical properties, like the rest of v2.
 */
.vv2 {
    --gsv-ink: #16142b;
    --gsv-body: #4b4866;
    --gsv-muted: #6b6886;
    --gsv-line: #e7e4f3;
    --gsv-tint: #f7f6fd;
    --gsv-link: #4f3fc9;
    --gsv-brand-a: #667eea;
    --gsv-brand-b: #764ba2;
    --gsv-ring: conic-gradient(from 210deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
    --gsv-radius: 18px;
}
.vv2 button:focus:not(:focus-visible) { outline: none; }

/* The form: an @ in front of the username, the v2 paste button, and the v2 gradient button. */
.vv2-at {
    position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); z-index: 1;
    color: var(--v2-muted); font-weight: 800; font-size: 17px; pointer-events: none;
}
.vv2 .v2-field .v2-input { padding-inline-start: 36px; }
.vv2 .gsv-go {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 56px; margin: 0; padding: 0 24px;
    border: 0; border-radius: 14px;
    background: linear-gradient(135deg, var(--v2-brand-a), var(--v2-brand-b));
    color: #ffffff; font-weight: 800; font-size: 17px; line-height: 1; font-family: inherit; letter-spacing: .01em;
    box-shadow: 0 10px 22px -8px rgba(102, 126, 234, .7);
    cursor: pointer; transition: filter .15s ease, box-shadow .15s ease;
}
.vv2 .gsv-go:hover { filter: brightness(1.06); box-shadow: 0 14px 26px -8px rgba(102, 126, 234, .8); }
.vv2 .gsv-go:active { filter: brightness(.96); }
.vv2 .gsv-go[disabled] { cursor: progress; }
.vv2 .v2-tool .gsv-status { max-width: none; margin: 12px 0 0; }
.vv2 .v2-hint { margin-top: 8px; font-size: 14px; color: var(--v2-body); text-align: center; }

/* The result sits between the hero and the answer, as wide as the player needs. */
.vv2 .gsv-result { max-width: 720px; margin: 0 auto; padding: 28px 16px 12px; }
.vv2 .gsv-sub { margin: 18px 0 8px; font-size: 15px; line-height: 1.3; letter-spacing: 0; }
.vv2 .gsv-hl-row { list-style: none; }

/* "What you can type": each line is one input shape, set as code. */
.vv2 .v2-links code { overflow-wrap: anywhere; }

@media (min-width: 640px) {
    .vv2 .gsv-go { width: auto; min-width: 170px; }
}
