/* =========================================================
   Y CAFÉ — splash / welcome screen
   ========================================================= */

/* Locks scrolling while the splash is visible */
html.yc-splash-lock,
html.yc-splash-lock body {
  overflow: hidden;
}

.yc-splash {
  --yc-gold: #f2c95c;
  --yc-gold-soft: #ffd873;
  --yc-navy-900: #0a1d39;
  --yc-navy-800: #0f2a52;

  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 15% 15%, rgba(242, 201, 92, .16), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(243, 154, 30, .12), transparent 45%),
    linear-gradient(160deg, var(--yc-navy-900) 0%, var(--yc-navy-800) 100%);
  transition: transform .9s cubic-bezier(.77, 0, .18, 1), opacity .6s ease, visibility .9s;
}

.yc-splash.hide {
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
}

/* Subtle dot grid, faded toward the edges */
.yc-splash-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.yc-splash-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* Soft floating glows */
.yc-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .45;
  animation: ycFloat 14s ease-in-out infinite alternate;
}

.yc-orb-1 {
  width: 320px;
  height: 320px;
  top: -80px;
  left: -60px;
  background: rgba(242, 201, 92, .35);
}

.yc-orb-2 {
  width: 380px;
  height: 380px;
  right: -90px;
  bottom: -100px;
  background: rgba(243, 154, 30, .28);
  animation-delay: -6s;
}

.yc-splash-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 560px;
}

/* Logo with pulsing rings */
.yc-splash-logo-wrap {
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: scale(.85);
  animation: ycIn 1s cubic-bezier(.2, .8, .2, 1) .15s forwards;
}

.yc-splash-ring {
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(242, 201, 92, .5);
  border-radius: 38px;
  opacity: 0;
  animation: ycPulse 3s ease-out 1.2s infinite;
  pointer-events: none;
}

.yc-splash-ring-2 {
  animation-delay: 2.2s;
}

.yc-splash-logo-box {
  position: relative;
  background: #fff;
  border-radius: 26px;
  padding: 16px 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35), 0 0 0 6px rgba(255, 255, 255, .06);
}

.yc-splash-logo {
  display: block;
  height: 110px;
  width: auto;
  max-width: 100%;
}

/* Text stack */
.yc-splash-eyebrow,
.yc-splash-title,
.yc-splash-divider,
.yc-splash-tagline,
.yc-splash-btn,
.yc-splash-hint {
  opacity: 0;
  transform: translateY(18px);
  animation: ycUp .9s ease forwards;
}

.yc-splash-eyebrow {
  margin: 34px 0 10px;
  font-family: 'Poppins', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--yc-gold);
  animation-delay: .55s;
}

.yc-splash-title {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 4.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  animation-delay: .7s;
}

.yc-splash-title span {
  display: inline-block;
  margin-left: .15em;
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: 1.25em;
  color: var(--yc-gold);
}

.yc-splash-divider {
  width: 72px;
  height: 2px;
  margin: 18px auto;
  background: linear-gradient(90deg, transparent, var(--yc-gold), transparent);
  animation-name: ycUpDivider;
  animation-delay: .85s;
}

.yc-splash-tagline {
  margin: 0;
  max-width: 420px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(.95rem, 2.4vw, 1.05rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, .78);
  animation-delay: .95s;
}

/* Button */
.yc-splash-btn {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: none;
  border-radius: 50px;
  padding: .9rem 2.4rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--yc-navy-800);
  background: linear-gradient(135deg, var(--yc-gold) 0%, var(--yc-gold-soft) 100%);
  box-shadow: 0 10px 24px rgba(242, 201, 92, .35);
  cursor: pointer;
  animation-delay: 1.1s;
  transition: transform .3s ease, box-shadow .3s ease;
}

/* Shine sweep on hover */
.yc-splash-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}

.yc-splash-btn:hover::after,
.yc-splash-btn:focus-visible::after {
  left: 125%;
}

.yc-splash-btn i {
  transition: transform .3s ease;
}

.yc-splash-btn:hover,
.yc-splash-btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(242, 201, 92, .5);
  outline: none;
}

.yc-splash-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--yc-navy-900), 0 0 0 5px var(--yc-gold);
}

.yc-splash-btn:hover i {
  transform: translateX(4px);
}

.yc-splash-hint {
  margin: 16px 0 0;
  font-family: 'Poppins', sans-serif;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
  animation-delay: 1.3s;
}

/* Keyframes */
@keyframes ycIn {
  to { opacity: 1; transform: scale(1); }
}

@keyframes ycUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ycUpDivider {
  to { opacity: 1; transform: none; }
}

@keyframes ycPulse {
  0%   { opacity: .6; transform: scale(1); }
  100% { opacity: 0;  transform: scale(1.22); }
}

@keyframes ycFloat {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(30px, -24px, 0) scale(1.08); }
}

/* Small screens */
@media (max-width: 575.98px) {
  .yc-splash-logo { height: 84px; }
  .yc-splash-logo-box { padding: 12px 18px; border-radius: 20px; }
  .yc-splash-eyebrow { margin-top: 28px; }
  .yc-splash-btn { margin-top: 28px; padding: .8rem 2rem; font-size: .95rem; }
  .yc-splash-hint { display: none; }
}

/* Touch devices have no Enter key */
@media (hover: none) {
  .yc-splash-hint { display: none; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .yc-splash,
  .yc-splash *,
  .yc-splash *::before,
  .yc-splash *::after {
    animation: none !important;
    transition: none !important;
  }

  .yc-splash-logo-wrap,
  .yc-splash-eyebrow,
  .yc-splash-title,
  .yc-splash-divider,
  .yc-splash-tagline,
  .yc-splash-btn,
  .yc-splash-hint {
    opacity: 1;
    transform: none;
  }

  .yc-splash-ring { display: none; }
}