/* ==========================================================================
   AliceHub — Pure Single-Screen Three.js 3D Wall + Release Modal
   ========================================================================== */
:root {
  --bg: #070709;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f3f3f5;
  --text-2: rgba(243, 243, 245, 0.68);
  --text-3: rgba(243, 243, 245, 0.42);
  --rose: #e14b86;
  --cyan: #38bdf8;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Space Grotesk', 'Noto Sans SC', 'Noto Sans JP', system-ui, sans-serif;
  --font-body: 'Noto Sans SC', 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

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

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ==========================================================================
   THREE.JS FULL-VIEWPORT 3D CURVED COVER WALL
   ========================================================================== */
.webgl-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 0;
  display: block;
  cursor: grab;
  touch-action: none;
}

.webgl-stage.is-dragging { cursor: grabbing; }

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  z-index: 1200;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(14, 14, 20, 0.94);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text);
  transition: transform 0.28s var(--ease), opacity 0.24s;
}

.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   MINIMAL TRANSPARENT HEADER
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  pointer-events: auto;
}

.nav-inner {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-icon {
  background: transparent;
  filter: drop-shadow(0 0 0.75px rgba(255, 255, 255, 0.52));
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(7, 7, 9, 0.56);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.lang-btn {
  border: 0;
  background: transparent;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
  transition: background 0.18s, color 0.18s;
}

.lang-btn:hover { color: var(--text-2); }
.lang-btn.is-active { background: var(--text); color: var(--bg); }

.nav-link {
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.18s;
}

.nav-link:hover, .nav-link-strong { color: var(--text); font-weight: 500; }

/* ==========================================================================
   SINGLE-SCREEN POSTER BOTTOM ANCHOR
   ========================================================================== */
.stage {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.stage-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(7, 7, 9, 0.58) 0%,
    rgba(7, 7, 9, 0) 15%,
    rgba(7, 7, 9, 0) 58%,
    rgba(7, 7, 9, 0.78) 82%,
    rgba(7, 7, 9, 0.97) 100%
  );
}

.stage-bottom {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 30px;
  pointer-events: auto;
}

.stage-row-top {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.stage-focus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
}

.focus-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--cyan));
}

#hud-title { color: var(--text); font-family: var(--font-body); font-size: 12.5px; }
.focus-sep { opacity: 0.35; }
#hud-eng { color: var(--cyan); }

.stage-rule { height: 1px; background: var(--line); margin-bottom: 18px; }

.stage-row-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.poster-id { display: flex; align-items: center; gap: 16px; }

.alice-emblem {
  width: 58px;
  height: 58px;
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
  transition: transform 0.25s var(--ease);
}

.alice-emblem:hover { transform: scale(1.07); }
.alice-emblem:active { transform: scale(0.93); }

.alice-stage { position: relative; width: 100%; height: 100%; }

.alice-shell {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 0 0.8px rgba(255, 255, 255, 0.55));
}

.alice-eye {
  position: absolute;
  top: 67.58%;
  width: 5.2%;
  height: 12.6%;
  border-radius: 999px;
  z-index: 3;
  will-change: transform;
}

.alice-eye-rose { left: 37.4%; background: #e12b7b; }
.alice-eye-cyan { left: 57.3%; background: #0ea5e9; }

.eye-glint {
  position: absolute;
  top: 15%;
  left: 18%;
  width: 44%;
  height: 28%;
  border-radius: 999px;
  background: #ffffff;
}

.alice-stage.is-blinking .alice-eye { transform: scaleY(0.08) !important; }
.alice-stage.is-winking .alice-eye-rose { transform: scaleY(0.1) !important; }

.poster-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.poster-sub { margin: 6px 0 0; font-size: 13.5px; color: var(--text-2); }

.poster-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.poster-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(14, 14, 20, 0.72);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), background 0.2s, border-color 0.2s;
}

.poster-btn:hover {
  transform: translateY(-2px);
  background: rgba(24, 24, 34, 0.86);
  border-color: rgba(255, 255, 255, 0.36);
}

.poster-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), opacity 0.2s, box-shadow 0.25s;
}

.poster-cta code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(7, 7, 9, 0.12);
}

.poster-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   MINIMAL SWISS HAIRLINE RELEASE MODAL
   ========================================================================== */
.dl-modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: grid;
  place-items: center;
  padding: 20px;
}

.dl-modal[hidden] { display: none; }

.dl-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: blur(18px);
  animation: fadeIn 0.24s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dl-dialog {
  position: relative;
  z-index: 1;
  width: min(740px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 28px 30px 24px;
  border-radius: 18px;
  background: rgba(10, 10, 14, 0.94);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.92);
  animation: dialogIn 0.32s var(--ease);
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.dl-head-left {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.dl-head-left code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
}

.dl-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: var(--text-2);
  display: grid;
  place-items: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.dl-close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
  color: var(--text);
}

.release-list { border-top: 1px solid var(--line); }

.release-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.15fr) minmax(0, 1.5fr) auto auto;
  align-items: center;
  gap: 12px 22px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s, padding-left 0.25s var(--ease);
}

.release-row:hover {
  background: rgba(255, 255, 255, 0.035);
  padding-left: 16px;
}

.rr-name {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 600;
  color: var(--text);
}

.rr-meta { font-size: 13.5px; color: var(--text-3); }
.rr-size { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.rr-ext { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--text); white-space: nowrap; }
.rr-ext em { display: inline-block; font-style: normal; transition: transform 0.22s var(--ease); }
.release-row:hover .rr-ext em { transform: translate(3px, -2px); }

.release-row:last-child { border-bottom: 0; }

.qq-dialog {
  width: min(360px, 100%);
  padding: 22px 24px 20px;
}

.qq-qr-frame {
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.qq-qr-frame img {
  width: 100%;
  max-width: 264px;
  height: auto;
  border-radius: 8px;
}

.qq-foot {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-2);
}

.qq-copy-btn {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text);
  transition: background 0.18s, border-color 0.18s;
}

.qq-copy-btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 640px) {
  .nav-inner, .stage-bottom { width: calc(100% - 28px); }
  .brand { font-size: 13px; gap: 6px; }
  .nav-right { gap: 10px; font-size: 12px; }
  .nav-link { font-size: 12px; }
  .lang-btn { padding: 3px 6px; font-size: 10px; }

  .stage-bottom { margin-bottom: 22px; }
  .alice-emblem { width: 46px; height: 46px; }
  .poster-sub { font-size: 12.5px; }
  .stage-row-main { align-items: flex-start; flex-direction: column; gap: 14px; }
  .poster-actions { flex-wrap: wrap; gap: 8px; }
  .poster-btn { padding: 9px 12px; gap: 5px; font-size: 12.5px; }
  .poster-cta { padding: 9px 14px; gap: 6px; font-size: 12.5px; }
  .poster-cta code { font-size: 10px; padding: 1px 5px; }

  .dl-dialog { padding: 20px 18px 18px; border-radius: 16px; }
  .release-row {
    grid-template-columns: 1fr auto;
    gap: 3px 14px;
    padding: 16px 4px;
  }
  .rr-name { font-size: 16px; }
  .rr-meta { grid-column: 1 / 2; grid-row: 2; font-size: 12.5px; }
  .rr-size { display: none; }
  .rr-ext { grid-column: 2 / 3; grid-row: 1 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .dl-backdrop, .dl-dialog { animation: none; }
}
