/* Typography: use system fonts for zero-setup deployment */
:root {
  --bg0: #0b3f73;
  --bg1: #072952;
  --card: rgba(6, 31, 60, 0.5);
  --stroke: rgba(255, 255, 255, 0.24);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --brand: #5ccdf6;
  --brand2: #2c8ec9;
  --gold: #d9c08d;
  --shadow: rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius2: 16px;
  --meter: 64%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background: linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  min-height: 100svh;
  margin: 0;
  position: relative;
  color: var(--text);
  background: transparent;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Noto Sans JP", "Segoe UI", sans-serif;
  overflow-x: hidden;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(1200px 760px at 18% 8%, rgba(101, 186, 240, 0.36), transparent 55%),
    radial-gradient(1000px 700px at 88% 16%, rgba(38, 116, 184, 0.32), transparent 60%),
    radial-gradient(900px 900px at 52% 118%, rgba(160, 210, 240, 0.12), transparent 56%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.glow {
  position: absolute;
  filter: blur(40px);
  opacity: 0.85;
  transform: translateZ(0);
  mix-blend-mode: screen;
}

.glow--a {
  width: 520px;
  height: 520px;
  left: -120px;
  top: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(115, 198, 244, 0.82), transparent 60%);
  animation: driftA 12s ease-in-out infinite;
}

.glow--b {
  width: 640px;
  height: 640px;
  right: -180px;
  bottom: -220px;
  background: radial-gradient(circle at 35% 35%, rgba(43, 127, 201, 0.78), transparent 62%);
  animation: driftB 14s ease-in-out infinite;
}

@keyframes driftA {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, 18px) scale(1.05);
  }
}

@keyframes driftB {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-28px, -22px) scale(1.06);
  }
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -120px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.36), rgba(88, 184, 207, 0.14) 38%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(circle at 70% 70%, rgba(180, 154, 99, 0.08), rgba(255, 255, 255, 0) 62%);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(2px);
  transform: translateZ(0);
  animation-name: rise;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
}

@keyframes rise {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0;
  }
  12% {
    opacity: 0.95;
  }
  100% {
    transform: translate3d(0, -120vh, 0) scale(1.06);
    opacity: 0;
  }
}

.wrap {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 28px 18px env(safe-area-inset-bottom);
  z-index: 1;
}

.card {
  width: min(860px, 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 0 30px 120px var(--shadow);
  backdrop-filter: blur(16px);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 220px at 25% 0%, rgba(88, 184, 207, 0.16), transparent 60%),
    radial-gradient(520px 260px at 85% 100%, rgba(180, 154, 99, 0.10), transparent 62%);
  opacity: 0.9;
  pointer-events: none;
}

.brand {
  position: relative;
  padding: 22px 22px 24px;
}

.logo {
  display: grid;
  place-items: center;
}

.logo img {
  display: block;
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.25));
  user-select: none;
}

.logo--tate {
  width: min(360px, 72%);
}

.content {
  position: relative;
  padding: 18px 26px 10px;
  text-align: center;
}

.eyebrow {
  margin: 14px 0 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.title {
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0.02em;
  font-size: clamp(24px, 3.2vw, 40px);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: rgba(255, 255, 255, 0.6);
}

.title__main {
  display: inline-block;
  font-weight: 600;
}

.title__accent {
  display: inline-block;
  font-weight: 800;
  margin-left: 0.18em;
  color: rgba(255, 255, 255, 0.75);
}

.lead {
  margin: 16px auto 0;
  max-width: 42em;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.spOnlyBr {
  display: none;
}

.status {
  margin: 22px auto 0;
  max-width: 520px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.meter {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.meter__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--meter);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(88, 184, 207, 0.2), rgba(88, 184, 207, 0.85), rgba(180, 154, 99, 0.45));
  opacity: 0.95;
}

.meter__shine {
  position: absolute;
  inset: -30px auto -30px 0;
  width: 140px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  animation: shine 1.9s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes shine {
  0% {
    left: -160px;
  }
  55% {
    left: calc(100% - 40px);
  }
  100% {
    left: calc(100% + 160px);
  }
}

.status__text {
  margin: 10px 0 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.dots {
  display: inline-block;
  width: 1.4em;
  text-align: left;
}

.countdown {
  margin: 12px 0 0;
}

.countdownCard {
  border-radius: 14px;
  padding: 16px 14px 14px;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  position: relative;
  overflow: hidden;
}

.countdownTop {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.countdownMain {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.countdownLabel {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
}

.countdownNumber {
  font-weight: 950;
  letter-spacing: -0.02em;
  font-size: clamp(52px, 7.2vw, 82px);
  line-height: 0.95;
  color: #5ccdf6;
}

.countdownUnit {
  font-size: 16px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.82);
}

.countdownSub {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.66);
}

.footer {
  position: relative;
  padding: 8px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.company {
  width: 100%;
  max-width: 480px;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.company__title {
  margin: 0 0 16px;
  padding-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.company__list {
  margin: 0;
}

.company__row {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: 4px 14px;
  padding: 9px 0;
}

.company__row + .company__row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.company__row dt {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.company__row dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.company__row dd a {
  color: #7fd2ef;
  text-decoration: none;
}

.company__row dd a:hover {
  text-decoration: underline;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 0.84rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
}

.footer__links a:hover {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
}

.footer__copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.inviteCard {
  margin: 0 20px 8px;
  padding: 36px 28px 32px;
  border-radius: 20px;
  border: 1px solid rgba(88, 184, 207, 0.22);
  background: radial-gradient(600px 260px at 15% 0%, rgba(88, 184, 207, 0.18), transparent 52%),
    radial-gradient(500px 260px at 90% 110%, rgba(180, 154, 99, 0.12), transparent 56%),
    rgba(0, 0, 0, 0.22);
  box-shadow: 0 0 0 1px rgba(88, 184, 207, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 64px rgba(0, 0, 0, 0.28),
    0 0 60px rgba(88, 184, 207, 0.06);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.inviteCard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88, 184, 207, 0.6), rgba(255, 255, 255, 0.3), rgba(180, 154, 99, 0.4), transparent);
  pointer-events: none;
}

.inviteLabel {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(88, 184, 207, 0.85);
}

.inviteTitle {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: clamp(28px, 5.5vw, 40px);
  line-height: 1.25;
}

.inviteTitleLine {
  display: inline-block;
  background: linear-gradient(90deg, #5ccdf6 0%, #ffffff 50%, #d9c08d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.inviteText {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.8;
}

.inviteMuted {
  display: inline-block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.inviteCta {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ctaBtn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 17px 28px;
  width: min(400px, 100%);
  cursor: pointer;
  font-size: 16px;
  background: linear-gradient(135deg, #6ed8ff, #1a8ab0);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.1em;
  box-shadow: 0 10px 40px rgba(88, 184, 207, 0.45),
    0 2px 0 rgba(255, 255, 255, 0.0) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.ctaBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(88, 184, 207, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ctaBtn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 16px rgba(88, 184, 207, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.ctaBtn:focus-visible {
  outline: 3px solid rgba(92, 221, 246, 0.55);
  outline-offset: 3px;
}

.ctaMicro {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.52);
  text-align: center;
}

@media (max-height: 720px) {
  .wrap {
    justify-content: flex-start;
    padding-top: 18px;
  }
}

@media (min-height: 900px) {
  .wrap {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .bg {
    position: fixed;
    min-height: 0;
  }

  .title {
    white-space: normal;
    font-size: clamp(24px, 8.2vw, 34px);
    letter-spacing: 0.01em;
    line-height: 1.12;
  }

  .title__main,
  .title__accent {
    display: block;
  }

  .title__accent {
    margin-left: 0;
    margin-top: 0.08em;
  }

  .lead {
    line-height: 1.65;
  }

  .spOnlyBr {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  body {
    overflow: auto;
  }
}
