/* ================================================================
   尖らせラン（メタ構造モード）専用スタイル
   style.css には一切手を入れない。ここだけで完結させる。
   すべてのセレクタは #sharpen-ui / body[data-demo="sharpen"] 配下なので、
   既存4タブの見た目には 1px も影響しない。
   ================================================================ */

#sharpen-ui {
    display: none;
    --sh-common: #6366f1;
    --sh-rare: #f472b6;
    --sh-special: #cbd5e1;
}

#sharpen-ui.is-active {
    display: block;
}

/* ================================
   HUD（スロットバー常時表示）
   残り枠数が減っていく様子をプレイ中ずっと見せる
   ================================ */

/* PC ではコントロールパネル（左上・240px）を避けて右上に置く */
#sharpen-hud {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    z-index: 120;
    pointer-events: none;
    user-select: none;
}

#sharpen-hud .sh-meta {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.9rem;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

#sharpen-hud .sh-meta b {
    font-size: 1.15rem;
    color: var(--text);
    margin: 0 0.1rem;
}

#sharpen-hud .sh-meta i {
    font-style: normal;
    opacity: 0.6;
}

#sharpen-hud .sh-balls b {
    color: #4dabf7;
    letter-spacing: 0.12em;
}

.sh-slotbar {
    position: relative;
}

.sh-slots {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
}

.sh-slot {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    background: rgba(15, 15, 26, 0.75);
    border: 2px solid rgba(99, 102, 241, 0.5);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.sh-slot.is-empty {
    border-style: dashed;
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(15, 15, 26, 0.35);
}

.sh-slot.is-rare { border-color: var(--sh-rare); }
.sh-slot.is-common { border-color: var(--sh-common); }
/* 特殊は光らせない。見えないことに意味がある */
.sh-slot.is-special { border-color: rgba(203, 213, 225, 0.55); }

.sh-slot-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sh-slot-counter {
    position: absolute;
    right: 2px;
    bottom: 1px;
    min-width: 18px;
    padding: 0 3px;
    border-radius: 999px;
    background: rgba(15, 15, 26, 0.9);
    color: var(--text);
    font-size: 0.62rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.5;
}

.sh-synergy {
    position: absolute;
    top: 0;
    left: 0;
    overflow: visible;
    pointer-events: none;
}

.sh-synergy .sh-line-good {
    stroke: #a5b4fc;
    stroke-width: 3;
    filter: drop-shadow(0 0 5px rgba(165, 180, 252, 1));
}

.sh-synergy .sh-line-bad {
    stroke: #9a8358;
    stroke-width: 3;
    stroke-dasharray: 5 4;
    opacity: 0.95;
}

.sh-synergy .sh-line-hit {
    stroke: transparent;
    stroke-width: 18;
    pointer-events: stroke;
    cursor: pointer;
}

/* ================================
   バナー / シナジーの種明かし
   ================================ */

#sharpen-banner {
    position: fixed;
    top: 22%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 240;
    pointer-events: none;
    text-align: center;
    max-width: min(90vw, 620px);
}

#sharpen-banner b {
    display: block;
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--text);
    text-shadow: 0 0 18px rgba(99, 102, 241, 0.8), 0 2px 10px rgba(0, 0, 0, 0.7);
}

#sharpen-banner span {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

#sharpen-banner.is-in {
    animation: shBannerIn 1.4s ease-out forwards;
}

@keyframes shBannerIn {
    0% { opacity: 0; transform: translateX(-50%) translateY(14px); }
    14% { opacity: 1; transform: translateX(-50%) translateY(0); }
    72% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

#sharpen-tip {
    position: fixed;
    top: 13rem;
    right: 1.5rem;
    z-index: 130;
    max-width: min(88vw, 380px);
    padding: 0.7rem 0.9rem;
    border-radius: 0.6rem;
    background: rgba(15, 15, 26, 0.96);
    border: 1px solid rgba(99, 102, 241, 0.6);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
}

#sharpen-tip.sh-tip-bad {
    border-color: rgba(180, 150, 90, 0.7);
}

#sharpen-tip b {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

#sharpen-tip.sh-tip-bad b { color: #fbbf24; }

#sharpen-tip span {
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--text-dim);
}

.sh-hidden { display: none !important; }

/* ================================
   モーダル（ドラフト / 捨てる / リザルト）
   ================================ */

#sharpen-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(8, 8, 16, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.28s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#sharpen-modal.is-open { opacity: 1; }

.sh-modal-inner {
    width: 100%;
    max-width: 1180px;
    text-align: center;
    margin: auto;
}

.sh-modal-head { min-height: 6.4rem; }

.sh-modal-head h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.3rem);
    font-weight: 900;
    letter-spacing: 0.03em;
    line-height: 1.3;
    color: var(--text);
}

.sh-modal-head .sh-sub {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-dim);
}

.sh-modal-head .sh-got {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.sh-modal-head .sh-got b {
    color: var(--accent-light);
    font-size: 1.15rem;
}

.sh-verdict {
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.sh-verdict.is-pending {
    opacity: 0;
    transform: translateY(10px);
}

.sh-hint {
    margin-top: 1.1rem;
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.75);
}

/* ---- カード ---- */

.sh-cards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: clamp(0.6rem, 1.8vw, 1.5rem);
    margin-top: 1.4rem;
    flex-wrap: wrap;
    transition: opacity 0.5s ease;
}

.sh-cards.is-pending { opacity: 0; }

.sh-card {
    /* プロジェクタ想定: 1枚あたり画面幅の25%以上 */
    flex: 0 0 auto;
    width: min(25.5vw, 320px);
    padding: 0;
    border: none;
    background: none;
    perspective: 1100px;
    cursor: pointer;
    position: relative;
}

.sh-card:disabled { cursor: default; }

.sh-card-inner {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition: transform 0.55s cubic-bezier(0.3, 0.8, 0.3, 1),
                opacity 0.2s ease;
    transition-delay: var(--flip-delay, 0ms), 0ms;
}

.sh-card.is-flipped .sh-card-inner { transform: rotateY(180deg); }

.sh-card-back,
.sh-card-face {
    border-radius: 0.9rem;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: var(--bg-card);
    border: 3px solid rgba(148, 163, 184, 0.35);
}

.sh-card-back {
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #1b1b33, #0f0f1a);
}

.sh-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sh-card-back.sh-fallback img { display: none; }

.sh-card-face {
    position: absolute;
    inset: 0;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
}

.sh-card.is-common .sh-card-face {
    border-color: var(--sh-common);
    box-shadow: 0 0 22px rgba(99, 102, 241, 0.35);
}

.sh-card.is-rare .sh-card-face {
    border-color: var(--sh-rare);
    box-shadow: 0 0 26px rgba(244, 114, 182, 0.4);
}

/* 特殊は枠すら光らせない */
.sh-card.is-special .sh-card-face {
    border-color: rgba(203, 213, 225, 0.55);
    box-shadow: none;
}

.sh-card-art {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: #0f0f1a;
}

/* 生成画像が無いカードの代替。濃紺の地とグローの方向を生成画像に揃えてある */
.sh-fallback {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 42%,
        rgba(99, 102, 241, 0.5) 0%, #1a1a2e 52%, #0f0f1a 100%);
}

.sh-fallback.is-rare {
    background: radial-gradient(circle at 50% 42%,
        rgba(244, 114, 182, 0.5) 0%, #2a1a2e 52%, #0f0f1a 100%);
}

.sh-fallback.is-special {
    background: radial-gradient(circle at 50% 40%, #2a2a3e 0%, #14141f 60%, #0f0f1a 100%);
}

.sh-glyph {
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
}

.sh-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0.7rem 0.75rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.9), rgba(15, 15, 26, 0.98));
}

.sh-card-rarity {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--text-dim);
}

.sh-card.is-common .sh-card-rarity { color: var(--primary-light); }
.sh-card.is-rare .sh-card-rarity { color: var(--accent-light); }

.sh-card-name {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
}

.sh-card-note {
    font-size: 0.72rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.sh-card-key {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 26px;
    height: 26px;
    border-radius: 0.4rem;
    background: rgba(8, 8, 16, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 24px;
    text-align: center;
}

.sh-card.is-new .sh-card-face {
    outline: 2px solid #fbbf24;
    outline-offset: 3px;
}

/* 捨てる画面は6枚（スロット数+1）を必ず横一列で見せる。
   並べて比較する行為そのものが「削る」の判断になるので、スクロールさせない */
.sh-cards-discard {
    gap: clamp(0.4rem, 0.9vw, 0.8rem);
    margin-top: 1rem;
}

.sh-cards-discard .sh-card {
    flex: 1 1 0;
    width: auto;
    max-width: 200px;
    min-width: 104px;
}

/* 名前と説明が2行になっても切れないように、少し縦長にする */
.sh-cards-discard .sh-card-back { aspect-ratio: 1 / 1.52; }
.sh-cards-discard .sh-card-name { font-size: clamp(0.72rem, 1.05vw, 0.95rem); }
.sh-cards-discard .sh-card-note { font-size: 0.62rem; }
.sh-cards-discard .sh-card-body { padding: 0.45rem 0.4rem 0.55rem; }

.sh-cards-discard .sh-card-key {
    width: 22px;
    height: 22px;
    line-height: 20px;
    font-size: 0.7rem;
}

.sh-card:not(:disabled):hover .sh-card-inner {
    transform: rotateY(180deg) translateZ(18px);
}

.sh-card.is-chosen .sh-card-inner {
    animation: shChosen 0.9s ease-out forwards;
}

@keyframes shChosen {
    0% { transform: rotateY(180deg) scale(1); }
    35% { transform: rotateY(180deg) scale(1.07); }
    100% { transform: rotateY(180deg) scale(1.02); }
}

.sh-card.is-chosen .sh-card-face {
    box-shadow: 0 0 46px rgba(255, 255, 255, 0.45);
}

/* ---- 捨てる / 選ばれなかったカードの崩壊（0.6秒） ---- */

/* opacity は .sh-card-inner（preserve-3d）に掛けない。
   掛けると 3D がフラット化して裏面が透けて見えてしまう */
.sh-card.is-burned .sh-card-face,
.sh-card.is-burned .sh-card-back {
    opacity: 0;
    transition: opacity 0.16s linear 0.06s;
}

.sh-shards {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.sh-shard {
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, rgba(129, 140, 248, 0.7), rgba(20, 20, 40, 0.92));
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55);
    animation: shShard 0.6s cubic-bezier(0.35, 0, 0.7, 1) forwards;
}

.sh-card.is-rare .sh-shard {
    background: linear-gradient(150deg, rgba(244, 114, 182, 0.85), rgba(45, 25, 45, 0.9));
}

.sh-card.is-special .sh-shard {
    background: linear-gradient(150deg, rgba(203, 213, 225, 0.6), rgba(25, 25, 35, 0.9));
}

@keyframes shShard {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    100% {
        transform: translate(var(--tx, 0), var(--ty, 90px)) rotate(var(--rot, 20deg));
        opacity: 0;
    }
}

/* ---- リザルト ---- */

.sh-result-kept {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.2rem 0 1.5rem;
}

.sh-kept {
    width: 104px;
    border-radius: 0.6rem;
    overflow: hidden;
    background: var(--bg-card);
    border: 2px solid var(--sh-common);
}

.sh-kept.is-rare { border-color: var(--sh-rare); }
.sh-kept.is-special { border-color: rgba(203, 213, 225, 0.55); }

.sh-kept-art {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.sh-kept span {
    display: block;
    padding: 0.3rem 0.2rem 0.4rem;
    font-size: 0.66rem;
    line-height: 1.3;
    color: var(--text-dim);
}

.sh-result-table {
    max-width: 460px;
    margin: 0 auto;
    text-align: left;
}

.sh-result-table > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0.5rem 0.2rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.sh-result-table dt {
    font-size: 0.95rem;
    color: var(--text-dim);
}

.sh-result-table dd {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
}

.sh-result-table dd i {
    font-style: normal;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dim);
    margin-left: 0.2rem;
}

.sh-result-table .is-lead dt { color: var(--accent-light); font-weight: 700; }
.sh-result-table .is-lead dd { color: var(--accent-light); font-size: 2.1rem; }

.sh-result-line {
    margin-top: 1.1rem;
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.7;
}

.sh-result-line b { color: var(--text); font-size: 1.1rem; }

.sh-result-budget {
    margin-top: 0.7rem;
    font-size: 0.95rem;
    color: var(--text-dim);
}

.sh-result-budget b {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.sh-result-budget span { font-size: 0.75rem; }

.sh-actions {
    margin-top: 1.6rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.sh-btn {
    min-height: 44px;
    padding: 0.6rem 1.6rem;
    border-radius: 0.6rem;
    border: 2px solid rgba(99, 102, 241, 0.6);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sh-btn:hover { background: var(--primary-dark); }
.sh-btn-primary { background: var(--primary); border-color: var(--primary-light); }

/* ================================
   コントロールパネル内の尖らせラン設定
   ================================ */

#sharpen-controls .sh-panel-note {
    font-size: 0.72rem;
    line-height: 1.55;
    color: var(--text-dim);
    margin-top: 0.3rem;
}

#sharpen-controls .sh-panel-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.6rem;
}

#sharpen-controls .sh-panel-btns button {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 0.5rem 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(99, 102, 241, 0.5);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

#sharpen-controls .sh-panel-btns button:hover { background: var(--primary-dark); }

/* ================================
   モバイル（375px でドラフトが操作できること）
   ================================ */

@media (max-width: 740px), (pointer: coarse) {
    /* モバイルはコントロールパネルがボトムシートなので、HUD は左上に戻す */
    #sharpen-hud {
        top: 5.4rem;
        left: 0.5rem;
        right: auto;
    }

    #sharpen-hud .sh-meta {
        justify-content: flex-start;
        gap: 0.6rem;
        margin-bottom: 0.3rem;
        font-size: 0.6rem;
    }

    #sharpen-hud .sh-meta b { font-size: 0.9rem; }

    .sh-slots { gap: 0.25rem; justify-content: flex-start; }

    .sh-slot {
        width: 34px;
        height: 34px;
        border-width: 2px;
        border-radius: 0.35rem;
    }

    .sh-slot-counter {
        font-size: 0.5rem;
        min-width: 14px;
        line-height: 1.4;
    }

    .sh-synergy .sh-line-hit { stroke-width: 26; }

    #sharpen-tip {
        top: 10.2rem;
        bottom: auto;
        left: 0.5rem;
        right: 0.5rem;
        max-width: none;
    }

    #sharpen-banner {
        top: 30%;
        max-width: 92vw;
    }

    #sharpen-banner b { font-size: 1.4rem; }
    #sharpen-banner span { font-size: 0.72rem; }

    #sharpen-modal {
        padding: 0.75rem 0.6rem calc(1rem + env(safe-area-inset-bottom, 0px));
        align-items: flex-start;
    }

    .sh-modal-head { min-height: 0; }

    .sh-modal-head h2 { font-size: 1.15rem; }
    .sh-modal-head .sh-sub { font-size: 0.75rem; }
    .sh-modal-head .sh-got { font-size: 0.78rem; }
    .sh-modal-head .sh-got b { font-size: 0.9rem; }

    /* カード3枚は縦並び。横長カードにして3枚とも指が届く高さに収める */
    .sh-cards {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        margin-top: 0.8rem;
    }

    /* モバイルは3D反転をやめて、カード自体のフェードインにする。
       .sh-card-inner に transform / animation を残すと
       .is-flipped と .is-chosen の指定が衝突してカードが消える */
    .sh-card {
        width: 100%;
        perspective: none;
        opacity: 0;
        animation: shCardIn 0.32s ease-out forwards;
        animation-delay: var(--flip-delay, 0ms);
    }

    .sh-card-inner {
        transform: none !important;
        animation: none !important;
        opacity: 1;
        transition: none;
    }

    .sh-card-back { display: none; }

    .sh-card-face {
        position: relative;
        inset: auto;
        transform: none;
        flex-direction: row;
        align-items: stretch;
        min-height: 76px;
        border-width: 2px;
    }

    @keyframes shCardIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: none; }
    }

    .sh-card-art {
        width: 76px;
        flex: 0 0 76px;
        aspect-ratio: auto;
        height: auto;
    }

    .sh-card-body {
        align-items: flex-start;
        text-align: left;
        justify-content: center;
        /* 右下の数字バッジに文字が潜り込まないように右を空ける */
        padding: 0.4rem 2rem 0.4rem 0.55rem;
    }

    .sh-card-name { font-size: 0.92rem; }
    .sh-card-note { font-size: 0.66rem; }
    .sh-glyph { font-size: 2rem; }

    .sh-card-key {
        top: auto;
        bottom: 0.3rem;
        right: 0.4rem;
        left: auto;
        width: 22px;
        height: 22px;
        line-height: 20px;
        font-size: 0.7rem;
    }

    /* 捨てる画面の6枚も縦1列。6枚を1画面で見比べられることを優先する
       （2列グリッドだと3行目が画面外に出て、比較が成立しない） */
    .sh-cards-discard {
        flex-direction: column;
        gap: 0.35rem;
        margin-top: 0.6rem;
    }

    .sh-cards-discard .sh-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .sh-cards-discard .sh-card-face {
        flex-direction: row;
        min-height: 60px;
    }

    .sh-cards-discard .sh-card-art {
        width: 60px;
        flex: 0 0 60px;
        aspect-ratio: auto;
        height: auto;
    }

    .sh-cards-discard .sh-card-name { font-size: 0.85rem; }
    .sh-cards-discard .sh-card-note { font-size: 0.6rem; }
    .sh-cards-discard .sh-card-rarity { font-size: 0.55rem; }

    .sh-hint { margin-top: 0.7rem; font-size: 0.66rem; }

    .sh-kept { width: 74px; }
    .sh-kept span { font-size: 0.58rem; }
    .sh-result-table dd { font-size: 1.2rem; }
    .sh-result-table .is-lead dd { font-size: 1.5rem; }
    .sh-result-table dt { font-size: 0.8rem; }
    .sh-result-line, .sh-result-budget { font-size: 0.8rem; }

    /* --- 尖らせランでもレーザーチャージボタンを使えるようにする ---
       （既存の body[data-demo="blockbreaker"] ルールと同じ見た目） */
    body[data-demo="sharpen"][data-sharpen-laser="1"] #bb-charge-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.05rem;
        position: fixed;
        right: 0.9rem;
        bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px));
        width: 68px;
        height: 68px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.4);
        background: linear-gradient(135deg, #ff6b6b, #d90429);
        color: #fff;
        z-index: 130;
        touch-action: none;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
        box-shadow: 0 4px 16px rgba(217, 4, 41, 0.45);
    }
}

/* ================================
   光過敏性・前庭障害への配慮（OS 設定を尊重）
   ================================ */

@media (prefers-reduced-motion: reduce) {
    .sh-card-inner,
    .sh-verdict,
    .sh-cards {
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }

    .sh-card.is-chosen .sh-card-inner,
    #sharpen-banner.is-in,
    .sh-shard,
    .sh-card-inner {
        animation: none !important;
    }

    .sh-card-inner { opacity: 1; }

    .sh-card.is-flipped .sh-card-inner { transform: rotateY(180deg); }

    .sh-card.is-burned .sh-card-face,
    .sh-card.is-burned .sh-card-back {
        opacity: 0;
        transition: opacity 0.25s linear !important;
    }

    #sharpen-banner { opacity: 1; }

    .sh-card:not(:disabled):hover .sh-card-inner { transform: rotateY(180deg); }
}
