:root {
    --ink: #172021;
    --muted: #64706f;
    --deep: #0b2023;
    --deep-2: #102c2f;
    --sea: #1f5a5b;
    --sea-soft: #dce9e5;
    --parchment: #f4efe2;
    --paper: #fffdf7;
    --paper-2: #f9f5ea;
    --brass: #b58a46;
    --brass-dark: #785b2c;
    --line: #ded7c5;
    --danger: #8d4a45;
    --shadow: 0 18px 50px rgba(9, 30, 32, .12);
    --shadow-soft: 0 9px 26px rgba(9, 30, 32, .09);
    --radius: 20px;
    --radius-sm: 13px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% -10%, rgba(181, 138, 70, .13), transparent 28rem),
        linear-gradient(180deg, #eef1e8 0, #f7f4ea 18rem, #f8f5ec 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -.018em;
    line-height: 1.08;
}
h1 { font-size: clamp(2.35rem, 7vw, 5.2rem); }
h2 { font-size: clamp(1.65rem, 4vw, 2.55rem); }
h3 { font-size: 1.35rem; }
p { color: #4e5b59; }

.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.main-content { flex: 1; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 32, 35, .96);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
}
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: white; min-width: 0; }
.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(181, 138, 70, .24), rgba(255, 255, 255, .06));
    border: 1px solid rgba(215, 181, 120, .45);
    flex: 0 0 auto;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-fallback { display: none; color: #e5c98f; font-family: Georgia, serif; font-weight: 700; }
.brand-mark--fallback .brand-fallback { display: block; }
.brand-copy { display: flex; flex-direction: column; line-height: .98; }
.brand-kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: #bcd0ca; }
.brand-copy strong { font-family: Georgia, serif; font-size: 1.35rem; letter-spacing: .02em; }

.desktop-nav { display: flex; align-items: center; gap: 8px; }
.desktop-nav a {
    color: #cbd9d6;
    padding: 9px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .92rem;
}
.desktop-nav a:hover, .desktop-nav a.is-active { background: rgba(255,255,255,.09); color: white; }

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: .75rem;
    font-weight: 900;
    color: var(--brass-dark);
    margin-bottom: 8px;
}

.hero-section {
    color: white;
    background:
        linear-gradient(130deg, rgba(11,32,35,.99), rgba(15,55,57,.94)),
        radial-gradient(circle at 75% 20%, rgba(181,138,70,.3), transparent 30rem);
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: "";
    position: absolute;
    inset: auto -10% -125px auto;
    width: 520px;
    height: 220px;
    border: 1px solid rgba(218, 190, 133, .16);
    border-radius: 50%;
    transform: rotate(-12deg);
}
.hero-grid { min-height: 500px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 60px; align-items: center; padding-block: 76px; position: relative; z-index: 1; }
.hero-copy { max-width: 760px; }
.hero-copy .eyebrow { color: #d8bc83; }
.hero-copy h1 { max-width: 760px; margin-bottom: 22px; }
.hero-copy p { color: #cbd9d6; max-width: 680px; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.next-night-card {
    background: linear-gradient(180deg, #f9f3df, #f4ecd6);
    color: var(--ink);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 25px 65px rgba(0,0,0,.25);
    border: 1px solid rgba(181,138,70,.5);
    transform: rotate(1deg);
}
.next-night-date { display: flex; align-items: center; gap: 18px; margin: 6px 0 22px; }
.next-night-date strong { font-family: Georgia, serif; font-size: 4rem; line-height: .9; color: var(--deep-2); }
.next-night-date span { max-width: 145px; font-weight: 800; text-transform: capitalize; color: #43504f; }
.next-night-status { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: 12px; background: rgba(31,90,91,.09); color: #2d4949; font-weight: 800; margin-bottom: 18px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #b58a46; box-shadow: 0 0 0 5px rgba(181,138,70,.13); }

.button {
    min-height: 46px;
    border: 0;
    border-radius: 13px;
    padding: 11px 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 850;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: not-allowed; }
.button-primary { color: white; background: linear-gradient(145deg, #b78b45, #8d692f); box-shadow: 0 8px 22px rgba(181,138,70,.25); }
.button-secondary { color: white; background: linear-gradient(145deg, var(--sea), #17494a); box-shadow: 0 8px 22px rgba(31,90,91,.18); }
.button-ghost { color: inherit; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.19); }
.section-block .button-ghost, .page-hero + .section-block .button-ghost { color: var(--deep); background: transparent; border-color: #c9c0a9; }
.button-block { width: 100%; }
.text-link { color: var(--brass-dark); font-weight: 900; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.section-block { padding: 68px 0; }
.section-block--topless { padding-top: 28px; }
.section-block--tinted { background: rgba(219, 230, 222, .48); border-block: 1px solid rgba(28, 71, 72, .08); }
.compact-section { padding-block: 46px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { margin-bottom: 0; }

.proposal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.proposal-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.proposal-cover {
    position: relative;
    height: 170px;
    padding: 18px;
    color: white;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.proposal-cover::after, .proposal-detail-cover::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    right: -38px;
    top: -48px;
}
.cover-system { position: relative; z-index: 1; text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 900; max-width: 70%; }
.cover-monogram { position: absolute; right: 18px; bottom: 2px; font-family: Georgia, serif; font-size: 5.7rem; font-weight: 800; line-height: 1; opacity: .18; }
.cover-moon { background: linear-gradient(145deg, #1b3450, #5d5667); }
.cover-ember { background: linear-gradient(145deg, #472b2d, #9b594a); }
.cover-sea { background: linear-gradient(145deg, #123c42, #2d7470); }
.cover-gold { background: linear-gradient(145deg, #493b25, #a78045); }
.cover-moss { background: linear-gradient(145deg, #2d3c2e, #627354); }
.cover-ash { background: linear-gradient(145deg, #2a3034, #626b6e); }
.cover-ruby { background: linear-gradient(145deg, #3e2530, #8b4052); }
.cover-violet { background: linear-gradient(145deg, #30304c, #675f8e); }
.proposal-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.proposal-body h2, .proposal-body h3 { margin: 12px 0 5px; }
.proposal-body p { font-size: .94rem; }
.proposal-system { font-weight: 800; color: var(--sea) !important; margin-bottom: 4px; }
.proposal-master { margin-bottom: 12px; }
.proposal-meta { display: flex; justify-content: space-between; gap: 12px; margin: auto 0 17px; padding-top: 12px; color: #546260; font-size: .85rem; font-weight: 850; }

.badge-row { display: flex; flex-wrap: wrap; gap: 7px; }
.badge {
    border: 0;
    border-radius: 999px;
    min-height: 28px;
    padding: 6px 9px;
    font-size: .7rem;
    font-weight: 900;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: .045em;
}
button.badge { cursor: pointer; }
.badge-muted { color: #5e6765; background: #ede9dc; }
.type-oneshot { color: #264f4f; background: #d7e9e4; }
.type-cronaca { color: #514626; background: #eee2b9; }
.type-saga { color: #4b395d; background: #e6dbec; }
.type-campagna { color: #69403b; background: #eddad2; }

.home-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.home-panel { padding: 30px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.home-panel--games { background: linear-gradient(145deg, #102b2e, #173b3d); color: white; border-color: transparent; }
.home-panel--games .eyebrow { color: #d7ba7d; }
.home-panel--games p { color: #c6d5d2; }
.home-panel--games .text-link { color: #efd49d; }
.slot-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0; }
.slot-preview span { padding: 12px; border-radius: 11px; background: #f1ecdf; font-weight: 800; color: #455351; }
.slot-preview b { color: var(--brass-dark); margin-right: 6px; }
.mini-game-list { margin: 22px 0; display: grid; gap: 8px; }
.mini-game-list div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 12px; border-radius: 10px; background: rgba(255,255,255,.07); }
.mini-game-list strong { color: #efd49d; }
.info-strip { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.info-strip h2 { margin-bottom: 0; }

.page-hero { background: linear-gradient(135deg, #0b2023, #153d3e); color: white; }
.page-hero--compact { padding: 52px 0 66px; }
.page-hero-inner { display: flex; justify-content: space-between; gap: 35px; align-items: end; }
.page-hero .eyebrow { color: #d8bc83; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 10px; }
.page-hero p { color: #c8d7d4; max-width: 730px; margin-bottom: 0; }

.filter-panel {
    margin-top: -54px;
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 1.5fr .7fr .9fr auto;
    gap: 12px;
    align-items: end;
    padding: 18px;
    border-radius: 18px;
    background: var(--paper);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.filter-panel label:not(.search-field) { display: grid; gap: 5px; }
.filter-panel label > span { font-size: .72rem; font-weight: 900; text-transform: uppercase; color: #68726f; letter-spacing: .08em; }
.search-field input, .filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cfc8b7;
    border-radius: 11px;
    background: #fffefa;
    padding: 10px 12px;
    color: var(--ink);
    outline: none;
}
.search-field input:focus, .filter-panel select:focus { border-color: var(--sea); box-shadow: 0 0 0 3px rgba(31,90,91,.12); }
.filter-actions { display: flex; gap: 8px; }
.results-bar { display: flex; justify-content: space-between; color: #68726f; font-size: .88rem; padding: 26px 2px 14px; }
.results-bar strong { color: var(--ink); }
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 34px; }
.pagination a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; border: 1px solid #d2cab8; background: var(--paper); font-weight: 900; }
.pagination a.is-active { background: var(--deep-2); color: white; border-color: var(--deep-2); }

.empty-state { padding: 58px 24px; text-align: center; border: 1px dashed #c7beaa; border-radius: var(--radius); background: rgba(255,255,255,.45); }
.empty-state h1, .empty-state h2 { margin-bottom: 8px; }

.proposal-detail-hero { padding: 54px 0; background: linear-gradient(180deg, #edf0e7, #f7f4ea); }
.proposal-detail-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 48px; align-items: stretch; }
.proposal-detail-cover { min-height: 420px; border-radius: 28px; position: relative; color: white; overflow: hidden; padding: 26px; display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.proposal-detail-cover .cover-monogram { font-size: 10rem; }
.proposal-detail-copy { display: flex; flex-direction: column; justify-content: center; }
.back-link { color: var(--sea); font-weight: 900; margin-bottom: 22px; }
.proposal-detail-copy h1 { font-size: clamp(2.45rem, 6vw, 4.6rem); margin: 14px 0 7px; }
.detail-system { font-size: 1.05rem; color: var(--sea); font-weight: 900; }
.detail-pitch { font-size: 1.12rem; max-width: 720px; }
.detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 24px; }
.detail-facts div { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.65); border: 1px solid #ddd5c4; }
.detail-facts span, .detail-facts strong { display: block; }
.detail-facts span { color: #727b78; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.detail-columns { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; }
.content-card { padding: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.content-card--accent { background: #eef0e7; }
.tag-cloud, .trait-row { display: flex; gap: 7px; flex-wrap: wrap; }
.tag-cloud span, .trait-row span { padding: 7px 9px; border-radius: 999px; background: rgba(31,90,91,.09); color: #315151; font-size: .76rem; font-weight: 850; }

.week-selector { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: -52px; position: relative; z-index: 5; }
.week-selector a { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-soft); color: #52605e; }
.week-selector a span { text-transform: uppercase; font-size: .7rem; font-weight: 900; }
.week-selector a strong { font-family: Georgia, serif; font-size: 1.2rem; }
.week-selector a.is-active { background: var(--deep-2); color: white; border-color: var(--deep-2); }
.night-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 38px 0 18px; }
.night-heading h2 { margin-bottom: 0; text-transform: capitalize; }
.night-time { color: var(--brass-dark); font-family: Georgia, serif; font-weight: 900; font-size: 1.8rem; }
.slot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.slot-card { display: grid; grid-template-columns: 65px 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); }
.slot-card--backup { border-style: dashed; background: rgba(255,255,255,.52); }
.slot-number { display: grid; place-items: center; background: #e8e2d2; color: var(--brass-dark); font-family: Georgia, serif; font-weight: 900; font-size: 1.45rem; }
.slot-main { padding: 20px; }
.slot-main h3 { margin: 13px 0 5px; }
.slot-main p { margin-bottom: 14px; }
.slot-note { display: block; color: #75807c; font-size: .84rem; font-weight: 700; }
.prototype-note { margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: #ebe6d8; color: #596461; display: flex; gap: 12px; align-items: baseline; }
.prototype-note strong { color: var(--ink); flex: 0 0 auto; }

.games-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.games-toolbar .search-field { flex: 1; max-width: 560px; }
.demo-hint { color: #737d79; font-size: .8rem; max-width: 360px; text-align: right; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.game-card { display: grid; grid-template-columns: 62px 1fr auto; gap: 15px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 17px; padding: 16px; box-shadow: var(--shadow-soft); }
.game-card[hidden] { display: none; }
.game-emblem { width: 62px; height: 62px; border-radius: 15px; display: grid; place-items: center; color: #e6cd97; background: linear-gradient(145deg, #102d2f, #1f5a5b); font-family: Georgia, serif; font-size: 1.8rem; font-weight: 900; }
.game-copy h2 { font-size: 1.25rem; margin: 2px 0 4px; }
.game-copy p { margin-bottom: 0; font-size: .86rem; }
.game-tag { color: var(--brass-dark); text-transform: uppercase; letter-spacing: .09em; font-size: .68rem; font-weight: 900; }
.interest-button { min-width: 112px; border: 1px solid #d4cbb6; background: #fbf7ec; color: #6a5b3b; border-radius: 14px; padding: 9px 12px; cursor: pointer; display: grid; grid-template-columns: auto auto; gap: 0 6px; align-items: center; }
.interest-button > span { color: #aa695d; font-size: 1rem; }
.interest-button strong { font-size: 1rem; }
.interest-button small { grid-column: 1 / -1; margin-top: 2px; font-weight: 800; }
.interest-button.is-active { background: #f0e3d8; border-color: #c89b84; color: #74483f; }
.game-empty { margin-top: 18px; }

.profile-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.profile-card { padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.profile-card--identity { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; }
.avatar-placeholder { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(145deg, var(--deep), var(--sea)); display: grid; place-items: center; color: #e7cf9d; font-family: Georgia, serif; font-size: 2rem; font-weight: 900; flex: 0 0 auto; }
.profile-card--master { background: linear-gradient(145deg, #102b2e, #173b3d); color: white; border-color: transparent; }
.profile-card--master .eyebrow { color: #d7ba7d; }
.profile-card--master p { color: #c7d6d3; }
.profile-placeholder-row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid #e4dece; color: #65716e; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 20px; background: rgba(5,18,20,.72); backdrop-filter: blur(8px); display: grid; place-items: center; overflow: auto; }
.modal-backdrop[hidden] { display: none; }
.modal-card { width: min(920px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--paper); border-radius: 24px; border: 1px solid rgba(181,138,70,.35); box-shadow: 0 30px 90px rgba(0,0,0,.35); padding: 26px; }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 24px; margin-bottom: 18px; }
.modal-head h2 { margin-bottom: 0; }
.icon-button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #d7cfbd; background: #f6f1e5; color: var(--ink); font-size: 1.6rem; cursor: pointer; flex: 0 0 auto; }
.type-explainer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.type-explainer { border: 1px solid #ded6c5; border-radius: 16px; padding: 18px; background: #fffef9; transition: box-shadow .18s ease, transform .18s ease; }
.type-explainer.is-highlighted { box-shadow: 0 0 0 3px rgba(181,138,70,.22); transform: translateY(-1px); }
.type-title-row { display: flex; align-items: center; gap: 9px; }
.type-title-row h3 { margin-bottom: 8px; }
.table-type-icon { width: 12px; height: 12px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px rgba(181,138,70,.12); }
.type-explainer p { font-size: .91rem; }

.site-footer { border-top: 1px solid rgba(31,90,91,.12); padding: 24px 0 32px; color: #687471; font-size: .82rem; }
.footer-inner { display: flex; align-items: center; justify-content: center; gap: 8px; }
.mobile-nav { display: none; }
.mobile-only { display: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
    .desktop-nav { display: none; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; min-height: auto; padding-block: 54px; }
    .next-night-card { max-width: 520px; transform: none; }
    .proposal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .proposal-grid--featured .proposal-card:last-child { display: none; }
    .home-split, .detail-columns { grid-template-columns: 1fr; }
    .filter-panel { grid-template-columns: 1fr 1fr; }
    .search-field { grid-column: 1 / -1; }
    .filter-actions { align-self: stretch; }
    .proposal-detail-grid { grid-template-columns: 1fr; gap: 28px; }
    .proposal-detail-cover { min-height: 300px; }
    .game-grid { grid-template-columns: 1fr; }
    .page-hero-inner { align-items: start; flex-direction: column; }
}

@media (max-width: 640px) {
    body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .container { width: min(calc(100% - 24px), var(--container)); }
    .site-header { position: sticky; }
    .header-inner { height: 66px; }
    .brand-mark { width: 42px; height: 42px; }
    .brand-copy strong { font-size: 1.15rem; }
    .brand-kicker { font-size: .63rem; }
    .hero-grid { padding-block: 42px; }
    .hero-copy h1 { font-size: clamp(2.45rem, 14vw, 3.6rem); }
    .hero-copy p { font-size: 1rem; }
    .hero-actions { display: grid; grid-template-columns: 1fr; }
    .next-night-card { padding: 22px; }
    .section-block { padding: 46px 0; }
    .section-block--topless { padding-top: 20px; }
    .section-head { align-items: start; margin-bottom: 20px; }
    .desktop-only { display: none; }
    .mobile-only { display: flex; margin-top: 14px; }
    .proposal-grid { grid-template-columns: 1fr; gap: 14px; }
    .proposal-cover { height: 145px; }
    .home-panel { padding: 22px; }
    .slot-preview { grid-template-columns: 1fr; }
    .info-strip { align-items: stretch; flex-direction: column; }
    .page-hero--compact { padding: 36px 0 58px; }
    .page-hero h1 { font-size: 2.45rem; }
    .filter-panel { grid-template-columns: 1fr; padding: 14px; margin-top: -42px; }
    .search-field { grid-column: auto; }
    .filter-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .results-bar { padding-top: 22px; }
    .detail-facts { grid-template-columns: 1fr; }
    .proposal-detail-hero { padding: 34px 0; }
    .proposal-detail-cover { min-height: 230px; }
    .proposal-detail-copy h1 { font-size: 2.55rem; }
    .content-card { padding: 22px; }
    .week-selector { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; overflow: hidden; margin-top: -40px; }
    .week-selector a { padding: 11px 6px; flex-direction: column; gap: 1px; }
    .week-selector a strong { font-size: 1rem; }
    .slot-grid { grid-template-columns: 1fr; }
    .slot-card { grid-template-columns: 50px 1fr; }
    .prototype-note { flex-direction: column; gap: 3px; }
    .games-toolbar { align-items: stretch; flex-direction: column; }
    .games-toolbar .search-field { max-width: none; }
    .demo-hint { text-align: left; }
    .game-card { grid-template-columns: 50px 1fr; }
    .game-emblem { width: 50px; height: 50px; }
    .interest-button { grid-column: 1 / -1; grid-template-columns: auto auto 1fr; justify-content: center; width: 100%; }
    .interest-button small { grid-column: auto; margin-top: 0; }
    .profile-layout { grid-template-columns: 1fr; }
    .profile-card--identity { grid-column: auto; align-items: start; }
    .type-explainer-grid { grid-template-columns: 1fr; }
    .modal-backdrop { padding: 10px; align-items: end; }
    .modal-card { width: 100%; max-height: 88vh; border-radius: 22px 22px 10px 10px; padding: 20px; }
    .site-footer { padding-bottom: 14px; }
    .footer-dot { display: none; }
    .footer-inner { flex-direction: column; gap: 2px; }

    .mobile-nav {
        position: fixed;
        inset: auto 0 0;
        z-index: 70;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        height: calc(68px + env(safe-area-inset-bottom));
        padding: 7px 6px env(safe-area-inset-bottom);
        background: rgba(11,32,35,.98);
        border-top: 1px solid rgba(255,255,255,.09);
        box-shadow: 0 -8px 25px rgba(5,18,20,.18);
    }
    .mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #9eb3af; border-radius: 10px; font-weight: 800; min-width: 0; }
    .mobile-nav a span { font-size: 1.15rem; line-height: 1; }
    .mobile-nav a small { font-size: .63rem; }
    .mobile-nav a.is-active { color: #f1d79f; background: rgba(255,255,255,.05); }
}

/* ========================================================================== 
   v0.0.5 · Mobile visual pass
   Palette Compagnia del Vascello: #993131 · #005160 · #E9DBB8 · nero
   ========================================================================== */
:root {
    --ink: #171313;
    --muted: #746b61;
    --black: #0b0b0c;
    --black-2: #141416;
    --black-3: #1b1a1b;
    --deep: #005160;
    --deep-2: #003e49;
    --sea: #005160;
    --sea-soft: #d6e4e5;
    --red: #993131;
    --red-dark: #742323;
    --red-soft: #ead4cf;
    --parchment: #e9dbb8;
    --paper: #f4ecd7;
    --paper-2: #eadfbe;
    --brass: #e9dbb8;
    --brass-dark: #745f3a;
    --line: rgba(65, 48, 35, .18);
    --danger: #993131;
    --shadow: 0 18px 42px rgba(0, 0, 0, .28);
    --shadow-soft: 0 10px 26px rgba(0, 0, 0, .19);
    --radius: 18px;
    --radius-sm: 12px;
    --container: 700px;
}

body {
    color: var(--ink);
    background:
        radial-gradient(circle at 88% 4%, rgba(153,49,49,.16), transparent 18rem),
        linear-gradient(180deg, #0b0b0c 0, #101012 100%);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.46;
}

h1, h2, h3,
.brand-copy strong,
.next-night-date strong,
.week-selector a strong,
.night-time,
.slot-number,
.game-emblem,
.avatar-placeholder,
.cover-monogram {
    font-family: "Marcellus", Georgia, serif;
    font-weight: 400;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 10vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 7vw, 2.15rem); }
h3 { font-size: 1.3rem; }
p { color: #514941; }
.container { width: min(calc(100% - 24px), var(--container)); }

.site-header {
    background: rgba(11,11,12,.97);
    border-bottom: 1px solid rgba(233,219,184,.13);
    backdrop-filter: blur(16px);
}
.header-inner { height: 68px; }
.brand { gap: 10px; }
.brand-mark {
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0,0,0,.25)); }
.brand-fallback { color: var(--parchment); font-family: "Marcellus", Georgia, serif; }
.brand-kicker { color: rgba(233,219,184,.62); font-size: .59rem; letter-spacing: .18em; }
.brand-copy strong { color: #fff8e8; font-size: 1.15rem; letter-spacing: .02em; }
.desktop-nav { display: none; }

.eyebrow {
    color: var(--red);
    letter-spacing: .15em;
    font-size: .67rem;
    font-weight: 800;
    margin-bottom: 7px;
}

.hero-section {
    background:
        linear-gradient(155deg, rgba(0,81,96,.98) 0%, rgba(0,59,70,.98) 68%, rgba(25,23,23,.98) 100%);
    border-bottom: 1px solid rgba(233,219,184,.16);
}
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 42%, rgba(233,219,184,.035) 42% 43%, transparent 43% 100%),
        radial-gradient(circle at 86% 18%, rgba(233,219,184,.13), transparent 12rem);
}
.hero-section::after {
    width: 240px;
    height: 240px;
    right: -100px;
    bottom: -150px;
    border: 1px solid rgba(233,219,184,.15);
}
.hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 0 28px;
}
.hero-copy { max-width: none; }
.hero-copy .eyebrow { color: var(--parchment); }
.hero-copy h1 {
    color: #fff9e9;
    font-size: clamp(2.2rem, 11.5vw, 3.3rem);
    margin-bottom: 10px;
    max-width: 560px;
}
.hero-copy p { color: rgba(255,249,233,.78); font-size: .96rem; max-width: 33rem; margin-bottom: 0; }
.hero-actions { margin-top: 19px; }

.next-night-card {
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(255,255,255,.18), transparent 55%),
        var(--parchment);
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 17px 42px rgba(0,0,0,.24);
    transform: none;
}
.next-night-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.next-night-card .eyebrow { color: var(--red-dark); margin: 0; }
.night-time-chip {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--black);
    color: var(--parchment);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
}
.next-night-date { gap: 14px; margin: 14px 0 15px; }
.next-night-date strong { color: var(--teal, #005160); font-size: 3.65rem; }
.next-night-date span { color: #403936; font-size: .9rem; line-height: 1.25; }
.next-night-status {
    margin-bottom: 12px;
    padding: 10px 11px;
    background: rgba(0,81,96,.09);
    color: #254a50;
    font-size: .82rem;
}
.status-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(153,49,49,.12); }

.button {
    min-height: 46px;
    border-radius: 12px;
    padding: 11px 15px;
    font-size: .88rem;
    font-weight: 800;
}
.button-primary {
    background: linear-gradient(145deg, #a43838, #812727);
    color: white;
    box-shadow: 0 9px 23px rgba(153,49,49,.25);
}
.button-secondary {
    background: linear-gradient(145deg, #006579, #005160);
    color: white;
    box-shadow: 0 9px 23px rgba(0,81,96,.2);
}
.button-ghost { border-color: rgba(233,219,184,.28); color: var(--parchment); background: rgba(255,255,255,.035); }
.section-block .button-ghost, .page-hero + .section-block .button-ghost { color: var(--parchment); border-color: rgba(233,219,184,.24); }
.text-link { color: var(--red); font-size: .88rem; }
.next-night-card .text-link { color: var(--red-dark); }

.section-block {
    padding: 34px 0;
    background: var(--black-2);
    color: #fff8e8;
}
.section-block + .section-block { border-top: 1px solid rgba(233,219,184,.07); }
.section-block--topless { padding-top: 18px; }
.section-block--tinted {
    background: linear-gradient(180deg, #101012, #161516);
    border-block: 1px solid rgba(233,219,184,.08);
}
.compact-section { padding-block: 30px; }
.section-head { align-items: end; margin-bottom: 16px; gap: 14px; }
.section-head h2 { color: #fff8e8; margin-bottom: 0; }
.section-head p { color: rgba(233,219,184,.6); }
.section-head--compact { align-items: center; }

.proposal-grid { grid-template-columns: 1fr; gap: 14px; }
.proposal-card {
    background: var(--paper);
    border-color: rgba(233,219,184,.15);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}
.proposal-cover {
    height: 126px;
    padding: 15px;
    background: linear-gradient(145deg, var(--deep-2), var(--deep));
    isolation: isolate;
}
.proposal-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .9;
    background:
        radial-gradient(circle at 86% 28%, rgba(233,219,184,.18), transparent 33%),
        linear-gradient(125deg, transparent 0 52%, rgba(255,255,255,.05) 52% 53%, transparent 53% 100%);
}
.proposal-cover::after { border-color: rgba(233,219,184,.18); }
.cover-frame {
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(233,219,184,.18);
    border-radius: 9px;
    pointer-events: none;
}
.cover-system {
    max-width: 75%;
    color: #fff8e8;
    font-size: .62rem;
    letter-spacing: .12em;
    background: rgba(11,11,12,.36);
    padding: 5px 8px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}
.cover-monogram { color: #fff4d6; right: 16px; bottom: -5px; font-size: 5.2rem; opacity: .16; }
.cover-moon, .cover-violet { background: linear-gradient(145deg, #1b3340, #005160); }
.cover-ember, .cover-ruby { background: linear-gradient(145deg, #471d22, #993131); }
.cover-sea { background: linear-gradient(145deg, #003f4b, #006a7e); }
.cover-gold { background: linear-gradient(145deg, #2f2921, #816c41); }
.cover-moss { background: linear-gradient(145deg, #26342d, #50634f); }
.cover-ash { background: linear-gradient(145deg, #202123, #45484d); }
.proposal-body { padding: 16px; }
.proposal-body h2, .proposal-body h3 { color: #211b18; margin: 10px 0 3px; }
.proposal-body h3 { font-size: 1.38rem; }
.proposal-system { color: var(--deep) !important; font-size: .78rem !important; margin-bottom: 4px; }
.proposal-master { font-size: .82rem !important; margin-bottom: 8px; }
.proposal-pitch,
.proposal-body > p:not(.proposal-system):not(.proposal-master) {
    font-size: .86rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
.proposal-meta { color: #6b5e55; font-size: .75rem; padding-top: 4px; margin-bottom: 13px; }

.badge { min-height: 25px; padding: 5px 8px; font-size: .62rem; }
.badge-muted { color: #665d53; background: rgba(65,48,35,.08); }
.type-oneshot { color: #004b58; background: #d4e7e7; }
.type-cronaca { color: #6f2323; background: #efd6cf; }
.type-saga { color: #41372c; background: #e9dbb8; }
.type-campagna { color: #fff5df; background: #993131; }

.home-split { grid-template-columns: 1fr 1fr; gap: 10px; }
.home-panel {
    position: relative;
    min-height: 160px;
    padding: 17px;
    border-radius: 16px;
    border: 1px solid rgba(233,219,184,.12);
    box-shadow: none;
    overflow: hidden;
}
.home-panel--night { background: linear-gradient(155deg, #e9dbb8, #f4ecd7); color: var(--ink); }
.home-panel--games { background: linear-gradient(155deg, #006174, #004451); color: white; }
.home-panel .quick-icon { position: absolute; right: 14px; top: 12px; font-size: 1.5rem; opacity: .38; }
.home-panel h2 { margin: 2px 0 5px; font-size: 1.45rem; }
.home-panel p { font-size: .78rem; line-height: 1.4; margin-bottom: 13px; }
.home-panel--night p { color: #544a41; }
.home-panel--games p { color: rgba(255,255,255,.72); }
.home-panel--games .eyebrow { color: var(--parchment); }
.quick-link { font-size: .76rem; font-weight: 800; }
.home-panel--night .quick-link { color: var(--red-dark); }
.home-panel--games .quick-link { color: var(--parchment); }

.info-strip { align-items: stretch; flex-direction: column; gap: 14px; }
.info-strip h2 { color: #fff8e8; font-size: 1.55rem; }

.page-hero {
    background:
        linear-gradient(145deg, rgba(0,81,96,.98), rgba(0,62,73,.98));
    border-bottom: 1px solid rgba(233,219,184,.14);
}
.page-hero--compact { padding: 25px 0 53px; }
.page-hero-inner { align-items: flex-start; flex-direction: column; gap: 16px; }
.page-hero .eyebrow { color: var(--parchment); }
.page-hero h1 { color: #fff8e8; font-size: 2.25rem; margin-bottom: 7px; }
.page-hero p { color: rgba(255,248,232,.72); font-size: .86rem; line-height: 1.45; }

.filter-panel {
    margin-top: -36px;
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 9px;
    border-radius: 16px;
    background: #1a191a;
    border-color: rgba(233,219,184,.12);
    box-shadow: var(--shadow);
}
.filter-panel label > span { color: rgba(233,219,184,.62); }
.search-field input, .filter-panel select {
    min-height: 44px;
    color: #fff8e8;
    background: #0f0f10;
    border-color: rgba(233,219,184,.16);
}
.search-field input::placeholder { color: rgba(233,219,184,.42); }
.search-field input:focus, .filter-panel select:focus { border-color: var(--deep); box-shadow: 0 0 0 3px rgba(0,81,96,.22); }
.filter-actions { display: grid; grid-template-columns: 1fr 1fr; }
.results-bar { color: rgba(233,219,184,.58); padding: 18px 2px 11px; }
.results-bar strong { color: #fff8e8; }
.pagination a { color: #f5ead0; border-color: rgba(233,219,184,.15); background: #181719; }
.pagination a.is-active { background: var(--red); border-color: var(--red); }
.empty-state { border-color: rgba(233,219,184,.18); background: #171617; }
.empty-state h1, .empty-state h2 { color: #fff8e8; }
.empty-state p { color: rgba(233,219,184,.62); }

.proposal-detail-hero { padding: 26px 0; background: var(--black-2); }
.proposal-detail-grid { grid-template-columns: 1fr; gap: 21px; }
.proposal-detail-cover { min-height: 230px; border-radius: 18px; }
.proposal-detail-copy { color: #fff8e8; }
.proposal-detail-copy h1 { color: #fff8e8; font-size: 2.35rem; }
.back-link { color: var(--parchment); }
.detail-system { color: #87c3cd; }
.detail-pitch { color: rgba(255,248,232,.72); font-size: .95rem; }
.detail-facts { grid-template-columns: 1fr; }
.detail-facts div { background: #1b1a1b; border-color: rgba(233,219,184,.11); }
.detail-facts span { color: rgba(233,219,184,.5); }
.detail-facts strong { color: #fff8e8; }
.detail-columns { grid-template-columns: 1fr; }
.content-card { padding: 18px; background: var(--paper); border-color: var(--line); }
.content-card--accent { background: var(--parchment); }
.tag-cloud span, .trait-row span { background: rgba(0,81,96,.10); color: #184e56; }

.week-selector { margin-top: -34px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.week-selector a { padding: 9px 4px; flex-direction: column; gap: 0; background: #191819; border-color: rgba(233,219,184,.14); color: rgba(233,219,184,.66); box-shadow: var(--shadow-soft); }
.week-selector a strong { color: #fff8e8; font-size: .95rem; }
.week-selector a.is-active { background: var(--red); border-color: var(--red); }
.night-heading { margin: 27px 0 14px; }
.night-heading h2 { color: #fff8e8; font-size: 1.5rem; }
.night-time { color: var(--parchment); font-size: 1.4rem; }
.slot-grid { grid-template-columns: 1fr; gap: 10px; }
.slot-card { grid-template-columns: 46px 1fr; background: var(--paper); border-color: var(--line); border-radius: 15px; }
.slot-number { background: var(--deep); color: #fff8e8; font-size: 1rem; }
.slot-main { padding: 15px; }
.slot-main h3 { margin: 10px 0 4px; }
.prototype-note { background: #1c1b1c; color: rgba(233,219,184,.62); border: 1px solid rgba(233,219,184,.10); }
.prototype-note strong { color: #fff8e8; }

.games-toolbar { align-items: stretch; flex-direction: column; gap: 9px; }
.games-toolbar .search-field { max-width: none; }
.demo-hint { color: rgba(233,219,184,.52); text-align: left; font-size: .72rem; }
.game-grid { grid-template-columns: 1fr; gap: 10px; }
.game-card { grid-template-columns: 50px 1fr; gap: 12px; background: var(--paper); border-color: var(--line); border-radius: 15px; padding: 13px; }
.game-emblem { width: 50px; height: 50px; border-radius: 12px; color: var(--parchment); background: linear-gradient(145deg, var(--deep), #003b46); font-size: 1.5rem; }
.game-copy h2 { font-size: 1.18rem; }
.game-tag { color: var(--red-dark); }
.interest-button { grid-column: 1 / -1; grid-template-columns: auto auto 1fr; justify-content: center; width: 100%; background: #e9dbb8; border-color: rgba(65,48,35,.14); color: #4d4034; }
.interest-button small { grid-column: auto; margin-top: 0; }
.interest-button.is-active { background: #ead1c8; border-color: rgba(153,49,49,.28); color: var(--red-dark); }

.profile-layout { grid-template-columns: 1fr; gap: 10px; }
.profile-card { padding: 18px; background: var(--paper); border-color: var(--line); border-radius: 16px; }
.profile-card--identity { grid-column: auto; }
.avatar-placeholder { background: linear-gradient(145deg, var(--red-dark), var(--red)); color: #fff8e8; }
.profile-card--master { background: linear-gradient(145deg, #006174, #004451); color: white; }
.profile-card--master p { color: rgba(255,255,255,.7); }
.profile-card--master .eyebrow { color: var(--parchment); }

.modal-backdrop { padding: 8px; align-items: end; background: rgba(0,0,0,.78); }
.modal-card { width: 100%; max-height: 88vh; border-radius: 21px 21px 8px 8px; padding: 18px; background: var(--paper); border-color: rgba(153,49,49,.2); }
.modal-head h2 { font-size: 1.7rem; }
.type-explainer-grid { grid-template-columns: 1fr; }
.type-explainer { background: #f8f0dc; }
.type-explainer.is-highlighted { box-shadow: 0 0 0 3px rgba(153,49,49,.18); }
.table-type-icon { background: var(--red); box-shadow: 0 0 0 4px rgba(153,49,49,.10); }

.site-footer { background: var(--black); border-top-color: rgba(233,219,184,.08); color: rgba(233,219,184,.46); padding: 22px 0 16px; }
.footer-inner { font-size: .72rem; }

.mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: calc(70px + env(safe-area-inset-bottom));
    padding: 6px 7px env(safe-area-inset-bottom);
    background: rgba(9,9,10,.98);
    border-top: 1px solid rgba(233,219,184,.11);
    box-shadow: 0 -10px 28px rgba(0,0,0,.32);
    backdrop-filter: blur(14px);
}
.mobile-nav a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    color: rgba(233,219,184,.48);
    border-radius: 11px;
    font-weight: 700;
}
.mobile-nav a svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mobile-nav a small { font-size: .61rem; }
.mobile-nav a.is-active { color: #fff3d8; background: rgba(153,49,49,.18); }
.mobile-nav a.is-active::before {
    content: "";
    position: absolute;
    top: 3px;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--red);
}

/* Il progetto viene valutato mobile-first in questa fase. Su schermi larghi
   manteniamo volutamente una larghezza compatta invece di inventare ora una UI desktop. */
@media (min-width: 641px) {
    body { padding-bottom: 78px; }
    .mobile-nav { left: 50%; right: auto; width: min(100%, 700px); transform: translateX(-50%); border-inline: 1px solid rgba(233,219,184,.07); }
    .site-header .container, .main-content > section > .container, .site-footer .container { max-width: 700px; }
    .proposal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .proposal-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-grid { grid-template-columns: 1fr .9fr; align-items: end; }
    .home-split { grid-template-columns: 1fr 1fr; }
    .type-explainer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
    .container { width: min(calc(100% - 22px), var(--container)); }
    .header-inner { height: 64px; }
    .brand-mark { width: 46px; height: 46px; }
    .brand-copy strong { font-size: 1.08rem; }
    .brand-kicker { font-size: .56rem; }
    .hero-grid { padding-block: 25px 24px; }
    .hero-actions { display: block; }
    .hero-actions .button { width: 100%; }
    .section-block { padding: 29px 0; }
    .section-block--topless { padding-top: 17px; }
    .proposal-cover { height: 118px; }
    .proposal-body { padding: 15px; }
    .mobile-only { display: flex; }
    .desktop-only { display: none; }
    .profile-card--identity { align-items: center; }
    .site-footer { padding-bottom: 12px; }
    .footer-dot { display: none; }
    .footer-inner { flex-direction: column; gap: 2px; }
}

/* ========================================================================== 
   v0.0.7 · Home editoriale mobile-first
   Riduce l'effetto landing/promozionale e porta in primo piano dati e azioni.
   ========================================================================== */

/* Brand: nome completo su una sola riga. */
.brand-copy {
    flex-direction: row;
    align-items: baseline;
    gap: .28rem;
    white-space: nowrap;
}
.brand-kicker {
    color: #fff8e8;
    font-family: "Marcellus", Georgia, serif;
    font-size: 1.02rem;
    line-height: 1;
    letter-spacing: .005em;
    text-transform: none;
}
.brand-copy strong {
    color: #fff8e8;
    font-size: 1.02rem;
    line-height: 1;
    letter-spacing: .005em;
}

.home-dashboard {
    background: #101012;
    min-height: calc(100vh - 64px);
    padding: 18px 0 30px;
}
.home-dashboard > .container {
    display: grid;
    gap: 28px;
}
.home-label {
    display: block;
    margin: 0 0 6px;
    color: #b64a48;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.15;
    text-transform: uppercase;
}

.home-night {
    position: relative;
    overflow: hidden;
    padding: 18px 18px 15px;
    background: #eadfbe;
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(0,0,0,.17);
}
.home-night::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #993131 0 31%, #005160 31% 68%, #eadfbe 68%);
}
.home-night-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 15px;
}
.home-night h1 {
    margin: 0;
    color: #141416;
    font-family: "Marcellus", Georgia, serif;
    font-size: clamp(1.6rem, 7vw, 2rem);
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.04;
}
.home-night-time {
    flex: 0 0 auto;
    text-align: right;
}
.home-night-time span {
    display: block;
    margin-bottom: 2px;
    color: #7b7063;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.home-night-time strong {
    color: #151416;
    font-size: 1.34rem;
    line-height: 1;
}
.home-night-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    padding-top: 12px;
    border-top: 1px solid rgba(58,45,33,.14);
}
.home-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #214d54;
    font-size: .75rem;
    font-weight: 700;
}
.home-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #993131;
    box-shadow: 0 0 0 4px rgba(153,49,49,.10);
}
.home-night-foot a {
    flex: 0 0 auto;
    color: #842d2d;
    font-size: .75rem;
    font-weight: 800;
}

.home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}
.home-section-head h2 {
    margin: 0;
    color: #fff8e8;
    font-family: "Marcellus", Georgia, serif;
    font-size: 1.58rem;
    font-weight: 400;
    line-height: 1.05;
}
.home-section-head > a {
    padding-bottom: 2px;
    color: #c64b49;
    font-size: .72rem;
    font-weight: 800;
}

.home-proposal-list {
    border-top: 1px solid rgba(233,219,184,.13);
}
.home-proposal {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    background: transparent;
    border-bottom: 1px solid rgba(233,219,184,.13);
}
.home-proposal-main {
    min-width: 0;
    padding: 17px 6px 17px 0;
}
.home-proposal-topline {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    margin-bottom: 8px;
}
.home-type {
    flex: 0 0 auto;
    color: #eadfbe;
    font-size: .61rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.home-type::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 6px 1px 0;
    border-radius: 50%;
    background: #993131;
}
.home-type--oneshot::before { background: #3d9aaa; }
.home-type--cronaca::before { background: #d0a350; }
.home-type--saga::before { background: #9584bd; }
.home-type--campagna::before { background: #b94643; }
.home-proposal-status {
    overflow: hidden;
    color: rgba(233,219,184,.48);
    font-size: .61rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-proposal h3 {
    margin: 0 0 2px;
    color: #fff8e8;
    font-family: "Marcellus", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.15;
}
.home-proposal-system {
    margin: 0 0 8px;
    color: #63aebb;
    font-size: .69rem;
    font-weight: 800;
}
.home-proposal-pitch {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 10px;
    color: rgba(255,248,232,.64);
    font-size: .76rem;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.home-proposal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    color: rgba(233,219,184,.48);
    font-size: .64rem;
}
.home-proposal-meta strong {
    color: rgba(255,248,232,.78);
}
.home-proposal-open {
    display: grid;
    place-items: center;
    color: #b54a48;
    font-size: 1.1rem;
}

.home-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(233,219,184,.13);
    border-bottom: 1px solid rgba(233,219,184,.13);
}
.home-links > a {
    position: relative;
    min-width: 0;
    padding: 17px 28px 17px 0;
}
.home-links > a + a {
    padding-left: 17px;
    border-left: 1px solid rgba(233,219,184,.13);
}
.home-links .home-label { margin-bottom: 5px; }
.home-links strong {
    display: block;
    margin-bottom: 3px;
    color: #fff8e8;
    font-family: "Marcellus", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 400;
}
.home-links small {
    display: block;
    color: rgba(233,219,184,.5);
    font-size: .67rem;
    line-height: 1.35;
}
.home-link-arrow {
    position: absolute;
    top: 50%;
    right: 8px;
    color: #b54a48;
    transform: translateY(-50%);
}
.home-links > a + a .home-link-arrow { right: 0; }

.home-types {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    color: #fff8e8;
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(233,219,184,.13);
    border-bottom: 1px solid rgba(233,219,184,.13);
    text-align: left;
    cursor: pointer;
}
.home-types small {
    display: block;
    margin-bottom: 3px;
    color: rgba(233,219,184,.42);
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.home-types strong {
    color: rgba(255,248,232,.9);
    font-size: .76rem;
}
.home-types > span:last-child {
    color: #b54a48;
    font-size: 1rem;
}

/* La home v0.0.7 non usa più hero/card promozionali precedenti. */
.home-dashboard + * { position: relative; }

@media (max-width: 640px) {
    .header-inner { height: 60px; }
    .brand { gap: 8px; max-width: calc(100vw - 28px); }
    .brand-mark { width: 40px; height: 40px; }
    .brand-copy { min-width: 0; gap: .25rem; }
    .brand-kicker,
    .brand-copy strong { font-size: .95rem; }
    .home-dashboard { min-height: calc(100vh - 60px); padding-top: 14px; }
    .home-dashboard > .container { gap: 25px; }
    .home-night { padding: 17px 16px 14px; }
    .home-night-head { gap: 12px; }
    .home-night h1 { font-size: 1.52rem; }
    .home-night-time strong { font-size: 1.22rem; }
    .home-proposal-main { padding-block: 15px; }
}

@media (max-width: 370px) {
    .brand-kicker,
    .brand-copy strong { font-size: .87rem; }
    .brand-mark { width: 36px; height: 36px; }
    .home-night h1 { font-size: 1.35rem; }
    .home-proposal h3 { font-size: 1.1rem; }
    .home-links > a { padding-right: 22px; }
}

/* ========================================================================== 
   v0.0.8 · Home centrata su uso reale
   Prossima serata → campagne aperte → preferenze mensili → guida ai tavoli.
   ========================================================================== */

.home-section-head--stacked {
    align-items: end;
}
.home-section-head--stacked > div {
    min-width: 0;
}
.home-section-copy {
    max-width: 30rem;
    margin: 5px 0 0;
    color: rgba(233,219,184,.54);
    font-size: .72rem;
    line-height: 1.4;
}

.home-votes {
    min-width: 0;
}
.home-vote-list {
    border-top: 1px solid rgba(233,219,184,.13);
}
.home-vote-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(233,219,184,.13);
}
.home-vote-copy {
    min-width: 0;
}
.home-vote-copy strong {
    display: block;
    overflow: hidden;
    margin-bottom: 2px;
    color: #fff8e8;
    font-family: "Marcellus", Georgia, serif;
    font-size: 1.03rem;
    font-weight: 400;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-vote-copy small {
    display: block;
    overflow: hidden;
    color: rgba(233,219,184,.48);
    font-size: .65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-vote-button {
    min-width: 76px;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    gap: 0 5px;
    padding: 7px 10px 6px;
    color: #eadfbe;
    background: transparent;
    border: 1px solid rgba(233,219,184,.18);
    border-radius: 8px;
    cursor: pointer;
}
.home-vote-button > span {
    color: #b64a48;
    font-size: .8rem;
}
.home-vote-button > strong {
    font-size: .76rem;
    line-height: 1;
}
.home-vote-button > small {
    grid-column: 1 / -1;
    margin-top: 3px;
    color: rgba(233,219,184,.54);
    font-size: .56rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.home-vote-button.is-active {
    color: #fff8e8;
    background: rgba(153,49,49,.14);
    border-color: rgba(182,74,72,.46);
}
.home-vote-button.is-active > small {
    color: #e1a4a2;
}

/* Il richiamo finale ora spiega chiaramente lo scopo, senza copy astratto. */
.home-types {
    padding: 16px 0;
}
.home-types strong {
    display: block;
    margin-bottom: 4px;
    color: #fff8e8;
    font-family: "Marcellus", Georgia, serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.15;
}
.home-types small {
    margin: 0;
    color: rgba(233,219,184,.48);
    font-size: .66rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.4;
    text-transform: none;
}

/* Più respiro sotto l'ultima azione, così la bottom bar non la soffoca. */
.home-dashboard {
    padding-bottom: calc(44px + env(safe-area-inset-bottom));
}

@media (max-width: 640px) {
    .home-dashboard > .container { gap: 27px; }
    .home-section-head { align-items: end; }
    .home-section-head h2 { font-size: 1.5rem; }
    .home-section-copy { font-size: .7rem; }
    .home-vote-row { min-height: 61px; }
}

/* ========================================================================== 
   v0.0.9 · Home come hub di navigazione
   Niente anteprime di campagne o giochi: la Home mostra solo la prossima
   serata e tre accessi chiari alle sezioni dedicate.
   ========================================================================== */

.home-destinations {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(233,219,184,.13);
}
.home-destination {
    position: relative;
    display: block;
    min-height: 138px;
    padding: 19px 42px 20px 0;
    border-bottom: 1px solid rgba(233,219,184,.13);
}
.home-destination::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: 2px;
    color: #b64a48;
    font-size: 1.08rem;
    transform: translateY(-50%);
    transition: transform .16s ease;
}
.home-destination:active::after {
    transform: translate(3px, -50%);
}
.home-destination-title {
    display: block;
    margin-bottom: 7px;
    color: #fff8e8;
    font-family: "Marcellus", Georgia, serif;
    font-size: 1.42rem;
    font-weight: 400;
    line-height: 1.08;
}
.home-destination-copy {
    display: block;
    max-width: 22rem;
    color: rgba(233,219,184,.56);
    font-size: .76rem;
    line-height: 1.45;
}
.home-destination-action {
    display: inline-block;
    margin-top: 13px;
    color: #d15b58;
    font-size: .7rem;
    font-weight: 800;
}
.home-destination--games .home-label { color: #58a9b8; }
.home-destination--types .home-label { color: #d0aa65; }

/* La home è volutamente molto corta: più respiro finale e nessun contenuto
   importante deve finire sotto la barra di navigazione mobile. */
.home-dashboard {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
}
.home-dashboard > .container {
    gap: 26px;
}

/* Pagina dedicata alla spiegazione dei tipi di tavolo. */
.table-guide-list {
    display: grid;
    gap: 10px;
}
.table-guide-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    color: #2a211b;
    background: #eadfbe;
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 10px;
}
.table-guide-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: #993131;
}
.table-guide-card--oneshot::before { background: #3d9aaa; }
.table-guide-card--cronaca::before { background: #d0a350; }
.table-guide-card--saga::before { background: #9584bd; }
.table-guide-card--campagna::before { background: #b94643; }
.table-guide-card header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 11px;
}
.table-guide-dot {
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 50%;
    background: #993131;
    flex: 0 0 auto;
}
.table-guide-card--oneshot .table-guide-dot { background: #3d9aaa; }
.table-guide-card--cronaca .table-guide-dot { background: #d0a350; }
.table-guide-card--saga .table-guide-dot { background: #9584bd; }
.table-guide-card--campagna .table-guide-dot { background: #b94643; }
.table-guide-card .home-label {
    margin-bottom: 3px;
    color: #8c3534;
}
.table-guide-card h2 {
    margin: 0;
    color: #201917;
    font-family: "Marcellus", Georgia, serif;
    font-size: 1.45rem;
    font-weight: 400;
}
.table-guide-card p {
    margin-bottom: 12px;
    color: #574d43;
    font-size: .82rem;
    line-height: 1.5;
}
.table-guide-card .table-guide-short {
    margin-bottom: 7px;
    color: #27201c;
    font-weight: 800;
}
.table-guide-card .trait-row span {
    background: rgba(0,81,96,.1);
    color: #1e5058;
}
.table-guide-back {
    margin-top: 16px;
}

@media (max-width: 640px) {
    .home-destination {
        min-height: 132px;
        padding-top: 18px;
        padding-bottom: 18px;
    }
    .home-destination-title { font-size: 1.34rem; }
    .table-guide-card { padding: 17px 16px; }
}

/* ========================================================================== 
   v0.0.10 · Home come selezione della Compagnia
   Meno lista editoriale, più tessere/porte d'accesso alla navigazione.
   Nuova tipografia e testata con nome completo.
   ========================================================================== */

:root {
    --black: #070809;
    --black-soft: #0d0f11;
    --red: #993131;
    --red-dark: #7e2727;
    --teal: #005160;
    --teal-soft: #0c6677;
    --sand: #e9dbb8;
    --sand-dim: rgba(233,219,184,.58);
}

body {
    background: linear-gradient(180deg, #070809 0%, #0a0b0d 100%);
    color: #f4ecdb;
    font-family: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3,
.brand-title,
.home-night h1,
.home-destination-title,
.table-guide-card h2,
.page-hero h1,
.modal-head h2 {
    font-family: "Alegreya Sans", "Manrope", ui-sans-serif, system-ui, sans-serif;
    letter-spacing: -.02em;
}

p { color: var(--sand-dim); }

.site-header {
    background: rgba(7,8,9,.94);
    border-bottom: 1px solid rgba(233,219,184,.10);
}
.header-inner {
    height: 66px;
}
.brand {
    gap: 10px;
}
.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(233,219,184,.14);
}
.brand-mark img { object-fit: contain; }
.brand-fallback {
    color: var(--sand);
    font-family: "Alegreya Sans", sans-serif;
    font-size: .9rem;
    font-weight: 800;
}
.brand-title {
    color: #f7eed9;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.desktop-nav a {
    color: rgba(233,219,184,.72);
    font-weight: 700;
}
.desktop-nav a:hover,
.desktop-nav a.is-active {
    color: #fff4d7;
    background: rgba(255,255,255,.06);
}

.home-dashboard {
    background:
        radial-gradient(circle at top right, rgba(0,81,96,.18), transparent 28rem),
        linear-gradient(180deg, #070809 0%, #0a0b0d 100%);
    min-height: calc(100vh - 66px);
    padding-top: 16px;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
}
.home-dashboard > .container {
    gap: 16px;
}
.home-label {
    color: #cc5956;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.home-night {
    padding: 18px 16px 15px;
    background: var(--sand);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
.home-night::before {
    height: 4px;
    background: linear-gradient(90deg, var(--red) 0 30%, var(--teal) 30% 66%, transparent 66%);
}
.home-night h1 {
    color: #1a1513;
    font-size: clamp(1.85rem, 7.8vw, 2.2rem);
    font-weight: 700;
    line-height: .98;
}
.home-night-time span {
    color: #786b5f;
    font-weight: 800;
}
.home-night-time strong {
    color: #151416;
    font-size: 1.45rem;
    font-weight: 800;
}
.home-status {
    color: #274d54;
    font-size: .76rem;
    font-weight: 800;
}
.home-night-foot a {
    color: var(--red-dark);
    font-size: .78rem;
    font-weight: 800;
}

.home-destinations {
    display: grid;
    gap: 12px;
    border-top: 0;
}
.home-destination {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 154px;
    padding: 17px 18px 18px;
    border: 1px solid rgba(233,219,184,.10);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.home-destination::after {
    top: 16px;
    right: 16px;
    transform: none;
    font-size: 1rem;
    color: rgba(233,219,184,.7);
}
.home-destination:active::after {
    transform: translateX(3px);
}
.home-destination-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff8e8;
    font-size: 1rem;
    font-weight: 800;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(233,219,184,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.home-destination-title {
    margin: 0;
    color: #fff8e8;
    font-size: 1.52rem;
    font-weight: 700;
    line-height: 1.02;
}
.home-destination-copy {
    max-width: none;
    color: rgba(233,219,184,.64);
    font-size: .8rem;
    line-height: 1.42;
}
.home-destination-action {
    margin-top: auto;
    color: #fff8e8;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .03em;
}
.home-destination--campaigns {
    background: linear-gradient(145deg, rgba(153,49,49,.16), rgba(7,8,9,.85));
}
.home-destination--campaigns .home-destination-icon {
    background: rgba(153,49,49,.24);
    border-color: rgba(233,219,184,.16);
}
.home-destination--campaigns .home-label { color: #e08a88; }

.home-destination--games {
    background: linear-gradient(145deg, rgba(0,81,96,.28), rgba(7,8,9,.85));
}
.home-destination--games .home-destination-icon {
    background: rgba(0,81,96,.34);
    border-color: rgba(233,219,184,.16);
}
.home-destination--games .home-label { color: #83cad6; }

.home-destination--types {
    background: linear-gradient(145deg, rgba(233,219,184,.06), rgba(7,8,9,.85));
}
.home-destination--types .home-destination-icon {
    background: rgba(233,219,184,.10);
    border-color: rgba(233,219,184,.18);
}
.home-destination--types .home-label { color: #d9c49a; }

.site-footer {
    background: #070809;
    color: rgba(233,219,184,.48);
}

.mobile-nav {
    background: rgba(7,8,9,.98);
}
.mobile-nav a.is-active {
    color: #fff3d8;
    background: rgba(153,49,49,.18);
}
.mobile-nav a.is-active::before {
    background: var(--red);
}

@media (max-width: 640px) {
    .container { width: min(calc(100% - 22px), 700px); }
    .header-inner { height: 60px; }
    .brand-title {
        font-size: .94rem;
        letter-spacing: -.01em;
    }
    .brand-mark { width: 36px; height: 36px; }
    .home-dashboard { min-height: calc(100vh - 60px); }
    .home-night-head { align-items: start; }
    .home-night h1 { font-size: 1.72rem; }
    .home-destination { min-height: 148px; }
    .home-destination-title { font-size: 1.42rem; }
}

@media (max-width: 380px) {
    .brand-title { font-size: .86rem; }
    .home-night h1 { font-size: 1.55rem; }
    .home-night-time strong { font-size: 1.26rem; }
}

/* ========================================================================== 
   v0.0.11 · Home: campagne, serata diretta, Master e info tavoli in testata
   ========================================================================== */

.header-inner {
    position: relative;
}
.header-info {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    margin-left: auto;
    color: var(--sand);
    background: rgba(233,219,184,.06);
    border: 1px solid rgba(233,219,184,.18);
    border-radius: 50%;
    font-family: "Alegreya Sans", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}
.header-info.is-active,
.header-info:active {
    color: #fff8e8;
    background: rgba(153,49,49,.22);
    border-color: rgba(204,89,86,.45);
}

/* La card prossima serata è ora tutta cliccabile e non mostra stati intermedi. */
.home-night {
    display: block;
    color: inherit;
}
.home-night-foot--simple {
    min-height: 32px;
    justify-content: space-between;
}
.home-night-foot--simple strong {
    color: var(--red-dark);
    font-size: .8rem;
    font-weight: 800;
}
.home-night-foot--simple > span {
    color: var(--red-dark);
    font-size: 1rem;
}

.home-destination--masters {
    background: linear-gradient(145deg, rgba(233,219,184,.08), rgba(7,8,9,.88));
}
.home-destination--masters .home-destination-icon {
    background: rgba(233,219,184,.11);
    border-color: rgba(233,219,184,.18);
}
.home-destination--masters .home-label {
    color: #d9c49a;
}

.master-list {
    display: grid;
    gap: 12px;
}
.master-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 15px;
    background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
    border: 1px solid rgba(233,219,184,.11);
    border-radius: 14px;
}
.master-avatar {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #fff7e4;
    background: linear-gradient(145deg, var(--red-dark), #4b1b1b);
    border: 1px solid rgba(233,219,184,.14);
    border-radius: 13px;
    font-family: "Alegreya Sans", sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
}
.master-card-copy h2 {
    margin: 0 0 3px;
    color: #fff8e8;
    font-size: 1.35rem;
    font-weight: 700;
}
.master-card-copy p {
    margin: 0 0 5px;
    color: rgba(233,219,184,.62);
    font-size: .78rem;
}
.master-card-copy small {
    color: rgba(233,219,184,.42);
    font-size: .66rem;
}

@media (max-width: 640px) {
    .desktop-nav { display: none; }
    .header-inner { justify-content: space-between; }
    .brand { min-width: 0; }
    .brand-title {
        overflow: hidden;
        max-width: calc(100vw - 118px);
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .header-info { margin-left: 8px; }
}

/* ========================================================================== 
   v0.0.12 · Dettagli "incisi" + transizione a onde di carta
   ========================================================================== */

/* Bordo interno decorativo: è un inset shadow, quindi resta sotto testi,
   icone e altri contenuti interattivi della card. */
.home-night {
    box-shadow:
        inset 0 0 0 6px transparent,
        inset 0 0 0 7px rgba(71, 52, 35, .16),
        0 12px 28px rgba(0,0,0,.25);
}
.home-destination {
    box-shadow:
        inset 0 0 0 6px transparent,
        inset 0 0 0 7px rgba(233,219,184,.115),
        0 12px 28px rgba(0,0,0,.18);
}
.home-destination--campaigns {
    box-shadow:
        inset 0 0 0 6px transparent,
        inset 0 0 0 7px rgba(224,138,136,.15),
        0 12px 28px rgba(0,0,0,.18);
}
.home-destination--games {
    box-shadow:
        inset 0 0 0 6px transparent,
        inset 0 0 0 7px rgba(131,202,214,.15),
        0 12px 28px rgba(0,0,0,.18);
}
.home-destination--masters {
    box-shadow:
        inset 0 0 0 6px transparent,
        inset 0 0 0 7px rgba(233,219,184,.12),
        0 12px 28px rgba(0,0,0,.18);
}

/* Stesso dettaglio, molto discreto, sulle card interne già esistenti. */
.proposal-card,
.game-card,
.profile-card,
.table-guide-card,
.master-card {
    box-shadow:
        inset 0 0 0 6px transparent,
        inset 0 0 0 7px rgba(80,62,43,.08),
        0 10px 24px rgba(0,0,0,.10);
}

/* Evita flash della pagina di arrivo prima che il layer a onde sia montato. */
html.cdv-wave-arrival::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: #003d49;
}

.wave-transition[hidden] { display: none !important; }
.wave-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    pointer-events: none;
    contain: strict;
}
.wave-transition__layer {
    --bob-a: -1.2vh;
    --bob-b: .8vh;
    --tilt: -.35deg;
    position: absolute;
    left: 0;
    top: -20vh;
    width: 170vw;
    height: 140vh;
    max-width: none;
    object-fit: fill;
    transform-origin: 50% 50%;
    will-change: transform;
    filter: drop-shadow(-7px 0 7px rgba(0,0,0,.16));
}
.wave-transition__layer--back {
    z-index: 1;
    --cover-delay: 0ms;
    --reveal-delay: 105ms;
    --bob-a: 1.1vh;
    --bob-b: -.7vh;
    --tilt: .35deg;
}
.wave-transition__layer--paper {
    z-index: 2;
    --cover-delay: 42ms;
    --reveal-delay: 70ms;
    --bob-a: -1.45vh;
    --bob-b: .9vh;
    --tilt: -.5deg;
}
.wave-transition__layer--mid {
    z-index: 3;
    --cover-delay: 82ms;
    --reveal-delay: 35ms;
    --bob-a: .85vh;
    --bob-b: -1.1vh;
    --tilt: .3deg;
}
.wave-transition__layer--front {
    z-index: 4;
    --cover-delay: 122ms;
    --reveal-delay: 0ms;
    --bob-a: -1vh;
    --bob-b: .65vh;
    --tilt: -.3deg;
}

.wave-transition.is-covering .wave-transition__layer {
    animation: cdv-wave-cover 560ms cubic-bezier(.52,.02,.18,1) var(--cover-delay) both;
}
.wave-transition.is-revealing .wave-transition__layer {
    animation: cdv-wave-reveal 610ms cubic-bezier(.42,0,.19,1) var(--reveal-delay) both;
}

@keyframes cdv-wave-cover {
    0% {
        transform: translate3d(110vw, 0, 0) rotate(0deg);
    }
    48% {
        transform: translate3d(24vw, var(--bob-a), 0) rotate(var(--tilt));
    }
    100% {
        transform: translate3d(-42vw, var(--bob-b), 0) rotate(0deg);
    }
}

@keyframes cdv-wave-reveal {
    0% {
        transform: translate3d(-42vw, var(--bob-b), 0) rotate(0deg);
    }
    48% {
        transform: translate3d(-92vw, var(--bob-a), 0) rotate(var(--tilt));
    }
    100% {
        transform: translate3d(-180vw, 0, 0) rotate(0deg);
    }
}

body.wave-transition-running {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .wave-transition { display: none !important; }
    html.cdv-wave-arrival::before { display: none; }
}
