:root {
  --ocean-950: #041f33;
  --ocean-900: #072c46;
  --ocean-700: #1b5d82;
  --ocean-500: #3f9cc9;
  --ocean-300: #a5e1f2;
  --ocean-200: #cdeff8;
  --milk: #f4fdff;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body.splash-body {
  font-family: var(--font-sans);
  color: var(--milk);
  background: var(--ocean-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto;
}

.splash {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
}

.splash-bg {
  position: absolute;
  inset: -3%;
  background-image: url("assets/images/bg-underwater.jpg");
  background-size: cover;
  background-position: center 42%;
  filter: saturate(1.05);
  transform: scale(1.03);
  animation: slow-zoom 24s ease-in-out infinite alternate;
}

.splash-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(20, 90, 125, .18) 0%, rgba(5, 33, 53, .52) 62%, rgba(4, 25, 41, .82) 100%),
    linear-gradient(180deg, rgba(3, 25, 41, .62) 0%, rgba(6, 42, 64, .28) 38%, rgba(4, 28, 45, .74) 100%);
}

.splash-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.jelly {
  position: absolute;
  color: #b7eefb;
  opacity: .34;
  filter: drop-shadow(0 10px 30px rgba(120, 220, 245, .18));
}

.jelly-a {
  width: clamp(180px, 20vw, 300px);
  top: 10%;
  left: 4%;
  animation: float-a 6.5s ease-in-out infinite;
}

.jelly-b {
  width: clamp(130px, 15vw, 220px);
  right: 6%;
  bottom: 12%;
  opacity: .28;
  animation: float-b 5.2s ease-in-out infinite;
}

.jelly-dome {
  fill: currentColor;
  fill-opacity: .12;
  stroke: currentColor;
  stroke-width: 2.2;
}

.jelly-frill,
.jelly-tentacles path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.jelly-tentacles {
  transform-origin: 70px 100px;
  animation: sway 3.6s ease-in-out infinite;
}

.jelly circle {
  fill: currentColor;
  opacity: .55;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(232, 251, 255, .88);
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .4), rgba(214, 246, 255, .06) 72%);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, .2);
  animation: rise linear infinite;
}

.bubble-gen { will-change: transform, opacity; }

.b1 { width: 10px; height: 10px; left: 18%; bottom: 8%; animation-duration: 15s; animation-delay: 1s; }
.b2 { width: 22px; height: 22px; left: 76%; bottom: 4%; animation-duration: 19s; animation-delay: 4s; }
.b3 { width: 7px; height: 7px; left: 62%; bottom: 16%; animation-duration: 13s; animation-delay: 2s; }
.b4 { width: 15px; height: 15px; left: 30%; bottom: 2%; animation-duration: 21s; animation-delay: 7s; }
.b5 { width: 6px; height: 6px; left: 87%; bottom: 26%; animation-duration: 17s; animation-delay: 3s; }
.b6 { width: 8px; height: 8px; left: 8%; bottom: 2%; animation-duration: 12s; animation-delay: .5s; }
.b7 { width: 13px; height: 13px; left: 23%; bottom: 1%; animation-duration: 18s; animation-delay: 5s; }
.b8 { width: 18px; height: 18px; left: 41%; bottom: 0; animation-duration: 16s; animation-delay: 8s; }
.b9 { width: 6px; height: 6px; left: 52%; bottom: 6%; animation-duration: 11s; animation-delay: 1.5s; }
.b10 { width: 25px; height: 25px; left: 66%; bottom: 1%; animation-duration: 22s; animation-delay: 6s; }
.b11 { width: 9px; height: 9px; left: 72%; bottom: 8%; animation-duration: 14s; animation-delay: 2.5s; }
.b12 { width: 5px; height: 5px; left: 82%; bottom: 0; animation-duration: 10s; animation-delay: 4s; }
.b13 { width: 12px; height: 12px; left: 92%; bottom: 3%; animation-duration: 17s; animation-delay: 7s; }
.b14 { width: 16px; height: 16px; left: 4%; bottom: 12%; animation-duration: 20s; animation-delay: 9s; }
.b15 { width: 7px; height: 7px; left: 35%; bottom: 14%; animation-duration: 13s; animation-delay: 3s; }

.splash-inner {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 40px));
  padding: clamp(28px, 5vw, 56px) clamp(24px, 5vw, 64px);
  text-align: center;
  border-radius: 34px;
  border: 1px solid rgba(214, 246, 255, .26);
  background: linear-gradient(160deg, rgba(9, 46, 70, .42), rgba(4, 28, 45, .30));
  box-shadow: 0 40px 100px -40px rgba(0, 12, 22, .8), inset 0 1px 0 rgba(255, 255, 255, .18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: card-in 1.1s cubic-bezier(.2, .7, .2, 1) both;
}

.splash-eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  letter-spacing: .28em;
  color: rgba(220, 247, 255, .72);
}

.splash-name {
  margin: 0;
  font-size: clamp(58px, 10vw, 108px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-indent: .08em;
  color: #f2fdff;
  text-shadow: 0 0 50px rgba(150, 232, 255, .38);
}

.splash-name span {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .42em;
  text-indent: .42em;
  color: rgba(205, 239, 250, .78);
}

.splash-role {
  margin: 16px 0 0;
  font-size: 13px;
  letter-spacing: .16em;
  color: rgba(205, 239, 250, .86);
}

.splash-days {
  margin: clamp(26px, 4vh, 40px) auto 0;
  padding-top: clamp(20px, 3vh, 32px);
  border-top: 1px solid rgba(214, 246, 255, .18);
}

.splash-days-label {
  margin: 0;
  font-size: 13px;
  letter-spacing: .22em;
  color: rgba(205, 239, 250, .78);
}

.splash-days-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 0;
  line-height: .95;
}

.splash-days-value strong {
  font-family: var(--font-sans);
  font-size: clamp(64px, 11vw, 116px);
  font-weight: 800;
  letter-spacing: .01em;
  color: #effcff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 46px rgba(126, 221, 248, .45);
}

.splash-days-value span {
  font-size: clamp(16px, 2vw, 22px);
  color: rgba(205, 239, 250, .8);
  letter-spacing: .18em;
}

.splash-days-since {
  margin: 14px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .16em;
  color: rgba(190, 231, 244, .62);
}

.enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(26px, 4vh, 38px);
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid rgba(226, 250, 255, .55);
  background: rgba(236, 253, 255, .94);
  color: var(--ocean-900);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-decoration: none;
  box-shadow: 0 14px 34px -18px rgba(0, 20, 34, .9);
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.enter-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: nudge 1.8s ease-in-out infinite;
}

.enter-btn:hover,
.enter-btn:focus-visible {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 22px 44px -20px rgba(0, 20, 34, .95);
  outline: none;
}

.splash-hint {
  margin: 14px 0 0;
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(185, 227, 241, .55);
}

.splash-foot {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  margin: 0;
  font-size: 10px;
  letter-spacing: .32em;
  color: rgba(190, 231, 244, .48);
  white-space: nowrap;
}

@keyframes slow-zoom {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(0, -1.5%, 0); }
}

@keyframes float-a {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-7deg) scale(.98); }
  50% { transform: translate3d(12px, -36px, 0) rotate(7deg) scale(1.04); }
}

@keyframes float-b {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(8deg) scale(.97); }
  50% { transform: translate3d(-10px, -28px, 0) rotate(-5deg) scale(1.05); }
}

@keyframes sway {
  0%, 100% { transform: rotate(-3.4deg); }
  50% { transform: rotate(3.4deg); }
}

@keyframes rise {
  0% { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  8% { opacity: var(--bubble-opacity, .8); }
  30% { transform: translate3d(var(--drift-mid, 8px), -28vh, 0) scale(.85); }
  60% { transform: translate3d(var(--drift, 16px), -56vh, 0) scale(1.05); }
  100% { transform: translate3d(var(--drift-end, -4px), -92vh, 0) scale(1.3); opacity: 0; }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@media (max-width: 640px) {
  .splash-inner {
    width: calc(100% - 28px);
    padding: 32px 22px 30px;
    border-radius: 26px;
  }
  .splash-name { letter-spacing: .04em; text-indent: .04em; }
  .splash-name span { letter-spacing: .3em; text-indent: .3em; }
  .jelly-a { top: 6%; left: -6%; opacity: .26; }
  .jelly-b { display: none; }
  .splash-role { letter-spacing: .08em; }
  .splash-hint { letter-spacing: .06em; }
  .splash-foot { bottom: 14px; letter-spacing: .18em; }
}

@media (prefers-reduced-motion: reduce) {
  .splash-bg,
  .jelly,
  .jelly-tentacles,
  .bubble,
  .enter-btn svg,
  .splash-inner {
    animation: none !important;
  }
}
