:root {
  --bg: #e1f5fe;
  --bg-accent: #b3e5fc;
  --panel: rgba(255, 255, 255, 0.95);
  --panel-strong: #ffffff;
  --ink: #00529b;
  --muted: #0088cc;
  --line: rgba(3, 169, 244, 0.3);
  --accent: #00b4d8;
  --accent-soft: rgba(3, 169, 244, 0.2);
  --cool: #0277bd;
  --cool-soft: rgba(2, 136, 209, 0.18);
  --active: #0277bd;
  --shadow: 0 24px 60px rgba(3, 169, 244, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--bg);
}

/* --- Dynamic Background Effects --- */
.bg-effects {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(160deg, #000d1a 0%, #001428 35%, #002240 60%, #001830 80%, #000c18 100%);
}

/* Deep space nebula layers */
.bg-effects::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 8% 40%, rgba(0, 180, 255, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 70% 90% at 92% 60%, rgba(0, 100, 220, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 0%, rgba(79, 195, 247, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 30% 80%, rgba(0, 60, 180, 0.15) 0%, transparent 50%);
  animation: nebula-drift 25s ease-in-out infinite alternate;
  will-change: transform;
}

/* Animated star-like shimmer overlay */
.bg-effects::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 34% 72%, rgba(200,240,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 67% 33%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 88% 55%, rgba(180,230,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 22% 90%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 80%, rgba(200,240,255,0.45) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(255,255,255,0.55) 0%, transparent 100%),
    radial-gradient(1px 1px at 4% 55%, rgba(180,230,255,0.4) 0%, transparent 100%);
  animation: stars-twinkle 6s ease-in-out infinite alternate;
}

.bg-grid {
  position: absolute;
  inset: -60px;
  background-image:
    linear-gradient(rgba(3, 169, 244, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3, 169, 244, 0.12) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: bg-grid-drift 18s linear infinite;
  will-change: transform;
}

/* Aurora light shafts */
.bg-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(79, 195, 247, 0.0) 30%,
    rgba(129, 212, 250, 0.18) 50%,
    rgba(79, 195, 247, 0.0) 70%,
    transparent 100%
  );
  animation: aurora-shaft 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform;
}

.bg-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 212, 250, 1) 0%, rgba(79, 195, 247, 0.6) 50%, transparent 100%);
  box-shadow: 0 0 8px rgba(79, 195, 247, 0.8), 0 0 20px rgba(3, 169, 244, 0.4);
  animation: bg-particle-rise linear infinite;
  will-change: transform, opacity;
}

@keyframes nebula-drift {
  0%   { transform: scale(1) translate(0, 0); opacity: 1; }
  33%  { transform: scale(1.04) translate(1.5%, 1%); }
  66%  { transform: scale(0.97) translate(-1%, 2%); }
  100% { transform: scale(1.02) translate(2%, -1%); opacity: 0.85; }
}

@keyframes stars-twinkle {
  0%, 100% { opacity: 0.7; }
  25%  { opacity: 1; }
  50%  { opacity: 0.5; }
  75%  { opacity: 0.9; }
}

@keyframes bg-grid-drift {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(60px, 60px, 0); }
}

@keyframes aurora-shaft {
  0%   { transform: translateX(-120%) skewX(-15deg); opacity: 0; }
  10%  { opacity: 1; }
  45%  { opacity: 0.7; }
  80%  { opacity: 0; }
  100% { transform: translateX(120vw) skewX(-15deg); opacity: 0; }
}

@keyframes bg-particle-rise {
  0%   { transform: translateY(105vh) scale(1); opacity: 0; }
  8%   { opacity: 0.9; }
  85%  { opacity: 0.6; }
  100% { transform: translateY(-5vh) scale(0.4); opacity: 0; }
}


body.has-entry-splash {
  overflow: hidden;
}

body.has-patch-notes {
  overflow: hidden;
}


.entry-splash {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at top, rgba(76, 170, 234, 0.12), transparent 48%),
    linear-gradient(180deg, #041633 0%, #062451 52%, #04193a 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.58s ease, visibility 0.58s ease;
}

.entry-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.entry-splash-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(92vw, 800px);
  max-width: 800px;
  padding: 22px 30px 18px;
  border-radius: 24px;
  border: 1px solid rgba(148, 220, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(9, 40, 82, 0.38), rgba(7, 29, 61, 0.42)),
    radial-gradient(circle at top, rgba(148, 220, 255, 0.12), transparent 68%);
  box-shadow:
    0 24px 60px rgba(2, 11, 28, 0.38),
    inset 0 0 0 1px rgba(190, 236, 255, 0.08);
  animation: splash-card-enter 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.entry-splash-logo {
  width: min(34vw, 196px);
  height: auto;
  display: block;
  border-radius: 38px;
  box-shadow:
    0 18px 44px rgba(6, 20, 44, 0.42),
    0 0 24px rgba(132, 219, 255, 0.18);
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  animation: splash-logo-appear 0.84s cubic-bezier(0.15, 0.88, 0.28, 1) 0.16s forwards;
}

.entry-splash-title {
  margin: 0;
  position: relative;
  width: 100%;
  text-align: center;
  color: #e8f6ff;
  font-size: clamp(2rem, 5.8vw, 4.2rem);
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.08em;
  line-height: 1.02;
  text-transform: uppercase;
  text-shadow:
    0 12px 30px rgba(56, 178, 245, 0.38),
    0 0 16px rgba(145, 228, 255, 0.24);
  opacity: 0;
  transform: translateY(8px);
  animation: splash-title-appear 0.72s ease 0.56s forwards;
}

.entry-splash-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 74%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(180, 236, 255, 0.88), transparent);
  transform: translateX(-50%) scaleX(0.5);
  transform-origin: center;
  opacity: 0;
  animation: splash-title-underline 0.52s ease 0.9s forwards;
}

.entry-splash-subtitle {
  margin: 8px 0 0;
  width: 100%;
  text-align: center;
  color: rgba(214, 242, 255, 0.9);
  font-size: clamp(0.76rem, 1.8vw, 1.02rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  animation: splash-subtitle-appear 0.62s ease 0.84s forwards;
}

/* ===== YoshiYoshi Collab Splash ===== */
.collab-splash {
  position: fixed;
  inset: 0;
  z-index: 10999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(ellipse 80% 60% at 15% 50%, rgba(3, 169, 244, 0.45) 0%, transparent 65%),
    radial-gradient(ellipse 80% 60% at 85% 50%, rgba(0, 150, 220, 0.38) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 50% 20%, rgba(79, 195, 247, 0.25) 0%, transparent 70%),
    linear-gradient(160deg, #010d1a 0%, #011e36 30%, #013a60 60%, #011e36 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}

/* Animated grid overlay */
.collab-splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(3, 169, 244, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3, 169, 244, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: collab-grid-drift 8s linear infinite;
  pointer-events: none;
}

/* Scan line sweep */
.collab-splash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(3, 169, 244, 0.07) 48%,
    rgba(79, 195, 247, 0.14) 50%,
    rgba(3, 169, 244, 0.07) 52%,
    transparent 100%
  );
  background-size: 100% 200%;
  animation: collab-scan 3s linear 0.5s infinite;
  pointer-events: none;
}

.collab-splash.is-entering {
  animation: collab-splash-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  visibility: visible;
}

.collab-splash.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.collab-splash.is-leaving {
  animation: collab-splash-out 0.7s cubic-bezier(0.7, 0, 0.84, 0) forwards;
  visibility: visible;
}

/* Particles */
.collab-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.collab-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(79, 195, 247, 0.8);
  box-shadow: 0 0 6px rgba(3, 169, 244, 0.9);
  animation: collab-particle-float linear infinite;
}

/* Horizontal beam */
.collab-beam {
  position: absolute;
  top: 50%;
  left: -10%;
  right: -10%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(3, 169, 244, 0.4) 15%,
    rgba(129, 212, 250, 1) 40%,
    rgba(255, 255, 255, 1) 50%,
    rgba(129, 212, 250, 1) 60%,
    rgba(3, 169, 244, 0.4) 85%,
    transparent 100%
  );
  filter: blur(1px);
  opacity: 0;
  animation: collab-beam-flash 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

/* Orb glows behind logos */
.collab-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: collab-orb-pulse 3s ease-in-out infinite;
}

.collab-orb-left {
  width: 320px;
  height: 320px;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(3, 169, 244, 0.55), transparent 70%);
  animation-delay: 0s;
}

.collab-orb-right {
  width: 320px;
  height: 320px;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(2, 136, 209, 0.55), transparent 70%);
  animation-delay: 1.5s;
}

/* Stage */
.collab-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 7vw, 80px);
  width: 100%;
  max-width: 1000px;
}

/* Logo wrap */
.collab-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0;
}

.collab-logo-wrap.logo-left {
  transform: translateX(-80px) scale(0.85);
  animation: collab-logo-enter-left 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.collab-logo-wrap.logo-right {
  transform: translateX(80px) scale(0.85);
  animation: collab-logo-enter-right 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

/* Logo card with glow frame */
.collab-logo-card {
  position: relative;
  padding: 10px;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(135deg,
    rgba(79, 195, 247, 0.2),
    rgba(3, 169, 244, 0.08) 40%,
    rgba(255, 255, 255, 0.05)
  );
  border: 1.5px solid rgba(79, 195, 247, 0.35);
  box-shadow:
    0 16px 40px rgba(5, 17, 30, 0.06),
    0 4px 12px rgba(5, 17, 30, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.panel:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 48px rgba(3, 169, 244, 0.12),
    0 6px 16px rgba(3, 169, 244, 0.08),
    0 0 0 1px rgba(3, 169, 244, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.collab-logo-card {
  animation: collab-card-glow 2.4s ease-in-out 1.1s infinite alternate;
}

.collab-logo-img {
  width: clamp(110px, 22vw, 200px);
  height: clamp(110px, 22vw, 200px);
  object-fit: cover;
  border-radius: 22.5%;
  display: block;
  mix-blend-mode: multiply;
  clip-path: inset(0 round 22.5%);
}

.logo-glitch-new {
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  z-index: 1;
  opacity: 0;
  clip-path: inset(0 round 22.5%);
  border-radius: 22.5%;
}

.collab-splash.is-entering .logo-glitch-new,
.collab-splash.is-visible .logo-glitch-new {
  animation: logo-new-reveal 5s forwards;
}

@keyframes logo-new-reveal {
  0%   { opacity: 0; transform: scale(0.8); filter: blur(10px); }
  66%  { opacity: 0; transform: scale(0.8) skewX(20deg); filter: blur(20px) brightness(5); }
  68%  { opacity: 1; transform: scale(1.4) skewX(-10deg); filter: blur(8px) brightness(3) saturate(0); }
  72%  { opacity: 1; transform: scale(0.95) skewX(0); filter: blur(0px) brightness(1.5) saturate(2); }
  76%  { opacity: 1; transform: scale(1.02); filter: brightness(1) saturate(1); }
  80%  { opacity: 1; transform: scale(1); filter: none; }
  100% { opacity: 1; transform: scale(1); filter: none; }
}

.logo-glitch-old {
  position: relative;
  z-index: 2;
  background: inherit;
}

/* Scan lines overlay on the logo card during glitch */
.collab-splash.is-entering .logo-left .collab-logo-card::before,
.collab-splash.is-visible .logo-left .collab-logo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  border-radius: 36px;
  opacity: 0;
  animation: scanlines-pulse 5s forwards;
}

@keyframes scanlines-pulse {
  0%   { opacity: 0; }
  20%  { opacity: 0; }
  22%  { opacity: 0.8; }
  35%  { opacity: 0.4; }
  45%  { opacity: 0.8; }
  55%  { opacity: 0.6; }
  64%  { opacity: 1; }
  72%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Flash burst at the moment of switch */
.collab-splash.is-entering .logo-left .collab-logo-card::after,
.collab-splash.is-visible .logo-left .collab-logo-card::after {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: 11;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(129, 212, 250, 0.6) 30%,
    transparent 70%
  );
  opacity: 0;
  animation: logo-switch-flash 5s forwards;
}

@keyframes logo-switch-flash {
  0%   { opacity: 0; transform: scale(0.3); }
  66%  { opacity: 0; transform: scale(0.3); }
  68%  { opacity: 1; transform: scale(1.8); }
  75%  { opacity: 0; transform: scale(2.2); }
  100% { opacity: 0; }
}

.collab-splash.is-entering .logo-glitch-old,
.collab-splash.is-visible .logo-glitch-old {
  animation: logo-glitch-effect 5s forwards;
}

@keyframes logo-glitch-effect {
  0%   { opacity: 1; transform: translateX(0); filter: none; }
  18%  { opacity: 1; transform: translateX(0); filter: none; }
  
  /* Phase 1: Mild glitch */
  19%  { opacity: 1; transform: translateX(-4px) skewX(-10deg); filter: hue-rotate(90deg) drop-shadow(4px 0 0 rgba(255,0,0,0.5)); }
  21%  { opacity: 0.8; transform: translateX(6px) skewX(8deg); filter: hue-rotate(-90deg) drop-shadow(-4px 0 0 rgba(0,255,255,0.5)); }
  23%  { opacity: 1; transform: translateX(0) skewX(0); filter: none; }
  
  /* Phase 2: Medium intensity flicker */
  38%  { opacity: 1; filter: none; transform: translateY(0) scale(1); }
  39%  { opacity: 0.2; transform: translateY(-4px) scaleX(1.02); filter: contrast(200%); }
  41%  { opacity: 1; transform: translateY(6px) scaleX(0.98); filter: invert(0.8) hue-rotate(45deg); }
  43%  { opacity: 0.6; transform: translateY(-2px); filter: blur(2px) contrast(150%); }
  45%  { opacity: 1; transform: translateY(0); filter: none; }
  
  /* Phase 3: Heavy distortion buildup */
  55%  { opacity: 1; transform: scale(1) skewX(0); filter: none; }
  56%  { opacity: 0.8; transform: scale(1.05) skewX(-15deg); filter: contrast(300%) brightness(1.5) saturate(2); }
  58%  { opacity: 0.4; transform: scale(0.95) skewX(20deg) translateY(-8px); filter: invert(1) hue-rotate(180deg); }
  60%  { opacity: 0.9; transform: scale(1.1) skewY(-10deg) translateX(8px); filter: drop-shadow(8px 0 0 rgba(255,0,255,1)) drop-shadow(-8px 0 0 rgba(0,255,0,1)); }
  62%  { opacity: 1; transform: scale(1) skewX(0); filter: none; }

  /* Phase 4: Extreme breakdown + violent snap */
  65%  { opacity: 1; transform: scale(1) skewX(0); filter: none; }
  66%  { opacity: 0.8; transform: scale(1.15) skewX(-30deg) translateY(12px); filter: contrast(500%) brightness(3) saturate(5) hue-rotate(-90deg) drop-shadow(15px 0 0 red); }
  67%  { opacity: 1; transform: scale(0.85) skewX(35deg) translateY(-18px); filter: invert(1) blur(8px) drop-shadow(-20px 0 0 blue); }
  68%  { opacity: 0.9; transform: scale(1.4) skewX(-15deg) translateX(-15px); filter: contrast(500%) brightness(5) saturate(0); }
  69%  { opacity: 0; transform: scale(0.4) skewY(25deg); filter: brightness(10) blur(30px); }
  100% { opacity: 0; visibility: hidden; }
}

.collab-logo-name {
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
  text-shadow:
    0 0 20px rgba(79, 195, 247, 1),
    0 0 40px rgba(3, 169, 244, 0.6);
  white-space: nowrap;
}

/* Center × badge */
.collab-x-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: scale(0.3) rotate(-20deg);
  animation: collab-x-pop 0.65s cubic-bezier(0.16, 1.6, 0.4, 1) 0.75s forwards;
}

.collab-x-ring {
  position: relative;
  width: clamp(60px, 11vw, 96px);
  height: clamp(60px, 11vw, 96px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(3, 169, 244, 0.3), rgba(1, 60, 110, 0.5));
  border: 2px solid rgba(79, 195, 247, 0.9);
  box-shadow:
    0 0 0 4px rgba(3, 169, 244, 0.15),
    0 0 0 8px rgba(3, 169, 244, 0.06),
    0 0 40px rgba(3, 169, 244, 0.6),
    0 0 80px rgba(3, 169, 244, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
  animation: collab-x-pulse 2s ease-in-out 1.4s infinite;
}

.collab-x-text {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 20px rgba(79, 195, 247, 0.9);
  line-height: 1;
}

/* Tagline */
.collab-tagline-wrap {
  position: relative;
  z-index: 1;
  margin-top: clamp(32px, 5.5vw, 56px);
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  animation: collab-tagline-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.0s forwards;
}

.collab-tagline {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg,
    #81d4fa 0%,
    #e1f5fe 25%,
    #fff 50%,
    #e1f5fe 75%,
    #81d4fa 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: collab-tagline-shine 2.5s linear 1.2s infinite;
  filter: drop-shadow(0 0 16px rgba(79, 195, 247, 0.5));
  white-space: nowrap;
}

.collab-tagline-sub {
  margin: 14px 0 0;
  font-size: clamp(0.72rem, 1.8vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(179, 229, 252, 0.9);
}

/* OK button */
.collab-ok-btn {
  margin-top: 32px;
  padding: 16px 64px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #4fc3f7, #0288d1, #01579b);
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(79, 195, 247, 0.5),
    0 8px 30px rgba(2, 136, 209, 0.6),
    0 0 60px rgba(3, 169, 244, 0.25);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease, filter 0.22s ease;
  opacity: 0;
  animation: collab-tagline-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
}

.collab-ok-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: collab-btn-shimmer 2.5s linear 1.8s infinite;
  border-radius: inherit;
}

.collab-ok-btn:hover {
  transform: translateY(-4px) scale(1.05);
  filter: brightness(1.15);
  box-shadow:
    0 0 0 3px rgba(79, 195, 247, 0.6),
    0 16px 40px rgba(2, 136, 209, 0.7),
    0 0 80px rgba(3, 169, 244, 0.35);
}

.collab-ok-btn:active {
  transform: translateY(-1px) scale(0.98);
  transition-duration: 0.08s;
}

/* ---- Keyframes ---- */
@keyframes collab-splash-in {
  from { opacity: 0; transform: scale(1.04); filter: blur(8px); }
  to   { opacity: 1; transform: scale(1);    filter: blur(0); }
}

@keyframes collab-splash-out {
  0%   { opacity: 1; transform: scale(1);    filter: blur(0) brightness(1); }
  30%  { opacity: 1; transform: scale(1.06); filter: blur(0) brightness(2.5); }
  100% { opacity: 0; transform: scale(0.88); filter: blur(12px) brightness(0.2); }
}

@keyframes collab-burst-flash {
  0%   { opacity: 0;   transform: scale(0.4); }
  35%  { opacity: 1;   transform: scale(1); }
  60%  { opacity: 0.9; transform: scale(1.1); }
  100% { opacity: 0;   transform: scale(1.4); }
}

@keyframes fluorescent-flicker {
  0%   { opacity: 1; }   /* Black (Off) */
  5%   { opacity: 0.3; } /* Flash on */
  10%  { opacity: 1; }   /* Black */
  15%  { opacity: 0.8; } /* Dim flash */
  25%  { opacity: 1; }   /* Black */
  35%  { opacity: 0; }   /* Flash on strong */
  40%  { opacity: 0.9; } /* Black */
  50%  { opacity: 0; }   /* Flash on strong */
  55%  { opacity: 0.8; } /* Black */
  65%  { opacity: 0; }   /* Fully On */
  100% { opacity: 0; }   /* Stay Fully On */
}

@keyframes collab-logo-enter-left {
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes collab-logo-enter-right {
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes collab-x-pop {
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes collab-x-pulse {
  0%,100% {
    box-shadow: 0 0 0 4px rgba(3,169,244,0.15), 0 0 40px rgba(3,169,244,0.6), 0 0 80px rgba(3,169,244,0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(3,169,244,0.05), 0 0 60px rgba(79,195,247,0.9), 0 0 120px rgba(3,169,244,0.5);
  }
}

@keyframes collab-tagline-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes collab-tagline-shine {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}

@keyframes collab-beam-flash {
  0%   { opacity: 0; transform: translateY(-50%) scaleX(0.2); }
  40%  { opacity: 1; transform: translateY(-50%) scaleX(1); }
  70%  { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-50%) scaleX(1); }
}

@keyframes collab-particle-float {
  0%   { transform: translateY(110vh) scale(1) rotate(0deg); opacity: 0.9; }
  100% { transform: translateY(-10vh) scale(0.3) rotate(180deg); opacity: 0; }
}

@keyframes collab-orb-pulse {
  from { opacity: 0.6; transform: translateY(-50%) scale(0.9); }
  to   { opacity: 1;   transform: translateY(-50%) scale(1.1); }
}

@keyframes collab-card-glow {
  from { box-shadow: 0 0 0 1px rgba(3,169,244,0.1), 0 8px 40px rgba(3,169,244,0.3), 0 0 80px rgba(3,169,244,0.15), inset 0 1px 0 rgba(255,255,255,0.12); }
  to   { box-shadow: 0 0 0 1px rgba(79,195,247,0.3), 0 8px 50px rgba(3,169,244,0.5), 0 0 100px rgba(3,169,244,0.3), inset 0 1px 0 rgba(255,255,255,0.2); }
}

@keyframes collab-grid-drift {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

@keyframes collab-scan {
  from { background-position: 0 -100%; }
  to   { background-position: 0 200%; }
}

@keyframes collab-btn-shimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}
/* ===================================== */


.fullscreen-curtain {
  display: none;
}
.fullscreen-curtain.is-active,
.fullscreen-curtain.is-entering,
.fullscreen-curtain.is-leaving {
  display: none;
}

.fullscreen-timer-overlay {
  position: fixed;
  inset: 0;
  z-index: 10900;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 17, 39, 0.48);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.fullscreen-timer-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fullscreen-timer-card {
  width: min(96vw, 1440px);
  max-height: calc(100vh - 36px);
  padding: clamp(18px, 2.2vw, 30px);
  border-radius: 34px;
  border: 1px solid rgba(3, 169, 244, 0.5);
  background:
    radial-gradient(circle at top right, rgba(3, 169, 244, 0.2), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(225, 245, 254, 0.9));
  box-shadow: 0 24px 72px rgba(3, 169, 244, 0.3), inset 0 0 20px rgba(3, 169, 244, 0.1);
  text-align: center;
  overflow: auto;
  overscroll-behavior: contain;
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
}

.fullscreen-timer-overlay.is-active .fullscreen-timer-card {
  transform: scale(1) translateY(0);
  opacity: 1;
  animation: fullscreen-card-float 8s ease-in-out infinite 0.5s;
}

@keyframes fullscreen-card-float {
  0%, 100% { transform: translateY(0); box-shadow: 0 24px 72px rgba(3, 169, 244, 0.3), inset 0 0 20px rgba(3, 169, 244, 0.1); }
  50% { transform: translateY(-10px); box-shadow: 0 32px 90px rgba(3, 169, 244, 0.4), inset 0 0 30px rgba(3, 169, 244, 0.2); }
}

.fullscreen-timer-label,
.fullscreen-timer-title {
  margin: 0;
}

.fullscreen-timer-heading {
  max-width: 760px;
  margin: 0 auto;
}

.fullscreen-timer-label {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fullscreen-timer-title {
  margin-top: 8px;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  color: var(--ink);
}

.fullscreen-timer-copy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.5vw, 1.14rem);
  line-height: 1.7;
}

.fullscreen-timer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(10px, 1.4vw, 14px);
  align-items: center;
  justify-items: center;
  margin-top: clamp(8px, 1.2vw, 12px);
  min-height: calc(100vh + 360px);
  align-content: start;
}

.fullscreen-timer-visual {
  display: grid;
  place-items: center;
  min-height: 100%;
  width: 100%;
}

.fullscreen-timer-ring {
  --timer-progress: 1;
  width: min(74vw, 62vh, 780px);
  aspect-ratio: 1;
  margin: 0;
  padding: clamp(14px, 1.6vw, 22px);
  border-radius: 50%;
  background:
    conic-gradient(
      from -90deg,
      rgba(129, 212, 250, 0.35) calc((1 - var(--timer-progress)) * 1turn),
      rgba(3, 169, 244, 1) 0turn
    );
  box-shadow:
    0 0 0 16px rgba(164, 219, 255, 0.08),
    0 34px 96px rgba(13, 76, 126, 0.18);
}

.fullscreen-timer-ring-core {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at top, rgba(164, 219, 255, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(244, 251, 255, 0.98), rgba(228, 243, 255, 0.96));
  box-shadow: inset 0 0 0 1px rgba(160, 210, 243, 0.26);
}

.fullscreen-timer-caption {
  margin: -6px 0 8px;
  color: rgba(83, 112, 139, 0.8);
  font-size: clamp(0.86rem, 1.3vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fullscreen-timer-display {
  margin: 0;
  color: var(--ink);
  font-size: clamp(4.2rem, 10.2vw, 8.6rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 0 30px rgba(3, 169, 244, 0.5), 0 0 60px rgba(3, 169, 244, 0.2);
  animation: fullscreen-text-pulse 4s ease-in-out infinite alternate;
}

@keyframes fullscreen-text-pulse {
  from { text-shadow: 0 0 20px rgba(3, 169, 244, 0.4), 0 0 40px rgba(3, 169, 244, 0.1); }
  to   { text-shadow: 0 0 40px rgba(3, 169, 244, 0.7), 0 0 80px rgba(3, 169, 244, 0.3); }
}

.fullscreen-timer-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fullscreen-timer-actions {
  margin-top: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.fullscreen-timer-controls {
  display: grid;
  gap: 10px;
  align-content: center;
  justify-items: center;
  width: min(100%, 760px);
  text-align: center;
  margin-top: max(42vh, 320px);
  padding-bottom: 24px;
}

.fullscreen-timer-field .toolbar-label {
  font-size: 0.82rem;
}

.fullscreen-timer-field .toolbar-input {
  min-height: 48px;
  font-size: 1.15rem;
  font-weight: 700;
}

.fullscreen-timer-status {
  margin: 0;
  min-height: 28px;
  font-size: 1rem;
}

body.timer-presentation-mode .page-shell {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.timer-presentation-mode .fullscreen-timer-overlay {
  background:
    radial-gradient(circle at center, rgba(3, 169, 244, 0.4), transparent 35%),
    linear-gradient(180deg, rgba(1, 87, 155, 0.85), rgba(1, 67, 117, 0.92));
}

@media (max-width: 980px) {
  .fullscreen-timer-layout {
    min-height: auto;
  }

  .fullscreen-timer-ring {
    width: min(88vw, 62vh, 700px);
  }
}

@media (max-width: 640px) {
  .fullscreen-timer-inputs {
    grid-template-columns: minmax(0, 1fr);
  }
}

.journal-alert-overlay {
  position: fixed;
  inset: 0;
  z-index: 9800;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 23, 39, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.journal-alert-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.journal-alert-box {
  width: min(92vw, 720px);
  padding: clamp(28px, 5vw, 46px);
  border-radius: 26px;
  border: 1px solid rgba(21, 91, 149, 0.28);
  background: linear-gradient(180deg, rgba(243, 249, 255, 0.98), rgba(227, 241, 255, 0.96));
  box-shadow: 0 28px 70px rgba(8, 24, 44, 0.34);
  text-align: center;
}

.journal-alert-label {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(0.82rem, 1.5vw, 1rem);
}

.journal-alert-text {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(2rem, 5.8vw, 4.4rem);
  font-weight: 700;
  line-height: 1.02;
}

.lesson-end-overlay {
  position: fixed;
  inset: 0;
  z-index: 10400;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at top, rgba(109, 208, 255, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(4, 12, 24, 0.74), rgba(7, 23, 39, 0.8));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.36s ease, visibility 0.36s ease;
}

.lesson-end-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.lesson-end-overlay.is-active .lesson-end-box {
  animation: lesson-end-box-in 0.48s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.lesson-end-overlay.is-leaving .lesson-end-box {
  animation: lesson-end-box-out 0.42s ease forwards;
}

.lesson-end-box {
  position: relative;
  overflow: hidden;
  width: min(94vw, 980px);
  padding: clamp(28px, 5vw, 54px);
  border-radius: 32px;
  border: 1px solid rgba(109, 208, 255, 0.6);
  background:
    radial-gradient(circle at center, rgba(109, 208, 255, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, rgba(4, 18, 32, 0.8), rgba(7, 23, 39, 0.95));
  box-shadow: 0 0 50px rgba(109, 208, 255, 0.2), inset 0 0 30px rgba(109, 208, 255, 0.15);
  text-align: center;
  transform: scale(0.92) translateY(18px);
  opacity: 0;
  backdrop-filter: blur(16px);
  animation: lesson-end-pulse 2s infinite alternate;
}

@keyframes lesson-end-pulse {
  from { box-shadow: 0 0 40px rgba(109, 208, 255, 0.15), inset 0 0 20px rgba(109, 208, 255, 0.1); }
  to   { box-shadow: 0 0 70px rgba(109, 208, 255, 0.35), inset 0 0 40px rgba(109, 208, 255, 0.25); }
}

.lesson-end-ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  pointer-events: none;
  filter: blur(1px);
}

.lesson-end-ripple.is-rippling {
  animation: lesson-end-ripple-wave 1s ease-out forwards;
}

.lesson-end-ripple-outer {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.72);
  filter: blur(0);
}

.lesson-end-ripple-outer.is-rippling {
  animation: lesson-end-ripple-wave-outer 1.45s ease-out forwards;
}

.lesson-end-label {
  margin: 0;
  color: rgba(215, 236, 255, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(0.78rem, 1.6vw, 1rem);
  font-weight: 700;
}

.lesson-end-clock {
  margin: 10px 0 14px;
  color: #fff;
  font-size: clamp(4.8rem, 10vw, 8.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 0 20px rgba(109, 208, 255, 0.6), 0 0 40px rgba(109, 208, 255, 0.3);
}

.lesson-end-text {
  margin: 16px 0 0;
  color: rgba(231, 246, 255, 0.94);
  font-size: clamp(1.2rem, 3.2vw, 2.3rem);
  font-weight: 700;
  line-height: 1.2;
}

/* ===== Patch Notes — Terminal HUD Style ===== */
.patch-notes-overlay {
  position: fixed;
  inset: 0;
  z-index: 10800;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 8, 20, 0.75);
  backdrop-filter: blur(12px) saturate(1.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.patch-notes-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.patch-notes-card {
  position: relative;
  width: min(94vw, 580px);
  padding: 0;
  border-radius: 24px;
  border: 1px solid rgba(79, 195, 247, 0.35);
  background:
    linear-gradient(160deg, rgba(0, 22, 48, 0.97) 0%, rgba(0, 14, 32, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(79, 195, 247, 0.1),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(3, 169, 244, 0.12),
    inset 0 1px 0 rgba(79, 195, 247, 0.2);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  overflow: hidden;
}

/* Top accent bar */
.patch-notes-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(79, 195, 247, 0.9), rgba(3, 169, 244, 1), rgba(79, 195, 247, 0.9), transparent);
  border-radius: 24px 24px 0 0;
}

/* Scan line sweep */
.patch-notes-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(79, 195, 247, 0.0) 40%,
    rgba(79, 195, 247, 0.06) 50%,
    rgba(79, 195, 247, 0.0) 60%,
    transparent 100%
  );
  animation: pn-scan 4s ease-in-out infinite;
  pointer-events: none;
}

.patch-notes-overlay.is-active .patch-notes-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* === Card Header === */
.patch-notes-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(79, 195, 247, 0.12);
  position: relative;
}

.patch-notes-label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(79, 195, 247, 0.7);
  font-weight: 600;
}

.patch-notes-title {
  margin: 10px 0 0;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.1;
  font-weight: 800;
  color: #e8f6ff;
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(79, 195, 247, 0.3);
}

.patch-notes-version {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(3, 169, 244, 0.15);
  border: 1px solid rgba(79, 195, 247, 0.3);
  color: rgba(129, 212, 250, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.patch-notes-version::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4fc3f7;
  box-shadow: 0 0 8px #4fc3f7;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* === Changelog List === */
.patch-notes-body {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.patch-notes-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.patch-notes-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(79, 195, 247, 0.05);
  border: 1px solid rgba(79, 195, 247, 0.1);
  color: rgba(200, 235, 255, 0.88);
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  line-height: 1.55;
  animation: pn-item-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.patch-notes-list li:hover {
  background: rgba(79, 195, 247, 0.1);
  border-color: rgba(79, 195, 247, 0.2);
}

.patch-notes-list li::before {
  content: "›";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(3, 169, 244, 0.2);
  border: 1px solid rgba(79, 195, 247, 0.3);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: #4fc3f7;
  font-weight: 700;
  margin-top: 1px;
  line-height: 1;
}

.patch-notes-list li:nth-child(1) { animation-delay: 0.05s; }
.patch-notes-list li:nth-child(2) { animation-delay: 0.10s; }
.patch-notes-list li:nth-child(3) { animation-delay: 0.15s; }
.patch-notes-list li:nth-child(4) { animation-delay: 0.20s; }
.patch-notes-list li:nth-child(5) { animation-delay: 0.25s; }

/* URL items — styled as link chips */
.pn-url-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(3, 169, 244, 0.15);
  border: 1px solid rgba(79, 195, 247, 0.3);
  color: #81d4fa;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: 0.02em;
  text-decoration: none;
  word-break: break-all;
  transition: background 0.2s ease;
}
.pn-url-chip:hover { background: rgba(3, 169, 244, 0.25); }

/* === Footer === */
.patch-notes-footer {
  padding: 16px 28px 24px;
  border-top: 1px solid rgba(79, 195, 247, 0.1);
}

.patch-notes-close {
  width: 100%;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid rgba(79, 195, 247, 0.4);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(3, 169, 244, 0.2) 0%, rgba(0, 130, 200, 0.15) 100%);
  color: rgba(180, 236, 255, 0.95);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  box-shadow: 0 0 20px rgba(3, 169, 244, 0.1);
}

.patch-notes-close:hover {
  background: linear-gradient(135deg, rgba(3, 169, 244, 0.35) 0%, rgba(0, 130, 200, 0.28) 100%);
  border-color: rgba(79, 195, 247, 0.65);
  box-shadow: 0 0 30px rgba(3, 169, 244, 0.3);
  transform: translateY(-1px);
}

.patch-notes-close:active { transform: translateY(0); }

@keyframes pn-scan {
  0%   { transform: translateX(-80%); }
  100% { transform: translateX(160%); }
}

@keyframes pn-item-in {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #4fc3f7; }
  50%       { opacity: 0.5; box-shadow: 0 0 4px #4fc3f7; }
}

@media (max-width: 640px) {
  .patch-notes-overlay { padding: 12px; }
  .patch-notes-card    { width: min(98vw, 580px); }
  .patch-notes-header  { padding: 18px 18px 14px; }
  .patch-notes-body    { padding: 14px 18px; }
  .patch-notes-footer  { padding: 12px 18px 18px; }
}


@keyframes splash-card-enter {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    filter: blur(5px);
  }

  68% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes splash-logo-appear {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    filter: brightness(0.88) saturate(0.86);
  }

  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.04) saturate(1.08);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1) saturate(1);
  }
}

@keyframes splash-title-appear {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    letter-spacing: 0.12em;
  }

  75% {
    opacity: 1;
    transform: translateY(0) scale(1.01);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: 0.08em;
  }
}

@keyframes splash-subtitle-appear {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes splash-title-underline {
  from {
    opacity: 0;
    transform: translateX(-50%) scaleX(0.5);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }
}

@keyframes fullscreen-curtain-in {
  0%   { opacity: 0; transform: scale(1.06); filter: brightness(2); }
  40%  { opacity: 1; transform: scale(1.01); filter: brightness(1.2); }
  100% { opacity: 1; transform: scale(1);    filter: brightness(1); }
}

@keyframes fullscreen-curtain-out {
  0%   { opacity: 1; transform: scale(1); filter: brightness(1); }
  50%  { opacity: 0.6; filter: brightness(2); }
  100% { opacity: 0; transform: scale(0.96); filter: brightness(0.5); }
}

@keyframes ring-expand {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  70%  { transform: translate(-50%, -50%) scale(1.05); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.7; }
}

@keyframes curtain-scan-sweep {
  0%   { transform: translateX(-120%) skewX(-10deg); }
  100% { transform: translateX(120vw)  skewX(-10deg); }
}

@keyframes text-flicker-in {
  0%   { opacity: 0; }
  30%  { opacity: 0.9; }
  45%  { opacity: 0.2; }
  60%  { opacity: 1; }
  75%  { opacity: 0.5; }
  100% { opacity: 1; }
}

@keyframes dataline-scan {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes lesson-end-box-in {
  0% {
    transform: scale(0.92) translateY(18px);
    opacity: 0;
  }

  55% {
    transform: scale(1.02) translateY(0);
    opacity: 1;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes lesson-end-box-out {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  100% {
    transform: scale(0.96) translateY(10px);
    opacity: 0;
  }
}

@keyframes lesson-end-ripple-wave {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0.7;
  }

  100% {
    transform: translate(-50%, -50%) scale(18);
    opacity: 0;
  }
}

@keyframes lesson-end-ripple-wave-outer {
  0% {
    transform: translate(-50%, -50%) scale(0.24);
    opacity: 0;
  }

  18% {
    opacity: 0.72;
  }

  100% {
    transform: translate(-50%, -50%) scale(24);
    opacity: 0;
  }
}

.page-shell {
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 36px;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.hero-editor {
  align-items: center;
}

.eyebrow,
.panel-label,
.status-label,
.week-day {
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--muted);
}

.hero h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(79, 195, 247, 0.4);
}

.hero-credit {
  margin: 12px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.hero-credit::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero-copy {
  margin: 0 0 18px;
  max-width: 720px;
  font-size: 0.96rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.hero-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-field {
  display: grid;
  gap: 6px;
}

.toolbar-field-wide {
  min-width: min(460px, 100%);
}

.toolbar-label {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.toolbar-select,
.toolbar-input,
.editor-input {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid rgba(30, 45, 53, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
}

.toolbar-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.hero-link,
.action-button,
.ghost-button,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #f7fbff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-link:hover,
.action-button:hover,
.ghost-button:hover,
.mini-button:hover {
  transform: translateY(-1px);
}

.ghost-button,
.mini-button {
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  border-color: rgba(30, 45, 53, 0.1);
}

.danger-button,
.mini-button-danger {
  color: #9a3928;
  border-color: rgba(154, 57, 40, 0.18);
  background: rgba(245, 209, 201, 0.55);
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.panel:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 64px rgba(3, 169, 244, 0.18),
    0 8px 24px rgba(3, 169, 244, 0.1),
    0 0 0 1px rgba(3, 169, 244, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.time-panel,
.focus-panel,
.today-panel {
  padding: 28px;
}

.week-panel {
  grid-column: 1 / -1;
  padding: 20px 24px 24px;
}

.today-panel {
  grid-column: 1 / -1;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cool);
  background: var(--cool-soft);
}

.clock {
  margin: 14px 0 8px;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.date-text {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.status-strip > div {
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(216, 235, 251, 0.58));
  border: 1px solid rgba(30, 45, 53, 0.08);
}

.status-value {
  margin: 8px 0 0;
  font-size: 1.28rem;
  font-weight: 700;
}

.progress-wrap {
  margin-top: 18px;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(30, 45, 53, 0.08);
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #59aef0);
  transition: width 0.4s ease;
}

.section-title {
  margin: 12px 0 0;
  font-size: 1.36rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.focus-card {
  min-height: 124px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(238, 248, 255, 0.86));
  border: 1px solid rgba(30, 45, 53, 0.08);
}

.focus-card-main {
  grid-column: 1 / -1;
  min-height: 146px;
  background: linear-gradient(135deg, rgba(21, 91, 149, 0.14), rgba(244, 250, 255, 0.96));
}

.focus-value {
  margin: 10px 0 0;
  font-size: 1.7rem;
  line-height: 1.1;
  font-weight: 700;
}

.focus-value-small {
  font-size: 1.3rem;
}

[data-next-focus] {
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.focus-note {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
  white-space: pre-line;
}

.period-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.period-card {
  min-height: 132px;
  padding: 15px 16px;
  border-radius: 20px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.period-card.is-done {
  opacity: 0.62;
  background: rgba(225, 239, 252, 0.72);
}

.period-card.is-active {
  transform: translateY(-2px);
  background: #f4faff;
  border-color: rgba(120, 140, 160, 0.3);
  color: #1c2f46;
}

.period-card.is-next {
  background: linear-gradient(135deg, #b9f6ca, #69f0ae);
  border-color: rgba(0, 200, 83, 0.4);
  color: #0b3d2e;
}

.period-card.is-active .period-name,
.period-card.is-active .period-time,
.period-card.is-active .period-note {
  color: #1c2f46;
  font-weight: 700;
}

.period-card.is-next .period-name,
.period-card.is-next .period-time,
.period-card.is-next .period-note {
  color: #0b3d2e;
  font-weight: 700;
}

.period-top,
.period-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.period-bottom {
  flex-direction: column;
  align-items: flex-start;
}

.period-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.period-time,
.period-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: pre-line;
}

.period-status {
  color: var(--cool);
  background: var(--cool-soft);
}

.period-status.status-now {
  color: #00a152;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.period-status.status-next {
  color: #00a152;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.period-status.status-done {
  color: #52606a;
  background: rgba(83, 98, 109, 0.12);
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.week-column {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.week-column.is-today {
  background: linear-gradient(180deg, rgba(21, 91, 149, 0.12), rgba(255, 255, 255, 0.86));
  border-color: rgba(21, 91, 149, 0.24);
}

.week-column h3 {
  margin: 8px 0 0;
  font-size: 1rem;
}

.week-column-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.week-progress {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--cool-soft);
  color: var(--cool);
  font-size: 0.76rem;
  font-weight: 700;
}

.week-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.week-item {
  padding: 10px;
  border-radius: 14px;
  background: rgba(242, 249, 255, 0.9);
  border: 1px solid rgba(30, 45, 53, 0.08);
}

.week-item strong,
.week-item span {
  display: block;
}

.week-item strong {
  font-size: 0.85rem;
}

.week-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

body.presentation-mode {
  overflow: hidden;
}

body.presentation-mode .page-shell {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  padding: 12px;
}

body.presentation-mode .dashboard {
  margin: 0;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  height: calc(100vh - 24px);
}

body.presentation-mode .time-panel,
body.presentation-mode .focus-panel {
  padding: clamp(56px, 8vh, 96px) 30px 30px;
  height: 100%;
  background:
    radial-gradient(circle at top right, rgba(3, 169, 244, 0.08), transparent 50%),
    linear-gradient(180deg, #ffffff, #e1f5fe);
  border-color: rgba(3, 169, 244, 0.3);
  box-shadow: 0 24px 64px rgba(3, 169, 244, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  animation: clock-presentation-enter 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes clock-presentation-enter {
  0% { opacity: 0; transform: scale(0.96) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

body.presentation-mode .status-strip > div,
body.presentation-mode .focus-card {
  background: #f3f9ff;
  border-color: rgba(30, 45, 53, 0.1);
}

body.presentation-mode .panel-label {
  font-size: 0.94rem;
}

body.presentation-mode .badge {
  font-size: 1rem;
  padding: 10px 16px;
}

body.presentation-mode .clock {
  font-size: clamp(5rem, 10.5vw, 10rem);
  line-height: 0.92;
  text-shadow: 0 0 40px rgba(3, 169, 244, 0.4), 0 0 80px rgba(3, 169, 244, 0.15);
  animation: clock-glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes clock-glow-pulse {
  from { text-shadow: 0 0 20px rgba(3, 169, 244, 0.2), 0 0 40px rgba(3, 169, 244, 0.1); }
  to   { text-shadow: 0 0 50px rgba(3, 169, 244, 0.6), 0 0 100px rgba(3, 169, 244, 0.3); }
}

body.presentation-mode .date-text {
  font-size: clamp(1.5rem, 2vw, 2.1rem);
}

body.presentation-mode .status-value {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

body.presentation-mode .section-title {
  font-size: clamp(2rem, 2.6vw, 2.8rem);
}

body.presentation-mode .status-label {
  font-size: 0.95rem;
}

body.presentation-mode .focus-value {
  font-size: clamp(2.4rem, 3vw, 3.2rem);
}

body.presentation-mode .focus-value-small {
  font-size: clamp(1.9rem, 2.4vw, 2.6rem);
}

body.presentation-mode [data-next-focus] {
  line-height: 1.35;
}

body.presentation-mode .hero,
body.presentation-mode .today-panel,
body.presentation-mode .week-panel {
  display: none;
}

.editor-layout {
  display: grid;
  gap: 18px;
}

.editor-panel {
  padding: 24px 28px 28px;
}

.editor-toolbar {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.day-tab {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(30, 45, 53, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.day-tab.is-active {
  background: var(--cool-soft);
  color: var(--cool);
  border-color: rgba(21, 91, 149, 0.2);
}

.editor-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.editor-row,
.editor-empty {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 247, 255, 0.9));
  border: 1px solid rgba(30, 45, 53, 0.08);
}

.editor-empty {
  color: var(--muted);
}

.editor-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, minmax(120px, 0.6fr)) 1.4fr;
  gap: 12px;
}

.editor-field {
  display: grid;
  gap: 6px;
}

.editor-field span {
  font-size: 0.78rem;
  color: var(--muted);
}

.editor-field-wide {
  min-width: 0;
}

.editor-field-full {
  grid-column: 1 / -1;
}

.editor-row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.editor-status {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--muted);
}

.editor-status[data-tone="success"] {
  color: #0e5f92;
}

.editor-status[data-tone="error"] {
  color: #9a3928;
}

.test-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.test-panel {
  padding: 24px 28px 28px;
}

.test-panel-wide {
  grid-column: 1 / -1;
}

.test-controls {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(200px, 0.9fr) minmax(180px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
}


.test-clock-board {
  margin-top: 18px;
}

.test-dashboard {
  width: 100%;
}

.test-preview-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.test-preview-card {
  min-height: 108px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(30, 45, 53, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(236, 247, 255, 0.9));
}

.test-preview-card .focus-value {
  margin-top: 8px;
}

[data-sim-next-focus] {
  white-space: pre-line;
  line-height: 1.35;
}

.test-summary {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.test-summary[data-tone="success"] {
  color: #0e5f92;
  font-weight: 700;
}

.test-summary[data-tone="error"] {
  color: #9a3928;
  font-weight: 700;
}

.test-results {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.test-result-item {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(236, 247, 255, 0.9));
}

.test-result-item.is-pass {
  border-color: rgba(11, 111, 168, 0.28);
}

.test-result-item.is-fail {
  border-color: rgba(154, 57, 40, 0.32);
}

.test-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.test-result-top strong {
  font-size: 0.95rem;
}

.test-result-badge {
  min-width: 66px;
  padding: 6px 10px;
}

.test-result-item.is-pass .test-result-badge {
  color: #0e5f92;
  background: rgba(11, 111, 168, 0.16);
}

.test-result-item.is-fail .test-result-badge {
  color: #9a3928;
  background: rgba(154, 57, 40, 0.16);
}

.test-result-detail {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .focus-grid {
    grid-template-columns: 1fr 1fr;
  }

  .test-layout {
    grid-template-columns: 1fr;
  }

  .test-controls {
    grid-template-columns: 1fr;
  }

  .test-preview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .week-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-field-wide,
  .toolbar-inline,
  .editor-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .time-panel,
  .focus-panel,
  .today-panel,
  .week-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .test-preview-grid {
    grid-template-columns: 1fr;
  }

  .focus-card-main {
    grid-column: auto;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .period-list {
    grid-template-columns: 1fr;
  }

  .hero-tools,
  .button-row {
    width: 100%;
  }

  .hero-link,
  .action-button,
  .ghost-button {
    width: 100%;
  }
}

/* --- YoshiYoshi Collaboration --- */
.yoshi-ad-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 15, 26, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.yoshi-ad-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.yoshi-ad-hud {
  position: absolute;
  top: 32px;
  right: 40px;
  background: rgba(4, 18, 32, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(129, 212, 250, 0.2);
  border-radius: 20px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #fff;
  z-index: 10;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(129, 212, 250, 0.1);
  text-align: right;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.yoshi-ad-overlay.is-active .yoshi-ad-hud {
  opacity: 1;
  transform: translateX(0);
}

.yoshi-ad-hud-clock {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.05em;
  text-shadow: 0 0 16px rgba(129, 212, 250, 0.5);
}

.yoshi-ad-hud-next {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.yoshi-ad-hud-label {
  font-size: 0.9rem;
  opacity: 0.8;
  letter-spacing: 0.15em;
}

.yoshi-ad-hud-countdown {
  font-size: 1.4rem;
  font-weight: 700;
  color: #81d4fa;
}

.yoshi-ad-card {
  position: relative;
  width: min(90vw, 420px);
  padding: 34px 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, #3dbdf0, #148dc8);
  box-shadow: 0 20px 50px rgba(2, 136, 209, 0.4), inset 0 0 0 1px rgba(255,255,255,0.2);
  text-align: center;
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}

.yoshi-ad-overlay.is-active .yoshi-ad-card {
  transform: translateY(0);
  opacity: 1;
}

.yoshi-ad-label {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 700;
}

.yoshi-ad-img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  border-radius: 20px;
  mix-blend-mode: multiply;
  clip-path: inset(0 round 20px);
}

.yoshi-ad-title {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.yoshi-ad-text {
  margin: 12px 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.95;
  font-weight: 500;
}
