:root {
  --cream: #f5f1e9;
  --paper: #fffdf8;
  --muted: #655f57;
  --wine: #81243b;
}
.app-shell { box-shadow: none; }
.screen { padding: 28px clamp(18px, 5vw, 32px); }
.topbar { justify-content: flex-start; background: var(--cream); }
.topbar-title { text-align: left; }
.topbar-link, .icon-button, .eyebrow, .join-illustration, .mystery-label { display: none; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.welcome-hero { min-height: 300px; display: grid; grid-template-columns: 1fr 126px; gap: 10px; align-items: end; margin: 12px 0 24px; padding: 28px 22px 24px; overflow: hidden; position: relative; color: #fffaf1; background: var(--wine); border-radius: 22px; }
.welcome-hero::after { content: ""; position: absolute; width: 200px; height: 200px; border: 1px solid #fff5e050; border-radius: 50%; right: -100px; bottom: -84px; }
.hero-kicker { font-size: 12px; line-height: 1; color: #f4d9c1; }
.welcome-title { font-size: 42px; line-height: .95; color: inherit; margin: 14px 0; }
.welcome-copy { font-size: 14px; line-height: 1.5; color: #fff5e8; margin-bottom: 0; }
.hero-gift { width: 120px; height: 120px; z-index: 1; position: relative; color: #f6d6a8; transform: rotate(-8deg) translateY(-4px); }
.hero-gift svg { position: relative; z-index: 2; stroke-width: 1.15; }
.hero-gift i, .hero-gift b { position: absolute; display: block; background: #cf8a64; }
.hero-gift i { width: 18px; height: 118px; left: 51px; top: 1px; }
.hero-gift b { width: 118px; height: 18px; left: 1px; top: 51px; }
.primary-action, .secondary-action { border-radius: 14px; justify-content: center; }
.primary-action { background: #312b29; }
.primary-action span:nth-child(2) { flex: 1; }
.secondary-action { color: var(--ink); }
.button-icon, .button-arrow, .field-icon, .row-icon, .notification-icon { display: inline-grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; }
.button-arrow { width: 18px; height: 18px; }
.field-icon { color: var(--wine); }
.row-icon { color: var(--wine); width: 24px; height: 24px; }
.section-heading { margin-top: 4px; }
.form-stack label, .nav-item small, .form-note, .welcome-hint { font-size: 13px; }
.form-stack input, .form-stack select { font-size: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { margin: 0; color: #8b263c; font-size: 13px; line-height: 1.4; }
.empty-state { margin: 4px 0; padding: 16px; background: var(--paper); border-radius: 12px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.topbar-title span,
.app-shell small,
.live-dot,
.helper-text,
.participant-status,
.game-list-item small,
.profile-game-row small,
.organizer-summary small,
.invite-card small,
.participant-list small {
  font-size: 12px;
}
.progress-card, .profile-card, .recipient-card, .field-card, .info-card,
.wishlist-card, .event-note, .deadline, .notification-preview {
  border: 0;
  border-radius: 10px;
}
.wish-list span { background: transparent; border-bottom: 1px solid var(--line); border-radius: 0; padding: 11px 0; }
.hero-card { display: grid; grid-template-columns: 1fr 112px; min-height: 240px; align-items: end; padding: 28px 22px; background: var(--wine); }
.hero-card .eyebrow { display: inline; color: #f4d9c1; }
.gift-illustration { position: relative; right: auto; bottom: auto; width: 108px; height: 100px; justify-self: end; }
.edit-button { width: 18px; height: 18px; padding: 0; }
.event-note, .deadline, .notification-preview { gap: 12px; }
.status-gift { display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 20px; padding: 18px; border: 1px solid #dac8b1; color: var(--wine); border-radius: 50%; }
.notification-icon { color: var(--wine); width: 24px; height: 24px; }
.bottom-nav .nav-item span { display: grid; width: 18px; height: 18px; }
.bottom-nav .nav-item { gap: 5px; }
.page-intro { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.game-list { display: grid; gap: 10px; margin: 8px 0 22px; }
.game-list-item { border: 0; background: var(--paper); padding: 16px; border-radius: 12px; display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; color: var(--ink); text-align: left; font: 14px 'DM Sans'; cursor: pointer; }
.game-list-item b, .game-list-item small { display: block; }
.game-list-item small { color: var(--muted); margin-top: 4px; font-size: 11px; }
.game-list-item.selected { background: #ece5dc; }
.game-list-icon { width: 42px; height: 42px; padding: 10px; color: #fffaf1; background: var(--wine); border-radius: 10px; }
.game-list-icon.neutral { color: var(--wine); background: #eaded1; }
.organizer-link { color: var(--wine); border: 0; background: transparent; display: flex; padding: 16px 0 4px; gap: 8px; align-items: center; font: 600 13px 'DM Sans'; cursor: pointer; }
.organizer-link svg { width: 16px; height: 16px; }
.organizer-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin: 8px 0 26px; padding: 16px 0; background: var(--paper); border-radius: 12px; }
.organizer-summary div { padding: 0 12px; border-right: 1px solid var(--line); }
.organizer-summary div:last-child { border: 0; }
.organizer-summary small, .invite-card small, .participant-list small { display: block; color: var(--muted); font-size: 10px; }
.organizer-summary b { display: block; margin-top: 6px; font-size: 16px; }
.manage-section { margin: 24px 0; }
.manage-section h3 { font: 600 16px 'DM Sans'; margin: 0 0 10px; }
.invite-card { background: var(--paper); border-radius: 12px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.invite-card b { display: block; margin-top: 3px; letter-spacing: .08em; }
.icon-square { width: 40px; height: 40px; padding: 10px; border: 0; color: var(--wine); background: #eaded1; border-radius: 10px; cursor: pointer; }
.participant-list { background: var(--paper); border-radius: 12px; overflow: hidden; }
.participant-list > div { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; padding: 12px 14px; align-items: center; border-bottom: 1px solid var(--line); font-size: 13px; }
.participant-list > div:last-child { border: 0; }
.avatar.small { width: 34px; height: 34px; font-size: 10px; }
.participant-status { color: #4a6a3d; font-size: 11px; }
.participant-status.muted { color: var(--muted); }
.profile-management { margin-top: 26px; }
.profile-management h3 { margin: 0 0 10px; font: 600 16px 'DM Sans'; }
.profile-game-row { width: 100%; border: 0; background: var(--paper); border-radius: 12px; padding: 14px; display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; color: var(--ink); text-align: left; font: 14px 'DM Sans'; cursor: pointer; }
.profile-game-row b, .profile-game-row small { display: block; }
.profile-game-row small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.profile-management .secondary-action { margin-top: 10px; }
.bottom-nav { background: var(--paper); backdrop-filter: none; height: auto; min-height: 58px; }
.nav-item { justify-content: center; min-height: 44px; color: var(--muted); }
.nav-item.active { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.app-shell:has(:is([data-screen="welcome"], [data-screen="join"]).active) .bottom-nav { display: none; }
.app-shell:has(#copyInvite) [data-screen="create"].active ~ .bottom-nav { display: grid; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
