:root {
    color-scheme: dark;
    --wb-blue: #0055aa;
    --wb-blue-dark: #003d7a;
    --wb-blue-deep: #002b59;
    --wb-white: #ffffff;
    --wb-orange: #ff8800;
    --wb-orange-bright: #ffa022;
    --wb-black: #000022;
    --primary-color: #ffffff;
    --secondary-color: #ff8800;
    --text-primary: #ffffff;
    --text-secondary: #d8ebff;
    --accent-color: #ff8800;
    --font-mono: "JetBrains Mono", "IBM Plex Mono", "Fira Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --font-sans: var(--font-mono);
    --font-serif: var(--font-mono);
    --shadow-wb: 6px 6px 0px #000022;
    --shadow-wb-sm: 4px 4px 0px #000022;
    --transition-fast: 70ms steps(2);
    --transition-smooth: 140ms ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background: var(--wb-blue);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--wb-blue);
    color: var(--wb-white);
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body::selection,
*::selection {
    background: var(--wb-orange);
    color: var(--wb-black);
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1240px, calc(100% - 28px));
    margin-inline: auto;
}

main {
    flex: 1;
    padding-block: 18px 28px;
}

:focus-visible {
    outline: 2px solid var(--wb-orange);
    outline-offset: 2px;
}

/* Amiga Workbench 1.3 Top Screen Title Bar */

.glass-nav.wb-screenbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--wb-white);
    color: var(--wb-blue);
    border-bottom: 2px solid var(--wb-black);
    box-shadow: 0 3px 0 rgba(0, 0, 34, 0.38);
}

.nav-content {
    display: flex;
    min-height: 32px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 10px;
    color: var(--wb-blue);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.wb-logo-mark {
    width: 18px;
    height: 18px;
    border: 1px solid var(--wb-black);
}

.nav-links-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link,
.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    color: var(--wb-blue);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
}

.logo:hover,
.nav-link:hover,
.nav-link.active,
.dropdown:hover .nav-link {
    background: var(--wb-blue);
    color: var(--wb-orange);
}

.nav-cta {
    margin-left: 6px;
    background: var(--wb-orange);
    color: var(--wb-black);
    border: 2px solid var(--wb-black);
}

.nav-cta:hover {
    background: var(--wb-black);
    color: var(--wb-orange);
}

.wb-screenbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--wb-blue);
    font-size: 0.82rem;
    font-weight: 800;
}

.wb-clock {
    padding: 2px 8px;
    background: var(--wb-blue);
    color: var(--wb-white);
}

.wb-depth-gadget {
    position: relative;
    width: 20px;
    height: 16px;
    border: 2px solid var(--wb-blue);
    background: var(--wb-white);
}

.wb-depth-gadget::before {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 9px;
    height: 7px;
    border: 2px solid var(--wb-black);
    background: var(--wb-white);
    content: "";
}

.wb-depth-gadget::after {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 9px;
    height: 7px;
    background: var(--wb-blue);
    border: 1px solid var(--wb-black);
    content: "";
}

/* Workbench Pull-Down Menus */

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 225px;
    padding: 4px;
    border: 2px solid var(--wb-black);
    background: var(--wb-white);
    box-shadow: var(--shadow-wb);
    opacity: 0;
    visibility: hidden;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 5px 10px;
    color: var(--wb-blue);
    font-size: 0.86rem;
    font-weight: 800;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: var(--wb-blue);
    color: var(--wb-orange);
}

.wb-shortcut {
    padding: 0 5px;
    border: 1px solid currentColor;
    font-size: 0.74rem;
}

.wb-menu-divider {
    height: 2px;
    margin: 4px 0;
    background: var(--wb-blue);
}

.mobile-menu-toggle {
    display: none;
    padding: 2px 8px;
    border: 2px solid var(--wb-black);
    background: var(--wb-orange);
    color: var(--wb-black);
    font-weight: 800;
    cursor: pointer;
}

/* Amiga Workbench 1.3 Window Chrome */

.mac-window {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--wb-white);
    outline: 2px solid var(--wb-black);
    background: var(--wb-blue);
    box-shadow: var(--shadow-wb);
}

.mac-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 4px;
    background: var(--wb-white);
    color: var(--wb-blue);
    border-bottom: 2px solid var(--wb-black);
    user-select: none;
}

.mac-titlebar-center {
    flex: 1;
    display: flex;
    align-items: center;
    height: 16px;
    /* Iconic Amiga Workbench 1.3 double horizontal drag bars */
    background-image: linear-gradient(
        180deg,
        transparent 0px,
        transparent 3px,
        var(--wb-blue) 3px,
        var(--wb-blue) 6px,
        transparent 6px,
        transparent 9px,
        var(--wb-blue) 9px,
        var(--wb-blue) 12px,
        transparent 12px
    );
}

.mac-title-text {
    padding-right: 10px;
    background: var(--wb-white);
    color: var(--wb-blue);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mac-window-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 6px;
    background: var(--wb-white);
}

.mac-box {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 15px;
    flex: 0 0 16px;
    border: 2px solid var(--wb-blue);
    background: var(--wb-white);
}

.mac-close-box::after {
    position: absolute;
    inset: 2px;
    background: var(--wb-orange);
    border: 1px solid var(--wb-black);
    content: "";
}

.mac-zoom-box::after {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 6px;
    height: 5px;
    background: var(--wb-blue);
    content: "";
}

.mac-shade-box::after {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 7px;
    height: 6px;
    border: 1px solid var(--wb-black);
    background: var(--wb-blue);
    content: "";
}

.mac-infobar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 12px;
    border-bottom: 2px solid var(--wb-white);
    background: var(--wb-blue-dark);
    color: var(--wb-orange);
    font-size: 0.78rem;
    font-weight: 800;
}

.mac-window-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--wb-blue);
    padding: 16px 18px;
}

.mac-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 10px;
    border-top: 2px solid var(--wb-white);
    background: var(--wb-blue-dark);
    color: var(--wb-white);
    font-size: 0.76rem;
    font-weight: 700;
}

.mac-resize-box {
    width: 13px;
    height: 13px;
    border: 2px solid var(--wb-white);
    background: var(--wb-orange);
}

.mac-groove {
    height: 2px;
    margin: 16px -18px;
    background: var(--wb-white);
}

/* Amiga Workbench Gadget Buttons */

.mac-btn-default,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border: 2px solid var(--wb-white);
    outline: 2px solid var(--wb-black);
    background: var(--wb-orange);
    color: var(--wb-black) !important;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: var(--shadow-wb-sm);
    cursor: pointer;
}

.mac-btn-default:hover,
.btn-primary:hover {
    background: var(--wb-white);
    color: var(--wb-blue) !important;
    border-color: var(--wb-orange);
}

.mac-btn,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border: 2px solid var(--wb-white);
    outline: 2px solid var(--wb-black);
    background: var(--wb-blue-dark);
    color: var(--wb-white) !important;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: var(--shadow-wb-sm);
    cursor: pointer;
}

.mac-btn:hover,
.btn-secondary:hover {
    background: var(--wb-orange);
    color: var(--wb-black) !important;
}

/* Dual-Window Top Section */

.mac-dual-finder {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 18px;
    align-items: stretch;
}

/* Drawer / Tool List inside Left Window */

.mac-finder-list {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--wb-white);
    background: var(--wb-blue-deep);
}

.mac-finder-head,
.mac-finder-row {
    display: grid;
    grid-template-columns: minmax(140px, 1.3fr) minmax(115px, 1fr) minmax(110px, 1fr);
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    font-size: 0.84rem;
}

.mac-finder-head {
    border-bottom: 2px solid var(--wb-white);
    background: var(--wb-white);
    color: var(--wb-blue);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.mac-finder-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--wb-white);
    font-weight: 700;
}

.mac-finder-row-selected,
.mac-finder-row:hover {
    background: var(--wb-orange);
    color: var(--wb-black);
}

.mac-finder-row-selected .mac-fkind,
.mac-finder-row-selected .mac-fplat,
.mac-finder-row:hover .mac-fkind,
.mac-finder-row:hover .mac-fplat {
    color: var(--wb-black);
}

.mac-fname {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mac-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid var(--wb-black);
    background: var(--wb-orange);
    color: var(--wb-black);
    font-size: 0.75rem;
    font-weight: 800;
}

.mac-finder-row:hover .mac-icon,
.mac-finder-row-selected .mac-icon {
    background: var(--wb-white);
    color: var(--wb-blue);
}

.mac-fkind {
    color: var(--wb-orange);
    font-size: 0.8rem;
}

.mac-fplat {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Studio Hero Summary */

.mac-kicker {
    color: var(--wb-orange);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mac-hero-summary h1 {
    margin-top: 6px;
    color: var(--wb-white);
    font-size: clamp(1.55rem, 2.7vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
}

.home-intro {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.93rem;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

/* Right Window: SysInfo & IFF ILBM Viewer */

.mac-sysinfo-grid {
    display: grid;
    gap: 6px;
    font-size: 0.86rem;
}

.mac-sysinfo-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 6px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
}

.mac-sys-key {
    color: var(--wb-orange);
    font-weight: 800;
}

.mac-sys-val {
    color: var(--wb-white);
    font-weight: 700;
    text-align: right;
}

.hero-visual-frame {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--wb-white);
    background: var(--wb-black);
    overflow: hidden;
}

.home-hero-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.hero-visual-caption {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 10px;
    border-top: 2px solid var(--wb-white);
    background: var(--wb-blue-deep);
    color: var(--wb-orange);
    font-size: 0.76rem;
    font-weight: 800;
}

/* Games Section */

.games-section {
    padding-top: 28px;
}

.mac-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 2px solid var(--wb-white);
    outline: 2px solid var(--wb-black);
    background: var(--wb-blue-dark);
    box-shadow: var(--shadow-wb);
}

.mac-section-badge {
    padding: 2px 9px;
    background: var(--wb-orange);
    color: var(--wb-black);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.mac-section-header h2 {
    color: var(--wb-white);
    font-size: 1.05rem;
    font-weight: 800;
}

.game-banners {
    display: grid;
    gap: 22px;
}

.game-banner-inner {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
    min-height: 400px;
    background: var(--wb-blue);
}

.game-banner-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4.5vw, 46px);
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.game-tag {
    padding: 2px 9px;
    border: 2px solid var(--wb-white);
    background: var(--wb-blue-deep);
    color: var(--wb-white);
    font-size: 0.75rem;
    font-weight: 800;
}

.game-tag-accent,
.game-tag-warm {
    border-color: var(--wb-black);
    background: var(--wb-orange);
    color: var(--wb-black);
}

.game-banner h3 {
    margin-top: 14px;
    color: var(--wb-white);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
}

.game-banner h3 a:hover {
    background: var(--wb-orange);
    color: var(--wb-black);
    padding-inline: 6px;
}

.game-banner-copy > p {
    max-width: 450px;
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: 0.96rem;
}

.game-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.game-banner-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-left: 2px solid var(--wb-white);
    background: var(--wb-black);
}

.game-banner-seedship .game-banner-copy {
    order: 2;
}

.game-banner-seedship .game-banner-visual {
    order: 1;
    border-right: 2px solid var(--wb-white);
    border-left: 0;
}

.device-frame {
    width: min(260px, 84%);
    aspect-ratio: 9 / 17.5;
    padding: 6px;
    border: 2px solid var(--wb-white);
    background: var(--wb-blue-dark);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transition: transform var(--transition-smooth);
}

.device-frame img {
    width: 100%;
    height: 100%;
    border: 1px solid var(--wb-black);
    object-fit: cover;
    object-position: center top;
}

.game-banner:hover .device-frame {
    border-color: var(--wb-orange);
    transform: translateY(-3px);
}

/* Studio Pillars (ReadMe Windows) */

.home-note {
    padding-top: 24px;
}

.studio-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mac-pillar-body {
    flex: 1;
    padding: 16px 18px 20px;
    background: var(--wb-blue-dark);
}

.studio-pillar h3 {
    color: var(--wb-orange);
    font-size: 1.06rem;
    font-weight: 800;
}

.studio-pillar p {
    margin-top: 8px;
    color: var(--wb-white);
    font-size: 0.9rem;
}

/* Game Detail & AmigaGuide Document Windows */

.game-detail-hero {
    padding-top: 4px;
}

.game-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.game-subnav-item {
    padding: 5px 13px;
    border: 2px solid var(--wb-white);
    outline: 2px solid var(--wb-black);
    background: var(--wb-blue-dark);
    color: var(--wb-white);
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: var(--shadow-wb-sm);
}

.game-subnav-item:hover,
.game-subnav-item.active {
    background: var(--wb-orange);
    color: var(--wb-black);
}

.game-detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
    min-height: 380px;
}

.game-detail-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4.5vw, 48px);
}

.game-detail-kicker {
    color: var(--wb-orange);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.game-detail-hero h1 {
    margin-top: 8px;
    color: var(--wb-white);
    font-size: clamp(2rem, 4.5vw, 3.3rem);
    font-weight: 800;
    line-height: 1.05;
}

.game-detail-intro {
    max-width: 440px;
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: 0.97rem;
}

.game-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.game-detail-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    border-left: 2px solid var(--wb-white);
    background: var(--wb-black);
}

.game-article .markdown-body > h1:first-child {
    display: none;
}

.game-article-compact .game-detail-hero-grid {
    grid-template-columns: minmax(0, 1fr) 240px;
    min-height: 190px;
}

.game-article-compact .game-detail-hero-visual .device-frame {
    width: 140px;
    aspect-ratio: 16 / 10;
}

/* AmigaGuide Article Body */

.article-body-wrapper {
    margin-top: 20px;
}

.markdown-body {
    padding: clamp(24px, 4.5vw, 48px);
    background: var(--wb-blue-deep) !important;
    color: var(--wb-white) !important;
    font-family: var(--font-mono) !important;
    font-size: 0.96rem;
    line-height: 1.72;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    border-bottom: 2px solid var(--wb-white) !important;
    color: var(--wb-orange) !important;
    font-family: var(--font-mono) !important;
    font-weight: 800;
}

.markdown-body p,
.markdown-body li {
    color: var(--wb-white) !important;
}

.markdown-body strong {
    color: var(--wb-orange) !important;
}

.markdown-body a {
    padding: 1px 5px;
    border: 1px solid var(--wb-white);
    background: var(--wb-blue);
    color: var(--wb-orange) !important;
    font-weight: 700;
    text-decoration: none !important;
}

.markdown-body a:hover {
    background: var(--wb-orange);
    color: var(--wb-black) !important;
}

/* Unified Amiga Store & Platform Gadget Buttons inside Markdown */

.store-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    margin: 22px 0 26px;
}

.markdown-body a.wb-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 6px 14px !important;
    border: 2px solid var(--wb-white) !important;
    outline: 2px solid var(--wb-black);
    background: var(--wb-blue-dark) !important;
    color: var(--wb-white) !important;
    box-shadow: var(--shadow-wb-sm);
    font-family: var(--font-mono) !important;
    text-decoration: none !important;
    transition: transform var(--transition-fast);
}

.markdown-body a.wb-store-btn-primary {
    background: var(--wb-orange) !important;
    color: var(--wb-black) !important;
}

.markdown-body a.wb-store-btn:hover {
    background: var(--wb-orange) !important;
    color: var(--wb-black) !important;
    transform: translate(-1px, -1px);
}

.markdown-body a.wb-store-btn-primary:hover {
    background: var(--wb-white) !important;
    color: var(--wb-blue) !important;
}

.wb-store-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 2px solid var(--wb-black);
    background: var(--wb-orange);
    color: var(--wb-black);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.markdown-body a.wb-store-btn-primary .wb-store-icon,
.markdown-body a.wb-store-btn:hover .wb-store-icon {
    background: var(--wb-white);
    color: var(--wb-blue);
}

.wb-store-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.wb-store-kicker {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.wb-store-label {
    font-size: 0.88rem;
    font-weight: 800;
}

/* Gameplay Video & Screenshot Gallery in Amiga Style */

.gameplay-video {
    width: min(100%, 360px);
    aspect-ratio: 9 / 16;
    margin: 20px auto 32px;
    padding: 6px;
    border: 2px solid var(--wb-white);
    outline: 2px solid var(--wb-black);
    background: var(--wb-blue-dark);
    box-shadow: var(--shadow-wb);
}

.gameplay-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 2px solid var(--wb-black);
    background: #000000;
}

.md-gallery-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 16px;
    padding: 4px 4px 16px;
    -webkit-overflow-scrolling: touch;
}

.md-gallery-slider::-webkit-scrollbar {
    height: 12px;
}

.md-gallery-slider::-webkit-scrollbar-track {
    background: var(--wb-blue-deep);
    border: 2px solid var(--wb-white);
}

.md-gallery-slider::-webkit-scrollbar-thumb {
    background: var(--wb-orange);
    border: 2px solid var(--wb-black);
}

.md-gallery-slide {
    flex: 0 0 46%;
    scroll-snap-align: center;
    padding: 6px;
    border: 2px solid var(--wb-white);
    outline: 2px solid var(--wb-black);
    background: var(--wb-blue-dark);
    box-shadow: var(--shadow-wb-sm);
}

.md-gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--wb-black);
    object-fit: cover;
}

@media (max-width: 640px) {
    .md-gallery-slide {
        flex: 0 0 82%;
    }
}

.markdown-body blockquote {
    padding: 12px 16px !important;
    border: 2px solid var(--wb-white) !important;
    border-left: 6px solid var(--wb-orange) !important;
    background: var(--wb-blue-dark) !important;
    color: var(--text-secondary) !important;
}

.markdown-body code {
    padding: 2px 6px !important;
    border: 1px solid var(--wb-white);
    background: var(--wb-black) !important;
    color: var(--wb-orange) !important;
}

.markdown-body pre {
    border: 2px solid var(--wb-white) !important;
    background: var(--wb-black) !important;
    color: var(--wb-white) !important;
}

.markdown-body table {
    display: block;
    width: 100%;
    margin: 20px 0;
    overflow-x: auto;
    border-collapse: collapse;
}

.markdown-body table th,
.markdown-body table td {
    padding: 8px 12px;
    border: 2px solid var(--wb-white) !important;
    background: var(--wb-blue-dark) !important;
    color: var(--wb-white) !important;
}

.markdown-body table th {
    background: var(--wb-white) !important;
    color: var(--wb-blue) !important;
    font-weight: 800;
}

/* Category Cards (home.html) */

.home-container {
    padding-block: 16px 32px;
}

.page-title {
    margin-bottom: 18px;
    color: var(--wb-orange);
    font-size: 1.8rem;
    font-weight: 800;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.article-card {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--wb-white);
    outline: 2px solid var(--wb-black);
    background: var(--wb-blue);
    box-shadow: var(--shadow-wb);
}

.card-image-wrapper {
    height: 190px;
    overflow: hidden;
    border-bottom: 2px solid var(--wb-white);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.card-title {
    margin-bottom: 8px;
    color: var(--wb-orange);
    font-size: 1.15rem;
    font-weight: 800;
}

.card-excerpt {
    flex: 1;
    color: var(--wb-white);
    font-size: 0.9rem;
}

.read-more {
    margin-top: 14px;
    color: var(--wb-orange);
    font-size: 0.82rem;
    font-weight: 800;
}

/* 404 Guru Meditation & Amiga System Request */

.not-found-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: 62vh;
    padding-block: 32px;
}

.wb-guru-box {
    width: min(680px, 100%);
    padding: 18px 24px;
    background: #000000;
    border: 6px solid #ff2200;
    color: #ff2200;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.7;
    box-shadow: var(--shadow-wb);
    animation: guru-blink 1.2s steps(1) infinite;
}

@keyframes guru-blink {
    50% { border-color: transparent; }
}

.wb-requester-dialog {
    width: min(560px, 100%);
}

.wb-requester-body {
    padding: 24px 26px;
    background: var(--wb-blue);
    text-align: center;
}

.not-found-title {
    color: var(--wb-orange);
    font-size: 1.2rem;
    font-weight: 800;
}

.not-found-text {
    margin-top: 10px;
    color: var(--wb-white);
    font-size: 0.92rem;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
}

/* Image Loading */

.img-loading-wrapper {
    position: relative;
    display: block;
    width: 100%;
    min-height: 160px;
    margin-bottom: 1em;
    border: 2px solid var(--wb-white);
    background: var(--wb-blue-deep);
}

.img-loading-wrapper img {
    width: 100%;
    height: auto;
}

/* Amiga Workbench Bottom Status Strip */

.wb-footer {
    border-top: 2px solid var(--wb-white);
    background: var(--wb-blue-dark);
    color: var(--wb-white);
    font-size: 0.84rem;
}

.wb-status-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 36px;
    padding-block: 6px;
}

.wb-strip-left {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
}

.wb-disk-led {
    width: 12px;
    height: 7px;
    background: var(--wb-orange);
    border: 1px solid var(--wb-black);
    box-shadow: 0 0 6px var(--wb-orange);
}

.wb-strip-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.wb-strip-links a {
    color: var(--wb-orange);
}

.wb-strip-links a:hover {
    background: var(--wb-white);
    color: var(--wb-blue);
    padding-inline: 4px;
}

.wb-strip-sep {
    color: var(--wb-white);
}

/* Cookie Banner (Amiga Requester Style) */

.cookie-banner {
    position: fixed;
    right: 16px;
    bottom: -120%;
    left: 16px;
    z-index: 9999;
    width: min(640px, calc(100% - 32px));
    margin-inline: auto;
    padding: 16px 20px;
    border: 2px solid var(--wb-white);
    outline: 2px solid var(--wb-black);
    background: var(--wb-blue-dark);
    color: var(--wb-white);
    box-shadow: var(--shadow-wb);
    transition: bottom var(--transition-smooth);
}

.cookie-banner.show {
    bottom: 20px;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-text p {
    color: var(--wb-white);
    font-size: 0.84rem;
    font-weight: 700;
}

.cookie-buttons {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.cookie-btn {
    padding: 5px 13px;
    border: 2px solid var(--wb-white);
    outline: 2px solid var(--wb-black);
    background: var(--wb-blue);
    color: var(--wb-white);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.cookie-btn-accept {
    background: var(--wb-orange);
    color: var(--wb-black);
}

.cookie-btn:hover {
    background: var(--wb-white);
    color: var(--wb-blue);
}

/* Responsive */

@media (max-width: 960px) {
    .mac-dual-finder {
        grid-template-columns: 1fr;
    }

    .studio-pillars {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: inline-flex;
    }

    .wb-screenbar-right {
        display: none;
    }

    .nav-links-wrapper {
        position: fixed;
        top: 34px;
        right: -105%;
        z-index: 1000;
        width: min(300px, calc(100% - 16px));
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        border: 2px solid var(--wb-black);
        background: var(--wb-white);
        box-shadow: var(--shadow-wb);
        transition: right var(--transition-smooth);
    }

    .nav-links-wrapper.active {
        right: 8px;
    }

    .main-nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .dropdown-menu {
        position: static;
        min-width: 0;
        margin-top: 4px;
        border: 1px solid var(--wb-blue);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
    }

    .game-banner-inner,
    .game-detail-hero-grid {
        grid-template-columns: 1fr;
    }

    .game-banner-copy,
    .game-banner-seedship .game-banner-copy {
        order: 1;
    }

    .game-banner-visual,
    .game-banner-seedship .game-banner-visual,
    .game-detail-hero-visual {
        order: 2;
        border-top: 2px solid var(--wb-white);
        border-right: 0;
        border-left: 0;
    }
}

@media (max-width: 640px) {
    .mac-finder-head,
    .mac-finder-row {
        grid-template-columns: minmax(115px, 1.2fr) minmax(95px, 1fr);
    }

    .mac-finder-head span:nth-child(3),
    .mac-finder-row .mac-fplat {
        display: none;
    }

    .game-article-compact .game-detail-hero-grid {
        grid-template-columns: 1fr;
    }

    .game-article-compact .game-detail-hero-visual {
        display: none;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }
}
