
:root{
  /* Brand */
  --yoh-brand:     #006eff;
  --yoh-brand-2:   #576dff;

  /* Background brand gradient (customize freely) */
  --yoh-bg-grad-1: #ffffff; /* deep wine */
  --yoh-bg-grad-2: #808080; /* slate/ink */

  /* Card + UI */
  --yoh-card-bg:   rgba(255,255,255,.72);
  --yoh-card-brd:  rgba(255,255,255,.35);
  --yoh-text:      #0f172a;
  --yoh-sub:       #475569;

  /* Sizing */
  --yoh-pill-h:    clamp(16px, 2.8vw, 24px);
  --yoh-radius:    999px;
}

@media (prefers-color-scheme: dark){
  :root{
    --yoh-card-bg:  rgba(17,24,39,.6);
    --yoh-card-brd: rgba(255,255,255,.08);
    --yoh-text:     #e5e7eb;
    --yoh-sub:      #9ca3af;
    --yoh-bg-grad-1:#190a0d;
    --yoh-bg-grad-2:#070a12;
  }
}

/* Gate: hide everything except the overlay */
html.yoh-gate, html.yoh-gate body { overflow: hidden; }
html.yoh-gate body > *:not(#yoh-gate-overlay){ opacity: 0 !important; }

/* Reveal animation */
body.yoh-reveal > *:not(#yoh-gate-overlay){
  animation: yoh-reveal .6s ease both;
}
@keyframes yoh-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Fullscreen overlay with brand gradient */
#yoh-gate-overlay{
  position: fixed; inset: 0;
  z-index: 2147483647;
  display: grid; place-items: center;
  opacity: 1; visibility: visible;
  transition: opacity .6s ease, visibility .6s ease;
  background:
    radial-gradient(1200px 900px at -10% -20%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(1000px 800px at 110% 120%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(135deg, var(--yoh-bg-grad-1), var(--yoh-bg-grad-2));
}

/* Glass card */
.yoh-card{
  width: min(92vw, 620px);
  display: grid;
  justify-items: center;
  gap: clamp(12px, 2vw, 20px);
  padding: clamp(22px, 3.2vw, 32px) clamp(20px, 3vw, 28px);
  border-radius: 22px;
  background: var(--yoh-card-bg);
  border: 1px solid var(--yoh-card-brd);
  box-shadow: 0 24px 48px rgba(0,0,0,.25), 0 6px 20px rgba(0,0,0,.25);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transform: translateZ(0);
}

/* Logo */
.yoh-logo-wrap{
  display: grid; place-items: center;
  width: min(60vw, 360px);
}
.yoh-logo{
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.25));
}

/* Brand + tip */
.yoh-brand{
  color: var(--yoh-text);
  font-size: clamp(14px, 3vw, 16px);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.yoh-sub{
  color: var(--yoh-sub);
  font-size: clamp(12px, 2.4vw, 14px);
}

/* Percent */
.yoh-pct{
  color: var(--yoh-text);
  font-variant-numeric: tabular-nums;
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 900;
  letter-spacing: .02em;
}

/* Pill */
.yoh-pill{
  width: 100%;
  height: var(--yoh-pill-h);
  border-radius: var(--yoh-radius);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(250,250,250,.55));
  position: relative; overflow: hidden;
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,.95),
    inset 0 -2px 6px rgba(0,0,0,.18),
    0 12px 24px rgba(0,0,0,.18);
}
.yoh-pill-fill{
  height: 100%; width: 0%;
  border-radius: var(--yoh-radius);
  background:
    radial-gradient(10px 10px at 10% 50%, rgba(255,255,255,.65), transparent 60%) repeat-x,
    linear-gradient(90deg, var(--yoh-brand), var(--yoh-brand-2));
  background-size: 22px 100%, 100% 100%;
  background-position: 0 0, 0 0;
  box-shadow: inset 0 0 10px rgba(255,255,255,.25), 0 0 24px rgba(255,0,0,.25);
  position: relative; overflow: hidden;
  transition: width .32s cubic-bezier(.22,1,.36,1);
}
.yoh-pill-fill::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transform: translateX(-100%);
  animation: yoh-shimmer 1.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes yoh-shimmer { to { transform: translateX(100%); } }

.yoh-sparks{
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 50%, rgba(255,255,255,.85) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 50%, rgba(255,255,255,.65) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.85) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 50%, rgba(255,255,255,.65) 0 2px, transparent 3px),
    radial-gradient(circle at 90% 50%, rgba(255,255,255,.85) 0 2px, transparent 3px);
  background-size: 200% 100%;
  background-position: -50% 0;
  animation: yoh-spark 1.6s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}
@keyframes yoh-spark { to { background-position: 150% 0; } }

/* Accent line */
.yoh-top{
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--yoh-brand), var(--yoh-brand-2));
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(0,0,0,.12);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .yoh-pill-fill::after, .yoh-sparks{ animation: none !important; }
  .yoh-pill-fill{ transition: width .001s linear; }
}
