:root {
  --pink: #ff2f7d;
  --pink-2: #ff6aa5;
  --pink-soft: #ffe4ef;
  --blue: #1976e8;
  --blue-soft: #eaf4ff;
  --yellow-soft: #fff6d7;
  --text: #263040;
  --muted: #667085;
  --card: rgba(255, 255, 255, 0.86);
  --line: rgba(255, 143, 186, 0.30);
  --shadow: 0 24px 70px rgba(255, 47, 125, 0.16);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 3%, rgba(255, 209, 227, .72) 0 120px, transparent 260px),
    radial-gradient(circle at 4% 28%, rgba(255, 235, 244, .95) 0 120px, transparent 260px),
    linear-gradient(115deg, #fff 0%, #fff7fb 46%, #ffe3ef 100%);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }

.landing-shell {
  position: relative;
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 26px 22px 30px;
  overflow: hidden;
}

.bg-orb,
.music-note { position: absolute; pointer-events: none; }
.bg-orb { z-index: -2; border-radius: 999px; filter: blur(8px); opacity: .62; }
.orb-one { width: 220px; height: 220px; top: -76px; right: -88px; background: #ffd5e7; }
.orb-two { width: 180px; height: 180px; left: -92px; bottom: 180px; background: #fff; }
.music-note { z-index: -1; color: #e77aca; opacity: .44; font-weight: 950; }
.note-one { top: 132px; right: 78px; font-size: 20px; transform: rotate(-10deg); }
.note-two { top: 214px; right: 34px; font-size: 24px; }

.landing-hero {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 10px;
  align-items: end;
  min-height: 276px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -.025em;
}
.landing-hero h1 {
  margin: 0;
  max-width: 320px;
  font-size: clamp(38px, 10vw, 54px);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero-subtitle {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 850;
}
.hero-mascot {
  width: 180px;
  justify-self: end;
  filter: drop-shadow(0 22px 30px rgba(255, 47, 125, .20));
}

.welcome-card,
.tip-card,
.choice-card,
.private-note {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.welcome-card {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-top: -4px;
  padding: 34px 22px 32px;
  border-radius: var(--radius-xl);
}
.small-mascot-wrap {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, #ffe8f2);
  box-shadow: inset 0 0 0 1px rgba(255, 143, 186, .22);
}
.small-mascot-wrap img { width: 72px; height: 72px; object-fit: contain; }
.welcome-card p,
.welcome-card span { margin: 0; color: var(--muted); font-weight: 850; }
.welcome-card p { font-size: 20px; }
.welcome-card h2 {
  margin: 10px 0 12px;
  color: var(--pink);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -.04em;
}
.welcome-card span { font-size: 17px; line-height: 1.48; }

.name-form { margin-top: 28px; }
.name-form label,
.room-action-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #2b3040;
  font-size: 17px;
  font-weight: 950;
}
.name-form label span { color: var(--pink); }
.input-wrap,
.room-input-wrap {
  display: grid;
  align-items: center;
  overflow: hidden;
  border: 2px solid var(--pink);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .88);
}
.input-wrap { grid-template-columns: 1fr 54px; }
.input-wrap input,
.room-input-wrap input {
  width: 100%;
  min-height: 60px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  font-weight: 850;
}
.input-wrap input { padding: 0 18px; }
.input-wrap span {
  display: grid;
  place-items: center;
  color: #8a909b;
  font-size: 22px;
}
.primary-button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 58px;
  margin-top: 14px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pink-2), var(--pink));
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 18px 34px rgba(255, 47, 125, .24);
}

.tip-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr 92px;
  gap: 12px;
  align-items: center;
  min-height: 132px;
  margin-top: 28px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,.90), rgba(255, 235, 244, .94));
}
.tip-icon { font-size: 28px; }
.tip-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--pink);
  font-size: 18px;
  font-weight: 950;
}
.tip-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  font-weight: 780;
}
.tip-card img { width: 92px; justify-self: end; align-self: end; }
.landing-footer {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 143, 186, .24);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  font-weight: 850;
}

.entry-topbar { min-height: 44px; }
.back-link {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--pink);
  font-size: 36px;
  font-weight: 800;
}
.entry-greeting {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-top: 18px;
}
.avatar-ring {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 45%, #fff 0, #fff7fb 58%, rgba(255, 228, 239, .6) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 143, 186, .24), var(--shadow);
}
.avatar-ring img { width: 112px; height: 112px; object-fit: contain; }
.entry-greeting h1 {
  margin: 18px 0 4px;
  font-size: 33px;
  line-height: 1.08;
  letter-spacing: -.04em;
}
.entry-greeting h2 {
  margin: 0;
  color: var(--pink);
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -.055em;
}
.entry-greeting p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.48;
  font-weight: 850;
}

.action-cards {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}
.choice-card {
  padding: 18px;
  border-radius: var(--radius-xl);
}
.create-card {
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,236,245,.94));
}
.join-card {
  border-color: rgba(93, 176, 255, .28);
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(235,247,255,.94));
}
.choice-main {
  display: grid;
  grid-template-columns: 82px 1fr 28px;
  gap: 14px;
  align-items: center;
}
.choice-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: #ffd7e8;
  font-size: 38px;
}
.join-card .choice-icon { background: var(--blue-soft); }
.choice-copy h3 {
  margin: 0 0 5px;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.choice-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 850;
}
.choice-arrow {
  color: var(--pink);
  font-size: 42px;
  font-weight: 900;
}
.choice-arrow.blue { color: var(--blue); }
.room-action-form { margin-top: 16px; }
.room-input-wrap {
  grid-template-columns: 1fr auto;
  border-color: rgba(255, 143, 186, .56);
}
.room-input-wrap.blue { border-color: rgba(25, 118, 232, .36); }
.room-input-wrap input { padding: 0 14px; }
.room-input-wrap button {
  align-self: stretch;
  min-width: 116px;
  border: 0;
  border-left: 1px solid rgba(255, 143, 186, .28);
  background: linear-gradient(135deg, var(--pink-2), var(--pink));
  color: #fff;
  font-weight: 950;
}
.room-input-wrap.blue button { background: linear-gradient(135deg, #5aa9ff, var(--blue)); }
.choice-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
}
.choice-checks span {
  color: #4c5361;
  font-size: 13px;
  font-weight: 900;
}
.choice-checks.blue span { color: #315b8f; }
.private-note {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  padding: 16px;
  border-color: rgba(236, 184, 43, .36);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff, var(--yellow-soft));
}
.private-note > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #ffeaa8;
  font-size: 25px;
}
.private-note strong { display: block; font-size: 18px; font-weight: 950; }
.private-note p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; font-weight: 820; }

@media (max-width: 430px) {
  .landing-shell { padding: 24px 22px 28px; }
  .landing-hero { grid-template-columns: 1fr 152px; min-height: 260px; }
  .hero-mascot { width: 158px; }
  .welcome-card { padding-top: 28px; }
  .choice-main { grid-template-columns: 70px 1fr 24px; gap: 12px; }
  .choice-icon { width: 64px; height: 64px; border-radius: 20px; font-size: 32px; }
  .choice-copy h3 { font-size: 22px; }
  .room-input-wrap { grid-template-columns: 1fr; }
  .room-input-wrap button { min-height: 50px; border-left: 0; border-top: 1px solid rgba(255, 143, 186, .28); }
  .choice-checks { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  .landing-shell { width: min(100%, 1120px); padding: 44px 54px 38px; }
  .landing-hero { grid-template-columns: 1fr 360px; min-height: 330px; }
  .hero-mascot { width: 360px; }
  .welcome-card, .name-form, .tip-card { width: min(100%, 560px); }
  .name-step .welcome-card, .name-step .name-form, .name-step .tip-card { margin-left: 0; }
  .action-cards { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .entry-greeting { margin-inline: auto; max-width: 560px; }
}

.remembered-card,
.waiting-card {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.remembered-card {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding: 16px;
  border-radius: var(--radius-xl);
}

.remembered-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.remembered-title-row h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -.03em;
}

.remembered-title-row span {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink);
  font-size: 13px;
  font-weight: 950;
}

.remembered-room {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 143, 186, .22);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
}

.remembered-room > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #ffe1ed;
  font-size: 22px;
}

.remembered-room.owner > span { background: #fff1c9; }
.remembered-room.pending > span { background: #f1f4f8; }

.remembered-room strong,
.remembered-room small,
.remembered-room em {
  display: block;
}

.remembered-room strong {
  font-size: 16px;
  font-weight: 950;
}

.remembered-room small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.remembered-room em {
  color: var(--pink);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.remembered-room.pending em { color: #8a909b; }

.waiting-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  margin-top: 40px;
  padding: 34px 22px;
  border-radius: var(--radius-xl);
}

.waiting-card img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(255,47,125,.18));
}

.waiting-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink);
  font-size: 32px;
  font-weight: 950;
}

.waiting-card h1 {
  margin: 0;
  font-size: 31px;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.waiting-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 850;
}

.waiting-card strong { color: var(--pink); }

.waiting-card .primary-button {
  max-width: 280px;
  margin-top: 8px;
}

@media (min-width: 900px) {
  .landing-shell {
    width: min(100%, 1120px);
    padding: 34px 42px 40px;
  }

  .landing-hero {
    grid-template-columns: 1fr 360px;
    min-height: 330px;
  }

  .hero-mascot {
    width: 330px;
  }

  .name-step .welcome-card,
  .name-step .name-form,
  .name-step .tip-card {
    width: min(100%, 520px);
  }

  .action-cards {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .remembered-card,
  .private-note,
  .waiting-card {
    width: min(100%, 760px);
    margin-left: auto;
    margin-right: auto;
  }
}

.waiting-status-note {
  margin-top: -4px !important;
  color: #1976e8 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}
