.premi-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    --page-gutter: 1.5rem;
    --section-space: 3rem;
    background:
        linear-gradient(180deg, rgba(16, 12, 10, 0.88) 0%, rgba(16, 12, 10, 0.94) 100%),
        url("/images/Legno2.jpg") center/cover no-repeat fixed;
}

.premi-page main {
    flex: 1;
    padding: var(--section-space) var(--page-gutter) 4rem;
}

.premi-shell {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--section-space);
}

.premi-intro {
    max-width: 38rem;
}

.premi-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wood);
    margin: 0 0 0.65rem;
    font-weight: 600;
}

.premi-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 500;
    line-height: 1.12;
    margin: 0 0 0.85rem;
    color: var(--paper);
}

.premi-lede {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--paper-2);
    max-width: 32rem;
}

.premi-guest-cta {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-top: 1.35rem;
}

.premi-page.is-guest .premi-guest-cta {
    display: flex;
}

.premi-guest-cta .btn {
    min-width: 9rem;
}

.premi-guest-link {
    color: var(--wood);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.92rem;
    font-weight: 500;
}

.premi-guest-link:hover {
    color: var(--paper);
}

.premi-band {
    padding-top: var(--section-space);
    border-top: 1px solid rgba(243, 235, 224, 0.22);
}

.premi-band-head {
    margin-bottom: 1.25rem;
}

.premi-band-title {
    font-family: var(--font-display);
    font-size: 1.32rem;
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 0.45rem;
    color: var(--paper);
}

.premi-band-lede {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
    max-width: 28rem;
}

.premi-status {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.premi-status a {
    color: var(--wood);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.premi-status a:hover {
    color: var(--paper);
}

.premi-loading {
    color: var(--muted);
    font-size: 0.92rem;
}

.premi-error {
    color: #e8b4b4;
    font-size: 0.92rem;
    margin: 0 0 1rem;
}

/* Inventario gettoni */
.premi-gettoni-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.35rem 1.75rem;
    align-items: flex-end;
}

.premi-gettone-card {
    text-align: center;
    animation: premi-coin-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.premi-gettone-card:nth-child(2) { animation-delay: 0.06s; }
.premi-gettone-card:nth-child(3) { animation-delay: 0.12s; }
.premi-gettone-card:nth-child(4) { animation-delay: 0.18s; }
.premi-gettone-card:nth-child(5) { animation-delay: 0.24s; }

@keyframes premi-coin-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.premi-gettone-stack {
    position: relative;
    width: 5.75rem;
    height: 5.75rem;
    margin: 0 auto 0.45rem;
}

.premi-gettone-layer {
    position: absolute;
    width: 3.25rem;
    height: 3.25rem;
    object-fit: contain;
    left: 50%;
    top: 50%;
    transform-origin: center center;
    filter:
        drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25))
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

.premi-gettone-layer--0 {
    transform: translate(-50%, -50%) translate(-3px, -6px) rotate(calc(-11deg + var(--var-rot, 0deg))) scale(1.08);
    z-index: 5;
}

.premi-gettone-layer--1 {
    transform: translate(-50%, -50%) translate(16px, 13px) rotate(calc(14deg + var(--var-rot, 0deg))) scale(0.98);
    z-index: 4;
}

.premi-gettone-layer--2 {
    transform: translate(-50%, -50%) translate(-18px, 16px) rotate(calc(-5deg + var(--var-rot, 0deg))) scale(0.96);
    z-index: 3;
}

.premi-gettone-layer--3 {
    transform: translate(-50%, -50%) translate(9px, 25px) rotate(calc(8deg + var(--var-rot, 0deg))) scale(0.95);
    z-index: 2;
}

.premi-gettone-layer--faint-more {
    opacity: 0.5;
}

.premi-gettone-caption {
    font-size: 0.82rem;
    line-height: 1.25;
}

.premi-gettone-nome {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--paper-2);
}

.premi-gettone-qty {
    font-weight: 500;
    color: var(--muted);
}

/* Catalogo combinazioni */
.premi-catalogo-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.premio-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid rgba(243, 235, 224, 0.12);
}

.premio-row:first-child {
    padding-top: 0;
}

.premio-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.premio-row-main {
    flex: 1 1 16rem;
    min-width: 0;
}

.premio-row-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0 0 0.35rem;
    color: var(--paper);
}

.premio-row-desc {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--muted);
    max-width: 32rem;
}

.premio-combo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.premio-combo-plus {
    color: var(--wood);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0 0.15rem;
    user-select: none;
}

.premio-combo-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 3.5rem;
}

.premio-combo-item img {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
    filter:
        drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2))
        drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
}

.premio-combo-item-nome {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--paper-2);
    text-align: center;
    line-height: 1.2;
    max-width: 4.5rem;
}

.premio-row-action {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 0.15rem;
}

.btn-riscatta-premio {
    min-width: 9.5rem;
    padding: 0.85rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    font-family: inherit;
    cursor: pointer;
}

.btn-riscatta-premio:not(:disabled) {
    background: var(--wood);
    color: var(--ink);
}

.btn-riscatta-premio:not(:disabled):hover {
    filter: brightness(1.05);
}

.btn-riscatta-premio:disabled {
    background: transparent;
    color: var(--muted);
    border-color: rgba(243, 235, 224, 0.2);
    cursor: not-allowed;
    opacity: 0.85;
}

.premio-row-hint {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    max-width: 12rem;
    line-height: 1.35;
}

/* Già riscattati */
.premi-riscatti-section.is-empty {
    display: none;
}

.premi-riscatti-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.premio-riscattato-row {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(243, 235, 224, 0.1);
}

.premio-riscattato-row:last-child {
    border-bottom: 0;
}

.premio-riscattato-nome {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--paper);
    margin-bottom: 0.2rem;
}

.premio-riscattato-desc {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.premio-riscattato-data {
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.premi-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 100;
    padding: 0.85rem 1.25rem;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    max-width: calc(100vw - 2rem);
    text-align: center;
}

.premi-toast.is-visible {
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
    .premi-page main {
        padding-top: 2rem;
    }

    .premi-row-action {
        width: 100%;
    }

    .btn-riscatta-premio {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .premi-gettone-card {
        animation: none;
    }

    .premi-toast {
        transition: none;
    }
}
