@font-face {
    font-family: "Minecraft";
    src: url("../fonts/Minecraft.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    
    --bg:        #0e1116;
    --bg-deep:   #0a0c10;
    --bg-panel:  #161b22;
    --bg-inset:  #10141a;
    --border:    #2a323d;
    --border-soft: #1e242d;

    
    --text:       #eaf1f4;
    --text-soft:  #b9c6cf;
    --text-muted: #87949e;

    
    --green:     #57d178;   
    --turquoise: #2ed3bd;   
    --gold:      #f7c948;
    --red:       #e0533d;   
    --eternal:   #8a5cf5;   
    --pink:      #f06292;   
    --lapis:     #5a93e6;

    
    --accent:      var(--green);
    --accent-soft: rgba(87, 209, 120, 0.12);

    
    --font-pixel: "Minecraft", "JetBrains Mono", ui-monospace, monospace;
    --font-body:  "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono:  "JetBrains Mono", Consolas, ui-monospace, monospace;

    
    --nav-h: 58px;
    --sidebar-w: 240px;
    --content-max: 860px;
    --radius: 6px;
    --transition: 150ms ease;

    
    --tex-panel:        url("../textures/panel.png");
    --tex-panel-purple: url("../textures/panel_purple.png");
    --tex-panel-red:    url("../textures/panel_red.png");
    --tex-title:        url("../textures/title.png");
    --tex-btn:          url("../textures/btn.png");
    --tex-btn-hover:    url("../textures/btn_hover.png");

    
    --ore-green:        url("../textures/oreui/green_default.png");
    --ore-green-hover:  url("../textures/oreui/green_hover.png");
    --ore-green-press:  url("../textures/oreui/green_pressed.png");
    --ore-turquoise:       url("../textures/oreui/turquoise_default_button.png");
    --ore-turquoise-hover: url("../textures/oreui/turquoise_hover_button.png");
    --ore-turquoise-title: url("../textures/oreui/turquoise_default_title_background.png");
    --ore-eternal:        url("../textures/oreui/eternal_default_button.png");
    --ore-eternal-hover:  url("../textures/oreui/eternal_hover_button.png");
    --ore-eternal-title:  url("../textures/oreui/eternal_default_title_background.png");
    --ore-pink:        url("../textures/oreui/pink_default_button.png");
    --ore-pink-hover:  url("../textures/oreui/pink_hover_button.png");
    --ore-red:         url("../textures/oreui/red_default_button.png");
    --ore-red-hover:   url("../textures/oreui/red_hover_button.png");
    --ore-red-bg:      url("../textures/oreui/red_default_background.png");
    --ore-form:        url("../textures/oreui/background_form.png");
    --ore-card:        url("../textures/oreui/default.png");
    --ore-card-hover:  url("../textures/oreui/hover.png");
    --ore-indent:      url("../textures/oreui/indent.png");
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--text-soft);
    background-color: var(--bg);
    background-image: url("../textures/bg_tile.png");
    background-repeat: repeat;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at 50% 0%,
        rgba(14, 17, 22, 0.82) 0%, rgba(10, 12, 16, 0.94) 70%);
    pointer-events: none;
}

img { display: block; max-width: 100%; }

a { color: var(--turquoise); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
    font-family: var(--font-pixel);
    font-weight: normal;
    color: var(--text);
    line-height: 1.35;
    margin: 0 0 0.6em;
    letter-spacing: 0.5px;
}

code, kbd {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--bg-inset);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    padding: 1px 6px;
    color: var(--gold);
    white-space: nowrap;
}

::selection { background: var(--accent-soft); color: var(--text); }

.panel-tex {
    border-style: solid;
    border-width: 13px;
    border-image-source: var(--tex-panel);
    border-image-slice: 4 4 5 4 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
}

.ore-skin {
    border-style: solid;
    border-image-repeat: stretch;
    image-rendering: pixelated;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    font-family: var(--font-pixel);
    font-size: 13px;
    letter-spacing: 0.5px;
    color: var(--text);
    cursor: pointer;
    user-select: none;
    border-style: solid;
    border-width: 8px;
    border-image-source: var(--tex-btn);
    border-image-slice: 3 3 4 3 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    background: none;
    transition: filter var(--transition);
}
.btn:hover { border-image-source: var(--tex-btn-hover); color: #fff; }
.btn:active { transform: translateY(1px); }

.btn-ore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-family: var(--font-pixel);
    font-size: 12.5px;
    letter-spacing: 0.5px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    background: none;
    border-style: solid;
    border-width: 10px 10px 12px 10px;
    border-image-slice: 4 4 5 4 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.55);
    transition: filter var(--transition);
}
.btn-ore:active { transform: translateY(1px); }
.btn-ore-green     { border-image-source: var(--ore-green); border-image-slice: 2 2 4 2 fill; border-width: 8px 8px 14px 8px; }
.btn-ore-green:hover  { border-image-source: var(--ore-green-hover); }
.btn-ore-green:active { border-image-source: var(--ore-green-press); }
.btn-ore-turquoise { border-image-source: var(--ore-turquoise); }
.btn-ore-turquoise:hover { border-image-source: var(--ore-turquoise-hover); }
.btn-ore-eternal   { border-image-source: var(--ore-eternal); }
.btn-ore-eternal:hover { border-image-source: var(--ore-eternal-hover); }
.btn-ore-pink      { border-image-source: var(--ore-pink); }
.btn-ore-pink:hover { border-image-source: var(--ore-pink-hover); border-image-slice: 2 2 5 2 fill; }
.btn-ore-red       { border-image-source: var(--ore-red); }
.btn-ore-red:hover { border-image-source: var(--ore-red-hover); border-image-slice: 2 2 5 2 fill; }

.tag {
    display: inline-block;
    font-family: var(--font-pixel);
    font-size: 10.5px;
    letter-spacing: 0.5px;
    line-height: 1;
    color: #fff;
    white-space: nowrap;
    border-style: solid;
    border-width: 5px 7px 7px 7px;
    border-image-slice: 4 4 5 4 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.55);
    vertical-align: 1px;
}
.tag-required { border-image-source: var(--ore-red); }
.tag-optional { border-image-source: var(--ore-turquoise-title); border-image-slice: 2 2 5 2 fill; color: #06302a; text-shadow: none; }
.tag-info     { border-image-source: var(--ore-eternal-title); border-image-slice: 2 2 5 2 fill; }
.tag-warn     { border-image-source: var(--ore-pink); }
.tag-ok       { border-image-source: var(--ore-green); border-image-slice: 2 2 4 2 fill; }

.callout {
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    margin: 20px 0;
    font-size: 14.5px;
    border-style: solid;
    border-width: 10px 10px 16px 10px;
    
    border-image-slice: 2 2 6 2 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    border-image-source: var(--ore-green);
    color: #f2f7f4;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.35);
}
.callout .callout-icon { font-size: 17px; line-height: 1.4; text-shadow: 1px 1px 0 rgba(0,0,0,0.5); }
.callout strong { color: #fff; }
.callout code { background: rgba(0,0,0,0.35); border-color: rgba(0,0,0,0.4); }
.callout a { color: #fff; text-decoration: underline; }

.callout-info   { border-image-source: var(--ore-turquoise); border-image-slice: 4 4 5 4 fill; }
.callout-warn   { border-image-source: var(--ore-pink);      border-image-slice: 4 4 5 4 fill;
                  color: #47101f; text-shadow: none; }
.callout-warn strong { color: #2b0311; }
.callout-warn .callout-icon { color: #2b0311; text-shadow: none; }
.callout-danger { border-image-source: var(--ore-red);       border-image-slice: 4 4 5 4 fill; }
.callout-note   { border-image-source: var(--ore-eternal);   border-image-slice: 4 4 5 4 fill; }

.dodont {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}
.dodont li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    font-size: 14px;
    border-style: solid;
    border-width: 8px;
    border-image-source: var(--ore-card);
    border-image-slice: 2 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
}
.dodont li::before {
    content: "";
    flex-shrink: 0;
    width: 30px;
    height: 16px;
    margin-top: 3px;
    background-repeat: no-repeat;
    background-size: 30px 16px;
    image-rendering: pixelated;
}
.dodont li.do::before   { background-image: url("../textures/oreui/on.png"); }
.dodont li.dont::before { background-image: url("../textures/oreui/off.png"); }
.dodont li strong { color: var(--text); }

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    background: rgba(10, 12, 16, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-soft);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-pixel);
    font-size: 15px;
    color: var(--text);
    letter-spacing: 0.5px;
}
.nav-logo:hover { color: var(--accent); }
.nav-logo-block {
    width: 14px; height: 14px;
    background: var(--accent);
    box-shadow: inset -3px -3px 0 rgba(0,0,0,0.35), inset 3px 3px 0 rgba(255,255,255,0.25);
}

.nav-product {
    font-family: var(--font-pixel);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.nav-product b { color: var(--gold); font-weight: normal; }

.nav-spacer { flex: 1; }

.nav-version {
    font-family: var(--font-pixel);
    font-size: 12px;
    line-height: 1;
    padding: 2px 5px;
    color: #06302a;
    border-style: solid;
    border-width: 6px 9px 9px 9px;
    border-image-source: var(--ore-turquoise-title);
    border-image-slice: 2 2 5 2 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
}
.nav-burger span {
    width: 18px; height: 2px;
    background: var(--text-soft);
    transition: transform var(--transition), opacity var(--transition);
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.layout {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    padding-top: var(--nav-h);
}

.sidebar {
    position: sticky;
    top: var(--nav-h);
    align-self: flex-start;
    width: var(--sidebar-w);
    flex-shrink: 0;
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    padding: 28px 8px 28px 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.sidebar-title {
    font-family: var(--font-pixel);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin: 18px 0 8px 12px;
}
.sidebar-title:first-child { margin-top: 0; }

.sidebar-link {
    display: block;
    padding: 7px 12px;
    margin: 2px 0;
    font-size: 14px;
    color: var(--text-muted);
    border-left: 2px solid transparent;
    border-radius: 0 4px 4px 0;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.sidebar-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }

.sidebar-link.is-active {
    color: var(--accent);
    border-left: none;
    border-style: solid;
    border-width: 6px 4px 4px 4px;
    border-image-source: var(--ore-indent);
    border-image-slice: 4 2 2 2 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    padding: 5px 10px;
    border-radius: 0;
}
.sidebar-link.is-sub { padding-left: 26px; font-size: 13px; }
.sidebar-link.is-sub.is-active { padding-left: 24px; }

.content {
    flex: 1;
    min-width: 0;
    max-width: var(--content-max);
    padding: 36px 32px 100px;
}

.section { margin-bottom: 84px; }

.section-kicker {
    font-family: var(--font-pixel);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.section-title {
    font-size: 20px;
    margin: 0;
    padding: 8px 16px 6px;
    color: #f4faf7;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.6);
    border-style: solid;
    border-width: 6px 6px 15px 6px;
    border-image-source: var(--ore-turquoise-title);
    border-image-slice: 2 2 5 2 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
}

.plate-eternal   { border-image-source: var(--ore-eternal-title); }
.plate-green     { border-image-source: var(--ore-green); border-image-slice: 2 2 4 2 fill; border-width: 6px 6px 12px 6px; }
.plate-pink      { border-image-source: var(--ore-pink); border-image-slice: 4 4 5 4 fill; border-width: 8px 8px 12px 8px; }
.plate-red       { border-image-source: var(--ore-red); border-image-slice: 4 4 5 4 fill; border-width: 8px 8px 12px 8px; }
.plate-stone     { border-image-source: var(--tex-title); border-image-slice: 2 2 5 2 fill; border-width: 9px; }

.section-rule {
    flex: 1;
    height: 3px;
    background: repeating-linear-gradient(90deg, rgba(46,211,189,0.35) 0 6px, transparent 6px 12px);
}

.section-sub {
    font-size: 17px;
    color: var(--text);
    margin: 34px 0 12px;
}

.hero {
    padding: 44px 36px;
    margin-bottom: 64px;
    background: var(--bg-panel);
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-pixel);
    font-size: 11px;
    letter-spacing: 1px;
    line-height: 1;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.55);
    border-style: solid;
    border-width: 7px 11px 9px 11px;
    border-image-source: var(--ore-eternal);
    border-image-slice: 4 4 5 4 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    margin-bottom: 18px;
}

.hero h1 { font-size: 30px; margin-bottom: 10px; }
.hero h1 .accent { color: var(--accent); }

.hero-lead {
    font-size: 16px;
    color: var(--text-soft);
    max-width: 560px;
    margin: 0 0 22px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    font-size: 13.5px;
    color: var(--text-muted);
}
.hero-meta span b { color: var(--text-soft); font-weight: 600; }

.steps { counter-reset: step; display: flex; flex-direction: column; gap: 14px; }

.step {
    counter-increment: step;
    display: flex;
    gap: 18px;
    padding: 12px 14px;
    border-style: solid;
    border-width: 9px;
    border-image-source: var(--ore-card);
    border-image-slice: 2 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    transition: filter var(--transition);
}
.step:hover { border-image-source: var(--ore-card-hover); }

.step::before {
    content: counter(step);
    flex-shrink: 0;
    width: 34px; height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-pixel);
    font-size: 15px;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.55);
    border-style: solid;
    border-width: 6px 6px 10px 6px;
    border-image-source: var(--ore-green);
    border-image-slice: 2 2 4 2 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
}

.step h3 { font-size: 14px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 14.5px; }
.step p + p { margin-top: 8px; }

.legend-block { margin-bottom: 48px; }

.legend-figure {
    position: relative;
    margin: 0;
    border-style: solid;
    border-width: 13px;
    border-image-source: var(--tex-panel);
    border-image-slice: 4 4 5 4 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    background: var(--bg-deep);
    cursor: zoom-in;
}
.legend-figure img { width: 100%; image-rendering: auto; }

.hotspot {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    width: 26px; height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-pixel);
    font-size: 12px;
    line-height: 1;
    color: #1a1300;
    background: var(--gold);
    border: 2px solid #000;
    box-shadow: inset -2px -2px 0 rgba(0,0,0,0.25), inset 2px 2px 0 rgba(255,255,255,0.4);
    cursor: pointer;
    z-index: 2;
    image-rendering: pixelated;
    transition: transform var(--transition), background var(--transition);
}
.hotspot:hover,
.hotspot.is-active {
    background: var(--accent);
    color: #06140f;
    transform: translate(-50%, -50%) scale(1.2);
}

.legend-caption {
    font-size: 13px;
    color: var(--text-muted);
    margin: 10px 2px 18px;
}

.legend-notes { display: flex; flex-direction: column; gap: 8px; }

.legend-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 10px 12px;
    border-style: solid;
    border-width: 8px;
    border-image-source: var(--ore-card);
    border-image-slice: 2 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    transition: transform var(--transition);
}
.legend-note.is-active {
    border-image-source: var(--ore-card-hover);
    transform: translateX(4px);
}

.legend-note-num {
    flex-shrink: 0;
    width: 24px; height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-pixel);
    font-size: 12px;
    color: #1a1300;
    background: var(--gold);
    border: 2px solid #000;
    box-shadow: inset -2px -2px 0 rgba(0,0,0,0.25), inset 2px 2px 0 rgba(255,255,255,0.4);
    margin-top: 2px;
}
.legend-note.is-active .legend-note-num { background: var(--accent); color: #06140f; }

.legend-note-body { font-size: 14.5px; }
.legend-note-body strong { color: var(--text); }
.legend-note-body p { margin: 2px 0 0; }

.legend-note-body code.long {
    display: block;
    max-width: 100%;
    margin-top: 7px;
    padding: 8px 10px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.75;
}

.table-wrap {
    overflow-x: auto;
    border-style: solid;
    border-width: 15px 15px 18px 15px;
    border-image-source: var(--ore-form);
    border-image-slice: 5 5 6 5 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    margin: 22px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 640px;
}

thead th {
    font-family: var(--font-pixel);
    font-size: 11.5px;
    font-weight: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: left;
    color: var(--gold);
    text-shadow: 2px 2px 0 #000;
    background: rgba(0,0,0,0.25);
    padding: 12px 16px;
    border-bottom: 3px solid #000;
    white-space: nowrap;
}

tbody td {
    padding: 12px 16px;
    border-bottom: 2px dotted rgba(255,255,255,0.08);
    vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(46, 211, 189, 0.05); }

td code { color: var(--gold); }

.code-card {
    margin: 20px 0;
    border-style: solid;
    border-width: 15px 15px 18px 15px;
    border-image-source: var(--ore-form);
    border-image-slice: 5 5 6 5 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
}

.code-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 0 10px;
    border-bottom: 3px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
}

.code-tab {
    font-family: var(--font-pixel);
    font-size: 11.5px;
    letter-spacing: 0.5px;
    line-height: 1;
    color: var(--text-muted);
    background: none;
    border: 2px solid transparent;
    padding: 7px 12px 6px;
    cursor: pointer;
    transition: color var(--transition);
}
.code-tab:hover { color: var(--text); }
.code-tab.is-active {
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.55);
    border-style: solid;
    border-width: 6px 9px 8px 9px;
    border-image-source: var(--ore-green);
    border-image-slice: 2 2 4 2 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    padding: 3px 6px 2px;
}

.code-file {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--turquoise);
    padding: 4px 8px 0 4px;
}

.code-head .spacer { flex: 1; }

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-pixel);
    font-size: 11px;
    letter-spacing: 0.5px;
    line-height: 1;
    color: #06302a;
    background: none;
    cursor: pointer;
    border-style: solid;
    border-width: 6px 9px 8px 9px;
    border-image-source: var(--ore-turquoise-title);
    border-image-slice: 2 2 5 2 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    transition: filter var(--transition);
}
.copy-btn:hover { filter: brightness(1.12); }
.copy-btn.is-copied { border-image-source: var(--ore-green); border-image-slice: 2 2 4 2 fill; color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,0.55); }

.code-body { display: none; }
.code-body.is-active { display: block; }

.code-body pre {
    margin: 0;
    padding: 14px 6px 2px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.65;
    color: #d5dde3;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.code-body pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    white-space: pre;
}

.tk-kw  { color: var(--eternal); }    
.tk-fn  { color: var(--lapis); }      
.tk-str { color: var(--green); }      
.tk-num { color: var(--gold); }       
.tk-cm  { color: var(--text-muted); font-style: italic; } 
.tk-var { color: var(--pink); }       

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.gallery-item { margin: 0; }

.gallery-item .frame {
    border-style: solid;
    border-width: 12px;
    border-image-source: var(--tex-panel);
    border-image-slice: 4 4 5 4 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    overflow: hidden;
    background: var(--bg-deep);
    cursor: zoom-in;
    transition: transform var(--transition), filter var(--transition);
}
.gallery-item .frame img { image-rendering: auto; }
.gallery-item .frame:hover { transform: translateY(-3px); filter: brightness(1.07); }

.gallery-item figcaption {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    padding: 0 2px;
}
.gallery-item figcaption strong { color: var(--text-soft); font-weight: 600; }

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    width: 44px; height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border-style: solid;
    border-width: 10px 10px 12px 10px;
    border-image-source: var(--ore-turquoise);
    border-image-slice: 4 4 5 4 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    transition: filter var(--transition);
}
.back-top:hover { border-image-source: var(--ore-turquoise-hover); }
.back-top img { width: 15px; height: 15px; image-rendering: pixelated; }
.back-top.is-visible { display: flex; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    padding: 40px;
    background: rgba(6, 8, 11, 0.92);
    backdrop-filter: blur(4px);
    cursor: zoom-out;
}
.lightbox.is-open { display: flex; }

.lightbox img {
    max-width: min(1200px, 92vw);
    max-height: 82vh;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.lightbox-caption {
    font-size: 14px;
    color: var(--text-soft);
    text-align: center;
    max-width: 720px;
}

.lightbox-close {
    position: absolute;
    top: 18px; right: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-pixel);
    font-size: 13px;
    line-height: 1;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.55);
    background: none;
    cursor: pointer;
    border-style: solid;
    border-width: 8px 11px 10px 11px;
    border-image-source: var(--ore-red);
    border-image-slice: 4 4 5 4 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    transition: filter var(--transition);
}
.lightbox-close:hover { border-image-source: var(--ore-red-hover); border-image-slice: 2 2 5 2 fill; }
.lightbox-close img { width: 15px; height: 15px; image-rendering: pixelated; }

.footer {
    border-top: 1px solid var(--border-soft);
    padding: 26px 32px;
    font-size: 13px;
    color: var(--text-muted);
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-soft);
}
.footer-top .footer-brand { font-family: var(--font-pixel); font-size: 12px; letter-spacing: 0.5px; color: var(--text-soft); }
.footer-line { color: var(--text-soft); font-size: 14px; }
.footer-line b {
    font-family: var(--font-pixel);
    font-weight: normal;
    font-size: 12.5px;
    letter-spacing: 0.5px;
    color: var(--text);
}
.footer-line a { color: var(--turquoise); }
.footer-line a:hover { color: var(--accent); }
.footer-chip {
    font-family: var(--font-mono);
    font-size: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1px 8px;
    background: var(--bg-inset);
    color: var(--text-soft);
}
.footer-legal { margin-top: 7px; font-size: 13px; color: var(--text-muted); }

@media (max-width: 960px) {
    .nav-burger { display: flex; }
    .nav-product { display: none; }

    .sidebar {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        bottom: 0;
        z-index: 90;
        width: min(300px, 82vw);
        height: auto;
        background: var(--bg-deep);
        border-right: 1px solid var(--border-soft);
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        padding: 24px 12px 24px 20px;
    }
    .sidebar.is-open { transform: none; }

    .sidebar-backdrop {
        position: fixed;
        inset: var(--nav-h) 0 0 0;
        z-index: 80;
        background: rgba(6, 8, 11, 0.6);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }
    .sidebar-backdrop.is-open { opacity: 1; pointer-events: auto; }

    .content { padding: 28px 18px 80px; }
    .hero { padding: 30px 22px; }
    .hero h1 { font-size: 24px; }
    .section-title { font-size: 16px; }
    .step { flex-direction: column; gap: 10px; }
    .lightbox { padding: 16px; }
    .back-top { right: 14px; bottom: 14px; }
}

@media (min-width: 961px) {
    .sidebar-backdrop { display: none; }
}

/* =========================================================
   DEMO layer - only used by the public preview build.
   Everything here marks what is locked behind a purchase;
   delete this block when generating a real product guide.
   ========================================================= */

/* red ore-UI button as a 9-slice; slice from red_default_button.json
   nineslice_size [4,4,4,5] (Bedrock l,t,r,b) -> CSS t r b l = 4 4 5 4 */
.nav-demo {
    border-style: solid;
    border-width: 5px 6px 9px 6px;
    border-image-source: var(--ore-red-bg);
    border-image-slice: 2 2 5 2 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    background: none;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}

.demo-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 26px;
    padding: 8px 10px 4px;
    background: none;
    border-style: solid;
    border-width: 6px 6px 14px 6px;
    border-image-source: var(--ore-red-bg);
    border-image-slice: 2 2 5 2 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.55);
}
.demo-banner-tag {
    flex: none;
    font-family: var(--font-pixel);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 1px;
    color: #fff;
    padding: 3px 5px;
    border-style: solid;
    border-width: 6px 8px 10px 8px;
    border-image-source: var(--ore-red);
    border-image-slice: 4 4 5 4 fill;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}

/* ---- sidebar: locked entries ---- */

.sidebar-title-locked { margin-top: 18px; color: var(--text-muted); }

.sidebar-lock {
    display: block;
    padding: 7px 12px;
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.55;
    cursor: not-allowed;
}
.sidebar-lock::before { content: "🔒 "; font-size: 11px; }

/* ---- locked steps and inline redactions ---- */

.step.is-locked { opacity: 0.92; }
.step.is-locked h3 { color: var(--text-soft); }

.lock-chip {
    font-family: var(--font-pixel);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 3px;
    padding: 2px 6px;
    margin-left: 8px;
    vertical-align: 2px;
}
.lock-chip::before { content: "🔒 "; }

.lock-line { font-family: var(--font-mono); font-size: 13px; }

/* a redacted code span: same shape as the real value, unreadable */
.code-locked {
    display: inline-block;
    min-width: 76px;
    background: repeating-linear-gradient(
        45deg, #2a323d, #2a323d 4px, #1e242d 4px, #1e242d 8px
    );
    border: 1px solid var(--border);
    border-radius: 3px;
}

.lock-hint { color: var(--text-muted); font-size: 13px; font-style: italic; }

/* ---- locked pins and notes ---- */

.hotspot-locked {
    background: var(--red);
    color: #fff;
    font-size: 11px;
}
.hotspot-locked:hover,
.hotspot-locked.is-active {
    background: var(--red);
    color: #fff;
}

.legend-note.is-locked { border-image-source: var(--ore-red); border-image-slice: 4 4 5 4 fill; }
.legend-note.is-locked .legend-note-num { background: var(--red); color: #fff; }

/* ---- the closing "what you get" block ---- */

.locked-preview {
    position: relative;
    margin: 0 0 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.locked-preview img {
    display: block;
    width: 100%;
    filter: blur(7px) saturate(0.6) brightness(0.55);
    transform: scale(1.06);
}
.locked-preview figcaption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-pixel);
    font-size: 15px;
    color: #fff;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
}
.locked-preview-icon { font-size: 30px; }

.locked-list {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}
.locked-list li {
    position: relative;
    padding: 9px 0 9px 30px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}
.locked-list li:last-child { border-bottom: 0; }
.locked-list li::before {
    content: "🔒";
    position: absolute;
    left: 4px;
    top: 9px;
    font-size: 12px;
    opacity: 0.75;
}
.locked-list b { color: var(--text); }

/* ---- blurred "locked" zone -------------------------------------------------
   The markup underneath is deliberate filler (see the comment in index.html),
   so defeating the blur in devtools reveals nothing real. The blur is there to
   show the shape of the missing content, not to protect it.                  */

.locked-zone {
    position: relative;
    margin: 6px 0 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.locked-zone-content {
    filter: blur(6px);
    transform: scale(1.02);
    padding: 18px;
    opacity: 0.75;
    user-select: none;
    pointer-events: none;
}

.locked-zone-veil {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    text-align: center;
    background: rgba(10, 12, 16, 0.55);
}
.locked-zone-veil strong {
    font-family: var(--font-pixel);
    font-size: 14px;
    color: #fff;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
}
.locked-zone-veil span:last-child {
    max-width: 460px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-soft);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}
.locked-zone-icon { font-size: 26px; }

@media (max-width: 640px) {
    .locked-zone-veil strong { font-size: 12px; }
    .locked-zone-veil span:last-child { font-size: 12px; }
}
