:root {
  --pink: #ffd0e4;
  --pink-soft: #ffe4f0;
  --pink-deep: #f5b8d0;
  --rose: #fde8f1;
  --paper: #fffafc;
  --ink: #0b0b0c;
  --ink-2: rgba(11, 11, 12, 0.62);
  --ink-3: rgba(11, 11, 12, 0.38);
  --line: rgba(11, 11, 12, 0.1);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--rose);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("./assets/bg.png") center / cover no-repeat;
  background-color: var(--rose);
}

.stage {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 32px));
  margin: 28px auto 48px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 28px;
  padding: 18px 0;
}

.rail-word {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  color: var(--ink-3);
  transition: color 0.15s var(--ease);
}

.rail-word:hover {
  color: var(--ink);
}

.sheet {
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--paper) 88%, white);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  padding: 28px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 24px 60px rgba(245, 184, 208, 0.28),
    0 2px 0 rgba(11, 11, 12, 0.03);
  backdrop-filter: blur(10px);
  animation: in 0.55s var(--ease) both;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.tag {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: end;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 160px;
  padding: 28px 22px;
  border: 1px solid rgba(245, 184, 208, 0.65);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 12px 36px rgba(245, 184, 208, 0.22);
}

.panel:not(.panel-discord) {
  background: linear-gradient(
    125deg,
    #fff 0%,
    var(--pink-soft) 42%,
    var(--pink) 78%,
    #fff6fa 100%
  );
}

.panel + .panel {
  margin-top: 14px;
}

.title-block {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 0.55em 0.2em 0.35em 0.1em;
  isolation: isolate;
}

.title-stamp {
  position: absolute;
  z-index: 0;
  left: -12%;
  top: 50%;
  width: 118%;
  aspect-ratio: 1;
  height: auto;
  transform: translateY(-50%) rotate(-6deg);
  pointer-events: none;
  user-select: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
}

.title-stamp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.title-name {
  position: relative;
  z-index: 1;
  display: block;
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--ink);
}

.panel-text p {
  margin: 0;
  max-width: 18ch;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.15s var(--ease),
    opacity 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}

.chip:hover {
  transform: translateY(-1px);
}

.chip:active {
  transform: translateY(0);
}

.chip-label {
  position: relative;
  z-index: 1;
}

.chip-download {
  color: var(--ink);
  background:
    linear-gradient(
      125deg,
      #fff 0%,
      var(--pink-soft) 42%,
      var(--pink) 78%,
      #fff6fa 100%
    );
  border: 1px solid rgba(245, 184, 208, 0.65);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 12px 28px rgba(245, 184, 208, 0.35);
}

.chip-download-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.chip-download-bg img {
  position: absolute;
  right: -6px;
  top: 50%;
  width: 58px;
  height: 58px;
  object-fit: cover;
  transform: translateY(-50%);
  opacity: 0.42;
  mix-blend-mode: multiply;
  filter: saturate(1.05);
}

.chip-download:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 14px 32px rgba(245, 184, 208, 0.42);
}

.chip-download:hover .chip-download-bg img {
  opacity: 0.5;
}

.panel-discord {
  background:
    linear-gradient(100deg, rgba(255, 250, 252, 0.72) 0%, rgba(255, 240, 246, 0.45) 55%, rgba(255, 228, 240, 0.28) 100%),
    url("./assets/banner.png") center / cover no-repeat;
  border-color: rgba(255, 255, 255, 0.55);
}

.panel-discord .title-name {
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.chip-banner {
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 12px 28px rgba(11, 11, 12, 0.12);
  background: transparent;
}

.chip-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("./assets/banner.png") center / cover no-repeat;
  filter: saturate(1.05) brightness(1.02);
}

.chip-banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 208, 228, 0.35) 55%,
    rgba(255, 255, 255, 0.25)
  );
}

.chip-banner:hover .chip-banner-bg {
  filter: saturate(1.1) brightness(1.05);
}

@keyframes in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .stage {
    grid-template-columns: 1fr;
    width: min(640px, calc(100% - 24px));
    margin-top: 16px;
  }

  .rail {
    position: static;
    padding: 0 4px 2px;
  }

  .rail-word {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.18em;
  }

  .panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .sheet {
    padding: 18px;
    border-radius: 22px;
  }

  .panel {
    padding: 22px 16px;
  }

  .title-stamp {
    opacity: 0.34;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sheet {
    animation: none;
  }
}

.lang-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(255, 247, 250, 0.28);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.lang-gate[hidden] {
  display: none;
}

body.lang-open {
  overflow: hidden;
}

.lang-card {
  width: min(220px, 100%);
  padding: 16px 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 40px rgba(245, 184, 208, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: center;
}

.lang-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lang-opts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lang-opt {
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}

.lang-opt:hover {
  background: rgba(255, 208, 228, 0.55);
  transform: translateY(-1px);
}

.lang-opt:active {
  transform: translateY(0);
}
