/* bks.monster — Ticket Gate Archive visual system */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=Noto+Sans+SC:wght@400;500;700;900&display=swap");

:root {
  --ink: #12161d;
  --ink-2: #1e2633;
  --fog: #eef1f6;
  --fog-2: #f7f8fb;
  --coral: #ff3d57;
  --coral-deep: #d91f3c;
  --teal: #12b8a8;
  --teal-deep: #0a8f83;
  --amber: #ffb020;
  --text: #1a2130;
  --muted: #5c677a;
  --line: rgba(18, 22, 29, 0.09);
  --glass: rgba(255, 255, 255, 0.78);
  --shadow: 0 14px 40px rgba(18, 22, 29, 0.1);
  --radius: 18px;
  --max: 1040px;
  --header-h: 62px;
  --dock-h: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "Archivo", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 0% -8%, rgba(255, 61, 87, 0.14), transparent 58%),
    radial-gradient(780px 480px at 100% 4%, rgba(18, 184, 168, 0.16), transparent 52%),
    radial-gradient(640px 360px at 70% 100%, rgba(255, 176, 32, 0.1), transparent 55%),
    linear-gradient(180deg, #fbfcfe 0%, var(--fog) 45%, #e9eef5 100%);
  line-height: 1.88;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--coral-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral);
}

.tg-root {
  min-height: 100vh;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* —— Top promo (DY ads) —— */
.gate-promo {
  background: linear-gradient(100deg, #fff4f6, #eefbf9 55%, #fff8eb);
  border-bottom: 1px solid var(--line);
  padding: 10px 10px 6px;
}

#ads,
#dock-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  margin: 4px 0;
  gap: 6px 4px;
}

#ads > div,
#dock-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads img,
#dock-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;
  display: block;
  border: none;
  background: #fff;
}

#ads a,
#dock-ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover,
#dock-ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#ads .caption,
#dock-ads .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— Header —— */
.gate-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand-lock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Archivo", "Noto Sans SC", sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-lock img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(255, 61, 87, 0.25);
}

.brand-lock span {
  font-size: 15px;
}

.rail-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
}

.rail-links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.rail-links a.is-on,
.rail-links a:hover {
  color: var(--ink);
  background: rgba(255, 61, 87, 0.08);
}

.burger {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  gap: 4px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.slide-menu {
  display: none;
  position: absolute;
  top: var(--header-h);
  right: 12px;
  width: min(240px, calc(100vw - 24px));
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow);
  flex-direction: column;
  gap: 4px;
  z-index: 70;
}

.slide-menu.is-open {
  display: flex;
}

.slide-menu a {
  text-decoration: none;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.slide-menu a:hover {
  background: rgba(18, 184, 168, 0.1);
}

/* —— Sticky dock under header —— */
.signal-dock {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: max-height 0.28s ease, opacity 0.28s ease, padding 0.28s ease;
  padding: 0 8px;
}

.signal-dock.is-on {
  max-height: 220px;
  opacity: 1;
  pointer-events: auto;
  padding: 8px 8px 4px;
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(18, 22, 29, 0.06);
}

#dock-ads > div {
  width: 25%;
  max-width: 72px;
}

@media (min-width: 768px) {
  .rail-links {
    display: flex;
  }

  .burger {
    display: none;
  }

  #dock-ads > div {
    width: 12.5%;
  }
}

/* —— Hero —— */
.slash-hero {
  position: relative;
  padding: 42px 0 34px;
  overflow: hidden;
}

.slash-hero::before {
  content: "";
  position: absolute;
  inset: 12% -10% auto auto;
  width: 55%;
  height: 70%;
  background:
    linear-gradient(135deg, rgba(255, 61, 87, 0.18), transparent 60%),
    linear-gradient(210deg, rgba(18, 184, 168, 0.2), transparent 55%);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 78%);
  pointer-events: none;
}

.hero-stack {
  position: relative;
  display: grid;
  gap: 22px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.hero-kicker::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--coral), var(--amber));
}

.slash-hero h1 {
  margin: 0;
  font-family: "Archivo", "Noto Sans SC", sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 6.2vw, 2.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.slash-hero .lead {
  margin: 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-stamp {
  width: fit-content;
  padding: 10px 14px;
  border: 1.5px dashed rgba(255, 61, 87, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  color: var(--ink-2);
}

/* —— Sections —— */
.folio {
  padding: 38px 0;
}

.folio + .folio {
  border-top: 1px solid var(--line);
}

.folio h2 {
  margin: 0 0 14px;
  font-family: "Archivo", "Noto Sans SC", sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}

.folio h3 {
  margin: 18px 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink-2);
}

.folio p {
  margin: 0 0 14px;
  color: var(--text);
}

.folio .deck {
  color: var(--muted);
  font-size: 0.98rem;
}

.num-tag {
  display: inline-block;
  margin-bottom: 8px;
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--coral-deep);
}

/* layouts */
.split-lane {
  display: grid;
  gap: 22px;
  align-items: start;
}

.split-lane.flip .shot-tile {
  order: -1;
}

.shot-tile {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  max-width: 340px;
  justify-self: center;
}

.shot-tile img {
  width: 100%;
}

.shot-tile figcaption {
  padding: 10px 12px 12px;
  font-size: 12px;
  color: var(--muted);
}

.ticket-grid {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.ticket {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(18, 22, 29, 0.05);
  overflow: hidden;
}

.ticket::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--coral), var(--teal));
}

.ticket h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.ticket p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(18, 184, 168, 0.1);
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 600;
}

.chip.hot {
  background: rgba(255, 61, 87, 0.1);
  color: var(--coral-deep);
}

.chip.warm {
  background: rgba(255, 176, 32, 0.16);
  color: #9a6a00;
}

/* mosaic cards + image */
.mosaic-board {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.mosaic-board .shot-tile {
  max-width: none;
  justify-self: stretch;
}

.pulse-line {
  height: 1px;
  margin: 28px 0;
  background: linear-gradient(90deg, transparent, rgba(255, 61, 87, 0.35), rgba(18, 184, 168, 0.35), transparent);
}

/* crumb */
.crumb {
  padding: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.crumb a {
  color: var(--muted);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--coral-deep);
}

.crumb span {
  margin: 0 6px;
  opacity: 0.5;
}

/* legal / about body */
.legal-shell {
  padding: 10px 0 48px;
}

.legal-shell h1 {
  margin: 8px 0 16px;
  font-family: "Archivo", "Noto Sans SC", sans-serif;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
}

.legal-shell h2 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
}

.legal-shell p,
.legal-shell li {
  color: var(--text);
}

.legal-shell ul {
  padding-left: 1.2em;
}

/* footer */
.site-foot {
  margin-top: 20px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.foot-grid {
  display: grid;
  gap: 16px;
}

.foot-grid strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.foot-grid a {
  display: inline-block;
  margin-right: 12px;
  margin-bottom: 6px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

.foot-grid a:hover {
  color: var(--coral-deep);
}

.foot-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* error pages */
.fault-panel {
  padding: 48px 0 64px;
  text-align: center;
}

.fault-panel h1 {
  margin: 0 0 12px;
  font-family: "Archivo", sans-serif;
  font-size: clamp(2.4rem, 10vw, 4rem);
  color: var(--coral);
}

.fault-panel p {
  color: var(--muted);
  max-width: 28em;
  margin: 0 auto 20px;
}

.fault-panel .back {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--coral), #ff6b4a);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(255, 61, 87, 0.28);
}

/* motion */
@keyframes rise-soft {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow-shift {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(12deg);
  }
}

.rise-soft {
  animation: rise-soft 0.7s ease both;
}

.slash-hero::before {
  animation: glow-shift 9s ease-in-out infinite;
}

.ticket:hover {
  transform: translateY(-3px);
  transition: transform 0.2s ease;
}

@media (min-width: 860px) {
  .hero-stack {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }

  .split-lane {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
  }

  .split-lane.flip {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .split-lane.flip .shot-tile {
    order: 0;
  }

  .ticket-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .ticket-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .mosaic-board.with-shot {
    grid-template-columns: 1fr 1fr 0.95fr;
  }

  .foot-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

/* dy page */
.dy-frame {
  padding: 28px 0 48px;
}

.dy-frame h1 {
  margin: 0 0 10px;
  font-family: "Archivo", "Noto Sans SC", sans-serif;
  font-size: 1.6rem;
}
