
:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #111116;
  --panel-soft: #191922;
  --text: #f7f4ec;
  --text2: rgba(255, 255, 255, 0.48);
  --text3: rgba(255, 255, 255, 0.24);
  --accent: #FDB81E;
  --border: rgba(255, 255, 255, 0.12);
  --font: 'SF Mono', monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font)
}

main {
  width: min(100%, 440px);
  text-align: center;
}

.logo {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 22px;
  background: var(--accent);
  color: #15120a;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

h1 {
  color: #fff;
  font-weight: 500;
  margin: 0;
  padding: 0 20px;
}

h1.home{
  left: 50%;
  top: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: clamp(32px, 10vw, 64px);
  white-space: nowrap;
}

.text, .cursor {
  display: inline-block;
  vertical-align: bottom;
}
.text {
  overflow: hidden;
  width: 0;
  animation:
    type 2.8s steps(7, end) 0.8s forwards,
    colorize 0.5s ease 3.6s forwards;
}
.cursor {
  display: inline-block;
  vertical-align: bottom;
  width: 1ch;
  overflow: hidden;
  animation:
    blink 1s step-end infinite,
    fadeOut 0.4s ease 3.6s forwards;
}

.header{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.header span{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text2);
  fill: var(--text2);
}

svg{
  fill: var(--bg);
  stroke: var(--text);
}

svg:hover{
  stroke: var(--accent);
}

.code {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.body {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.actions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.play{
  color: var(--accent);
  background-color: var(--bg);
}

a,
button {
  display: flex;
  gap: 16px;
  width: 100%;
  min-height: 52px;
  border: 0;
  /* border-radius: 16px; */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: inherit;
  font: inherit;
  font-size: 20px;
  font-weight: 400;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.store-row a svg{
  fill: var(--text);
  stroke: none;
}

.store-row:hover a{
  color: var(--accent);
}

.store-row:hover a svg{
  fill: var(--accent) !important;
}

.store-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Quando un solo bottone è visibile, occupa tutta la larghezza */
.store-row.single {
  grid-template-columns: 1fr;
}

.hidden {
  display: none !important;
}

.hint {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 420px) {
  main {
    padding: 24px 18px;
  }

  .store-row {
    grid-template-columns: 1fr;
  }
}

/* Animation */

@keyframes type {
  to { width: 7ch; }
}
@keyframes blink {
  50% { opacity: 0; }
}
@keyframes colorize {
  to { color: var(--accent); }
}
@keyframes fadeOut {
  to {
    opacity: 0;
    width: 0;
  }
}