:root {
  --coral: #ff6b6b;
  --yellow: #ffd93d;
  --green: #6bcb77;
  --blue: #4d96ff;
  --ink: #3a3230;
  --paper: #fffaf0;
  --card: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  background: linear-gradient(180deg, #bfe9ff 0%, #eaf7ff 40%, var(--paper) 100%);
  color: var(--ink);
  min-height: 100vh;
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.home-link {
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--coral);
}

.back-link {
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 18px 60px;
}

.hero {
  text-align: center;
  padding: 24px 0 12px;
}

.hero-emoji {
  font-size: 2.4rem;
  margin-bottom: 6px;
}

.hero h1 {
  font-size: 1.5rem;
  margin: 6px 0 4px;
}

.subtitle {
  color: #6b6259;
  margin: 0;
}

.card-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border-radius: 20px;
  padding: 18px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease;
}

.card:active {
  transform: scale(0.97);
}

.card-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.card-desc {
  font-size: 0.88rem;
  color: #6b6259;
  line-height: 1.4;
}

footer {
  text-align: center;
  color: #9a9088;
  font-size: 0.85rem;
  padding: 30px 0 10px;
}

.page-title {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin: 10px 0 4px;
}

.instructions {
  text-align: center;
  color: #6b6259;
  font-size: 0.92rem;
  margin: 0 0 18px;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), #ff9376);
  box-shadow: 0 6px 14px rgba(255, 107, 107, 0.35);
}

.btn:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.stat-line {
  text-align: center;
  font-weight: 700;
  margin: 10px 0;
}

.message-box {
  text-align: center;
  min-height: 1.4em;
  font-weight: 700;
  color: var(--coral);
  margin: 6px 0 14px;
}

.room-dropzone {
  opacity: 0;
  transition: opacity 0.2s ease;
}
