/* Match-3 Unity setup page */
.match3-unity-page {
  min-height: 100dvh;
}

.match3-unity-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

.match3-unity-wrap h1 {
  font-size: clamp(1.6rem, 5vw, 2rem);
  margin: 0 0 0.75rem;
  color: var(--text-primary, #1a1a2e);
}

html[data-theme="dark"] .match3-unity-wrap h1 {
  color: var(--text-primary, #f0f0f5);
}

.match3-unity-lead {
  line-height: 1.55;
  margin: 0 0 1.5rem;
  opacity: 0.92;
}

.match3-unity-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html:not([data-theme="dark"]) .match3-unity-panel {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(90, 40, 120, 0.12);
}

.match3-unity-panel h2 {
  font-size: 1.1rem;
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.match3-unity-steps {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.6;
}

.match3-unity-steps li + li {
  margin-top: 0.45rem;
}

.match3-unity-compare {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.55;
}

.match3-unity-compare li + li {
  margin-top: 0.5rem;
}

.match3-unity-links,
.match3-unity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.85rem 0 0;
}

.match3-unity-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffd23f, #f5b800);
  color: #3a1457;
  text-decoration: none;
  box-shadow: 0 4px 0 #cf9b00;
  transition: transform 0.08s;
}

.match3-unity-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #cf9b00;
}

.match3-unity-btn.ghost {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(128, 128, 160, 0.35);
  box-shadow: none;
}

.match3-unity-btn.ghost:active {
  transform: none;
}

.match3-unity-wrap code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .match3-unity-wrap code {
  background: rgba(255, 255, 255, 0.1);
}
