/* Share payoff, daily reward, and the player-authored question route. */

body:not(.is-custom) #shareSheet {
  padding: 14px max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: rgba(10, 24, 49, .58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body:not(.is-custom) #shareSheet .share-card {
  width: min(460px, 100%);
  gap: 16px;
  padding: 10px 18px 18px;
  border: 0;
  border-radius: 30px;
  background: #e9eff7;
  box-shadow: 0 24px 64px rgba(6, 21, 49, .28), inset 0 1px 0 rgba(255, 255, 255, .9);
  transform: translateY(16px) scale(.98);
  opacity: 0;
  transition: transform 240ms cubic-bezier(.32,.72,0,1), opacity 180ms cubic-bezier(.23,1,.32,1);
}

body:not(.is-custom) #shareSheet.show .share-card { transform: translateY(0) scale(1); opacity: 1; }
.share-grabber { width: 42px; height: 5px; margin: 0 auto 2px; border-radius: 99px; background: #c2ccda; }
.share-heading { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 14px; text-align: right; }
.share-heading > div { min-width: 0; }
.share-mark { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 20px; color: #0074ff; background: #e9eff7; box-shadow: 6px 6px 14px rgba(101,119,148,.25), -6px -6px 14px rgba(255,255,255,.9); }
.share-mark .dazzle-icon { width: 28px; height: 28px; }
.share-heading small { color: #0074ff; font-size: 12px; font-weight: 900; }
body:not(.is-custom) #shareSheet .share-heading h3 { margin: 2px 0 0; color: #101a31; font-size: clamp(24px, 7vw, 30px); line-height: 1.25; }
.share-heading p { margin: 5px 0 0; color: #69758b; font-size: 14px; font-weight: 700; line-height: 1.6; }
.share-destinations { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body:not(.is-custom) #shareSheet .share-destinations button {
  min-height: 126px; display: grid; grid-template-columns: 46px 1fr; grid-template-rows: 1fr auto; align-items: center; gap: 10px; padding: 14px;
  border: 0; border-radius: 22px; color: #101a31; text-align: right; background: #e9eff7;
  box-shadow: 7px 7px 17px rgba(101,119,148,.25), -7px -7px 17px rgba(255,255,255,.88);
  transition: transform 120ms cubic-bezier(.23,1,.32,1), box-shadow 180ms cubic-bezier(.23,1,.32,1);
}
.share-action-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; color: #0074ff; box-shadow: inset 4px 4px 10px rgba(101,119,148,.18), inset -4px -4px 10px #fff; }
.share-action-icon .dazzle-icon { width: 23px; height: 23px; }
.share-destinations button > span:nth-child(2) { min-width: 0; }
.share-destinations strong, .share-destinations small { display: block; }
.share-destinations strong { font-size: 16px; font-weight: 900; }
.share-destinations small { margin-top: 3px; color: #69758b; font-size: 11px; line-height: 1.4; }
.share-destinations button > b { grid-column: 1 / -1; color: #0074ff; font-size: 20px; }
body:not(.is-custom) #shareSheet .share-destinations button:active { transform: scale(.975); box-shadow: inset 5px 5px 12px rgba(101,119,148,.2), inset -5px -5px 12px #fff; }
body:not(.is-custom) #shareSheet .share-image-action { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 17px; color: #fff; background: #101a31; box-shadow: 7px 8px 18px rgba(16,26,49,.24); }
body:not(.is-custom) #shareSheet .share-image-action .dazzle-icon { width: 21px; height: 21px; color: #00b8ff; }
body:not(.is-custom) #shareSheet .share-close { min-height: 40px; border: 0; color: #69758b; background: transparent; box-shadow: none; }

#homeScreen .dilemma-box { position: relative; grid-template-columns: 80px 1fr auto; min-height: 104px; padding: 12px 16px 12px 10px; overflow: hidden; }
#homeScreen .dilemma-gift { width: 80px; height: 80px; display: grid; place-items: center; border-radius: 24px; background: #e9eff7; box-shadow: inset 5px 5px 12px rgba(101,119,148,.2), inset -5px -5px 12px rgba(255,255,255,.9); }
#homeScreen .dilemma-gift svg { width: 100% !important; height: 100% !important; }
#homeScreen .dilemma-gift-fallback { width: 31px; height: 31px; color: #0074ff; }
#homeScreen .dilemma-gift.is-loaded .dilemma-gift-fallback { display: none; }
#homeScreen .dilemma-box strong { color: #101a31; font-size: 18px; }
#homeScreen .dilemma-box small { margin-top: 5px; color: #69758b; line-height: 1.55; }
#homeScreen .dilemma-lock-label { align-self: start; padding: 7px 9px; border-radius: 10px; color: #69758b; background: #e9eff7; box-shadow: inset 3px 3px 7px rgba(101,119,148,.18), inset -3px -3px 7px #fff; font-size: 11px; font-weight: 900; }
#homeScreen .dilemma-box.ready .dilemma-lock-label, #homeScreen .dilemma-box.opened .dilemma-lock-label { color: #0074ff; }

body.is-custom { background: #e9eff7; color: #101a31; }
body.is-custom .ambient-background { display: none; }
body.is-custom .app-shell { width: min(720px, 100%); margin-inline: auto; overflow: visible; background: #e9eff7; }
body.is-custom #customScreen {
  min-height: 100dvh; padding: max(22px, env(safe-area-inset-top)) clamp(18px, 5vw, 36px) calc(42px + env(safe-area-inset-bottom)); overflow: clip;
  background: radial-gradient(circle at 92% 4%, rgba(0,184,255,.1), transparent 20rem), radial-gradient(circle at 5% 92%, rgba(255,0,106,.08), transparent 24rem), #e9eff7;
  font-family: "Vazirmatn", Tahoma, sans-serif;
}
body.is-custom #customScreen .categories-header { position: relative; top: auto; min-height: 54px; margin: 0 0 42px; padding: 0; border: 0; background: transparent; box-shadow: none; }
body.is-custom #customScreen .logo-mark { width: 46px; height: 46px; padding: 5px; border: 0; border-radius: 15px; background: #e9eff7; box-shadow: 6px 6px 15px rgba(101,119,148,.22), -6px -6px 15px rgba(255,255,255,.86); }
body.is-custom #customScreen .logo-text { color: #101a31; font-size: 21px; }
body.is-custom #customScreen .xp-chip { min-height: 44px; padding: 6px 9px 6px 14px; border: 0; border-radius: 14px; color: #101a31; background: #e9eff7; box-shadow: 6px 6px 15px rgba(101,119,148,.22), -6px -6px 15px rgba(255,255,255,.86); }
body.is-custom #customScreen .xp-chip span { color: #fff; background: #101a31; }
body.is-custom #customScreen .custom-titlebar { margin: 0 0 24px; text-align: right; }
body.is-custom #customScreen .eyebrow { display: block; margin-bottom: 9px; color: #0074ff; font-size: 12px; font-weight: 900; }
body.is-custom #customScreen .custom-titlebar h2 { max-width: 12ch; margin: 0; color: #101a31; font-size: clamp(32px, 9vw, 48px); font-weight: 950; line-height: 1.2; }
body.is-custom #customScreen .custom-titlebar h2::after { display: none; }
body.is-custom #customScreen .custom-titlebar p { max-width: 38ch; margin: 14px 0 0; color: #69758b; font-size: 15px; font-weight: 700; line-height: 1.75; text-align: right; }
body.is-custom #customForm { display: grid; gap: 18px; padding: 0; border: 0; background: transparent; box-shadow: none; }
body.is-custom #customForm .custom-choice-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
body.is-custom #customForm .custom-choice { min-width: 0; min-height: 178px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 18px; border-radius: 28px; color: #fff; box-shadow: 12px 14px 28px rgba(39,57,89,.2), -8px -8px 20px rgba(255,255,255,.75); }
body.is-custom #customForm .custom-choice-a { background: #ff176d; }
body.is-custom #customForm .custom-choice-b { background: #0788ed; }
body.is-custom #customForm .custom-choice > span { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 900; }
body.is-custom #customForm .custom-choice > span b { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; }
body.is-custom #customForm .custom-choice input { min-width: 0; min-height: 86px; padding: 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 17px; outline: none; color: #fff; background: rgba(16,26,49,.17); box-shadow: inset 4px 5px 12px rgba(16,26,49,.16); font-size: 14px; font-weight: 800; line-height: 1.5; }
body.is-custom #customForm .custom-choice input::placeholder { color: rgba(255,255,255,.75); }
body.is-custom #customForm .custom-choice input:focus { border-color: #fff; box-shadow: inset 4px 5px 12px rgba(16,26,49,.2), 0 0 0 3px rgba(255,255,255,.3); }
body.is-custom #customForm .custom-or { position: absolute; z-index: 2; top: 50%; right: 50%; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #101a31; box-shadow: 0 10px 24px rgba(16,26,49,.28); transform: translate(50%,-50%); font-weight: 950; }
body.is-custom #customForm > .field { display: grid; gap: 9px; color: #101a31; font-weight: 900; }
body.is-custom #customForm > .field select { min-height: 58px; padding: 0 16px; border: 0; border-radius: 18px; outline: none; color: #101a31; background: #e9eff7; box-shadow: inset 6px 6px 14px rgba(101,119,148,.22), inset -6px -6px 14px rgba(255,255,255,.82); }
body.is-custom #customForm > .field select:focus { box-shadow: inset 6px 6px 14px rgba(101,119,148,.22), inset -6px -6px 14px rgba(255,255,255,.82), 0 0 0 3px rgba(0,116,255,.28); }
body.is-custom #customForm .primary { min-height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border: 0; border-radius: 19px; color: #fff; background: #101a31; box-shadow: 8px 9px 18px rgba(16,26,49,.24), -6px -6px 16px #fff; font-size: 17px; font-weight: 900; transition: transform 120ms cubic-bezier(.23,1,.32,1), box-shadow 180ms cubic-bezier(.23,1,.32,1); }
body.is-custom #customForm .primary b { color: #00b8ff; font-size: 23px; }
body.is-custom #customForm .primary:active { transform: scale(.98); box-shadow: inset 5px 5px 12px rgba(0,0,0,.24); }
body.is-custom nav.bottom-nav, body.is-custom > .topbar { display: none; }

@media (max-width: 390px) {
  body.is-custom #customForm .custom-choice-pair { grid-template-columns: 1fr; gap: 12px; }
  body.is-custom #customForm .custom-choice { min-height: 142px; }
  body.is-custom #customForm .custom-or { top: 50%; right: 50%; }
  .share-destinations { gap: 8px; }
  body:not(.is-custom) #shareSheet .share-destinations button { padding: 11px; grid-template-columns: 40px 1fr; }
  .share-action-icon { width: 40px; height: 40px; }
  #homeScreen .dilemma-box { grid-template-columns: 68px 1fr; }
  #homeScreen .dilemma-gift { width: 68px; height: 68px; }
  #homeScreen .dilemma-lock-label { position: absolute; top: 9px; left: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.is-custom) #shareSheet .share-card { transform: none; transition: opacity 180ms cubic-bezier(.23,1,.32,1); }
  body.is-custom #customForm .primary { transition: box-shadow 120ms cubic-bezier(.23,1,.32,1); }
}
