/* ==========================================================================
   OPENING PAGE STYLES
   ========================================================================== */
.landing {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 4vh, 26px);
  margin-block: auto;
  min-width: 0;
}

.landing .header {
  text-align: center;
}

/* ---- Setup card: where players enter their names ---- */
.setup-card {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.player-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-field__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.player-field__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #05070d;
}

.player-field__mark--x { background: linear-gradient(120deg, var(--x-1), var(--x-2)); }
.player-field__mark--o { background: linear-gradient(120deg, var(--o-1), var(--o-2)); }

.player-field input {
  width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  color: var(--text-hi);
  font-family: 'Inter', sans-serif;
  font-size: max(0.95rem, 16px);
  min-height: 46px;
  transition: border-color 0.2s var(--ease-smooth), background 0.2s var(--ease-smooth);
}

.player-field input::placeholder {
  color: var(--text-low);
}

.player-field input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.07);
}

.player-field--x input:focus { border-color: rgba(99, 179, 237, 0.6); }
.player-field--o input:focus { border-color: rgba(244, 63, 94, 0.55); }

.vs-divider {
  align-self: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-low);
}

/* ---- How to play ---- */
.how-to {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 18px 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.how-to__title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  margin-bottom: 10px;
}

.how-to__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.how-to__list li {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.4;
}

.how-to__list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--x-1), var(--o-1));
}

.landing .btn--primary {
  width: 100%;
  padding: 15px 18px;
  font-size: 0.95rem;
}

@media (orientation: landscape) and (max-height: 600px) {
  .landing {
    gap: 14px;
  }

  .setup-card {
    padding-block: 18px;
    gap: 12px;
  }
}

@media (max-width: 360px) {
  .setup-card {
    padding: 20px 16px;
  }

  .how-to {
    padding: 16px;
  }
}