:root {
  --primary: #6d34f7;
  --primary2: #8d3dff;
  --pink: #ff2d9a;
  --yellow: #ffc72c;
  --background: #f8f6ff;
  --surface: #fff;
  --surface-purple: #f2ecff;
  --text: #11113a;
  --muted: #74749a;
  --border: #e7e2f7;
  --success: #18c96e;
  --danger: #ff4d6d;
  --shadow: 0 8px 32px #4c2aa812;
  --gradient: linear-gradient(110deg, #5638f7, #8f35f4, #e92ad1);
  font-family:
    ui-rounded,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 420px 500px at 0 48%, #eee3ff99, transparent),
    radial-gradient(ellipse 380px 420px at 100% 68%, #ffe1f399, transparent), var(--background);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #b99af9;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.04em;
  line-height: 1.16;
  font-weight: 900;
}
h1 {
  font-size: clamp(32px, 3vw, 42px);
  margin-bottom: 10px;
}
h2 {
  font-size: 27px;
  margin-bottom: 12px;
}
h3 {
  font-size: 20px;
}
p {
  line-height: 1.55;
}
small,
.small {
  font-size: 13px;
  line-height: 1.55;
}
.muted {
  color: var(--muted);
}
.center {
  text-align: center;
}
.wide {
  width: 100%;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  background: #fff;
  padding: 15px;
  border-radius: 15px;
}
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: inline-block;
  fill: currentColor;
  stroke: none;
  vertical-align: middle;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 15px;
  background: #fff;
  color: var(--text);
  min-height: 52px;
  outline-offset: 2px;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
input[readonly] {
  background: var(--background);
}
input[type='checkbox'],
input[type='radio'] {
  width: 19px;
  min-height: 19px;
  height: 19px;
  accent-color: var(--primary);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 8px;
}
fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}
progress {
  appearance: none;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: var(--border);
  border-radius: 99px;
}
progress::-webkit-progress-value {
  background: var(--primary);
  border-radius: 99px;
}
progress::-moz-progress-bar {
  background: var(--primary);
  border-radius: 99px;
}
[hidden] {
  display: none !important;
}
.button {
  min-height: 56px;
  padding: 13px 23px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
  transition:
    transform 0.16s,
    box-shadow 0.16s;
}
.button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px #6d34f71a;
}
.primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 8px 24px #7a35ff22;
}
.soft {
  color: var(--primary);
  background: var(--surface-purple);
}
.surface,
.white {
  background: white;
  color: var(--text);
}
.outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.mint {
  background: #e8fff5;
}
.whatsapp {
  background: linear-gradient(100deg, #16ce69, #0cbf59);
  color: white;
}
.instagram {
  background: linear-gradient(110deg, #ffb42c, #ff3c86, #d725e9);
  color: white;
}
.small-button {
  min-height: 44px;
  font-size: 14px;
  padding: 10px 17px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
}
.icon-button:hover {
  background: var(--surface-purple);
}
.icon-button .icon {
  width: 27px;
  height: 27px;
}
.danger {
  color: var(--danger);
}
.light {
  color: white;
  border-color: #ffffff60;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  min-height: 44px;
}
.text-link .icon {
  width: 19px;
}
.card {
  border-radius: 26px;
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid #ffffff80;
}
.brand-logo {
  position: relative;
  display: inline-block;
  font-size: 38px;
  letter-spacing: -2.3px;
  font-weight: 950;
  line-height: 1.2;
  padding-inline-end: 22px;
  white-space: nowrap;
}
.brand-logo span {
  color: var(--pink);
}
.brand-logo i {
  font-size: 18px;
  font-style: normal;
  position: absolute;
  top: -5px;
  right: 0;
  letter-spacing: 3px;
  color: var(--yellow);
}
.brand-gradient {
  background: linear-gradient(120deg, #6337ff, #bc35ed, #ff2d91);
  color: white;
}
.blue-purple {
  background: linear-gradient(120deg, #2f6eff, #7042ff, #b63dff);
  color: white;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.13em;
  font-weight: 900;
  color: var(--primary);
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 244px;
  height: 100dvh;
  background: #fffefbde;
  border-inline-end: 1px solid var(--border);
  padding: 36px 23px;
  display: flex;
  flex-direction: column;
  z-index: 15;
}
.sidebar-tagline {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}
.sidebar nav {
  display: grid;
  gap: 9px;
  margin-top: 34px;
}
.sidebar nav a {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 15px;
  border-radius: 16px;
  font-weight: 800;
  color: var(--muted);
}
.sidebar nav a.active,
.sidebar nav a:hover {
  color: var(--primary);
  background: var(--surface-purple);
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding-top: 24px;
  gap: 5px;
}
.sidebar-bottom span {
  font-size: 12px;
  color: var(--muted);
}
.sidebar-bottom strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.app-header {
  height: 82px;
  margin-inline-start: 244px;
  padding: 14px 42px;
  border-bottom: 1px solid #e7e2f755;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f6ffed;
  position: sticky;
  top: 0;
  z-index: 12;
  backdrop-filter: blur(12px);
}
.app-header .brand-logo {
  font-size: 31px;
}
.app-header .brand-logo i {
  font-size: 14px;
  top: -3px;
}
.header-spacer {
  width: 44px;
}
.header-create {
  flex-shrink: 0;
  max-width: 45%;
  padding-inline: 14px;
}
.app-content {
  margin-block: 0;
  margin-inline: 244px auto;
  padding: 30px clamp(24px, 4vw, 64px) 70px;
  max-width: calc(1480px + 244px);
  min-height: calc(100dvh - 82px);
}
.bottom-nav {
  display: none;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading h1 span {
  color: var(--primary);
}
.page-heading p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 0;
}
.page-heading h1 .icon {
  color: var(--primary);
}
.games-create {
  gap: 8px;
}
.games-create .icon {
  width: 20px;
  height: 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface-purple);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}
.chip.success {
  background: #e8fff5;
  color: #0a9b59;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.modal-card {
  border: 0;
  background: var(--surface);
  color: var(--text);
  border-radius: 28px;
  box-shadow: 0 20px 80px #1a0d4760;
  width: min(380px, calc(100vw - 44px));
  padding: 26px;
  margin: auto;
}
.modal-card::backdrop {
  background: #130b3d77;
  backdrop-filter: blur(5px);
}
.modal-text {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
}
.modal-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 17px;
  background: var(--background);
  color: var(--text);
  font-size: 14px;
  margin-bottom: 20px;
  user-select: all;
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.danger {
  background: var(--danger);
  color: white;
}
.danger:hover:not(:disabled) {
  box-shadow: 0 6px 20px #ff4d6d33;
}
.section {
  margin-top: 32px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr);
  gap: 20px;
}
.hero-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 30px;
  padding: 32px;
  min-height: 280px;
  box-shadow: 0 10px 32px #6d34f71c;
}
.hero-card h2 {
  font-size: 34px;
}
.hero-card p {
  font-size: 18px;
  max-width: 450px;
}
.hero-card .eyebrow {
  color: #fffbd6;
  font-size: 10px;
}
.hero-card img {
  width: 34%;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.hero-card .button {
  margin-top: 8px;
}
.score-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
}
.score-mark {
  padding: 15px;
  border-radius: 22px;
  background: #f2ecff;
  color: var(--primary);
  margin-bottom: 15px;
}
.score-mark .icon {
  width: 33px;
  height: 33px;
}
.score-summary strong {
  font-size: 50px;
  color: var(--primary);
  letter-spacing: -0.05em;
  line-height: 1.2;
}
.score-summary p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 9px;
}
.stats-inline {
  display: flex;
  justify-content: center;
  gap: 25px;
  font-size: 13px;
  color: var(--muted);
  padding-top: 14px;
  width: 100%;
}
.stats-inline b {
  display: block;
  color: var(--text);
  font-size: 20px;
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}
.quick-card {
  border-radius: 24px;
  padding: 23px;
  display: grid;
  grid-template-columns: 32px 1fr 24px;
  gap: 15px;
  align-items: center;
}
.quick-card strong {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.quick-card .icon {
  color: var(--primary);
}
.warm {
  background: #fff5e6;
}
.purple {
  background: #f0eaff;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.game-card h2,
.game-card h3 {
  font-size: 22px;
  margin: 15px 0 10px;
}
.game-card p {
  font-size: 14px;
  color: var(--muted);
}
.game-card small {
  color: var(--muted);
  font-size: 12px;
}
.game-card .button-row {
  margin-top: 18px;
}
.game-title {
  display: block;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 46px 26px;
  max-width: 800px;
  margin: 25px auto;
}
.empty-state > .icon {
  width: 60px;
  height: 60px;
  color: var(--primary);
  margin-bottom: 25px;
}
.empty-state h2 {
  max-width: 540px;
}
.empty-state p {
  color: var(--muted);
  max-width: 480px;
}
.empty-state .button {
  margin-top: 15px;
}
.friends-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.friend-card {
  text-align: center;
  overflow-wrap: anywhere;
}
.friend-card h2 {
  margin-top: 15px;
  font-size: 23px;
}
.avatar-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface-purple);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.score-number {
  font-weight: 900;
  font-size: 28px;
  color: var(--primary);
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.friend-card > .score-number {
  font-size: 42px;
}
.friend-card p {
  font-size: 14px;
  color: var(--muted);
}
.profile-card {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  padding: 32px;
}
.profile-card h1 {
  margin-bottom: 0;
}
.profile-card p {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
.profile-card h3 {
  margin: 14px 0 0;
}
.profile-mascot {
  object-fit: contain;
}
.profile-card .button {
  margin-top: 15px;
}
.profile-card .chips {
  justify-content: center;
}
.guest-note {
  max-width: 660px;
  margin: 24px auto;
}
.guest-note p {
  color: var(--muted);
  font-size: 15px;
}
.guest-note h2 {
  font-size: 23px;
}
.logout-form {
  text-align: center;
  margin-top: 20px;
}
.form-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-card > label {
  margin: 8px 0 -5px;
}
.form-card .button {
  margin-top: 8px;
}
.narrow {
  max-width: 700px;
}
.interest-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 20px;
}
.choice-chip {
  position: relative;
  margin: 0;
}
.choice-chip input {
  position: absolute;
  opacity: 0;
}
.choice-chip span {
  display: block;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--muted);
  cursor: pointer;
}
.choice-chip input:checked + span {
  background: var(--surface-purple);
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 800;
}
.choice-chip input:focus-visible + span {
  outline: 3px solid #b99af9;
}
.notice {
  border-radius: 15px;
  padding: 15px 20px;
  background: #e8fff5;
  color: #096f42;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.error-note {
  color: #a52d4b;
  background: #fff1f4;
  border: 1px solid #f9d3df;
  padding: 13px 16px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.5;
}
.error-note:empty,
.validation-summary-valid {
  display: none;
}
.error-note ul {
  padding-inline-start: 18px;
  margin: 0;
}
.error-state {
  padding: 25px;
}
.loading-state {
  padding: 35px 20px;
  text-align: center;
  color: var(--muted);
}
.loading-state:before {
  content: '';
  display: block;
  width: 30px;
  height: 30px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.7s linear infinite;
}
.toast {
  position: fixed;
  bottom: 35px;
  left: calc(50% + 122px);
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  padding: 15px 24px;
  border-radius: 18px;
  z-index: 100;
  max-width: 90%;
  box-shadow: 0 8px 30px #0002;
  font-weight: 700;
  text-align: center;
}
.public-content {
  min-height: 100dvh;
}
.welcome-page {
  background: linear-gradient(115deg, #5e39f8, #8147ff, #e0a8ff);
}
.welcome-guide {
  max-width: 1260px;
  margin: 0 auto 60px;
  padding: 40px;
  border-radius: 32px;
  background: var(--surface);
}
.welcome-guide > h2,
.welcome-faq > h2 {
  font-size: 30px;
}
.welcome-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.welcome-guide-grid h3 {
  font-size: 21px;
}
.welcome-guide-grid p,
.welcome-faq p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}
.welcome-faq {
  margin-top: 36px;
}
.welcome-faq details {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.welcome-faq summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}
.welcome-faq details[open] summary {
  margin-bottom: 12px;
}
.welcome-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 32px;
  color: var(--primary);
  font-weight: 700;
}
.welcome-languages [aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.analytics-settings {
  margin-top: 20px;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  padding: 24px 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.legal-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-eligibility {
  flex-basis: 100%;
  font-size: 12px;
}
.welcome-page .legal-links {
  color: white;
}
.analytics-consent {
  position: fixed;
  inset-inline: 20px;
  bottom: 20px;
  z-index: 30;
  width: auto;
  max-width: 680px;
  margin: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.analytics-consent p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.analytics-consent > .text-link {
  display: inline-block;
  margin-bottom: 14px;
}
@media (max-width: 900px) {
  .welcome-guide {
    margin: 0 20px 32px;
    padding: 24px;
    border-radius: 24px;
  }
  .welcome-guide-grid {
    grid-template-columns: 1fr;
  }
}
.welcome-layout {
  min-height: 100dvh;
  max-width: 1380px;
  margin: auto;
  padding: 60px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 90px;
}
.welcome-story {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
}
.welcome-story .brand-logo {
  font-size: 70px;
  letter-spacing: -4px;
  padding-inline-end: 31px;
}
.welcome-story .brand-logo i {
  font-size: 24px;
  top: 0;
}
.welcome-story h1 {
  font-size: 35px;
  line-height: 1.25;
  margin: 25px 0 10px;
  max-width: 560px;
}
.welcome-story > p {
  color: #fffcedce;
  font-size: 16px;
  max-width: 400px;
}
.welcome-mascot {
  width: min(290px, 70%);
  height: auto;
  margin: 10px 0 20px;
}
.welcome-pill {
  background: #ffffffe6;
  border-radius: 28px;
  color: var(--primary);
  font-size: 27px;
  padding: 17px 27px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.welcome-actions {
  border-radius: 32px;
  padding: 35px;
  background: #fffc;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 20px 60px #32168325;
}
.welcome-actions h2 {
  font-size: 36px;
}
.welcome-actions p {
  color: var(--muted);
  font-size: 15px;
}
.welcome-actions .eyebrow {
  color: var(--primary);
  font-size: 10px;
}
.welcome-divider {
  height: 1px;
  background: var(--border);
  margin: 5px 0 8px;
}
.welcome-actions .small {
  font-size: 12px;
  margin-bottom: 0;
}
.join-form h3 {
  font-size: 24px;
  margin-bottom: 12px;
}
.input-action {
  display: flex;
  gap: 8px;
  align-items: center;
}
.input-action input {
  min-width: 0;
  flex: 1;
}
.input-action .button {
  white-space: nowrap;
  font-size: 14px;
  padding: 12px 18px;
}
.auth-page {
  min-height: 100dvh;
  max-width: 540px;
  margin: auto;
  padding: 90px 25px;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  position: relative;
  justify-content: center;
}
.auth-page h1 {
  margin-top: 25px;
  font-size: 32px;
}
.auth-page > p {
  color: var(--muted);
}
.auth-page form {
  width: 100%;
  text-align: start;
  margin: 20px 0;
}
.auth-back {
  position: absolute;
  left: 20px;
  top: 20px;
}
.auth-page .brand-logo {
  font-size: 52px;
}
.otp-input {
  text-align: center;
  font-size: 26px;
  letter-spacing: 0.35em;
}
.invite-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.invite-illustration {
  text-align: center;
}
.invite-illustration img {
  max-width: 80%;
  height: auto;
}
.invite-illustration p {
  color: var(--muted);
}
.game-detail > .error-note {
  margin-top: 20px;
}
.dark-card {
  background: linear-gradient(150deg, #27106e, #13073d, #080819);
  color: white;
  border-radius: 30px;
  padding: 28px;
}
.waiting-screen {
  max-width: 750px;
  margin: auto;
}
.waiting-content {
  text-align: center;
}
.waiting-content h1 {
  font-size: 47px;
  margin-bottom: 12px;
}
.waiting-content > p {
  color: #ffffffbd;
  font-size: 17px;
}
.waiting-content img {
  object-fit: contain;
  margin: 8px 0 15px;
}
.waiting-counter {
  border: 1px solid #ffffff20;
  border-radius: 26px;
  background: #ffffff09;
  padding: 23px;
  margin: 0 0 25px;
}
.waiting-counter h2 {
  font-size: 25px;
}
.waiting-counter p {
  margin-bottom: 0;
  color: #ffffffbb;
  font-size: 15px;
}
.waiting-actions {
  display: grid;
  gap: 12px;
}
.results-overview {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}
.result-hero {
  min-height: 260px;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}
.result-hero .icon {
  color: var(--yellow);
  width: 42px;
  height: 42px;
}
.result-hero h2 {
  font-size: 41px;
  line-height: 1.1;
  position: relative;
  z-index: 1;
  max-width: 380px;
}
.result-hero p {
  font-size: 18px;
  margin: 6px 0 8px;
  max-width: 260px;
}
.result-hero img {
  position: absolute;
  width: 95px;
  right: 15px;
  top: 15px;
}
.rankings .section-heading h2 {
  font-size: 24px;
}
.ranking-row {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid var(--border);
}
.ranking-row > div {
  flex: 1;
  min-width: 0;
}
.ranking-row strong {
  display: block;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.ranking-row small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.rank-number {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface-purple);
  color: var(--primary);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ranking-row:first-of-type .score-number {
  color: var(--success);
}
.question-comparisons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}
.comparison-card h3 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 18px;
}
.comparison-row {
  display: grid;
  grid-template-columns: 22px minmax(70px, 1fr) minmax(90px, 1.5fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #e7e2f755;
  align-items: start;
  font-size: 14px;
  line-height: 1.5;
}
.comparison-row strong {
  color: var(--muted);
  overflow-wrap: anywhere;
  font-weight: 700;
}
.comparison-row > span:last-child {
  font-weight: 800;
  overflow-wrap: anywhere;
}
.comparison-row.correct > span {
  color: #0a9b59;
}
.comparison-row.wrong > span {
  color: var(--danger);
}
.comparison-row.missing > span {
  color: var(--muted);
}
.answer-indicator .icon {
  width: 19px;
  height: 19px;
}
.other-options {
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0 0;
}
.analysis-card h2 .icon {
  color: var(--primary);
  width: 30px;
  height: 30px;
  margin-inline-end: 7px;
}
.analysis-card .section-heading p {
  margin-bottom: 0;
  font-size: 14px;
}
.analysis-summary {
  font-size: 17px;
  line-height: 1.6;
}
.analysis-traits {
  margin: 17px 0;
}
.metric-row {
  display: grid;
  grid-template-columns: 145px 1fr 45px;
  gap: 12px;
  align-items: center;
  margin-top: 19px;
  font-size: 14px;
  font-weight: 800;
}
.metric-track {
  height: 12px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.metric-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
}
.metric-row b {
  color: var(--primary);
}
.share-cta {
  min-height: 130px;
  margin-top: 25px;
  padding: 22px;
  justify-content: space-between;
}
.share-cta img {
  width: 90px;
}
.share-cta h2 {
  font-size: 24px;
}
.share-cta p {
  font-size: 14px;
  margin-bottom: 0;
}
.share-studio {
  display: grid;
  grid-template-columns: minmax(260px, 400px) minmax(270px, 1fr);
  gap: 40px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
.share-preview canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 12px 40px #29145b2b;
}
.invite-share-canvas {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 18px;
}
.share-settings {
  position: sticky;
  top: 110px;
}
.theme-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}
.theme-list button {
  min-height: 56px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface-purple);
  color: var(--primary);
  font-weight: 800;
  padding: 10px;
}
.theme-list button[aria-pressed='true'] {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.share-settings h2 {
  font-size: 26px;
}
.share-settings .small {
  margin-bottom: 0;
}
.creator-title {
  margin-bottom: 24px;
}
.creator-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.creator-tools {
  display: grid;
  gap: 16px;
}
.creation-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.method-card {
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: start;
  border-radius: 24px;
  padding: 17px;
  color: var(--primary);
  min-height: 150px;
  box-shadow: var(--shadow);
}
.method-card strong {
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.03em;
}
.method-card span {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.method-card.brand-gradient,
.method-card.brand-gradient strong,
.method-card.brand-gradient span {
  color: white;
}
.creator-note {
  background: var(--surface-purple);
  color: var(--primary);
  font-size: 14px;
  border-radius: 23px;
  padding: 18px;
  font-weight: 700;
}
.creator-note p {
  margin: 0;
}
.draft-list {
  display: grid;
  gap: 8px;
  max-height: 430px;
  overflow: auto;
}
.draft-row {
  border: 1px solid var(--border);
  background: white;
  border-radius: 17px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.draft-row.active {
  border: 2px solid var(--primary);
}
.draft-row > button:first-child {
  min-width: 0;
  flex: 1;
  text-align: start;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 0;
}
.draft-row .draft-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  font-size: 14px;
  display: block;
}
.draft-row small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.draft-row .rank-number {
  width: 27px;
  height: 27px;
  font-size: 12px;
}
.draft-row .icon-button {
  width: 30px;
  height: 38px;
}
.draft-row .icon {
  width: 19px;
}
.creator-editor {
  min-height: 450px;
  padding: 26px;
}
.creator-editor h2 {
  font-size: 24px;
  margin-bottom: 18px;
}
.creator-editor textarea {
  margin: 12px 0 8px;
}
.creator-editor .category-scroll {
  padding-bottom: 8px;
}
.category-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  padding: 9px 0;
  scrollbar-width: thin;
}
.category-scroll > * {
  white-space: nowrap;
  flex-shrink: 0;
}
.category-scroll button {
  border: 1px solid var(--border);
  background: var(--surface-purple);
  color: var(--primary);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  min-height: 40px;
}
.category-scroll button[aria-pressed='true'] {
  color: white;
  background: var(--primary);
  border-color: var(--primary);
}
.question-char-count {
  text-align: end;
  color: var(--muted);
  font-size: 12px;
}
.options-title {
  font-size: 20px;
  margin: 20px 0 13px;
}
.editor-options {
  display: grid;
  gap: 11px;
}
.editor-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 9px;
  background: #fff;
}
.editor-option.selected {
  border: 2px solid var(--primary);
  background: var(--surface-purple);
}
.option-letter {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: var(--pink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
}
.editor-option:nth-child(4n + 2) .option-letter,
.option-card:nth-child(4n + 2) .option-letter {
  background: #247bff;
}
.editor-option:nth-child(4n + 3) .option-letter,
.option-card:nth-child(4n + 3) .option-letter {
  background: var(--primary2);
}
.editor-option:nth-child(4n + 4) .option-letter,
.option-card:nth-child(4n + 4) .option-letter {
  background: #ff8a1f;
}
.editor-option input {
  border: 0;
  background: transparent;
  padding: 8px 2px;
  min-width: 0;
  flex: 1;
  border-radius: 5px;
  min-height: 42px;
}
.editor-option .icon-button {
  width: 30px;
  height: 40px;
}
.editor-option .icon {
  width: 20px;
}
.add-option {
  width: 100%;
  border: 2px dashed var(--border);
  border-radius: 17px;
  background: transparent;
  min-height: 50px;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 800;
}
.creator-footer {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.creator-footer > .button {
  min-width: 280px;
}
.creator-footer > .error-note {
  width: 100%;
}
.sheet {
  border: 0;
  background: var(--background);
  color: var(--text);
  border-radius: 28px;
  box-shadow: 0 20px 80px #1a0d4760;
  width: min(900px, calc(100vw - 48px));
  height: min(850px, calc(100dvh - 70px));
  padding: 0;
  max-width: none;
  max-height: none;
}
.sheet[open] {
  display: flex;
  flex-direction: column;
}
.sheet::backdrop {
  background: #130b3d77;
  backdrop-filter: blur(5px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.sheet-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 25px 12px;
  flex-shrink: 0;
}
.sheet-header h2 {
  font-size: 27px;
  margin-bottom: 7px;
}
.sheet-header p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
}
.sheet-header .brand-logo {
  font-size: 34px;
}
.sheet > .category-scroll,
.sheet-page > .category-scroll {
  padding: 10px 25px;
}
.sheet-scroll {
  overflow-y: auto;
  padding: 15px 25px 25px;
  min-height: 0;
  flex: 1;
  overscroll-behavior: contain;
}
.sheet-footer {
  padding: 14px 25px 20px;
  border-top: 1px solid var(--border);
  background: var(--background);
  flex-shrink: 0;
}
.sheet-footer > p {
  margin-bottom: 10px;
}
.template-list {
  display: grid;
  gap: 11px;
  align-content: start;
}
.template-choice {
  border: 1px solid var(--border);
  border-radius: 21px;
  background: white;
  padding: 17px;
  display: grid;
  grid-template-columns: 1fr 26px;
  align-items: center;
  gap: 14px;
  min-height: 110px;
  text-align: start;
}
.template-choice[aria-checked='true'] {
  border: 2px solid var(--primary);
  background: #fffd;
}
.template-choice strong {
  font-size: 17px;
  line-height: 1.4;
  display: block;
  margin-top: 9px;
  color: var(--text);
}
.template-choice .template-options {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  display: block;
  margin-top: 7px;
}
.template-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border: 2px solid #beb4d9;
  color: transparent;
  border-radius: 50%;
  font-size: 16px;
}
.template-choice[aria-checked='true'] .template-check {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.answer-screen {
  max-width: 650px;
  width: 100%;
  align-self: center;
}
.answer-screen > h2 {
  font-size: 32px;
  margin-bottom: 8px;
}
.answer-screen > p {
  margin-bottom: 13px;
}
.progress-position {
  text-align: end;
  font-size: 14px;
  font-weight: 900;
  margin: 6px 0 18px;
}
.question-prompt {
  padding: 22px;
  margin-bottom: 20px;
}
.question-prompt h3 {
  font-size: 25px;
  line-height: 1.3;
  margin: 14px 0 0;
}
.answer-options {
  display: grid;
  gap: 12px;
}
.option-card {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  padding: 14px;
  min-height: 68px;
  text-align: start;
  font-weight: 750;
  font-size: 17px;
  line-height: 1.4;
  color: var(--text);
}
.option-card[aria-pressed='true'] {
  border: 2px solid var(--primary);
  background: var(--surface-purple);
}
.option-card .icon {
  margin-inline-start: auto;
  color: var(--primary);
}
.option-card .option-letter {
  width: 38px;
  height: 38px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 15px;
}
.form-grid label {
  margin-top: 10px;
}
#ai-results {
  margin-top: 20px;
}
#ai-form {
  padding: 0;
}
.body-locked {
  pointer-events: none;
  opacity: 0.7;
}
.public-shell:not(.welcome-page) .public-content {
  padding: 25px;
}
.public-shell:not(.welcome-page) .empty-state {
  margin-top: 80px;
}
.public-shell .toast {
  left: 50%;
}
.poll-error {
  color: #ffd7df;
  font-size: 14px;
}
.share-settings .theme-list button {
  border-left-width: 7px;
}
.share-settings [data-theme='summer'] {
  border-inline-start-color: #3ed7da;
}
.share-settings [data-theme='sweet'] {
  border-inline-start-color: #ff2d91;
}
.share-settings [data-theme='space'] {
  border-inline-start-color: #322286;
}
.share-settings [data-theme='minimal'] {
  border-inline-start-color: #2f6eff;
}
.share-settings [data-theme='party'] {
  border-inline-start-color: #ffbd2e;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1700px) {
  .app-content {
    margin-inline-start: auto;
    margin-inline-end: auto;
    padding-inline-start: 300px;
    max-width: 1500px;
  }
}
@media (max-width: 1190px) {
  .sidebar {
    width: 210px;
    padding: 30px 18px;
  }
  .app-header {
    margin-inline-start: 210px;
    padding: 12px 24px;
  }
  .app-content {
    margin-inline-start: 210px;
    padding: 28px 25px 60px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .score-summary {
    flex-direction: row;
    gap: 18px;
    flex-wrap: wrap;
    padding: 23px;
  }
  .score-summary .score-mark {
    margin: 0;
  }
  .score-summary strong {
    font-size: 40px;
  }
  .score-summary .stats-inline {
    width: auto;
    padding: 0;
    flex: 1;
  }
  .score-summary p {
    margin: 0;
    max-width: 160px;
  }
  .score-summary h3 {
    font-size: 18px;
    margin: 0;
  }
  .quick-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .quick-card > .icon:last-child {
    justify-self: end;
  }
  .creator-layout {
    grid-template-columns: 240px 1fr;
  }
  .creation-methods {
    grid-template-columns: 1fr;
  }
  .method-card {
    min-height: 100px;
  }
  .results-overview {
    grid-template-columns: 1fr;
  }
  .result-hero {
    min-height: 200px;
    max-width: none;
  }
  .result-hero h2 {
    max-width: none;
  }
  .question-comparisons {
    grid-template-columns: 1fr;
  }
  .friends-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toast {
    left: calc(50% + 105px);
  }
  .welcome-layout {
    gap: 40px;
    padding: 45px;
  }
  .welcome-story h1 {
    font-size: 30px;
  }
  .welcome-actions {
    padding: 27px;
  }
  .welcome-actions h2 {
    font-size: 30px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
  .app-header {
    margin-inline-start: 0;
    padding: 10px 20px;
    height: 76px;
    top: 0;
    padding-top: max(10px, env(safe-area-inset-top));
    box-sizing: content-box;
    height: 46px;
  }
  .app-content {
    margin: 0;
    padding: 24px 20px calc(105px + env(safe-area-inset-bottom));
    min-height: calc(100dvh - 76px);
  }
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    z-index: 20;
    background: #fffefaee;
    border-top: 1px solid var(--border);
    backdrop-filter: blur(16px);
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
    gap: 5px;
  }
  .bottom-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    min-height: 45px;
  }
  .bottom-nav .icon {
    width: 25px;
    height: 25px;
  }
  .bottom-nav a.active {
    color: var(--primary);
  }
  .page-heading h1 {
    font-size: 33px;
  }
  .toast {
    left: 50%;
    bottom: calc(90px + env(safe-area-inset-bottom));
  }
  .dashboard-grid {
    grid-template-columns: 1.4fr 1fr;
  }
  .score-summary {
    flex-direction: column;
  }
  .score-summary .stats-inline {
    width: 100%;
    padding-top: 15px;
  }
  .hero-card {
    padding: 25px;
  }
  .hero-card h2 {
    font-size: 30px;
  }
  .hero-card p {
    font-size: 17px;
  }
  .hero-card img {
    width: 32%;
  }
  .quick-card {
    grid-template-columns: 32px 1fr 24px;
  }
  .quick-card strong {
    font-size: 18px;
  }
  .creator-layout {
    grid-template-columns: 240px 1fr;
  }
  .results-overview {
    grid-template-columns: 1fr 1.1fr;
  }
  .result-hero {
    min-height: 260px;
  }
  .result-hero h2 {
    font-size: 38px;
  }
  .result-hero img {
    width: 75px;
    top: 10px;
    right: 10px;
  }
  .rankings {
    padding: 20px;
  }
  .ranking-row strong {
    font-size: 16px;
  }
  .welcome-layout {
    padding: 35px;
    gap: 30px;
  }
  .welcome-story .brand-logo {
    font-size: 60px;
  }
  .welcome-story h1 {
    font-size: 27px;
  }
  .welcome-pill {
    font-size: 23px;
    padding: 16px 23px;
  }
  .welcome-actions {
    padding: 25px;
  }
  .welcome-actions h2 {
    font-size: 27px;
  }
  .welcome-actions .input-action {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 640px) {
  .page-heading {
    margin-bottom: 22px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 32px;
    line-height: 1.2;
  }
  .page-heading p {
    font-size: 16px;
    line-height: 1.5;
  }
  .page-heading .chip {
    font-size: 12px;
  }
  .page-heading > .button {
    min-height: 44px;
    font-size: 14px;
    padding: 10px 17px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    min-height: 245px;
    padding: 24px;
  }
  .hero-card h2 {
    font-size: 31px;
  }
  .hero-card .eyebrow {
    display: none;
  }
  .hero-card p {
    font-size: 18px;
    line-height: 1.5;
    max-width: 240px;
  }
  .hero-card img {
    position: absolute;
    right: 5px;
    bottom: 12px;
    width: 36%;
    max-width: 170px;
  }
  .hero-card > div {
    width: 100%;
    z-index: 1;
  }
  .hero-card h2 {
    max-width: 100%;
  }
  .hero-card .button {
    padding: 13px 20px;
    max-width: 75%;
    font-size: 16px;
  }
  .score-summary {
    flex-direction: column;
  }
  .score-summary .stats-inline {
    width: 100%;
  }
  .quick-links {
    gap: 11px;
    margin-top: 16px;
  }
  .quick-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 14px;
    border-radius: 24px;
    min-height: 165px;
  }
  .quick-card strong {
    font-size: 18px;
    line-height: 1.25;
  }
  .quick-card > .icon:last-child {
    align-self: flex-end;
  }
  .game-grid,
  .friends-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .card {
    padding: 21px;
    border-radius: 25px;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .section-heading {
    gap: 8px;
  }
  .game-card h2 {
    font-size: 21px;
  }
  .profile-card {
    padding: 24px 20px;
  }
  .profile-card h1 {
    font-size: 29px;
    overflow-wrap: anywhere;
  }
  .profile-mascot {
    width: 140px;
    height: 140px;
  }
  .guest-note h2 {
    font-size: 23px;
  }
  .guest-note p {
    font-size: 14px;
  }
  .welcome-layout {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: calc(36px + env(safe-area-inset-top)) 24px 35px;
    gap: 24px;
  }
  .welcome-story {
    width: 100%;
    flex: 1;
  }
  .welcome-story .brand-logo {
    font-size: 58px;
    padding-inline-end: 27px;
  }
  .welcome-story h1 {
    font-size: 25px;
    line-height: 1.25;
    margin: 15px 0 10px;
  }
  .welcome-story > p {
    display: none;
  }
  .welcome-mascot {
    width: 220px;
    margin: 10px 0 18px;
  }
  .welcome-pill {
    font-size: 24px;
    padding: 15px 20px;
    border-radius: 26px;
  }
  .welcome-actions {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    width: 100%;
    gap: 12px;
  }
  .welcome-actions > div:first-child {
    display: none;
  }
  .welcome-actions > .button,
  .welcome-actions > form > .button {
    min-height: 58px;
    font-size: 17px;
  }
  .welcome-actions > .button {
    background: white;
    color: var(--text);
  }
  .welcome-actions > .small {
    color: #fffdf6e6;
    font-size: 12px;
  }
  .welcome-actions .join-form {
    background: #fffef4ef;
    padding: 22px;
    border-radius: 26px;
    margin-top: 8px;
  }
  .welcome-actions .join-form h3 {
    font-size: 23px;
  }
  .welcome-actions .join-form .input-action {
    flex-direction: column;
    gap: 10px;
  }
  .welcome-actions .join-form .button {
    width: 100%;
    min-height: 50px;
  }
  .welcome-divider {
    display: none;
  }
  .auth-page {
    padding: 65px 20px;
  }
  .auth-page .brand-logo {
    font-size: 48px;
  }
  .auth-page h1 {
    font-size: 30px;
  }
  .auth-page .form-card {
    padding: 20px;
  }
  .public-shell:not(.welcome-page) .public-content {
    padding: 0;
  }
  .invite-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .invite-illustration img {
    width: 180px;
    height: 180px;
  }
  .invite-illustration h2 {
    font-size: 24px;
  }
  .invite-illustration p {
    font-size: 14px;
  }
  .dark-card {
    padding: 22px 20px;
    border-radius: 27px;
  }
  .waiting-content h1 {
    font-size: 43px;
  }
  .waiting-content > p {
    font-size: 16px;
  }
  .waiting-content img {
    width: 170px;
    height: 170px;
  }
  .waiting-counter {
    padding: 20px;
  }
  .results-overview {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .result-hero {
    min-height: 200px;
    padding: 25px;
  }
  .result-hero h2 {
    font-size: 40px;
    max-width: 330px;
  }
  .result-hero p {
    font-size: 18px;
    max-width: 240px;
  }
  .result-hero img {
    width: 85px;
    top: 10px;
    bottom: auto;
  }
  .result-hero > div {
    z-index: 1;
  }
  .result-hero .icon {
    width: 36px;
    height: 36px;
  }
  .rankings {
    padding: 20px;
  }
  .ranking-row {
    padding: 16px 0;
    gap: 11px;
  }
  .rankings .section-heading {
    margin-bottom: 8px;
  }
  .rankings .section-heading h2 {
    font-size: 24px;
  }
  .ranking-row > .score-number {
    font-size: 26px;
  }
  .question-comparisons {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .comparison-card {
    padding: 18px;
  }
  .comparison-card h3 {
    font-size: 17px;
  }
  .comparison-row {
    grid-template-columns: 19px minmax(78px, 1fr) minmax(90px, 1.4fr);
    gap: 8px;
    font-size: 14px;
  }
  .metric-row {
    grid-template-columns: 120px 1fr 40px;
    gap: 8px;
    font-size: 13px;
  }
  .analysis-card h2 {
    font-size: 25px;
  }
  .analysis-card .icon {
    width: 26px;
  }
  .share-cta {
    min-height: 130px;
    padding: 20px;
    gap: 10px;
  }
  .share-cta img {
    position: static;
    width: 65px;
  }
  .share-cta h2 {
    font-size: 19px;
  }
  .share-cta p {
    font-size: 13px;
  }
  .share-cta > div {
    width: auto;
  }
  .share-cta > .icon {
    width: 22px;
  }
  .creator-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .creator-tools {
    width: 100%;
    gap: 14px;
    display: contents;
  }
  .creation-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    order: 0;
    width: 100%;
  }
  .method-card {
    min-height: 110px;
    padding: 16px;
    gap: 7px;
  }
  .method-card strong {
    font-size: 17px;
  }
  .method-card span {
    font-size: 12px;
  }
  .draft-list {
    order: 1;
    width: 100%;
    max-height: 240px;
  }
  .creator-editor {
    order: 2;
    width: 100%;
    padding: 20px;
  }
  .creator-tools > #add-question {
    order: 3;
    width: 100%;
  }
  .creator-note {
    order: 4;
    width: 100%;
  }
  .creator-footer {
    margin-top: 18px;
  }
  .creator-footer > .button {
    width: 100%;
  }
  .creator-editor h2 {
    font-size: 22px;
  }
  .creator-editor .category-scroll {
    margin-inline-start: -20px;
    margin-inline-end: -20px;
    padding: 8px 20px;
  }
  .editor-option {
    gap: 8px;
    padding: 8px;
  }
  .editor-option input {
    font-size: 16px;
    min-height: 42px;
  }
  .editor-option .option-letter {
    width: 33px;
    height: 33px;
    font-size: 17px;
  }
  .editor-option .icon-button {
    width: 25px;
  }
  .sheet {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sheet-header {
    padding: 16px 20px 10px;
  }
  .sheet-header h2 {
    font-size: 25px;
  }
  .sheet-header p {
    font-size: 14px;
  }
  .sheet-scroll {
    padding: 12px 20px 22px;
  }
  .sheet-footer {
    padding: 13px 20px 16px;
  }
  .sheet-page > .category-scroll {
    padding: 9px 20px;
  }
  .template-choice {
    padding: 16px;
    min-height: 105px;
  }
  .template-choice strong {
    font-size: 16px;
  }
  .answer-screen > h2 {
    font-size: 32px;
  }
  .answer-screen > p {
    font-size: 16px;
  }
  .question-prompt {
    padding: 20px;
    margin-top: 17px;
  }
  .question-prompt h3 {
    font-size: 25px;
  }
  .option-card {
    min-height: 66px;
    font-size: 17px;
    padding: 13px;
    gap: 14px;
  }
  .option-card .option-letter {
    width: 36px;
    height: 36px;
  }
  .share-studio {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: stretch;
  }
  .share-preview {
    width: 100%;
    max-width: 340px;
    align-self: center;
  }
  .share-settings {
    position: static;
    padding: 22px;
  }
  .share-settings h2 {
    font-size: 25px;
  }
  .theme-list {
    gap: 8px;
  }
  .theme-list button {
    font-size: 13px;
  }
  .toast {
    font-size: 14px;
    padding: 13px 18px;
  }
  .input-action > .icon-button {
    width: 40px;
  }
}
@media (max-width: 360px) {
  .app-content {
    padding-inline-start: 16px;
    padding-inline-end: 16px;
  }
  .app-header {
    padding-inline-start: 16px;
    padding-inline-end: 16px;
  }
  .hero-card {
    padding: 20px;
  }
  .hero-card h2 {
    font-size: 27px;
  }
  .hero-card p {
    font-size: 16px;
    max-width: 210px;
  }
  .hero-card .button {
    padding: 13px 12px;
    gap: 8px;
    max-width: 85%;
    font-size: 15px;
    white-space: nowrap;
  }
  .quick-card {
    padding: 16px 12px;
  }
  .quick-card strong {
    font-size: 16px;
  }
  .welcome-layout {
    padding-inline-start: 20px;
    padding-inline-end: 20px;
  }
  .welcome-mascot {
    width: 190px;
  }
  .welcome-pill {
    font-size: 21px;
  }
  .result-hero h2 {
    font-size: 35px;
  }
  .comparison-row {
    font-size: 13px;
    gap: 6px;
    grid-template-columns: 18px minmax(66px, 1fr) minmax(80px, 1.4fr);
  }
  .ranking-row strong {
    font-size: 15px;
  }
  .score-number {
    font-size: 23px;
  }
  .method-card {
    padding: 14px;
  }
  .method-card strong {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.sidebar > .brand-logo {
  align-self: flex-start;
}
.draft-row > button:first-child > span:last-child {
  min-width: 0;
  flex: 1;
}
@media (max-width: 900px) {
  .flow-page .app-content {
    padding-bottom: 35px;
  }
}

/* Native scripts determine direction; keep the brand and entered codes stable. */
[dir='rtl'] .sidebar {
  left: auto;
  right: 0;
}
[dir='rtl'] .auth-back {
  left: auto;
  right: 20px;
}
.brand-logo,
.otp-input,
#invite-code,
input[type='email'] {
  direction: ltr;
  unicode-bidi: isolate;
}
[dir='rtl'] .icon:has(use[href$='#back']),
[dir='rtl'] .icon:has(use[href$='#arrow']) {
  transform: scaleX(-1);
}
[dir='rtl'] .toast {
  left: calc(50% - 122px);
}
@media (max-width: 1190px) {
  [dir='rtl'] .toast {
    left: calc(50% - 105px);
  }
}
@media (max-width: 900px) {
  [dir='rtl'] .toast {
    left: 50%;
  }
}
:lang(ar) .eyebrow,
:lang(fa) .eyebrow,
:lang(he) .eyebrow,
:lang(ur) .eyebrow {
  letter-spacing: normal;
}
