﻿.fgs-sd .fgs-top__spacer {
    width: 40px;
    min-width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.content:has(.fgs-page.fgs-sd:not(.fgs-sd-map)) {
    overflow: hidden;
    background: #0f141b;
}

.ajaxcompetition:has(.fgs-page.fgs-sd:not(.fgs-sd-map)),
.competitionactivity:has(.fgs-page.fgs-sd:not(.fgs-sd-map)) {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #0f141b;
}

.fgs-page.fgs-sd:not(.fgs-sd-map) {
    height: auto;
    min-height: 100%;
    overflow: visible;
    flex-shrink: 0;
    background-color: #0f141b;
    background-image: radial-gradient(120% 80% at 50% -10%, #1e3a3a 0%, #141b24 52%, #0f141b 100%);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% 100%;
}

.fgs-page.fgs-sd:not(.fgs-sd-map) .fgs-bg {
    position: absolute;
    inset: 0;
}

.fgs-page.fgs-sd:not(.fgs-sd-map)::after {
    content: "";
    position: absolute;
    top: 6%;
    left: 50%;
    width: 160px;
    height: 160px;
    margin-left: -80px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.38) 0%, transparent 70%);
    animation: fsd-glow-burst 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fgs-page.fgs-sd:not(.fgs-sd-map) .fgs-name {
    animation: fsd-title-glow 0.9s 0.08s ease both;
}

.fgs-page.fgs-sd:not(.fgs-sd-map) .fsd-modes {
    animation: fsd-rise 0.52s 0.08s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.fgs-page.fgs-sd:not(.fgs-sd-map) .fsd-mini {
    animation: fsd-mini-in 0.48s 0.22s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.fgs-page.fgs-sd:not(.fgs-sd-map) .fsd-modebtn:last-child .fsd-mini {
    animation-delay: 0.3s;
}

.fgs-page.fgs-sd:not(.fgs-sd-map) .fsd-diff {
    animation: fsd-card-in 0.52s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.fgs-page.fgs-sd:not(.fgs-sd-map) .fsd-diff:nth-child(1) { animation-delay: 0.18s; }
.fgs-page.fgs-sd:not(.fgs-sd-map) .fsd-diff:nth-child(2) { animation-delay: 0.26s; }
.fgs-page.fgs-sd:not(.fgs-sd-map) .fsd-diff:nth-child(3) { animation-delay: 0.34s; }
.fgs-page.fgs-sd:not(.fgs-sd-map) .fsd-diff:nth-child(4) { animation-delay: 0.42s; }

.fgs-page.fgs-sd:not(.fgs-sd-map) .fsd-diff__icon {
    animation: fsd-icon-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.fgs-page.fgs-sd:not(.fgs-sd-map) .fsd-diff:nth-child(1) .fsd-diff__icon { animation-delay: 0.3s; }
.fgs-page.fgs-sd:not(.fgs-sd-map) .fsd-diff:nth-child(2) .fsd-diff__icon { animation-delay: 0.38s; }
.fgs-page.fgs-sd:not(.fgs-sd-map) .fsd-diff:nth-child(3) .fsd-diff__icon { animation-delay: 0.46s; }
.fgs-page.fgs-sd:not(.fgs-sd-map) .fsd-diff:nth-child(4) .fsd-diff__icon { animation-delay: 0.54s; }

.fgs-page.fgs-sd:not(.fgs-sd-map) .fsd-lbwrap {
    animation: fsd-rise 0.58s 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes fsd-glow-burst {
    0% { opacity: 0; transform: scale(0.35); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: scale(2.6); }
}

@keyframes fsd-title-glow {
    0% { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
    45% { text-shadow: 0 0 18px rgba(94, 234, 212, 0.55), 0 2px 12px rgba(0, 0, 0, 0.35); }
    100% { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
}

@keyframes fsd-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@keyframes fsd-card-in {
    0% { opacity: 0; transform: translateY(16px) scale(0.94); }
    70% { opacity: 1; transform: translateY(-2px) scale(1.015); }
    100% { opacity: 1; transform: none; }
}

@keyframes fsd-mini-in {
    from { opacity: 0; transform: scale(0.72) rotate(-8deg); }
    to { opacity: 1; transform: none; }
}

@keyframes fsd-icon-pop {
    0% { opacity: 0; transform: scale(0.55); }
    62% { opacity: 1; transform: scale(1.12); }
    100% { opacity: 1; transform: none; }
}

.fgs-sd .fsd-modes,
.fgs-sd .fsd-diffs,
.fgs-sd .fsd-lbwrap {
    position: relative;
    z-index: 3;
}

.fgs-sd .fsd-modes {
    margin: 8px 12px 14px;
}

.fgs-sd .fsd-modes__head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 2px 8px;
}

.fgs-sd .fsd-modes__label {
    font-size: 0.82rem;
    font-weight: 900;
    color: #e8eef5;
    letter-spacing: -0.01em;
}

.fgs-sd .fsd-modes__hint {
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.45;
    color: rgba(232, 238, 245, 0.55);
}

.fgs-sd .fsd-modes__track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 5px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.fgs-sd .fsd-modebtn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 12px 8px 10px;
    font: inherit;
    text-align: center;
    color: rgba(232, 238, 245, 0.78);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.fgs-sd .fsd-modebtn:active { transform: scale(0.97); }

.fgs-sd .fsd-modebtn.is-on {
    background: linear-gradient(180deg, rgba(94, 234, 212, 0.2), rgba(94, 234, 212, 0.08));
    border-color: rgba(94, 234, 212, 0.7);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.35), 0 10px 20px rgba(0, 0, 0, 0.28);
}

.fgs-sd .fsd-modebtn__tick {
    position: absolute;
    top: 7px;
    inset-inline-start: 7px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: transparent;
    font-size: 0.72rem;
    line-height: 1;
    opacity: 0.35;
    transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.fgs-sd .fsd-modebtn.is-on .fsd-modebtn__tick {
    background: var(--fgs-accent);
    color: var(--fgs-ink);
    opacity: 1;
    transform: scale(1.05);
}

.fgs-sd .fsd-modebtn__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.fgs-sd .fsd-modebtn__name {
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.2;
}

.fgs-sd .fsd-modebtn__desc {
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.4;
    color: rgba(232, 238, 245, 0.5);
}

.fgs-sd .fsd-modebtn.is-on .fsd-modebtn__desc {
    color: rgba(232, 238, 245, 0.78);
}

.fgs-sd .fsd-mini {
    width: 58px;
    height: 58px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    background: #f7fbf4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(18, 48, 28, 0.18);
}

.fgs-sd .fsd-mini b,
.fgs-sd .fsd-mini i {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-style: normal;
    font-weight: 900;
    font-size: 0.58rem;
    line-height: 1;
    color: #12261a;
    background: #f7fbf4;
    border: 0;
    box-shadow: inset -1px -1px 0 rgba(18, 48, 28, 0.18);
}

.fgs-sd .fsd-mini i { background: #eef4ea; }

.fgs-sd .fsd-mini b:nth-child(3n),
.fgs-sd .fsd-mini i:nth-child(3n) { box-shadow: inset 0 -1px 0 rgba(18, 48, 28, 0.18); }

.fgs-sd .fsd-mini b:nth-child(n+7),
.fgs-sd .fsd-mini i:nth-child(n+7) { box-shadow: inset -1px 0 0 rgba(18, 48, 28, 0.18); }

.fgs-sd .fsd-mini b:nth-child(9),
.fgs-sd .fsd-mini i:nth-child(9) { box-shadow: none; }

.fgs-sd .fsd-mini--color b {
    color: transparent;
}

.fgs-sd .fsd-mini--color b::after {
    content: "";
    width: 58%;
    height: 58%;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.fgs-sd .fsd-mini--color b:nth-child(1) { --c: #00acc1; }
.fgs-sd .fsd-mini--color b:nth-child(2) { --c: #fdd835; }
.fgs-sd .fsd-mini--color b:nth-child(5) { --c: #8e24aa; }
.fgs-sd .fsd-mini--color b:nth-child(6) { --c: #e53935; }
.fgs-sd .fsd-mini--color b:nth-child(7) { --c: #1e88e5; }
.fgs-sd .fsd-mini--color b:nth-child(9) { --c: #6d4c41; }

.fgs-sd .fsd-diffs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 12px 14px;
}

.fgs-sd .fsd-diff {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 10px 11px;
    text-align: center;
    font: inherit;
    color: #e8eef5;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.fgs-sd .fsd-diff:active { transform: scale(0.97); }
.fgs-sd .fsd-diff__top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}
.fgs-sd .fsd-diff__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    margin: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #e8eef5;
}
.fgs-sd .fsd-diff__icon .ti {
    font-size: 1.1rem;
    line-height: 1;
}
.fgs-sd .fsd-diff.is-easy .fsd-diff__icon {
    color: #3ddc84;
    background: rgba(61, 220, 132, 0.16);
    box-shadow: 0 0 0 1px rgba(61, 220, 132, 0.22);
}
.fgs-sd .fsd-diff.is-medium .fsd-diff__icon {
    color: #ffde01;
    background: rgba(255, 222, 1, 0.14);
    box-shadow: 0 0 0 1px rgba(255, 222, 1, 0.22);
}
.fgs-sd .fsd-diff.is-hard .fsd-diff__icon {
    color: #ff9f43;
    background: rgba(255, 159, 67, 0.16);
    box-shadow: 0 0 0 1px rgba(255, 159, 67, 0.24);
}
.fgs-sd .fsd-diff.is-expert .fsd-diff__icon {
    color: #fb7185;
    background: rgba(251, 113, 133, 0.16);
    box-shadow: 0 0 0 1px rgba(251, 113, 133, 0.24);
}
.fgs-sd .fsd-diff__name {
    display: block;
    font-weight: 900;
    font-size: 1rem;
    line-height: 1.2;
}
.fgs-sd .fsd-diff__prize {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 1px 0 0;
}
.fgs-sd .fsd-diff__rwd {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    direction: ltr;
    padding: 3px 7px 2px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(232, 238, 245, 0.92);
}
.fgs-sd .fsd-diff__rwd img {
    width: 15px;
    height: 15px;
    display: block;
    object-fit: contain;
}
.fgs-sd .fsd-diff__foot {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.fgs-sd .fsd-diff__track {
    display: block;
    flex: 1;
    min-width: 0;
    height: 5px;
    margin: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    overflow: hidden;
}
.fgs-sd .fsd-diff__track i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: currentColor;
    transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.fgs-sd .fsd-diff.is-easy .fsd-diff__track i { background: #3ddc84; }
.fgs-sd .fsd-diff.is-medium .fsd-diff__track i { background: #ffde01; }
.fgs-sd .fsd-diff.is-hard .fsd-diff__track i { background: #ff9f43; }
.fgs-sd .fsd-diff.is-expert .fsd-diff__track i { background: #fb7185; }
.fgs-sd .fsd-diff__prog {
    display: block;
    margin: 0;
    flex-shrink: 0;
    font-size: 0.66rem;
    font-weight: 800;
    white-space: nowrap;
    color: rgba(232, 238, 245, 0.7);
}

.fgs-sd-easy .sudokuitem_check { background: radial-gradient(circle at 32% 28%, #9dffc8 0%, #3ddc84 58%, #15803d 100%) !important; }
.fgs-sd-medium .sudokuitem_check { background: radial-gradient(circle at 32% 28%, #ffe08a 0%, #ffde01 58%, #b8860b 100%) !important; }
.fgs-sd-hard .sudokuitem_check { background: radial-gradient(circle at 32% 28%, #ffd0a0 0%, #ff9f43 58%, #c2410c 100%) !important; }
.fgs-sd-expert .sudokuitem_check { background: radial-gradient(circle at 32% 28%, #fecdd3 0%, #fb7185 58%, #9f1239 100%) !important; }
.fgs-sd .fsd-diff.is-easy { border-color: rgba(61, 220, 132, 0.38); }
.fgs-sd .fsd-diff.is-medium { border-color: rgba(255, 222, 1, 0.38); }
.fgs-sd .fsd-diff.is-hard { border-color: rgba(255, 171, 64, 0.42); }
.fgs-sd .fsd-diff.is-expert { border-color: rgba(251, 113, 133, 0.42); }

.fgs-sd .fsd-lbwrap.wc26-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 4px 10px 28px;
    background: transparent;
    box-sizing: border-box;
}

.fsd-play.fws-page {
    padding-bottom: 8px;
    background: linear-gradient(180deg, #1c2734 0%, #141b24 78%);
    color: #e8eef5;
}
.fsd-play.is-easy { background: linear-gradient(180deg, #1e3a2a 0%, #141b24 78%); }
.fsd-play.is-medium { background: linear-gradient(180deg, #3a3320 0%, #161920 78%); }
.fsd-play.is-hard { background: linear-gradient(180deg, #3a2418 0%, #1a1412 78%); }
.fsd-play.is-expert { background: linear-gradient(180deg, #3a1822 0%, #1a1418 78%); }
.fsd-play .fws-top__round {
    max-width: 58%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fsd-play .fws-top__level {
    flex-shrink: 0;
}
.fsd-play.is-easy .fsd-timepill { border-color: rgba(61, 220, 132, 0.5); }
.fsd-play.is-medium .fsd-timepill { border-color: rgba(255, 222, 1, 0.5); }
.fsd-play.is-hard .fsd-timepill { border-color: rgba(255, 159, 67, 0.5); }
.fsd-play.is-expert .fsd-timepill { border-color: rgba(251, 113, 133, 0.5); }

.fsd-play .fws-top__level.is-hot {
    background: #fb7185;
    color: #1a0b12;
}

.fsd-timepill {
    flex-shrink: 0;
    width: 4.4rem;
    min-width: 4.4rem;
    max-width: 4.4rem;
    padding: 6px 6px 5px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.15;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fsd-boardwrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
}

.fsd-board {
    width: min(100%, calc(100vh - 250px), 430px);
    aspect-ratio: 1 / 1;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(9, 1fr);
    background: rgba(0, 0, 0, 0.18);
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    touch-action: manipulation;
    padding: 4px;
    box-sizing: border-box;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.fsd-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(18, 48, 28, 0.16);
    background: #f7fbf4;
    font-weight: 900;
    font-size: clamp(0.95rem, 4.2vw, 1.35rem);
    color: #1e88e5;
    user-select: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0;
    font-family: inherit;
}

.fsd-cell:nth-child(9n+3),
.fsd-cell:nth-child(9n+6) { border-right: 2px solid #12301c; }
.fsd-cell:nth-child(n+19):nth-child(-n+27),
.fsd-cell:nth-child(n+46):nth-child(-n+54) { border-bottom: 2px solid #12301c; }

.fsd-cell.is-given { color: #12261a; }
.fsd-cell.is-hl { background: #d9ead3; }
.fsd-cell.is-sel { background: #b3e5fc; }
.fsd-cell.is-same { background: #c8e6c9; }
.fsd-cell.is-err { color: #d32f2f; background: #ffcdd2; }
.fsd-cell.is-err-pop { animation: fsd-err-pop 0.42s cubic-bezier(0.22, 1, 0.36, 1); z-index: 2; }
.fsd-cell.is-hint-pop { background: #fff3bf; box-shadow: inset 0 0 0 2px #f5c518; animation: fsd-hint-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1); z-index: 2; }
.fsd-cell.is-drop { background: #81d4fa; box-shadow: inset 0 0 0 2px #0277bd; }
.fsd-cell.is-drop-bad { background: #ffcdd2; box-shadow: inset 0 0 0 2px #c62828; }
.fsd-cell.is-given.is-deal {
    animation: fsd-deal-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--d, 0) * 9ms);
}
.fsd-board.is-anim { overflow: visible; }
.fsd-board.is-win { box-shadow: 0 0 0 2px rgba(255, 222, 1, 0.38), 0 16px 34px rgba(255, 222, 1, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.fsd-cell.is-win-lit {
    animation: fsd-win-lit 0.34s ease both;
    background: #ffe082 !important;
    color: #111;
}
.fsd-lives { margin: 2px 0 6px; }
.fsd-keys.is-deal .fsd-key {
    animation: fsd-key-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--k, 0) * 32ms);
}
.fsd-key.is-hint-source { box-shadow: 0 0 0 3px #ffde01, 0 0 14px rgba(255, 222, 1, 0.45); }
.fsd-dragghost.is-hintfly {
    transition: left 0.3s cubic-bezier(0.22, 1, 0.36, 1), top 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 12px 24px rgba(255, 222, 1, 0.35), 0 0 0 2px #ffde01;
}
@keyframes fsd-deal-in {
    0% { opacity: 0; transform: scale(0.15); }
    62% { opacity: 1; transform: scale(1.12); }
    100% { opacity: 1; transform: none; }
}
@keyframes fsd-key-in {
    0% { opacity: 0; transform: translateY(10px) scale(0.82); }
    100% { opacity: 1; transform: none; }
}
@keyframes fsd-hint-pop {
    0% { transform: scale(0.55); }
    55% { transform: scale(1.12); }
    100% { transform: none; }
}
@keyframes fsd-err-pop {
    0% { transform: scale(1); }
    18% { transform: scale(1.14) rotate(-7deg); }
    38% { transform: scale(0.94) rotate(6deg); }
    58% { transform: scale(1.08) rotate(-3deg); }
    100% { transform: none; }
}
@keyframes fsd-win-lit {
    0% { transform: scale(1); filter: brightness(1); }
    42% { transform: scale(1.08); filter: brightness(1.18); }
    100% { transform: scale(1); filter: none; }
}
@media (prefers-reduced-motion: reduce) {
    .fsd-cell.is-given.is-deal,
    .fsd-keys.is-deal .fsd-key,
    .fsd-cell.is-hint-pop,
    .fsd-cell.is-err-pop,
    .fsd-cell.is-win-lit { animation: none; }
    .fsd-dragghost.is-hintfly { transition: none; }
    .fgs-sd .fsd-modebtn,
    .fgs-sd .fsd-modebtn:active,
    .fgs-sd .fsd-modebtn__tick { transition: none; transform: none; }
    .fgs-page.fgs-sd:not(.fgs-sd-map)::after,
    .fgs-page.fgs-sd:not(.fgs-sd-map) .fgs-name,
    .fgs-page.fgs-sd:not(.fgs-sd-map) .fsd-modes,
    .fgs-page.fgs-sd:not(.fgs-sd-map) .fsd-mini,
    .fgs-page.fgs-sd:not(.fgs-sd-map) .fsd-diff,
    .fgs-page.fgs-sd:not(.fgs-sd-map) .fsd-diff__icon,
    .fgs-page.fgs-sd:not(.fgs-sd-map) .fsd-lbwrap {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

.fsd-swatch {
    width: 62%;
    height: 62%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55em;
    font-weight: 900;
    line-height: 1;
}

.fsd-notes {
    position: absolute;
    inset: 2px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    pointer-events: none;
}

.fsd-note {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.48rem;
    font-weight: 800;
    color: #455a64;
}

.fsd-note-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.fsd-tools {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    margin: 4px 10px 8px;
}

.fsd-tool {
    flex: 1;
    border: 0;
    border-radius: 12px;
    padding: 7px 3px 6px;
    font: inherit;
    font-size: 0.62rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1;
    white-space: nowrap;
}

.fsd-tool .ti {
    font-size: 1.02rem;
    line-height: 1;
    margin: 0;
    color: inherit;
}

.fsd-tool span { line-height: 1.1; }

.fsd-tool.is-on { background: #ffde01; color: #111; }
.fsd-tool--hint { background: rgba(119, 255, 171, 0.22); }
.fsd-tool.opacity4 { opacity: 0.4; pointer-events: none; }

.fsd-keys {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 4px;
    flex-shrink: 0;
    padding: 0 10px 8px;
    box-sizing: border-box;
    touch-action: none;
}

.fsd-key {
    height: 42px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 900;
    font-size: 1.05rem;
    background: #fff;
    color: #12301c;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.fsd-key.is-done { opacity: 0.35; }
.fsd-key .fsd-swatch { width: 70%; height: 70%; font-size: 0.7rem; }

.fsd-dragghost {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #12301c;
    font-weight: 900;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    transform: translate(-50%, -60%);
    font-family: inherit;
}

.fsd-dragghost .fsd-swatch { width: 70%; height: 70%; font-size: 0.7rem; }

@media (max-height: 640px) {
    .fsd-key { height: 36px; }
    .fsd-tool { padding: 6px 2px 5px; font-size: 0.56rem; }
    .fsd-tool .ti { font-size: 0.95rem; }
}
