/* ─────────────────────────────────────────────────────────────
   ShortRush · design tokens
   Source: shortjoy DramaDesign.kt / DESIGN_REFERENCE.md
   Ink #0B0B0D · Panel #141417 · Muted #9999A3 · Text #F7F7F5
   Pink #FF9EB4 · Error #FFA0AC · Hairline white 9%
   ───────────────────────────────────────────────────────────── */
:root {
  --ink: #0B0B0D;
  --ink-deep: #060607;
  --panel: #141417;
  --panel-raised: #19191D;
  --panel-soft: #1D1D22;
  --text: #F7F7F5;
  --text-dim: #C9C9CF;
  --muted: #9999A3;
  --muted-dim: #8A8A94;
  --pink: #FF9EB4;
  --pink-strong: #FFB2C4;
  --pink-deep: #D96F8B;
  --error: #FFA0AC;
  --gold: #FFD18A;
  --green: #8BD8B0;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.055);
  --glass: rgba(20, 20, 23, 0.84);
  --glass-strong: rgba(18, 18, 21, 0.94);
  --pink-wash: rgba(255, 158, 180, 0.12);
  --pink-glow: rgba(255, 158, 180, 0.22);

  --font-sans: Inter, "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Roboto Mono", ui-monospace, monospace;

  --fs-2xs: 9px;
  --fs-xs: 10px;
  --fs-caption: 11px;
  --fs-sm: 12px;
  --fs-base: 13px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 21px;
  --fs-2xl: 26px;
  --fs-3xl: 30px;
  --fs-display: 34px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-2xl: 32px;
  --radius-pill: 999px;

  --nav-height: 64px;
  --page-gutter: 16px;
  --page-bottom-safe: calc(96px + env(safe-area-inset-bottom, 0px));
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: dark;
}

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

html {
  min-height: 100%;
  background: var(--ink-deep);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background: var(--ink-deep);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  margin: 0;
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

::selection {
  color: var(--ink);
  background: var(--pink);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 50%;
  z-index: 999;
  transform: translateX(-50%);
  padding: 10px 18px;
  color: var(--ink);
  background: var(--pink);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* Desktop presentation: 430 × 900 device frame, centered. */
.ambient {
  display: none;
}

.phone {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

#app {
  height: 100%;
}

@media (min-width: 760px) {
  body {
    display: grid;
    place-items: center;
    padding: 32px 24px;
  }

  .ambient {
    position: fixed;
    inset: 0;
    display: block;
    pointer-events: none;
    background:
      radial-gradient(60% 48% at 50% 6%, rgba(255, 158, 180, 0.09), transparent 60%),
      radial-gradient(46% 40% at 82% 90%, rgba(97, 88, 180, 0.1), transparent 70%),
      linear-gradient(180deg, #08080A 0%, #050506 100%);
  }

  .ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 0.5px, transparent 0.5px);
    background-size: 5px 5px;
    mask-image: radial-gradient(65% 60% at 50% 50%, #000 20%, transparent 100%);
  }

  .phone {
    width: 430px;
    height: min(900px, calc(100dvh - 64px));
    min-height: 620px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 42px;
    box-shadow:
      0 0 0 8px rgba(255, 255, 255, 0.018),
      0 52px 140px rgba(0, 0, 0, 0.72),
      0 22px 52px rgba(0, 0, 0, 0.48),
      inset 0 0 0 1px rgba(0, 0, 0, 0.9);
  }

  .phone::after {
    content: "";
    position: absolute;
    right: -34px;
    top: 176px;
    width: 3px;
    height: 76px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
