.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 10;
  padding: 8px 14px; border-radius: 6px; border: 1px solid #c8823c;
  background: #6e2a1c; color: #ffe3b0; font: 15px/1.3 Georgia, "Times New Roman", serif;
  text-decoration: none; transform: translateY(-120%);
}
.skip-link:focus { transform: none; outline: 2px solid #ffc98a; outline-offset: 2px; }
:root { color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0; min-height: 100vh;
  background: #0b0809 radial-gradient(ellipse at 50% 0%, #3a1410 0%, #160c0c 45%, #0b0809 100%) fixed;
  color: #d9cfc2; font: 17px/1.65 Georgia, "Times New Roman", serif;
}
.layout { max-width: 1120px; margin: 0 auto; padding: 36px 22px 64px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
header.top { grid-column: 1 / -1; text-align: center; margin-bottom: 4px; }
.brand { display: inline-block; color: #e8b866; text-decoration: none; letter-spacing: .04em; font-size: 15px; text-transform: uppercase; }
h1 { margin: 10px 0 6px; font-size: 2.3em; line-height: 1.2; color: #f1d39a; text-shadow: 0 0 18px rgba(190, 40, 20, .55); }
.meta { color: #9c8f80; font-style: italic; margin: 0; }
.hero { display: block; width: 100%; max-width: 760px; margin: 18px auto 0; border: 1px solid #3b2420; border-radius: 8px; image-rendering: pixelated; }
.play-cta { display: inline-block; margin-top: 16px; padding: 10px 26px; border: 1px solid #c8823c; border-radius: 6px; background: #6e2a1c; color: #ffe3b0; font-weight: bold; text-decoration: none; letter-spacing: .05em; }
.play-cta:hover { background: #8c3a22; color: #fff; }
nav.toc { position: sticky; top: 16px; align-self: start; background: rgba(20, 12, 12, .72); border: 1px solid #3b2420; border-radius: 8px; padding: 12px 16px; font-size: 15px; }
nav.toc h2 { margin: 4px 0 8px; font-size: 1em; }
nav.toc ol { margin: 0; padding-left: 1.3em; }
nav.toc li { margin: 3px 0; }
nav.toc a { color: #d9cfc2; text-decoration: none; }
nav.toc a:hover { color: #ffc98a; }
section { background: rgba(20, 12, 12, .72); border: 1px solid #3b2420; border-radius: 8px; padding: 6px 22px 12px; margin: 0 0 18px; }
h2 { font-size: 1.3em; color: #e8b866; margin: 18px 0 6px; }
h3 { font-size: 1.05em; color: #f1d39a; margin: 16px 0 4px; }
a { color: #f0a25a; }
a:hover { color: #ffc98a; }
ul, ol { padding-left: 1.2em; }
li { margin: 4px 0; }
kbd, code { font-family: "Courier New", monospace; font-size: .9em; color: #f1d39a; }
kbd { display: inline-block; padding: 0 6px; border: 1px solid #5a3a2a; border-bottom-width: 2px; border-radius: 4px; background: #1d1212; line-height: 1.5; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: .93em; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #3b2420; vertical-align: top; }
th { color: #e8b866; font-weight: normal; font-variant: small-caps; letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; }
.note { color: #9c8f80; font-size: .92em; font-style: italic; }
.tip { border-left: 3px solid #8a6d3b; padding: 4px 12px; margin: 10px 0; background: rgba(60, 30, 20, .35); }
.classes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 10px 0; }
.class-card { border: 1px solid #3b2420; border-radius: 6px; padding: 8px 12px; background: rgba(0, 0, 0, .25); }
.class-card h3 { margin-top: 4px; }
.class-card p { margin: 4px 0; font-size: .93em; }
footer { grid-column: 1 / -1; text-align: center; margin-top: 18px; color: #7d7064; font-size: 14px; }
footer a { margin: 0 8px; }
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding: 24px 12px 48px; }
  section { padding: 4px 14px 10px; }
  nav.toc { position: static; }
}
