/* Pagina pubblica d'installazione: autonoma rispetto ai temi della land. */
:root {
    color-scheme: dark;
    --pwa-ink: #30251d;
    --pwa-muted: #715f4d;
    --pwa-paper: #f2e4c3;
    --pwa-night: #100b09;
    --pwa-gold: #d7923e;
    --pwa-rule: #b98a4e;
}
* { box-sizing: border-box; }
.pandora-pwa-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
    color: var(--pwa-ink);
    background:
        radial-gradient(circle at 50% -10%, #392316 0, transparent 44%),
        linear-gradient(135deg, transparent 0 48%, #ffffff05 48% 52%, transparent 52%) 0 0 / 34px 34px,
        var(--pwa-night);
    font: 17px/1.5 Georgia, 'Times New Roman', serif;
}
.pandora-pwa-card {
    position: relative;
    box-sizing: border-box;
    width: min(100%, 670px);
    margin: 0 auto;
    padding: clamp(23px, 6vw, 48px);
    overflow: hidden;
    background:
        linear-gradient(90deg, #ffffff22, transparent 16%, transparent 82%, #7a4a1710),
        linear-gradient(#fff9e033, #9c65110b),
        url("mobile/assets/paper.jpg?v=1") center / 420px auto repeat,
        #f2e4c3;
    border: 1px solid #8d6538;
    border-left: 7px solid var(--pwa-rule);
    box-shadow: 0 22px 70px #0009, inset 0 0 36px #79502116;
}
.pandora-pwa-card::before,
.pandora-pwa-card::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #a67635, transparent);
}
.pandora-pwa-card::before { top: 13px; }
.pandora-pwa-card::after { bottom: 13px; }
.pandora-pwa-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 19px;
    border-bottom: 1px solid #b28a58;
}
.pandora-pwa-crest {
    display: block;
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    object-fit: contain;
    filter: drop-shadow(0 3px 3px #34200f55);
}
.pandora-pwa-eyebrow {
    margin: 7px 0 0;
    color: var(--pwa-muted);
    text-transform: uppercase;
    letter-spacing: .15em;
    font: 600 11px/1.35 Arial, sans-serif;
}
.pandora-pwa-wordmark {
    margin: 0;
    color: #34251a;
    text-transform: uppercase;
    letter-spacing: .12em;
    font: 700 clamp(25px, 8vw, 37px)/1 Georgia, 'Times New Roman', serif;
}
.pandora-pwa-device {
    display: inline-block;
    margin: 0 0 13px;
    padding: 5px 10px;
    color: #fff0d3;
    background: #2d1b14;
    border-left: 3px solid var(--pwa-gold);
    text-transform: uppercase;
    letter-spacing: .09em;
    font: 700 11px/1.2 Arial, sans-serif;
}
.pandora-pwa-card h1 {
    margin: 0 0 12px;
    color: #2a2019;
    font-size: clamp(32px, 9vw, 48px);
    line-height: 1.05;
    letter-spacing: -.025em;
}
.pandora-pwa-intro { margin: 0; color: #594a3b; font-size: clamp(16px, 4.5vw, 19px); }
.pandora-pwa-card h2 {
    margin: 0 0 16px;
    color: #39291e;
    font-size: clamp(20px, 5.7vw, 25px);
    line-height: 1.2;
}
.pandora-pwa-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 28px 0 14px;
}
.pandora-pwa-actions a,
.pandora-pwa-actions button {
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 0;
    font: 700 15px/1.2 Arial, sans-serif;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}
.pandora-pwa-primary {
    grid-column: 1 / -1;
    color: #fff2dc;
    background: linear-gradient(180deg, #43291d, #281813);
    border: 1px solid #6d3f25;
    border-left: 5px solid var(--pwa-gold);
    box-shadow: 0 4px 0 #b3722c;
}
.pandora-pwa-secondary {
    color: #3d2a1f;
    background: #f6e9cdbd;
    border: 1px solid #987044;
}
.pandora-pwa-card a:focus-visible,
.pandora-pwa-card button:focus-visible {
    outline: 3px solid #9e5d1f;
    outline-offset: 3px;
}
.pandora-pwa-card [hidden] { display: none !important; }
.pandora-pwa-status {
    min-height: 1.5em;
    margin: 17px 0 0;
    color: #5e4934;
    font: 600 14px/1.45 Arial, sans-serif;
}
.pandora-pwa-help {
    margin-top: 25px;
    padding: 23px 0 2px;
    border-top: 1px solid #b38b59;
}
.pandora-pwa-help section > p { margin-bottom: 0; }
.pandora-pwa-steps { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.pandora-pwa-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.pandora-pwa-steps li > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff1da;
    background: #321f17;
    border: 1px solid #af7134;
    border-radius: 50%;
    font: 700 14px/1 Arial, sans-serif;
}
.pandora-pwa-steps li > div { padding-top: 3px; }
.pandora-pwa-fallback { color: var(--pwa-muted); font-size: 15px; }
.pandora-pwa-address {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 25px 0 0;
    padding: 14px 0;
    color: #4b392b;
    border-top: 1px solid #c09c6b;
    border-bottom: 1px solid #c09c6b;
}
.pandora-pwa-address span {
    color: var(--pwa-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    font: 700 10px/1.2 Arial, sans-serif;
}
.pandora-pwa-address strong { font-size: 15px; overflow-wrap: anywhere; }
.pandora-pwa-note { margin: 18px 0 0; color: #71604f; font-size: 13px; }

@media (max-width: 430px) {
    .pandora-pwa-page { padding-inline: 10px; }
    .pandora-pwa-card { padding: 25px 20px 31px; border-left-width: 5px; }
    .pandora-pwa-brand { margin-bottom: 24px; }
    .pandora-pwa-crest { width: 64px; height: 64px; flex-basis: 64px; }
    .pandora-pwa-actions { grid-template-columns: 1fr; }
    .pandora-pwa-primary { grid-column: auto; }
    .pandora-pwa-address { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: no-preference) {
    .pandora-pwa-actions a,
    .pandora-pwa-actions button { transition: transform .16s ease, filter .16s ease; }
    .pandora-pwa-actions a:active,
    .pandora-pwa-actions button:active { transform: translateY(2px); }
}
