@charset "utf-8";

/* ==========================================================================
   年代流行語クイズ 専用スタイル
   ========================================================================== */

#era-quiz-widget {
    --primary-red: #FF0033;
    --quiz-accent: var(--primary-red);
    --quiz-card-bg: rgba(255, 255, 255, 0.82);
    --quiz-text-main: #111827;
    --quiz-text-sub: #4b5563;
    --quiz-border: rgba(229, 231, 235, 0.8);
    --quiz-ai-bubble-bg: rgba(243, 244, 246, 0.8);

    background-color: var(--quiz-card-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    text-align: left;
}

body.is-quiz-overlay-active #era-quiz-widget {
    z-index: 1201;
}

/* --- ブラウザ風ヘッダー --- */
.quiz-browser-bar {
    display: flex;
    align-items: center;
    width: 100%;
    transition: background 0.3s ease, border 0.3s ease;
}

.quiz-browser-url {
    flex-grow: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quiz-browser-controls {
    display: flex;
}

.quiz-control-dot {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.quiz-close {
    cursor: pointer;
}

/* --- スクリーン表示切替 --- */
#era-quiz-widget .quiz-screen {
    display: none !important;
    flex-direction: column;
    gap: 20px;
    animation: quizFadeIn 0.4s ease;
    padding: 0 15px 15px;
}

#era-quiz-widget .quiz-screen.active {
    display: flex !important;
}

@keyframes quizFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- テーマ別デザイン --- */

/* Era-Default (スタート画面) */
#era-quiz-widget.era-theme-default {
    background: transparent;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#era-quiz-widget.era-theme-default .quiz-browser-bar {
    display: none;
}

#era-quiz-widget.era-theme-default #quiz-ai-agent {
    margin-bottom: 24px;
    min-height: 0;
    justify-content: flex-start;
}

#era-quiz-widget.era-theme-default #quiz-ai-bubble {
    background: #ffffff;
    color: #111827;
    border-radius: 16px 16px 16px 0;
    padding: 14px 20px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    font-size: 16px;
    text-align: left;
}

#era-quiz-widget.era-theme-default .quiz-content-body {
    padding: 0;
}

#era-quiz-widget.era-theme-default .quiz-screen {
    padding: 0;
}

#quiz-era-timeline {
    display: grid;
    grid-template-columns: repeat(4, 110px);
    column-gap: 50px;
    row-gap: 26px;
    align-items: start;
    justify-content: center;
    padding-top: 20px;
    position: relative;
}

#quiz-era-timeline .quiz-timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(460px, calc(100% - 120px));
    height: 2px;
    background: rgba(245, 245, 245, 0.9);
    z-index: 0;
}

.quiz-timeline-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 110px;
    text-align: center;
    cursor: pointer;
    color: #67c4e8;
}

.quiz-timeline-year {
    font-size: 18px;
    font-weight: 800;
    color: #67c4e8;
    letter-spacing: -0.04em;
}

.quiz-timeline-label {
    background: #e6d2a0;
    color: #072236;
    border-radius: 999px;
    padding: 6px 10px 5px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.quiz-timeline-dot {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid #ffcb49;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.quiz-timeline-dot::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 2px solid #072236;
}

.quiz-timeline-dot-center {
    width: 6px;
    height: 6px;
    background: #072236;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.quiz-timeline-hand {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 18px;
    background: #072236;
    transform-origin: bottom center;
    border-radius: 2px;
}

#era-quiz-widget.era-theme-default #quiz-era-timeline .quiz-timeline-line {
    background: #f5f5f5;
}

#era-quiz-widget.era-theme-default #quiz-era-timeline .quiz-timeline-dot::before {
    inset: 0;
    border: 3px solid #072236;
}

#era-quiz-widget.era-theme-default #quiz-era-timeline .quiz-timeline-hand {
    width: 2px;
    height: 18px;
    left: 50%;
    top: 50%;
    border-radius: 2px;
    transform-origin: bottom center;
}

#era-quiz-widget #quiz-era-timeline .quiz-timeline-item.is-active .quiz-timeline-dot {
    border-color: #ff0033;
}
#era-quiz-widget #quiz-era-timeline .quiz-timeline-item.is-active .quiz-timeline-hand,
#era-quiz-widget #quiz-era-timeline .quiz-timeline-item.is-active .quiz-timeline-dot-center {
    background: #ff0033;
}

@media (max-width: 720px) {
    #quiz-era-timeline {
        grid-template-columns: repeat(2, 110px);
        column-gap: 70px;
        row-gap: 30px;
    }
    .quiz-timeline-line {
        width: min(280px, calc(100% - 60px));
    }
    .quiz-timeline-item {
        width: 110px;
    }
}

/* Era-1 (Win95 Style) */
#era-quiz-widget.era-theme-1 {
    font-family: 'MS PGothic', sans-serif;
    border-radius: 0;
    border: 2px solid #dfdfdf;
    border-right-color: #000;
    border-bottom-color: #000;
    background: #c0c0c0;
    box-shadow: 1px 1px 0 #000;
}
#era-quiz-widget.era-theme-1 .quiz-min { display: none; }
#era-quiz-widget.era-theme-1 .quiz-max { display: none; }
#era-quiz-widget.era-theme-1 .quiz-browser-bar {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: white;
    height: 24px;
    justify-content: flex-start;
    padding: 0 4px;
}

#era-quiz-widget.era-theme-1 .quiz-browser-url {
    text-align: left;
    font-size: 12px;
    margin-left: 4px;
}

#era-quiz-widget.era-theme-1 .quiz-browser-controls {
    position: absolute;
    right: 4px;
    gap: 2px;
}

#era-quiz-widget.era-theme-1 .quiz-control-dot {
    border-radius: 0;
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    border: 1px solid #fff;
    border-right-color: #000;
    border-bottom-color: #000;
}

#era-quiz-widget.era-theme-1 .quiz-close::after {
    content: "✖";
    font-size: 9px;
    font-weight: bold;
    color: #000;
    position: absolute;
}

#era-quiz-widget.era-theme-1 .quiz-btn-grid button.is-unselected {
    color: #6b6b6b;
    background: #d7d7d7;
    border-color: #9a9a9a;
    box-shadow: inset 1px 1px 0 #fff;
    opacity: 0.72;
    text-shadow: none;
}

#era-quiz-widget.era-theme-1 .quiz-progress-bar {
    border: 1px solid #808080;
    border-right-color: #fff;
    border-bottom-color: #fff;
    border-radius: 0;
    background: #c0c0c0;
}
#era-quiz-widget.era-theme-1 .quiz-btn-grid button {
    background: #c0c0c0;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    border-radius: 0;
    font-weight: bold;
    color: #000;
}

#era-quiz-widget.era-theme-1 .quiz-btn-grid button:active {
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

/* Era-2 (WinXP Style) */
#era-quiz-widget.era-theme-2 {
    border-radius: 8px 8px 0 0;
    border: 3px solid #005ce6;
    background: #ece9d8;
    --quiz-accent: #0a62ff;
}
#era-quiz-widget.era-theme-2 .quiz-min { display: none; }
#era-quiz-widget.era-theme-2 .quiz-max { display: none; }
#era-quiz-widget.era-theme-2 .quiz-browser-bar {
    background: linear-gradient(to bottom, #0058e6 0%, #3a93ff 4%, #288eff 6%, #127dff 8%, #036bfa 10%, #0269f8 14%, #005ce6 20%, #003f8e 100%);
    height: 30px;
    position: relative;
    justify-content: flex-start;
    padding: 0 5px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

#era-quiz-widget.era-theme-2 .quiz-browser-url {
    color: white;
    font-size: 13px;
    text-shadow: 1px 1px 1px #000;
    font-weight: bold;
    margin-left: 10px;
    text-align: left;
}

#era-quiz-widget.era-theme-2 .quiz-browser-controls {
    position: absolute;
    right: 13px;
    gap: 2px;
}

#era-quiz-widget.era-theme-2 .quiz-control-dot {
    border-radius: 3px;
    width: 21px;
    height: 21px;
    background: linear-gradient(to bottom, #e4ebf8, #9ebcf2);
    border: 1px solid #fff;
}

#era-quiz-widget.era-theme-2 .quiz-close {
    background: linear-gradient(to bottom, #ea775e 0%, #e03f27 100%);
    border: 1px solid #fff;
}

#era-quiz-widget.era-theme-2 .quiz-close::after {
    content: "×";
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 1px #000;
    position: absolute;
    top: 2px;
}

#era-quiz-widget.era-theme-2 .quiz-progress-bar {
    background: #fff;
    border: 1px solid #7a96df;
    border-radius: 2px;
}

#era-quiz-widget.era-theme-2 .quiz-btn-grid button {
    background: linear-gradient(to bottom, #fff 0%, #f0f0e0 100%);
    border: 1px solid #7a96df;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 #fff;
    color: #000;
    font-weight: bold;
}

#era-quiz-widget.era-theme-2 .quiz-btn-grid button:hover:not(:disabled) {
    border-color: #4a66af;
    background: linear-gradient(to bottom, #fff 0%, #e0e0d0 100%);
}

#era-quiz-widget.era-theme-2 .quiz-btn-grid button.is-unselected {
    color: #6b7280;
    border-color: #a8b7e6;
    background: linear-gradient(to bottom, #f7f7ef 0%, #e6e6d6 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Era-3 (Early Flat Style) */
#era-quiz-widget.era-theme-3 {
    border-radius: 6px;
    border: 1px solid #bbb;
    background: #fdfdfd;
    --quiz-accent: #3498db;
}

#era-quiz-widget.era-theme-3 .quiz-browser-bar {
    background: linear-gradient(to bottom, #e8e8e8, #d3d3d3);
    color: #444;
    border-bottom: 1px solid #999;
    border-radius: 6px 6px 0 0;
    height: 36px;
    justify-content: center;
}

#era-quiz-widget.era-theme-3 .quiz-browser-controls {
    position: absolute;
    left: 10px;
    gap: 6px;
}

#era-quiz-widget.era-theme-3 .quiz-control-dot {
    width: 12px;
    height: 12px;
}

#era-quiz-widget.era-theme-3 .quiz-close { background: #ff5f56; border: none; }
#era-quiz-widget.era-theme-3 .quiz-min { background: #ffbd2e; }
#era-quiz-widget.era-theme-3 .quiz-max { background: #27c93f; }

#era-quiz-widget.era-theme-3 .quiz-browser-url {
    font-size: 13px;
    font-weight: bold;
}

/* (Selected styles are defined later to override base .is-selected) */

/* Era-4 (Modern Chrome Style) */
#era-quiz-widget.era-theme-4 {
    border-radius: 12px;
    border: 1px solid #d1d1d1;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    --primary: #ff0033;
    --quiz-accent: #ff0033;
}

#era-quiz-widget.era-theme-4 .quiz-browser-bar {
    background: #f1f3f4;
    border-bottom: 1px solid #dee1e6;
    height: 44px;
    position: relative;
    justify-content: center;
}

#era-quiz-widget.era-theme-4 .quiz-browser-controls {
    position: absolute;
    left: 14px;
    gap: 8px;
}

#era-quiz-widget.era-theme-4 .quiz-control-dot {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#era-quiz-widget.era-theme-4 .quiz-close { background: #ea4335; height: auto; }
#era-quiz-widget.era-theme-4 .quiz-min { background: #fbbc05; }
#era-quiz-widget.era-theme-4 .quiz-max { background: #34a853; }

#era-quiz-widget.era-theme-4 .quiz-browser-url {
    font-weight: 500;
    font-size: 13px;
    color: #5f6368;
    background: #ffffff;
    height: 28px;
    line-height: 28px;
    padding: 0 40px;
    border-radius: 14px;
    max-width: 60%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* --- コンテンツ内部構造 --- */
.quiz-content-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* AIエージェント */
#quiz-ai-agent {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 15px 0;
    margin-bottom: 24px;
    gap: 10px;
}

#quiz-ai-bubble {
    background: var(--quiz-ai-bubble-bg);
    border: 1px solid var(--quiz-border);
    padding: 12px 16px;
    border-radius: 12px;
    border-bottom-left-radius: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--quiz-text-main);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: fit-content;
    max-width: 80%;
}

.quiz-ai-media {
    width: 100%;
    display: flex;
    justify-content: center;
}
#era-quiz-widget.is-start .quiz-ai-media,
#era-quiz-widget.is-result .quiz-ai-media {
    display: none;
}

.quiz-ai-media img {
    width: 40%;
}
#era-quiz-widget.era-theme-1 #quiz-ai-bubble {
    border-radius: 8px 8px 8px 0;
    border: 1px solid #808080;
    box-shadow: 1px 1px 0 #000;
}

/* タイムライン (開始画面) */
.quiz-timeline-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 0 20px;
}

.quiz-timeline-line {
    position: absolute;
    bottom: 56px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: rgb(255 255 255 / 80%);
}

.quiz-timeline-item {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: inherit;
}


/* 時計デザイン */
.quiz-timeline-dot {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quiz-timeline-dot-center {
    width: 4px;
    height: 4px;
    background: var(--quiz-text-sub);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: background-color 0.3s;
}

/* 時計の針を独立した要素に変更 */
.quiz-timeline-hand {
    position: absolute;
    background: var(--quiz-text-sub);
    border-radius: 2px;
    left: 50%;
    bottom: 50%;
    transform-origin: bottom center;
    transition: background-color 0.3s;
    z-index: 1;
}
.hour-hand { width: 3px; height: 8px; }
.minute-hand { width: 2.5px; height: 11px; }

/* タイムスリップ演出用 */
.quiz-timeline-item.spinning .quiz-timeline-dot {
    border-color: var(--primary-red);
    transform: scale(1.3);
    box-shadow: 0 4px 15px rgba(255, 0, 51, 0.4);
}

.quiz-timeline-item.spinning .quiz-timeline-dot-center,
.quiz-timeline-item.spinning .quiz-timeline-hand {
    background-color: var(--primary-red);
}

/* クイズ進捗 */
.quiz-progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.quiz-progress-fill {
    height: 100%;
    background: #28d029;
    width: 0%;
    transition: width 0.3s ease;
}

#era-quiz-widget.era-theme-1 .quiz-progress-fill {
    background: #000080;
}

#era-quiz-widget.era-theme-2 .quiz-progress-fill {
    background: linear-gradient(to bottom, #28d029, #12b814);
}

#era-quiz-widget.era-theme-3 .quiz-progress-fill {
    background: #3498db;
}

#era-quiz-widget.era-theme-4 .quiz-progress-fill {
    background-color: var(--primary);
}

.quiz-combo-label {
    color: var(--primary-red);
    font-weight: 900;
    text-align: center;
    display: block;
}

#quiz-question-heading {
    text-align: center;
    color: var(--quiz-text-main);
}

.quiz-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.quiz-btn-grid button {
    background: #fff;
    border: 1px solid var(--quiz-border);
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.quiz-btn-grid button.is-selected {
    background: var(--quiz-accent);
    border-color: var(--quiz-accent);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* Era-3 (Safari-like) selected style */
#era-quiz-widget.era-theme-3 .quiz-btn-grid button {
    background: linear-gradient(to bottom, #ffffff 0%, #f2f7ff 100%);
    border: 1px solid #c7d6f2;
    box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0, 0, 0, 0.06);
}

#era-quiz-widget.era-theme-3 .quiz-btn-grid button.is-selected {
    background: linear-gradient(to bottom, #ffffff 0%, #e9f2ff 100%);
    color: #1f6fd8;
    border-color: #6aa3f0;
    box-shadow: inset 0 1px 0 #ffffff, 0 6px 14px rgba(31, 111, 216, 0.18);
}

/* Era-4 (Modern Chrome-like) selected style */
#era-quiz-widget.era-theme-4 .quiz-btn-grid button {
    background: #f8f9fa;
    border: 1px solid #dadce0;
    color: #202124;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

#era-quiz-widget.era-theme-4 .quiz-btn-grid button.is-selected {
    background: #ffffff;
    color: var(--quiz-accent);
    border-color: var(--quiz-accent);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.quiz-btn-abort {
    background: none;
    border: none;
    color: var(--quiz-text-sub);
    align-self: center;
    cursor: pointer;
    font-size: 0.85rem;
}

/* 結果表示 */
.quiz-evaluation-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.quiz-eval-era {
    margin-bottom: 10px;
    background: #e5f8ff;
    color: #2c95bd;
    font-weight: 900;
    padding: 6px 10px;
    border: 1px solid #67c4e8;
    border-radius: 100px;
    line-height: 1;
}

.quiz-eval-rank {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--quiz-text-main);
}

.quiz-eval-stars {
    font-size: 1rem;
    color: var(--quiz-text-sub);
    margin-bottom: 10px;
    font-weight: 700;
}

.quiz-eval-stars .quiz-eval-stars-icons {
    display: inline-flex;
    gap: 4px;
}

.quiz-eval-stars .quiz-eval-star {
    width: 18px;
    height: 18px;
    display: block;
}

.quiz-eval-record {
    font-weight: bold;
    color: var(--primary-red);
    margin: 10px 0;
    font-size: 1.1rem;
}

.quiz-result-img {
    width: 150px;
    margin: 0 auto;
}

.quiz-eval-text {
    font-weight: 900;
    color: var(--quiz-text-main);
}

.quiz-trivia-container {
    background: rgba(248, 250, 252, 0.7);
    border-radius: 12px;
    padding: 15px;
    text-align: left;
}
.era-theme-3 .quiz-trivia-container{
    background: #f8fafc;
}

.quiz-trivia-item h3 {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--quiz-text-main);
}

.quiz-trivia-ai-label {
    display: block;
    width: 135px;
    height: 24px;
    background: url("https://s.yimg.jp/images/yjtop-common/promo/y30th/images/quiz/label_ai.png") no-repeat left center;
    background-size: 100% 100%;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    margin-bottom: 10px;
}

.quiz-ai-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 1px;
}

.quiz-trivia-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--quiz-text-sub);
    margin-bottom: 10px;
}

.quiz-trivia-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--quiz-border);
    color: var(--quiz-text-main);
    text-decoration: none;
    font-weight: 900;
    font-size: 0.9rem;
    background: #fff;
    width: fit-content;
    margin: 0 auto;
}

.quiz-trivia-more:hover {
    filter: brightness(0.96);
}

.quiz-trivia-media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    overflow: hidden;
}

.quiz-trivia-media img {
    display: block;
    width: 100%;
    height: auto;
}

.quiz-btn-restart {
    background: var(--quiz-text-main);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 900;
    width: 100%;
    cursor: pointer;
}

/* シェア */
.quiz-share-area {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

.quiz-share-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.quiz-share-item {
    width: 32px;
    height: 32px;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-share-item:hover {
    transform: translateY(-3px);
}

.quiz-share-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.quiz-trivia-more .quiz-ai-icon,
.quiz-trivia-more span {
    pointer-events: none;
}

/* エフェクトレイヤー */
#quiz-particle-canvas {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 90;
    display: block;
}

#quiz-reaction-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
}

#quiz-reaction-text {
    font-size: 2.7rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.shake-anim {
    animation: quizShake 0.4s ease-in-out;
}

@keyframes quizShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
    20%, 40%, 60%, 80% { transform: translateX(6px); }
}

@media (prefers-reduced-motion: reduce) {
    #era-quiz-widget,
    #era-quiz-widget * {
        transition: none !important;
        animation: none !important;
    }

    #quiz-particle-canvas {
        display: none;
    }
}

/* スマホ画面レイアウト調整 */
@media (max-width: 480px) {
    .quiz-timeline-track {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 35px;
    }
    .quiz-timeline-line {
        display: none;
    }
    .quiz-btn-grid button {
        font-size: 15px;
    }
    #era-quiz-widget.era-theme-4 .quiz-browser-controls {
        gap: 4px;
    }
    #era-quiz-widget.era-theme-4 .quiz-browser-url {
        padding: 0;
        margin-left: 18px;
    }
    .quiz-eval-rank {
        font-size: 1.6rem;
    }
}
