/* Retro Space Arcade — frontend-only presentation layer.
   Keep app.css for card grades, retired pieces, missions and viewer states. */
:root, html[data-theme="light"], html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #18243D; --bg-soft: #1d2b48; --surface: #1d2d4b; --surface-2: #263857;
  --text: #fff5df; --text-2: #ded5c0; --text-3: #c2b9a8;
  --gold: #ffd15b; --gold-deep: #e29c17; --gold-veil: #f9b93418;
  --line: #dcae5d45; --line-strong: #e9c88a99;
  --cream: #ffedcb; --cream-low: #f4d7a6; --ink: #091923; --ink-soft: #4c493d;
  --cream-fill: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNjAiIGhlaWdodD0iMTYwIiB2aWV3Qm94PSIwIDAgMTYwIDE2MCI+PGZpbHRlciBpZD0iZ3JhaW4iPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIuNzIiIG51bU9jdGF2ZXM9IjMiIHN0aXRjaFRpbGVzPSJzdGl0Y2giIHNlZWQ9IjEyIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIG9wYWNpdHk9Ii4xOSIgZmlsdGVyPSJ1cmwoI2dyYWluKSIvPjwvc3ZnPg=="), radial-gradient(ellipse at 25% 0%, #fff9e6c9, transparent 72%), linear-gradient(115deg, #fff0d1 0%, #ffe7bb 55%, #f0ce99 100%);
  --metal-edge: 1px solid #f3d49a;
  --card-shadow: inset 0 2px 2px #fffced, inset 0 -2px 3px #b887485e, 0 5px 12px #050c1f80, 0 1px 2px #0009;
  --r-sm: 10px; --r-md: 16px; --r-lg: 20px;
  --display: Inter, system-ui, sans-serif;
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --safe-top: max(env(safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px));
}
html { scroll-behavior: auto; background: var(--bg); }
body {
  background: radial-gradient(ellipse at 20% 10%, #5375b326, transparent 65%), var(--bg);
  font-size: 14px; letter-spacing: -.025em; line-height: 1.4;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: radial-gradient(circle at 13% 18%, #d6efffa8 .7px, transparent 1px),radial-gradient(circle at 67% 43%, #a9dbe878 .6px, transparent 1px),radial-gradient(circle at 84% 24%, #fff4cd80 .7px, transparent 1px);
  background-size: 107px 137px, 179px 223px, 263px 197px;
}
body[data-view="classifiche"]::before {
  z-index: -1; background: linear-gradient(#18243D 28%, #18243D00 67%), url('/art/planet-space.webp?v=3.0') center bottom / min(100vw,560px) auto no-repeat;
}
.app { max-width: 430px; padding: calc(18px + var(--safe-top)) 16px calc(98px + var(--safe-bottom)); min-height: 100svh; }
[hidden], .view[hidden] { display: none !important; }
.logo { padding: 0 0 10px; }
.logo-img { width: 100%; max-width: 370px; aspect-ratio: 3 / 1; object-fit: contain; }
.logo-by { display: flex; align-items:center; justify-content:center; gap: 12px; margin-top: 4px; color: var(--text); font-weight: 650; letter-spacing: .015em; font-size: 11px; text-decoration: none; }
.logo-by::before,.logo-by::after { content:''; width:34px; height:1px; background: var(--gold); }
body[data-view="album"] .logo, body[data-view="classifiche"] .logo { display:none; }
.demo-banner { padding: 6px 10px; margin: 0 0 10px; font-size: 10px; border-color:#d9b77b55; color:#e4ce9d; background:#1a2841e6; line-height:1.35; }
.ui-icon { display:inline-block; width:25px; height:25px; vertical-align:middle; flex:none; }
.cream-card, .machine, .stat, .group, .status-button {
  background: var(--cream-fill); color: var(--ink); border: var(--metal-edge); box-shadow: var(--card-shadow); border-radius:var(--r-lg);
}
.machine-hero { height: 202px; margin: -4px -16px -1px; background:url('/art/machine-space.webp?v=3.0') center 49% / cover no-repeat; mask-image:linear-gradient(transparent,black 6%,black 92%,transparent); }
.machine { position:relative; padding:8px; gap:12px; border-radius:18px; }
.machine-image { width:70px; height:82px; object-fit:cover; object-position:center; border-radius:12px; border:1px solid #bb8a3c; }
.hello { color:var(--ink); font-size:18px; letter-spacing:-.055em; font-weight:800; }
.hello strong { color:#9b2814; font-weight:850; }
.hint { font-size:13px; color:var(--ink); margin:4px 0 0; line-height:1.35; letter-spacing:-.035em; }
.stats { gap:7px; margin:10px 0 0; }
.stat { padding:8px 3px 6px; border-radius:17px; min-width:0; }
.stat-icon { display:block; color:#b87500; margin-bottom:2px; }
.stat strong { font-weight:850; font-size:23px; color:var(--ink); line-height:1.15; letter-spacing:-.055em; overflow-wrap:anywhere; }
.stat-label { font-size:10px; color:var(--ink); margin-top:2px; text-transform:uppercase; font-weight:650; letter-spacing:0; }
.manual-badges { border:var(--metal-edge); border-radius:18px; background:#142039e8; padding:7px 5px; gap:6px 0; margin:9px 0; }
.manual-badges .manual-medal { padding:0 5px; gap:1px; color:var(--text); border-right:1px solid #d4ccb347; }
.manual-badges .medal-col-3 { border-right:0; }
.manual-badges .manual-medal .manual-name { font-size:11px; font-weight:700; line-height:1.3; overflow-wrap:anywhere; color:var(--text); }
.manual-badges .manual-medal .manual-caption { font-size:10px; color:var(--text); line-height:1.3; }
.recognition-icon { width:21px; height:21px; stroke-width:1.9; margin-bottom:2px; }
.recognition-icon.rank-1 { color:#ffd14b; } .recognition-icon.rank-2 { color:#e3e9ea; } .recognition-icon.rank-3 { color:#e79b56; }
.campaign-ribbons { padding:0; border:0; background:none; display:grid; gap:7px; margin:9px 0; }
.campaign-ribbons .campaign-award { position:relative; max-width:none; border:var(--metal-edge); background:#142039e8; border-radius:18px; padding:8px 25px; gap:1px; }
.campaign-ribbons .campaign-ribbon { display:none; }
.campaign-ribbons .campaign-award::before,.campaign-ribbons .campaign-award::after { content:'❧'; position:absolute; top:18px; left:12px; color:var(--gold); font-size:27px; }
.campaign-ribbons .campaign-award::after { left:auto;right:12px;transform:scaleX(-1); }
.campaign-ribbons .campaign-award strong { font-size:11px; color:var(--text); font-weight:500; }
.campaign-ribbons .campaign-award .ribbon-user { color:var(--gold); font-size:17px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; line-height:1.3; }
.campaign-ribbons .campaign-award small { font-size:10px; line-height:1.3; color:var(--text); }
.mission-panel { margin-top:18px; background:#1a2946ed; border:1px solid #e3bc714d; border-radius:16px; color:var(--text); }
.mission-panel p,.mission-panel small { color:var(--text-2); }
.section-title { display:flex; align-items:center; justify-content:center; gap:10px; font-size:15px; font-weight:750; letter-spacing:-.035em; color:var(--text); margin:18px 0 9px; text-align:center; }
.section-title::before,.section-title::after { content:''; flex:1; height:1px; background:linear-gradient(90deg,transparent,#efd5a3); }
.section-title::after { transform:rotate(180deg); }
.section-title .ui-icon { width:22px; height:22px; color:var(--gold); }
.page-header { font-size:21px; font-weight:800; text-transform:uppercase; text-align:center; margin:8px auto 18px; letter-spacing:.015em; color:var(--text); }
.album-heading { width:85%; border:1px solid #e4b45c; border-radius:16px; padding:9px 10px; box-shadow:inset 0 2px 2px #d7e3da33,0 3px 12px #0009; background:linear-gradient(#27424a,#061a21 60%); }
.leaderboard-heading { display:flex; flex-direction:column; align-items:center; gap:8px; margin-top:16px; margin-bottom:8px; }
.leaderboard-heading .ui-icon { width:47px; height:47px; color:var(--gold); stroke-width:1.5; filter:drop-shadow(0 2px 3px #000); }
.page-subtitle { text-align:center; font-size:12px; color:var(--text-2); margin:0 0 20px; }
.album-ring { display:grid; grid-template-columns:1.2fr 1fr; grid-template-rows:1fr 1fr; gap:0 10px; padding:12px 14px 12px 6px; text-align:center; align-items:center; }
.ring { grid-area:1/1/3/2; width:100%; max-width:185px; margin:0 auto; }
.ring-track { stroke:#d6b87e8a; stroke-width:13; }
.ring-value { stroke-width:13; stroke-linecap:butt; filter:drop-shadow(0 2px 2px #ba7c2655); }
.ring-center strong { color:var(--ink); font-size:38px; font-weight:850; letter-spacing:-.07em; }
.ring-center span { color:var(--ink); font-size:10px; letter-spacing:-.02em; font-weight:800; }
.ring-pieces { grid-area:1/2/2/3; font-size:12px; line-height:1.2; margin:0; color:var(--ink); }
.ring-pieces b { display:block; font-size:29px; font-weight:850; line-height:1.05; color:var(--ink); }
.ring-sets { grid-area:2/2/3/3; color:var(--ink); font-size:12px; line-height:1.35; margin:0; padding-top:10px; border-top:1px solid #ba8d4b44; }
.collection-list { overflow:hidden; }
.collection-row { width:100%; display:flex; align-items:center; gap:10px; padding:9px 10px; text-align:left; color:var(--ink); border-radius:0; min-height:67px; }
.collection-row + .collection-row { border-top:1px solid #fff8e6; box-shadow:0 -1px 0 #c9a06544; }
.collection-row:hover { background:#fff9e04d; }
.collection-thumb { display:flex; align-items:center; justify-content:center; width:72px; height:47px; flex:none; overflow:hidden; background:linear-gradient(145deg,#293d61,#16233d); border-radius:11px; color:var(--tier); }
.collection-thumb img { width:100%; height:100%; object-fit:cover; }
.collection-thumb .ui-icon { width:28px; height:28px; }
.collection-copy { min-width:0; flex:1; }
.collection-copy strong { display:block; font-size:14px; line-height:1.2; font-weight:800; overflow-wrap:anywhere; }
.collection-copy small { display:block; font-size:9px; line-height:1.3; color:#615236; margin-top:3px; }
.collection-progress { display:block; height:9px; background:#23343aab; border:1px solid #ad8139; border-radius:8px; margin-top:5px; overflow:hidden; box-shadow:inset 0 1px 2px #0005; }
.collection-progress i { display:block; height:100%; background:linear-gradient(#ffeb69,#ffb600 60%,#f38c00); border-radius:8px; }
.collection-count { font-size:15px; font-weight:800; flex:none; font-variant-numeric:tabular-nums; }
.collection-end { display:flex; justify-content:center; width:18px; flex:none; }
.collection-end .ui-icon { width:18px; height:18px; stroke-width:2.5; }
.complete-check { display:inline-grid; place-content:center; color:#fff; background:#368830; border:1px solid #275c1e; border-radius:50%; width:21px; height:21px; font-size:16px; font-weight:bold; }
#collectionDetail { scroll-margin-top:15px; margin-top:12px; padding:12px 8px; background:#192843f2; border:1px solid #d5aa5c88; border-radius:16px; }
.text-button { min-height:44px; color:var(--gold); padding:6px 10px; font-weight:650; font-size:12px; }
.set-nav { min-width:44px; min-height:44px; color:var(--gold); border-color:#e6bf82; }
.set-tabs { grid-template-columns:44px 1fr 44px; gap:4px; }
#setPanel .set-header { background:var(--cream-fill); color:var(--ink); }
#setPanel .set-desc,#setPanel .set-prize-text,#setPanel .set-count { color:var(--ink-soft); }
#setPanel .set-ribbon { color:#755315; }
#setPanel .set-prize { color:var(--ink); }
#setPanel .card { background:#1c2d4b; }
#recenti { scroll-margin-top:14px; }
#recentList { overflow:hidden; }
.recent { background:none; border:0; border-radius:0; margin:0; padding:10px; gap:10px; color:var(--ink); }
.recent + .recent { border-top:1px solid #fff8e6; box-shadow:0 -1px 0 #c9a06544; }
.recent img,.recent-placeholder { width:64px; height:52px; object-fit:cover; border-radius:11px; flex:none; }
.recent-copy { min-width:0; }
.recent-title { white-space:normal; overflow-wrap:anywhere; font-weight:750; font-size:13px; line-height:1.25; color:var(--ink); }
.recent-meta { color:#514838; font-size:10px; line-height:1.45; }
.recent .badge { display:table; padding:1px 8px; margin:3px 0 2px; border-radius:8px; background:#1c2d4b; color:var(--tier); font-size:9px; }
.recent .points { font-size:15px; flex:none; color:#1e622c; font-weight:800; }
.recent .points.minus { color:#a12622; }
.recent.lost .recent-title { color:#6c3a34; }
.group { padding:14px 12px 5px; margin-bottom:16px; }
.group-title { color:var(--ink); font-size:16px; font-weight:800; margin:0; overflow-wrap:anywhere; }
.group-rank { color:#514838; font-size:11px; margin:5px 0 12px; }
.top-row { color:var(--ink); padding:12px 2px; gap:10px; border-radius:0; min-height:55px; }
.top-row + .top-row { border-top:1px solid #fff7e0; box-shadow:0 -1px 0 #cca77855; margin:0; }
.top-row .name,.top-row.me .name { color:var(--ink); font-size:14px; font-weight:750; white-space:normal; overflow-wrap:anywhere; }
.top-row .top-rank { color:var(--ink); font-size:20px; width:34px; flex:none; text-align:center; }
.top-row .pts { color:var(--ink); font-size:16px; font-weight:850; }
.top-row.me { background:#fac44c45; }
.top-row .pts::after { content:' ◉'; color:#b8810b; }
#classifiche { min-height:calc(100svh - 160px); padding-bottom:180px; }
.app-version { display:flex; align-items:center; gap:18px; justify-content:center; font-size:18px; font-weight:750; margin:3px 0 18px; }
.app-version:empty { display:none; }
.app-version::before,.app-version::after { content:''; width:70px; height:1px; background:linear-gradient(90deg,transparent,#cbbb99); }
.app-version::after { transform:rotate(180deg); }
.status-entry { margin:0; }
.status-button { display:flex; align-items:center; gap:12px; width:100%; min-height:52px; padding:12px 14px; font-size:14px; font-weight:700; text-decoration:none; border-radius:0; }
.status-entry:first-of-type .status-button { border-radius:18px 18px 0 0; }
.status-entry:nth-of-type(2) .status-button { border-radius:0 0 18px 18px; margin-bottom:14px; border-top:1px solid #c9a06555; }
.status-button>span:last-child { margin-left:auto; font-size:25px; line-height:1; }
.status-button svg { color:#9b690a; width:25px;height:25px; }
.info-menu { overflow:hidden; }
.info-item + .info-item { border-top:1px solid #fff8e6; box-shadow:0 -1px 0 #c9a06544; }
.info-item summary { display:flex; align-items:center; list-style:none; gap:12px; min-height:56px; padding:12px 14px; cursor:pointer; }
.info-item summary::-webkit-details-marker { display:none; }
.info-item summary>.ui-icon:first-child { color:#9b690a; }
.info-item summary span { flex:1; min-width:0; font-weight:750; font-size:14px; overflow-wrap:anywhere; }
.info-arrow { width:17px; height:17px; stroke-width:2.5; }
.info-item[open] .info-arrow { transform:rotate(90deg); }
.info-body { padding:0 15px 16px; }
.info-body .rule-text,.info-body .rule-list,.info-body .rule-list b,.info-body .rule-text b { color:var(--ink); font-size:13px; }
.info-body .rule-chip { background:#243958; color:#fff3d6; }
#regole .rule-credits { margin:16px 0 0; color:var(--text-2); border:0; padding:0; font-size:10px; }
#regole .rule-credits b { color:var(--text); }
.observatory-scene { height:330px; margin:-10px -16px -12px; position:relative; z-index:-1; background:url('/art/observatory-space.webp?v=3.0') center 65% / cover no-repeat; mask-image:linear-gradient(transparent,black 15%,black 92%,transparent); }
.brand-footer { font-size:10px; padding:18px 0 0; margin-top:auto; color:#cdbb97; }
.brand-footer a { color:#cdbb97; }
.bottom-nav, [data-theme="light"] .bottom-nav { width:min(414px,calc(100% - 16px)); bottom:0; padding:8px 6px calc(10px + var(--safe-bottom)); border:1px solid #bfaa77; border-bottom:0; border-radius:22px 22px 0 0; background:linear-gradient(#233552fa,#142038fa); backdrop-filter:blur(12px); box-shadow:0 -2px 16px #0006; }
.nav-item { min-height:52px; padding:2px 0; gap:5px; color:#fff6e1; }
.nav-item .ui-icon { width:25px; height:25px; }
.nav-item small { font-size:10px; font-weight:500; }
.nav-item.active,[data-theme="light"] .nav-item.active { color:#ffda4b; }
.nav-item.active .ui-icon { filter:drop-shadow(0 0 6px #ffb6008c); }
.nav-item.active::before { top:-8px; height:2px; width:27px; box-shadow:0 0 10px #ffa900; }
.empty { color:inherit; font-size:13px; padding:15px; text-align:center; }
.viewer { background:#111b30f5; padding-top:var(--safe-top); }
.viewer-card { max-width:min(82vw,400px); }
.viewer-close,.viewer-arrow { min-width:44px; min-height:44px; }
.viewer-close { top:calc(16px + var(--safe-top)); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
:focus-visible { outline:3px solid #d99a0b; outline-offset:2px; }
@media(min-width:600px) { .app { padding-top:26px; } .machine-hero { height:225px; } }
@media(max-width:350px) { .app { padding-left:11px; padding-right:11px; } .hello { font-size:16px; } .collection-thumb { width:57px; } .collection-row { gap:7px; padding:9px 8px; } .collection-copy strong { font-size:12px; } .ring-center strong { font-size:32px; } .nav-item small { font-size:9px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }

/* Refinements verified on the 390px preview. */
.logo-by.tg-link { border-bottom:0; padding-bottom:0; }
.machine-hero { height:180px; }
.campaign-ribbons { grid-template-columns:1fr; }
body { position:relative; isolation:isolate; }
.machine-hero { background-position:center 55%; }

.home-greeting { margin:24px 0 22px; text-align:center; color:var(--text); font-size:21px; font-weight:650; }
.home-greeting strong { color:var(--gold); font-weight:850; }

.support-menu { margin:0 0 12px; }
.support-menu a.status-button { min-height:44px; padding:8px 0; background:none; color:var(--ink); border:0; border-radius:0; font-size:13px; box-shadow:none; margin:0; }
.support-menu .status-entry + .status-entry { border-top:1px solid #b8996766; }
.support-menu a.status-button:hover { color:#72500c; }
.support-menu .info-body { padding-top:0; }
#regole > .rule-credits { text-align:center; margin-top:4px; }
.support-menu summary > [data-icon] { display:flex; flex:none; }
.support-menu summary > [data-icon="arrow"] { width:17px; }
.support-menu summary > [data-icon="arrow"] .ui-icon { width:17px; height:17px; }
@media(max-width:350px) { .machine-hero,.observatory-scene { margin-left:-11px; margin-right:-11px; } }

/* Classifiche: conversione di sola visualizzazione, 1 punto = 10 monete. */
.top-row .leaderboard-coins { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.top-row .leaderboard-coins::after { content:none; }
.leaderboard-coins .ui-icon { width:19px; height:19px; color:#a16b05; }

/* Ritocchi richiesti: saluto sopra la macchina, posizione personale leggibile. */
.group-rank { color:#403726; font-size:13px; line-height:1.5; }
.group-rank b { color:#17243d; font-size:16px; font-weight:850; }
.leaderboard-heading { margin-bottom:20px; }

/* Materiali statici: grana crema, bordi smussati e oro con riflesso. */
.cream-card,.stat,.group,#setPanel .set-header { background-blend-mode:multiply,normal,normal; }
.cream-card,.stat,.group { border-color:#f7e1b7 #cfad72 #a97b3b #f7dfb2; }
.ring svg { overflow:visible; }
.ring-seat { fill:none; stroke:#776b55; stroke-width:21; filter:none; }
.ring-channel { filter:url(#ringChannelInset); }
.ring-track { stroke:url(#ringTrackGrad); stroke-width:19; filter:none; }
.ring-value-edge { fill:none; stroke:#8b682f; stroke-width:21; stroke-linecap:butt; filter:none; transition:stroke-dashoffset 900ms cubic-bezier(.2,0,.2,1); }
.ring-value-edge { display:block; stroke:#ac6500; stroke-width:21; filter:drop-shadow(-2px 2px 1.4px #0009); }
.ring-value { stroke-width:18; filter:none; }
.ring-center { text-shadow:0 1px 0 #fff7de; }
.ring-pieces b { text-shadow:0 1px 0 #fff7de; }
.ring-sets { border-top-color:#c39b5759; box-shadow:0 -1px 0 #fff5d7b3; }
.collection-progress { height:12px; border:1px solid #92611e; background:linear-gradient(#253039,#535b5b 65%,#72766e); box-shadow:inset 0 2px 3px #0008,0 1px 0 #fff5d6; }
.collection-progress i { background:linear-gradient(#fff087 0%,#ffd827 22%,#ffb900 55%,#f28b00 88%,#be6500); box-shadow:inset 0 1px 1px #fffacc,inset 0 -1px 1px #a95c00; }
.collection-row + .collection-row,.recent + .recent,.info-item + .info-item { border-top-color:#fff7de; box-shadow:0 -1px 0 #c39d6b70; }
.complete-check { background:linear-gradient(#81d84d,#39982a 55%,#226719); box-shadow:inset 0 1px 1px #d6ffab,0 2px 3px #64481455; }
.manual-badges,.campaign-ribbons .campaign-award { box-shadow:inset 0 1px 0 #f4d49c26,0 3px 8px #050c1f70; }
.bottom-nav,[data-theme="light"] .bottom-nav { box-shadow:inset 0 1px 1px #ffe1a73b,0 -3px 14px #03091980; }

/* Home e separazione dello storico: richieste del 12 novembre. */
#recenti > .section-title { margin-top:32px; }
body[data-view="home"] .brand-footer { display:none; }

/* Fondale Home sotto il logo e riepilogo subito dopo il saluto. */
#home { position:relative; isolation:isolate; }
#home::before { content:''; position:absolute; z-index:-1; pointer-events:none; top:-8px; left:-16px; right:-16px; height:280px; background:linear-gradient(#18243d1a,transparent 65%,#18243d),url('/art/planet-space.webp?v=3.0') center calc(100% - 70px) / 100% auto no-repeat; mask-image:linear-gradient(transparent,black 6%,black 82%,transparent); }
#home > .stats { margin:0 0 40px; }
#home > .home-greeting { background:radial-gradient(ellipse at center,#18243dc9,transparent 75%); text-shadow:0 2px 3px #07101f,0 0 8px #07101f; }
@media(max-width:350px) { #home::before { left:-11px; right:-11px; } }

.other-bots.support-menu { margin:12px 0; }
.other-bots .status-button > span:first-child { overflow-wrap:anywhere; min-width:0; }

/* Luci sui venti punti originali della cornice, giro orario di tre secondi. */
.logo-art { position:relative; width:100%; max-width:370px; margin:0 auto; aspect-ratio:1080/363; }
.logo-art .logo-img { display:block; width:100%; height:auto; max-width:none; aspect-ratio:1080/363; object-fit:contain; }
.logo-lights { position:absolute; inset:0; width:100%; height:100%; overflow:hidden; pointer-events:none; mask-image:url('/art/logo-space.webp?v=3.0'); mask-mode:alpha; mask-size:100% 100%; mask-repeat:no-repeat; mask-position:center; }
.logo-lights .chase-light { fill:#fffacb; opacity:0; filter:drop-shadow(0 0 5px #fff2a1) drop-shadow(0 0 10px #ffb300); animation:logo-chase var(--logo-cycle,3s) linear infinite !important; animation-delay:calc(var(--chase-phase) * var(--logo-cycle,3s)) !important; }
.chase-0 { --chase-phase:-1.00; }
.chase-1 { --chase-phase:-0.95; }
.chase-2 { --chase-phase:-0.90; }
.chase-3 { --chase-phase:-0.85; }
.chase-4 { --chase-phase:-0.80; }
.chase-5 { --chase-phase:-0.75; }
.chase-6 { --chase-phase:-0.70; }
.chase-7 { --chase-phase:-0.65; }
.chase-8 { --chase-phase:-0.60; }
.chase-9 { --chase-phase:-0.55; }
.chase-10 { --chase-phase:-0.50; }
.chase-11 { --chase-phase:-0.45; }
.chase-12 { --chase-phase:-0.40; }
.chase-13 { --chase-phase:-0.35; }
.chase-14 { --chase-phase:-0.30; }
.chase-15 { --chase-phase:-0.25; }
.chase-16 { --chase-phase:-0.20; }
.chase-17 { --chase-phase:-0.15; }
.chase-18 { --chase-phase:-0.10; }
.chase-19 { --chase-phase:-0.05; }
@keyframes logo-chase { 0%,8% { opacity:1; } 20%,100% { opacity:0; } }
/* Luci richieste anche con movimento ridotto: giro più lento; le altre animazioni restano disattivate. */
@media(prefers-reduced-motion:reduce) { .logo-lights { --logo-cycle:6s; } }
/* Fine animazione logo. */

/* Nuova macchina: composizione completa, senza tagliare la pinza. */
.machine-hero { height:auto; aspect-ratio:1.9; background-position:center 55%; mask-image:linear-gradient(transparent,black 3%,black 96%,transparent); }

/* Ombra esterna del cerchio sulla superficie crema. */
.ring svg { filter:none; }

/* Due riquadri distinti per le righe dei riconoscimenti. */
.manual-badges,html[data-theme="light"] .manual-badges { display:flex; flex-direction:column; gap:10px; padding:0; border:0; background:none; box-shadow:none; }
.manual-badge-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:var(--metal-edge); border-radius:18px; background:#142039e8; padding:8px 5px; box-shadow:inset 0 1px 0 #f4d49c26,0 3px 8px #050c1f70; }
.manual-badge-row > .manual-medal { grid-row:1; }
