/* Mobile-first, framework-free UI */

:root{
  --bg1:#0f172a;   /* slate-900 */
  --bg2:#1f2937;   /* slate-800-ish */
  --card: rgba(30,41,59,0.5); /* slate-800/50 */
  --cardBorder: rgba(51,65,85,1); /* slate-700 */
  --muted: rgba(148,163,184,1); /* slate-400 */
  --muted2: rgba(100,116,139,1); /* slate-500 */
  --white: #ffffff;

  --gray:#9ca3af;
  --green:#4ade80;
  --blue:#60a5fa;
  --purple:#c084fc;
  --yellow:#facc15;
}
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--white);
  background: linear-gradient(135deg, var(--bg1), var(--bg2), var(--bg1));
  overflow-x: hidden;
  overflow-y: auto;
}

.page{
  min-height:100vh;
  width:100%;
  position: relative;
}

/* Slider styles removed (separate pages now) */

.wrap{
  width:100%;
  max-width: 448px; /* max-w-md */
  margin: 0 auto;               /* center on desktop */
  padding: 10px 10px;           /* breathing room on all screens */
}

.card{
  position: relative;
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: 28px; /* rounded-3xl */
  padding: 14px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);
}

.header{
  text-align:center;
  margin-bottom: 8px;
}

.logo{
  width:56px;
  height:56px;
  margin: 0 auto 10px auto;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 24px rgba(0,0,0,0.28);
}

.title{
  margin: 0 0 4px 0;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.resultArea{ margin-bottom: 10px; }

.placeholder{
  height: 132px;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(15,23,42,0.5);
  border: 2px dashed rgba(51,65,85,1);
}

.placeholderText{
  color: var(--muted2);
  font-size: 16px;
}

.pulse{ animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse{
  0%,100%{ opacity: 1; }
  50%{ opacity: .55; }
}

.result{
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(51,65,85,1);
  border-radius: 18px;
  padding: 14px;
  animation: zoomIn .30s ease-out both;
}

@keyframes zoomIn{
  from{ transform: scale(.92); opacity: .0; }
  to{ transform: scale(1); opacity: 1; }
}

.hidden{ display:none; }

.resultNumber{
  text-align:center;
  font-size: 50px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}

.resultTier{
  text-align:center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.resultIcon{
  display:flex;
  justify-content:center;
}

.icon{
  width: 32px;
  height: 32px;
}
.icon--white{ width:32px; height:32px; }

.checkBtn{
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
  background: linear-gradient(90deg, #f59e0b, #f97316, #ef4444);
  box-shadow: 0 14px 28px rgba(249,115,22,0.20);
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;

  display:flex;
  align-items:center;
  justify-content:center;
}

.secondaryBtn{
  margin-top: 8px;
}

.checkBtn:hover{ filter: brightness(1.06); transform: scale(1.02); }
.checkBtn:active{ transform: scale(0.98); }
.checkBtn:disabled{
  opacity: 0.70;
  cursor: not-allowed;
  transform: none;
}

.checkBtn--thin{
  height: 42px;
  font-size: 16px;
  box-shadow: 0 10px 20px rgba(249,115,22,0.16);
}

.btnInner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
}

.btnIcon svg{
  width: 20px;
  height: 20px;
}

.spin{ animation: spin 1s linear infinite; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.tiers{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(51,65,85,1);
}

.tiersLabel{
  margin: 0 0 8px 0;
  text-align:center;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted2);
}

.tierGrid{
  display:flex;
  flex-wrap:nowrap;
  gap: 3px;
  justify-content:center;
  align-items:stretch;
}

@media (max-width: 340px){
  .tierGrid{ flex-wrap:wrap; }
}

.tierBox{
  flex: 1 1 0;
  min-width: 64px;
  max-width: 120px;
  padding: 8px 8px;
  border-radius: 12px;
  background: rgba(15,23,42,0.5);
  text-align:center;
}

.tierRange{
  font-weight: 900;
  font-size: 11px;
  margin-bottom: 3px;
}

.tierName{
  font-size: 11px;
  color: rgba(148,163,184,0.9);
}

.tierRange--gray{ color: var(--gray); }
.tierRange--green{ color: var(--green); }
.tierRange--blue{ color: var(--blue); }
.tierRange--purple{ color: var(--purple); }
.tierRange--yellow{ color: var(--yellow); }

/* Footer area under the card */
.footerArea{
  margin-top: 8px;
}

.fineLinks{
  margin-top: 10px;
  text-align:center;
}

.fineLink{
  color: rgba(255,255,255,0.72);
  text-decoration:none;
  border-bottom: 1px dashed rgba(255,255,255,0.28);
  font-size: 13px;
}
.fineLink:hover{ color: rgba(255,255,255,0.92); }

/* Ad box */
.adBox{
  margin-top: 10px;
  min-height: 250px;
  border-radius: 18px;
  border: 1px solid rgba(51,65,85,1);
  background: rgba(15,23,42,0.55);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.adPlaceholder{
  text-align:center;
  padding: 18px;
}
.adLabel{
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 8px;
}
.adHint{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* Back button on ads screen */
.backBtn{
  margin-top: 18px;
  width: auto;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  font-size: 18px;
  cursor:pointer;
  transition: transform .18s ease, filter .18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.backBtn:hover{ filter: brightness(1.06); transform: scale(1.01); }
.backBtn:active{ transform: scale(0.99); }

@media (min-width: 520px){
  .card{ padding: 16px; }
  .title{ font-size: 23px; }
}

.card--ads{
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Progress bar */
.result.progressMode .resultNumber,
.result.progressMode .resultTier,
.result.progressMode .resultIcon{
  display:none;
}

.progressBlock{
  position: relative;
  z-index: 1;
  margin-top: 10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 8px;
}

.progressValue{
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
}

.progressTrack{
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  overflow:hidden;
}

.progressFill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--gray);
  transition: width 80ms linear;
}

.bossFunny{
  text-align:center;
  font-size:12px;
  color: rgba(226,232,240,0.86);
  line-height:1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Boss images */
.resultArea{
  overflow: hidden;
}

.result{
  position: relative;
}

.bossImage{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.result.hasImage .resultNumber,
.result.hasImage .resultTier,
.result.hasImage .resultIcon{
  opacity: 0;
}

.resultNumber,
.resultTier,
.resultIcon{
  position: relative;
  z-index: 1;
}

/* Responsive tier boxes */
.tierBox{flex: 1 1 0; max-width: 140px;}
@media (max-width: 360px){
  .tierBox{max-width: 120px;}
}

a.checkBtn{ text-decoration:none; }
.adsTitle{margin: 0 0 12px; font-size: clamp(20px, 6vw, 28px); text-align:center; color: var(--text); opacity: .9; }

/* Shared link label */
.bossFunny--shared{ color: rgba(148,163,184,0.92); }

/* Fix orphan ::before / ::after artifacts on ads page */
.card--ads *::before,
.card--ads *::after{
  content: none !important;
}

/* Fix AdSense left-edge placeholder artifact */
.adBox ins.adsbygoogle{
  display: block !important;
  width: 100% !important;
  min-height: 250px;
}

.adBox iframe{
  display: block !important;
  width: 100% !important;
}

/* Share button inside the result rectangle */
.resultShareBtn{
  position: absolute;
  top: 10px;
  right: 10px;

  width: 34px;
  height: 34px;

  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.10);

  color: rgba(255,255,255,0.95);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  backdrop-filter: blur(12px);

  box-shadow: 0 6px 18px rgba(0,0,0,0.35);

  cursor: pointer;
  z-index: 6;

  transition: transform .18s ease, filter .18s ease;
}
.logo{
  width:56px;
  height:56px;
  margin: 0 auto 10px auto;
  border-radius: 18px;

  display:flex;
  align-items:center;
  justify-content:center;

  background: transparent;
  border: 1px solid #f59e0b;

  box-shadow: 0 12px 24px rgba(0,0,0,0.28);
  font-size: 30px;
  line-height: 1;
}

.resultShareBtn svg{
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.resultShareBtn:hover{ filter: brightness(1.06); transform: scale(1.03); }
.resultShareBtn:active{ transform: scale(0.98); }

/* "( Shared score )" label */
.sharedLabel{
  text-align:center;
  font-size: 13px;
  color: rgba(148,163,184,0.92);
  margin-top: 10px;
}

/* Share modal */
.shareModal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px 14px;
  z-index: 60;
}
.shareModal.hidden{ display:none; }

.shareCard{
  width: min(520px, 100%);
  background: rgba(15,23,42,0.94);
  border: 1px solid rgba(51,65,85,1);
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.55);
  padding: 14px;
  backdrop-filter: blur(14px);
}
.shareHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.shareTitle{
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .08em;
  color: rgba(226,232,240,0.92);
}
.shareSub{
  margin: 2px 0 12px;
  color: rgba(148,163,184,0.92);
  font-size: 12px;
}
.shareClose{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  cursor:pointer;
}
.shareClose:hover{ filter: brightness(1.06); }

.shareActions{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.shareOptionBtn{
  width: 100%;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform .18s ease, filter .18s ease;
}
.shareOptionBtn:hover{ filter: brightness(1.06); transform: scale(1.01); }
.shareOptionBtn:active{ transform: scale(0.99); }

/* App promo block */
.appPromoCard{
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.inspirationCard{
  margin-top: 10px;
  padding: 12px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(250,204,21,0.16), transparent 42%),
    linear-gradient(180deg, rgba(15,23,42,0.92), rgba(15,23,42,0.76));
  border: 1px solid rgba(250,204,21,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.inspirationQuoteBlock{
  margin-top: 0;
}

.inspirationQuote{
  margin: 0;
  color: rgba(226,232,240,0.92);
  font-size: 14px;
  line-height: 1.55;
  font-style: italic;
}

.inspirationAuthor{
  margin: 8px 0 0;
  color: rgba(148,163,184,0.88);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.inspirationControl{
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inspirationPillBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(101,119,155,0.28);
  background: rgba(26,37,60,0.92);
  color: rgba(226,232,240,0.92);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.inspirationPillLabel{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inspirationPillBtn.is-ready{
  border: 0;
  background: linear-gradient(90deg, #f59e0b, #f97316, #ef4444);
  box-shadow: 0 14px 28px rgba(249,115,22,0.20);
  color: var(--white);
}

.inspirationPercent{
  color: rgba(226,232,240,0.92);
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inspirationPercent.is-ready{
  color: rgba(250,204,21,0.96);
}

.adsSubtitle{
  margin: 10px 0 12px;
  text-align: center;
  color: rgba(226,232,240,0.8);
  font-size: 14px;
  line-height: 1.5;
}

.commercialsTopBar{
  display: flex;
  justify-content: flex-start;
}

.scoreBackBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(15,23,42,0.35);
  color: rgba(226,232,240,0.96);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.scoreBackBtn--small{
  min-width: 96px;
}

.commercialCard{
  margin-top: 2px;
}

.commercialBadge{
  margin-bottom: 8px;
  color: rgba(226,232,240,0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.commercialFrame{
  min-height: 390px;
  border-radius: 22px;
  border: 1px solid rgba(74,93,127,0.72);
  background: rgba(8,16,35,0.78);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.commercialFrameInner{
  min-height: 364px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.commercialFrameInner--adsense{
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.commercialAdsUnit{
  width: 100% !important;
  min-height: 280px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

.fallbackCommercial{
  width: 100%;
  min-height: 280px;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 45%),
    linear-gradient(180deg, rgba(15,23,42,0.92), rgba(12,18,31,0.96));
  border: 1px solid rgba(96,165,250,0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.fallbackCommercialBadge{
  color: rgba(191,219,254,0.9);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fallbackCommercialTitle{
  margin: 0;
  color: rgba(248,250,252,0.98);
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.08;
}

.fallbackCommercialBody{
  margin: 0;
  color: rgba(226,232,240,0.84);
  font-size: 15px;
  line-height: 1.6;
}

.fallbackCommercialBtn{
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(96,165,250,0.16);
  border: 1px solid rgba(147,197,253,0.4);
  color: rgba(239,246,255,0.96);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.adsConsentCard{
  width: 100%;
  min-height: 280px;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(15,23,42,0.92), rgba(12,18,31,0.98));
  border: 1px solid rgba(148,163,184,0.2);
}

.adsConsentEyebrow{
  color: rgba(191,219,254,0.9);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.adsConsentTitle{
  margin: 0;
  color: rgba(248,250,252,0.98);
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.12;
}

.adsConsentBody{
  margin: 0;
  color: rgba(226,232,240,0.84);
  font-size: 15px;
  line-height: 1.6;
}

.adsConsentActions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.adsConsentBtn{
  margin-left: 0;
}

.adsConsentBtn--primary{
  background: rgba(96,165,250,0.16);
  border-color: rgba(147,197,253,0.4);
}

.commercialActions{
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.outlinePillBtn{
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(15,23,42,0.2);
  color: rgba(226,232,240,0.96);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  margin-left: auto;
}

.outlinePillBtn:hover{ filter: brightness(1.06); }
.outlinePillBtn:active{ transform: scale(0.99); }
.outlinePillBtn:disabled{
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.appPromoCard--commercials{
  margin-top: 12px;
}

.appPromoCard .checkBtn{
  margin: 0;
}

.appStoreBtn{
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(15,23,42,0.96), rgba(22,31,54,0.96));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 24px rgba(0,0,0,0.24);
}

.appStoreBtn:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.appStoreBtnInner{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.appStoreIcon{
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.appStoreIconImg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.appStoreTitle{
  color: rgba(255,255,255,0.98);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}
