:root {
    --color-primary: #6b8e23;
    --color-secondary: #9acd32;
    --color-accent: #d4af37;
    --color-bg: #12180c;
    --color-text: #f4f1e4;
    --color-text-light: #c9c4b0;
    --color-border: #3d4a28;
    --color-card: #1a2412;
    --color-fill: #b6dc3c;
    --color-fill-hover: #d4f56a;
    --color-ink: #14200a;
    --ofw-header-h: 72px;
    --ofw-page-w: 1120px;
    --space-lg: 24px;
}

@media (max-width: 1100px) {
    :root { --ofw-header-h: 56px; }
}

@media (max-width: 480px) {
    :root { --ofw-header-h: 48px; }
}

[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

html, body {
    max-width: 100%;
    overflow-x: clip;
    margin: 0;
}

html { scroll-padding-top: var(--ofw-header-h); }

body {
    padding-top: var(--ofw-header-h);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: "Courier Prime", "Courier New", serif;
    font-size: 1.05rem;
    line-height: 1.55;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, .ofw-btn, .ofw-nav, .ofw-kicker, .ofw-score {
    font-family: "JetBrains Mono", ui-monospace, monospace;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; overflow-wrap: anywhere; }

h1 { font-size: clamp(1.55rem, 3.4vw, 2.45rem); }

h2 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }

h2::after {
    content: "";
    display: block;
    width: 3rem;
    height: 6px;
    margin-top: 0.35rem;
    background: repeating-linear-gradient(90deg, var(--color-accent) 0 6px, transparent 6px 10px);
}

p { margin: 0 0 1em; }

a:not(.ofw-btn) { color: var(--color-accent); }
a:not(.ofw-btn):visited { color: #e6c866; }
a:not(.ofw-btn):hover { color: var(--color-text); }

.ofw-container {
    width: 100%;
    max-width: var(--ofw-page-w);
    margin: 0 auto;
    padding-inline: 20px;
}

.ofw-measure { max-width: 760px; }

.ofw-section { padding-block: 56px; }

.ofw-kicker {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--color-accent);
    margin-bottom: 0.4rem;
}

.ofw-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--ofw-header-h);
    background: #12180c;
    box-shadow: 0 2px 0 #3d4a28;
}

.ofw-header--row {
    min-height: var(--ofw-header-h);
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 200px;
    align-items: center;
    gap: 8px;
}

.ofw-header--logo { display: flex; align-items: center; }

.ofw-header--logo svg {
    width: 190px;
    height: auto;
    display: block;
}

.ofw-nav {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 12px;
    min-width: 0;
}

.ofw-nav--link {
    color: #f4f1e4;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
}

.ofw-header a:not(.ofw-btn),
.ofw-header a:not(.ofw-btn):visited {
    color: #f4f1e4;
    text-decoration: none;
}

.ofw-header a:not(.ofw-btn):hover,
.ofw-nav--link__on {
    color: #d4af37;
}

.ofw-header--balance { display: block; }

.ofw-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    flex-shrink: 0;
    border: 1px solid #3d4a28;
    background: #12180c;
    color: #f4f1e4;
    cursor: pointer;
}

.ofw-burger span {
    display: block;
    flex: 0 0 2px;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.ofw-overlay,
.ofw-drawer { display: none; }

.ofw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 2px solid transparent;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    isolation: isolate;
    border-radius: 0;
}

a.ofw-btn--fill,
a.ofw-btn--fill:visited,
button.ofw-btn--fill {
    color: #14200a;
    background: #b6dc3c;
    border-color: #b6dc3c;
    box-shadow: 0 0 0 1px #d4af37, 0 0 16px rgba(212, 175, 55, 0.55);
}

a.ofw-btn--fill:hover,
a.ofw-btn--fill:focus-visible,
a.ofw-btn--fill:active,
button.ofw-btn--fill:hover,
button.ofw-btn--fill:focus-visible,
button.ofw-btn--fill:active {
    color: #14200a;
    background: #d4f56a;
    border-color: #d4f56a;
    box-shadow: 0 0 0 1px #fff1b0, 0 0 20px rgba(212, 175, 55, 0.75);
}

a.ofw-btn--ghost,
a.ofw-btn--ghost:visited,
button.ofw-btn--ghost {
    color: #f4f1e4;
    background: transparent;
    border-color: #f4f1e4;
    box-shadow: none;
}

a.ofw-btn--ghost:hover,
a.ofw-btn--ghost:focus-visible,
a.ofw-btn--ghost:active,
button.ofw-btn--ghost:hover,
button.ofw-btn--ghost:focus-visible,
button.ofw-btn--ghost:active {
    color: #14200a;
    background: #f4f1e4;
    border-color: #f4f1e4;
}

.ofw-header a.ofw-btn--fill,
.ofw-header a.ofw-btn--fill:visited,
.ofw-drawer a.ofw-btn--fill,
.ofw-drawer a.ofw-btn--fill:visited,
.ofw-hero a.ofw-btn--fill,
.ofw-hero a.ofw-btn--fill:visited,
.ofw-cta a.ofw-btn--fill,
.ofw-cta a.ofw-btn--fill:visited {
    color: #14200a;
    background: #b6dc3c;
}

.ofw-hero a.ofw-btn--fill:hover,
.ofw-hero a.ofw-btn--fill:focus-visible,
.ofw-cta a.ofw-btn--fill:hover,
.ofw-drawer a.ofw-btn--fill:hover {
    color: #14200a;
    background: #d4f56a;
}

.ofw-hero a.ofw-btn--ghost,
.ofw-hero a.ofw-btn--ghost:visited,
.ofw-cta a.ofw-btn--ghost,
.ofw-cta a.ofw-btn--ghost:visited {
    color: #f4f1e4;
    background: transparent;
    border-color: #f4f1e4;
}

.ofw-hero a.ofw-btn--ghost:hover,
.ofw-hero a.ofw-btn--ghost:focus-visible,
.ofw-cta a.ofw-btn--ghost:hover,
.ofw-cta a.ofw-btn--ghost:focus-visible {
    color: #14200a;
    background: #f4f1e4;
    border-color: #f4f1e4;
}

.ofw-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ofw-strip {
    margin: 0;
    padding: 8px 20px;
    background: #0e140a;
    color: #c9c4b0;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.78rem;
    border-bottom: 2px solid #3d4a28;
}

.ofw-hero {
    position: relative;
    background: #0e140a;
    padding-block: 48px 40px;
}

.ofw-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0 2px, transparent 2px 5px);
}

.ofw-hero--grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title device" "copy device";
    gap: 16px 40px;
    align-items: start;
}

.ofw-hero--title { grid-area: title; }
.ofw-hero--copy { grid-area: copy; }
.ofw-device { grid-area: device; justify-self: end; }

.ofw-device--frame {
    width: 220px;
    aspect-ratio: 9 / 19;
    background: #070a05;
    border: 3px solid #d4af37;
    border-radius: 28px;
    padding: 10px;
    box-shadow: 0 0 0 6px #1a2412;
}

.ofw-device--frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0b1208;
    border-radius: 18px;
}

.ofw-felt {
    background-color: #14321c;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 8px 8px;
}

.ofw-baize--row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
}

.ofw-pip {
    width: 56px;
    height: 78px;
    flex: 0 0 56px;
    border: 3px solid #f4f1e4;
    background: #1d4d32;
    color: #f4f1e4;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.ofw-pip--up { background: #f4f1e4; color: #14200a; }
.ofw-pip--red { color: #9d1c1c; }

.ofw-pip:hover,
.ofw-pip:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

.ofw-waste {
    min-height: 44px;
    margin: 8px 0 16px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
}

.ofw-timeline {
    position: relative;
    --rail: 28px;
    --gap: 32px;
}

.ofw-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--rail) / 2);
    width: 2px;
    background: var(--color-border);
}

.ofw-node {
    position: relative;
    margin-left: calc(var(--rail) + var(--gap));
    padding-block: 2rem;
    overflow: visible;
}

.ofw-node--marker {
    position: absolute;
    top: 2rem;
    left: calc(-1 * (var(--rail) / 2 + var(--gap)));
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 0;
    background: #d4af37;
    color: #14200a;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.75rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.ofw-card {
    position: relative;
    background: var(--color-card);
    color: var(--color-text);
    padding: 1.5rem 1.75rem;
    min-width: 0;
    border: 1px solid var(--color-border);
    -webkit-mask:
        radial-gradient(circle 10px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle 10px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
    mask:
        radial-gradient(circle 10px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle 10px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}

.ofw-card ul, .ofw-card ol, .ofw-card dl { margin: 0.4em 0 0; }

.ofw-score {
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1;
    color: #b6dc3c;
    margin: 0;
}

.ofw-score span {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 0.3rem;
}

.ofw-app--head {
    display: flex;
    gap: 16px;
    align-items: center;
    min-width: 0;
}

.ofw-app--icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    flex-shrink: 0;
    background: #0e140a;
}

.ofw-app--facts { padding-left: 1.1rem; }
.ofw-app--facts li { margin: 0.25em 0; }
.ofw-pack { overflow-wrap: anywhere; }

.ofw-chapter {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.ofw-stills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    justify-content: center;
    gap: 20px;
}

.ofw-stills figure { margin: 0; }

.ofw-stills img {
    display: block;
    width: 100%;
    height: auto;
}

.ofw-shot { margin: 0 0 1rem; }

.ofw-shot img {
    display: block;
    width: auto;
    max-width: min(100%, 220px);
    max-height: 280px;
    object-fit: contain;
}

.ofw-shot figcaption,
.ofw-stills figcaption {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-top: 0.4rem;
}

.ofw-cta {
    position: relative;
    background: #0e140a;
    padding-block: 56px;
}

.ofw-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 5px);
}

.ofw-cta .ofw-container { position: relative; z-index: 1; }

.ofw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.ofw-library--group { margin-bottom: 2rem; }

.ofw-library--item {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.ofw-library--num {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    color: #b6dc3c;
    font-size: 1.4rem;
}

.ofw-crumbs { margin: 1rem 0 0.5rem; }

.ofw-crumbs--list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.ofw-crumbs--list li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; color: var(--color-text-light); }

.ofw-steps { counter-reset: ofwstep; list-style: none; padding: 0; }

.ofw-steps li {
    counter-increment: ofwstep;
    margin: 0 0 1.2rem;
    padding-left: 3rem;
    position: relative;
    min-width: 0;
}

.ofw-steps li::before {
    content: counter(ofwstep);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    background: #d4af37;
    color: #14200a;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-weight: 700;
}

.ofw-form {
    display: grid;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.ofw-form label { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.85rem; }

.ofw-form input,
.ofw-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 2px solid #3d4a28;
    background: #0e140a;
    color: #f4f1e4;
    font: inherit;
}

.ofw-form textarea { min-height: 140px; }

.ofw-keys { display: flex; flex-wrap: wrap; gap: 12px; }

.ofw-key {
    min-width: 120px;
    min-height: 72px;
    border: 3px solid #d4af37;
    background: #1a2412;
    color: #f4f1e4;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-weight: 700;
    cursor: pointer;
}

.ofw-key--on,
.ofw-key:hover,
.ofw-key:focus-visible {
    background: #b6dc3c;
    color: #14200a;
}

.ofw-note {
    border-left: 6px solid #d4af37;
    padding: 0.2rem 0 0.2rem 1rem;
    color: var(--color-text-light);
}

.ofw-miss { color: #e7c96a; }

.ofw-series { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--color-border); }
.ofw-series--row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1rem; }

.ofw-moment {
    width: 160px;
    height: 120px;
    margin: 1rem 0;
    background:
        linear-gradient(#f4f1e4, #f4f1e4) 20px 16px / 36px 50px no-repeat,
        linear-gradient(#f4f1e4, #f4f1e4) 62px 28px / 36px 50px no-repeat,
        linear-gradient(#f4f1e4, #f4f1e4) 104px 16px / 36px 50px no-repeat,
        #1d4d32;
    border: 3px solid #d4af37;
    position: relative;
}

.ofw-moment::after {
    content: "";
    position: absolute;
    left: 30px;
    top: 26px;
    width: 10px;
    height: 10px;
    background: #9d1c1c;
    box-shadow: 8px 0 0 #9d1c1c, 4px 8px 0 #9d1c1c, 0 16px 0 #9d1c1c, 8px 16px 0 #9d1c1c;
}

.ofw-table-wrap { overflow-x: auto; }

.ofw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.ofw-table th,
.ofw-table td {
    border: 1px solid #3d4a28;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.ofw-table th { background: #1a2412; }

.ofw-footer {
    background: #0c1008;
    color: #e7e4d8;
    padding-block: 40px 28px;
}

.ofw-footer--grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: 28px;
}

.ofw-footer a:not(.ofw-btn),
.ofw-footer a:not(.ofw-btn):visited { color: #e7e4d8; }

.ofw-footer h2,
.ofw-footer h3 { color: #f4f1e4; }

.ofw-footer--links { list-style: none; padding: 0; margin: 0; }

.ofw-footer--links li { margin: 0 0 8px; }

.ofw-footer--cookies {
    background: none;
    border: 0;
    padding: 0;
    color: #e7e4d8;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.ofw-footer--legal {
    margin-top: 24px;
    color: #c9c4b0;
    font-size: 0.92rem;
}

.ofw-cookie { display: none; }

.ofw-cookie:not([hidden]) {
    display: flex;
    position: fixed;
    z-index: 110;
    left: 16px;
    bottom: 16px;
    max-width: 360px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    background: #1c2612;
    color: #f4f1e4;
    border: 2px solid #d4af37;
}

.ofw-cookie a,
.ofw-cookie a:visited { color: #f4f1e4; }

.ofw-cookie .ofw-btn,
.ofw-cookie button.ofw-btn--fill,
.ofw-cookie button.ofw-btn--fill:hover,
.ofw-cookie button.ofw-btn--fill:focus-visible {
    box-shadow: none;
    color: #14200a;
    min-height: 44px;
}

.ofw-cookie button.ofw-btn--fill { background: #b6dc3c; border-color: #b6dc3c; }
.ofw-cookie button.ofw-btn--fill:hover,
.ofw-cookie button.ofw-btn--fill:focus-visible { background: #d4f56a; border-color: #d4f56a; color: #14200a; }

html.ofw-js .ofw-reveal:not(.ofw-reveal--in) {
    opacity: 0;
    transform: translateY(10px) rotate(-1.2deg);
}

.ofw-reveal--in { animation: ofw-k-tilt 0.5s ease both; }

@keyframes ofw-k-tilt {
    from { opacity: 0; transform: rotate(-1.2deg) translateY(10px); }
    to { opacity: 1; transform: none; }
}

.ofw-ripple {
    position: absolute;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    margin-top: -6px;
    border-radius: 50%;
    background: rgba(20, 32, 10, 0.28);
    pointer-events: none;
    animation: ofw-k-ripple 0.55s ease-out both;
}

@keyframes ofw-k-ripple {
    to { transform: scale(18); opacity: 0; }
}

@media (max-width: 1100px) {
    .ofw-nav,
    .ofw-header--balance { display: none; }

    .ofw-header--row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .ofw-burger {
        display: flex;
        order: 99;
        margin-left: auto;
    }

    .ofw-header--logo svg {
        width: 124px;
        max-width: calc(100vw - 150px);
    }

    .ofw-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
    }

    .ofw-drawer {
        display: block;
        position: fixed;
        z-index: 210;
        background: #12180c;
        overflow-y: auto;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s;
    }

    .ofw-drawer--sheet {
        inset: 0;
        height: 100vh;
        height: 100dvh;
        padding: 72px 24px 32px;
        opacity: 0;
    }

    .ofw-drawer a {
        display: block;
        padding: 14px 0;
        font-size: 1.35rem;
        color: #f4f1e4;
    }

    .ofw-drawer a.ofw-btn {
        margin-top: 12px;
        color: #14200a;
    }

    .ofw-drawer--close {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        border: 1px solid #3d4a28;
        background: #12180c;
        color: #f4f1e4;
        font-size: 1.6rem;
        line-height: 1;
        cursor: pointer;
    }

    body.ofw-nav-open { overflow: hidden; }
    body.ofw-nav-open .ofw-drawer--sheet { opacity: 1; visibility: visible; }
    body.ofw-nav-open .ofw-overlay { display: none; }
}

@media (min-width: 1101px) {
    .ofw-burger,
    .ofw-overlay,
    .ofw-drawer { display: none !important; }
}

@media (max-width: 768px) {
    .ofw-section { padding-block: 40px; }
    .ofw-container { padding-inline: 16px; }
    .ofw-hero--grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "title" "device" "copy";
    }
    .ofw-device { justify-self: center; }
    .ofw-device--frame { width: 200px; }
    .ofw-app--icon { width: 72px; height: 72px; }
    .ofw-grid { grid-template-columns: 1fr; }
    .ofw-footer--grid { grid-template-columns: 1fr; }
    .ofw-timeline { --rail: 20px; --gap: 20px; }
    .ofw-node--marker { width: 22px; height: 22px; font-size: 0.65rem; }
}

@media (max-width: 520px) {
    .ofw-app--head { flex-direction: column; align-items: flex-start; }
    .ofw-actions { flex-direction: column; align-items: stretch; }
    .ofw-actions .ofw-btn { white-space: normal; }
    .ofw-cookie:not([hidden]) {
        left: 12px;
        right: 12px;
        max-width: none;
    }
    .ofw-library--item { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html.ofw-js .ofw-reveal:not(.ofw-reveal--in) { opacity: 1; transform: none; }
    .ofw-reveal--in,
    .ofw-ripple { animation: none; }
}
