body {
  min-height: 100vh;
}

[hidden] {
  display: none !important;
}

#bunting {
  pointer-events: none;
}

.home {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

.home-head {
  text-align: center;
  margin: 24px 0 32px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 9vw, 96px);
  line-height: 0.9;
  color: var(--accent);
  text-shadow: 4px 4px 0 var(--accent-2);
  margin: 0 0 18px;
}

.tagline {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-muted);
  max-width: 34em;
  margin: 0 auto;
  line-height: 1.4;
}

.options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.option {
  background: var(--bg-2);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.option h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.15;
  margin: 0 0 14px;
}

/* En pantalla grande destaca "crear aquí"; en el móvil, "unirme". */
.option[data-kind='screen'] {
  order: -1;
  border: 2px solid var(--accent);
}
.is-touch .option[data-kind='screen'] {
  order: 1;
  border: 0;
}
.is-touch .option[data-kind='join'] {
  border: 2px solid var(--accent);
}

label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 6px;
  color: var(--text-muted);
}

input {
  width: 100%;
  box-sizing: border-box;
  font: 600 18px var(--font-body);
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--bg-3);
  background: var(--bg);
  color: var(--text);
  margin-bottom: 14px;
}
#codeInput {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn {
  display: block;
  width: 100%;
  font: 800 18px var(--font-body);
  padding: 14px;
  border-radius: 14px;
  border: 0;
  background: var(--bg-3);
  color: var(--text);
  cursor: pointer;
}
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn.mint {
  background: var(--good);
  color: var(--good-ink);
}
.btn:disabled {
  opacity: 0.5;
}
.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.hint-text {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 12px 0 0;
}
.option[data-kind='screen'] .hint-text {
  margin: 0 0 14px;
}

.err {
  color: var(--danger);
  font-weight: 600;
  margin: 8px 0 0;
  min-height: 1em;
}

@media (max-width: 820px) {
  .options {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}
