/* The player's guide (anleitung.html), laid out like an issue of a games magazine.
   Builds on style.css; only what the guide needs on top lives here. */

/* Cover of the issue: masthead, cover lines and the stamp of the title story */
.cover { background: var(--night-900) url("../img/hero.jpg") center bottom / cover no-repeat; border-bottom: 2px solid var(--ink-900); }
.cover__inner { max-width: 860px; margin: 0 auto; padding: 44px 20px 120px; text-align: center; }
.cover__issue { font-family: var(--font-label); font-weight: 700; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--paper-300); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6); margin-bottom: 10px; }
.cover__title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(46px, 9vw, 104px); line-height: 0.9; margin: 0; color: var(--yellow-400); text-shadow: 0 5px 0 var(--ink-900), 0 0 30px rgba(30, 24, 48, 0.9); text-wrap: balance; }
.cover__title span { display: block; font-size: 0.42em; line-height: 1.15; color: var(--paper-100); letter-spacing: 1px; }
.cover__lead { position: relative; display: inline-block; max-width: 640px; margin: 34px 0 0; padding: 18px 26px 20px; text-align: left; background: linear-gradient(var(--paper-50), var(--paper-200)); border: 2px solid var(--ink-900); border-radius: 10px; box-shadow: var(--shadow-md); transform: rotate(-1deg); }
.cover__lead h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; }
.cover__lead p { font-size: 17px; }
.cover__stamp { position: absolute; top: -18px; right: -14px; transform: rotate(6deg); padding: 3px 14px 1px; font-family: var(--font-display); font-weight: 900; font-size: 22px; line-height: 26px; text-transform: uppercase; color: var(--paper-100); background: linear-gradient(var(--red-500), var(--red-700)); border: 2px solid var(--ink-900); border-radius: 3px; box-shadow: 0 2px 0 var(--ink-900); }
.cover__lines { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; margin: 26px 0 0; padding: 0; }
.cover__lines li { font-family: var(--font-label); font-weight: 700; font-size: 16px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-900); padding: 3px 12px; background: var(--yellow-400); border: 2px solid var(--ink-900); border-radius: 3px; box-shadow: 0 2px 0 var(--ink-900); }

/* The rubric strip doubles as navigation here */
.strip a { font-family: var(--font-label); font-weight: 700; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; color: var(--paper-100); }
.strip a:hover, .strip a:focus-visible { color: var(--yellow-400); outline: none; }

/* Rubric head of every article */
.rubric { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px dotted var(--ink-300); }
.rubric .tag { font-size: 15px; }
.rubric__page { margin-left: auto; font-family: var(--font-numeric); font-weight: 700; font-size: 15px; letter-spacing: 1px; color: var(--ink-600); }
.lead { font-size: 20px; line-height: 1.45; color: var(--ink-900); }
.page h3 { margin-top: 30px; }
.page h3:first-child, .rubric + h2 + h3 { margin-top: 0; }
.page > h2 + .lead { margin-bottom: 22px; }

/* Table of contents */
.toc { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; }
.toc a { display: block; height: 100%; padding: 12px 14px 14px; text-decoration: none; color: var(--ink-900); background: var(--paper-50); border: 2px solid var(--ink-900); border-radius: 6px; box-shadow: var(--shadow-sm); transition: transform 100ms; }
.toc a:hover, .toc a:focus-visible { transform: translateY(-2px); outline: none; background: var(--paper-100); }
.toc strong { display: block; margin-top: 8px; font-family: var(--font-display); font-weight: 900; font-size: 22px; line-height: 1.05; text-transform: uppercase; }
.toc span.toc__text { display: block; margin-top: 4px; font-size: 15px; line-height: 1.35; color: var(--ink-600); }

/* Two kinds of buyers side by side */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 18px 0 8px; }
.duo > div { padding: 16px 18px 18px; background: var(--paper-50); border: 2px solid var(--ink-900); border-radius: 6px; border-top: 8px solid var(--red-500); }
.duo > div + div { border-top-color: var(--teal-700); }
.duo h4 { font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 1; text-transform: uppercase; margin: 0 0 6px; }

/* Lists of levers and rooms: a name on the left, the explanation on the right */
.levers { margin: 14px 0 0; border-top: 2px solid var(--ink-900); }
.levers > div { display: grid; grid-template-columns: 210px 1fr; gap: 6px 20px; padding: 12px 0; border-bottom: 2px dotted var(--ink-300); }
.levers > div:last-child { border-bottom: 2px solid var(--ink-900); }
.levers dt { font-family: var(--font-label); font-weight: 700; font-size: 18px; letter-spacing: 0.8px; line-height: 1.25; text-transform: uppercase; color: var(--ink-900); }
.levers dd { margin: 0; font-size: 17px; }

/* Rating box: dark panel with rows, like the verdict box of a test */
.verdict { margin-top: 26px; background: var(--ink-900); border: 2px solid var(--ink-900); border-radius: 6px; box-shadow: var(--shadow-sm); color: var(--paper-200); overflow: hidden; }
.verdict__head { padding: 8px 16px 6px; font-family: var(--font-display); font-weight: 900; font-size: 24px; text-transform: uppercase; color: var(--ink-900); background: linear-gradient(var(--yellow-400), var(--yellow-600)); }
.verdict__row { display: grid; grid-template-columns: 1fr 190px; align-items: center; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--night-500); font-size: 16px; }
.verdict__row:first-of-type { border-top: 0; }
.verdict__row--facts { grid-template-columns: 170px 1fr; }
.verdict__row--facts b { font-family: var(--font-label); font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--yellow-400); }
.verdict__foot { padding: 12px 16px 14px; border-top: 2px solid var(--night-500); font-size: 17px; color: var(--paper-100); }
.verdict__foot b { font-family: var(--font-label); letter-spacing: 1.2px; text-transform: uppercase; color: var(--yellow-400); }

/* Timeline of one issue */
.timeline { list-style: none; margin: 18px 0 0; padding: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 0 0 22px; }
.timeline li::before { content: ""; position: absolute; left: 158px; top: 6px; bottom: -6px; width: 2px; background: var(--ink-300); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 152px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--red-500); border: 2px solid var(--ink-900); }
.timeline__when { font-family: var(--font-display); font-weight: 900; font-size: 22px; line-height: 1.05; text-transform: uppercase; text-align: right; color: var(--red-700); }
.timeline__what { padding-left: 14px; }
.timeline__what b { display: block; font-family: var(--font-label); font-weight: 700; font-size: 18px; letter-spacing: 0.8px; text-transform: uppercase; }

/* Rooms */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 14px; }
.room { padding: 14px 16px 16px; background: var(--paper-50); border: 2px solid var(--ink-900); border-radius: 6px; font-size: 16px; line-height: 1.45; }
.room h4 { font-family: var(--font-display); font-weight: 900; font-size: 23px; line-height: 1; text-transform: uppercase; margin: 0 0 6px; }
.room--wide { grid-column: span 2; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.shots.gallery a::after { font-size: 14px; line-height: 18px; padding: 1px 8px 0; top: 8px; }
.shots.gallery span { font-size: 13px; padding: 6px 10px; }

/* Numbered steps and tips */
.steps { list-style: none; counter-reset: step; margin: 18px 0 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 16px 62px; min-height: 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; font-size: 28px; color: var(--paper-100); background: linear-gradient(var(--red-500), var(--red-700)); border: 2px solid var(--ink-900); border-radius: 6px; box-shadow: 0 2px 0 var(--ink-900); }
.steps b { display: block; font-family: var(--font-label); font-weight: 700; font-size: 18px; letter-spacing: 0.8px; text-transform: uppercase; }

.tips { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin-top: 18px; }
.tips section { padding: 14px 18px 8px; background: var(--paper-50); border: 2px solid var(--ink-900); border-radius: 6px; }
.tips h3 { margin: 0 0 8px; font-size: 24px; }
.tips ol { margin: 0; padding: 0; list-style: none; }
.tips li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 8px 0; border-top: 2px dotted var(--ink-300); font-size: 16px; line-height: 1.4; }
.tips li:first-child { border-top: 0; }
.tips li b { font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 1; color: var(--red-500); }

/* Letters to the editor */
.letters { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.mailbag { padding: 16px 18px 18px; background: var(--paper-50); border: 2px solid var(--ink-900); border-radius: 6px; font-size: 16px; line-height: 1.45; }
.mailbag blockquote { margin: 0 0 10px; padding: 0 0 10px; border-bottom: 2px dotted var(--ink-300); font-family: var(--font-ui); font-weight: 600; font-style: italic; font-size: 18px; line-height: 1.35; color: var(--ink-900); }
.mailbag p::before { content: "Die Redaktion: "; font-family: var(--font-label); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--red-700); }

/* File names and listings in the modding guide (mods.html) */
.page code { font-family: Consolas, "Courier New", monospace; font-size: 0.9em; padding: 1px 5px; background: var(--paper-200); border: 1px solid var(--paper-400); border-radius: 3px; overflow-wrap: anywhere; }
.code { margin: 14px 0 18px; padding: 14px 18px; overflow-x: auto; font-family: Consolas, "Courier New", monospace; font-size: 15px; line-height: 1.45; color: var(--paper-100); background: var(--night-900); border: 2px solid var(--ink-900); border-radius: 6px; box-shadow: var(--shadow-sm); }

/* Sober reference layout of the modding guide (mods.html) */
.doc h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 14px; }
.doc h3 { margin-top: 26px; font-size: 22px; }
.doc__kicker { font-family: var(--font-label); font-weight: 700; font-size: 15px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-600); margin: 0 0 6px; }
.doc__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(38px, 6vw, 60px); line-height: 1; text-transform: uppercase; margin: 0 0 18px; color: var(--ink-900); }
.doc__toc { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; padding-top: 14px; border-top: 2px solid var(--ink-900); }
.doc__toc a { font-family: var(--font-label); font-weight: 700; font-size: 16px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink-900); text-decoration: none; }
.doc__toc a:hover, .doc__toc a:focus-visible { color: var(--red-700); outline: none; }
.doc .rules li { font-size: 17px; }
.ref { width: 100%; margin: 14px 0 6px; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.ref th { padding: 8px 12px 6px 0; text-align: left; font-family: var(--font-label); font-weight: 700; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-600); border-bottom: 2px solid var(--ink-900); }
.ref td { padding: 9px 12px 9px 0; vertical-align: top; border-bottom: 1px dotted var(--ink-300); }
.ref td:first-child { white-space: nowrap; }
.ref tr:last-child td { border-bottom: 2px solid var(--ink-900); }
.doc__steps { margin: 14px 0; padding-left: 24px; font-size: 17px; line-height: 1.5; }
.doc__steps li { margin-bottom: 8px; }
@media (max-width: 700px) {
  .ref, .ref tbody, .ref tr, .ref td { display: block; }
  .ref thead { display: none; }
  .ref tr { padding: 8px 0; border-bottom: 1px dotted var(--ink-300); }
  .ref td { padding: 2px 0; border: 0; }
  .ref td:first-child { white-space: normal; font-weight: 600; }
  .ref tr:last-child td { border: 0; }
}

/* Outlook */
.outlook { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.imprint-note { margin-top: 22px; padding-top: 14px; border-top: 2px dotted var(--ink-300); font-size: 15px; color: var(--ink-600); }

@media (max-width: 900px) {
  .toc, .rooms { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .tips, .letters, .outlook, .duo { grid-template-columns: 1fr; }
  .levers > div { grid-template-columns: 1fr; }
  .room--wide { grid-column: auto; }
}

@media (max-width: 560px) {
  .cover__inner { padding: 30px 14px 80px; }
  .cover__lead { transform: none; padding: 16px 18px 18px; }
  .cover__stamp { right: 6px; }
  .toc, .rooms, .shots { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 26px; }
  .timeline li::before { left: 6px; }
  .timeline li::after { left: 0; }
  .timeline__when { text-align: left; }
  .timeline__what { padding-left: 0; }
  .verdict__row, .verdict__row--facts { grid-template-columns: 1fr; gap: 6px; }
  .rubric__page { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .toc a { transition: none; }
}
