:root {
    --sfdg-radius: 6px;
    --paper: #f6edda;
    --light: #fff8e9;
    --spruce: #173e31;
    --forest: #102e24;
    --red: #a53538;
    --red-dark: #792127;
    --gold: #f4d38a;
    --muted: #526257;
    --line: #d7c9ad;
    --display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--forest);
    font: 16px/1.5 system-ui, sans-serif;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 3px solid #bd7225; outline-offset: 4px; }

.sfdg-case-page { display: flex; flex-direction: column; min-height: 100vh; }
.sfdg-topbar {
    position: relative;
    display: grid;
    justify-items: center;
    padding: 24px 20px 0;
    background: var(--light);
    border-top: 7px solid var(--spruce);
    border-bottom: 1px solid var(--line);
}
.sfdg-logo { display: block; width: clamp(200px, 34vw, 310px); }
.sfdg-logo img { width: 100%; height: auto; }
.sfdg-nav-row {
    position: relative;
    width: min(100%, 1150px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px 26px;
    margin-top: 13px;
}
.sfdg-nav-row nav, .sfdg-lang-switch {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 20px;
}
.sfdg-nav-row a {
    display: inline-block;
    padding: 7px 0;
    font-size: .875rem;
    text-decoration: none;
}
.sfdg-nav-row a:hover, .sfdg-nav-row a[aria-current] {
    color: var(--red-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.sfdg-lang-switch { gap: 9px; }
.sfdg-lang-switch a { font-size: .75rem; font-weight: 700; }

.sfdg-cases-layout, .sfdg-case-detail, .sfdg-prizes-page, .sfdg-rules-page {
    width: min(100% - 40px, 1150px);
    margin: 34px auto 60px;
}
.sfdg-landing-hero {
    display: grid;
    grid-template-columns: 46fr 54fr;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--forest);
    background: var(--spruce);
    color: var(--light);
    box-shadow: 6px 6px 0 #d9c8a7;
}
.sfdg-landing-copy { align-self: center; padding: clamp(22px, 4.4vw, 52px); }
.sfdg-landing-art-link { display: block; min-width: 0; }
.sfdg-landing-art-link:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.sfdg-landing-art-link img { display: block; }
.sfdg-landing-art { width: 100%; height: 100%; object-fit: cover; }
h1, h2, .sfdg-panel h3, #sfdg-win-title { font-family: var(--display); }
h1 {
    margin: 0 0 16px;
    font-size: clamp(2.35rem, 5vw, 4.5rem);
    line-height: 1;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}
.sfdg-landing-copy h1 { font-size: clamp(1.6rem, 3.1vw, 2.65rem); }
.sfdg-landing-copy > p:not(.sfdg-advent-period) { max-width: 30ch; margin: 0 0 24px; }
.sfdg-advent-period {
    margin: 0 0 12px;
    color: var(--gold);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .055em;
}
.sfdg-hero { margin-bottom: 26px; }
.sfdg-hero p { color: var(--muted); }

.sfdg-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 17px;
    border: 1px solid currentColor;
    border-radius: var(--sfdg-radius);
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}
.sfdg-button--primary {
    background: var(--red);
    color: var(--light);
    border-color: var(--red-dark);
    box-shadow: 0 3px 0 var(--red-dark);
}
.sfdg-button--primary:hover { background: var(--red-dark); }
.sfdg-cases-layout .sfdg-button.sfdg-button--primary { box-shadow: none; }
.sfdg-button--ghost { background: var(--light); color: var(--spruce); }
.sfdg-button--ghost:hover { background: var(--paper); }
.sfdg-button:disabled { opacity: .6; cursor: default; }

.sfdg-advent {
    padding: clamp(18px, 4vw, 42px);
    color: var(--light);
    background: var(--spruce);
    border: 1px solid var(--forest);
    box-shadow: 5px 5px 0 #d9c8a7;
}
.sfdg-advent-intro { max-width: 64ch; margin: 0 0 20px; }
.sfdg-advent-notice { margin: 0 0 18px; color: var(--gold); font-weight: 700; }
.sfdg-advent-days {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: clamp(5px, 1vw, 11px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.sfdg-advent-day {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: clamp(60px, 8vw, 95px);
    padding: 6px 2px;
    background: #23513f;
    box-shadow: inset 0 0 0 3px #193e30;
    border: 1px dashed #98aa8a;
    color: var(--light);
    text-align: center;
}
.sfdg-advent-day:nth-child(3n+1) {
    background: #843337;
    box-shadow: inset 0 0 0 3px #6d292c;
    border-color: #e8ab98;
}
.sfdg-advent-day strong { font: 700 clamp(1.5rem, 4vw, 2.45rem)/1 var(--display); }
.sfdg-advent-day span { margin-top: 5px; font-size: clamp(.625rem, 1.2vw, .8rem); overflow-wrap: anywhere; }
.sfdg-advent-day[data-state="past"] {
    background: var(--forest);
    box-shadow: none;
    border-color: #789587;
    color: #d0ddd0;
}
.sfdg-advent-day[data-state="opened"] {
    background: var(--paper);
    box-shadow: none;
    border-color: var(--gold);
    color: var(--forest);
}
.sfdg-advent-day[data-state="today"] {
    background: var(--gold);
    box-shadow: inset 0 0 0 3px #fff2c4;
    border: 1px solid #8d5521;
    color: #38281e;
}
.sfdg-door-button {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.sfdg-advent-day:has(.sfdg-door-button:hover:not(:disabled)) { background: #ffe7a8; }
.sfdg-door-button:disabled { display: none; }

.sfdg-case-stage__hero { display: flex; gap: 22px; justify-content: space-between; align-items: center; }
.sfdg-case-stage__box { width: min(30%, 220px); flex-shrink: 0; }
.sfdg-case-actions { margin: 20px 0; }
.sfdg-case-actions:empty { display: none; }
.sfdg-message-inline, .sfdg-message-card, .sfdg-empty {
    margin: 0;
    padding: 14px 18px;
    border: 1px solid var(--line);
    background: var(--light);
}
.sfdg-message-inline { border-left: 4px solid var(--red); }
.sfdg-message-card h3 { margin: 0; }
.sfdg-message-card p { margin: 8px 0 14px; }
.sfdg-inline-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.sfdg-reel-window { position: relative; overflow: hidden; }
.sfdg-reel { display: flex; gap: 8px; }
.sfdg-reel-item {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 126px;
    height: 108px;
    background: var(--light);
}
.sfdg-reel-item img { max-width: 85%; max-height: 85px; object-fit: contain; }
.sfdg-reel-pointer {
    position: absolute;
    z-index: 1;
    top: 6px;
    bottom: 6px;
    left: calc(50% - 2px);
    width: 4px;
    background: var(--red);
    pointer-events: none;
}
.sfdg-progress { display: none; position: relative; height: 8px; overflow: hidden; background: #e5d7bb; }
.sfdg-progress.is-visible { display: block; }
.sfdg-progress__bar { position: absolute; inset: 0 auto 0 0; background: var(--red); }

.sfdg-panel {
    margin-top: 24px;
    padding: clamp(16px, 3vw, 26px);
    background: var(--light);
    border: 1px solid var(--line);
}
.sfdg-panel h2, .sfdg-panel h3 { margin: 0 0 14px; font-size: 1.7rem; }
.sfdg-panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sfdg-possible-grid, .sfdg-win-grid, .sfdg-cases-grid, .sfdg-prizes-grid { display: grid; gap: 14px; }
.sfdg-possible-grid { grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); }
.sfdg-win-grid, .sfdg-cases-grid, .sfdg-prizes-grid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.sfdg-cases-grid { margin-top: 24px; }
.sfdg-possible-item { padding: 10px; border: 1px solid var(--line); font-size: .82rem; }
.sfdg-possible-image {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 95px;
    margin-bottom: 8px;
    background: #fff;
}
.sfdg-possible-image img { width: 100%; height: 90px; object-fit: contain; }
.sfdg-discount-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 2px 5px;
    background: var(--red-dark);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
}
.sfdg-win-item { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 8px 0; }
.sfdg-win-item img { width: 44px; height: 44px; object-fit: contain; background: #fff; }
.sfdg-win-item img.has-custom-image { background: transparent; }
.sfdg-win-item small, .sfdg-case-card small { display: block; color: var(--muted); }
.sfdg-prize-card, .sfdg-case-card { background: var(--light); border: 1px solid var(--line); }
.sfdg-case-card__image img, .sfdg-prize-card > img { width: 100%; height: 180px; object-fit: contain; background: #fff; }
.sfdg-case-card__body, .sfdg-prize-card__body { padding: 16px; }
.sfdg-case-card h2, .sfdg-prize-card h3 { margin: 0 0 8px; }
.sfdg-prize-card p { margin: 0 0 6px; }
.sfdg-prize-card .sfdg-button, .sfdg-case-card .sfdg-button { margin-top: 14px; }
.sfdg-status-pill { display: inline-block; margin-bottom: 8px; color: var(--red-dark); font-size: .8rem; font-weight: 800; }
.sfdg-rules-page { max-width: 840px; }
.sfdg-rules-list {
    padding: 0 22px 0 48px;
    margin: 0;
    border-top: 4px solid var(--spruce);
    background: var(--light);
}
.sfdg-rules-list li { padding: 16px 0 16px 6px; }
.sfdg-rules-list li + li { border-top: 1px solid var(--line); }
.sfdg-rules-list li::marker { color: var(--red-dark); font-weight: 800; }
.sfdg-foot {
    padding: 20px;
    margin-top: auto;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
    font-size: .8rem;
}
.sfdg-modal { position: fixed; inset: 0; display: none; place-items: center; z-index: 5; }
.sfdg-modal.is-open { display: grid; }
.sfdg-modal__backdrop { position: absolute; inset: 0; background: #0d201bd9; }
.sfdg-modal__card {
    position: relative;
    width: min(100% - 32px, 440px);
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 28px;
    border: 1px solid var(--forest);
    border-top: 6px solid var(--red);
    background: var(--light);
    box-shadow: 5px 5px 0 var(--forest);
}
.sfdg-modal__close { position: absolute; top: 8px; right: 8px; padding: 2px 9px; border: 0; background: transparent; color: var(--forest); font-size: 1.6rem; cursor: pointer; }
.sfdg-modal__image { position: relative; width: 140px; height: 140px; margin: 0 auto 16px; background: #fff; }
.sfdg-modal__image img { width: 100%; height: 100%; object-fit: contain; }
.sfdg-modal__card h3 { margin: 0; font-size: 1.8rem; }

@media (max-width: 700px) {
    .sfdg-topbar { padding-top: 18px; }
    .sfdg-nav-row { flex-wrap: wrap; gap: 0 14px; }
    .sfdg-cases-layout, .sfdg-case-detail, .sfdg-prizes-page, .sfdg-rules-page {
        width: calc(100% - 28px);
        margin-top: 20px;
    }
    .sfdg-landing-hero { grid-template-columns: 1fr; }
    .sfdg-landing-art { aspect-ratio: 3 / 2; height: auto; }
    .sfdg-advent h1, .sfdg-landing-copy h1 { font-size: clamp(1.6rem, 8vw, 2.5rem); }
    .sfdg-advent-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Winter game surfaces */
:root {
    color-scheme: dark;
    --paper: #101614;
    --light: #19211e;
    --spruce: #245640;
    --forest: #0a150f;
    --red: #a82e41;
    --red-dark: #782131;
    --gold: #ebc77c;
    --muted: #aebfb5;
    --line: #33463c;
    --ink: #f5efe3;
    --display: system-ui, sans-serif;
}

body { color: var(--ink); }
.sfdg-case-page { position: relative; }
.sfdg-topbar { position: relative; z-index: 2; background: #151c18; border-top: 3px solid var(--spruce); padding-top: 14px; }
.sfdg-logo {
    width: clamp(145px, 23vw, 184px);
    padding: 5px 8px;
    border-radius: 4px;
    background: #f6f1e5;
}
.sfdg-nav-row { margin-top: 5px; }
.sfdg-nav-row a:hover, .sfdg-nav-row a[aria-current] { color: var(--gold); }
h1 { font-weight: 730; letter-spacing: -.052em; }
.sfdg-landing-hero, .sfdg-advent {
    color: var(--ink);
    border: 1px solid #45644f;
    border-radius: 12px;
    background: #173829;
    box-shadow: 0 16px 42px #0005;
}
.sfdg-landing-copy h1 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.sfdg-landing-art { color-scheme: light; }
.sfdg-advent-day { border-radius: 5px; box-shadow: inset 0 -3px 0 #172b22; }
.sfdg-advent-day:nth-child(3n+1) { box-shadow: inset 0 -3px 0 #491c23; }
.sfdg-advent-day[data-state="opened"] { background: #233b2f; color: var(--ink); }
.sfdg-advent-day[data-state="past"] { color: #aabbb0; }
.sfdg-button--primary { color: #fff8eb; }
.sfdg-button--ghost { color: var(--ink); border-color: #607868; }
.sfdg-button--ghost:hover { background: #24342b; }
.sfdg-case-actions { margin: 16px 0; }
.sfdg-message-inline, .sfdg-message-card, .sfdg-empty { color: var(--ink); border-radius: 6px; }
.sfdg-reel-pointer { background: var(--gold); box-shadow: 0 0 14px #e1bc6288; }
.sfdg-reel-item { background: #f0f2e9; border-radius: 5px; }
.sfdg-reel-item img { mix-blend-mode: multiply; }
.sfdg-progress { margin-top: 10px; background: #263a30; }
.sfdg-panel, .sfdg-prize-card, .sfdg-case-card { border-radius: 8px; overflow: hidden; }
.sfdg-possible-item { background: #111915; border-color: #33443b; border-radius: 5px; }
.sfdg-possible-image { background: #e7eae2; border-radius: var(--sfdg-radius); }
.sfdg-possible-image img { mix-blend-mode: multiply; }
.sfdg-online-note, .sfdg-landing-copy > .sfdg-online-note {
    margin: 0 0 14px;
    color: #d8c99d;
    font-size: .84rem;
}
.sfdg-landing-copy > .sfdg-online-note { margin: 14px 0 0; }
.sfdg-foot p { max-width: 780px; margin: 0 auto 8px; }
.sfdg-status-pill, .sfdg-rules-list li::marker { color: var(--gold); }
.sfdg-prize-card h2 { margin: 0 0 8px; font-size: 1.18rem; }
.sfdg-prize-timer time { font: 700 1rem monospace; color: var(--gold); }
.sfdg-code-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.sfdg-code-row code, .sfdg-share-preview code {
    padding: 4px 8px; border-radius: 4px; background: #0f1913; color: var(--gold); overflow-wrap: anywhere;
}
.sfdg-prizes-page .sfdg-prize-card[data-prize-state="used"] .sfdg-code-row {
    border-color: #4a6054;
    color: #c0cbc2;
}
.sfdg-prizes-page .sfdg-prize-card[data-prize-state="used"] .sfdg-code-row code {
    color: #bac5b8;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}
.sfdg-prizes-page .sfdg-prize-card[data-prize-state="expired"] .sfdg-code-row {
    border-color: #d6aa62;
    background: #f6dfb4;
    color: #4c3117;
}
.sfdg-prizes-page .sfdg-prize-card[data-prize-state="expired"] .sfdg-code-row code {
    background: #fff1d2;
    color: #4c3117;
}
.sfdg-prizes-page .sfdg-prize-card[data-prize-state="expired"] .sfdg-copy-icon {
    border-color: #705b45;
    background: #fff8eb;
    color: #4c3117;
}
.sfdg-prizes-page .sfdg-prize-card[data-prize-state="expired"] .sfdg-prize-timer { display: none; }
.sfdg-modal__card {
    border: 1px solid #526b58; border-top: 4px solid var(--red); border-radius: 10px;
    background: var(--light); color: var(--ink); box-shadow: 0 18px 60px #0008;
}
.sfdg-modal__close { color: var(--ink); }
.sfdg-share-dialog {
    position: fixed;
    width: min(calc(100% - 28px), 550px);
    max-height: calc(100dvh - 24px);
    overscroll-behavior: contain;
    padding: clamp(14px, 4vw, 24px);
    border: 1px solid #c7a979;
    border-radius: var(--sfdg-radius);
    background: #fff;
    color: #19382c;
    box-shadow: 0 18px 60px #0008;
}
.sfdg-share-dialog::backdrop { background: rgb(5 20 15 / .82); }
.sfdg-share-dialog .sfdg-modal__close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #517e65;
    border-radius: var(--sfdg-radius);
    background: #19382c;
    color: #fff5d6;
}
.sfdg-share-dialog h2 { padding-inline-end: 34px; margin: 0; font-family: var(--game-heading, Georgia, serif); }
.sfdg-share-dialog .sfdg-inline-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    margin-top: 15px;
}
.sfdg-share-dialog .sfdg-inline-actions button:disabled { opacity: .6; cursor: wait; }
:is(.sfdg-share-dialog, .sfdg-shared-prize) .sfdg-inline-actions .sfdg-button--primary {
    background: #951d30;
    border-color: #951d30;
    color: #fff9ec;
    box-shadow: none;
}
:is(.sfdg-share-dialog, .sfdg-shared-prize) .sfdg-inline-actions .sfdg-button--primary:hover { background: #771628; }
:is(.sfdg-share-dialog, .sfdg-shared-prize) .sfdg-inline-actions .sfdg-button--ghost {
    background: #19382c;
    border-color: #517e65;
    color: #fff9ec;
}
:is(.sfdg-share-dialog, .sfdg-shared-prize) .sfdg-inline-actions .sfdg-button--ghost:hover { background: #245540; }
.sfdg-share-preview {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 0;
    color: #19382c;
    text-align: center;
}
.sfdg-share-art {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 84px;
    overflow: hidden;
    padding: 10px;
    border-radius: var(--sfdg-radius);
    background: radial-gradient(ellipse at 50% 43%, #3d6950, #17382c 80%);
}
.sfdg-share-art::before, .sfdg-share-art::after {
    position: absolute;
    color: #ffe0a2;
    font-size: 1.5rem;
    line-height: 1;
    content: '✦';
    pointer-events: none;
}
.sfdg-share-art::before { top: 15%; right: 11%; }
.sfdg-share-art::after { bottom: 16%; left: 12%; }
.sfdg-share-art img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    max-width: 220px;
    height: clamp(160px, 45vw, 225px);
    object-fit: contain;
    border-radius: var(--sfdg-radius);
    background: #fff8e9;
}
.sfdg-share-art img.has-custom-image { max-width: none; background: transparent; }
.sfdg-share-badge {
    position: absolute;
    z-index: 3;
    inset: 10px auto auto 10px;
    padding: 5px 12px;
    border-radius: var(--sfdg-radius);
    background: #ffe0a2;
    color: #3b2617;
    font-size: clamp(1.15rem, 5vw, 1.7rem);
    font-weight: 800;
    line-height: 1.1;
}
.sfdg-share-art:not(:has(img:not([hidden]))) .sfdg-share-badge { position: static; display: inline-block; }
.sfdg-share-preview [hidden] { display: none !important; }
.sfdg-share-dialog .sfdg-share-preview .sfdg-online-note { color: #425b50; }
.sfdg-share-dialog .sfdg-share-preview code { background: #f3f6f3; color: #19382c; }
.sfdg-share-preview p, #sfdg-share-feedback:empty { margin: 0; }
.sfdg-snow { position: absolute; z-index: 1; top: 100px; left: 0; right: 0; height: 460px; pointer-events: none; overflow: hidden; }
.sfdg-snow i {
    position: absolute; left: var(--flake-x); top: -10px;
    width: var(--flake-size); height: var(--flake-size); border-radius: 50%; background: #fff;
    opacity: 0; animation: sfdg-snow-fall 9s var(--flake-delay) ease-in both;
}
@keyframes sfdg-snow-fall {
    0% { opacity: 0; transform: translate(0, 0); }
    16%, 73% { opacity: .62; }
    100% { opacity: 0; transform: translate(70px, 415px); }
}
@media (prefers-reduced-motion: reduce) {
    .sfdg-snow { display: none; }
}
.sfdg-advent-day { color: var(--ink); }
.sfdg-advent-day time[datetime*="-11-"] strong { font-size: clamp(.95rem, 3vw, 1.8rem); }
.sfdg-landing-copy > p.sfdg-online-note:not(.sfdg-advent-period) { margin: 16px 0 0; max-width: 46ch; }

.sfdg-wheel { scroll-margin-top: 20px; margin-top: 22px; }
.sfdg-wheel-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.sfdg-wheel-actions {
    display: flex;
    justify-content: center;
    margin: 16px auto 0;
    width: calc(100% - 32px);
}
.sfdg-wheel .sfdg-button.sfdg-wheel-spin {
    min-width: min(100%, 230px);
    min-height: 48px;
    padding-inline: 26px;
    border: 1px solid #c87866;
    border-radius: var(--sfdg-radius);
    background: linear-gradient(180deg, #a83e47, #762532);
    color: #fff4e4;
    box-shadow: none;
}
.sfdg-wheel .sfdg-button.sfdg-wheel-spin:enabled:hover {
    background: linear-gradient(180deg, #b74952, #892c39);
}
.sfdg-wheel-spin:disabled { opacity: .6; cursor: default; }
.sfdg-wheel-spin:focus-visible, .sfdg-sound-toggle:focus-visible {
    outline: 2px solid #fbd483;
    outline-offset: 3px;
}
.sfdg-wheel-top h2 { margin: 0; font-size: 1.55rem; }
.sfdg-wheel-feedback { color: var(--muted); font-size: .88rem; margin: 10px 0 0; }
.sfdg-wheel-feedback:empty { margin: 0; }

.sfdg-copy-code { position: relative; display: inline-flex; align-items: center; gap: 5px; max-width: 100%; }
.sfdg-copy-icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #607868;
    border-radius: 5px;
    background: #192a20;
    color: var(--ink);
    cursor: pointer;
    flex: 0 0 auto;
}
.sfdg-copy-icon:enabled:hover { background: #37513e; }
.sfdg-copy-icon:disabled { opacity: .55; cursor: default; }
.sfdg-copy-status:not(:empty) {
    position: absolute;
    z-index: 1;
    top: 100%;
    right: 0;
    background: #37513e;
    color: var(--ink);
    padding: 3px 6px;
    border-radius: 4px;
    font-size: .78rem;
    white-space: nowrap;
}

.sfdg-case-page { container-type: inline-size; }
.sfdg-wheel { width: 100cqw; margin-inline: calc((100% - 100cqw) / 2); }
.sfdg-wheel-top, .sfdg-wheel-feedback, .sfdg-wheel .sfdg-progress {
    width: min(calc(100% - 40px), 1150px);
    margin-inline: auto;
}
.sfdg-wheel .sfdg-reel-wrap {
    position: relative;
    overflow: hidden;
    margin: 12px 0 0;
    padding: 20px 12px;
    background: radial-gradient(ellipse at center, #1f4432, #0b1711 76%);
}
.sfdg-wheel .sfdg-reel-window {
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.sfdg-wheel .sfdg-reel-item {
    grid-template-rows: minmax(0, 1fr) 2.5em;
    gap: 6px;
    min-width: 0;
    flex-basis: clamp(128px, 10vw, 176px);
    height: clamp(136px, 10vw, 172px);
    padding: 8px 8px 5px;
}
.sfdg-reel-item.sfdg-prize-tile, .sfdg-possible-item.sfdg-prize-tile, .sfdg-prize-card.sfdg-prize-tile {
    --tile-accent: #aeb8c7;
    --tile-glow: #aeb8c733;
    --rarity-tone: #33483d;
    overflow: hidden;
    border: 0;
    border-bottom: 2px solid var(--tile-accent);
    border-radius: var(--sfdg-radius);
    background: linear-gradient(180deg, transparent 42%, var(--tile-glow)), #15281e;
    color: #f5f1ff;
}
.sfdg-prize-tile[data-rarity="green"] {
    --tile-accent: #8ddd9d;
    --tile-glow: #8ddd9d40;
    --rarity-tone: #244a35;
}
.sfdg-prize-tile[data-rarity="blue"] {
    --tile-accent: #83b6ff;
    --tile-glow: #83b6ff40;
    --rarity-tone: #233753;
}
.sfdg-prize-tile[data-rarity="red"] {
    --tile-accent: #ff8b97;
    --tile-glow: #ff8b9740;
    --rarity-tone: #512e3b;
}
.sfdg-prize-tile[data-rarity="gold"] {
    --tile-accent: #f4cf76;
    --tile-glow: #f4cf7640;
    --rarity-tone: #49391f;
}
.sfdg-prize-tile.is-selected {
    background: linear-gradient(180deg, var(--tile-glow), transparent 72%, var(--tile-glow)), #15281e;
}
.sfdg-reel-item.sfdg-prize-tile[data-rarity="gold"] {
    --tile-accent: #ffda80;
    --tile-glow: #ffd47499;
    background: linear-gradient(145deg, #f6db98, #d5a954 58%, #f1ce79);
    color: #3b2911;
}
.sfdg-reel-item.sfdg-prize-tile[data-rarity="gold"].is-selected {
    background: linear-gradient(145deg, #ffebb5, #deb25f 58%, #f8dc91);
}
.sfdg-reel-art {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 4px;
}
.sfdg-wheel .sfdg-reel-item img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    object-fit: contain;
    mix-blend-mode: normal;
}
.sfdg-prize-tile:not(.has-custom-image) .sfdg-reel-art {
    border-radius: var(--sfdg-radius);
    background: #f6f6f4;
}
/* Enlarge uploaded cut-outs whose transparent padding makes the product appear small. */
.sfdg-prize-tile.has-custom-image .sfdg-reel-art {
    overflow: hidden;
}
.sfdg-prize-tile.has-custom-image .sfdg-reel-art img {
    transform: var(--sfdg-cutout-fit, none);
}
.sfdg-prize-tile.has-custom-image .sfdg-discount-badge { z-index: 1; }
.sfdg-reel-art img[src*="/reel-1-167.png"] { --sfdg-cutout-fit: scale(1.6); }
.sfdg-reel-art img[src*="/reel-1-192.png"] { --sfdg-cutout-fit: scale(1.65) translateY(-1%); }
.sfdg-reel-art img[src*="/reel-1-2021.png"] { --sfdg-cutout-fit: scale(1.58) translateY(-1%); }
.sfdg-reel-art img:is([src*="/reel-1-3580.png"], [src*="/reel-1-4691.png"]) {
    --sfdg-cutout-fit: scale(1.7) translateY(-4%);
}
.sfdg-reel-art img[src*="/reel-1-4132.png"] { --sfdg-cutout-fit: scale(1.7); }
.sfdg-reel-label {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.sfdg-prize-tile .sfdg-discount-badge {
    top: 8px;
    left: 7px;
    background: #a0010c;
    color: #ffe0b2;
    border-radius: 2px;
}
.sfdg-wheel .sfdg-reel-pointer {
    z-index: 2;
    top: 9px;
    bottom: auto;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-inline: 7px solid transparent;
    border-top: 9px solid #fbd483;
    background: transparent;
    box-shadow: none;
}
.sfdg-prize-catalog { margin-top: clamp(24px, 4vw, 48px); }
.sfdg-prize-catalog h2 { margin: 0 0 8px; font-size: 1.55rem; }
.sfdg-prize-catalog .sfdg-possible-grid { gap: clamp(12px, 2vw, 22px); }
.sfdg-special-prize .sfdg-catalog-odds {
    display: flex;
    justify-content: flex-start;
    margin-top: auto;
}
.sfdg-catalog-prices { margin: 0; text-align: center; }
.sfdg-catalog-prices del { color: #cad2cb; }
.sfdg-catalog-prices strong { color: #ffe0a2; }
.sfdg-special-status { color: #ffd0cb; text-align: center; }
.sfdg-prize-catalog .sfdg-possible-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    padding: 8px 8px 10px;
}
.sfdg-prize-catalog .sfdg-possible-image { margin: 0; height: auto; background: transparent; }
.sfdg-prize-catalog .sfdg-possible-image img {
    height: clamp(92px, 10vw, 138px);
    mix-blend-mode: normal;
}
.sfdg-possible-name { color: inherit; overflow-wrap: anywhere; text-align: center; }
.sfdg-prize-rarity { align-self: flex-start; color: var(--tile-accent); margin-top: auto; font-size: .76rem; font-weight: 650; }

.sfdg-latest-wins {
    padding-inline: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

.sfdg-share-preview { position: relative; overflow: hidden; }
.sfdg-share-preview .sfdg-share-logo {
    width: min(156px, 85%);
    height: auto;
}
.sfdg-share-art .sfdg-snow { top: 0; height: 100%; opacity: .65; }

.sfdg-advent-day[data-state="opened"]::before,
.sfdg-advent-day[data-state="opened"]::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: clamp(15px, 30%, 30px);
    height: clamp(15px, 30%, 30px);
    pointer-events: none;
}
.sfdg-advent-day[data-state="opened"]::before {
    background: #c0a77c;
    clip-path: polygon(100% 0, 100% 100%, 77% 84%, 67% 62%, 49% 67%, 45% 46%, 23% 39%, 0 0);
}
.sfdg-advent-day[data-state="opened"]::after {
    background: #173829;
    clip-path: polygon(17% 0, 100% 0, 100% 84%, 85% 72%, 76% 49%, 57% 54%, 54% 35%, 31% 27%);
}

.sfdg-shared-prize > .sfdg-panel {
    padding: clamp(16px, 4vw, 32px);
    border: 1px solid #c7a979;
    border-radius: var(--sfdg-radius);
    background: #142d23;
    color: #f9f2df;
}
.sfdg-shared-prize h1 {
    margin-bottom: 18px;
    font: 650 clamp(1.55rem, 5vw, 2.2rem)/1.15 var(--game-heading, Georgia, serif);
}
.sfdg-shared-prize .sfdg-share-art img { height: clamp(190px, 50vw, 330px); max-width: 330px; background: transparent; }
.sfdg-shared-prize .sfdg-share-art img.has-custom-image { max-width: none; }
.sfdg-shared-details { margin-top: 16px; }
.sfdg-shared-details h2 { margin: 20px 0 8px; font-size: 1.12rem; }
.sfdg-shared-details ol { margin: 0 0 14px; padding-inline-start: 1.4em; }
.sfdg-shared-prize li + li { margin-top: 7px; }
.sfdg-shared-ticket {
    padding: 10px 14px;
    border: 1px dashed #a59065;
    border-radius: var(--sfdg-radius);
    background: #1e3b2d;
}
.sfdg-shared-ticket .sfdg-code-row { justify-content: space-between; align-items: center; font-weight: 700; }
.sfdg-shared-ticket .sfdg-code-row code { background: #0f241b; color: #ffe0a2; }
.sfdg-shared-ticket p { margin: 4px 0 0; font-size: .85rem; }
.sfdg-shared-prize .sfdg-shared-details .sfdg-online-note { color: #d4dfcc; }

.sfdg-prizes-page .sfdg-prizes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.sfdg-prizes-page .sfdg-prize-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.sfdg-prize-card__art {
    position: relative;
    min-height: 42px;
    padding: 12px 12px 0;
    background: radial-gradient(ellipse at center, #345d47, transparent 75%);
}
.sfdg-prize-card__art img {
    display: block;
    width: 100%;
    height: clamp(135px, 18vw, 205px);
    padding: 8px;
    border-radius: var(--sfdg-radius);
    background: #f9faf6;
    object-fit: contain;
}
.sfdg-prize-card__art img.has-custom-image { background: transparent; }
.sfdg-prizes-page .sfdg-prize-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    overflow-wrap: anywhere;
}
.sfdg-prizes-page .sfdg-prize-card__body h2 { margin: 0; line-height: 1.28; }
.sfdg-prizes-page .sfdg-prize-card__body > p { margin: 0; }
.sfdg-prizes-page .sfdg-prize-card__body > p:not([class]) { color: #c3d3c8; font-size: .83rem; }
.sfdg-prizes-page .sfdg-prize-card .sfdg-status-pill {
    margin: 0;
    padding: 3px 12px;
    line-height: 1.2;
    border-radius: var(--sfdg-radius);
    background: #263a30;
    color: #e5eae3;
}
.sfdg-prizes-page .sfdg-prize-card[data-prize-state="won"] .sfdg-status-pill { background: #234d38; color: #e6f6e7; }
.sfdg-prizes-page .sfdg-prize-card[data-prize-state="used"] {
    border-bottom-color: #68716f;
    background: linear-gradient(180deg, #222826, #2b302f);
    color: #d6ddda;
}
.sfdg-prize-card[data-prize-state="used"] .sfdg-prize-card__art {
    background: radial-gradient(ellipse at center, #414846, transparent 75%);
}
.sfdg-prize-card[data-prize-state="used"] .sfdg-prize-card__art img {
    filter: grayscale(.8) brightness(.82);
}
.sfdg-prizes-page .sfdg-prize-card[data-prize-state="used"] .sfdg-status-pill {
    background: #414846;
    color: #e0e5e3;
}
.sfdg-prizes-page .sfdg-prize-card[data-prize-state="expired"] .sfdg-status-pill { background: #4a3826; color: #ffdfab; }
.sfdg-prizes-page .sfdg-prize-card .sfdg-prize-timer {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 9px;
    font-size: .83rem;
}
.sfdg-prizes-page .sfdg-prize-card .sfdg-code-row {
    width: 100%;
    min-width: 0;
    padding: 6px 9px;
    border: 1px dashed #577262;
    border-radius: var(--sfdg-radius);
    font-size: .8rem;
}
.sfdg-prizes-page .sfdg-prize-card .sfdg-inline-actions {
    width: 100%;
    margin-top: auto;
    padding-top: 6px;
}
.sfdg-prizes-page .sfdg-prize-card .sfdg-inline-actions .sfdg-button { margin: 0; font-size: .82rem; }
.sfdg-prizes-page .sfdg-inline-actions .sfdg-button--ghost {
    border-color: #658974;
    background: #19382c;
    color: #fff4e4;
}
.sfdg-prizes-page .sfdg-inline-actions .sfdg-button--ghost:hover { background: #245540; }
.sfdg-prizes-page .sfdg-prize-card[data-prize-state="used"] .sfdg-button--ghost {
    border-color: #65706d;
    background: #343c39;
    color: #e0e5e3;
}
.sfdg-prizes-page .sfdg-prize-card[data-prize-state="used"] .sfdg-button--ghost:hover { background: #424b48; }
.sfdg-prizes-page .sfdg-inline-actions .sfdg-button--primary {
    border-color: #ad655b;
    background: #892c39;
    color: #fff4e4;
    box-shadow: none;
}
.sfdg-prizes-page .sfdg-inline-actions .sfdg-button--primary:enabled:hover { background: #a83e47; }
.sfdg-prizes-empty { grid-column: 1 / -1; padding: 24px; }
.sfdg-prizes-empty p { margin: 0 0 13px; }
@media (max-width: 850px) {
    .sfdg-prizes-page .sfdg-prizes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .sfdg-prizes-page .sfdg-prizes-grid { grid-template-columns: minmax(0, 1fr); }
}
