/* Erumaru · erumaru.com · стиль «Спящие механизмы»: тёмное небо, светлая керамика, один тёплый узел света */

@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-700.7c88082bc1a7.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-400.db309fd379a8.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-600.3cce7528edb2.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #0b1424;
  --bg-2: #0f1b2f;
  --ink: #ece4d1;
  --ink-2: #cfc8b8;
  --muted: #9aa6b8;
  --amber: #e3aa44;
  --amber-2: #f3cb7c;
  --line: rgba(236, 228, 209, 0.14);
  --line-2: rgba(236, 228, 209, 0.3);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.08);
  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "PingFang SC", "Hiragino Sans", "Malgun Gothic", sans-serif;
  --wrap: 1180px;
  --gutter: 24px;
  --radius: 14px;
}

* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: #0a1220;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p a, li a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(243, 203, 124, 0.5); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0 0 0.45em; letter-spacing: 0.004em; color: var(--ink); overflow-wrap: anywhere; }
h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; overflow-wrap: anywhere; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: 0 auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.eyebrow { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin: 0 0 1em; font-weight: 600; }
.lead { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.45; color: var(--ink-2); max-width: 32em; }

.visually-hidden, .skip:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--amber); color: #0b1424; padding: 10px 14px; border-radius: 8px; }

/* Шапка: одна на всех страницах. Логотип, строка статуса, меню справа, язык */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0.07;
  background: url("img/grain.3fae4d4606f0.png") repeat; background-size: 96px 96px;
}
.top { position: relative; z-index: 10; background: #070d18; border-bottom: 1px solid rgba(236, 228, 209, 0.12); }
.top-row { display: flex; align-items: center; gap: 22px; min-height: 56px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 104px; height: auto; }
.status-line { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.3; max-width: 40em; flex: 1 1 auto; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 0.92rem; white-space: nowrap; flex: 0 0 auto; }
.nav a { color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); border-bottom-color: var(--amber); text-decoration: none; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.menu { display: none; position: relative; }
.lang { position: relative; flex: 0 0 auto; }
.lang summary {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 0.9rem; color: var(--ink-2); background: rgba(11, 20, 36, 0.5);
}
.lang summary:hover { color: var(--ink); border-color: var(--amber); }
.lang-code { font-weight: 600; letter-spacing: 0.08em; }
.lang-list, .menu-list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; max-height: 70vh; overflow: auto;
  background: #121f35; border: 1px solid var(--line-2); border-radius: 12px; padding: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); z-index: 20;
}
.lang-list a, .menu-list a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.lang-list a:hover, .menu-list a:hover { background: var(--glass-2); color: var(--ink); text-decoration: none; }
.lang-list a[aria-current] { color: var(--amber-2); }
.lang[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: -1; cursor: default; }
@media (max-width: 1200px) { .status-line { display: none; } }

/* Кнопки и форма */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: 10px;
  border: 1px solid transparent; font: 600 1.02rem var(--sans); cursor: pointer; white-space: nowrap; transition: background 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--amber); color: #15120a; }
.btn-primary:hover { background: var(--amber-2); box-shadow: 0 8px 30px rgba(227, 170, 68, 0.28); }
.btn-steam { background: #1b2838; color: #fff; border-color: #2a475e; }
.btn-steam:hover { background: #2a475e; }

.signup { margin: 0; }
.signup-title { margin-bottom: 0.4em; }
.signup-text { color: var(--ink-2); max-width: 36em; font-size: 1.1rem; }
.signup-form { margin: 0; }
.signup-row { display: flex; gap: 10px; max-width: 560px; }
.signup-input {
  flex: 1 1 auto; min-width: 0; padding: 15px 18px; border-radius: 10px; font: 400 1.02rem var(--sans);
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line-2); color: var(--ink); outline: none;
}
.signup-input::placeholder { color: #8893a6; }
.signup-input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(227, 170, 68, 0.22); }
.signup-input[aria-invalid="true"] { border-color: #e07a5f; }
.signup-error { color: #f1a58f; margin: 0.6em 0 0; font-size: 0.95rem; }
.signup-error:empty { display: none; }
.signup-consent { margin: 0.7em 0 0; }
.signup-done { padding: 20px 24px; border-radius: var(--radius); border: 1px solid rgba(227, 170, 68, 0.5); background: rgba(227, 170, 68, 0.08); max-width: 560px; }
.signup-done p { margin: 0; }
.signup-done-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 0.2em !important; color: var(--amber-2); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Внутренние страницы: тот же журнал. Шапка страницы на арте мира с пластиной заголовка, пунктир между разделами */
.page-head { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 64px 0 76px; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("img/world-1664.283127326696.webp") 50% 62% / cover no-repeat;
}
.page-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.72) 0%, rgba(10, 18, 32, 0.6) 40%, rgba(10, 18, 32, 0.9) 78%, #0a1220 100%);
}
.page-head-body { display: flex; flex-direction: column; align-items: center; }
.page-head .plate-title { margin: 0 0 22px; max-width: 100%; font-size: clamp(2rem, 3.6vw, 2.9rem); }
.page-lead { font-size: 1.1rem; line-height: 1.55; color: var(--ink); max-width: 40em; margin: 0 auto; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.page-head .btn { margin-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: 0.86rem; color: var(--muted); margin: 0 0 26px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--amber-2); }
.crumb-sep { opacity: 0.5; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px; font-weight: 600; }

.page { position: relative; }
.page p, .page li { color: var(--ink-2); }
.block { margin: 0 0 64px; }
.page .wrap > .block:first-child { margin-top: 8px; }
.prose { max-width: 760px; margin-left: auto; margin-right: auto; }
.page h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin: 0 0 0.55em; }
.prose h2:not(:first-child), .cols h2:not(:first-child) { margin-top: 1.3em; }
.block-title { text-align: center; }
.block-sub { text-align: center; max-width: 42em; margin: -4px auto 28px; font-size: 1.05rem; }
.prose-lead { font-size: 1.15rem; color: var(--ink) !important; }
.page section.block + section.block, .page .block + .block { padding-top: 56px; border-top: 2px dashed rgba(236, 228, 209, 0.16); }
.cols { align-items: start; }
.more { font-weight: 600; }
.more a::before { content: "← "; }
.page-chips { margin: -8px 0 56px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 56px; }
.list li { position: relative; padding-left: 22px; margin-bottom: 0.7em; color: var(--ink-2); }
.list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--amber); }

.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 18px 40px 18px 0; position: relative; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.7rem; color: var(--amber); font-family: var(--serif); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item h3 { display: inline; font-size: 1.35rem; margin: 0; }
.faq-item p { color: var(--ink-2); margin: 0 0 20px; }

/* Плитки сравнений: светлые пластины, как вставки на главной */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 8px 0 0; }
.tile a { display: block; height: 100%; padding: 20px 22px 18px; border-radius: 4px; background: #ece4d1; color: #1b2434; text-decoration: none; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4); transform: rotate(var(--tilt, 0deg)); transition: transform 0.2s; }
.tile:nth-child(3n+1) { --tilt: -0.8deg; }
.tile:nth-child(3n+2) { --tilt: 0.5deg; }
.tile:nth-child(3n) { --tilt: -0.3deg; }
.tile a:hover { transform: rotate(0) translateY(-3px); }
.tile strong { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.4rem; margin-bottom: 6px; line-height: 1.15; }
.tile span { color: #3b4356; font-size: 0.95rem; }

/* Таблица «рядом»: лист из журнала */
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; }
.sheet { background: #ece4d1; border-radius: 4px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); padding: 6px 18px; transform: rotate(-0.3deg); }
.facts { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--line); }
.facts thead th { border-top: 0; font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.facts tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; width: 1%; }
.facts td { color: var(--ink-2); }
.facts td:last-child { color: var(--ink); }
.sheet .facts th, .sheet .facts td { border-top-color: rgba(27, 36, 52, 0.14); }
.sheet .facts thead th { color: #1b2434; }
.sheet .facts tbody th { color: #5a6273; }
.sheet .facts td { color: #3b4356; }
.sheet .facts td:last-child { color: #1b2434; font-weight: 600; }

/* Об игре: столпы бирками на проволоке, карточки героев, земли, синергии */
.wire.wire-3 { grid-template-columns: repeat(3, 1fr); gap: 54px 26px; margin-top: 70px; }
.page .wiretag.wiretag-text { text-align: left; padding: 36px 24px 22px; color: #1b2434; transform: rotate(var(--tilt, 0deg)); }
.wiretag-text:nth-child(odd) { --tilt: -1.2deg; }
.wiretag-text:nth-child(even) { --tilt: 1deg; }
.wiretag-text:nth-child(3n) { --tilt: 1.6deg; }
.page .wiretag-text strong { font-size: 1.45rem; margin-bottom: 8px; color: #1b2434; }
.page .wiretag-text p { color: #3b4356; font-size: 0.96rem; line-height: 1.55; }
.cards-scroll { overflow-x: auto; padding: 28px 0 40px; margin: 0 0 56px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.cards { display: flex; gap: 22px; padding: 0 max(var(--gutter), (100% - var(--wrap)) / 2); width: max-content; align-items: flex-end; }
.cards .jcard { flex: 0 0 196px; height: 330px; margin: 0; }
.cards .jcard:nth-child(odd) { --tilt: -2deg; }
.cards .jcard:nth-child(even) { --tilt: 1.6deg; }
.lands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px 18px; margin: 8px 0 0; }
.land { position: relative; }
.land img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 5px solid #e9e1cc; border-radius: 3px; box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5); transform: rotate(var(--tilt, -1deg)); }
.land:nth-child(even) img { --tilt: 1deg; }
.land-text { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 2px; }
.land-act { color: var(--amber); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.land strong { font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; }
.land-text > span:last-child { color: var(--muted); font-size: 0.9rem; }
.synergies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 40px; margin: 8px 0 0; }
.synergies li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.synergies img { width: 48px; height: 48px; flex: 0 0 auto; }
.synergies strong { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.syn-who { color: var(--amber); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; margin-left: 6px; }
.syn-effect { font-size: 0.95rem; }

/* Подвал: один на всех страницах */
.foot { border-top: 1px solid rgba(236, 228, 209, 0.12); padding: 56px 0 36px; background: #070d18; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 64px; align-items: start; }
.foot-brand img { width: 150px; margin-bottom: 14px; }
.foot-brand p { color: var(--muted); max-width: 30em; margin: 0 0 22px; font-size: 0.95rem; }
.foot-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 48px; font-size: 0.95rem; }
.foot-nav a { color: var(--ink-2); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(236, 228, 209, 0.1); }
.foot-bottom p { margin: 0; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr; }
  .lands { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  body { font-size: 17px; }
  :root { --gutter: 20px; }
  .top-row { min-height: 56px; gap: 14px; }
  .nav { display: none; }
  .menu { display: block; margin-left: auto; }
  .menu summary { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(11, 20, 36, 0.5); }
  .burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -6px; }
  .burger::after { top: 6px; }
  .burger, .burger::before, .burger::after { transition: transform 0.2s, background 0.2s, top 0.2s; }
  .menu[open] .burger { background: transparent; }
  .menu[open] .burger::before { top: 0; transform: rotate(45deg); }
  .menu[open] .burger::after { top: 0; transform: rotate(-45deg); }
  /* панели меню и языков от края до края под шапкой; .menu и .lang без позиционирования, поэтому панель встаёт относительно .top */
  .menu, .lang { position: static; }
  .menu[open] > summary, .lang[open] > summary { border-color: var(--amber); }
  .menu-list, .lang-list {
    left: 0; right: 0; top: 100%; min-width: 0; max-height: calc(100vh - 56px); padding: 6px var(--gutter) 22px;
    background: #0d1729; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; box-shadow: 0 34px 60px rgba(0, 0, 0, 0.6);
  }
  .menu-list > li > a { padding: 14px 2px; font-size: 1.1rem; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-list > li > a[aria-current] { color: var(--amber-2); }
  .menu-list > li > a:hover { background: none; color: var(--amber-2); }
  .menu-list .menu-contacts { margin-top: 4px; padding: 18px 0 0; border-top: 0; }
  .lang-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; padding-top: 10px; }
  .lang-list a { padding: 12px 2px; font-size: 1.02rem; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; }
  .lang-list a:hover { background: none; color: var(--amber-2); }
  /* затемнение под панелью: это часть summary, поэтому тап мимо панели закрывает её и без скрипта */
  .menu[open] > summary::before, .lang[open] > summary::before {
    content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(3, 7, 14, 0.8); cursor: default;
  }
  html.drop-open { overflow: hidden; }
  .lang-name { display: none; }
  .signup-row { flex-direction: column; }
  .btn { padding: 15px 20px; }
  .page-head { padding: 44px 0 52px; }
  .page-head::before { background-image: url("img/world-900.9defeb910654.webp"); background-position: 62% 60%; }
  .page-lead { font-size: 1.02rem; }
  .crumbs { margin-bottom: 20px; }
  .block { margin-bottom: 48px; }
  .page section.block + section.block, .page .block + .block { padding-top: 44px; }
  .grid-2 { grid-template-columns: 1fr; gap: 8px; }
  .tiles { grid-template-columns: 1fr; gap: 16px; }
  .sheet { padding: 2px 6px; }
  .facts th, .facts td { padding: 10px 7px; }
  .facts { font-size: 0.9rem; }
  .facts tbody th { white-space: normal; width: 26%; }
  .facts td { overflow-wrap: anywhere; }
  .synergies { grid-template-columns: 1fr; }
  .lands { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .wire.wire-3 { grid-template-columns: 1fr; gap: 50px; margin-top: 64px; }
  .cards .jcard { flex-basis: 160px; height: 270px; }
  .cards .jcard img { max-height: 200px; }
  .foot { padding-top: 44px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; margin-top: 28px; }
}


/* Главная: путевой журнал Фонарщика. Страница как вещь из мира: пластины, бирки, штампы, зерно */
/* Первый экран */
.jhero { position: relative; overflow: hidden; background: #0d1a2e; isolation: isolate; }
.hero-layers { display: none; }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: 70% 20%; }
.jhero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.5) 0%, rgba(10, 18, 32, 0.55) 35%, rgba(10, 18, 32, 0.86) 70%, #0a1220 100%);
}
@media (min-width: 1024px) {
  .hero-art { display: none; }
  .hero-layers { display: block; position: absolute; inset: 0; }
  .layer { position: absolute; inset: -4%; background-position: 60% 30%; background-size: cover; background-repeat: no-repeat; will-change: transform; }
  .layer-sky { background-image: url("img/layers/sky.46aa674487cb.webp"); }
  .layer-spire { background-image: url("img/layers/far_spire.e542179c96ae.webp"); }
  .layer-machines { background-image: url("img/layers/sleeping_machines.be348b994a02.webp"); }
  .layer-keeper { background-image: url("img/layers/near_lanternkeeper.17b6ee4b5295.webp"); }
  .layer-fore { background-image: url("img/layers/foreground.61f646200bf3.webp"); }
}
.jhero-body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 44px 0 40px; text-align: center; }
.headline {
  margin: 0; font-family: var(--serif); font-weight: 700; text-transform: uppercase; line-height: 0.88; letter-spacing: 0.01em;
  --hl-em: 5; font-size: min(clamp(3.4rem, 10.4vw, 9.6rem), calc(min(var(--wrap), 100vw - 2 * var(--gutter)) * 0.96 / var(--hl-em)));
  -webkit-text-stroke: 1.5px rgba(236, 228, 209, 0.9);
  background: url("img/title-fill.73015e97d596.webp") center center / 100% 100% no-repeat #efe6d2; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6));
}
.headline-line { display: block; }
/* иероглифы и хангыль занимают весь кегль без выносных, им нужен интерлиньяж побольше, иначе строки и бирка наезжают */
.headline:lang(ja), .headline:lang(zh), .headline:lang(ko) { line-height: 1.12; letter-spacing: 0.02em; }
.tag-hero:lang(ja), .tag-hero:lang(zh), .tag-hero:lang(ko) { margin-top: 0.5em; }
.headline-line + .headline-line { padding-left: 0.6em; }
/* ширина самой длинной строки заголовка в em, считает сервер (web/headline.py): строка всегда целиком, кегль меньше, если нужно */
.hl-em-12 { --hl-em: 3; } .hl-em-13 { --hl-em: 3.25; } .hl-em-14 { --hl-em: 3.5; } .hl-em-15 { --hl-em: 3.75; } .hl-em-16 { --hl-em: 4; } .hl-em-17 { --hl-em: 4.25; } .hl-em-18 { --hl-em: 4.5; } .hl-em-19 { --hl-em: 4.75; } .hl-em-20 { --hl-em: 5; } .hl-em-21 { --hl-em: 5.25; } .hl-em-22 { --hl-em: 5.5; } .hl-em-23 { --hl-em: 5.75; } .hl-em-24 { --hl-em: 6; } .hl-em-25 { --hl-em: 6.25; } .hl-em-26 { --hl-em: 6.5; } .hl-em-27 { --hl-em: 6.75; } .hl-em-28 { --hl-em: 7; } .hl-em-29 { --hl-em: 7.25; } .hl-em-30 { --hl-em: 7.5; } .hl-em-31 { --hl-em: 7.75; } .hl-em-32 { --hl-em: 8; } .hl-em-33 { --hl-em: 8.25; } .hl-em-34 { --hl-em: 8.5; } .hl-em-35 { --hl-em: 8.75; } .hl-em-36 { --hl-em: 9; } .hl-em-37 { --hl-em: 9.25; } .hl-em-38 { --hl-em: 9.5; } .hl-em-39 { --hl-em: 9.75; } .hl-em-40 { --hl-em: 10; } .hl-em-41 { --hl-em: 10.25; } .hl-em-42 { --hl-em: 10.5; } .hl-em-43 { --hl-em: 10.75; } .hl-em-44 { --hl-em: 11; } .hl-em-45 { --hl-em: 11.25; } .hl-em-46 { --hl-em: 11.5; } .hl-em-47 { --hl-em: 11.75; } .hl-em-48 { --hl-em: 12; }
.tag {
  display: inline-block; margin: 8px 0 0; padding: 8px 16px; background: var(--amber); color: #1b140a; font: 600 0.95rem var(--sans);
  letter-spacing: 0.08em; text-transform: uppercase; border-radius: 3px; transform: rotate(-3deg); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.tag-hero { position: relative; z-index: 2; margin-top: -0.4em; margin-left: 38%; }

.jcards { display: flex; justify-content: center; align-items: flex-end; width: 100%; margin: 40px 0 0; padding: 0 2%; }
.jcard {
  position: relative; flex: 0 1 196px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 330px; padding: 14px 10px 44px;
  background: linear-gradient(180deg, #1b2c47 0%, #0f1b2f 100%); border: 3px solid #e3dac4; border-radius: 4px; box-shadow: 0 24px 40px rgba(0, 0, 0, 0.55);
  transform: rotate(var(--tilt, 0deg)) translateY(var(--lift, 0)); transition: transform 0.3s; margin: 0 -8px; overflow: hidden;
}
.jcard::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(236, 228, 209, 0.22); border-radius: 2px; pointer-events: none; }
.jcard:hover { transform: rotate(0) translateY(-10px); z-index: 3; }
.jcard img { max-height: 250px; width: auto; max-width: 100%; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.5)); }
.jcard-name { position: absolute; left: 10px; right: 10px; bottom: 10px; background: #e9e1cc; color: #1b2434; font-family: var(--serif); font-weight: 700; font-size: 0.98rem; line-height: 1.1; padding: 5px 6px; text-align: center; border-radius: 2px; }
.jcard:nth-child(1) { --tilt: -7deg; --lift: 26px; z-index: 1; }
.jcard:nth-child(2) { --tilt: -3.5deg; --lift: 8px; z-index: 2; }
.jcard:nth-child(3) { --tilt: -1deg; --lift: 0; z-index: 3; }
.jcard:nth-child(4) { --tilt: 1.5deg; --lift: 0; z-index: 3; }
.jcard:nth-child(5) { --tilt: 4deg; --lift: 8px; z-index: 2; }
.jcard:nth-child(6) { --tilt: 7deg; --lift: 26px; z-index: 1; }

/* Пропуск Фонаря: светлая керамическая пластина с формой */
.pass {
  position: relative; width: min(560px, 100%); margin: 48px 0 0; padding: 22px 26px 24px; text-align: left;
  background: #ece4d1; color: #1b2434; border-radius: 6px; box-shadow: 0 26px 50px rgba(0, 0, 0, 0.55); transform: rotate(-1.2deg);
}
.pass::before { content: ""; position: absolute; left: 14px; right: 14px; top: 58px; border-top: 2px dashed rgba(27, 36, 52, 0.25); }
.pass-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.pass-hole { width: 14px; height: 14px; border-radius: 50%; background: #0a1220; box-shadow: inset 0 0 0 2px #c9bfa6; flex: 0 0 auto; }
.pass-head strong { font-family: var(--serif); font-size: 1.5rem; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.pass-stamp { margin-left: auto; font: 600 0.72rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: #8a4a12; border: 2px solid rgba(138, 74, 18, 0.7); padding: 4px 8px; border-radius: 3px; transform: rotate(4deg); white-space: nowrap; }
.pass-text { margin: 0 0 14px; font-size: 0.98rem; line-height: 1.45; color: #3b4356; }
.pass .signup-input { background: #fff8ea; border: 1px solid #a89f88; color: #1b2434; }
.pass .signup-input::placeholder { color: #8b8673; }
.pass .signup-input:focus { border-color: #8a4a12; box-shadow: 0 0 0 3px rgba(227, 170, 68, 0.35); }
.pass .signup-consent { color: #5a6273; }
.pass .signup-consent a { color: #8a4a12; }
.pass .signup-error { color: #a83a1f; }
.pass .signup-done { border-color: #8a4a12; background: rgba(227, 170, 68, 0.18); }
.pass .signup-done-title { color: #8a4a12; }
.pass .signup-done p { color: #1b2434; }
.pass .btn-primary { background: #1b2434; color: #efe6d2; }
.pass .btn-primary:hover { background: #2c3a56; box-shadow: none; }

.jtext { max-width: 640px; margin: 64px 0 0; }
.jbold { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.2; margin: 0 0 0.7em; }
.jsmall { font-size: 0.98rem; color: var(--ink-2); line-height: 1.6; margin: 0; }

/* Маршрут */
.route { position: relative; padding: 40px 0 60px; }
.route-silhouette { position: absolute; left: 0; right: 0; top: -60px; height: 240px; background: url("img/machines-silhouette.adef138bd661.webp") center top / cover no-repeat; opacity: 0.55; pointer-events: none; }
.route-head { position: relative; text-align: center; margin: 0 auto 56px; max-width: 760px; }
.plate {
  display: inline-block; background: #ece4d1; color: #1b2434; padding: 14px 28px; border-radius: 4px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  font-family: var(--serif); font-weight: 700; line-height: 1.1;
}
.plate-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0 0 20px; transform: rotate(-1deg); }
.route-sub { font-size: 1.05rem; color: var(--ink-2); margin: 0 auto; max-width: 42em; }

.route-line { position: relative; padding: 20px 0 0; }
.route-line::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed rgba(236, 228, 209, 0.3); }
.act { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; margin: 28px 0 44px; }
.act-label { display: inline-block; background: #ece4d1; color: #1b2434; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 22px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); }
.act-note { margin-top: 10px; font-size: 0.92rem; color: var(--muted); background: #0a1220; padding: 2px 10px; }

.stop { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin: 0 0 64px; }
.stop-art { position: relative; margin: 0; transform: rotate(-1.4deg); }
.stop-right .stop-art { order: 2; transform: rotate(1.2deg); }
.stop-art img { width: 100%; border: 6px solid #e9e1cc; border-radius: 3px; box-shadow: 0 24px 46px rgba(0, 0, 0, 0.55); }
.stamp {
  position: absolute; right: -10px; bottom: 18px; padding: 6px 12px; border: 3px solid rgba(227, 170, 68, 0.85); color: var(--amber); font: 700 0.8rem var(--sans);
  letter-spacing: 0.12em; text-transform: uppercase; border-radius: 6px; transform: rotate(-8deg); background: rgba(10, 18, 32, 0.75);
}
.stop-text { position: relative; padding: 0 0 0 8px; }
.stop-right .stop-text { order: 1; text-align: right; padding: 0 8px 0 0; }
.stop-no {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%; background: var(--amber); color: #1b140a; font: 700 1.25rem var(--serif);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px #0a1220; transform: translate(-50%, -50%); z-index: 2;
}
.stop h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin: 0 0 4px; }
.stop-people { color: var(--amber); font: 600 0.82rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 12px; }
.stop-text p:last-child { color: var(--ink-2); margin: 0; max-width: 30em; }
.stop-right .stop-text p:last-child { margin-left: auto; }

.insert { position: relative; display: flex; justify-content: center; margin: 0 0 56px; }
.plate-insert { max-width: 640px; text-align: center; padding: 22px 30px 20px; transform: rotate(0.8deg); font-family: var(--sans); font-weight: 400; }
.plate-insert strong { display: block; font-family: var(--serif); font-size: 1.5rem; margin-bottom: 6px; }
.plate-insert p { margin: 0 0 14px; color: #3b4356; font-size: 0.98rem; }
.components { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.components img { width: 48px; height: 48px; }
.components-syn img { width: 60px; height: 60px; }
.insert-tag .wiretag { transform: rotate(-2.5deg); max-width: 360px; }

.wiretag {
  position: relative; background: #e9e1cc; color: #1b2434; padding: 34px 18px 18px; border-radius: 4px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); text-align: center;
}
.wiretag::before { content: ""; position: absolute; top: 12px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #0a1220; box-shadow: inset 0 0 0 2px #c9bfa6; }
.wiretag::after { content: ""; position: absolute; bottom: 100%; left: 50%; width: 2px; height: 34px; background: rgba(236, 228, 209, 0.45); }
.wiretag strong { display: block; font-family: var(--serif); font-size: 1.35rem; margin-bottom: 4px; line-height: 1.1; }
.wiretag p, .wiretag span { color: #3b4356; font-size: 0.92rem; margin: 0; }

/* Народы: бирки на проволоке */
.peoples-section { padding: 40px 0 70px; text-align: center; }
.wire { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 54px 18px; margin-top: 70px; padding-top: 0; }
.wire::before { content: ""; position: absolute; left: -2%; right: -2%; top: -34px; border-top: 2px solid rgba(236, 228, 209, 0.35); }
.wiretag-people { padding-top: 30px; display: flex; flex-direction: column; align-items: center; transform: rotate(var(--tilt, 0deg)); }
.wiretag-people img { width: 56px; height: 56px; margin-bottom: 8px; }
.wiretag-people:nth-child(odd) { --tilt: -2deg; }
.wiretag-people:nth-child(even) { --tilt: 1.6deg; }
.wiretag-people:nth-child(3n) { --tilt: 2.6deg; }

/* Конец: пропуск и ссылки */
.end { position: relative; padding: calc(120px + var(--snap, 0px)) 0 90px; }
.end-silhouette { position: absolute; left: 0; right: 0; top: 0; height: 240px; background: url("img/machines-silhouette.adef138bd661.webp") center top / cover no-repeat; opacity: 0.45; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 100%); mask-image: linear-gradient(180deg, #000 35%, transparent 100%); }
.end-body { position: relative; }
.end-body { display: flex; flex-direction: column; align-items: center; }
.pass-end { margin-top: 0; transform: rotate(1deg); width: min(620px, 100%); }
.end-steam { margin: 36px 0 0; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2); font-size: 0.92rem; letter-spacing: 0.03em; background: rgba(11, 20, 36, 0.45);
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; width: 100%; margin-top: 72px; }
.links a { display: block; height: 100%; padding: 22px 0 0; border-top: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.links a:hover strong { color: var(--amber-2); }
.links strong { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; margin-bottom: 6px; }
.links span { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 1100px) {
  .jcard { flex-basis: 170px; height: 300px; }
  .jcard img { max-height: 225px; }
}
@media (max-width: 980px) {
  .stop { gap: 40px; }
  .links { grid-template-columns: repeat(2, 1fr); }
  .wire { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .jhero-body { padding: 36px 0 32px; }
  .headline { font-size: min(clamp(3.4rem, 15.5vw, 5rem), calc((100vw - 2 * var(--gutter)) * 0.96 / var(--hl-em))); }
  .headline-line + .headline-line { padding-left: 0.4em; }
  .tag-hero { margin-left: 12%; font-size: 0.8rem; padding: 6px 12px; }
  .jhero-body { display: grid; grid-template-columns: 1fr; justify-items: center; }
  .jhero-body > .headline { order: 1; }
  .jhero-body > .tag-hero { order: 2; }
  .jhero-body > .pass { order: 3; margin-top: 36px; }
  .jhero-body > .jcards { order: 4; }
  .jhero-body > .jtext { order: 5; margin-top: 48px; }
  .jcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 14px; margin: 44px 0 0; padding: 0 6px; }
  .jcard { flex-basis: auto; height: 250px; margin: 0; padding: 10px 8px 40px; }
  .jcard img { max-height: 185px; }
  .jcard:nth-child(n) { --lift: 0; }
  .jcard:nth-child(odd) { --tilt: -2deg; }
  .jcard:nth-child(even) { --tilt: 2deg; }
  .pass { padding: 18px 18px 20px; transform: rotate(-0.8deg); }
  .pass::before { top: 54px; }
  .pass-head strong { font-size: 1.2rem; }
  .pass-stamp { display: none; }
  .route { padding-top: 10px; }
  .route-silhouette { height: 140px; top: -30px; }
  .route-line { padding-left: 44px; }
  .route-line::before { left: 14px; }
  .act { align-items: flex-start; text-align: left; margin: 16px 0 32px; }
  .act-note { padding: 2px 0; }
  .stop { grid-template-columns: 1fr; gap: 18px; margin-bottom: 48px; }
  .stop-right .stop-art, .stop-right .stop-text { order: 0; text-align: left; padding: 0; }
  .stop-art { transform: rotate(-1deg); }
  .stop-text { padding: 0; }
  .stop-no { width: 36px; height: 36px; font-size: 1.05rem; top: 18px; left: -30px; transform: translate(-50%, 0); }
  .stop-right .stop-text p:last-child { margin-left: 0; }
  .stamp { right: 6px; bottom: 12px; font-size: 0.7rem; }
  .insert { justify-content: flex-start; margin-bottom: 44px; }
  .plate-insert { padding: 18px 18px 16px; }
  .components img { width: 40px; height: 40px; }
  .wire { grid-template-columns: repeat(2, 1fr); gap: 44px 12px; margin-top: 60px; }
  .wiretag { padding: 30px 12px 14px; }
  .wiretag strong { font-size: 1.15rem; }
  .pass-end { transform: rotate(0.6deg); }
  .links { grid-template-columns: 1fr; gap: 10px; margin-top: 56px; }
  .links a { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .layer { transform: none !important; }
  .jcard, .jcard:hover { transition: none; }
}

/* Пресс-кит */
.downloads { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 28px; }
.download { display: block; padding: 14px 18px; border-radius: 4px; background: #ece4d1; color: #1b2434; font-weight: 600; text-decoration: none; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35); }
.download::before { content: "\2193"; display: inline-block; width: 1.4em; color: #8a4a12; font-weight: 700; }
.download:hover { background: #f3ecdb; text-decoration: none; }
.facts-press th { white-space: normal; width: 34%; }
.press-art { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: center; margin: 8px 0 0; }
.framed img { border: 6px solid #e9e1cc; border-radius: 3px; box-shadow: 0 24px 46px rgba(0, 0, 0, 0.55); transform: rotate(-1deg); }
.press-logo img { background: #0f1b2f; padding: 28px; transform: rotate(1.2deg); }
@media (max-width: 767px) { .press-art { grid-template-columns: 1fr; } }

/* Карта сайта для людей */
.sitemap-table tbody th { white-space: normal; width: 34%; }
.sitemap-table tbody th a { color: var(--ink); font-weight: 600; text-decoration: none; }
.sitemap-table tbody th a:hover { text-decoration: underline; }
.sitemap-table .langs a { display: inline-block; margin: 2px 6px 2px 0; padding: 1px 9px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ink-2); text-decoration: none; }
.sitemap-table .langs a:hover, .sitemap-table .langs a[aria-current] { border-color: var(--amber); color: var(--amber-2); }
.sitemap-table td:last-child { white-space: nowrap; }
@media (max-width: 767px) { .sitemap-table th:nth-child(3), .sitemap-table td:nth-child(3) { display: none; } .sitemap-table tbody th { width: 40%; } }

/* Значки и контакты: письмо и Discord одинаковыми чипами в стиле «Coming to Steam» */
.icon { width: 18px; height: 18px; flex: 0 0 auto; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2); font-size: 0.92rem; letter-spacing: 0.03em; background: rgba(11, 20, 36, 0.45);
  text-decoration: none; white-space: nowrap; transition: border-color 0.15s, color 0.15s;
}
.chip .icon { color: var(--amber); }
.chip:hover { border-color: var(--amber); color: var(--ink); text-decoration: none; }
.contact { margin: 16px 0 0; }
.foot-contacts { justify-content: flex-start; margin: 0 0 22px; }
.menu-contacts { margin-top: 6px; padding: 12px 4px 4px; border-top: 1px solid var(--line); }
.menu-contacts .chips { flex-direction: column; align-items: flex-start; gap: 8px; }
.menu-list .menu-contacts a.chip { display: inline-flex; padding: 8px 16px; border-radius: 999px; }
.menu-list .menu-contacts a.chip:hover { background: rgba(11, 20, 36, 0.45); }

/* Discord в пропуске: под пунктиром одна ссылка по центру, значок стоит на базовой линии текста */
.pass-discord { margin: 18px -12px 0; padding: 14px 12px 0; border-top: 2px dashed rgba(27, 36, 52, 0.25); text-align: center; font-size: 0.92rem; line-height: 1.5; }
.pass-discord a { color: #8a4a12; text-decoration: none; white-space: nowrap; }
.pass-discord a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.pass-discord .icon { display: inline-block; width: 1.25em; height: 1.25em; margin-right: 0.4em; vertical-align: -0.3em; }
@media (max-width: 767px) {
  .pass-discord { margin: 16px -4px 0; padding: 12px 4px 0; }
  /* на телефоне чипы друг под другом одной ширины, значки встают в столбик */
  .chips { flex-direction: column; align-items: center; gap: 10px; }
  .foot-contacts { align-items: flex-start; }
  .chips .chip, .end-steam .pill { min-width: 248px; }
}

/* Девлог: записи как остановки маршрута, версия на пунктире, арт в рамке или карточкой */
.log { padding-top: 10px; }
.log .stop { align-items: start; }
.log-no { width: auto; height: 34px; padding: 0 14px; border-radius: 999px; font: 700 1rem var(--sans); letter-spacing: 0.04em; top: 30px; transform: translate(-50%, 0); }
.log-art { display: block; text-decoration: none; }
.log-art img { width: 100%; }
.log-art-card { display: flex; justify-content: center; transform: none; }
.log-art-card .jcard { flex: 0 0 auto; width: 230px; height: 360px; margin: 0; --tilt: -2deg; }
.stop-right .log-art-card .jcard { --tilt: 2deg; }
.log-art-card .jcard img { width: auto; max-width: 100%; max-height: 300px; border: 0; box-shadow: none; }
.log-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 10px; color: var(--muted); font-size: 0.88rem; }
.log .stop-right .stop-text { text-align: left; }
.log .stop-right .stop-text p:last-child { margin-left: 0; }
.log-version { display: inline-block; padding: 3px 10px; border: 2px solid rgba(227, 170, 68, 0.85); color: var(--amber); border-radius: 4px; font: 700 0.76rem var(--sans); letter-spacing: 0.12em; text-transform: uppercase; transform: rotate(-3deg); }
.log h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 0 0 12px; }
.log h2 a { color: var(--ink); text-decoration: none; }
.log h2 a:hover { color: var(--amber-2); }
.log-body p { font-size: 0.98rem; margin: 0 0 0.8em; }
.page .stop-text.log-text p:last-child { max-width: none; }
.log-body ul { margin: 0 0 1em 1.2em; list-style: disc; color: var(--ink-2); }
.page-head .log-meta { justify-content: center; margin-bottom: 18px; }
.log-single { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.log-single:not(.log-single-art) { display: block; max-width: 760px; margin-left: auto; margin-right: auto; }
.log-single .log-art img { border: 6px solid #e9e1cc; border-radius: 3px; box-shadow: 0 24px 46px rgba(0, 0, 0, 0.55); transform: rotate(-1.2deg); }
.log-single .log-art-card .jcard img { border: 0; box-shadow: none; transform: none; }
.log-full p { font-size: 1.08rem; }
.log-nav { margin: 0 0 24px; }
.latest { padding: 56px 0 0; }
.wiretag-latest { max-width: 640px; margin: 0 auto; padding: 36px 28px 22px; transform: rotate(-0.8deg); text-align: center; }
.wiretag .latest-label { font: 600 0.8rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: #8a4a12; margin: 0 0 10px; }
.wiretag-latest .log-meta { justify-content: center; color: #5a6273; margin: 0 0 8px; }
.wiretag-latest .log-version { color: #8a4a12; border-color: rgba(138, 74, 18, 0.7); }
.wiretag .latest-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; line-height: 1.15; margin: 0 0 12px; }
.latest-title a { color: #1b2434; text-decoration: none; }
.latest-title a:hover { color: #8a4a12; }
.wiretag .latest-links { display: flex; justify-content: center; gap: 22px; margin: 0; font-size: 0.95rem; }
.latest-links a { color: #8a4a12; }
@media (max-width: 767px) {
  .log-no { top: 0; left: -30px; height: 28px; padding: 0 9px; font-size: 0.8rem; transform: translate(-50%, 0); }
  .log-art-card { justify-content: flex-start; }
  .log-art-card .jcard { width: 180px; height: 280px; }
  .log-art-card .jcard img { max-height: 225px; }
  .log-single { grid-template-columns: 1fr; gap: 32px; }
  .end { padding-top: calc(80px + var(--snap, 0px)); }
  .end-silhouette { height: 150px; }
}
