@import url("https://fonts.googleapis.com/css2?family=Bungee&family=DM+Serif+Display&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg-start: #ff9a7a;
  --bg-end: #ffa3c4;
  --ink: #3a0b3b;
  --muted: rgba(58, 11, 59, 0.65);
  --accent: #ff4d9d;
  --accent-strong: #e53682;
  --card: rgba(255, 248, 251, 0.94);
  --line: rgba(58, 11, 59, 0.12);
  --shadow: 0 18px 40px rgba(58, 11, 59, 0.2);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% 15%, #ffc2df 0%, transparent 55%),
    radial-gradient(circle at 80% 10%, #ffe3a6 0%, transparent 42%),
    radial-gradient(circle at 20% 80%, #ffb093 0%, transparent 55%),
    linear-gradient(135deg, var(--bg-start), var(--bg-end));
  background-repeat: no-repeat;
  background-attachment: fixed;
}

html,
body {
  height: 100%;
}

body {
  overflow-x: hidden;
}

.page-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 28px 20px 0;
}

.locale-shell {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
  flex: 1;
}

.locale-switch {
  position: static;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-top: auto;
  padding-top: 24px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.locale-links {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.locale-switch a {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.locale-switch a.is-active {
  background: rgba(255, 255, 255, 0.9);
}

.locale-footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: "Bungee", cursive;
  letter-spacing: 1px;
}

h2 {
  font-family: "DM Serif Display", "Bungee", cursive;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.center {
  text-align: center;
}

.title {
  font-size: clamp(2.3rem, 5vw, 3.1rem);
  line-height: 1;
}

.subtitle {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.subtitle-small {
  font-size: 0.9rem;
}

.subtitle-tiny {
  font-size: 0.85rem;
}

.result-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.result-subtitle {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

.hero-label {
  font-weight: 600;
  letter-spacing: 2px;
}

.answers-stack {
  margin-top: 24px;
}

.answers-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.section-title {
  font-size: 1.2rem;
}

.home-info {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 24px rgba(58, 11, 59, 0.12);
}

.home-info .section-title {
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.home-info strong {
  color: var(--accent);
  font-weight: 700;
}

.home-info .stack {
  gap: 8px;
}

.error-text {
  color: var(--accent-strong);
}

.progress-meta {
  text-align: right;
}

.invite-code-badge {
  padding: 12px;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  background: rgba(255, 255, 255, 0.6);
}

.primary-button {
  background: var(--accent);
  border: 2px solid rgba(43, 10, 47, 0.08);
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 14px 28px rgba(255, 77, 157, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  background: var(--accent-strong);
  box-shadow: 0 16px 32px rgba(255, 77, 157, 0.32);
}

.primary-button.is-pressed {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 8px 18px rgba(255, 77, 157, 0.2);
}

.answer-yes {
  background: #ff5fae;
}

.answer-yes:hover {
  background: #e84c9b;
}

.answer-no {
  background: #ff6fcb;
}

.answer-no:hover {
  background: #e15bb2;
}

.answer-maybe {
  background: #ff8ed8;
}

.answer-maybe:hover {
  background: #e576c0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.65);
  color: #6a3a6d;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.status-pill.is-waiting .status-dot {
  background: #f08bb8;
}

.status-pill.is-online .status-dot {
  background: #ff5fae;
}

.status-pill.is-ready .status-dot {
  background: #ff3b9b;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.ghost-button {
  background: transparent;
  border: 2px solid var(--line);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 500;
}

.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
}

.progress {
  height: 4px;
  width: 100%;
  background: rgba(43, 10, 47, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.35s ease;
}

.qr-block {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

.qr-image {
  width: 180px;
  height: 180px;
  border-radius: 18px;
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 24px rgba(58, 11, 59, 0.12);
}

.copy-block {
  gap: 10px;
}

.fade-in {
  animation: fadeIn 0.6s ease;
}

.slide-up {
  animation: slideUp 0.45s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@media (min-width: 768px) {
  .page-shell {
    padding: 48px 32px 0;
    max-width: 680px;
    margin: 0 auto;
  }
}
