/*
    Volpario — l'aspetto della sua vetrina su games. (docs/scarabeo/README.md W56, W57).

    Una vetrina del tabellone iniziale, con una testata grande: legno e feltro attorno alla griglia, carta calda per i testi,
    il rosso volpe per gli inviti. Solo CSS, nessuno script e nessuna animazione: la grafica curata, gli
    effetti e i suoni sono della SPA (specifica in M6). Tutto sotto .theme-volpario, la classe che il layout
    mette sul contenitore della pagina, sulla scheda e sulla card in home. Nessun font esterno; le uniche
    immagini sono la volpe e l'icona, servite dal modulo stesso.
*/

.theme-volpario {
    --bg: #f6f0e4;
    --surface: #fffaf0;
    --surface-2: #f0e6d2;
    --line: #e6d9bf;
    --line-strong: #d3c19c;
    --ink: #2a2118;
    --ink-soft: #5a4b3a;
    --ink-faint: #85755f;

    --accent: #b4501c;
    --accent-ink: #ffffff;
    --accent-soft: #f6dfcb;

    --wd-wood: #4a3322;
    --wd-wood-light: #6a4a31;
    --wd-felt: #2e4a3a;
    --wd-square: #efe3c6;
    --wd-square-line: #d9c8a0;
    --wd-tile: #f8e9b9;
    --wd-tile-ink: #3a281b;
    --wd-dl: #6fa8b8;
    --wd-tl: #2f6f84;
    --wd-dw: #d98a78;
    --wd-tw: #b8442e;
    --wd-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
    .theme-volpario {
        --bg: #17120d;
        --surface: #211a13;
        --surface-2: #2b2218;
        --line: #3a2e21;
        --line-strong: #52412e;
        --ink: #f3eadb;
        --ink-soft: #cdbfa8;
        --ink-faint: #9b8c75;

        --accent: #f0a05b;
        --accent-ink: #2a1708;
        --accent-soft: #3d2a18;
    }
}

/* ---------- la testata ---------- */

.theme-volpario .wd-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
    padding: clamp(1.5rem, 1rem + 3vw, 3.2rem);
    margin: .5rem 0 2rem;
    border-radius: 28px;
    overflow: hidden;
    color: #fff7ea;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 196, 120, .55), transparent 45%),
        linear-gradient(125deg, #3b281a 0%, #7a3412 48%, #d9651f 100%);
    box-shadow: 0 26px 60px -30px #7a3412;
}

/* Le lettere sullo sfondo: decorazione, nessun contenuto. */
.theme-volpario .wd-hero::before,
.theme-volpario .wd-hero::after {
    content: "V";
    position: absolute;
    font-family: var(--wd-serif);
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 247, 234, .07);
    pointer-events: none;
}

.theme-volpario .wd-hero::before { font-size: 18rem; left: -2rem; bottom: -5rem; transform: rotate(-10deg); }
.theme-volpario .wd-hero::after { content: "P"; font-size: 11rem; right: 30%; top: -3rem; transform: rotate(12deg); }

.theme-volpario .wd-hero > * { position: relative; z-index: 1; }

.theme-volpario .wd-kicker {
    display: inline-block;
    padding: .28rem .8rem;
    border-radius: 999px;
    background: rgba(255, 247, 234, .16);
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 800;
}

/* Il nome in tasselli, come quelli della scacchiera. */
.theme-volpario .wd-wordmark {
    display: flex;
    gap: .3rem;
    margin: 1rem 0 .9rem;
    max-width: 30rem;
}

.theme-volpario .wd-wordmark b {
    display: grid;
    place-items: center;
    flex: 1 1 0;
    min-width: 0;
    max-width: 3.6rem;
    aspect-ratio: 1;
    border-radius: 14%;
    background: var(--wd-tile);
    color: var(--wd-tile-ink);
    font-family: var(--wd-serif);
    font-weight: 800;
    font-size: clamp(1.1rem, .6rem + 2.2vw, 2.3rem);
    box-shadow: 0 3px 0 #b99a52, 0 10px 18px -6px rgba(0, 0, 0, .55);
    transform: rotate(var(--r, 0deg));
}

.theme-volpario .wd-wordmark b:nth-child(odd) { --r: -3deg; }
.theme-volpario .wd-wordmark b:nth-child(even) { --r: 2.5deg; translate: 0 .18rem; }
.theme-volpario .wd-wordmark b:nth-child(3n) { --r: 5deg; }

.theme-volpario .wd-hero h1 {
    font-family: var(--wd-serif);
    font-size: clamp(1.5rem, 1rem + 2vw, 2.3rem);
    line-height: 1.15;
    margin: 0 0 .6rem;
    color: #fff;
}

.theme-volpario .wd-hero p {
    color: rgba(255, 247, 234, .9);
    max-width: 42ch;
    font-size: 1.08rem;
    line-height: 1.55;
}

.theme-volpario .wd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.4rem;
}

.theme-volpario .wd-cta,
.theme-volpario .wd-ghost {
    display: inline-flex;
    align-items: center;
    padding: .75rem 1.35rem;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.theme-volpario .wd-cta {
    background: #fff7ea;
    color: #7a3412;
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6);
}

.theme-volpario .wd-ghost {
    border: 2px solid rgba(255, 247, 234, .55);
    color: #fff7ea;
}

.theme-volpario .wd-cta:hover { transform: translateY(-2px) scale(1.03); text-decoration: none; }
.theme-volpario .wd-ghost:hover { background: rgba(255, 247, 234, .14); text-decoration: none; }

/* La volpe, con qualche tassello che le vola intorno. */
.theme-volpario .wd-hero-fox {
    position: relative;
    display: grid;
    place-items: center;
}

.theme-volpario .wd-hero-fox img {
    width: min(100%, 22rem);
    height: auto;
    filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .4));
}

.theme-volpario .wd-float {
    position: absolute;
    display: grid;
    place-items: center;
    width: 2.7rem;
    aspect-ratio: 1;
    border-radius: 14%;
    background: var(--wd-tile);
    color: var(--wd-tile-ink);
    font-family: var(--wd-serif);
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 3px 0 #b99a52, 0 12px 20px -8px rgba(0, 0, 0, .6);
}

.theme-volpario .wd-f1 { top: 6%; left: 8%; transform: rotate(-12deg); }
.theme-volpario .wd-f2 { top: 14%; right: 6%; transform: rotate(9deg); }
.theme-volpario .wd-f3 { bottom: 8%; left: 14%; transform: rotate(6deg); }

/* ---------- il tabellone ---------- */

.theme-volpario .wd-stage {
    display: flex;
    justify-content: center;
    padding: 0 0 1.5rem;
}

.theme-volpario .wd-board {
    margin: 0;
    width: min(100%, 44rem);
    padding: 1.1rem;
    border-radius: 1.2rem;
    border: 2px solid #8a6644;
    background: linear-gradient(135deg, var(--wd-wood), var(--wd-wood-light));
    box-shadow: 0 1.6rem 2.6rem -1.2rem rgba(42, 33, 24, .55), inset 0 1px 0 rgba(255, 235, 200, .25);
    color: #f6ecd2;
}

.theme-volpario .wd-grid {
    display: grid;
    grid-template-columns: repeat(var(--wd-size), 1fr);
    padding: .35rem;
    border-radius: .5rem;
    background: var(--wd-felt);
    container-type: inline-size;
}

.theme-volpario .wd-sq {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wd-square);
    outline: 1px solid var(--wd-square-line);
    outline-offset: -1px;
    font-style: normal;
}

.theme-volpario .wd-sq i {
    font-style: normal;
    font-size: clamp(.45rem, 2.4cqi, .7rem);
    font-weight: 700;
    color: rgba(255, 255, 255, .92);
}

.theme-volpario .wd-dl { background: var(--wd-dl); }
.theme-volpario .wd-tl { background: var(--wd-tl); }
.theme-volpario .wd-dw { background: var(--wd-dw); }
.theme-volpario .wd-tw { background: var(--wd-tw); }

.theme-volpario .wd-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88%;
    height: 88%;
    border-radius: 12%;
    background: var(--wd-tile);
    color: var(--wd-tile-ink);
    font-family: var(--wd-serif);
    font-weight: 700;
    font-size: clamp(.55rem, 3.4cqi, 1.1rem);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

.theme-volpario .wd-board figcaption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .25rem 1rem;
    padding: .7rem .15rem .2rem;
}

.theme-volpario .wd-board figcaption span {
    color: rgba(246, 236, 210, .8);
}

.theme-volpario .wd-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    list-style: none;
    margin: .55rem 0 0;
    padding: 0 .15rem .1rem;
    font-size: .8rem;
    color: rgba(246, 236, 210, .85);
}

.theme-volpario .wd-legend li {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.theme-volpario .wd-legend .wd-sq {
    width: 1.5rem;
    aspect-ratio: auto;
    height: 1.1rem;
    border-radius: .2rem;
    font-size: .6rem;
    font-weight: 700;
    color: #fff;
    outline: none;
}

/* ---------- regole e fonti ---------- */

.theme-volpario .wd-section {
    padding: 1.1rem 0;
    border-top: 1px solid var(--line);
}

.theme-volpario .wd-section h2 {
    font-family: var(--wd-serif);
    font-size: 1.35rem;
    margin: 0 0 .6rem;
}

.theme-volpario .wd-rules,
.theme-volpario .wd-sources {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 46rem;
}

.theme-volpario .wd-rules li + li,
.theme-volpario .wd-sources li + li {
    margin-top: .4rem;
}

.theme-volpario .wd-sources {
    font-size: .9rem;
    color: var(--ink-faint);
}

@media (max-width: 52rem) {
    .theme-volpario .wd-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .theme-volpario .wd-hero-fox img { width: min(70%, 15rem); }
}
