/* Dorahi 2.0 — structural redesign. #customScreen is intentionally untouched. */

body:not(.is-custom) {
  --r-bg: #e9eff7;
  --r-surface: #e9eff7;
  --r-surface-hi: #f5f8fc;
  --r-ink: #101a31;
  --r-muted: #69758b;
  --r-pink: #ff006a;
  --r-pink-2: #ff4b78;
  --r-cyan: #00b8ff;
  --r-blue: #0074ff;
  /* Legacy feature sheets still consume these names. Keep them mapped to the
     new blue pole so the retired purple palette cannot leak into new routes. */
  --premium-a: var(--r-blue);
  --premium-b: var(--r-cyan);
  --r-shadow: rgba(101, 119, 148, .28);
  --r-light: rgba(255, 255, 255, .88);
  --r-up: 12px 12px 28px var(--r-shadow), -12px -12px 28px var(--r-light);
  --r-up-sm: 6px 6px 15px rgba(101,119,148,.22), -6px -6px 15px rgba(255,255,255,.82);
  --r-down: inset 6px 6px 14px rgba(101,119,148,.22), inset -6px -6px 14px rgba(255,255,255,.78);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --type-caption: clamp(.75rem,.72rem + .12vw,.8125rem);
  --type-body: clamp(.9375rem,.91rem + .16vw,1.0625rem);
  --type-card: clamp(1.0625rem,1rem + .28vw,1.25rem);
  --type-h2: clamp(1.5rem,1.28rem + .9vw,2rem);
  --type-display: clamp(2.35rem,1.9rem + 2.3vw,4.25rem);
  background: var(--r-bg);
  color: var(--r-ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}
body:not(.is-custom) :is(button,input,select,textarea) { font-family: "Vazirmatn", Tahoma, sans-serif; }

body:not(.is-custom) .ambient-background { display: none; }
body:not(.is-custom) .app-shell { width: min(1080px, 100%); margin-inline: auto; background: var(--r-bg); overflow: visible; }

body:not(.is-custom) .screen.page-surface:not(#customScreen) {
  position: relative;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) clamp(18px, 4vw, 42px) calc(120px + env(safe-area-inset-bottom));
  overflow: clip;
  background:
    radial-gradient(circle at 92% 5%, rgba(0,184,255,.08), transparent 24rem),
    radial-gradient(circle at 5% 95%, rgba(255,0,106,.065), transparent 27rem),
    var(--r-bg);
}

body:not(.is-custom) .screen.page-surface:not(#customScreen)::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .13;
  pointer-events: none;
  background-image: radial-gradient(rgba(16,26,49,.38) .55px, transparent .55px);
  background-size: 13px 13px;
  mask-image: linear-gradient(black, transparent 35%);
}

body:not(.is-custom) .screen.page-surface:not(#customScreen) > * { position: relative; z-index: 1; }

body:not(.is-custom) .categories-header {
  position: relative;
  top: auto;
  width: min(100%, 920px);
  min-height: 58px;
  margin: 0 auto clamp(32px, 6vw, 68px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body:not(.is-custom) .categories-brand { gap: 12px; }
body:not(.is-custom) .logo-mark {
  width: 46px; height: 46px; padding: 5px; border: 0; border-radius: 15px;
  background: var(--r-surface); box-shadow: var(--r-up-sm);
}
body:not(.is-custom) .logo-text { color: var(--r-ink); font-size: 21px; letter-spacing: normal; }
body:not(.is-custom) .xp-chip {
  min-height: 44px; padding: 6px 9px 6px 14px; border: 0; border-radius: 14px;
  background: var(--r-surface); color: var(--r-ink); box-shadow: var(--r-up-sm); backdrop-filter: none;
}
body:not(.is-custom) .xp-chip span { border-radius: 9px; background: var(--r-ink); }
body:not(.is-custom) .header-back { border-radius: 14px; background: var(--r-surface); color: var(--r-ink); box-shadow: var(--r-up-sm); }

body:not(.is-custom) .eyebrow {
  display: block; margin-bottom: 12px; color: var(--r-blue); font-size: var(--type-caption); font-weight: 700; letter-spacing: normal;
}

/* Activation-first home */
#homeScreen .activation-stage {
  width: min(100%, 920px); min-height: 480px; display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: clamp(24px, 6vw, 72px); margin: 0 auto 40px;
}
#homeScreen .activation-copy h1 {
  max-inline-size: 11ch; margin: 0; color: var(--r-ink); font-size: var(--type-display);
  font-weight: 800; line-height: 1.22; letter-spacing: normal; overflow-wrap: normal; word-break: normal; text-wrap: balance;
}
#homeScreen .activation-copy > p { max-width: 38ch; margin: 22px 0 28px; color: var(--r-muted); font-size: var(--type-body); line-height: 1.7; text-wrap: pretty; }
#homeScreen .activation-actions { display: flex; align-items: center; gap: 14px; }
#homeScreen .activation-actions button { min-height: 58px; padding: 0 22px; border-radius: 18px; font-weight: 900; transition: transform 120ms var(--ease-out), box-shadow 180ms var(--ease-out); }
#homeScreen #openGame { display: inline-flex; align-items: center; gap: 30px; background: var(--r-ink); color: white; box-shadow: 8px 9px 20px rgba(16,26,49,.24), -6px -6px 16px white; }
#homeScreen #openGame b { color: var(--r-cyan); font-size: 24px; }
#homeScreen .activation-actions [data-go] { background: var(--r-surface); color: var(--r-muted); box-shadow: var(--r-up-sm); }
#homeScreen .activation-actions button:active { transform: scale(.975); box-shadow: var(--r-down); }

#homeScreen .decision-preview { position: relative; height: 390px; perspective: 900px; }
#homeScreen .preview-choice {
  position: absolute; width: 66%; height: 62%; display: grid; place-items: center; border-radius: 34px;
  color: white; box-shadow: 22px 26px 42px rgba(39,57,89,.22), -10px -10px 26px rgba(255,255,255,.7);
  transform-style: preserve-3d;
}
#homeScreen .preview-choice span { max-width: 10ch; padding: 20px; font-size: clamp(20px,3.2vw,30px); font-weight: 900; line-height: 1.5; text-align: center; opacity: .95; }
#homeScreen .preview-choice i { position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 26px; }
#homeScreen .preview-a { top: 2%; right: 3%; background: linear-gradient(145deg, var(--r-pink-2), var(--r-pink)); transform: translate3d(0,0,0) rotate(8deg); animation: previewOrbitA 8s var(--ease-in-out) infinite; }
#homeScreen .preview-b { bottom: 1%; left: 2%; background: linear-gradient(145deg, color-mix(in srgb,var(--r-cyan) 68%,#004e78), var(--r-blue)); transform: translate3d(0,0,0) rotate(-7deg); animation: previewOrbitB 8s var(--ease-in-out) infinite; }
#homeScreen .decision-preview:hover .preview-choice { animation-play-state: paused; }
#homeScreen .preview-core {
  position: absolute; top: 50%; left: 50%; z-index: 3; width: 66px; height: 66px; display: grid; place-items: center;
  border-radius: 50%; background: var(--r-surface); color: var(--r-ink); font-size: 18px; font-weight: 900;
  box-shadow: var(--r-up); transform: translate(-50%,-50%);
}

#homeScreen .social-launcher {
  width: min(100%, 920px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 26px;
  margin: 0 auto 34px; padding: clamp(24px,4vw,38px); border: 1px solid rgba(105,117,139,.15); border-radius: 32px; background: transparent; box-shadow: none;
}
#homeScreen .social-launcher h2 { margin: 0; font-size: var(--type-h2); font-weight: 800; letter-spacing: normal; }
#homeScreen .social-launcher p { max-width: 50ch; margin: 9px 0 0; color: var(--r-muted); line-height: 1.8; }
#homeScreen .social-actions { display: flex; gap: 10px; }
#homeScreen .social-actions button { min-height: 50px; padding: 0 18px; border-radius: 15px; background: var(--r-surface); color: var(--r-ink); font-weight: 900; box-shadow: var(--r-up-sm); }
#homeScreen .social-actions button:first-child { color: var(--r-blue); }

#homeScreen .daily-panel, #homeScreen .seasonal-events, #homeScreen .engagement-prompt {
  width: min(100%, 920px); margin-inline: auto; border: 0; border-radius: 30px; background: var(--r-surface); box-shadow: var(--r-up);
}
#homeScreen .daily-panel { padding: clamp(22px,4vw,36px); }
#homeScreen .module-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
#homeScreen .module-heading h2 { margin: 0; font-size: 28px; }
#homeScreen .module-heading p { max-width: 32ch; margin: 0; color: var(--r-muted); line-height: 1.7; }
#homeScreen .mission-list { grid-template-columns: repeat(3, 1fr); gap: 14px; }
#homeScreen .mission-row { min-height: 82px; align-content: space-between; border: 0; border-radius: 18px; background: transparent; box-shadow: none; border-bottom: 1px solid rgba(105,117,139,.14); }
#homeScreen .dilemma-box { margin-top: 16px; border: 0; background: var(--r-surface); box-shadow: var(--r-up-sm); }

/* Shared editorial titles */
body:not(.is-custom) .screen:not(#customScreen) .categories-titlebar {
  width: min(100%, 920px); margin: 0 auto 34px; padding: 0; justify-items: start; text-align: right;
}
body:not(.is-custom) .screen:not(#customScreen) .categories-titlebar h1,
body:not(.is-custom) .screen:not(#customScreen) .categories-titlebar h2 {
  max-width: 17ch; margin: 0; color: var(--r-ink); font-size: clamp(38px,7vw,62px); line-height: 1.12;
  font-weight: 800; line-height: 1.22; letter-spacing: normal; text-align: right; text-shadow: none;
}
body:not(.is-custom) .screen:not(#customScreen) .categories-titlebar h1::after,
body:not(.is-custom) .screen:not(#customScreen) .categories-titlebar h2::after { content: none; }
body:not(.is-custom) .screen:not(#customScreen) .categories-titlebar p { max-width: 50ch; margin: 14px 0 0; color: var(--r-muted); line-height: 1.85; text-align: right; }

/* Discover — tactile category rows, deliberately unlike the old uniform card grid. */
#categoriesScreen .category-grid {
  width: min(100%,920px); margin-inline: auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px;
}
#categoriesScreen .category-card {
  --category-accent: var(--r-blue);
  position: relative; min-height: 158px; aspect-ratio: auto; display: grid;
  grid-template-columns: 72px minmax(0,1fr); grid-template-rows: auto 1fr auto;
  align-items: center; align-content: stretch; justify-items: stretch; gap: 7px 18px;
  padding: 20px 20px 18px 24px; overflow: hidden; border: 1px solid rgba(16,26,49,.055);
  border-radius: 26px; background: var(--r-surface); color: var(--r-ink); box-shadow: var(--r-up-sm);
  text-align: right; transition: transform 160ms var(--ease-out), box-shadow 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
#categoriesScreen .category-card:nth-child(even) { --category-accent: var(--r-pink); }
#categoriesScreen .category-card--featured {
  grid-column: 1/-1; min-height: 190px; grid-template-columns: 92px minmax(0,1fr);
  padding: 26px 26px 22px 32px; box-shadow: 12px 14px 28px rgba(101,119,148,.22), -12px -12px 28px rgba(255,255,255,.92);
}
#categoriesScreen .category-card::before {
  content: ""; position: absolute; inset: 0 22px auto; width: auto; height: 2px; padding: 0;
  border-radius: 0 0 2px 2px; background: linear-gradient(90deg,transparent,var(--category-accent),transparent); -webkit-mask: none; mask: none; animation: none; opacity: .8;
}
#categoriesScreen .category-card::after {
  content: ""; position: absolute; inset: auto auto -55px -55px; width: 120px; height: 120px;
  border: 18px solid color-mix(in srgb,var(--category-accent) 7%,transparent); border-radius: 50%; background: transparent; filter: none; pointer-events: none;
}
#categoriesScreen .category-emoji {
  grid-column: 1; grid-row: 1/-1; width: 72px; height: 72px; margin: 0; place-self: center;
  border-radius: 23px; background: var(--r-surface); color: var(--category-accent); box-shadow: var(--r-down);
}
#categoriesScreen .category-card--featured .category-emoji { width: 88px; height: 88px; border-radius: 28px; }
#categoriesScreen .category-emoji svg { width: 38px; height: 38px; filter: none; }
#categoriesScreen .category-card strong { color: var(--r-ink); font-size: clamp(20px,2.4vw,26px); line-height: 1.4; font-weight: 800; text-shadow: none; }
#categoriesScreen .category-card__meta { grid-column: 2; grid-row: 1; min-height: 24px; color: var(--r-muted); font-size: 12px; font-weight: 750; }
#categoriesScreen .category-card__body { grid-column: 2; grid-row: 2; display: grid; align-content: center; gap: 5px; }
#categoriesScreen .category-card__body small { max-width: 48ch; color: var(--r-muted); font-size: 13px; line-height: 1.75; }
#categoriesScreen .category-card__footer { grid-column: 2; grid-row: 3; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--r-muted); font-size: 12px; }
#categoriesScreen .category-card__footer b { color: inherit; font-weight: 700; }
#categoriesScreen .category-card__footer i {
  min-height: 34px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 12px;
  background: var(--r-surface); color: var(--category-accent); box-shadow: var(--r-up-sm); font-style: normal; font-weight: 900;
}
#categoriesScreen .category-badge {
  position: static; min-height: 24px; padding: 0 9px; border: 0; border-radius: 8px;
  background: color-mix(in srgb,var(--category-accent) 9%,var(--r-surface)); color: var(--category-accent); box-shadow: none; backdrop-filter: none;
}
#categoriesScreen .category-card--locked { --category-accent: var(--r-pink); opacity: 1; box-shadow: var(--r-down); }
#categoriesScreen .category-card--locked .category-card__footer { color: var(--r-pink); }
#categoriesScreen .category-card:focus-visible, #homeScreen button:focus-visible, #modesScreen button:focus-visible, #profileScreen button:focus-visible { outline: 3px solid var(--r-blue); outline-offset: 4px; }

/* Together hub */
#modesScreen .together-intro { width: min(100%,920px); display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 0 auto 24px; }
#modesScreen .together-card { min-height: 190px; display: grid; align-content: start; gap: 9px; padding: 22px; border-radius: 24px; background: var(--r-surface); color: var(--r-ink); box-shadow: var(--r-up-sm); text-align: right; }
#modesScreen .together-card.selected { box-shadow: var(--r-down); }
#modesScreen .together-card-featured { grid-column: span 2; }
#modesScreen .together-card > span { color: var(--r-pink); font-size: 12px; font-weight: 900; }
#modesScreen .together-intro strong { font-size: 19px; }
#modesScreen .together-intro small { color: var(--r-muted); line-height: 1.7; }
#modesScreen .together-card b { margin-top: auto; color: var(--r-blue); font-size: 13px; }
#modesScreen .mode-tabs, #modesScreen .mode-builder, #modesScreen .challenge-share-panel, #modesScreen .live-mode-banner { width: min(100%,920px); margin-inline: auto; }
body:not(.is-custom) .screen:not(#customScreen) .mode-tabs { padding: 7px; border-radius: 18px; background: var(--r-surface); box-shadow: var(--r-down); }
body:not(.is-custom) .screen:not(#customScreen) .mode-tabs button { border-radius: 13px; }
body:not(.is-custom) .screen:not(#customScreen) .mode-tabs button.active { background: var(--r-surface); color: var(--r-blue); box-shadow: var(--r-up-sm); }
body:not(.is-custom) .screen:not(#customScreen) .mode-builder,
body:not(.is-custom) .screen:not(#customScreen) .challenge-share-panel,
body:not(.is-custom) .screen:not(#customScreen) .engagement-settings-card,
body:not(.is-custom) .screen:not(#customScreen) .live-join-box { padding: 26px; border: 0; border-radius: 28px; background: var(--r-surface); box-shadow: var(--r-up); }
body:not(.is-custom) .screen:not(#customScreen) .field input,
body:not(.is-custom) .screen:not(#customScreen) .field select,
body:not(.is-custom) .screen:not(#customScreen) .engagement-field select { border: 0; border-radius: 16px; background: var(--r-surface); box-shadow: var(--r-down); }
body:not(.is-custom) .screen:not(#customScreen) .primary { min-height: 56px; border-radius: 17px; background: var(--r-ink); box-shadow: 8px 9px 18px rgba(16,26,49,.22), -6px -6px 16px white; }

/* Together builder — reset the remaining legacy range/banner treatment. */
body:not(.is-custom) :is(#modesScreen,#liveRoomScreen) .count-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 18px;
  padding: 16px 18px;
  border-radius: 19px;
  background: var(--r-surface);
  box-shadow: var(--r-down);
}
body:not(.is-custom) :is(#modesScreen,#liveRoomScreen) .count-field > span {
  color: var(--r-ink);
  font-size: 14px;
  font-weight: 800;
}
body:not(.is-custom) :is(#modesScreen,#liveRoomScreen) .count-field > strong {
  min-width: 76px;
  padding: 5px 10px;
  border-radius: 10px;
  background: var(--r-surface);
  color: var(--r-blue);
  box-shadow: var(--r-up-sm);
  font-size: 14px;
  text-align: center;
}
body:not(.is-custom) :is(#modesScreen,#liveRoomScreen) .count-field input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--r-blue);
  appearance: none;
  -webkit-appearance: none;
}
body:not(.is-custom) :is(#modesScreen,#liveRoomScreen) .count-field input[type="range"]::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 999px;
  background: color-mix(in srgb,var(--r-blue) 22%,var(--r-surface));
  box-shadow: inset 2px 2px 5px rgba(101,119,148,.22), inset -2px -2px 5px rgba(255,255,255,.72);
}
body:not(.is-custom) :is(#modesScreen,#liveRoomScreen) .count-field input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -7.5px;
  border: 5px solid var(--r-surface);
  border-radius: 50%;
  background: var(--r-blue);
  box-shadow: 3px 4px 9px rgba(16,26,49,.22);
  appearance: none;
  -webkit-appearance: none;
}
body:not(.is-custom) :is(#modesScreen,#liveRoomScreen) .count-field input[type="range"]::-moz-range-track {
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb,var(--r-blue) 22%,var(--r-surface));
}
body:not(.is-custom) :is(#modesScreen,#liveRoomScreen) .count-field input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 4px solid var(--r-surface);
  border-radius: 50%;
  background: var(--r-blue);
  box-shadow: 3px 4px 9px rgba(16,26,49,.22);
}
body:not(.is-custom) #modesScreen .live-mode-banner {
  min-height: 104px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 20px;
  border: 0;
  border-radius: 24px;
  background: var(--r-surface);
  color: var(--r-ink);
  box-shadow: var(--r-up-sm);
  text-align: right;
  transition: transform 120ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
body:not(.is-custom) #modesScreen .live-mode-banner::after {
  content: "ساخت اتاق ←";
  color: var(--r-blue);
  font-size: 13px;
  font-weight: 900;
}
body:not(.is-custom) #modesScreen .live-mode-banner > .dazzle-icon {
  width: 58px;
  height: 58px;
  padding: 14px;
  border-radius: 18px;
  background: var(--r-surface);
  color: var(--r-blue);
  box-shadow: var(--r-down);
}
body:not(.is-custom) #modesScreen .live-mode-banner strong { color: var(--r-ink); }
body:not(.is-custom) #modesScreen .live-mode-banner small { color: var(--r-muted); }
body:not(.is-custom) #modesScreen .live-mode-banner:active { transform: scale(.985); box-shadow: var(--r-down); }

/* Profile hub */
#profileScreen .profile-hero { width: min(100%,920px); grid-template-columns: auto 1fr; grid-template-rows: repeat(4,auto); justify-items: start; column-gap: 26px; padding: 30px; margin: 0 auto 24px; border-radius: 30px; background: var(--r-surface); box-shadow: var(--r-up); }
#profileScreen .avatar { grid-row: 1/5; width: 126px; height: 126px; border: 7px solid var(--r-surface); border-radius: 34px; box-shadow: var(--r-up-sm); }
#profileScreen .avatar:not(:has(img)) { background: var(--r-surface); color: var(--r-blue); box-shadow: var(--r-down); }
#profileScreen .avatar:not(:has(img))::before { content: none; }
#profileScreen .level-progress { width: min(360px,100%); box-shadow: var(--r-down); }
#profileScreen .profile-card, #profileScreen .profile-menu, #profileScreen .badges, #profileScreen .profile-section-title { width: min(100%,920px); margin-inline: auto; }
#profileScreen .profile-card { border: 0; border-radius: 26px; background: var(--r-surface); box-shadow: var(--r-up); }
#profileScreen .profile-dna-feature { width: min(100%,920px); min-height: 130px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin: 0 auto 24px; padding: 22px; border-radius: 28px; background: var(--r-surface); color: var(--r-ink); box-shadow: var(--r-up); text-align: right; }
#profileScreen .profile-dna-mark { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 22px; color: var(--r-pink); box-shadow: var(--r-down); }
#profileScreen .profile-dna-feature small, #profileScreen .profile-dna-feature strong, #profileScreen .profile-dna-feature p { display: block; margin: 0; }
#profileScreen .profile-dna-feature small { color: var(--r-blue); font-weight: 800; }
#profileScreen .profile-dna-feature strong { margin-top: 3px; font-size: 21px; }
#profileScreen .profile-dna-feature p { margin-top: 5px; color: var(--r-muted); font-size: 13px; }
#profileScreen .profile-dna-feature > b { color: var(--r-blue); font-size: 26px; }
#profileScreen .profile-menu { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; overflow: visible; padding: 0; background: transparent; box-shadow: none; }
#profileScreen .profile-menu section { overflow: hidden; border-radius: 22px; background: var(--r-surface); box-shadow: var(--r-down); }
#profileScreen .profile-menu h3 { margin: 0; padding: 17px 17px 9px; color: var(--r-muted); font-size: 12px; }
#profileScreen .profile-menu button {
  min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 7px 10px; padding: 0 15px; border: 0; border-radius: 15px;
  background: var(--r-surface); color: var(--r-ink); box-shadow: var(--r-up-sm);
  text-align: right; transition: transform 120ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
#profileScreen .profile-menu button b {
  width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto;
  border-radius: 10px; background: var(--r-surface); color: var(--r-blue); box-shadow: var(--r-down);
  font-size: 18px; transform: none;
}
#profileScreen .profile-menu button:active { transform: scale(.985); box-shadow: var(--r-down); }
#profileScreen .profile-menu section { padding-bottom: 5px; box-shadow: var(--r-up-sm); }

/* Profile palette and badge cards — no legacy purple/medal gradients. */
body:not(.is-custom) #profileScreen .level-chip {
  background: color-mix(in srgb,var(--r-blue) 10%,var(--r-surface));
  color: var(--r-blue);
}
body:not(.is-custom) #profileScreen .level-progress span { background: var(--r-blue); }
body:not(.is-custom) #profileScreen .score-icon {
  border-radius: 17px; background: var(--r-surface); color: var(--r-blue); box-shadow: var(--r-down);
}
body:not(.is-custom) #profileScreen .score-icon.flame { background: var(--r-surface); color: var(--r-pink); }
body:not(.is-custom) #profileScreen .profile-stats > div > span {
  border-radius: 12px; background: var(--r-surface); color: var(--r-blue); box-shadow: var(--r-down);
}
body:not(.is-custom) #profileScreen .badges {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 28px;
}
body:not(.is-custom) #profileScreen .badge {
  min-width: 0; min-height: 154px; align-content: center; gap: 14px; padding: 18px 10px;
  border-radius: 22px; background: var(--r-surface); color: var(--r-ink); box-shadow: var(--r-up-sm);
  opacity: 1;
}
body:not(.is-custom) #profileScreen .badge > .badge-emblem {
  width: 76px; height: 76px; border: 0; border-radius: 23px;
  background: var(--r-surface); color: var(--r-blue); box-shadow: var(--r-down);
}
body:not(.is-custom) #profileScreen .badge:nth-child(even) > .badge-emblem { color: var(--r-pink); }
body:not(.is-custom) #profileScreen .badge.locked { color: var(--r-muted); box-shadow: var(--r-down); }
body:not(.is-custom) #profileScreen .badge.locked > .badge-emblem {
  background: var(--r-surface); color: var(--r-muted); box-shadow: var(--r-down); filter: none; opacity: .62;
}
body:not(.is-custom) #profileScreen .badge strong {
  max-width: 12ch; color: currentColor; font-size: 14px; line-height: 1.55; text-wrap: balance;
}
body:not(.is-custom) #profileScreen .badge.pop > .badge-emblem { animation: badge-pop 420ms var(--ease-out); }

/* Decision Arena — complete reset of legacy absolute split screen */
@media not all {
body.is-game { background: var(--r-bg); }
body.is-game .app-shell { width: 100%; }
body.is-game #gameScreen { min-height: 100dvh; background: var(--r-bg); }
body.is-game .game {
  position: relative; width: 100%; height: 100dvh; min-height: 560px; display: grid; grid-template-rows: auto minmax(0,1fr) auto auto;
  padding: max(18px,env(safe-area-inset-top)) clamp(16px,3vw,34px) max(18px,env(safe-area-inset-bottom));
  overflow: hidden; background: var(--r-bg); color: var(--r-ink);
}
body.is-game .decision-head { z-index: 5; width: min(100%,760px); display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 16px; margin: 0 auto 12px; }
body.is-game .decision-head > div { text-align: center; }
body.is-game .decision-head span { color: var(--r-muted); font-size: 12px; font-weight: 800; }
body.is-game .game-title { position: static; margin: 2px 0 0; color: var(--r-ink); font-size: 18px; text-shadow: none; }
body.is-game .round-btn { position: static; width: 48px; height: 48px; border-radius: 15px; background: var(--r-surface); color: var(--r-ink); box-shadow: var(--r-up-sm); }
body.is-game .decision-arena {
  position: relative; isolation: isolate; width: min(100%,760px); min-height: 390px; height: 100%; margin: 0 auto;
  perspective: 1000px;
}
body.is-game .choice {
  position: absolute; inset-inline: clamp(6px,2vw,18px); width: auto; height: 55%; min-height: 0; display: grid;
  grid-template-columns: auto minmax(0,1fr) auto; grid-template-rows: 1fr; align-items: center; justify-items: start; gap: 18px;
  padding: clamp(24px,5vw,52px); overflow: hidden; border: 0; color: white; text-align: right;
  transition: transform 420ms var(--ease-in-out), opacity 180ms var(--ease-out), filter 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
body.is-game #choiceA {
  top: 1%; z-index: 2; border-radius: 34px 34px 76px 42px;
  background: linear-gradient(145deg,var(--r-pink-2),var(--r-pink));
  box-shadow: 14px 18px 34px rgba(255,0,106,.22), -8px -8px 22px white;
  transform: rotate(-.7deg); animation: stackedTopIn 260ms var(--ease-out) both;
}
body.is-game #choiceB {
  bottom: 1%; z-index: 1; border-radius: 76px 42px 34px 34px;
  background: linear-gradient(145deg,color-mix(in srgb,var(--r-cyan) 62%,#003b73),var(--r-blue));
  box-shadow: 14px -12px 34px rgba(0,116,255,.2), -8px 10px 22px white;
  transform: rotate(.7deg); animation: stackedBottomIn 260ms 45ms var(--ease-out) backwards;
}
body.is-game .choice-letter { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 14px; background: rgba(255,255,255,.13); font-weight: 900; }
body.is-game .choice-text { width: 100%; min-width: 0; max-width: 16ch; margin: 0; color: white; font-size: clamp(1.375rem,1.05rem + 1.65vw,2.5rem); line-height: 1.5; font-weight: 800; overflow-wrap: normal; word-break: normal; hyphens: none; text-wrap: balance; text-align: right; text-shadow: none; transform: none; transition: none; }
body.is-game .result-stack { position: absolute; inset: 50% auto auto 50%; z-index: 4; width: 72px; height: 72px; display: grid; place-items: center; pointer-events: none; transform: translate(-50%,-50%); }
body.is-game .or-badge { position: static; width: 64px; height: 64px; display: grid; place-items: center; border: 0; background: var(--r-surface); color: var(--r-ink); box-shadow: var(--r-up); transform: none; }
body.is-game .or-badge:disabled { opacity: 1; cursor: default; }
body.is-game .vote-tip { position: static; width: auto; min-width: 0; max-width: none; padding: 0; border: 0; background: transparent; color: white; box-shadow: none; opacity: 0; transform: translateY(8px); font-size: clamp(20px,3vw,34px); font-weight: 900; }
body.is-game .vote-tip::after { content: none; }
body.is-game .choice:disabled { opacity: 1; cursor: default; }
body.is-game .game.answered #choiceA { transform: translateY(-18px) rotate(-1.2deg); }
body.is-game .game.answered #choiceB { transform: translateY(18px) rotate(1.2deg); }
body.is-game .game.answered.picked-a #choiceB, body.is-game .game.answered.picked-b #choiceA { opacity: .68; filter: saturate(.6); }
body.is-game .game.answered.picked-a #choiceA { transform: translateY(-22px) rotate(-1.2deg); }
body.is-game .game.answered.picked-b #choiceB { transform: translateY(22px) rotate(1.2deg); }
body.is-game .game.answered .vote-tip { opacity: 1; transform: translateY(0); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
body.is-game .game.answered #choiceA .choice-text,
body.is-game .game.answered #choiceB .choice-text { transform: none; }
body.is-game .game.answered .result-stack { pointer-events: auto; }
body.is-game .game.answered .or-badge { width: 76px; height: 76px; display: flex; flex-direction: column; gap: 0; background: var(--r-ink); color: white; font-size: 15px; line-height: 1.2; transform: scale(1.04); animation: none; cursor: pointer; transition: transform 220ms var(--ease-out), background-color 180ms ease; }
body.is-game .game.answered .or-badge b { font-size: 20px; line-height: 1; }
body.is-game .game.answered .or-badge:active { transform: scale(.96); }
body.is-game .result-summary { width: min(100%,760px); min-height: 0; margin: 6px auto 0; color: var(--r-ink); font-size: clamp(18px,2.5vw,26px); font-weight: 900; text-align: center; opacity: 0; transform: translateY(6px); }
body.is-game .game.answered .result-summary { min-height: 32px; opacity: 1; transform: translateY(0); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
body.is-game .decision-dock { z-index: 6; width: min(100%,760px); min-height: 64px; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 10px; margin: 4px auto 0; }
body.is-game .question-feedback { position: static; min-height: 54px; padding: 6px; border-radius: 18px; background: var(--r-surface); box-shadow: var(--r-down); transform: none; animation: dockIn 220ms var(--ease-out) both; }
body.is-game .question-feedback button { border-color: transparent; background: var(--r-surface); color: var(--r-muted); box-shadow: var(--r-up-sm); backdrop-filter: none; }
body.is-game #likeQuestion { color: #16834f; }
body.is-game #dislikeQuestion { color: #c92f49; }
body.is-game #likeQuestion.active { background: #dff6e9; color: #08733e; box-shadow: inset 4px 4px 9px rgba(8,115,62,.18), inset -4px -4px 9px white; }
body.is-game #dislikeQuestion.active { background: #ffe3e7; color: #b51f3a; box-shadow: inset 4px 4px 9px rgba(181,31,58,.16), inset -4px -4px 9px white; }
body.is-game .next-float,
body.is-game .next-float.show { display: none; }
body.is-game .choice:focus-visible { outline: 3px solid white; outline-offset: 4px; }
body.is-game :is(.round-btn,.or-badge,.question-feedback button):focus-visible { outline: 3px solid #004d99; outline-offset: 4px; }
body.is-game .round-btn:disabled { opacity: .38; box-shadow: var(--r-down); }
body.is-game .floating-actions { display: none; }
}
body:not(.is-custom) :is(.xp-value,#likeCount,#dislikeCount,#liveParticipantCount,#liveTimer,#liveStep,#challengeStep,.live-percent,.vote-tip,.profile-xp,.profile-streak,.profile-rank,.leaderboard-row>b,.podium-medal) { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1,"lnum" 1; unicode-bidi: isolate; }
body:not(.is-custom) #liveCodeLabel { direction: ltr; unicode-bidi: isolate; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
body:not(.is-custom) :is(button,a,input,select,textarea):focus-visible { outline: 3px solid #004d99; outline-offset: 4px; }
body:not(.is-custom) :is(button,input,select,textarea):disabled { opacity: .48; cursor: not-allowed; }
body:not(.is-custom) :is(#liveRoomCode,#challengeLink) { direction: ltr; unicode-bidi: plaintext; }

/* Secondary journeys: one system, distinct information shapes */
body:not(.is-custom) :is(#liveRoomScreen,#leaderboardScreen,#dnaScreen,#badgesScreen,#submissionsScreen,#engagementScreen) > :not(.categories-header) {
  width: min(100%,920px); margin-inline: auto;
}
body:not(.is-custom) :is(.live-room-builder,.live-lobby,.live-code-card,.leaderboard-podium,.dna-card,.badge-detail,.submission-row,.engagement-settings-card) {
  border: 0; background: var(--r-surface); color: var(--r-ink); box-shadow: var(--r-up); backdrop-filter: none;
}
body:not(.is-custom) .live-room-builder { display: grid; gap: 18px; padding: clamp(22px,4vw,36px); border-radius: 30px; }
body:not(.is-custom) .live-mode-picks { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
body:not(.is-custom) .live-mode-picks button { min-height: 110px; border-radius: 22px; background: var(--r-surface); color: var(--r-ink); box-shadow: var(--r-up-sm); }
body:not(.is-custom) .live-mode-picks button.active { color: var(--r-blue); box-shadow: var(--r-down); }
body:not(.is-custom) .live-code-card { padding: 26px; border-radius: 28px; text-align: center; }
body:not(.is-custom) .live-code-card > strong { font-size: clamp(34px,8vw,64px); color: var(--r-blue); }
body:not(.is-custom) .live-participants { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 10px; }
body:is(.is-challenge,.is-live-playing) .challenge-game-shell {
  position: relative; inset: auto; width: min(100%,920px); min-height: min(760px,calc(100dvh - 36px)); display: grid;
  grid-template-rows: auto minmax(190px,1fr) 58px minmax(190px,1fr) auto; gap: 12px; margin: 18px auto; padding: 18px;
  overflow: hidden; border-radius: 34px; background: var(--r-bg); box-shadow: var(--r-up); color: var(--r-ink);
}
body:is(.is-challenge,.is-live-playing) .challenge-game-title { position: static; color: var(--r-ink); text-shadow: none; }
body:is(.is-challenge,.is-live-playing) .challenge-choice {
  position: relative; inset: auto; width: 100%; height: auto; min-height: 0; padding: clamp(24px,5vw,48px); border: 0; border-radius: 28px;
  clip-path: none; transform: none; color: white; text-align: right;
}
body:is(.is-challenge,.is-live-playing) .challenge-choice.choice-top { background: linear-gradient(145deg,var(--r-pink-2),var(--r-pink)); box-shadow: 12px 14px 30px rgba(255,0,106,.2); }
body:is(.is-challenge,.is-live-playing) .challenge-choice.choice-bottom { background: linear-gradient(145deg,var(--r-cyan),var(--r-blue)); box-shadow: 12px 14px 30px rgba(0,116,255,.2); }
body:is(.is-challenge,.is-live-playing) .challenge-choice p { max-width: 28ch; margin: 0; color: white; font-size: clamp(22px,4vw,38px); line-height: 1.5; font-weight: 800; text-shadow: none; }
body:is(.is-challenge,.is-live-playing) .challenge-or { position: static; height: 58px; display: grid; place-items: center; transform: none; }
body:is(.is-challenge,.is-live-playing) .challenge-or span { position: static; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: var(--r-surface); color: var(--r-ink); box-shadow: var(--r-up-sm); }
body:is(.is-challenge,.is-live-playing) :is(.challenge-floating-actions,.live-round-status,.live-host-action) { position: static; transform: none; }

body:not(.is-custom) #leaderboardScreen .leaderboard-podium { display: grid; grid-template-columns: repeat(3,1fr); align-items: end; gap: 14px; padding: 26px; border-radius: 30px; }
body:not(.is-custom) #leaderboardScreen .podium-card { border: 0; border-radius: 24px; background: transparent; box-shadow: none; }
body:not(.is-custom) #leaderboardScreen .place-1 { min-height: 250px; background: color-mix(in srgb,var(--r-pink) 7%,var(--r-surface)); box-shadow: var(--r-down); }
body:not(.is-custom) #leaderboardScreen .leaderboard-table-head { padding: 24px 18px 10px; color: var(--r-muted); }
body:not(.is-custom) #leaderboardScreen .leaderboard-list { overflow: hidden; border-radius: 24px; background: var(--r-surface); box-shadow: var(--r-down); }
body:not(.is-custom) #leaderboardScreen .leaderboard-row { display: grid; grid-template-columns: 40px 48px 1fr auto; gap: 12px; padding: 15px 18px; border: 0; border-bottom: 1px solid rgba(105,117,139,.12); background: transparent; box-shadow: none; }
body:not(.is-custom) #leaderboardScreen .leaderboard-row.current { background: color-mix(in srgb,var(--r-blue) 7%,var(--r-surface)); }
body:not(.is-custom) .leaderboard-rank { display: grid; place-items: center; color: var(--r-muted); font-weight: 800; }
body:not(.is-custom) .leaderboard-name { overflow: hidden; }
body:not(.is-custom) .leaderboard-name span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; animation: none !important; transform: none !important; }

body:not(.is-custom) #dnaScreen .dna-card { padding: clamp(26px,5vw,48px); border-radius: 34px; text-align: right; }
body:not(.is-custom) #dnaScreen .dna-orbit { color: var(--r-pink); box-shadow: var(--r-down); animation: none; }
body:not(.is-custom) #dnaScreen .dna-traits { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 12px; }
body:not(.is-custom) #dnaScreen .dna-trait { border: 0; border-radius: 19px; background: var(--r-surface); box-shadow: var(--r-down); }

body:not(.is-custom) #badgesScreen .badge-list { display: grid; gap: 14px; }
body:not(.is-custom) #badgesScreen .badge-detail {
  display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 18px; padding: 20px; border: 0; border-radius: 24px;
  background: var(--r-surface); color: var(--r-ink); box-shadow: var(--r-up-sm);
}
body:not(.is-custom) #badgesScreen .badge-detail.locked { opacity: 1; box-shadow: var(--r-down); }
body:not(.is-custom) #badgesScreen .badge-medal {
  width: 72px; height: 72px; display: grid; place-items: center; border: 0; border-radius: 22px;
  background: var(--r-surface); color: var(--r-blue); box-shadow: var(--r-down);
}
body:not(.is-custom) #badgesScreen .badge-detail:nth-child(even) .badge-medal { color: var(--r-pink); }
body:not(.is-custom) #badgesScreen .badge-detail.locked .badge-medal {
  background: var(--r-surface); color: var(--r-muted); box-shadow: var(--r-down); filter: none; opacity: .65;
}
body:not(.is-custom) #badgesScreen .badge-copy strong { color: var(--r-ink); }
body:not(.is-custom) #badgesScreen .badge-copy small { color: var(--r-muted); }
body:not(.is-custom) #badgesScreen .badge-copy i,
body:not(.is-custom) #homeScreen .mission-row i { overflow: hidden; background: var(--r-surface); box-shadow: var(--r-down); }
body:not(.is-custom) #badgesScreen .badge-copy i b { background: var(--r-blue); }

body:not(.is-custom) #submissionsScreen .submission-list { display: grid; gap: 14px; }
body:not(.is-custom) #submissionsScreen .submission-row { position: relative; padding: 24px 24px 24px 32px; border-radius: 24px; }
body:not(.is-custom) #submissionsScreen .submission-row::before { content:""; position:absolute; inset: 0 24px auto; height: 2px; border-radius: 2px; background: linear-gradient(90deg,transparent,var(--r-muted),transparent); }
body:not(.is-custom) #submissionsScreen .status-approved::before { background: var(--r-blue); }
body:not(.is-custom) #submissionsScreen .status-rejected::before { background: var(--r-pink); }
body:not(.is-custom) #submissionsScreen .status-pending { box-shadow: var(--r-down); }

body:not(.is-custom) #engagementScreen .engagement-settings-card { padding: clamp(24px,4vw,38px); border-radius: 30px; }
body:not(.is-custom) #engagementScreen .engagement-toggle-row { border: 0; background: transparent; box-shadow: none; }

body:not(.is-custom) .share-sheet { background: rgba(16,26,49,.32); backdrop-filter: blur(8px); transition: opacity 180ms ease; }
body:not(.is-custom) .share-card,
body:not(.is-custom) .sponsor-card { border: 0; border-radius: 30px 30px 0 0; background: var(--r-surface); color: var(--r-ink); box-shadow: 0 -18px 50px rgba(16,26,49,.18); }
body:not(.is-custom) .share-card > button,
body:not(.is-custom) .sponsor-card > button { min-height: 54px; border-radius: 16px; }
body:not(.is-custom) .sponsor-free { background: transparent; color: var(--r-blue); box-shadow: none; }

@media (max-width:720px) {
  body:not(.is-custom) #leaderboardScreen .leaderboard-podium { padding: 14px; gap: 7px; }
  body:not(.is-custom) #leaderboardScreen .place-1 { min-height: 210px; }
  body:not(.is-custom) #leaderboardScreen .leaderboard-row { grid-template-columns: 28px 42px 1fr auto; padding-inline: 12px; }
  body:not(.is-custom) .live-mode-picks { grid-template-columns: 1fr; }
}

/* New dock/navigation */
body:not(.is-game):not(.is-challenge):not(.is-custom) nav.bottom-nav {
  right: 50%; bottom: max(14px,env(safe-area-inset-bottom)); left: auto; width: min(520px,calc(100% - 28px)); height: 78px;
  min-height: 78px; padding: 9px; gap: 5px; overflow: visible; border: 0; border-radius: 25px;
  background: var(--r-surface); box-shadow: var(--r-up); backdrop-filter: none; transform: translateX(50%);
}
body:not(.is-game):not(.is-challenge):not(.is-custom) nav.bottom-nav .nav-glow { display: none; }
body:not(.is-game):not(.is-challenge):not(.is-custom) nav.bottom-nav .nav-active-indicator { top: 9px; height: 60px; border: 0; border-radius: 18px; background: var(--r-surface); box-shadow: var(--r-down); }
body:not(.is-game):not(.is-challenge):not(.is-custom) nav.bottom-nav .nav-item { min-height: 60px; color: var(--r-muted); }
body:not(.is-game):not(.is-challenge):not(.is-custom) nav.bottom-nav .nav-item.active { color: var(--r-blue); }
body:not(.is-game):not(.is-challenge):not(.is-custom) nav.bottom-nav .nav-start svg { color: var(--r-pink); }

/* Screen and list motion */
body:not(.is-custom) .screen.screen-entering > * { animation: screenContentIn 220ms var(--ease-out) both; }
body:not(.is-custom) .category-card.list-entering,
body:not(.is-custom) .mission-row.list-entering,
body:not(.is-custom) .leaderboard-row.list-entering { animation: listItemIn 180ms var(--ease-out) both; animation-delay: calc(var(--enter-index,0) * 40ms); }

@keyframes previewOrbitA {
  0%,100% { z-index: 2; transform: translate3d(0,0,0) rotate(8deg) scale(1); }
  25% { z-index: 1; transform: translate3d(-32%,-5%,0) rotate(-2deg) scale(.94); }
  50% { z-index: 1; transform: translate3d(-48%,42%,0) rotate(-7deg) scale(.9); }
  75% { z-index: 3; transform: translate3d(-12%,52%,0) rotate(2deg) scale(.97); }
}
@keyframes previewOrbitB {
  0%,100% { z-index: 3; transform: translate3d(0,0,0) rotate(-7deg) scale(1); }
  25% { z-index: 3; transform: translate3d(32%,5%,0) rotate(2deg) scale(.97); }
  50% { z-index: 2; transform: translate3d(48%,-42%,0) rotate(8deg) scale(.9); }
  75% { z-index: 1; transform: translate3d(12%,-52%,0) rotate(-2deg) scale(.94); }
}
@keyframes arenaEnter { from { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes stackedTopIn { from { opacity: 0; transform: translate3d(0,-22px,0) rotate(-3deg) scale(.97); } }
@keyframes stackedBottomIn { from { opacity: 0; transform: translate3d(0,22px,0) rotate(3deg) scale(.97); } }
@keyframes dockIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes screenContentIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes listItemIn { from { opacity: 0; transform: translateY(8px); } }

@media (hover:hover) and (pointer:fine) {
  #categoriesScreen .category-card:hover { transform: translateY(-3px); box-shadow: 15px 15px 32px rgba(101,119,148,.3), -14px -14px 32px white; }
  #homeScreen .social-actions button:hover, #profileScreen .profile-menu button:hover { transform: translateY(-2px); }
}

@media (max-width: 720px) {
  #homeScreen .activation-stage { min-height: auto; grid-template-columns: 1fr; gap: 34px; }
  #homeScreen .activation-copy h1 { font-size: clamp(44px,13vw,62px); }
  #homeScreen .decision-preview { height: 310px; }
  #homeScreen .social-launcher { grid-template-columns: 1fr; align-items: start; }
  #homeScreen .mission-list { grid-template-columns: 1fr; }
  #homeScreen .module-heading { align-items: start; flex-direction: column; }
  #categoriesScreen .category-grid { grid-template-columns: 1fr; gap: 14px; }
  #categoriesScreen .category-card,
  #categoriesScreen .category-card--featured { grid-column: 1; min-height: 150px; grid-template-columns: 68px minmax(0,1fr); padding: 18px 18px 16px 22px; }
  #categoriesScreen .category-card--featured { min-height: 174px; }
  #categoriesScreen .category-card--featured .category-emoji { width: 72px; height: 72px; border-radius: 23px; }
  #modesScreen .together-intro { grid-template-columns: 1fr; }
  #modesScreen .together-card, #modesScreen .together-card-featured { grid-column: auto; min-height: 124px; }
  #profileScreen .profile-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  #profileScreen .avatar { grid-row: auto; }
  #profileScreen .profile-menu { grid-template-columns: 1fr; }
  body:not(.is-custom) #modesScreen .live-mode-banner { grid-template-columns: 52px 1fr; gap: 14px; }
  body:not(.is-custom) #modesScreen .live-mode-banner::after { grid-column: 2; justify-self: start; }
  body.is-game .game { padding-inline: 12px; }
  body.is-game .decision-head { margin-bottom: 8px; }
  body.is-game .decision-arena { min-height: 0; height: 100%; }
  body.is-game .result-stack { width: 64px; height: 64px; }
  body.is-game .or-badge { width: 58px; height: 58px; }
  body.is-game .choice { inset-inline: 5px; min-height: 0; padding: 20px 22px; grid-template-columns: auto minmax(0,1fr) auto; grid-template-rows: 1fr; justify-items: start; gap: 12px; }
  body.is-game #choiceA { border-radius: 28px 28px 64px 38px; }
  body.is-game #choiceB { border-radius: 64px 38px 28px 28px; }
  body.is-game .choice-text { max-width: none; font-size: clamp(22px,6.5vw,31px); }
  body.is-game .vote-tip { justify-self: end; font-size: 16px; }
  body.is-game .decision-dock { display: grid; grid-template-columns: 1fr; min-height: 58px; }
  body.is-game .question-feedback { order: 2; justify-self: center; }
  body.is-game .next-float { order: 1; width: 100%; min-width: 0; min-height: 52px; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  body.is-game .choice,
  body.is-game .game.answered #choiceA,
  body.is-game .game.answered #choiceB,
  body.is-game .game.answered.picked-a #choiceA,
  body.is-game .game.answered.picked-b #choiceB { transform: none; transition: opacity 180ms ease, filter 180ms ease; }
}

@media (max-height:700px) {
  body.is-game .game { padding-block: 10px; }
  body.is-game .decision-head { margin-bottom: 8px; }
  body.is-game .choice { padding: 16px 20px; }
  body.is-game .choice-text { font-size: clamp(19px,5.5vw,26px); }
  body.is-game .result-summary { margin-top: 4px; font-size: 18px; }
  body.is-game .decision-dock { min-height: 56px; margin-top: 2px; }
}

@media (max-width: 390px) {
  #homeScreen .activation-actions { align-items: stretch; flex-direction: column; }
  #homeScreen .activation-actions button { justify-content: center; }
  #homeScreen .social-actions { align-items: stretch; flex-direction: column; }
  #categoriesScreen .category-grid { grid-template-columns: 1fr; gap: 12px; }
  #categoriesScreen .category-card, #categoriesScreen .category-card--featured { min-height: 142px; grid-template-columns: 58px minmax(0,1fr); gap: 5px 13px; padding: 16px 16px 14px 20px; border-radius: 22px; }
  #categoriesScreen .category-card--featured { min-height: 160px; }
  #categoriesScreen .category-emoji,
  #categoriesScreen .category-card--featured .category-emoji { width: 58px; height: 58px; border-radius: 19px; }
  #categoriesScreen .category-emoji svg { width: 31px; height: 31px; }
  #categoriesScreen .category-card__footer i { min-height: 32px; padding-inline: 10px; }
  body:not(.is-custom) #profileScreen .badges { grid-template-columns: 1fr; }
  body:not(.is-custom) #profileScreen .badge { min-height: 104px; grid-template-columns: 68px 1fr; justify-items: start; text-align: right; padding: 14px 16px; }
  body:not(.is-custom) #profileScreen .badge > .badge-emblem { width: 62px; height: 62px; border-radius: 19px; }
  body:not(.is-custom) #profileScreen .badge strong { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  #homeScreen .preview-choice { animation: none; }
  body:not(.is-custom) .screen.screen-entering > *,
  body:not(.is-custom) .list-entering,
  body.is-game .choice,
  body.is-game .next-float.show { animation: fadeOnly 120ms ease both; transform: none !important; }
  @keyframes fadeOnly { from { opacity: 0; } }
}
