/* 숏스미스(shortsmith) — styles.css
 * 시각 단일 진실원천 = projects/shortsmith/DESIGN.md frontmatter.
 * 다크가 1차 무드(작업대), 라이트는 '도면 종이'. 단일 forged-amber 액센트.
 * 양 블록 :root[data-theme="light|dark"] = DESIGN.md themes.light/dark 1:1 미러.
 * base :root = 다크(1차 모드) no-JS 폴백 + 공유 구조 토큰.
 */

/* ===== 공유 구조 토큰 (색 외 — 모드 무관) ===== */
:root {
  --font-display: "Space Grotesk", Pretendard, system-ui, sans-serif;
  --font-body: Inter, Pretendard, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --fs-display: 34px; --lh-display: 1.08; --fw-display: 600;
  --fs-h1: 22px; --fw-h1: 600;
  --fs-h2: 15px; --fw-h2: 600;
  --fs-body: 15px; --lh-body: 1.6;
  --fs-mono: 13px; --lh-mono: 1.5;
  --fs-micro: 11px; --lh-micro: 1.3;

  --sp-xs: 6px; --sp-sm: 10px; --sp-md: 16px; --sp-lg: 24px; --sp-xl: 40px;
  --r-base: 10px; --r-sm: 6px; --r-phone: 26px; --r-pill: 999px;

  --t-fast: 120ms; --t-base: 160ms; --t-slow: 220ms;
  --ease: cubic-bezier(.2,.9,.25,1);
  --ease-strike: cubic-bezier(.3,.7,0,1);

  --phone-w: 172px; --phone-h: 306px; --rail-w: 300px; --shell-max: 1240px;

  /* === 다크 1차 모드 팔레트 (no-JS 폴백) === */
  --bg: #16140f; --surface: #201d17; --surface-2: #2a261e;
  --ink: #f0ebe0; --muted: #a89f8f; --faint: #6f675a; --line: #37322a;
  --accent: #f59e42; --accent-deep: #d9772a; --accent-soft: #3a2c1a; --accent-ink: #1a1206;
  --ok: #6fbf7e; --warn: #e0a64a; --danger: #e87a6a;

  --grad-bg-glow: radial-gradient(900px 520px at 88% -12%, var(--accent-soft) 0%, transparent 60%);
  --grad-accent: linear-gradient(150deg, var(--accent), var(--accent-deep));
  --grad-hook: linear-gradient(180deg, var(--accent) 0%, transparent 100%);

  --shadow-card: 0 1px 0 var(--line);
  --shadow-lift: 0 8px 22px -14px rgba(0,0,0,.45);
  --shadow-focus: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);

  /* 스위처 브릿지 */
  --i18n-switch-bg: var(--surface-2); --i18n-switch-border: var(--line);
  --i18n-switch-fg: var(--ink); --i18n-switch-active-bg: var(--accent-soft);
  --i18n-switch-active-fg: var(--accent); --i18n-switch-menu-bg: var(--surface);
  --i18n-switch-menu-border: var(--line); --i18n-switch-shadow: var(--shadow-lift);
  --i18n-switch-radius: var(--r-sm);
  --theme-switch-bg: var(--surface-2); --theme-switch-border: var(--line);
  --theme-switch-fg: var(--muted); --theme-switch-active-bg: var(--accent);
  --theme-switch-active-fg: var(--accent-ink); --theme-switch-radius: var(--r-sm);
}

/* ===== LIGHT — '도면 종이' (DESIGN.md themes.light 1:1) ===== */
:root[data-theme="light"] {
  --bg: #f4f1ea; --surface: #fbfaf6; --surface-2: #ece7dc;
  --ink: #1c1a17; --muted: #5d574d; --faint: #938c7e; --line: #d8d1c2;
  --accent: #c2410c; --accent-deep: #9a3209; --accent-soft: #f7e6d8; --accent-ink: #ffffff;
  --ok: #3f7d4e; --warn: #b06a12; --danger: #b03b2e;
  --shadow-lift: 0 8px 22px -14px rgba(60,40,10,.30);
}

/* ===== DARK — 작업대 (DESIGN.md themes.dark 1:1) ===== */
:root[data-theme="dark"] {
  --bg: #16140f; --surface: #201d17; --surface-2: #2a261e;
  --ink: #f0ebe0; --muted: #a89f8f; --faint: #6f675a; --line: #37322a;
  --accent: #f59e42; --accent-deep: #d9772a; --accent-soft: #3a2c1a; --accent-ink: #1a1206;
  --ok: #6fbf7e; --warn: #e0a64a; --danger: #e87a6a;
  --shadow-lift: 0 8px 22px -14px rgba(0,0,0,.45);
}

/* ===== Reset / base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  background-image: var(--grad-bg-glow);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--r-sm); }
::selection { background: var(--accent-soft); color: var(--ink); }
button { font-family: inherit; }

/* ===== Header ===== */
.site {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: var(--sp-md);
  padding: var(--sp-sm) var(--sp-lg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: var(--sp-sm); }
.brand-mark {
  width: 26px; height: 26px; border-radius: var(--r-sm);
  background: var(--grad-accent);
  position: relative; flex: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-ink) 18%, transparent);
}
.brand-mark::before { /* 모루 은유 — 로고 1곳에서만 */
  content: ""; position: absolute; inset: 7px 5px;
  background: var(--accent-ink); opacity: .85;
  clip-path: polygon(0 40%, 100% 40%, 78% 100%, 22% 100%, 22% 70%, 0 70%);
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.header-trust {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--muted);
  padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface);
}
.header-trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.header-spacer { flex: 1; }
.header-tools { display: flex; align-items: center; gap: var(--sp-sm); }

/* i18n switcher in dark/light */
.i18n-switch {
  --i18n-switch-bg: var(--surface-2); --i18n-switch-border: var(--line);
  --i18n-switch-fg: var(--ink); --i18n-switch-active-bg: var(--accent-soft);
  --i18n-switch-active-fg: var(--accent); --i18n-switch-menu-bg: var(--surface);
  --i18n-switch-menu-border: var(--line);
}

/* ===== Shell layout ===== */
.shell {
  max-width: var(--shell-max); margin: 0 auto;
  padding: var(--sp-lg);
  display: grid; grid-template-columns: var(--rail-w) 1fr; gap: var(--sp-lg);
  align-items: start;
}

/* ===== Hero (above work area) ===== */
.hero { grid-column: 1 / -1; padding: var(--sp-sm) 2px var(--sp-md); }
.hero h1 {
  font-family: var(--font-display); font-weight: var(--fw-display);
  font-size: var(--fs-display); line-height: var(--lh-display);
  margin: 0 0 var(--sp-xs); letter-spacing: -.02em;
}
.hero h1 .amber { color: var(--accent); }
.hero p { margin: 0; color: var(--muted); font-size: var(--fs-body); }

/* ===== Rail (input) ===== */
.rail { position: sticky; top: 64px; display: flex; flex-direction: column; gap: var(--sp-md); }
.rail-title {
  font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint);
}
.field { display: flex; flex-direction: column; gap: var(--sp-xs); }
.field > label {
  font-size: var(--fs-micro); font-weight: 600; color: var(--muted);
  font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase;
}
.topic-input {
  width: 100%; padding: var(--sp-sm) var(--sp-md);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-base);
  font-family: var(--font-body); font-size: var(--fs-body);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.topic-input::placeholder { color: var(--faint); }
.topic-input:focus { border-color: var(--accent); }

.chip-group { display: flex; flex-wrap: wrap; gap: var(--sp-xs); }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 32px; padding: 5px 11px;
  background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 12.5px; cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--accent-deep); }
.chip[aria-pressed="true"] {
  background: var(--accent-soft); color: var(--accent);
  border-color: var(--accent); font-weight: 600;
}
.chip:active { transform: translateY(1px); }

.range-wrap { display: flex; align-items: center; gap: var(--sp-sm); }
.range-wrap input[type="range"] { flex: 1; accent-color: var(--accent); }
.range-val { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink); min-width: 42px; text-align: right; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 var(--sp-lg);
  background: var(--grad-accent); color: var(--accent-ink);
  border: none; border-radius: var(--r-base);
  font-weight: 700; font-size: var(--fs-body); cursor: pointer;
  transition: box-shadow var(--t-base) var(--ease), transform var(--t-fast) var(--ease-strike), filter var(--t-fast) var(--ease);
}
.btn-primary:hover { box-shadow: var(--shadow-lift); filter: brightness(1.04); }
.btn-primary:active { transform: translateY(1px) scale(.99); }
.btn-primary[disabled] { opacity: .55; cursor: progress; }
.btn-primary.is-forging { animation: strike-pulse var(--t-slow) var(--ease-strike); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 var(--sp-md);
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-base);
  font-size: 13px; cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent-deep); }
.btn-ghost:active { transform: translateY(1px); }

.history { display: flex; flex-direction: column; gap: var(--sp-xs); }
.history-item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-sm);
  padding: 7px var(--sp-sm); border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); font-size: 12.5px;
}
.history-item button { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 12px; padding: 4px; }
.history-item .htopic { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-empty { color: var(--faint); font-size: 12.5px; font-family: var(--font-mono); }

/* ===== Work area ===== */
.work { display: flex; flex-direction: column; gap: var(--sp-lg); min-width: 0; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-base); padding: var(--sp-md);
  box-shadow: var(--shadow-card);
}
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-md); margin-bottom: var(--sp-md); flex-wrap: wrap; }
.sec-head h2 { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: var(--fw-h1); margin: 0; letter-spacing: -.01em; }
.sec-head .sec-desc { color: var(--muted); font-size: 12.5px; flex: 1; min-width: 180px; }
.sec-actions { display: flex; gap: var(--sp-xs); flex-wrap: wrap; }

/* ===== Empty state ===== */
.empty {
  text-align: center; padding: var(--sp-xl) var(--sp-md); color: var(--muted);
}
.empty .forge-icon {
  width: 56px; height: 56px; margin: 0 auto var(--sp-md);
  border-radius: var(--r-base); background: var(--accent-soft);
  display: grid; place-items: center; font-size: 26px;
}
.empty h2 { font-family: var(--font-display); color: var(--ink); margin: 0 0 var(--sp-xs); font-size: var(--fs-h1); }
.empty p { margin: 4px 0; }
.empty .hint { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--faint); }

/* ===== Timeline bar ===== */
.timeline-bar { display: flex; width: 100%; height: 30px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); margin-bottom: var(--sp-md); }
.tl-block {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  background: var(--surface-2); border-right: 1px solid var(--line); overflow: hidden; white-space: nowrap;
}
.tl-block:last-child { border-right: none; }
.tl-block.is-hook { background: var(--accent-soft); color: var(--accent); font-weight: 700; }

/* ===== Hook tabs (1바디 N훅) ===== */
.hooktabs { margin-bottom: var(--sp-md); }
.hooktabs-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-sm); margin-bottom: var(--sp-sm); flex-wrap: wrap; }
.hooktabs-head .ht-title { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 600; }
.hooktabs-head .ht-hint { color: var(--faint); font-size: var(--fs-micro); }
.hooktab-row { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.hooktab {
  appearance: none; background: none; border: none; cursor: pointer;
  padding: 8px var(--sp-sm) 9px; color: var(--muted); font-size: 12.5px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.hooktab:hover { color: var(--ink); }
.hooktab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* ===== Script blocks ===== */
.script-blocks { display: flex; flex-direction: column; gap: var(--sp-sm); }
.sblock {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: var(--sp-sm) var(--sp-md); background: var(--surface);
  animation: snap-in var(--t-base) var(--ease) both;
}
.sblock.is-hook { border-color: var(--accent); position: relative; }
.sblock.is-hook::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-hook); border-radius: var(--r-sm) 0 0 var(--r-sm);
}
.sblock-head { display: flex; align-items: center; gap: var(--sp-sm); margin-bottom: 6px; flex-wrap: wrap; }
.role-badge {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .06em;
  padding: 2px 8px; border-radius: var(--r-pill); text-transform: uppercase;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.sblock.is-hook .role-badge { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.timecode { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--faint); }
.sblock .spoken { font-family: var(--font-mono); font-size: var(--fs-mono); line-height: var(--lh-mono); color: var(--ink); margin: 4px 0; white-space: pre-wrap; }
.sblock .onscreen-line { font-size: 12.5px; color: var(--muted); }
.sblock .onscreen-line b { color: var(--ink); font-weight: 600; }
.sblock .why { font-size: var(--fs-micro); color: var(--faint); margin-top: 5px; display: flex; gap: 5px; }
.sblock .why .why-k { color: var(--accent); font-weight: 700; }

/* ===== Meter / gauge ===== */
.meter { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: var(--fs-micro); }
.meter .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.meter.ok .dot { background: var(--ok); } .meter.ok .val { color: var(--ok); }
.meter.warn .dot { background: var(--warn); } .meter.warn .val { color: var(--warn); }
.meter.danger .dot { background: var(--danger); } .meter.danger .val { color: var(--danger); }
.meter .lbl { color: var(--muted); }
.meter .val { font-weight: 700; }
.meter .spec { color: var(--faint); }

/* ===== Storyboard ===== */
.storyboard { display: flex; gap: var(--sp-md); overflow-x: auto; padding: 4px 2px var(--sp-sm); scroll-snap-type: x proximity; }
.phone-frame {
  flex: none; width: var(--phone-w); height: var(--phone-h);
  border: 2px solid var(--line); border-radius: var(--r-phone);
  background: var(--surface-2); position: relative; overflow: hidden;
  display: flex; flex-direction: column; scroll-snap-align: start;
  animation: snap-in var(--t-base) var(--ease) both;
}
.phone-frame.is-hook { border-color: var(--accent); }
.phone-frame.is-hook .pf-strike { display: block; }
.pf-strike { display: none; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad-hook); z-index: 3; }
.pf-timing { display: flex; align-items: center; gap: 5px; padding: 12px 12px 0; font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); }
.pf-timing .bar { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.pf-timing .bar > span { display: block; height: 100%; background: var(--accent); }
.pf-role { position: absolute; top: 12px; right: 12px; font-family: var(--font-mono); font-size: 9px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.pf-caption {
  flex: 1; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: var(--sp-md); font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  line-height: 1.35; color: var(--ink); text-shadow: 0 1px 0 color-mix(in srgb, var(--bg) 60%, transparent);
}
.pf-broll {
  padding: 8px 12px 12px; font-family: var(--font-mono); font-size: 9.5px; color: var(--muted);
  border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 30%, transparent);
}
.pf-broll .bk { color: var(--accent); }
.pf-num { position: absolute; bottom: 10px; right: 12px; font-family: var(--font-mono); font-size: 9px; color: var(--faint); }

/* ===== Code block (script / srt / shotlist) ===== */
.code-block { position: relative; }
.code-block pre {
  margin: 0; padding: var(--sp-md); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: var(--fs-mono); line-height: var(--lh-mono);
  color: var(--ink); overflow-x: auto; max-height: 320px; white-space: pre;
}
.code-block .copy-btn { position: absolute; top: 8px; right: 8px; }

/* ===== Shotlist table ===== */
.shotlist-wrap { overflow-x: auto; }
table.shotlist { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.shotlist th, table.shotlist td { text-align: left; padding: 7px var(--sp-sm); border-bottom: 1px solid var(--line); vertical-align: top; }
table.shotlist th { font-family: var(--font-mono); font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.shotlist td.tc { font-family: var(--font-mono); color: var(--faint); white-space: nowrap; }
table.shotlist tr.is-hook td { background: var(--accent-soft); }

/* ===== Subtitles section layout ===== */
.subs-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-md); }
.subblock h3 { font-family: var(--font-display); font-size: var(--fs-h2); margin: 0 0 var(--sp-sm); }

/* ===== Platform tabs ===== */
.ptabs { display: flex; gap: var(--sp-xs); margin-bottom: var(--sp-md); flex-wrap: wrap; }
.ptab {
  appearance: none; cursor: pointer; min-height: 36px; padding: 0 var(--sp-md);
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
  border-radius: var(--r-pill); font-size: 13px;
  transition: all var(--t-fast) var(--ease);
}
.ptab[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 600; }
.pcontent { display: flex; flex-direction: column; gap: var(--sp-md); }
.ptip { font-size: 12.5px; color: var(--muted); padding: var(--sp-sm) var(--sp-md); background: var(--surface-2); border-left: 2px solid var(--accent); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.pfield h3 { font-family: var(--font-mono); font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-sm); }
.caption-box { font-family: var(--font-body); font-size: 13.5px; line-height: 1.55; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--sp-sm) var(--sp-md); position: relative; }
.caption-box .first125 { background: color-mix(in srgb, var(--accent) 16%, transparent); border-radius: 3px; }
.hashtags { display: flex; flex-wrap: wrap; gap: 6px; }
.hashtag { font-family: var(--font-mono); font-size: 12px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent); padding: 3px 9px; border-radius: var(--r-pill); }
.kw-list { display: flex; flex-wrap: wrap; gap: 6px; }
.kw { font-family: var(--font-mono); font-size: 12px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 3px 9px; border-radius: var(--r-sm); }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(16px);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  box-shadow: var(--shadow-lift); border-radius: var(--r-pill);
  padding: 10px var(--sp-lg); font-size: 13.5px; font-weight: 600;
  opacity: 0; pointer-events: none; z-index: 200;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease-strike);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Footer ===== */
.site-foot {
  max-width: var(--shell-max); margin: 0 auto; padding: var(--sp-lg) var(--sp-lg) 72px;
  display: flex; gap: var(--sp-md); flex-wrap: wrap; align-items: center;
  color: var(--faint); font-size: 12.5px; border-top: 1px solid var(--line);
}
.site-foot .badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: var(--fs-micro);
  padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
}
.site-foot .badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

/* ===== Ad slot (__ADS__ gated — OFF by default, shown only when .is-live) ===== */
.ad-slot { display: none; }
.ad-slot.is-live { display: block; max-width: 760px; margin: 18px auto 0; padding: 0 var(--sp-4); }
.ad-slot .ad-label { display: block; font: 500 11px/1.4 var(--font-mono, monospace); color: var(--ink-3, #8a8378); letter-spacing: .04em; margin-bottom: 4px; }

/* ===== Animations (망치질) ===== */
@keyframes snap-in {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes strike-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(.97); }
  100% { transform: scale(1); }
}
.stagger > * { animation-delay: var(--stagger-d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; }
  .hero h1 { font-size: 28px; }
}
@media (max-width: 520px) {
  .shell { padding: var(--sp-md); }
  .site { padding: var(--sp-sm) var(--sp-md); }
  .header-trust { display: none; }
}

/* RTL (ar) */
[dir="rtl"] .sblock.is-hook::before { left: auto; right: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
[dir="rtl"] .ptip { border-left: none; border-right: 2px solid var(--accent); border-radius: var(--r-sm) 0 0 var(--r-sm); }
