/* Vermeer 100% – strona o grze. Czysty CSS, bez frameworkow. */
:root {
  --bg: #15122b;
  --bg2: #1d1940;
  --card: #241f4d;
  --line: #3a3373;
  --c64-blue: #40318d;
  --c64-lblue: #887ecb;
  --gold: #d9b45a;
  --gold2: #a57b2c;
  --text: #e8e6f5;
  --muted: #a9a3d0;
  --red: #b5524a;
  --radius: 10px;
  --max: 1100px;
  --mono: "VT323", "Courier New", monospace;
  --pixel: "Press Start 2P", "Courier New", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: #fff; }

/* --- nawigacja */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 18, 43, .93);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.logo { font-family: var(--pixel); font-size: 14px; color: var(--gold); text-decoration: none; letter-spacing: 1px; white-space: nowrap; }
.logo span { color: var(--c64-lblue); }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.top nav a {
  color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 6px; font-size: 15px;
}
.top nav a:hover, .top nav a.active { color: #fff; background: var(--card); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 6px 10px; font-size: 18px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
h1, h2, h3 { line-height: 1.25; }
h2 { font-family: var(--pixel); font-size: 20px; color: var(--gold); margin: 0 0 24px; letter-spacing: 1px; }
h3 { font-size: 20px; color: #fff; margin: 28px 0 10px; }
.lead { font-size: 19px; color: var(--muted); max-width: 760px; }

/* --- naglowek strony */
.hero { padding: 64px 0 56px; background: radial-gradient(1200px 500px at 70% 0%, #2d2670 0%, transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-family: var(--pixel); font-size: 38px; margin: 0 0 6px; color: var(--gold); letter-spacing: 2px; }
.hero .sub { font-family: var(--mono); font-size: 26px; color: var(--c64-lblue); margin: 0 0 18px; }
.hero p { color: var(--muted); }
.screen {
  border: 10px solid var(--c64-lblue); border-radius: 8px; background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); image-rendering: pixelated;
}
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-block; padding: 11px 18px; border-radius: 8px; text-decoration: none; font-weight: 600;
  background: var(--gold); color: #1a1530; border: 2px solid var(--gold);
}
.btn.ghost { background: transparent; color: var(--gold); }
.btn:hover { filter: brightness(1.1); color: #1a1530; }
.btn.ghost:hover { color: #fff; }

/* --- karty, tabele */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 0; }
.card .tag { display: inline-block; font-family: var(--mono); font-size: 18px; color: var(--c64-lblue); margin-bottom: 6px; }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { color: var(--muted); font-weight: 500; width: 38%; }
ul.ticks { padding-left: 0; list-style: none; }
ul.ticks li { padding-left: 26px; position: relative; margin: 8px 0; }
ul.ticks li::before { content: "▸"; position: absolute; left: 6px; color: var(--gold); }
.note { background: var(--bg2); border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: 6px; color: var(--muted); }
code, kbd { font-family: var(--mono); font-size: 19px; background: var(--bg2); padding: 1px 6px; border-radius: 4px; color: #fff; }

/* --- zrzuty ekranu */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.shots figure { margin: 0; cursor: zoom-in; }
.shots img { border-radius: 6px; border: 3px solid var(--c64-blue); image-rendering: pixelated; transition: transform .15s; }
.shots img:hover { transform: scale(1.02); border-color: var(--c64-lblue); }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* --- instrukcja */
.manual { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.toc { position: sticky; top: 80px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.toc b { display: block; font-family: var(--pixel); font-size: 11px; color: var(--gold); margin-bottom: 10px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; font-size: 15px; }
.toc a:hover { color: #fff; }
.manual article h2 { margin-top: 44px; }
.manual article h2:first-child { margin-top: 0; }
.manual table.data { border-collapse: collapse; margin: 14px 0; width: 100%; font-size: 15px; }
.manual table.data th, .manual table.data td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.manual table.data th { background: var(--bg2); color: var(--gold); }
.good { color: #8fdc7f; font-weight: 700; } .bad { color: #e07b72; }
.menu-tree { font-family: var(--mono); font-size: 20px; background: #000; color: #b0a8ff; padding: 16px 20px; border-radius: 6px; border: 3px solid var(--c64-blue); overflow-x: auto; line-height: 1.3; }

/* --- galeria */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tabs button {
  font: inherit; font-size: 15px; cursor: pointer; padding: 8px 14px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
}
.tabs button.active, .tabs button:hover { background: var(--gold); color: #1a1530; border-color: var(--gold); }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.switch button { font: inherit; font-size: 14px; padding: 7px 12px; border: 0; background: var(--card); color: var(--muted); cursor: pointer; }
.switch button.active { background: var(--c64-blue); color: #fff; }
.room-title { font-family: var(--pixel); font-size: 15px; color: var(--c64-lblue); margin: 30px 0 14px; }
.paintings { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.painting { cursor: zoom-in; background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; }
.frame {
  padding: 10px; border-radius: 4px;
  background: linear-gradient(135deg, #f0d27e, var(--gold2) 45%, #6b4a17 100%);
  box-shadow: 0 6px 18px rgba(0,0,0,.45), inset 0 0 0 2px rgba(0,0,0,.35);
}
.frame .canvas { background: #000; aspect-ratio: 4 / 3.4; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.c64 .frame img { image-rendering: pixelated; object-fit: contain; }
.painting:hover .frame { filter: brightness(1.1); }
.painting .cap { margin-top: 10px; }
.painting .cap b { display: block; color: #fff; font-size: 15px; }
.painting .cap span { color: var(--muted); font-size: 14px; }
.painting .num { font-family: var(--mono); color: var(--gold); font-size: 18px; margin-right: 4px; }

/* --- powiekszenie (lightbox) */
.lightbox { position: fixed; inset: 0; background: rgba(5, 4, 14, .94); display: none; z-index: 100; align-items: center; justify-content: center; flex-direction: column; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 78vh; max-width: 92vw; object-fit: contain; border: 6px solid var(--gold2); background: #000; }
.lightbox img.pix { image-rendering: pixelated; border-color: var(--c64-lblue); height: 72vh; width: auto; }
.lightbox .lb-cap { margin-top: 14px; text-align: center; max-width: 760px; }
.lightbox .lb-cap b { color: #fff; font-size: 19px; }
.lightbox .lb-cap span { display: block; color: var(--muted); font-size: 15px; }
.lb-btn { position: absolute; background: rgba(36, 31, 77, .9); color: #fff; border: 1px solid var(--line); border-radius: 50%; width: 48px; height: 48px; font-size: 22px; cursor: pointer; }
.lb-btn:hover { background: var(--c64-blue); }
.lb-prev { left: 18px; top: 50%; } .lb-next { right: 18px; top: 50%; } .lb-close { right: 18px; top: 18px; }
.lb-toggle { margin-top: 10px; }

footer { padding: 34px 0 50px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap, .grid2, .manual { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .toc { position: static; }
  .hero h1 { font-size: 28px; }
  .menu-btn { display: block; }
  .top nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 10px 20px; border-bottom: 1px solid var(--line); }
  .top nav.open { display: flex; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; }
}
[id] { scroll-margin-top: 80px; }
/* --- strona o malarzu */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--gold2); }
.timeline li { position: relative; padding: 0 0 18px 22px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 7px; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); }
.timeline b { color: var(--gold); font-family: var(--mono); font-size: 21px; margin-right: 8px; }
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
.works a { text-decoration: none; color: inherit; }
.quote { font-size: 20px; font-style: italic; color: #fff; border-left: 4px solid var(--c64-lblue); padding: 6px 0 6px 18px; margin: 24px 0; }
.hero-v { aspect-ratio: auto; }
