:root {
  --bg: #090d0a;
  --panel: #11190f;
  --panel-2: #172113;
  --paper: #f2edd1;
  --paper-2: #dcd36f;
  --ink: #17190c;
  --muted: #aeb793;
  --acid: #d8dc3f;
  --gold: #b79e48;
  --violet: #872c9e;
  --line: rgba(216, 220, 63, 0.22);
  --white: #fffde7;
  --shadow: 0 24px 80px rgba(0,0,0,0.42);
  --radius: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(9,13,10,0.82), rgba(9,13,10,0.94)),
    url("../images/header2.jpg") center top / cover fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(216,220,63,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(216,220,63,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}
a { color: #e4df5c; text-underline-offset: 3px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 10, 0.9);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font-weight: 900; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--acid); border-radius: 8px; color: var(--bg); background: var(--acid); box-shadow: 0 0 24px rgba(216,220,63,0.28); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.site-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.site-menu a { padding: 10px 12px; border-radius: 6px; color: rgba(255,253,231,0.88); text-decoration: none; font-size: 14px; font-weight: 800; }
.site-menu a:hover, .site-menu a[aria-current="page"] { color: var(--bg); background: var(--acid); }
.language-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: rgba(17,25,15,0.82); }
.language-switch a { min-width: 34px; padding: 7px 9px; border-radius: 4px; color: rgba(255,253,231,0.82); text-align: center; text-decoration: none; font-size: 12px; font-weight: 900; }
.language-switch a:hover, .language-switch a[aria-current="true"] { color: var(--bg); background: var(--acid); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: transparent; padding: 9px; }
.menu-toggle span { display: block; height: 2px; margin: 6px 0; background: var(--white); }
.hero {
  position: relative;
  min-height: clamp(680px, 86vh, 860px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(54px, 9vw, 120px) clamp(18px, 6vw, 96px);
  overflow: hidden;
}
.hero-visual { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9,13,10,0.52), rgba(9,13,10,0.78)), url("../images/deck16edit.jpg") right center / min(860px, 62vw) auto no-repeat; opacity: 0.92; }
.hero-copy { max-width: 790px; }
.eyebrow { margin: 0 0 12px; color: var(--acid); font-size: 12px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(52px, 9vw, 118px); line-height: 0.9; letter-spacing: 0; font-weight: 950; }
.lead { max-width: 720px; color: rgba(255,253,231,0.9); font-size: clamp(19px, 2vw, 25px); line-height: 1.58; }
.hero-search, .section-search { margin-top: 30px; }
.hero-search label { display: block; margin-bottom: 10px; color: var(--muted); font-weight: 800; }
.hero-search div, .section-search { display: flex; gap: 10px; }
input[type="search"] { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 6px; padding: 0 16px; color: var(--white); background: rgba(17,25,15,0.86); outline: none; }
button { min-height: 52px; border: 0; border-radius: 6px; padding: 0 20px; color: var(--bg); background: var(--acid); font-weight: 900; cursor: pointer; }
.quick-grid, .workbench, .content-shell, .search-page { width: min(1180px, calc(100% - 36px)); margin: 64px auto; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-card, .content-card, .workbench, .result-card, .level-preview article { border: 1px solid rgba(216,220,63,0.18); border-radius: var(--radius); background: rgba(17,25,15,0.9); box-shadow: 0 16px 44px rgba(0,0,0,0.22); }
.quick-card { min-height: 190px; padding: 22px; color: var(--white); text-decoration: none; }
.quick-card span { display: block; margin-bottom: 12px; color: var(--acid); font-size: 22px; font-weight: 950; }
.quick-card p { color: rgba(255,253,231,0.72); line-height: 1.55; }
.workbench { padding: clamp(22px, 4vw, 38px); }
.section-heading h2 { color: var(--white); font-size: clamp(34px, 5vw, 62px); line-height: 1.02; }
.section-heading p { color: rgba(255,253,231,0.72); line-height: 1.6; }
.level-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 22px; }
.level-preview article { padding: 20px; }
.level-preview h3 { color: var(--acid); font-size: 24px; }
dl { margin: 0; display: grid; gap: 8px; }
dl div { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid rgba(216,220,63,0.14); padding-top: 8px; }
dt { color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 900; }
dd { margin: 0; color: var(--white); font-weight: 800; }
.content-shell { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.sticky-heading { position: sticky; top: 96px; }
.article-stack { display: grid; gap: 16px; }
.content-card { padding: clamp(22px, 4vw, 36px); background: rgba(242,237,209,0.97); color: var(--ink); }
.content-card h2 { color: #4f4a12; font-size: clamp(27px, 3vw, 42px); line-height: 1.08; }
.content-card p { color: #24250e; font-size: 17px; line-height: 1.74; }
.video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); margin-top: 18px; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.subpage { min-height: 80vh; padding-top: 72px; }
.page-title { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 72px 0 22px; }
.page-title h1 { font-size: clamp(42px, 7vw, 92px); }
.results-list { display: grid; gap: 12px; margin-top: 24px; }
.result-card { display: block; padding: 20px; color: var(--white); text-decoration: none; }
.result-card span { color: var(--acid); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; }
.result-card strong { display: block; margin: 8px 0; font-size: 24px; }
.result-card p { color: rgba(255,253,231,0.72); }
.site-footer { padding: 34px 18px 46px; text-align: center; color: rgba(255,253,231,0.74); border-top: 1px solid var(--line); background: rgba(9,13,10,0.92); }
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .header-actions { gap: 8px; }
  .site-menu { position: fixed; inset: 72px 12px auto; display: none; flex-direction: column; align-items: stretch; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(9,13,10,0.98); }
  .site-menu.is-open { display: flex; }
  .hero { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .content-shell { grid-template-columns: 1fr; }
  .sticky-heading { position: static; }
}
@media (max-width: 560px) {
  .brand span:last-child { display: none; }
  .language-switch a { min-width: 30px; padding-inline: 7px; }
  .hero { min-height: 700px; padding-inline: 18px; }
  .hero-search div, .section-search { flex-direction: column; }
  .quick-grid { grid-template-columns: 1fr; }
}
.cookie-manage { min-height: 0; margin-top: 12px; padding: 8px 12px; border: 1px solid var(--line); color: var(--white); background: rgba(17,25,15,0.86); font-size: 13px; }
.cookie-panel[hidden], .cookie-settings[hidden], .cookie-actions button[hidden] { display: none; }
.cookie-panel { position: fixed; inset: auto 18px 18px; z-index: 80; display: flex; justify-content: center; pointer-events: none; }
.cookie-card { width: min(920px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(9,13,10,0.96); box-shadow: var(--shadow); backdrop-filter: blur(16px); pointer-events: auto; }
.cookie-copy h2 { margin-bottom: 8px; color: var(--acid); font-size: 24px; }
.cookie-copy p, .cookie-option p, .cookie-option span span { margin: 0; color: rgba(255,253,231,0.74); line-height: 1.55; }
.cookie-settings { grid-column: 1 / -1; display: grid; gap: 10px; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid rgba(216,220,63,0.16); border-radius: 6px; background: rgba(17,25,15,0.86); }
.cookie-option strong { display: block; margin-bottom: 4px; color: var(--white); }
.cookie-option input { width: 22px; height: 22px; accent-color: var(--acid); flex: 0 0 auto; }
.cookie-option.is-locked { opacity: 0.72; }
.cookie-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: start; gap: 8px; }
.button-muted { color: var(--white); border: 1px solid var(--line); background: rgba(17,25,15,0.86); }
.button-ghost { color: var(--acid); border: 1px solid rgba(216,220,63,0.34); background: transparent; }
@media (max-width: 760px) {
  .cookie-card { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions button { width: 100%; }
}
.legacy-layout { width: min(1180px, calc(100% - 36px)); margin: 34px auto 72px; display: grid; grid-template-columns: minmax(190px, 260px) minmax(0, 1fr); gap: clamp(18px, 4vw, 40px); align-items: start; }
.legacy-index { position: sticky; top: 96px; display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(17,25,15,0.9); }
.legacy-index a { padding: 11px 12px; border-radius: 6px; color: rgba(255,253,231,0.84); text-decoration: none; font-weight: 850; }
.legacy-index a:hover { color: var(--bg); background: var(--acid); }
.legacy-stack { display: grid; gap: 18px; }
.legacy-card { overflow: hidden; border: 1px solid rgba(216,220,63,0.18); border-radius: var(--radius); background: rgba(242,237,209,0.98); color: var(--ink); box-shadow: 0 18px 52px rgba(0,0,0,0.24); }
.legacy-card > header { padding: clamp(20px, 4vw, 34px); border-bottom: 1px solid rgba(23,25,12,0.14); background: linear-gradient(90deg, rgba(216,220,63,0.2), rgba(242,237,209,0)); }
.legacy-card > header span { display: inline-block; margin-bottom: 8px; color: #665d12; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; }
.legacy-card > header h2 { margin-bottom: 8px; color: #34340d; font-size: clamp(30px, 4vw, 52px); line-height: 1.02; }
.legacy-card > header p { margin: 0; color: #4d4b22; font-size: 18px; }
.legacy-content { padding: clamp(20px, 4vw, 34px); }
.legacy-content h2 { margin: 30px 0 12px; color: #4f4a12; font-size: clamp(24px, 3vw, 36px); line-height: 1.12; }
.legacy-content h2:first-child { margin-top: 0; }
.legacy-content p, .legacy-content li { color: #24250e; font-size: 17px; line-height: 1.74; }
.legacy-content a { color: #5f4e00; font-weight: 850; }
.legacy-content img { max-width: 100%; height: auto; margin: 12px 0; border-radius: 6px; border: 1px solid rgba(23,25,12,0.16); }
.legacy-content .link-dump { overflow: auto; white-space: pre-wrap; padding: 14px; border: 1px solid rgba(23,25,12,0.16); border-radius: 6px; color: #f7f2d7; background: #11190f; line-height: 1.5; }
.legacy-content table { width: 100%; border-collapse: collapse; }
.legacy-content td, .legacy-content th { padding: 8px; border: 1px solid rgba(23,25,12,0.16); }
@media (max-width: 860px) {
  .legacy-layout { grid-template-columns: 1fr; }
  .legacy-index { position: static; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
.download-overview { width: min(1180px, calc(100% - 36px)); margin: 34px auto 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.download-card { min-height: 176px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border: 1px solid rgba(216,220,63,0.2); border-radius: var(--radius); color: var(--white); text-decoration: none; background: rgba(17,25,15,0.92); box-shadow: 0 16px 44px rgba(0,0,0,0.22); }
.download-card span { color: var(--acid); font-size: 24px; font-weight: 950; line-height: 1.1; }
.download-card p { margin: 18px 0 0; color: rgba(255,253,231,0.74); line-height: 1.55; }
.download-card:hover { border-color: rgba(216,220,63,0.56); transform: translateY(-1px); }
.download-detail-layout { width: min(1180px, calc(100% - 36px)); margin: 34px auto 72px; display: grid; grid-template-columns: minmax(190px, 250px) minmax(0, 1fr); gap: clamp(18px, 4vw, 40px); align-items: start; }
.legacy-index a[aria-current="page"] { color: var(--bg); background: var(--acid); }
.download-detail-card { max-width: 880px; }
.legacy-pager { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px clamp(20px, 4vw, 34px); border-bottom: 1px solid rgba(23,25,12,0.12); background: rgba(242,237,209,0.75); }
.legacy-pager.is-bottom { border-top: 1px solid rgba(23,25,12,0.12); border-bottom: 0; }
.legacy-pager a { min-width: 42px; padding: 9px 13px; border: 1px solid rgba(23,25,12,0.18); border-radius: 6px; color: #4f4a12; text-align: center; text-decoration: none; font-weight: 900; background: rgba(255,253,231,0.62); }
.legacy-pager a[aria-current="page"], .legacy-pager a:hover { color: var(--bg); background: var(--acid); border-color: rgba(23,25,12,0.28); }
.legacy-content p:has(img) { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px; border: 1px solid rgba(23,25,12,0.1); border-radius: 6px; background: rgba(255,253,231,0.38); }
.legacy-content p:has(img) a:not(:has(img)) { display: inline-flex; min-height: 42px; align-items: center; padding: 0 14px; border-radius: 6px; color: var(--bg); background: var(--acid); text-decoration: none; }
.legacy-content p:empty { display: none; }
@media (max-width: 860px) {
  .download-detail-layout { grid-template-columns: 1fr; }
  .download-detail-card { max-width: none; }
}
.legacy-download-item { margin: 0 0 28px; padding: clamp(18px, 3vw, 26px); border: 1px solid rgba(23,25,12,0.14); border-radius: var(--radius); background: rgba(255,253,231,0.44); }
.legacy-download-item:last-child { margin-bottom: 0; }
.legacy-download-item > h2 { margin-top: 0; padding-bottom: 12px; border-bottom: 1px solid rgba(23,25,12,0.12); }
.legacy-download-item > p { margin: 16px 0 0; }
.legacy-download-item > p:has(img) { margin-top: 8px; background: rgba(255,253,231,0.54); }
.legacy-download-item + .legacy-download-item { margin-top: 10px; }
.legacy-content > p:not(:has(img)) { max-width: 76ch; }
.legacy-content > p + h2 { margin-top: 42px; }
@media (max-width: 640px) {
  .legacy-download-item { padding: 16px; }
  .legacy-content p:has(img) { align-items: flex-start; }
}
.legacy-download-item.has-file-list .legacy-file-link,
.legacy-file-link { display: inline-flex; align-items: center; min-height: 34px; margin: 3px 8px 3px 0; padding: 0 11px; border-radius: 6px; color: var(--bg); background: var(--acid); text-decoration: none; font-weight: 900; }
.legacy-download-item.has-file-list p { padding: 14px; border: 1px solid rgba(23,25,12,0.12); border-radius: 6px; background: rgba(255,253,231,0.38); }
.legacy-download-item.has-file-list br { display: block; content: ""; margin-top: 7px; }
.legacy-download-item b { color: #34340d; }
.legacy-download-item .legacy-file-link b { color: inherit; }
.legacy-download-item.has-file-list h2 { border-color: rgba(216,220,63,0.42); }
.legacy-download-item:not(.has-file-list) > p:not(:has(img)) { padding: 0; border: 0; background: transparent; }
.legacy-file-note { max-width: 76ch; margin: 12px 0; padding: 0; border: 0; background: transparent; }
.legacy-file-list { display: grid; gap: 8px; margin: 14px 0; }
.legacy-file-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 48px; padding: 8px 10px; border: 1px solid rgba(23,25,12,0.12); border-radius: 6px; color: #2c2b11; background: rgba(255,253,231,0.62); }
.legacy-file-row .legacy-file-link { flex: 0 0 auto; margin: 0; }
.legacy-file-row b { font-weight: 800; }
.legacy-download-item.has-file-list > p { padding: 0; border: 0; background: transparent; }
.legacy-download-item.has-file-list .legacy-file-list + .legacy-file-note { margin-top: 16px; }
.about-content { display: grid; gap: 18px; }
.about-text-block { padding: clamp(18px, 3vw, 26px); border: 1px solid rgba(23,25,12,0.14); border-radius: var(--radius); background: rgba(255,253,231,0.44); }
.about-text-block h2 { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(23,25,12,0.12); color: #4f4a12; font-size: clamp(24px, 3vw, 36px); line-height: 1.12; }
.about-text { max-width: 78ch; color: #24250e; font-size: 17px; line-height: 1.74; }
.about-text + .about-text { margin-top: 14px; }
.about-text a { color: #5f4e00; font-weight: 850; }
.support-actions { margin: 18px 0 0; }
.support-action { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 6px; color: var(--bg); background: var(--acid); text-decoration: none; font-weight: 950; }
.support-file-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.support-content .legacy-file-link { margin: 0; }
.link-list { display: grid; gap: 16px; }
.link-item { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 18px; align-items: start; padding: clamp(18px, 3vw, 26px); border: 1px solid rgba(23,25,12,0.14); border-radius: var(--radius); background: rgba(255,253,231,0.44); }
.link-item img { width: 100%; max-width: 220px; margin: 0; aspect-ratio: 1 / 1; object-fit: cover; background: rgba(17,25,15,0.1); }
.link-item h2 { margin: 0 0 10px; color: #4f4a12; font-size: clamp(24px, 3vw, 34px); line-height: 1.12; }
.link-item p { max-width: 78ch; color: #24250e; font-size: 17px; line-height: 1.68; }
@media (max-width: 700px) { .link-item { grid-template-columns: 1fr; } .link-item img { max-width: none; aspect-ratio: 16 / 10; } }.guides-content { display: block; }
.guides-content h2 { padding-bottom: 10px; border-bottom: 1px solid rgba(23,25,12,0.12); }
.guides-content h3 { margin: 24px 0 10px; color: #4f4a12; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.18; }
.guides-content ul, .guides-content ol { max-width: 78ch; padding-left: 24px; }
.guides-content img { max-height: 520px; object-fit: contain; }
.guides-detail-card { max-width: 940px; }
@media (max-width: 860px) { .guides-detail-card { max-width: none; } }.walkthrough-content p { max-width: 82ch; }
.walkthrough-card .legacy-content p:has(img) { max-width: none; }
.guides-detail-layout .legacy-index { max-height: calc(100vh - 116px); overflow: auto; }.guides-content a[href*="guide-walkthrough.php"] { display: inline-flex; align-items: center; min-height: 32px; margin: 4px 10px 4px 0; padding: 0 10px; border-radius: 6px; color: var(--bg); background: rgba(216,220,63,0.86); text-decoration: none; font-weight: 950; }
.guides-content a[href*="guide-walkthrough.php"] + b { color: #34340d; }
.guides-content p:has(a[href*="guide-walkthrough.php"]) { max-width: 92ch; padding: 14px; border: 1px solid rgba(23,25,12,0.12); border-radius: 6px; background: rgba(255,253,231,0.38); }.walkthrough-clean-content { display: grid; gap: 18px; }
.walkthrough-clean-content h2 { margin: 0; padding-bottom: 12px; border-bottom: 1px solid rgba(23,25,12,0.12); color: #4f4a12; font-size: clamp(24px, 3vw, 36px); line-height: 1.12; }
.walkthrough-clean-content p { max-width: 84ch; margin: 0; color: #24250e; font-size: 17px; line-height: 1.76; }
.walkthrough-clean-content p + p { padding-top: 12px; border-top: 1px solid rgba(23,25,12,0.08); }.walkthrough-image-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; max-width: 760px; }
.walkthrough-image-grid a { display: block; padding: 8px; border: 1px solid rgba(23,25,12,0.14); border-radius: 6px; background: rgba(255,253,231,0.5); }
.walkthrough-image-grid img { display: block; width: 100%; height: auto; margin: 0; border: 0; border-radius: 4px; }
.walkthrough-image-grid a { cursor: zoom-in; transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease; }
.walkthrough-image-grid a:hover { border-color: rgba(216,220,63,0.52); background: rgba(255,253,231,0.72); transform: translateY(-1px); }
body.has-lightbox { overflow: hidden; }
.image-lightbox[hidden] { display: none; }
.image-lightbox { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: 12px; padding: 24px; background: rgba(4,8,5,0.9); backdrop-filter: blur(14px); }
.image-lightbox__figure { grid-column: 2; display: grid; justify-items: center; gap: 12px; margin: 0; min-width: 0; }
.image-lightbox__figure img { display: block; max-width: min(100%, 1120px); max-height: calc(100vh - 150px); object-fit: contain; border: 1px solid rgba(216,220,63,0.28); border-radius: 6px; box-shadow: 0 22px 90px rgba(0,0,0,0.58); background: rgba(0,0,0,0.24); }
.image-lightbox__figure figcaption { max-width: min(100%, 1120px); color: rgba(255,253,231,0.88); text-align: center; font-size: 15px; font-weight: 850; line-height: 1.45; }
.image-lightbox button { border: 1px solid rgba(216,220,63,0.32); border-radius: 6px; color: var(--white); background: rgba(17,25,15,0.88); box-shadow: 0 14px 38px rgba(0,0,0,0.34); cursor: pointer; }
.image-lightbox button:hover { color: var(--bg); background: var(--acid); }
.image-lightbox__close { position: absolute; top: 18px; right: 18px; width: 46px; min-height: 46px; font-size: 18px; font-weight: 950; }
.image-lightbox__nav { width: 52px; min-height: 64px; justify-self: center; font-size: 30px; font-weight: 950; }
.image-lightbox__nav--prev { grid-column: 1; }
.image-lightbox__nav--next { grid-column: 3; }
@media (max-width: 700px) {
  .image-lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: 58px 14px 18px; }
  .image-lightbox__figure { grid-column: 1 / -1; }
  .image-lightbox__figure img { max-height: calc(100vh - 170px); }
  .image-lightbox__nav { width: 100%; min-height: 46px; }
  .image-lightbox__nav--prev { grid-column: 1; grid-row: 2; }
  .image-lightbox__nav--next { grid-column: 2; grid-row: 2; }
}
.guides-content p { max-width: 84ch; margin: 0 0 18px; padding: 0; border: 0; background: transparent; }
.guides-content p:has(img) { display: block; max-width: 84ch; padding: 0; border: 0; background: transparent; }
.guides-content p + p { margin-top: 0; }
.guides-content h2 + p, .guides-content h3 + p { margin-top: 0; }
.guides-content img { display: block; max-width: 100%; height: auto; margin: 16px 0; }
.guides-content h2 { margin: 38px 0 14px; padding-bottom: 0; border-bottom: 0; }
.guides-content h2:first-child { margin-top: 0; }
.guides-content h3 { border-bottom: 0; }
.guides-content p + h2 { margin-top: 44px; }
.levels-layout { width: min(1240px, calc(100% - 36px)); margin: 34px auto 72px; display: grid; grid-template-columns: minmax(190px, 250px) minmax(0, 1fr); gap: clamp(18px, 4vw, 40px); align-items: start; }
.levels-index span { float: right; opacity: 0.72; }
.levels-board { display: grid; gap: 24px; min-width: 0; }
.levels-search { margin: 0; }
.level-category { display: grid; gap: 14px; scroll-margin-top: 92px; }
.level-category-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 0 2px 10px; border-bottom: 1px solid rgba(216,220,63,0.22); }
.level-category-header h2 { margin: 0; color: var(--white); font-size: clamp(26px, 3vw, 42px); line-height: 1.08; }
.level-category-header span { color: rgba(255,253,231,0.72); font-size: 14px; font-weight: 850; text-transform: uppercase; }
.level-section-note { display: grid; gap: 12px; padding: clamp(18px, 3vw, 26px); border: 1px solid rgba(216,220,63,0.2); border-radius: var(--radius); background: rgba(242,237,209,0.96); color: var(--ink); box-shadow: 0 16px 46px rgba(0,0,0,0.2); }
.level-section-note p { margin: 0; color: #24250e; font-size: 16px; line-height: 1.68; }
.level-section-note strong { color: #3d3b10; font-weight: 900; }
.level-table { display: grid; gap: 16px; }
.level-card { overflow: hidden; border: 1px solid rgba(216,220,63,0.2); border-radius: var(--radius); background: rgba(242,237,209,0.98); color: var(--ink); box-shadow: 0 18px 52px rgba(0,0,0,0.24); }
.level-card-header { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding: 20px clamp(18px, 3vw, 26px); border-bottom: 1px solid rgba(23,25,12,0.12); background: linear-gradient(90deg, rgba(216,220,63,0.22), rgba(242,237,209,0)); }
.level-card-header h3 { margin: 0; color: #3d3b10; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; }
.level-card-header span { flex: 0 0 auto; color: #6a6114; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }
.level-card-body { display: grid; gap: 18px; padding: clamp(18px, 3vw, 26px); }
.level-card-body a { color: #5f4e00; font-weight: 900; }
.level-card-body a[href*="download/"] { display: inline-flex; align-items: center; min-height: 34px; margin: 3px 8px 3px 0; padding: 0 11px; border-radius: 6px; color: var(--bg); background: var(--acid); text-decoration: none; }
.level-meta-line { display: grid; gap: 0; align-items: stretch; padding: 10px 12px; border: 1px solid rgba(23,25,12,0.12); border-radius: 6px; background: rgba(255,253,231,0.58); color: #24250e; font-size: 14px; line-height: 1.25; }
.level-meta-line.is-count-2 { grid-template-columns: 150px minmax(0, 1fr); }
.level-meta-line.is-count-3 { grid-template-columns: 150px 130px minmax(0, 1fr); }
.level-meta-line.is-count-4 { grid-template-columns: 150px 110px 145px minmax(0, 1fr); }
.level-meta-line.is-count-5 { grid-template-columns: 150px 90px 130px 145px minmax(150px, 1fr); }
.level-meta-line.is-count-6 { grid-template-columns: 150px 90px 130px 145px 110px minmax(150px, 1fr); }
.level-meta-chip { display: grid; align-content: center; gap: 2px; min-height: 42px; padding: 5px 10px; border-left: 1px solid rgba(23,25,12,0.12); }
.level-meta-chip small { display: block; color: #6a6114; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.07em; }
.level-meta-chip > span { display: block; min-width: 0; color: #24250e; font-weight: 750; overflow-wrap: anywhere; }
.level-meta-chip b, .level-meta-chip strong { color: #34340d; }
.level-meta-chip.is-download { border-left: 0; padding-left: 0; align-content: center; }
.level-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.level-description { color: #24250e; font-size: 16px; line-height: 1.72; }
.level-description p { margin: 0; }
.level-params { width: 100%; border-collapse: collapse; overflow: hidden; border: 1px solid rgba(23,25,12,0.14); border-radius: 6px; background: rgba(255,253,231,0.56); font-size: 15px; }
.level-params th, .level-params td { padding: 10px 12px; border-bottom: 1px solid rgba(23,25,12,0.1); text-align: left; vertical-align: top; }
.level-params tr:last-child th, .level-params tr:last-child td { border-bottom: 0; }
.level-params th { width: 220px; color: #3d3b10; font-weight: 900; }
.level-params td { color: #24250e; }
.level-gallery-link { display: block; max-width: none; margin: 0; padding: 7px; border: 1px solid rgba(23,25,12,0.14); border-radius: 6px; background: rgba(255,253,231,0.58); vertical-align: top; cursor: zoom-in; transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease; }
.level-gallery-link:hover { border-color: rgba(216,220,63,0.58); background: rgba(255,253,231,0.82); transform: translateY(-1px); }
.level-gallery-link img { display: block; width: 100%; max-width: none; aspect-ratio: 4 / 3; height: auto; object-fit: cover; margin: 0; border: 0; border-radius: 4px; }
.level-empty { padding: 22px; }
@media (max-width: 900px) {
  .levels-layout { grid-template-columns: 1fr; }
  .levels-index { position: static; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .level-card-header { display: grid; }
  .level-meta-line, .level-meta-line.is-count-2, .level-meta-line.is-count-3, .level-meta-line.is-count-4, .level-meta-line.is-count-5, .level-meta-line.is-count-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .level-meta-chip:nth-child(3n+1) { border-left: 0; }
}
.levels-hub { width: min(1180px, calc(100% - 36px)); margin: 34px auto 72px; display: grid; gap: 22px; }
.levels-overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.level-section-card { min-height: 176px; display: grid; align-content: space-between; padding: 22px; border: 1px solid rgba(216,220,63,0.2); border-radius: var(--radius); color: var(--white); text-decoration: none; background: rgba(17,25,15,0.92); box-shadow: 0 16px 44px rgba(0,0,0,0.22); }
.level-section-card span { color: var(--acid); font-size: 26px; font-weight: 950; line-height: 1.12; }
.level-section-card strong { margin: 16px 0 8px; color: var(--white); font-size: 42px; line-height: 1; }
.level-section-card p { margin: 0; color: rgba(255,253,231,0.74); line-height: 1.55; }
.level-section-card:hover { border-color: rgba(216,220,63,0.56); transform: translateY(-1px); }
.levels-search-heading { margin-top: 8px; }
@media (max-width: 760px) {
  .level-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .level-params th { width: 150px; }
}
@media (max-width: 460px) {
  .level-gallery-grid { grid-template-columns: 1fr; }
  .level-params th, .level-params td { display: block; width: auto; }
  .level-params th { padding-bottom: 2px; }
  .level-params td { padding-top: 2px; }
}


@media (max-width: 620px) {
  .level-meta-line, .level-meta-line.is-count-2, .level-meta-line.is-count-3, .level-meta-line.is-count-4, .level-meta-line.is-count-5, .level-meta-line.is-count-6 { grid-template-columns: 1fr; }
  .level-meta-chip { border-left: 0; border-top: 1px solid rgba(23,25,12,0.1); padding-left: 0; }
  .level-meta-chip.is-download { border-top: 0; }
}
