:root {
  --bg: #0f1724;
  --card: #111827;
  --muted: #9ca3af;
  --accent: #7c3aed;
  --glass: rgba(255,255,255,0.03);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

body {
  background: linear-gradient(180deg, var(--bg), #061326);
  color: #e6eef8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.centered-page {
  width: 100%;
  max-width: 920px;
  padding: 36px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  box-shadow: 0 8px 30px rgba(2,6,23,0.6);
  text-align: center;
}

.os-icon {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  display: block;
  margin: 0 auto 18px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(2,6,23,0.6);
}

h1 {
  font-size: clamp(20px, 4vw, 36px);
  margin: 6px 0;
}

.subtitle {
  color: var(--muted);
  margin: 6px 0 18px;
}

.notice {
  background: var(--glass);
  border-radius: 12px;
  padding: 22px;
  margin: 18px auto;
  max-width: 720px;
  border: 1px solid rgba(255,255,255,0.03);
}

.notice p {
  margin: 0;
  color: #dfe9f8;
}

.notice .small {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.9rem;
}

/* FOOTER */
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.02);
}

.page-footer span {
  color: var(--muted);
}

/* Contenitore dei pulsanti a destra */
.footer-buttons {
  display: flex;
  align-items: center;
  gap: 12px; /* distanza tra i pulsanti */
}

.page-footer img {
  height: 40px;
  width: auto;
  opacity: 0.95;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.page-footer img:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* GRID version */
.app-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: 96px;
}

.app-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: linear-gradient(180deg, #0b1220, #0f1724);
  display: block;
  object-fit: contain; /* mostra immagine intera */
  padding: 8px; /* distanzia dai bordi */
  box-shadow: 0 6px 18px rgba(2,6,23,0.6);
}

.app-label {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #dfe9f8;
}

/* Responsive */
@media (max-width:520px) {
  .centered-page { padding: 20px; }
  .app-card { width: 84px; }
  .os-icon { width: 80px; height: 80px; }
  .footer-buttons { gap: 10px; } /* leggermente più stretto su mobile */
}
