.stv-quiz {
    display: grid;
    gap: 22px;
    margin: 28px 0 0;
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 24px 60px rgba(30, 41, 59, 0.12);
}

.stv-quiz-intro {
    margin: 0 0 22px;
    padding: 18px 20px;
    border-left: 4px solid #0f766e;
    border-radius: 0 14px 14px 0;
    background: linear-gradient(135deg, #f0fdfa, #f8fafc);
}

.stv-quiz-intro__lead {
    margin: 0;
    color: #1e293b;
    font-size: 16px;
    line-height: 1.85;
}

.stv-quiz-guide {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.stv-quiz-guide__section h2 {
    margin: 0 0 16px;
}

.stv-quiz-guide__section p {
    line-height: 1.85;
}

.stv-quiz-guide__steps {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
    padding-left: 1.5em;
}

.stv-quiz-guide__steps li {
    padding-left: 4px;
    line-height: 1.75;
}

.stv-quiz-guide__mode-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.stv-quiz-guide__mode-link {
    display: grid;
    gap: 7px;
    padding: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
    color: #334155;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.stv-quiz-guide__mode-link:hover {
    border-color: #14b8a6;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.12);
    transform: translateY(-1px);
}

.stv-quiz-guide__mode-link.is-current {
    border-color: #0f766e;
    background: #f0fdfa;
}

.stv-quiz-guide__mode-link strong {
    color: #0f766e;
    font-size: 17px;
}

.stv-quiz-guide__mode-link span {
    line-height: 1.65;
}

.stv-quiz-guide__related a {
    font-weight: 700;
}

.stv-quiz-guide__faq {
    display: grid;
    gap: 14px;
    margin: 0;
}

.stv-quiz-guide__faq > div {
    padding: 16px 18px;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    background: #f8fafc;
}

.stv-quiz-guide__faq dt {
    margin-bottom: 7px;
    color: #0f172a;
    font-weight: 800;
}

.stv-quiz-guide__faq dd {
    margin: 0;
    color: #475569;
    line-height: 1.75;
}

.stv-quiz-noscript {
    padding: 14px 16px;
    border: 1px solid #f59e0b;
    border-radius: 12px;
    background: #fffbeb;
}

.stv-quiz__setup {
    overflow: hidden;
    border: 1px solid #cfe0ff;
    border-radius: 18px;
    background: #f4f7ff;
}

.stv-quiz__shell-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.stv-quiz__shell-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.stv-quiz__shell-title {
    margin: 0;
    color: #172554;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 900;
    line-height: 1.35;
}

.stv-quiz__phase {
    flex: 0 0 auto;
    margin-top: 5px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.stv-quiz__setup-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid #dbeafe;
    text-align: left;
}

.stv-quiz__setup-icon {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 9px 20px rgba(37, 99, 235, 0.22);
}

.stv-quiz__setup-intro p {
    display: grid;
    gap: 3px;
    margin: 0;
}

.stv-quiz__setup-intro strong {
    color: #172554;
    font-size: 17px;
}

.stv-quiz__setup-intro p span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.stv-quiz__setting {
    display: grid;
    gap: 14px;
    padding: 20px 24px;
}

.stv-quiz__setting + .stv-quiz__setting {
    border-top: 1px solid #dbeafe;
}

.stv-quiz__playing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    background: #f8fafc;
}

.stv-quiz__playing-toolbar[hidden] {
    display: none !important;
}

.stv-quiz__playing-toolbar span {
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 800;
}

.stv-quiz__playing-toolbar button {
    appearance: none;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.stv-quiz.is-playing .stv-quiz__setup {
    display: none;
}

.stv-quiz__setting-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}

.stv-quiz__setting-heading > span:last-child {
    display: grid;
    gap: 2px;
}

.stv-quiz__setting-heading strong {
    color: #0f172a;
    font-size: 16px;
    line-height: 1.35;
}

.stv-quiz__setting-heading small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.stv-quiz__step {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffedd5;
    color: #c2410c;
    font-size: 14px;
    font-weight: 900;
}

.stv-quiz__mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stv-quiz__mode-button {
    appearance: none;
    position: relative;
    display: grid;
    gap: 3px;
    min-height: 68px;
    padding: 12px 42px 12px 16px;
    border: 2px solid #dbe5e7;
    border-radius: 14px;
    background: #f8fafc;
    color: #334155;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.stv-quiz__mode-button strong {
    font-size: 15px;
    font-weight: 900;
}

.stv-quiz__mode-button span {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.stv-quiz__mode-button::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    transform: translateY(-50%);
}

.stv-quiz__mode-button:hover,
.stv-quiz__mode-button:focus-visible {
    border-color: #93c5fd;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.stv-quiz__mode-button.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.13);
}

.stv-quiz__mode-button.is-active span {
    color: #1d4ed8;
}

.stv-quiz__mode-button.is-active::after {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.stv-quiz__region-switch {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.stv-quiz__region-button {
    appearance: none;
    position: relative;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.stv-quiz__region-button:hover,
.stv-quiz__region-button:focus-visible {
    border-color: #60a5fa;
    color: #1d4ed8;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.stv-quiz__region-button.is-active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.stv-quiz__region-button.is-active::before {
    content: "✓ ";
}

.stv-quiz__challenge-bar {
    --stv-progress: 0%;
    display: grid;
    gap: 9px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
    border: 1px solid #bfdbfe;
    border-radius: 14px;
}

.stv-quiz__challenge-status {
    color: #1e3a8a;
    font-size: 14px;
    font-weight: 700;
}

.stv-quiz__challenge-progress {
    overflow: hidden;
    height: 7px;
    border-radius: 999px;
    background: #dbeafe;
}

.stv-quiz__challenge-progress span {
    display: block;
    width: var(--stv-progress);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    transition: width 0.25s ease;
}

.stv-quiz__challenge-result {
    display: grid;
    gap: 8px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
}

.stv-quiz__challenge-result-summary {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.stv-quiz__challenge-result[hidden],
.stv-quiz__challenge-bar[hidden] {
    display: none !important;
}

.stv-quiz__challenge-result-score {
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.stv-quiz__challenge-result-time {
    color: #334155;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.stv-quiz__challenge-personal-best {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
    color: #334155;
}

.stv-quiz__challenge-personal-best.is-new {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.stv-quiz__challenge-personal-best-title {
    color: #92400e;
    font-size: 15px;
    font-weight: 800;
}

.stv-quiz__challenge-personal-best-score {
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

.stv-quiz__challenge-personal-best-note {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.stv-quiz__challenge-share {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
}

.stv-quiz__challenge-share-title {
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
}

.stv-quiz__challenge-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stv-quiz__challenge-share-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.stv-quiz__challenge-share-button:hover {
    color: #fff;
    opacity: 0.86;
    transform: translateY(-1px);
}

.stv-quiz__challenge-share-button.is-x {
    background: #0f172a;
}

.stv-quiz__challenge-share-button.is-line {
    background: #06c755;
}

.stv-quiz__challenge-share-button.is-copy {
    background: #0f766e;
}

.stv-quiz__challenge-review-title {
    margin-top: 6px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
}

.stv-quiz__challenge-review-list {
    display: grid;
    gap: 10px;
}

.stv-quiz__challenge-review-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.stv-quiz__challenge-review-item.is-correct {
    border-color: #86efac;
    background: #f0fdf4;
}

.stv-quiz__challenge-review-item.is-wrong {
    border-color: #fca5a5;
    background: #fff1f2;
}

.stv-quiz__challenge-review-heading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    flex: 0 0 auto;
}

.stv-quiz__challenge-review-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.stv-quiz__challenge-review-marker.is-correct {
    background: #16a34a;
    color: #fff;
}

.stv-quiz__challenge-review-marker.is-wrong {
    background: #ef4444;
    color: #fff;
    border: 1px solid #dc2626;
}

.stv-quiz__challenge-review-meta {
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
    flex: 1 1 280px;
}

.stv-quiz__challenge-review-link {
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    flex: 0 0 auto;
    white-space: nowrap;
}

.stv-quiz__challenge-review-link:hover {
    text-decoration: underline;
}

.stv-quiz__admin-meta {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
}

.stv-quiz__admin-meta-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.stv-quiz__admin-meta[hidden] {
    display: none !important;
}

.stv-quiz__admin-pill,
.stv-quiz__admin-stat {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
}

.stv-quiz__admin-url {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
    word-break: break-all;
}

.stv-quiz__admin-url:hover {
    color: #0f766e;
    text-decoration: underline;
}

.stv-quiz__admin-x-post {
    display: grid;
    gap: 10px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
}

.stv-quiz__admin-x-post[hidden] {
    display: none !important;
}

.stv-quiz__admin-x-post-title {
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
}

.stv-quiz__admin-x-post-text {
    width: 100%;
    min-height: 280px;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.75;
    resize: none;
    overflow: hidden;
    box-sizing: border-box;
}

.stv-quiz__admin-pill {
    background: #ecfeff;
    border-color: #99f6e4;
    color: #0f766e;
}

.stv-quiz__admin-delete {
    appearance: none;
    border: 0;
    border-radius: 999px;
    min-height: 38px;
    padding: 0 14px;
    background: #ef4444;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.stv-quiz__admin-next {
    appearance: none;
    border: 0;
    border-radius: 999px;
    min-height: 38px;
    padding: 0 14px;
    background: #0f766e;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.stv-quiz__actions {
    display: grid;
    gap: 10px;
}

.stv-quiz__load-slot {
    display: flex;
}

.stv-quiz__load-button,
.stv-quiz__options button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    color: #fff;
    min-height: 50px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 12px 20px;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.stv-quiz__load-button {
    width: 100%;
    min-height: 56px;
    font-size: 17px;
}

.stv-quiz__options button {
    background: linear-gradient(135deg, #15803d, #16a34a);
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.22);
}

.stv-quiz__load-button.is-start {
    background: linear-gradient(135deg, #ea580c, #f97316);
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
}

.stv-quiz__load-button.is-next {
    background: linear-gradient(135deg, #1d4ed8, #0284c7);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.26);
}

.stv-quiz__load-button.is-result {
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    box-shadow: 0 12px 28px rgba(109, 40, 217, 0.26);
}

.stv-quiz__load-button.is-retry {
    background: linear-gradient(135deg, #334155, #475569);
    box-shadow: 0 12px 28px rgba(51, 65, 85, 0.22);
}

.stv-quiz__load-button::before {
    content: "▶";
    display: inline-block;
    margin-right: 9px;
    font-size: 12px;
    transform: translateY(-1px);
}

.stv-quiz__load-button.is-next::before {
    content: "→";
    font-size: 18px;
}

.stv-quiz__load-button.is-result::before {
    content: "★";
    font-size: 15px;
}

.stv-quiz__load-button.is-retry::before {
    content: "↻";
    font-size: 18px;
}

.stv-quiz__load-button:not(:disabled):hover,
.stv-quiz__options button:not(:disabled):hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.stv-quiz__load-button:disabled,
.stv-quiz__options button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.stv-quiz__frame {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #e2e8f0;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.stv-quiz__frame[hidden],
.stv-quiz__options[hidden] {
    display: none !important;
}

.stv-quiz__iframe-wrap {
    position: relative;
    line-height: 0;
}

.stv-quiz__iframe-mask {
    position: absolute;
    top: 10px;
    left: 0px;
    width: 245px;
    height: 56px;
    background: #fff;
    border-radius: 2px;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.04em;
}

.stv-quiz__frame iframe {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    background: #e9ecef;
}

.stv-quiz__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0;
    padding: 18px;
    border: 1px solid #dbe5ef;
    border-radius: 18px;
    background: #f8fafc;
}

.stv-quiz__option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 58px;
    padding: 10px 16px;
    border: 2px solid #dbe5e7;
    border-radius: 13px;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.stv-quiz__options:not(.is-answered) .stv-quiz__option:hover {
    border-color: #14b8a6;
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.12);
    transform: translateY(-1px);
}

.stv-quiz__options.is-answered .stv-quiz__option {
    cursor: default;
    transform: none;
}

.stv-quiz__option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #0f766e;
}

.stv-quiz__option:has(input[type="radio"]:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
}

.stv-quiz__option span {
    font-weight: 800;
}

.stv-quiz__option-text {
    flex: 1 1 auto;
    -webkit-user-select: none;
    user-select: none;
}

.stv-quiz__option-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    color: transparent;
}

.stv-quiz__form-message {
    grid-column: 1 / -1;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.stv-quiz__options.has-error .stv-quiz__option {
    border-color: #fca5a5;
    background: #fff5f5;
}

.stv-quiz__option.is-correct-answer {
    border-color: #16a34a;
    background-color: #f0fdf4;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.14);
}

.stv-quiz__option.is-correct-answer .stv-quiz__option-marker {
    background: #16a34a;
    color: #fff;
}

.stv-quiz__option.is-wrong-answer {
    border-color: #dc2626;
    background-color: #fecaca;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.18);
    color: #7f1d1d;
}

.stv-quiz__option.is-correct-answer,
.stv-quiz__option.is-correct-answer:hover,
.stv-quiz__option.is-correct-answer:has(input[type="radio"]:checked) {
    border-color: #16a34a;
    background-color: #f0fdf4;
    color: #14532d;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.14);
}

.stv-quiz__option.is-wrong-answer,
.stv-quiz__option.is-wrong-answer:hover,
.stv-quiz__option.is-wrong-answer:has(input[type="radio"]:checked) {
    border-color: #dc2626;
    background-color: #fecaca;
    color: #7f1d1d;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.18);
}

.stv-quiz__option.is-wrong-answer .stv-quiz__option-marker {
    background: #ef4444;
    color: #fff;
    border: 1px solid #dc2626;
}

.stv-quiz__actions .stv-quiz__status {
    margin-top: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 24px;
    min-width: 0;
}

.stv-quiz__options button {
    grid-column: 1 / -1;
    width: 100%;
}

.stv-quiz button:focus-visible,
.stv-quiz a:focus-visible,
.stv-quiz input:focus-visible + .stv-quiz__option-text {
    outline: 3px solid rgba(14, 165, 164, 0.35);
    outline-offset: 3px;
}

.stv-quiz__status-dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stv-quiz__status-dots[hidden] {
    display: none !important;
}

.stv-quiz__status-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #0ea5a4;
    opacity: 0.22;
    animation: stvQuizPulse 1.2s infinite ease-in-out;
}

.stv-quiz__status-dots span:nth-child(2) {
    animation-delay: 0.18s;
}

.stv-quiz__status-dots span:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes stvQuizPulse {
    0%, 80%, 100% {
        opacity: 0.22;
        transform: translateY(0) scale(0.92);
    }

    40% {
        opacity: 1;
        transform: translateY(-1px) scale(1);
    }
}

.stv-quiz__answer-meta {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
}

.stv-quiz__answer-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.stv-quiz__answer-address,
.stv-quiz__answer-coords {
    margin: 0;
    color: #334155;
    line-height: 1.6;
}

.stv-quiz__answer-address {
    font-weight: 600;
    flex: 1 1 360px;
}

.stv-quiz__answer-coords {
    flex: 0 1 auto;
    white-space: nowrap;
}

.stv-quiz__answer-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: -2px;
}

.stv-quiz__answer-detail-link {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ecfeff;
    border: 1px solid #99f6e4;
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.stv-quiz__answer-place-title {
    color: #0f172a;
    font-weight: 700;
}

.stv-quiz__answer-detail-link:hover {
    background: #ccfbf1;
    border-color: #5eead4;
    color: #115e59;
}

.stv-quiz__answer-map iframe {
    border-radius: 14px;
}

@media (max-width: 680px) {
    .stv-quiz-intro {
        padding: 15px 16px;
    }

    .stv-quiz-guide__mode-links {
        grid-template-columns: 1fr;
    }

    .stv-quiz__challenge-share-button {
        flex: 1 1 100%;
    }

    .stv-quiz {
        gap: 16px;
        margin-top: 20px;
        padding: 16px;
        border-radius: 19px;
    }

    .stv-quiz__shell-header {
        gap: 12px;
        padding-bottom: 16px;
    }

    .stv-quiz__shell-title {
        font-size: 19px;
    }

    .stv-quiz__phase {
        padding: 5px 8px;
        font-size: 11px;
    }

    .stv-quiz__setup {
        border-radius: 15px;
    }

    .stv-quiz__setup-intro {
        justify-content: flex-start;
        padding: 16px;
    }

    .stv-quiz__setting {
        padding: 18px 16px;
    }

    .stv-quiz__playing-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .stv-quiz__playing-toolbar button {
        width: 100%;
    }

    .stv-quiz__mode-switch {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .stv-quiz__mode-button {
        min-height: 62px;
    }

    .stv-quiz__region-switch {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stv-quiz__region-button {
        min-height: 46px;
    }

    .stv-quiz__options {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        padding: 12px;
    }

    .stv-quiz__option {
        min-height: 54px;
        padding: 8px 10px;
    }

    .stv-quiz__load-button {
        min-height: 54px;
        font-size: 16px;
    }
}
