/* ══════════════════════════════════════════════════════════════════
   DIGIFY - daily Hangman-style card puzzle (Areas/Game/Views/Digify)
   ══════════════════════════════════════════════════════════════════ */

.digify {
    --digify-purple: #a855f7;

    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.digify-head {
    text-align: center;
    margin-bottom: 20px;
}

.digify-title {
    font-family: var(--display);
    font-size: 56px;
    letter-spacing: .04em;
    line-height: 1;
    margin: 0;
    color: var(--text);
}

.digify-title-num {
    color: var(--accent);
}

.digify-sub {
    color: var(--muted);
    margin: 8px auto 0;
    max-width: 560px;
}

.digify-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-family: var(--mono);
    font-size: 12px;
}

/* Development-only tools bar. */
.digify-dev {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 16px;
    padding: 8px 12px;
    border: 1px dashed var(--accent);
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
}

.digify-dev-tag {
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--accent);
    color: var(--bg);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
}

.digify-dev-text {
    flex: 1 1 240px;
    color: var(--text);
}

.digify-dev-btn {
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    font: inherit;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer;
}

.digify-dev-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

/* Normal / Hard tabs - hard is locked until today's normal card is finished. */
.digify-modes {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
}

.digify-mode {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    border: 0;
    color: var(--muted);
    font: inherit;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer;
}

.digify-mode + .digify-mode {
    border-left: 1px solid var(--line);
}

.digify-mode.is-active {
    background: var(--bg2);
    color: var(--accent);
}

.digify-mode:disabled {
    cursor: not-allowed;
    opacity: .6;
}

.digify-mode-lock[hidden] {
    display: none;
}

.digify-mode-status:empty {
    display: none;
}

/* "Card selected by ..." under the card. */
.digify-curator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
}

.digify-curator[hidden],
.digify-curator-img[hidden],
.digify-curator-name[hidden] {
    display: none;
}

.digify-curator-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
}

.digify-curator-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.digify-curator-label {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
}

.digify-curator-name {
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
}

a.digify-curator-name {
    color: var(--accent);
    text-decoration: none;
}

a.digify-curator-name:hover {
    text-decoration: underline;
}

/* Result panel: the way into hard mode once normal is done. */
.digify-hard-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--accent);
    border-left-width: 4px;
    border-radius: 4px;
    color: var(--text);
}

.digify-hard-cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.digify-hard-cta-title {
    font-size: 16px;
}

.digify-hard-cta-sub {
    font-size: 14px;
    color: var(--muted);
}

.digify-hard-cta-btn {
    font-size: 15px;
}

.digify-hard-cta[hidden] {
    display: none;
}

.digify-help {
    color: var(--muted);
    max-width: 100%;
}

.digify-help summary {
    cursor: pointer;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .08em;
    text-align: right;
}

.digify-help ul {
    margin: 10px 0 0;
    padding: 12px 16px 12px 28px;
    max-width: 640px;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

.digify-panel {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 20px;
}

.digify-empty {
    text-align: center;
    color: var(--muted);
}

.digify-section-label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── Layout: card left, controls right (stacked on narrow screens) ── */

.digify-layout {
    display: grid;
    grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.digify-card-col {
    position: sticky;
    top: 16px;
}

/* The card's colour(s) in words, under the card - doesn't rely on seeing the frame colour. */
.digify-colours {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--text);
}

.digify-colours[hidden] {
    display: none;
}

.digify-colours-label {
    margin-right: 2px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.digify-colours-name {
    font-weight: 600;
}

.digify-colours-sep {
    color: var(--muted);
}

.digify-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, .25);
}

.digify-swatch--red    { background: #e53935; }
.digify-swatch--blue   { background: #1e88e5; }
.digify-swatch--yellow { background: #fdd835; }
.digify-swatch--green  { background: #43a047; }
.digify-swatch--black  { background: #212121; }
.digify-swatch--purple { background: #8e24aa; }
.digify-swatch--white  { background: #f5f5f5; }
.digify-swatch--hidden { background: #3a3a3a; }

.digify-colour-note {
    margin: 8px 0 0;
    text-align: center;
    font-size: 12px;
    color: var(--yellow);
}

/* ── The templated card ─────────────────────────────────────────────
   Every overlay is positioned in % of the card, matching where that
   value is printed on a real card for the frame in data-template.
   Text sizes use cqw (card width) so it all scales together. */

.dg-card {
    position: relative;
    width: 100%;
    aspect-ratio: 720 / 1002;
    container-type: inline-size;
    border-radius: 3.5%;
    overflow: hidden;
    background: var(--bg3);
    font-family: var(--sans);
    user-select: none;
}

.dg-frames,
.dg-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Hard mode's blank frame is greyscale; the revealed card is shown in full colour. */
.dg-card.is-hard .dg-frame {
    filter: grayscale(1);
}

/* Solved: the real card replaces the template */
.dg-reveal {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The revealed card links to it on the visitor's best-ranked marketplace. */
.dg-reveal-link {
    position: absolute;
    inset: 0;
    display: block;
}

.dg-reveal-link[hidden] {
    display: none;
}

.dg-reveal-link[href] {
    cursor: pointer;
}

.dg-card.is-revealed > :not(.dg-reveal-link) {
    display: none;
}

.dg-cost,
.dg-dp,
.dg-level,
.dg-name,
.dg-strip,
.dg-effect {
    position: absolute;
}

/* Play cost - the circle top-left */
.dg-cost {
    left: 4%;
    top: 2.6%;
    width: 15%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: .9cqw solid #111;
    color: #111;
    font-family: var(--display);
    font-size: 9cqw;
    line-height: 1;
    box-shadow: 0 .4cqw 1.2cqw rgba(0, 0, 0, .35);
}

/* DP - top right, under the printed "DP" */
.dg-dp {
    right: 6.2%;
    top: 4.4%;
    width: 24%;
    height: 5.4%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #111;
    font-family: var(--display);
    font-size: 8cqw;
    line-height: 1;
}

/* Level - the black tab at the left of the name bar */
.dg-level {
    left: 5.6%;
    top: 78.5%;
    width: 14.6%;
    height: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--display);
    font-size: 4.6cqw;
    letter-spacing: .02em;
}

.dg-card.has-light-tab .dg-level {
    color: #111;
}

/* Card name - the coloured name bar */
.dg-name {
    left: 21%;
    top: 78.5%;
    width: 72.5%;
    height: 5%;
    display: flex;
    align-items: center;
    padding: 0 1.5cqw;
    overflow: hidden;
    white-space: nowrap;
    color: #fff;
    font-size: 4.3cqw;
    font-weight: 700;
    letter-spacing: .03em;
    text-shadow: 0 .2cqw .6cqw rgba(0, 0, 0, .6);
}

.dg-card.has-light-bar .dg-name {
    color: #111;
    text-shadow: none;
}

/* Type + rarity - the thin strip under the name bar */
.dg-strip {
    left: 6%;
    top: 83.6%;
    width: 87.6%;
    height: 1.6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5cqw;
    color: #fff;
    font-family: var(--mono);
    font-size: 2.1cqw;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Effects */
.dg-effect {
    overflow-y: auto;
    font-size: 2.9cqw;
    line-height: 1.35;
    white-space: pre-line;
    overflow-wrap: anywhere;
    scrollbar-width: thin;
}

.dg-effect.is-empty {
    display: none;
}

/* Main effect - over the lower art, on a light panel like the real card */
.dg-effect--main {
    left: 7%;
    top: 55%;
    width: 86%;
    max-height: 20.5%;
    padding: 1.6cqw 2cqw;
    color: #111;
    background: rgba(255, 255, 255, .86);
    border-radius: 1cqw;
}

/* Inherited (Digimon/Egg) or security (Option/Tamer) effect - the bottom box */
.dg-effect--source {
    left: 21%;
    top: 87.8%;
    width: 72%;
    height: 11%;
    padding: .6cqw 1cqw;
    color: #fff;
    text-shadow: 0 .2cqw .5cqw rgba(0, 0, 0, .5);
}

.dg-card.has-light-bar .dg-effect--source {
    color: #111;
    text-shadow: none;
}

/* Unknown values read as muted "?" */
.dg-cost:not(.is-known),
.dg-dp:not(.is-known),
.dg-level:not(.is-known) {
    opacity: .55;
}

.dg-strip-type:not(.is-known),
.dg-strip-rarity:not(.is-known) {
    opacity: .6;
}

.dg-strip-rarity.is-known {
    color: var(--yellow);
    font-weight: 700;
}

/* Hidden letters */
.dg-blank {
    display: inline-block;
    width: .58em;
    height: .9em;
    margin: 0 .04em;
    vertical-align: -0.1em;
    border-radius: .1em;
    background: currentColor;
    opacity: .28;
}

.dg-name .dg-blank {
    opacity: .4;
}

/* Mega: taller art, no inherited box, name bar at the bottom */
.dg-card[data-template="mega"] .dg-effect--main { top: 67%; }
.dg-card[data-template="mega"] .dg-level,
.dg-card[data-template="mega"] .dg-name { top: 90.4%; height: 5.1%; }
.dg-card[data-template="mega"] .dg-strip { top: 95.6%; height: 1.7%; }
.dg-card[data-template="mega"] .dg-effect--source { display: none; }

/* Option (and Tamer): no level or DP; grey effect panel, full-width name bar, security box */
.dg-card[data-template="option"] .dg-level,
.dg-card[data-template="option"] .dg-dp { display: none; }
.dg-card[data-template="option"] .dg-strip { left: 7%; width: 86%; top: 54.3%; color: #333; }
.dg-card[data-template="option"] .dg-effect--main { top: 56.6%; max-height: 16%; background: transparent; }
.dg-card[data-template="option"] .dg-name { left: 6%; width: 88%; top: 74.9%; height: 7.1%; }
.dg-card[data-template="option"] .dg-effect--source { top: 84.5%; height: 12.2%; width: 72.5%; }

/* Digi-Egg: egg emblem instead of a play cost, no DP */
.dg-card[data-template="egg"] .dg-cost,
.dg-card[data-template="egg"] .dg-dp { display: none; }
.dg-card[data-template="egg"] .dg-effect--main { top: 52%; max-height: 21%; }
.dg-card[data-template="egg"] .dg-level,
.dg-card[data-template="egg"] .dg-name { top: 75.5%; height: 5.1%; }
.dg-card[data-template="egg"] .dg-strip { top: 80.7%; }
.dg-card[data-template="egg"] .dg-effect--source { top: 86.8%; height: 9.8%; }

/* ── Guess pips ─────────────────────────────────────────────────── */

.digify-pips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-bottom: 14px;
}

.digify-pip {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    border: 1px solid var(--line);
    background: transparent;
}

.digify-pip--name      { background: var(--up); border-color: var(--up); }
.digify-pip--text      { background: var(--yellow); border-color: var(--yellow); }
.digify-pip--miss      { background: var(--muted2); border-color: var(--muted2); }
.digify-pip--wrongname { background: var(--down); border-color: var(--down); }
.digify-pip--solved    { background: var(--accent); border-color: var(--accent); }
.digify-pip--clue      { background: var(--digify-purple); border-color: var(--digify-purple); }

.digify-pips-count {
    margin-left: 8px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
}

/* ── Keyboard ───────────────────────────────────────────────────── */

.digify-keyboard {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.digify-key-row {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.digify-key {
    flex: 1 1 0;
    max-width: 46px;
    min-width: 0;
    height: 42px;
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    background: var(--bg3);
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
}

.digify-key:hover:not(:disabled) {
    border-color: var(--accent);
}

.digify-key:disabled {
    cursor: default;
}

.digify-key--wide {
    flex: 0 0 auto;
    max-width: none;
    min-width: 44px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
}

.digify-key--name,
.digify-key-sample.digify-key--name { background: var(--up-dark); border-color: var(--up); color: #fff; }
.digify-key--text,
.digify-key-sample.digify-key--text { background: color-mix(in srgb, var(--yellow) 30%, var(--bg3)); border-color: var(--yellow); color: #fff; }
.digify-key--miss,
.digify-key-sample.digify-key--miss { background: var(--bg); border-color: var(--line2); color: var(--muted2); }

.digify-key-sample {
    display: inline-block;
    min-width: 20px;
    padding: 0 5px;
    text-align: center;
    font-family: var(--mono);
    font-weight: 600;
    border: 1px solid;
    border-radius: 3px;
}

/* ── Clues ──────────────────────────────────────────────────────── */

.digify-clues {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.digify-clue {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 4px;
}

.digify-clue.is-known {
    border-left: 3px solid var(--digify-purple);
}

.digify-clue-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.digify-clue-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.digify-clue-answer {
    font-family: var(--mono);
    font-weight: 600;
    color: var(--text);
}

.digify-clue-form {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.digify-clue-input {
    width: 96px;
    height: 36px;
    padding: 0 10px;
    font-family: var(--mono);
    font-size: 14px;
    color: var(--text);
    background: var(--bg3);
    border: 1px solid var(--line);
    border-radius: 4px;
}

.digify-clue-select {
    width: auto;
    min-width: 0;
    max-width: 100%;
}

.digify-clue-input:focus {
    outline: none;
    border-color: var(--accent);
}

.digify-clue-tried,
.digify-clue-found {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.digify-clue-chip {
    padding: 2px 7px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--line2);
    border-radius: 3px;
}

.digify-clue-chip.is-correct {
    color: #fff;
    background: color-mix(in srgb, var(--digify-purple) 35%, var(--bg3));
    border-color: var(--digify-purple);
}

/* One guess left: clues locked, card picker only. */
.digify-clues.is-locked {
    opacity: .45;
}

.digify-last-guess {
    margin: 0 0 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text);
    background: color-mix(in srgb, var(--yellow) 14%, var(--bg2));
    border: 1px solid var(--yellow);
    border-radius: 4px;
}

.digify-last-guess[hidden] {
    display: none;
}

.digify-last-guess .fa-exclamation-circle {
    color: var(--yellow);
    margin-right: 4px;
}

/* ── Exact-card picker ──────────────────────────────────────────── */

.digify-picker-row {
    display: flex;
    gap: 8px;
}

.digify-picker-field {
    position: relative;
    flex: 1;
    min-width: 0;
}

.digify-picker-field input {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--sans);
    font-size: 15px;
    color: var(--text);
    background: var(--bg3);
    border: 1px solid var(--line);
    border-radius: 3px;
}

.digify-picker-field input:focus {
    outline: none;
    border-color: var(--accent);
}

.digify-picker .submit-btn {
    padding: 12px 18px;
    white-space: nowrap;
}

.digify-picker .submit-btn:disabled {
    opacity: .45;
    cursor: default;
}

.digify-card-list {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 280px;
    overflow-y: auto;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.digify-card-option {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
}

.digify-card-option:hover,
.digify-card-option.is-active {
    background: var(--bg3);
}

.digify-card-option.is-tried {
    color: var(--muted);
}

.digify-card-option--empty {
    color: var(--muted);
    cursor: default;
}

.digify-card-option-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.digify-card-option-id {
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
}

/* ── Card guess history ─────────────────────────────────────────── */

.digify-history {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.digify-history-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 12px;
    font-size: 13px;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-left: 3px solid var(--muted2);
    border-radius: 3px;
}

.digify-history-item.is-correct { border-left-color: var(--up); }
.digify-history-item.is-close   { border-left-color: var(--yellow); }
.digify-history-item.is-wrong   { border-left-color: var(--down); }

.digify-history-what {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text);
}

.digify-history-verdict {
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── Result ─────────────────────────────────────────────────────── */

.digify-result-main {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.digify-result-link {
    display: block;
    width: 160px;
    max-width: 40%;
    flex-shrink: 0;
}

.digify-result-link[hidden] {
    display: none;
}

.digify-result-img {
    display: block;
    width: 100%;
    border-radius: 6px;
}

.digify-buy {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.digify-buy[hidden] {
    display: none;
}

.digify-buy:hover {
    text-decoration: underline;
}

.digify-result-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.digify-result-headline {
    font-family: var(--display);
    font-size: 32px;
    letter-spacing: .03em;
    line-height: 1.05;
}

.digify-result-headline.is-won  { color: var(--up); }
.digify-result-headline.is-lost { color: var(--down); }

.digify-result-card {
    font-size: 16px;
    color: var(--text);
}

.digify-share-note,
.digify-next {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
}

.digify-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.digify-stat {
    text-align: center;
}

.digify-stat-value {
    font-family: var(--display);
    font-size: 30px;
    color: var(--text);
    line-height: 1;
}

.digify-stat-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 4px;
}

.digify-save-note {
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted);
}

.digify-save-note a {
    color: var(--accent);
}

.digify-save-note .fa-check {
    color: var(--up);
}

.digify-error {
    margin-top: 12px;
    color: var(--down);
    font-size: 14px;
}

/* ── Support (Patreon / Ko-fi) ──────────────────────────────────── */

.digify-support {
    margin-top: 20px;
    padding: 18px 16px;
    text-align: center;
    background: var(--bg);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: 4px;
}

.digify-support-title {
    margin: 0;
    font-family: var(--display);
    font-size: 24px;
    letter-spacing: .03em;
    line-height: 1.1;
    color: var(--text);
}

.digify-support-lead {
    margin: 8px 0 0;
    font-weight: 600;
    color: var(--text);
}

.digify-support-text {
    margin: 6px auto 0;
    max-width: 520px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.digify-support-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.digify-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: filter .15s;
}

.digify-support-btn:hover {
    color: #fff;
    filter: brightness(1.12);
}

.digify-support-btn--patreon { background: #e8513d; }
.digify-support-btn--kofi    { background: #1e88c8; }

@media (max-width: 860px) {
    .digify-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .digify-card-col {
        position: static;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .digify-title { font-size: 44px; }
    .digify-key { height: 40px; font-size: 14px; }
    .digify-key-row { gap: 4px; }
    .digify-clue { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .digify-result-main { flex-direction: column; align-items: center; text-align: center; }
    .digify-result-body { align-items: center; }
    .digify-result-link { max-width: 60%; }
    .digify-help summary { text-align: left; }
}
