@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  --bg: #f3efe4;
  --bg-deep: #d6c3a3;
  --ink: #2b241b;
  --accent: #ff6b35;
  --accent-deep: #d64514;
  --card: #fffaf2;
  --shadow: rgba(35, 24, 12, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff6e8 0%, var(--bg) 50%, var(--bg-deep) 120%);
}

.app {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  display: grid;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 12px 24px var(--shadow);
}

.brand-title {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.brand-sub {
  opacity: 0.7;
}

.screen {
  display: none;
  gap: 16px;
}

.screen.active {
  display: grid;
  animation: fadeIn 450ms ease;
}

h1 {
  font-family: 'Fraunces', serif;
  margin: 0;
  font-size: 2rem;
}

.lede {
  margin: 0;
  font-size: 1.05rem;
}

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 30px var(--shadow);
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 10px;
  font-weight: 500;
}

.field small {
  font-weight: 400;
  opacity: 0.7;
}

.stepper {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 8px;
}

.stepper button {
  border: none;
  border-radius: 12px;
  background: #efe4d1;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
}

.stepper input {
  border: 2px solid #e0d2bc;
  border-radius: 12px;
  padding: 10px;
  font-size: 1.1rem;
  text-align: center;
  background: #fff;
}

.word-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.word-row input {
  border: 2px solid #e0d2bc;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1rem;
}

.word-row button {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  background: #efe4d1;
  cursor: pointer;
  font-weight: 600;
}

.chip {
  background: #2b241b;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.primary,
.ghost {
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 22px rgba(255, 107, 53, 0.35);
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(255, 107, 53, 0.45);
}

.ghost {
  background: transparent;
  border: 2px solid #2b241b;
  color: #2b241b;
}

.ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.reveal-card {
  text-align: center;
  gap: 20px;
}

.player-badge {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.6;
}

.secret {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  padding: 20px 12px;
  border-radius: 16px;
  background: #fff1dd;
  min-height: 88px;
  display: grid;
  place-items: center;
}

.status {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 600px) {
  .brand {
    flex-direction: column;
    align-items: flex-start;
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
