/* Ghost in the Shell — World guide. Page: world.php?ruleset=gits (includes/gits/world_page.php). */

.gw-body {
  --gw-cyan: #5eead4;
  --gw-cyan-dim: rgba(94, 234, 212, 0.16);
  --gw-mag: #f472b6;
  --gw-mag-dim: rgba(244, 114, 182, 0.14);
  --gw-gold: #fbbf24;
  --gw-red: #f87171;
  --gw-ink: #08111c;
  --gw-panel: linear-gradient(160deg, rgba(23, 36, 56, 0.92), rgba(12, 20, 32, 0.96));
  --gw-line: rgba(94, 234, 212, 0.18);
}

.gw-body .content.gw-page {
  max-width: 1180px;
  position: relative;
  line-height: 1.6;
}
.gw-body .app {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(244, 114, 182, 0.07), transparent 60%),
    radial-gradient(800px 600px at 10% 10%, rgba(45, 212, 191, 0.06), transparent 60%),
    var(--bg-deep);
}

/* ───────── Hero ───────── */
.gw-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--gw-line);
  min-height: 300px;
  margin: 4px 0 18px;
  background: #050a12;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  isolation: isolate;
}
.gw-hero-art {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 36%;
  background: url("../img/rulesets/gits-cover.jpg") 58% 46% / 135% auto no-repeat;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  z-index: -2;
  filter: saturate(1.1) contrast(1.05);
}
.gw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #050a12 30%, rgba(5, 10, 18, 0.55) 65%, rgba(5, 10, 18, 0.2));
}
.gw-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gw-cyan), var(--gw-mag) 60%, transparent);
}
.gw-hero-kanji {
  position: absolute;
  right: 18px;
  top: 14px;
  writing-mode: vertical-rl;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.1);
  text-shadow: 0 0 24px rgba(94, 234, 212, 0.25);
  pointer-events: none;
  z-index: -1;
}
.gw-hero-body {
  position: relative;
  padding: 38px 40px 32px;
  max-width: 640px;
}
.gw-kicker {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gw-cyan);
}
.gw-kicker::before {
  content: "▍";
  color: var(--gw-mag);
  margin-right: 6px;
}
.gw-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #f2f7fd;
}
.gw-title span {
  background: linear-gradient(100deg, var(--gw-cyan), var(--gw-mag));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gw-lede {
  margin: 0 0 20px;
  font-size: 1.05rem;
  color: #c8d6e8;
  max-width: 52ch;
}
.gw-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gw-stats li {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(8, 17, 28, 0.7);
  font-size: 0.82rem;
  color: var(--text-muted);
  backdrop-filter: blur(4px);
}
.gw-stats strong { color: var(--text); font-weight: 700; }
.gw-stats a { color: var(--gw-cyan); text-decoration: none; }
.gw-stats a strong { color: var(--gw-cyan); }

/* ───────── Continuity filter ───────── */
.gw-filter {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 -6px 26px;
  padding: 10px 6px;
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.gw-filter-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-right: 4px;
}
.gw-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 3px 11px;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.gw-chip:hover { color: var(--text); border-color: var(--gw-cyan); }
.gw-chip.is-on {
  background: var(--gw-cyan);
  border-color: var(--gw-cyan);
  color: var(--gw-ink);
  font-weight: 700;
}
.gw-filter-note {
  margin-left: auto;
  font-size: 0.78rem;
}
.gw-filter-note .gw-src { vertical-align: 1px; }
.gw-item.hidden-by-era { display: none !important; }

/* ───────── Source chips ───────── */
.gw-srcs { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.gw-src {
  --c: #94a3b8;
  display: inline-block;
  padding: 0 7px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  white-space: nowrap;
  cursor: help;
}
.gw-src-m { --c: #fca5a5; }
.gw-src-f95 { --c: #fdba74; }
.gw-src-inn { --c: #fcd34d; }
.gw-src-sac { --c: #5eead4; }
.gw-src-2g { --c: #67e8f9; }
.gw-src-sss { --c: #93c5fd; }
.gw-src-ar { --c: #c4b5fd; }
.gw-src-2045 { --c: #f0abfc; }
.gw-src-game { --c: #86efac; }
.gw-src-d20 { --c: #cbd5e1; }
.gw-src-gm { --c: #fbbf24; }
.gw-src-core { --c: #2dd4bf; }
.gw-src-all { --c: #e2e8f0; }
.gw-chip.gw-src-m.is-on, .gw-chip.gw-src-f95.is-on, .gw-chip.gw-src-inn.is-on, .gw-chip.gw-src-sac.is-on,
.gw-chip.gw-src-2g.is-on, .gw-chip.gw-src-sss.is-on, .gw-chip.gw-src-ar.is-on, .gw-chip.gw-src-2045.is-on,
.gw-chip.gw-src-game.is-on, .gw-chip.gw-src-d20.is-on {
  background: var(--c);
  border-color: var(--c);
}
.gw-chip[class*="gw-src-"]:not(.is-on) {
  color: var(--c);
  border-color: color-mix(in srgb, var(--c) 40%, transparent);
}
.gw-section.hidden-by-era { display: none; }

/* ───────── Chapters & sections ───────── */
.gw-chapter {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 56px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, var(--gw-cyan), var(--gw-mag) 40%, transparent) 1;
}
.gw-page > .gw-filter + .no-results + .gw-chapter { margin-top: 8px; }
.gw-chapter-num {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gw-cyan);
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}
.gw-chapter-name {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
}
.gw-chapter-kanji {
  margin-left: auto;
  font-size: 1.5rem;
  color: rgba(244, 114, 182, 0.55);
  font-weight: 700;
}

.gw-section { margin-bottom: 46px; }
.gw-section > h2 {
  border: 0;
  padding: 0 0 0 14px;
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 750;
  color: #eef6ff;
  position: relative;
}
.gw-section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(var(--gw-cyan), var(--gw-mag));
}
.gw-lead {
  max-width: 74ch;
  font-size: 1.01rem;
  color: #c9d6e6;
  margin: 0 0 14px;
}
.gw-sub {
  margin: 22px 0 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gw-cyan);
}
.gw-note { margin: 14px 0; max-width: 80ch; }
.gw-note p { margin: 0; }

/* ───────── Cards ───────── */
.gw-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 14px;
  margin-top: 6px;
}
.gw-card {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--gw-panel);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.gw-card::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gw-cyan), transparent);
  opacity: 0.5;
  transition: opacity 0.2s;
}
.gw-card:hover {
  border-color: rgba(94, 234, 212, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.gw-card:hover::before { opacity: 1; }
.gw-card p { margin: 0; color: #c3d0e0; font-size: 0.94rem; }
.gw-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
}
.gw-card-head h3,
.gw-card-head h4 {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 700;
  color: #f1f6fd;
  line-height: 1.3;
}
.gw-hook {
  margin-top: auto !important;
  padding: 9px 12px;
  border-left: 3px solid var(--gw-mag);
  border-radius: 0 8px 8px 0;
  background: var(--gw-mag-dim);
  color: #f5d0e6 !important;
  font-size: 0.9rem !important;
}
.gw-hook span {
  display: block;
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gw-mag);
}

/* ───────── Lists ───────── */
.gw-list {
  margin: 18px 0 6px;
  padding: 14px 18px 8px;
  border-radius: 12px;
  border: 1px dashed rgba(94, 234, 212, 0.28);
  background: rgba(94, 234, 212, 0.035);
  max-width: 900px;
}
.gw-list h3 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gw-cyan);
}
.gw-list ul { margin: 0; padding: 0; list-style: none; }
.gw-list li {
  position: relative;
  padding: 0 0 8px 20px;
  color: #c9d6e6;
}
.gw-list li::before {
  content: "›";
  position: absolute;
  left: 4px;
  color: var(--gw-mag);
  font-weight: 700;
}

/* ───────── Tables ───────── */
.gw-table-wrap { border-radius: 12px; overflow: auto; border: 1px solid var(--border-soft); }
.gw-body .content table.gw-table {
  margin: 0;
  border: 0;
  width: 100%;
  font-size: 0.92rem;
}
.gw-body .content table.gw-table thead th {
  background: #0f1b2b;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gw-cyan);
  border-bottom: 1px solid var(--gw-line);
}
.gw-body .content table.gw-table tbody th {
  color: #f0f6fd;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
  vertical-align: top;
}
.gw-body .content table.gw-table td { color: #c3d0e0; vertical-align: top; }
.gw-body .content table.gw-table tbody tr:hover > * { background: rgba(94, 234, 212, 0.05); }

/* ───────── Timeline ───────── */
.gw-body .content ol.gw-timeline {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  position: relative;
}
.gw-timeline::before {
  content: "";
  position: absolute;
  left: 128px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--gw-cyan), var(--gw-mag) 70%, rgba(244, 114, 182, 0.1));
  opacity: 0.6;
}
.gw-timeline li {
  display: grid;
  grid-template-columns: 112px 34px minmax(0, 1fr);
  align-items: start;
  padding: 6px 0 14px;
}
.gw-tl-when {
  text-align: right;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gw-gold);
  padding-top: 3px;
}
.gw-tl-dot {
  justify-self: center;
  margin-top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--gw-cyan);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.12);
  position: relative;
  z-index: 1;
}
.gw-tl-body {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(21, 32, 51, 0.6);
  border: 1px solid var(--border-soft);
}
.gw-tl-body p { margin: 0 0 6px; color: #d1dcea; }
.gw-timeline li:hover .gw-tl-dot { background: var(--gw-mag); border-color: var(--gw-mag); }

/* ───────── Maps ───────── */
.gw-figure {
  margin: 10px 0 18px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--gw-line);
  background: #071019;
}
.gw-figure figcaption {
  margin-top: 6px;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.gw-map { display: block; width: 100%; height: auto; max-height: 720px; }
.gw-map-newport { max-height: 520px; }
.gw-map .gw-sea { fill: #06111c; }
.gw-map .gw-grid-line { fill: none; stroke: rgba(94, 234, 212, 0.06); stroke-width: 1; }
.gw-map .gw-land { fill: #13263a; stroke: rgba(94, 234, 212, 0.55); stroke-width: 1.4; stroke-linejoin: round; }
.gw-map .gw-land-foreign { fill: #0e1b2a; stroke: rgba(148, 163, 184, 0.35); stroke-dasharray: 4 3; }
.gw-map .gw-region { fill: rgba(148, 163, 184, 0.35); font: 600 13px var(--mono); letter-spacing: 0.3em; }
.gw-map .gw-region-small { font-size: 10px; }
.gw-map .gw-route { fill: none; stroke: rgba(251, 191, 36, 0.55); stroke-width: 1.6; stroke-dasharray: 6 5; }
.gw-map .gw-route-label { fill: rgba(251, 191, 36, 0.75); font: 11px var(--mono); letter-spacing: 0.18em; }
.gw-map .gw-sunk { fill: rgba(248, 113, 113, 0.12); stroke: rgba(248, 113, 113, 0.7); stroke-dasharray: 3 3; }
.gw-map .gw-bridge { stroke: var(--gw-gold); stroke-width: 2; }
.gw-map .gw-pin-dot { fill: var(--gw-cyan); stroke: #04121c; stroke-width: 2; }
.gw-map .gw-pin-home .gw-pin-dot { fill: var(--gw-mag); }
.gw-map .gw-pin-hot .gw-pin-dot { fill: var(--gw-gold); }
.gw-map .gw-pin-ruin .gw-pin-dot { fill: var(--gw-red); }
.gw-map .gw-pin-label { fill: #eaf2fb; font: 700 15px var(--font); paint-order: stroke; stroke: #06111c; stroke-width: 4px; }
.gw-map .gw-pin-home .gw-pin-label { fill: var(--gw-mag); font-size: 18px; }
.gw-map .gw-pin-sub { fill: #8fa3bd; font: 12px var(--mono); paint-order: stroke; stroke: #06111c; stroke-width: 4px; }
.gw-map .gw-glow-a { stop-color: rgba(244, 114, 182, 0.55); }
.gw-map .gw-glow-b { stop-color: rgba(244, 114, 182, 0); }
.gw-map .gw-compass path { fill: var(--gw-cyan); }
.gw-map .gw-compass text { fill: var(--gw-cyan); font: 700 12px var(--mono); }
.gw-map .gw-pier { fill: #1a2b40; stroke: rgba(251, 191, 36, 0.55); stroke-width: 1.4; stroke-dasharray: 2 4; }
.gw-map .gw-water { fill: #0a2236; stroke: rgba(103, 232, 249, 0.6); stroke-width: 1.2; }
.gw-map .gw-core { fill: #1b3350; stroke: rgba(94, 234, 212, 0.7); stroke-width: 1.4; }
.gw-map .gw-canal { stroke: rgba(103, 232, 249, 0.6); stroke-width: 3; }
.gw-map .gw-highway { stroke: rgba(251, 191, 36, 0.8); stroke-width: 3; stroke-linecap: round; }
.gw-map .gw-fence { fill: rgba(248, 113, 113, 0.08); stroke: rgba(248, 113, 113, 0.7); stroke-dasharray: 4 3; }
.gw-map .gw-tower rect { fill: #7dd3fc; opacity: 0.7; }
.gw-map .gw-tower-dead rect { fill: #64748b; }
.gw-map .gw-tower-core { fill: url(#gw-grid2); fill: rgba(125, 211, 252, 0.75); stroke: #06111c; stroke-width: 1; }
.gw-map .gw-mtitle { fill: #eaf2fb; font: 700 12px var(--mono); letter-spacing: 0.2em; }
.gw-map .gw-mtitle.gw-center { fill: var(--gw-mag); paint-order: stroke; stroke: #1b3350; stroke-width: 4px; }
.gw-map .gw-mlabel { fill: #c9d6e6; font: 600 12px var(--font); paint-order: stroke; stroke: #06111c; stroke-width: 3px; }
.gw-map .gw-msub { fill: #8fa3bd; font: 11px var(--mono); }

/* ───────── Arsenal ───────── */
.gw-arsenal-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gw-arsenal-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gw-line), transparent);
}
.gw-arsenal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 14px;
}
.gw-gun {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--gw-panel);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gw-gun:hover { border-color: rgba(251, 191, 36, 0.4); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.gw-gun-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 170px;
  box-sizing: border-box;
  padding: 10px 6px;
  border-bottom: 1px solid var(--border-soft);
  background:
    repeating-linear-gradient(135deg, rgba(94, 234, 212, 0.06) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #0c1a29, #08111c);
}
/* Pictured entries: image banner on top, text below. */
.gw-gun-art.has-img {
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 40%, #182a40 0%, #08111c 75%);
}
.gw-gun-art.has-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 10px 14px;
  box-sizing: border-box;
  transition: transform 0.35s ease;
}
.gw-gun-art.gw-fit-cover img { object-fit: cover; padding: 0; }
.gw-gun-art.has-img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(8, 17, 28, 0.55));
}
html[data-motion="full"] .gw-gun.has-img:hover .gw-gun-art img { transform: scale(1.04); }
.gw-img-note {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 1px 7px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #e2e8f0;
  background: rgba(8, 17, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.gw-credit {
  margin: 0 !important;
  font-size: 0.66rem !important;
  line-height: 1.35;
  color: var(--text-dim) !important;
}
.gw-credit a { color: var(--text-dim); text-decoration: underline dotted; }
.gw-credit a:hover { color: var(--gw-cyan); }
.gw-gun-mark {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(251, 191, 36, 0.7);
  opacity: 0.85;
}
.gw-gun-maker {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-dim);
  line-height: 1.3;
}
.gw-gun-body {
  padding: 13px 15px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.gw-gun-body p { margin: 0; color: #c3d0e0; font-size: 0.9rem; }
.gw-plays {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-weight: 650;
  color: var(--gw-gold) !important;
  font-size: 0.86rem !important;
}
.gw-plays span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.4);
}
.gw-basis {
  margin-top: auto !important;
  font-family: var(--mono);
  font-size: 0.7rem !important;
  color: var(--text-dim) !important;
}
.gw-basis::before { content: "basis · "; color: var(--text-dim); }

/* ───────── Case files ───────── */
.gw-cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 16px;
}
.gw-case {
  margin: 0;
  padding: 0 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-left: 3px solid var(--gw-red);
  background:
    linear-gradient(160deg, rgba(40, 22, 30, 0.55), rgba(12, 20, 32, 0.96) 45%),
    var(--bg-card);
}
.gw-case-strip {
  display: flex;
  justify-content: space-between;
  margin: 0 -18px 4px;
  padding: 6px 18px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gw-red);
  background: rgba(248, 113, 113, 0.08);
  border-bottom: 1px dashed rgba(248, 113, 113, 0.3);
}
.gw-case-strip span:last-child { color: var(--gw-gold); }
.gw-case p { margin: 0; color: #c9d4e2; font-size: 0.93rem; }
.gw-case .gw-hook { border-left-color: var(--gw-gold); background: rgba(251, 191, 36, 0.08); color: #fde8b0 !important; }
.gw-case .gw-hook span { color: var(--gw-gold); }

.gw-colophon {
  margin-top: 60px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.82rem;
  max-width: 80ch;
}

.gw-nav-num {
  font-family: var(--mono);
  color: var(--gw-cyan);
  margin-right: 2px;
}

/* ───────── Motion (Profile → Animations; JS adds fx-gw-reveal only when motion is Full) ───────── */
.fx-gw-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fx-gw-reveal.is-in {
  opacity: 1;
  transform: none;
}
html[data-motion="full"] .gw-hero-body > * {
  animation: gw-rise 0.6s ease both;
}
html[data-motion="full"] .gw-hero-body > :nth-child(2) { animation-delay: 0.06s; }
html[data-motion="full"] .gw-hero-body > :nth-child(3) { animation-delay: 0.12s; }
html[data-motion="full"] .gw-hero-body > :nth-child(4) { animation-delay: 0.18s; }
@keyframes gw-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ───────── Phones ───────── */
@media (max-width: 720px) {
  .gw-hero { min-height: 0; border-radius: 14px; }
  .gw-hero-body { padding: 24px 18px 20px; }
  .gw-hero-art { left: 0; opacity: 0.22; background-position: 60% 62%; background-size: cover; -webkit-mask-image: none; mask-image: none; }
  .gw-hero-kanji { display: none; }
  .gw-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -16px 20px;
    padding: 8px 16px;
    scrollbar-width: none;
  }
  .gw-filter::-webkit-scrollbar { display: none; }
  .gw-chip { flex: 0 0 auto; }
  .gw-filter-note { display: none; }
  .gw-chapter { margin-top: 40px; }
  .gw-chapter-num { font-size: 2rem; }
  .gw-chapter-name { font-size: 0.74rem; letter-spacing: 0.2em; }
  .gw-timeline::before { left: 8px; }
  .gw-timeline li { grid-template-columns: 18px minmax(0, 1fr); padding-bottom: 12px; }
  .gw-tl-dot { grid-row: 1 / span 2; grid-column: 1; margin-top: 4px; }
  .gw-tl-when { grid-column: 2; text-align: left; padding: 0 0 4px; }
  .gw-tl-body { grid-column: 2; }
  .gw-gun-art { height: 150px; }
  .gw-body .content table.gw-table tbody th { white-space: normal; }
}

/* Sticky library headers (≥1200px) need the viewport as scroll container: clip, don't scroll. */
@media (min-width: 1200px) {
  .gw-body .gw-table-wrap:not(.is-wide) { overflow: clip; }
}
