* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 72px 16px 32px;
  color: #f2f1f8; font: 16px/1.45 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; background-image: radial-gradient(60% 55% at 15% 10%, rgb(118 87 246 / .4), transparent 70%), radial-gradient(55% 55% at 90% 90%, rgb(229 83 155 / .2), transparent 70%);
  background: #09090f;
}
.corner { position: fixed; top: 18px; left: 22px; display: flex; align-items: center; gap: 9px; color: #fff; font: 650 16px -apple-system, 'Segoe UI Variable Display', 'Segoe UI', sans-serif; text-decoration: none; }
.card { width: 100%; max-width: 440px; padding: 32px; background: rgb(21 21 33 / .78); backdrop-filter: blur(30px) saturate(170%); border: .5px solid rgb(255 255 255 / .14); border-radius: 22px; corner-shape: squircle; box-shadow: 0 30px 80px rgb(0 0 0 / .45); animation: card-in .55s cubic-bezier(.2, .9, .25, 1); }
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }
h1 { margin: 0 0 6px; font: 700 28px -apple-system, 'Segoe UI Variable Display', 'Segoe UI', sans-serif; letter-spacing: -.024em; text-align: center; color: #fff; }
.sub { margin: 0 0 22px; text-align: center; color: #a3a1b8; }
label { display: block; margin: 14px 0 6px; font-size: 12.5px; font-weight: 700; color: #a3a1b8; }
input { width: 100%; height: 44px; padding: 0 12px; background: #0e0e17; color: #fff; border: .5px solid rgb(255 255 255 / .16); border-radius: 9px; corner-shape: round; font: inherit; }
input:focus { outline: 0; box-shadow: 0 0 0 1px #7657f6, 0 0 0 4px rgb(118 87 246 / .3); border-color: transparent; }
.hint { margin: 5px 0 0; font-size: 13px; color: #8f8da4; }
button {
  width: 100%; height: 46px; margin-top: 22px; background: #7657f6; color: #fff; border: 0; transition: transform .16s, filter .16s; border-radius: 10px; corner-shape: round;
  font: inherit; font-weight: 700; cursor: pointer;
}
button:hover { filter: brightness(1.08); transform: translateY(-1px); }
button:active { transform: scale(.98); }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.alt { margin: 16px 0 0; font-size: 14.5px; color: #8f8da4; text-align: center; }
.alt a, .link { color: #a78bfa; }
.err { margin: 14px 0 0; padding: 9px 12px; background: rgba(239, 79, 90, .15); color: #ff9aa2; border-radius: 9px; font-size: 14.5px; }
.err[hidden] { display: none; }
.inv-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 24px; color: #fff; font-size: 28px; font-weight: 800; }
.inv-small { margin: 0 0 4px; text-align: center; color: #a3a1b8; }
.inv-counts { display: flex; justify-content: center; gap: 18px; margin: 10px 0 8px; font-size: 14.5px; color: #a3a1b8; }
.inv-counts span::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: #8f8da4; }
.inv-counts .on::before { background: #2fbf71; }
hr { margin: 22px 0 6px; border: 0; border-top: 1px solid #2a2a2c; }
.inv-splash { position: fixed; inset: 0; z-index: -1; background-size: cover; background-position: center; filter: brightness(.35); }
.inv-banner { height: 120px; margin: -32px -32px 18px; background-size: cover; background-position: center; border-radius: 17px 17px 0 0; }
.inv-icon img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; }
.inv-tag { margin-left: 8px; padding: 1px 6px; background: #fff; color: #000; border-radius: 5px; font-size: 12px; font-weight: 800; vertical-align: 3px; }
.inv-desc { margin: 6px 0 0; text-align: center; color: #b4b4b8; font-size: 14.5px; overflow-wrap: anywhere; }

/* Finestra desktop */
.native-bar { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; justify-content: flex-end; height: 32px; }
.native-bar button { width: 44px; background: none; border: 0; color: #a3a1b8; font-size: 13px; cursor: default; transition: background .12s, color .12s; }
.native-bar button:hover { background: rgb(255 255 255 / .1); color: #fff; }
.native-bar button.x:hover { background: #ed4245; }
html.native { user-select: none; cursor: default; }
html.native input { user-select: text; }
html.native .corner { top: 7px; left: 14px; font-size: 13px; }
html.native .corner img { width: 18px; height: 18px; }

.check { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0 2px; font-size: 13.5px; font-weight: 400; color: #a3a1b8; text-transform: none; letter-spacing: 0; }
.check input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: #7657f6; }
main.card h2 { margin: 18px 0 4px; font-size: 16px; color: #f2f3f5; }
main.card p { color: #c4c6cc; }
