/* pi-cac.club — Aurora Booth visual system (original) */
@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@500;700;800&family=Outfit:wght@500;700;800&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --ink: #15202b;
  --ink-soft: #3d4d5c;
  --mist: #eef3f8;
  --sheet: #f7fafc;
  --panel: rgba(255, 255, 255, 0.78);
  --hot: #ff3a7a;
  --hot-deep: #d91f5d;
  --aqua: #12b8c9;
  --aqua-deep: #0a8f9c;
  --butter: #ffc857;
  --line: rgba(21, 32, 43, 0.1);
  --glow: 0 20px 48px rgba(18, 184, 201, 0.14);
  --glow-hot: 0 18px 42px rgba(255, 58, 122, 0.16);
  --r-lg: 28px;
  --r-md: 18px;
  --max: 1040px;
  --mast-h: 60px;
  --dock-h: 0px;
  --font-display: "M PLUS Rounded 1c", "Outfit", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(255, 58, 122, 0.16), transparent 60%),
    radial-gradient(780px 380px at 96% 0%, rgba(18, 184, 201, 0.18), transparent 55%),
    linear-gradient(180deg, #f8fbff 0%, var(--sheet) 42%, #fff8fb 100%);
  line-height: 1.88;
  font-size: 16px;
  overflow-x: hidden;
  padding-top: var(--mast-h);
}

body.has-top-promo {
  padding-top: 0;
}

body.has-top-promo .site-mast {
  position: sticky;
}

.dock-spacer {
  height: 0;
  transition: height 0.28s ease;
}

body.dock-open .dock-spacer {
  height: var(--dock-h);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.45;
  background-image: radial-gradient(rgba(21, 32, 43, 0.055) 0.8px, transparent 0.8px);
  background-size: 14px 14px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--hot-deep);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--aqua-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 0.7em;
}

p {
  margin: 0 0 1.05em;
  color: var(--ink-soft);
}

.shell {
  width: min(100% - 28px, var(--max));
  margin-inline: auto;
}

/* top promo ads */
.top-booth {
  position: relative;
  z-index: 120;
  background: linear-gradient(90deg, rgba(255, 58, 122, 0.08), rgba(18, 184, 201, 0.1));
  border-bottom: 1px solid var(--line);
  padding: 10px 0 6px;
}

.promo-ads,
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 10px;
  background: transparent;
}

#ads > div,
.promo-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads figure,
.promo-ads figure {
  margin: 0;
}

#ads img,
.promo-ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  border: none;
  background: #fff;
}

#ads a,
.promo-ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover,
.promo-ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#ads .caption,
.promo-ads .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* header */
.site-mast {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  height: var(--mast-h);
  backdrop-filter: blur(16px);
  background: rgba(247, 250, 252, 0.9);
  border-bottom: 1px solid var(--line);
}

body.has-top-promo .site-mast {
  position: sticky;
  top: 0;
}

.mast-row {
  height: var(--mast-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  box-shadow: var(--glow-hot);
}

.menu-switch {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-current {
  background: linear-gradient(135deg, rgba(255, 58, 122, 0.12), rgba(18, 184, 201, 0.14));
  color: var(--ink);
}

/* sticky download dock below header */
.dock-rail {
  position: fixed;
  top: var(--mast-h);
  left: 0;
  right: 0;
  z-index: 105;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: max-height 0.28s ease, opacity 0.28s ease, padding 0.28s ease;
}

.dock-rail.is-live {
  max-height: 220px;
  opacity: 1;
  pointer-events: auto;
  padding: 8px 0 10px;
}

.dock-note {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}

.dock-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
  justify-items: center;
}

@media (min-width: 900px) {
  .dock-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.dock-grid a {
  width: 100%;
  max-width: 72px;
  text-decoration: none;
  color: var(--ink-soft);
  text-align: center;
  font-size: 11px;
}

.dock-grid img {
  width: 52px;
  height: 52px;
  margin: 0 auto 4px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(21, 32, 43, 0.12);
}

.dock-grid span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* hero — brand-forward composition */
.aurora-hero {
  position: relative;
  overflow: hidden;
  margin: 18px auto 28px;
  border-radius: calc(var(--r-lg) + 4px);
  min-height: min(72vh, 640px);
  padding: clamp(28px, 6vw, 56px) clamp(20px, 5vw, 48px);
  background:
    linear-gradient(135deg, rgba(21, 32, 43, 0.72), rgba(255, 58, 122, 0.45) 48%, rgba(18, 184, 201, 0.42)),
    radial-gradient(circle at 80% 20%, rgba(255, 200, 87, 0.35), transparent 40%),
    linear-gradient(160deg, #1b2735, #2a1830);
  color: #fff;
  box-shadow: var(--glow-hot);
  isolation: isolate;
}

.aurora-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0 14px,
      rgba(255, 255, 255, 0.04) 14px 15px
    );
  mix-blend-mode: soft-light;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  animation: rise-in 0.8s ease both;
}

.hero-brand img {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.hero-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.hero-brand-sub {
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.86;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.aurora-hero h1 {
  color: #fff;
  font-size: clamp(1.45rem, 4.4vw, 2.15rem);
  max-width: 18em;
  margin-bottom: 14px;
  animation: rise-in 0.9s 0.08s ease both;
}

.hero-lead {
  max-width: 36em;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  margin-bottom: 0;
  animation: rise-in 1s 0.14s ease both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* content modules */
.folio {
  margin: 0 0 34px;
  padding: 26px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--glow);
  backdrop-filter: blur(10px);
}

.folio.soft {
  background: transparent;
  border: none;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--aqua-deep);
  background: rgba(18, 184, 201, 0.12);
  border: 1px dashed rgba(18, 184, 201, 0.35);
}

.stamp.hot {
  color: var(--hot-deep);
  background: rgba(255, 58, 122, 0.1);
  border-color: rgba(255, 58, 122, 0.35);
}

.duo {
  display: grid;
  gap: 22px;
  align-items: center;
}

@media (min-width: 860px) {
  .duo {
    grid-template-columns: 0.92fr 1.08fr;
  }

  .duo.reverse {
    grid-template-columns: 1.08fr 0.92fr;
  }

  .duo.reverse .frame {
    order: 2;
  }
}

.frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--glow-hot);
  background: #fff;
  transform: rotate(-1.2deg);
}

.frame.tilt-r {
  transform: rotate(1.4deg);
}

.frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.frame-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(21, 32, 43, 0.72);
  color: #fff;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.chip-board {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .chip-board.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .chip-board.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.chip {
  padding: 18px 16px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, #fff, #f3fbff);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(21, 32, 43, 0.05);
}

.chip h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45em;
}

.chip p:last-child {
  margin-bottom: 0;
}

.chip .glyph {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--hot), var(--aqua));
  box-shadow: var(--glow-hot);
}

.quote-strip {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--butter);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: rgba(255, 200, 87, 0.12);
  color: var(--ink);
  font-weight: 500;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  margin-bottom: 16px;
  color: var(--ink-soft);
}

.crumb a {
  text-decoration: none;
  color: var(--aqua-deep);
}

.crumb span {
  opacity: 0.55;
}

.page-lead {
  margin: 22px auto 10px;
  padding: 28px 22px;
  border-radius: var(--r-lg);
  background:
    linear-gradient(120deg, rgba(255, 58, 122, 0.1), rgba(18, 184, 201, 0.12)),
    #fff;
  border: 1px solid var(--line);
}

.page-lead h1 {
  margin-bottom: 0.4em;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.related {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.related a {
  text-decoration: none;
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(18, 184, 201, 0.08);
  color: var(--ink);
  border: 1px solid transparent;
}

.related a:hover {
  border-color: rgba(18, 184, 201, 0.35);
}

.site-foot {
  margin-top: 40px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(18, 184, 201, 0.06));
}

.foot-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 760px) {
  .foot-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.site-foot h3 {
  font-size: 1rem;
  margin-bottom: 0.5em;
}

.site-foot a {
  display: inline-block;
  margin: 0 12px 8px 0;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
}

.site-foot a:hover {
  color: var(--hot-deep);
}

.foot-copy {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-soft);
}

.error-card {
  margin: 40px auto;
  max-width: 640px;
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--glow);
}

.error-card .code {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  background: linear-gradient(135deg, var(--hot), var(--aqua));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}

.home-link {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--hot), var(--aqua));
  box-shadow: var(--glow-hot);
}

.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.is-shown {
  opacity: 1;
  transform: none;
}

.legal-block + .legal-block {
  margin-top: 8px;
}

@media (max-width: 820px) {
  .menu-switch {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(var(--mast-h) + 6px);
    right: 14px;
    flex-direction: column;
    align-items: stretch;
    min-width: 180px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--glow);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .mast-row {
    position: relative;
  }

  .frame {
    max-width: 320px;
    margin-inline: auto;
  }
}
