:root {
    --color-primary: #3d5a45;
    --color-secondary: #8faf96;
    --color-accent: #c4a962;
    --color-bg: #101612;
    --color-text: #f3efe4;
    --color-text-light: #c9d0c2;
    --color-border: #3d5346;
    --df-bg: #101612;
    --df-bar: #17241d;
    --df-ink: #f3efe4;
    --df-muted: #c5cbb8;
    --df-gold: #c4a962;
    --df-gold-2: #f0d48a;
    --df-cream: #f4efe2;
    --df-ink-dark: #1a1408;
    --df-felt: #1c3328;
    --df-header-h: 72px;
    --df-page-w: 1200px;
    --df-space: 1.25rem;
    --df-font: "Courier Prime", "Courier New", serif;
    --df-display: "JetBrains Mono", ui-monospace, monospace;
}

[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

html, body {
    max-width: 100%;
    overflow-x: clip;
    margin: 0;
}

html { scroll-padding-top: var(--df-header-h); }

body {
    padding-top: var(--df-header-h);
    background: var(--df-bg);
    color: var(--df-ink);
    font-family: var(--df-font);
    font-size: 1.05rem;
    line-height: 1.65;
}

main { text-align: center; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
    font-family: var(--df-display);
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

a:not(.dfBtn) { color: var(--df-gold-2); }
a:not(.dfBtn):hover { color: #fff6d8; }

.dfContainer {
    width: 100%;
    max-width: var(--df-page-w);
    margin: 0 auto;
    padding-inline: 20px;
}

.dfSection { padding-block: 56px; }

.dfHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--df-header-h);
    background: var(--df-bar);
    box-shadow: 0 2px 0 #0a0e0c;
}

.dfHeader-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--df-header-h);
}

.dfHeader-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.dfHeader-logo svg {
    width: 180px;
    height: auto;
    display: block;
}

.dfNav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin-left: auto;
}

.dfNav a {
    color: var(--df-ink);
    text-decoration: none;
    font-family: var(--df-display);
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
}

.dfHeader a:not(.dfBtn),
.dfHeader a:not(.dfBtn):visited { color: #f3efe4; }

.dfHeader a:not(.dfBtn):hover { color: var(--df-gold-2); }

.dfNav a.dfIs-active { color: var(--df-gold-2); box-shadow: inset 0 -2px 0 var(--df-gold); }

.dfBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 4px;
    border: 2px solid transparent;
    font-family: var(--df-display);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    isolation: isolate;
}

a.dfBtn-primary,
a.dfBtn-primary:visited,
button.dfBtn-primary {
    color: var(--df-ink-dark);
    background: var(--df-gold);
    box-shadow: 0 0 12px rgba(196, 169, 98, 0.55);
}

a.dfBtn-primary:hover,
a.dfBtn-primary:focus-visible,
a.dfBtn-primary:active,
button.dfBtn-primary:hover,
button.dfBtn-primary:focus-visible,
button.dfBtn-primary:active {
    color: var(--df-ink-dark);
    background: var(--df-gold-2);
    box-shadow: 0 0 16px rgba(240, 212, 138, 0.75);
}

.dfHeader a.dfBtn-primary,
.dfHeader a.dfBtn-primary:visited,
.dfHeader a.dfBtn-primary:hover,
.dfHeader a.dfBtn-primary:focus-visible,
.dfHeader a.dfBtn-primary:active {
    color: var(--df-ink-dark);
}

.dfHeader a.dfBtn-primary:hover,
.dfHeader a.dfBtn-primary:focus-visible,
.dfHeader a.dfBtn-primary:active { background: var(--df-gold-2); }

a.dfBtn-ghost,
a.dfBtn-ghost:visited,
button.dfBtn-ghost {
    color: #f3efe4;
    background: transparent;
    border-color: #f3efe4;
    box-shadow: none;
}

a.dfBtn-ghost:hover,
a.dfBtn-ghost:focus-visible,
a.dfBtn-ghost:active,
button.dfBtn-ghost:hover,
button.dfBtn-ghost:focus-visible,
button.dfBtn-ghost:active {
    color: var(--df-ink-dark);
    background: #f3efe4;
    border-color: #f3efe4;
}

.dfBurger,
.dfOverlay,
.dfDrawer { display: none; }

.dfBurger {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    flex-shrink: 0;
    border: 2px solid #f3efe4;
    border-radius: 4px;
    background: var(--df-bar);
    color: #f3efe4;
    cursor: pointer;
}

.dfBurger span {
    display: block;
    flex: 0 0 2px;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.dfStrip {
    margin: 0;
    background: #24382c;
    color: var(--df-cream);
    font-family: var(--df-display);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 8px 16px;
}

.dfHero {
    background-color: #14261c;
    background-image: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 5px);
    padding-block: 48px 40px;
}

@media (max-width: 520px) {
    .dfHero { padding-block: 28px 20px; }
    .dfHero-copy { display: flex; flex-direction: column; }
    .dfHero-copy .dfActions { order: 2; margin-bottom: 14px; }
    .dfHero-copy .dfScore { order: 3; }
    .dfHero-copy .dfPixels { order: 4; }
}

.dfHero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 28px;
    align-items: center;
}

.dfKicker {
    font-family: var(--df-display);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--df-gold);
    margin: 0 0 0.6rem;
}

.dfHero-copy { text-align: center; }

.dfScore {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.dfScore li {
    min-width: 92px;
    background: #0e1a14;
    border: 2px solid var(--df-gold);
    padding: 8px 10px;
}

.dfScore strong {
    display: block;
    font-family: var(--df-display);
    font-size: 1.7rem;
    line-height: 1;
    color: var(--df-gold-2);
}

.dfScore span {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--df-muted);
}

.dfActions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.dfMosaic {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: 150px 150px;
    gap: 10px;
    min-width: 0;
}

.dfMosaic figure {
    margin: 0;
    overflow: hidden;
    min-width: 0;
    border: 2px solid #c4a962;
    background: #0e1a14;
}

.dfMosaic figure:first-child { grid-row: 1 / span 2; }

.dfMosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.dfPixels {
    display: grid;
    grid-template-columns: repeat(8, 10px);
    gap: 4px;
    width: max-content;
    margin: 18px auto 0;
}

.dfPixels span { display: block; height: 10px; background: var(--df-gold); }
.dfPixels span:nth-child(3n) { background: var(--df-cream); }
.dfPixels span:nth-child(4n) { background: #8faf96; }
.dfPixels span:nth-child(5n) { background: #c0392b; }

.dfTabs { padding-block: 28px 8px; }

.dfTablist {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding-bottom: 8px;
}

.dfTab {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 14px;
    border: 2px solid #8faf96;
    background: #14261c;
    color: #f3efe4;
    font-family: var(--df-display);
    font-weight: 700;
    cursor: pointer;
}

.dfTab:hover,
.dfTab:focus-visible {
    color: var(--df-ink-dark);
    background: #f3efe4;
    border-color: #f3efe4;
}

.dfTab.dfIs-on {
    color: var(--df-ink-dark);
    background: var(--df-gold);
    border-color: var(--df-gold);
}

.dfPanel {
    padding-block: 12px 36px;
    text-align: center;
}

.dfJs .dfPanel { display: none; }
.dfJs .dfPanel.dfIs-on { display: block; }

.dfAsk {
    max-width: 820px;
    margin-inline: auto;
}

.dfAsk details {
    border: 1px solid var(--color-border);
    background: #17241d;
    margin-bottom: 10px;
}

.dfAsk summary {
    position: relative;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 40px;
    font-family: var(--df-display);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    text-align: center;
}

.dfAsk summary::-webkit-details-marker { display: none; }

.dfAsk summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    font-size: 1.3rem;
    color: var(--df-gold-2);
}

.dfAsk details[open] summary::after { content: "\2013"; }

.dfAsk details p { margin: 0; padding: 0 16px 16px; color: var(--df-cream); }

.dfTableWrap { overflow-x: auto; }

.dfTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
}

.dfTable th,
.dfTable td {
    border: 1px solid #3d5346;
    padding: 10px 12px;
    text-align: center;
    vertical-align: top;
}

.dfTable th {
    font-family: var(--df-display);
    font-weight: 700;
    background: #24382c;
    color: var(--df-gold-2);
}

.dfGap { margin-top: 24px; }
.dfCenter { justify-content: center; }

.dfPassport {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    justify-items: center;
    width: min(720px, 100%);
    margin: 0 auto 18px;
    text-align: center;
}

.dfApp-icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    background: #0e1a14;
}

.dfBundle {
    overflow-wrap: anywhere;
    font-family: var(--df-display);
    font-size: 0.82rem;
}

.dfStills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
}

.dfStills figure { margin: 0; min-width: 0; }

.dfStills img { width: 100%; height: auto; }

.dfStills figcaption {
    font-size: 0.8rem;
    color: var(--df-muted);
    margin-top: 6px;
    text-align: center;
}

.dfCard {
    background:
        radial-gradient(circle at 0 18px, var(--df-bg) 8px, transparent 9px),
        radial-gradient(circle at 100% 18px, var(--df-bg) 8px, transparent 9px),
        radial-gradient(circle at 0 calc(100% - 18px), var(--df-bg) 8px, transparent 9px),
        radial-gradient(circle at 100% calc(100% - 18px), var(--df-bg) 8px, transparent 9px),
        #1c3328;
    border: 2px solid var(--df-gold);
    padding: 18px 20px;
    box-shadow: 0 8px 0 #0a0e0c;
    min-width: 0;
}

.dfCard:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 0 #0a0e0c;
}

.dfChips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.dfChips li { min-width: 0; }

.dfChip {
    min-height: 44px;
    padding: 8px 12px;
    border: 2px solid var(--df-gold);
    background: #14261c;
    color: #f3efe4;
    font-family: var(--df-display);
    font-weight: 700;
    cursor: pointer;
}

.dfChip:hover,
.dfChip:focus-visible,
.dfChip.dfIs-on {
    color: var(--df-ink-dark);
    background: var(--df-gold-2);
    border-color: var(--df-gold-2);
}

.dfChip-note {
    margin-top: 14px;
    min-height: 3.2em;
}

.dfFelt {
    background:
        repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 4px),
        #1a5c38;
    border: 3px solid #0d3a22;
    padding: 16px;
    min-width: 0;
}

.dfFelt-bar {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    text-align: center;
}

.dfFelt-score {
    font-family: var(--df-display);
    font-size: 1.4rem;
    color: #f4efe2;
    margin: 0;
}

.dfHand, .dfPiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.dfPiles { margin-top: 14px; }

.dfPile {
    flex: 1 1 180px;
    min-height: 120px;
    min-width: 0;
    border: 2px dashed #f4efe2;
    padding: 8px;
    background: rgba(0, 0, 0, 0.15);
}

.dfPile p { color: #f4efe2; font-family: var(--df-display); margin: 0 0 8px; }

.dfCardBtn {
    width: 52px;
    height: 74px;
    padding: 4px;
    border: 2px solid #1a1408;
    background: #f4efe2;
    color: #1a1408;
    font-family: var(--df-display);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}

.dfCardBtn:hover,
.dfCardBtn:focus-visible {
    color: #1a1408;
    background: #fff8e8;
}

.dfCardBtn.dfIs-picked {
    color: #1a1408;
    background: var(--df-gold-2);
    transform: translateY(-8px);
}

.dfCardBtn[data-suit="heart"],
.dfCardBtn[data-suit="diamond"] { color: #9d1c1c; }

.dfCardBtn small { display: block; font-size: 0.7rem; }

.dfCta {
    background-color: #14261c;
    background-image: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 5px);
    padding-block: 48px;
}

.dfFooter {
    background: #0c100e;
    color: #e7e2d4;
    padding-block: 36px 28px;
    text-align: center;
}

.dfFooter a:not(.dfBtn),
.dfFooter a:not(.dfBtn):visited { color: #f0d48a; }

.dfDesk {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: 20px;
    justify-items: center;
    border: 2px solid var(--df-gold);
    padding: 18px;
    background: #17241d;
    text-align: center;
}

.dfDesk-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.dfFooter-link {
    min-height: 44px;
    padding: 0 12px;
    border: 2px solid #f3efe4;
    background: #f3efe4;
    color: #1a1408;
    font-family: var(--df-display);
    font-weight: 700;
    cursor: pointer;
}

.dfFooter-link:hover,
.dfFooter-link:focus-visible {
    color: #1a1408;
    background: #ffffff;
    border-color: #ffffff;
}

.dfFine { font-size: 0.9rem; color: #c9c3b2; }

.dfCookie { display: none; }

.dfCookie:not([hidden]) {
    display: flex;
    position: fixed;
    z-index: 110;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 32px);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 8px 8px 8px 16px;
    border-radius: 999px;
    background: #0c100e;
    color: #f3efe4;
    border: 1px solid #c4a962;
}

.dfCookie p { margin: 0; font-size: 0.92rem; }

.dfCookie a,
.dfCookie a:visited { color: #f0d48a; }

.dfCookie .dfBtn {
    min-height: 40px;
    border-radius: 999px;
    box-shadow: none;
    color: #1a1408;
    background: #f3efe4;
}

.dfCookie .dfBtn:hover,
.dfCookie .dfBtn:focus-visible,
.dfCookie .dfBtn:active {
    color: #1a1408;
    background: #ffffff;
    box-shadow: none;
}

body.dfIs-cookie { padding-bottom: 84px; }

.dfOverlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
}

.dfDrawer {
    position: fixed;
    z-index: 210;
    background: #17241d;
    overflow-y: auto;
    visibility: hidden;
}

.dfDrawer a {
    display: block;
    padding: 14px 20px;
    color: #f3efe4;
    text-decoration: none;
    font-family: var(--df-display);
    font-size: 1.35rem;
}

.dfDrawer .dfBtn { margin: 12px 20px; }

.dfDrawer-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 2px solid #f3efe4;
    background: #17241d;
    color: #f3efe4;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.dfDrawer-close:hover,
.dfDrawer-close:focus-visible {
    color: #1a1408;
    background: #f3efe4;
}

.dfCrumbs { padding-top: 18px; }

.dfCrumbs ol {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 0;
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    font-family: var(--df-display);
    font-size: 0.78rem;
}

.dfCrumbs li:not(:last-child)::after {
    content: "/";
    margin: 0 8px;
    color: var(--df-muted);
}

.dfArticle, .dfProse {
    max-width: 760px;
    margin-inline: auto;
}

.dfArticle { padding-bottom: 48px; }

.dfChecks { list-style: none; padding: 0; margin: 0 0 1rem; }

.dfChecks li {
    margin: 0 0 10px;
}

.dfChecks li::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    vertical-align: -2px;
    background: var(--df-gold);
    box-shadow: inset 0 0 0 2px #1a1408;
}

.dfSeries {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 2px solid #3d5346;
}

.dfPins {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dfPin h2 { font-size: 1.05rem; }

.dfPin p { color: var(--df-muted); }

.dfSteps { counter-reset: step; list-style: none; padding: 0; }

.dfSteps li {
    counter-increment: step;
    margin: 0 0 16px;
    min-width: 0;
}

.dfSteps li::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
    background: var(--df-gold);
    color: #1a1408;
    font-family: var(--df-display);
    font-weight: 700;
}

.dfForm {
    display: grid;
    gap: 12px;
}

.dfForm label {
    display: grid;
    gap: 6px;
    font-family: var(--df-display);
    font-size: 0.85rem;
}

.dfForm input,
.dfForm textarea {
    width: 100%;
    min-width: 0;
    background: #0e1a14;
    color: #f3efe4;
    border: 2px solid #8faf96;
    padding: 10px 12px;
    font: inherit;
}

.dfForm textarea { min-height: 140px; resize: vertical; }

.dfMoment {
    min-height: 46vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding-block: 48px;
}

.dfMoment-art {
    width: 120px;
    height: 84px;
    margin: 0 auto 16px;
    background:
        linear-gradient(#f4efe2, #f4efe2) 8px 10px / 36px 64px no-repeat,
        linear-gradient(#c0392b, #c0392b) 52px 18px / 28px 48px no-repeat,
        linear-gradient(#1a1408, #1a1408) 78px 26px / 22px 40px no-repeat;
}

@media (max-width: 1100px) {
    :root { --df-header-h: 56px; }
    .dfNav { display: none; }
    .dfHeader a.dfHeader-cta { display: none; }
    .dfBurger { display: flex; order: 99; margin-left: auto; }
    .dfHeader-logo { margin-right: 0; }
    .dfHeader-logo svg { width: 120px; max-width: calc(100vw - 150px); }
    .dfOverlay { display: block; }
    .dfDrawer {
        display: block;
        inset: 0;
        height: 100vh;
        height: 100dvh;
        padding: 72px 24px 32px;
        opacity: 0;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }
    .dfDrawer a { font-size: 1.35rem; }
    body.dfIs-open { overflow: hidden; }
    body.dfIs-open .dfOverlay { display: none; }
    body.dfIs-open .dfDrawer { visibility: visible; opacity: 1; }
}

@media (max-width: 800px) {
    .dfHero-grid,
    .dfDesk,
    .dfPins,
    .dfPassport { grid-template-columns: 1fr; }
    .dfMosaic { grid-template-rows: 180px 120px; }
    .dfSection { padding-block: 40px; }
}

@media (max-width: 520px) {
    .dfContainer { padding-inline: 16px; }
    .dfCookie:not([hidden]) {
        flex-wrap: nowrap;
        align-items: center;
        padding: 6px 6px 6px 12px;
    }
    .dfCookie p { font-size: 0.8rem; line-height: 1.3; }
    .dfActions { flex-direction: column; align-items: stretch; }
    .dfActions .dfBtn { white-space: normal; }
    .dfPassport { grid-template-columns: 1fr; }
    .dfApp-icon { width: 72px; height: 72px; }
    .dfMosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 140px 140px; }
    .dfMosaic figure:first-child { grid-row: auto; grid-column: 1 / -1; height: 180px; }
    .dfCookie:not([hidden]) {
        left: 12px;
        right: 12px;
        transform: none;
        width: auto;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    :root { --df-header-h: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .dfCard:hover,
    .dfCardBtn.dfIs-picked { transform: none; }
    .dfDrawer { transition: none; }
}
