/* ==========================================================================
   Falling Pickaxe .bet — Voxel Design System
   Zero dependency. Self-hosted fonts. No external requests.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTS
   -------------------------------------------------------------------------- */

@font-face {
    font-family: 'Pixel';
    src: url('/fonts/PressStart2P-latin.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Pixel';
    src: url('/fonts/PressStart2P-latin-ext.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   2. TOKENS
   -------------------------------------------------------------------------- */

:root {
    /* Cave palette */
    --bedrock:    #08090d;
    --stone-900:  #101219;
    --stone-800:  #171a24;
    --stone-700:  #1f2430;
    --stone-600:  #2a3040;
    --stone-500:  #394155;
    --line:       #333b4d;
    --line-soft:  #262c3a;

    /* Ink */
    --txt:        #eaeef7;
    --txt-2:      #a7b0c6;
    --txt-3:      #6f7a92;

    /* Ore accents */
    --grass:      #63c132;
    --grass-d:    #3f8c1e;
    --grass-l:    #8ee05c;
    --emerald:    #17c96a;
    --diamond:    #4ce0e0;
    --gold:       #ffb020;
    --redstone:   #ff4b4b;
    --copper:     #e07a44;
    --lapis:      #3f6fdb;
    --dirt:       #8b5a33;
    --dirt-d:     #5d3b20;
    --slime:      #7ddc4d;
    --tnt:        #d33a2c;

    /* Structure */
    --edge:       3px;
    --gap:        clamp(1rem, 2.5vw, 1.75rem);
    --radius:     0;
    --max:        1200px;
    --max-narrow: 860px;
    --header-h:   68px;

    /* Bevel — the core voxel look */
    --bevel: inset 3px 3px 0 rgba(255, 255, 255, .10), inset -3px -3px 0 rgba(0, 0, 0, .50);
    --bevel-sm: inset 2px 2px 0 rgba(255, 255, 255, .10), inset -2px -2px 0 rgba(0, 0, 0, .45);
    --bevel-in: inset 3px 3px 0 rgba(0, 0, 0, .55), inset -3px -3px 0 rgba(255, 255, 255, .07);

    --shadow-hard: 0 6px 0 rgba(0, 0, 0, .55);
    --txt-shadow: 2px 2px 0 rgba(0, 0, 0, .75);

    --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --------------------------------------------------------------------------
   3. RESET
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--txt-2);
    background: var(--bedrock);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--grass-l); text-decoration: none; }
a:hover { color: var(--grass); }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

table { border-collapse: collapse; width: 100%; }

::selection { background: var(--grass); color: #04120a; }

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--diamond);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   4. TYPE
   -------------------------------------------------------------------------- */

.px {
    font-family: 'Pixel', 'Courier New', monospace;
    letter-spacing: .02em;
    text-shadow: var(--txt-shadow);
    line-height: 1.55;
    color: var(--txt);
}

h1, h2, h3, h4 {
    font-family: 'Pixel', 'Courier New', monospace;
    font-weight: 400;
    color: var(--txt);
    text-shadow: var(--txt-shadow);
    line-height: 1.5;
    letter-spacing: .01em;
}

h1 { font-size: clamp(1.5rem, 5vw, 3rem); }
h2 { font-size: clamp(1.05rem, 2.9vw, 1.65rem); }
h3 { font-size: clamp(.85rem, 2.1vw, 1.05rem); }
h4 { font-size: .8rem; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

strong { color: var(--txt); font-weight: 700; }
em { color: var(--diamond); font-style: normal; }

.lead {
    font-size: clamp(1rem, 1.9vw, 1.15rem);
    color: var(--txt-2);
}

/* --------------------------------------------------------------------------
   5. LAYOUT
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.container--narrow { max-width: var(--max-narrow); }

.section {
    position: relative;
    padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--alt { background: var(--stone-900); }

.section--alt::before,
.section--alt::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    background-image:
        linear-gradient(90deg, var(--line-soft) 50%, transparent 0);
    background-size: 16px 8px;
    opacity: .9;
}
.section--alt::before { top: 0; }
.section--alt::after { bottom: 0; }

.section__head {
    max-width: 720px;
    margin: 0 auto clamp(2rem, 5vw, 3rem);
    text-align: center;
}

.section__head p { margin-top: 1rem; }

.eyebrow {
    display: inline-block;
    font-family: 'Pixel', monospace;
    font-size: .55rem;
    letter-spacing: .18em;
    color: var(--grass);
    text-shadow: var(--txt-shadow);
    margin-bottom: 1rem;
    padding: .45rem .7rem;
    background: rgba(99, 193, 50, .1);
    border: 2px solid rgba(99, 193, 50, .3);
}

/* Pixel grid backdrop */
.grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(0deg, transparent 0 47px, rgba(255, 255, 255, .022) 47px 48px),
        repeating-linear-gradient(90deg, transparent 0 47px, rgba(255, 255, 255, .022) 47px 48px);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* --------------------------------------------------------------------------
   6. PANELS & BLOCKS
   -------------------------------------------------------------------------- */

.panel {
    position: relative;
    background: var(--stone-800);
    border: var(--edge) solid var(--bedrock);
    box-shadow: var(--bevel);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.panel--sunken {
    background: var(--stone-900);
    box-shadow: var(--bevel-in);
}

/* Pixel-art ore block swatch */
.blk {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    background: #6d6d6d;
    border: 2px solid var(--bedrock);
    box-shadow: var(--bevel-sm);
    image-rendering: pixelated;
    overflow: hidden;
}

.blk::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, .18) 25%, transparent 0 50%, rgba(255, 255, 255, .07) 0 75%, transparent 0),
        linear-gradient(0deg, rgba(0, 0, 0, .14) 25%, transparent 0 50%, rgba(255, 255, 255, .05) 0 75%, transparent 0);
    background-size: 10px 10px, 10px 10px;
}

/* ore specks drawn as pure box-shadow pixels */
.blk::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    background: transparent;
}

.blk--dirt   { background: #7d5233; }
.blk--dirt::after   { background: #8f6039; box-shadow: 16px 4px 0 #6b4529, 6px 20px 0 #96683f, 22px 22px 0 #6b4529; }
.blk--stone  { background: #7a7a7a; }
.blk--stone::after  { background: #8c8c8c; box-shadow: 18px 6px 0 #666, 4px 22px 0 #909090, 24px 20px 0 #666; }
.blk--copper { background: #7a7a7a; }
.blk--copper::after { background: var(--copper); box-shadow: 18px 6px 0 var(--copper), 6px 22px 0 #c96b3a, 24px 22px 0 var(--copper); }
.blk--redstone { background: #7a7a7a; }
.blk--redstone::after { background: var(--redstone); box-shadow: 18px 6px 0 var(--redstone), 6px 22px 0 #d63a3a, 24px 22px 0 var(--redstone); }
.blk--gold   { background: #7a7a7a; }
.blk--gold::after   { background: var(--gold); box-shadow: 18px 6px 0 var(--gold), 6px 22px 0 #e09a12, 24px 22px 0 var(--gold); }
.blk--diamond { background: #7a7a7a; }
.blk--diamond::after { background: var(--diamond); box-shadow: 18px 6px 0 var(--diamond), 6px 22px 0 #35c4c4, 24px 22px 0 var(--diamond); }
.blk--emerald { background: #7a7a7a; }
.blk--emerald::after { background: var(--emerald); box-shadow: 18px 6px 0 var(--emerald), 6px 22px 0 #10a856, 24px 22px 0 var(--emerald); }
.blk--tnt    { background: var(--tnt); }
.blk--tnt::after    { top: 16px; left: 0; width: 40px; height: 10px; background: #f2f2f2; box-shadow: none; }
.blk--slime  { background: rgba(125, 220, 77, .55); }
.blk--slime::after  { top: 10px; left: 10px; width: 20px; height: 20px; background: rgba(125, 220, 77, .9); box-shadow: none; }
.blk--wood   { background: #9a6b3c; }
.blk--wood::after   { top: 0; left: 14px; width: 10px; height: 40px; background: #7d5330; box-shadow: none; }

/* icon sitting inside a block swatch */
.blk > svg {
    position: absolute;
    inset: 0;
    margin: auto;
    z-index: 2;
    width: 22px;
    height: 22px;
    color: #fff;
    filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .55));
}

.blk--sm { width: 30px; height: 30px; flex-basis: 30px; }
.blk--sm::before { background-size: 7px 7px, 7px 7px; }
.blk--sm::after { top: 4px; left: 4px; width: 6px; height: 6px; }

/* --------------------------------------------------------------------------
   7. BUTTONS
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    font-family: 'Pixel', monospace;
    font-size: .62rem;
    letter-spacing: .06em;
    text-align: center;
    padding: 1rem 1.4rem;
    border: var(--edge) solid var(--bedrock);
    color: #fff;
    text-shadow: var(--txt-shadow);
    background: var(--stone-600);
    box-shadow: var(--bevel), 0 5px 0 rgba(0, 0, 0, .5);
    transition: transform .08s var(--ease), box-shadow .08s var(--ease), background .15s var(--ease);
    will-change: transform;
    cursor: pointer;
}

.btn:hover { color: #fff; }

.btn:active {
    transform: translateY(5px);
    box-shadow: var(--bevel), 0 0 0 rgba(0, 0, 0, .5);
}

.btn--primary {
    background: var(--grass);
    color: #08170a;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, .18);
    box-shadow: var(--bevel), 0 5px 0 var(--grass-d);
}
.btn--primary:hover { background: var(--grass-l); color: #08170a; }
.btn--primary:active { box-shadow: var(--bevel), 0 0 0 var(--grass-d); }

.btn--demo {
    background: var(--stone-600);
    color: var(--diamond);
}
.btn--demo:hover { background: var(--stone-500); color: var(--diamond); }

.btn--lg { font-size: .72rem; padding: 1.2rem 1.8rem; }
.btn--sm { font-size: .55rem; padding: .8rem 1rem; }
.btn--block { width: 100%; }

.btn__ico { width: 16px; height: 16px; flex: 0 0 16px; }

/* --------------------------------------------------------------------------
   8. DEPTH BAR (scroll progress)
   -------------------------------------------------------------------------- */

.depthbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 0, 0, .5);
    z-index: 120;
}

.depthbar__fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--dirt), var(--grass) 40%, var(--gold) 70%, var(--diamond));
    transform-origin: 0 50%;
}

/* --------------------------------------------------------------------------
   9. HEADER
   -------------------------------------------------------------------------- */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(12, 14, 20, .88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--bedrock);
    box-shadow: 0 3px 0 rgba(0, 0, 0, .35);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex: 0 0 auto;
    margin-right: auto;
}

.brand__mark {
    width: 36px;
    height: 36px;
    border: 2px solid var(--bedrock);
    box-shadow: var(--bevel-sm);
    background: var(--stone-700);
    object-fit: cover;
}

.brand__name {
    font-family: 'Pixel', monospace;
    font-size: .68rem;
    color: var(--txt);
    text-shadow: var(--txt-shadow);
    letter-spacing: .02em;
    white-space: nowrap;
}
.brand__name span { color: var(--grass); }

.nav { display: flex; align-items: center; gap: .25rem; }

.nav__link {
    font-family: 'Pixel', monospace;
    font-size: .55rem;
    color: var(--txt-2);
    padding: .7rem .65rem;
    text-shadow: var(--txt-shadow);
    border: 2px solid transparent;
    transition: color .15s, background .15s, border-color .15s;
}

.nav__link:hover {
    color: var(--txt);
    background: rgba(255, 255, 255, .05);
    border-color: var(--line);
}

/* Depth readout */
.depth-hud {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-family: 'Pixel', monospace;
    font-size: .55rem;
    color: var(--gold);
    text-shadow: var(--txt-shadow);
    padding: .5rem .6rem;
    background: rgba(0, 0, 0, .4);
    border: 2px solid var(--line);
    box-shadow: var(--bevel-in);
    white-space: nowrap;
}
.depth-hud svg { width: 12px; height: 12px; }

/* Language switch */
.lang {
    display: flex;
    border: 2px solid var(--line);
    box-shadow: var(--bevel-in);
    background: rgba(0, 0, 0, .4);
}

.lang a {
    font-family: 'Pixel', monospace;
    font-size: .55rem;
    padding: .5rem .55rem;
    color: var(--txt-3);
    text-shadow: var(--txt-shadow);
    transition: color .15s, background .15s;
}
.lang a:hover { color: var(--txt); background: rgba(255, 255, 255, .06); }
.lang a[aria-current="page"] { color: #08170a; background: var(--grass); text-shadow: none; }

.burger {
    display: none;
    width: 42px;
    height: 42px;
    border: 2px solid var(--bedrock);
    background: var(--stone-700);
    box-shadow: var(--bevel-sm);
    position: relative;
}
.burger span {
    position: absolute;
    left: 9px;
    width: 20px;
    height: 3px;
    background: var(--txt);
    transition: transform .2s var(--ease), opacity .15s;
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 25px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--stone-900);
    border-bottom: 3px solid var(--bedrock);
    padding: 1rem clamp(1rem, 4vw, 2rem) 1.5rem;
    transform: translateY(-120%);
    transition: transform .25s var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
}
.drawer.is-open { transform: translateY(0); }

.drawer a.drawer__link {
    display: block;
    font-family: 'Pixel', monospace;
    font-size: .62rem;
    color: var(--txt-2);
    padding: .95rem .5rem;
    border-bottom: 2px solid var(--line-soft);
    text-shadow: var(--txt-shadow);
}
.drawer a.drawer__link:hover { color: var(--grass); }
.drawer .btn { margin-top: 1.1rem; }

.drawer__lang { display: flex; gap: .5rem; margin-top: 1rem; }
.drawer__lang a {
    flex: 1;
    text-align: center;
    font-family: 'Pixel', monospace;
    font-size: .55rem;
    padding: .7rem;
    border: 2px solid var(--line);
    color: var(--txt-3);
}
.drawer__lang a[aria-current="page"] { background: var(--grass); color: #08170a; border-color: var(--bedrock); }

/* --------------------------------------------------------------------------
   10. HERO
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
    background:
        linear-gradient(180deg, #0a0c11 0%, #12151d 45%, #0f121a 100%);
}

/* geological strata behind the hero */
.strata {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background:
        linear-gradient(180deg,
            rgba(139, 90, 51, .30) 0%,
            rgba(139, 90, 51, .12) 14%,
            rgba(122, 122, 122, .10) 30%,
            rgba(255, 75, 75, .07) 52%,
            rgba(255, 176, 32, .07) 70%,
            rgba(76, 224, 224, .07) 86%,
            rgba(23, 201, 106, .09) 100%);
}

.strata::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent 0 47px, rgba(0, 0, 0, .35) 47px 48px),
        repeating-linear-gradient(90deg, transparent 0 47px, rgba(0, 0, 0, .35) 47px 48px);
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr .85fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }

.tag {
    font-family: 'Pixel', monospace;
    font-size: .5rem;
    letter-spacing: .1em;
    padding: .5rem .6rem;
    border: 2px solid var(--bedrock);
    box-shadow: var(--bevel-sm);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, .5);
}
.tag--new { background: var(--emerald); color: #04170c; }
.tag--hot { background: var(--tnt); color: #fff; }
.tag--dev { background: var(--stone-600); color: var(--txt-2); }

.hero h1 {
    margin-bottom: 1.2rem;
    background: linear-gradient(180deg, #fff 40%, #9fe07c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .8));
    text-shadow: none;
}

.hero__sub {
    font-size: clamp(.95rem, 1.8vw, 1.08rem);
    max-width: 56ch;
    margin-bottom: 1.6rem;
}

/* inventory stat slots */
.slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    margin-bottom: 1.75rem;
}

.slot {
    background: var(--stone-800);
    border: 2px solid var(--bedrock);
    box-shadow: var(--bevel-in);
    padding: .75rem .6rem;
    text-align: center;
}

.slot__k {
    display: block;
    font-family: 'Pixel', monospace;
    font-size: .45rem;
    letter-spacing: .1em;
    color: var(--txt-3);
    margin-bottom: .5rem;
}

.slot__v {
    display: block;
    font-family: 'Pixel', monospace;
    font-size: .68rem;
    color: var(--gold);
    text-shadow: var(--txt-shadow);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Game preview frame */
.preview {
    position: relative;
    border: var(--edge) solid var(--bedrock);
    box-shadow: var(--bevel), 0 8px 0 rgba(0, 0, 0, .45);
    background: var(--stone-800);
    padding: 10px;
}

.preview__img {
    width: 100%;
    display: block;
    border: 2px solid var(--bedrock);
    image-rendering: auto;
}

.preview__label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .55rem .65rem;
    background: rgba(8, 9, 13, .85);
    border: 2px solid var(--line);
    font-family: 'Pixel', monospace;
    font-size: .5rem;
    color: var(--txt-2);
    text-shadow: var(--txt-shadow);
}
.preview__label b { color: var(--diamond); font-weight: 400; }

/* falling pickaxe animation */
.faller {
    position: absolute;
    top: -60px;
    right: 14%;
    width: 46px;
    z-index: 2;
    pointer-events: none;
    animation: fall 5.5s linear infinite;
}

@keyframes fall {
    0%   { transform: translateY(-80px) rotate(0deg); opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { transform: translateY(560px) rotate(400deg); opacity: 0; }
}

.faller--2 { right: 42%; animation-duration: 7s; animation-delay: 1.8s; width: 34px; opacity: .55; }
.faller--3 { right: 72%; animation-duration: 6.2s; animation-delay: 3.4s; width: 28px; opacity: .38; }

/* --------------------------------------------------------------------------
   11. TRUST STRIP
   -------------------------------------------------------------------------- */

.strip {
    border-top: 3px solid var(--bedrock);
    border-bottom: 3px solid var(--bedrock);
    background: var(--stone-900);
    padding: 1.1rem 0;
}

.strip__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem clamp(1.25rem, 4vw, 3rem);
    align-items: center;
}

.strip__item {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-family: 'Pixel', monospace;
    font-size: .52rem;
    color: var(--txt-3);
    text-shadow: var(--txt-shadow);
}
.strip__item svg { width: 15px; height: 15px; color: var(--grass); flex: 0 0 15px; }

/* --------------------------------------------------------------------------
   12. STEPS
   -------------------------------------------------------------------------- */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.step {
    position: relative;
    background: var(--stone-800);
    border: var(--edge) solid var(--bedrock);
    box-shadow: var(--bevel);
    padding: 1.5rem 1.25rem 1.25rem;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}

.step:hover { transform: translateY(-4px); box-shadow: var(--bevel), 0 6px 0 rgba(0, 0, 0, .45); }

.step__n {
    position: absolute;
    top: -14px;
    left: 1.25rem;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    font-family: 'Pixel', monospace;
    font-size: .62rem;
    color: #08170a;
    background: var(--grass);
    border: 2px solid var(--bedrock);
    box-shadow: var(--bevel-sm);
}

.step h3 { margin: .6rem 0 .6rem; }
.step p { font-size: .93rem; }

/* --------------------------------------------------------------------------
   13. PICKAXE TIERS
   -------------------------------------------------------------------------- */

.tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.tier {
    background: var(--stone-800);
    border: var(--edge) solid var(--bedrock);
    box-shadow: var(--bevel);
    padding: 1.4rem 1.25rem;
    text-align: center;
    transition: transform .18s var(--ease);
}
.tier:hover { transform: translateY(-4px); }

.tier__ico { margin: 0 auto .9rem; width: 52px; }

.tier h3 { margin-bottom: .35rem; }

.tier__hp {
    font-family: 'Pixel', monospace;
    font-size: .62rem;
    color: var(--gold);
    text-shadow: var(--txt-shadow);
    margin-bottom: .8rem;
    display: block;
}

/* Minecraft-style durability bar */
.dura {
    height: 12px;
    background: #000;
    border: 2px solid var(--bedrock);
    box-shadow: var(--bevel-in);
    margin-bottom: .9rem;
    overflow: hidden;
}
.dura__fill { height: 100%; }
.dura--wood  .dura__fill { width: 25%;  background: var(--redstone); }
.dura--stone .dura__fill { width: 37.5%; background: var(--gold); }
.dura--iron  .dura__fill { width: 50%;  background: var(--grass); }
.dura--diam  .dura__fill { width: 100%; background: var(--diamond); }

.tier p { font-size: .88rem; color: var(--txt-3); }

/* --------------------------------------------------------------------------
   14. TABLES
   -------------------------------------------------------------------------- */

.table-wrap {
    overflow-x: auto;
    border: var(--edge) solid var(--bedrock);
    box-shadow: var(--bevel);
    background: var(--stone-800);
    -webkit-overflow-scrolling: touch;
}

.tbl { min-width: 560px; font-size: .93rem; }

.tbl thead th {
    font-family: 'Pixel', monospace;
    font-size: .5rem;
    letter-spacing: .08em;
    color: var(--txt);
    text-shadow: var(--txt-shadow);
    background: var(--stone-600);
    padding: 1rem .9rem;
    text-align: left;
    border-bottom: 3px solid var(--bedrock);
    white-space: nowrap;
}

.tbl tbody td {
    padding: .8rem .9rem;
    border-bottom: 2px solid var(--line-soft);
    color: var(--txt-2);
    vertical-align: middle;
}

.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:nth-child(odd) { background: rgba(255, 255, 255, .018); }
.tbl tbody tr:hover { background: rgba(99, 193, 50, .07); }

.tbl .cell-blk { display: flex; align-items: center; gap: .7rem; }
.tbl .cell-blk strong { color: var(--txt); white-space: nowrap; }

.mult {
    font-family: 'Pixel', monospace;
    font-size: .6rem;
    color: var(--gold);
    text-shadow: var(--txt-shadow);
    white-space: nowrap;
}
.mult--zero { color: var(--txt-3); }
.mult--top { color: var(--emerald); }

.depth-cell { font-family: 'Pixel', monospace; font-size: .55rem; color: var(--txt-3); }

/* --------------------------------------------------------------------------
   15. FEATURE CARDS
   -------------------------------------------------------------------------- */

.feats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feat {
    display: flex;
    gap: 1.1rem;
    background: var(--stone-800);
    border: var(--edge) solid var(--bedrock);
    box-shadow: var(--bevel);
    padding: 1.4rem;
    transition: transform .18s var(--ease);
}
.feat:hover { transform: translateY(-4px); }

.feat__body h3 { margin-bottom: .5rem; }
.feat__body p { font-size: .93rem; margin: 0; }

/* --------------------------------------------------------------------------
   16. PROS / CONS
   -------------------------------------------------------------------------- */

.pc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pc__col {
    border: var(--edge) solid var(--bedrock);
    box-shadow: var(--bevel);
    background: var(--stone-800);
    overflow: hidden;
}

.pc__head {
    font-family: 'Pixel', monospace;
    font-size: .6rem;
    padding: .95rem 1.1rem;
    text-shadow: var(--txt-shadow);
    border-bottom: 3px solid var(--bedrock);
}
.pc__head--pro { background: rgba(23, 201, 106, .18); color: var(--emerald); }
.pc__head--con { background: rgba(255, 75, 75, .15); color: var(--redstone); }

.pc__list { padding: 1.1rem; display: grid; gap: .8rem; }

.pc__item {
    display: flex;
    gap: .7rem;
    font-size: .93rem;
    line-height: 1.6;
}

.pc__item::before {
    content: '';
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    margin-top: .35rem;
    border: 2px solid var(--bedrock);
}
.pc__col--pro .pc__item::before { background: var(--emerald); }
.pc__col--con .pc__item::before { background: var(--redstone); }

/* --------------------------------------------------------------------------
   17. GALLERY
   -------------------------------------------------------------------------- */

.shots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.shot {
    border: var(--edge) solid var(--bedrock);
    box-shadow: var(--bevel);
    background: var(--stone-800);
    padding: 8px;
    overflow: hidden;
}

.shot img {
    width: 100%;
    border: 2px solid var(--bedrock);
    transition: transform .35s var(--ease);
}
.shot:hover img { transform: scale(1.04); }

.shot figcaption {
    font-size: .8rem;
    color: var(--txt-3);
    padding: .7rem .3rem .2rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   18. INFO BOX / QUOTE
   -------------------------------------------------------------------------- */

.note {
    display: flex;
    gap: 1rem;
    padding: 1.2rem 1.3rem;
    background: rgba(99, 193, 50, .07);
    border: 2px solid rgba(99, 193, 50, .28);
    border-left: 8px solid var(--grass);
    margin: 1.75rem 0;
    font-size: .95rem;
}
.note--warn {
    background: rgba(255, 176, 32, .07);
    border-color: rgba(255, 176, 32, .28);
    border-left-color: var(--gold);
}
.note svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--grass); margin-top: .2rem; }
.note--warn svg { color: var(--gold); }

.quote {
    background: var(--stone-900);
    border: var(--edge) solid var(--bedrock);
    box-shadow: var(--bevel-in);
    padding: 1.4rem;
    margin: 1.5rem 0;
    font-size: .97rem;
    font-style: italic;
    color: var(--txt-2);
}
.quote cite {
    display: block;
    margin-top: .9rem;
    font-family: 'Pixel', monospace;
    font-size: .5rem;
    font-style: normal;
    color: var(--grass);
    text-shadow: var(--txt-shadow);
}

/* Studio card */
.studio { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }

.studio__id { text-align: center; }
.studio__logo {
    width: 92px;
    margin: 0 auto 1rem;
    border: 2px solid var(--bedrock);
    box-shadow: var(--bevel-sm);
    background: var(--stone-700);
    padding: 8px;
}
.studio__facts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1rem; }

/* --------------------------------------------------------------------------
   19. FAQ
   -------------------------------------------------------------------------- */

.faq { display: grid; gap: .7rem; }

.faq__item {
    background: var(--stone-800);
    border: var(--edge) solid var(--bedrock);
    box-shadow: var(--bevel);
}

.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    text-align: left;
    padding: 1.15rem 1.25rem;
    font-family: 'Pixel', monospace;
    font-size: .62rem;
    line-height: 1.6;
    color: var(--txt);
    text-shadow: var(--txt-shadow);
    transition: color .15s;
}
.faq__q:hover { color: var(--grass-l); }

.faq__chev {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: var(--grass);
    transition: transform .25s var(--ease);
}
.faq__item.is-open .faq__chev { transform: rotate(180deg); }

.faq__a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .28s var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

.faq__a > div { overflow: hidden; }
.faq__a p {
    font-size: .95rem;
    margin: 0 1.25rem 1.3rem;
    padding-top: 1.1rem;
    border-top: 2px solid var(--line-soft);
}

/* --------------------------------------------------------------------------
   20. PROSE (article body)
   -------------------------------------------------------------------------- */

.prose h2 { margin: 2.5rem 0 1.1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.9rem 0 .8rem; color: var(--grass-l); }
.prose p { font-size: 1rem; }
.prose ul { margin: 0 0 1.2rem 0; padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--grass); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   21. FINAL CTA
   -------------------------------------------------------------------------- */

.finale {
    position: relative;
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
    background: linear-gradient(180deg, var(--stone-800), var(--stone-900));
    border: var(--edge) solid var(--bedrock);
    box-shadow: var(--bevel), 0 8px 0 rgba(0, 0, 0, .4);
    overflow: hidden;
}

.finale h2 { margin-bottom: 1rem; }
.finale p { max-width: 52ch; margin: 0 auto 1.75rem; }
.finale .hero__actions { justify-content: center; }

.finale__blocks {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   22. FOOTER
   -------------------------------------------------------------------------- */

.footer {
    background: var(--stone-900);
    border-top: 3px solid var(--bedrock);
    padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
    font-size: .9rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--line-soft);
}

.footer h4 {
    font-size: .55rem;
    letter-spacing: .1em;
    color: var(--grass);
    margin-bottom: 1rem;
}

.footer ul { list-style: none; display: grid; gap: .6rem; }
.footer li a { color: var(--txt-3); font-size: .88rem; }
.footer li a:hover { color: var(--txt); }

.footer__about p { color: var(--txt-3); font-size: .88rem; margin-top: .9rem; max-width: 40ch; }

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    padding: 1.75rem 0;
    border-bottom: 2px solid var(--line-soft);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .8rem;
    border: 2px solid var(--line);
    background: rgba(0, 0, 0, .3);
    font-family: 'Pixel', monospace;
    font-size: .45rem;
    letter-spacing: .06em;
    color: var(--txt-3);
    text-shadow: var(--txt-shadow);
}
.badge:hover { color: var(--txt); border-color: var(--grass); }
.badge--age { color: var(--redstone); border-color: rgba(255, 75, 75, .45); }

.footer__legal { padding-top: 1.75rem; }
.footer__legal p { font-size: .8rem; color: var(--txt-3); line-height: 1.75; }
.footer__legal a { color: var(--txt-2); text-decoration: underline; }

/* --------------------------------------------------------------------------
   23. STICKY HOTBAR (mobile CTA)
   -------------------------------------------------------------------------- */

.hotbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: none;
    padding: .6rem clamp(.75rem, 3vw, 1rem) calc(.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 12, 17, .95);
    border-top: 3px solid var(--bedrock);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateY(120%);
    transition: transform .28s var(--ease);
}
.hotbar.is-visible { transform: translateY(0); }

/* --------------------------------------------------------------------------
   24. DEMO MODAL
   -------------------------------------------------------------------------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(.5rem, 3vw, 2rem);
}
.modal.is-open { display: flex; }

.modal__veil { position: absolute; inset: 0; background: rgba(4, 5, 8, .9); }

.modal__box {
    position: relative;
    width: min(1000px, 100%);
    height: min(88vh, 780px);
    background: var(--stone-800);
    border: var(--edge) solid var(--bedrock);
    box-shadow: var(--bevel), 0 10px 0 rgba(0, 0, 0, .5);
    padding: 10px;
}

.modal__box iframe { width: 100%; height: 100%; border: 2px solid var(--bedrock); background: #000; }

.modal__close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--tnt);
    border: 3px solid var(--bedrock);
    box-shadow: var(--bevel-sm);
    color: #fff;
}
.modal__close svg { width: 18px; height: 18px; }
.modal__close:hover { background: #ef4a3c; }

/* --------------------------------------------------------------------------
   25. REVEAL ANIMATION
   -------------------------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(18px);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}

/* --------------------------------------------------------------------------
   26. RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; }
    .preview { max-width: 560px; margin: 0 auto; }
    .steps, .tiers { grid-template-columns: repeat(2, 1fr); }
    .studio { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nav, .depth-hud, .header .lang { display: none; }
    .burger { display: block; }
    .header__cta { display: none; }
    .hotbar { display: block; }
    body { padding-bottom: 82px; }
}

@media (max-width: 720px) {
    :root { --header-h: 60px; }
    .feats, .pc, .shots { grid-template-columns: 1fr; }
    .slots { grid-template-columns: repeat(2, 1fr); }
    .brand__name { font-size: .58rem; }
    .brand__mark { width: 30px; height: 30px; }
    .modal__box { height: 84vh; }
    .modal__close { top: -14px; right: -6px; width: 38px; height: 38px; }
    .faller { display: none; }
}

@media (max-width: 520px) {
    .steps, .tiers { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .btn { width: 100%; }
    .hero__actions { flex-direction: column; }
    .slot__v { font-size: .6rem; }
}

/* --------------------------------------------------------------------------
   27. MOTION / PRINT
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .faller { display: none; }
}

@media print {
    .header, .hotbar, .modal, .depthbar, .faller { display: none !important; }
    body { background: #fff; color: #000; }
}
