/* "Jadul" easter-egg theme: a deliberately tacky late-90s homepage (the Konami code unlocks it, see theme.js).
   theme.js sets data-style="retro" on <html> and retro.js adds the decorations (.retro-*); everything here is
   scoped to that attribute, so the normal theme never sees these rules. The blue/green colour choice stays on
   data-theme underneath, which keeps the minigame colours working. */
:root[data-style="retro"] {
    color-scheme: light;
    --bg: #000040;
    --panel: #000080;
    --line: #ff00ff;
    --muted: #00ffff;
    --accent: #ffff00;
    --text: #ffffff;
    --retro-serif: "Times New Roman", Times, serif;
    --retro-comic: "Comic Sans MS", "Comic Neue", "Chalkboard SE", cursive;
    --retro-mono: "Courier New", Courier, monospace;
    /* Every themed colour of the normal theme, mapped onto the 90s web palette by brightness. */
    --th-111713: #000080;
    --th-121611: #000080;
    --th-131813: #000080;
    --th-151b18: #0000aa;
    --th-171c14: #0000aa;
    --th-171d15: #0000aa;
    --th-171d19: #0000aa;
    --th-18201a: #0000aa;
    --th-182112: #0000aa;
    --th-191f1b: #0000aa;
    --th-1b221e: #3333cc;
    --th-1b221ee8: #3333cce8;
    --th-1b221ef2: #3333ccf2;
    --th-1b231e: #3333cc;
    --th-1b2410: #3333cc;
    --th-1c231e: #3333cc;
    --th-20271c: #3333cc;
    --th-202822: #3333cc;
    --th-203015: #3333cc;
    --th-222b25: #3333cc;
    --th-232d27: #3333cc;
    --th-233021: #9900ff;
    --th-242e24: #3333cc;
    --th-26331c: #9900ff;
    --th-283024: #9900ff;
    --th-283123: #9900ff;
    --th-283327: #9900ff;
    --th-293323: #9900ff;
    --th-2b362d: #9900ff;
    --th-2e3a26: #9900ff;
    --th-2f392c: #9900ff;
    --th-2f3f22: #9900ff;
    --th-30392d: #9900ff;
    --th-30392df2: #9900fff2;
    --th-303c27: #9900ff;
    --th-303d25: #9900ff;
    --th-303e25: #9900ff;
    --th-34432a: #9900ff;
    --th-344626: #ff00ff;
    --th-344d38: #ff00ff;
    --th-354137: #9900ff;
    --th-38463b: #ff00ff;
    --th-3a4636: #ff00ff;
    --th-3a4a2c: #ff00ff;
    --th-3b4731: #ff00ff;
    --th-43503a: #ff00ff;
    --th-44523f: #ff00ff;
    --th-46513f: #ff00ff;
    --th-48513f: #ff00ff;
    --th-49533d: #ff00ff;
    --th-49533e: #ff00ff;
    --th-4d5b3a: #ff00ff;
    --th-4e613b: #ff00ff;
    --th-52634a: #ff00ff;
    --th-526449: #ff00ff;
    --th-52653e: #ff00ff;
    --th-53604a: #ff00ff;
    --th-586450: #ff00ff;
    --th-647b42: #00ffff;
    --th-657055: #00ffff;
    --th-65705b: #00ffff;
    --th-65774b: #00ffff;
    --th-6f8a4f: #00ffff;
    --th-718064: #00ffff;
    --th-788766: #00ffff;
    --th-7d9466: #00ffff;
    --th-94b85b: #ffff00;
    --th-accent-18: rgba(255, 255, 0, .25);
    --th-bcc7af: #ffffff;
    --th-c0cab6: #ffffff;
    --th-c8d1c0: #ffffff;
    --th-ccfa70: #ffff00;
    --th-ccfa700a: #ffff000a;
    --th-ccfa700b: #ffff000b;
    --th-ccfa700f: #ffff000f;
    --th-ccfa7018: #ffff0018;
    --th-ccfa7026: #ffff0026;
    --th-ccfa7030: #ffff0030;
    --th-ddffa2: #ffff00;
    --th-e1ffaa: #ffff00;
    --th-e5eadf: #ffffff;
    --th-e6ebe3: #ffffff;
    --th-e7eddf: #ffffff;
    scrollbar-color: #ff00ff #000080;
}

:root[data-style="retro"] *,
:root[data-style="retro"] *::before,
:root[data-style="retro"] *::after {
    border-radius: 0 !important
}

:root[data-style="retro"] ::selection {
    background: #ff00ff;
    color: #ffff00
}

:root[data-style="retro"] body {
    /* Plain blue, a little brighter than the navy panels so they still stand out. */
    background: #0040c0;
    font-family: var(--retro-serif);
    font-size: 17px
}

:root[data-style="retro"] .space-bg {
    display: none
}

:root[data-style="retro"] .site,
:root[data-style="retro"] .space-on .site {
    max-width: 1060px;
    background: transparent;
    border: 0;
    box-shadow: none
}

:root[data-style="retro"] :is(h1, h2, h3, h4) {
    font-family: var(--retro-comic);
    letter-spacing: 0
}

/* ---------- Decorations added by retro.js ---------- */
.retro-fire {
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    height: 44px;
    margin: 0 -8px;
    font-size: 34px;
    line-height: 44px;
    background: linear-gradient(transparent 40%, #ff450088 75%, #ff0000 100%);
    user-select: none
}

.retro-fire span {
    display: inline-block;
    transform-origin: 50% 100%;
    animation: retro-flicker .35s ease-in-out infinite alternate
}

.retro-fire span:nth-child(3n) { animation-duration: .27s }
.retro-fire span:nth-child(3n+1) { animation-duration: .41s; animation-delay: -.2s }

@keyframes retro-flicker {
    from { transform: scale(1, .8) skewX(-6deg); filter: hue-rotate(0deg) }
    to { transform: scale(1.1, 1.18) skewX(6deg); filter: hue-rotate(-25deg) }
}

.retro-welcome {
    position: relative;
    margin: 8px 0 12px;
    padding: 18px 70px 20px;
    border: 6px ridge #ff00ff;
    background: #0000aa;
    text-align: center;
    font-family: var(--retro-serif)
}

.retro-welcome p {
    margin: 0
}

.retro-hi {
    color: #00ffff;
    font-size: 15px;
    letter-spacing: 4px
}

.retro-logo {
    font: 700 clamp(36px, 7vw, 64px)/1.15 var(--retro-comic);
    color: #ff6a00;
    text-shadow: 3px 3px 0 #000, -1px -1px 0 #ffff00;
    animation: retro-wobble 2.2s ease-in-out infinite
}

@keyframes retro-wobble {
    0%, 100% { transform: rotate(-2deg) }
    50% { transform: rotate(2deg) scale(1.04) }
}

.retro-sub {
    color: #ffff99;
    font-size: 15px;
    letter-spacing: 2px
}

.retro-tag {
    margin-top: 6px !important;
    color: #00ff66;
    font-size: 18px
}

.retro-spin {
    position: absolute;
    top: 50%;
    margin-top: -24px;
    font-size: 38px;
    animation: retro-spin 2.4s linear infinite
}

.retro-spin.is-left { left: 16px }
.retro-spin.is-right { right: 16px; animation-direction: reverse }

@keyframes retro-spin {
    from { transform: rotateY(0) }
    to { transform: rotateY(360deg) }
}

.retro-blink {
    animation: retro-blink 1s steps(1) infinite
}

@keyframes retro-blink {
    50% { visibility: hidden }
}

.retro-new {
    display: inline-block;
    margin-left: 8px;
    padding: 0 6px;
    background: #ff0000;
    color: #ffff00;
    font: 700 13px var(--retro-comic);
    transform: rotate(-8deg)
}

.retro-marquee {
    overflow: hidden;
    margin: 12px 0;
    border: 4px inset #c0c0c0;
    background: #000;
    color: #00ff00;
    font: 16px/32px var(--retro-serif);
    white-space: nowrap
}

.retro-marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: retro-marquee 30s linear infinite
}

@keyframes retro-marquee {
    to { transform: translateX(-100%) }
}

.retro-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0
}

.retro-cta a {
    display: block;
    padding: 16px 10px;
    font: 700 20px var(--retro-serif);
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase
}

.retro-cta .is-service {
    border: 5px ridge #00ff00;
    background: #000;
    color: #66ff66
}

.retro-cta .is-tip {
    border: 5px outset #ffa04d;
    background: #ff6a00;
    color: #fff;
    text-shadow: 2px 2px 0 #7a2c00
}

.retro-cta .is-tip:active {
    border-style: inset
}

.retro-cta a:hover {
    text-decoration: underline wavy #ffff00
}

.retro-construction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 12px 0;
    padding: 10px;
    border: 8px solid transparent;
    border-image: repeating-linear-gradient(45deg, #ffcc00 0 12px, #000 12px 24px) 8;
    background: #ffcc00;
    color: #000;
    font: 700 18px var(--retro-comic);
    text-align: center
}

.retro-worker {
    display: inline-block;
    font-size: 30px;
    animation: retro-dig .5s steps(2) infinite
}

@keyframes retro-dig {
    50% { transform: translateY(-4px) rotate(-12deg) }
}

.retro-back {
    display: block;
    margin: 0 auto 14px;
    padding: 6px 14px;
    border: 3px outset #e0e0e0;
    background: #c0c0c0;
    color: #000080;
    font: 700 14px var(--retro-serif);
    cursor: pointer
}

.retro-back:active {
    border-style: inset
}

.retro-back:focus-visible,
.retro-cta a:focus-visible {
    outline: 2px dotted #ffff00;
    outline-offset: 2px
}

.retro-bottom {
    margin: 28px 0 0;
    padding: 18px 12px;
    border: 6px ridge #00ffff;
    background: #000;
    color: #00ff00;
    font-family: var(--retro-serif);
    text-align: center
}

.retro-bottom p {
    margin: 8px 0
}

.retro-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 4px 0 14px
}

/* 88x31 buttons, the currency of the 90s web. */
.retro-badge {
    display: grid;
    place-items: center;
    width: 88px;
    height: 31px;
    overflow: hidden;
    border: 2px outset #ddd;
    font: 700 10px/1.05 Verdana, Arial, sans-serif;
    text-align: center;
    text-transform: uppercase
}

.retro-badge.is-netscape { background: linear-gradient(#000080, #0000ff); color: #fff }
.retro-badge.is-netscape b { color: #ffff00; font-size: 12px }
.retro-badge.is-ie { background: #fff; color: #0000aa }
.retro-badge.is-notepad { background: #c0c0c0; color: #000 }
.retro-badge.is-y2k { background: #000; color: #00ff00; border-color: #00ff00 }
.retro-badge.is-html { background: #ff6a00; color: #fff }
.retro-badge.is-800 { background: #fff; color: #cc0000 }

.retro-webring {
    display: inline-block;
    padding: 6px 12px;
    border: 3px double #ff00ff;
    color: #ffff00
}

.retro-webring b {
    color: #00ffff
}

.retro-rainbow {
    background: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00ff00, #00ffff, #0066ff, #ff00ff, #ff0000);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: retro-rainbow 3s linear infinite
}

@keyframes retro-rainbow {
    to { background-position: 200% 0 }
}

/* LED odometer that stands in for the visit count. */
.retro-odometer {
    display: inline-flex;
    gap: 3px
}

.retro-odometer span {
    display: inline-block;
    min-width: 22px;
    padding: 0 3px;
    border: 2px inset #2a2a2a;
    background: #001a00;
    color: #00ff00;
    font: 700 22px/30px var(--retro-mono);
    text-align: center;
    text-shadow: 0 0 6px #00ff00
}

/* Sparkle cursor trail. */
.retro-sparkle {
    position: fixed;
    z-index: 2147483000;
    pointer-events: none;
    font-size: 16px;
    animation: retro-sparkle .9s ease-out forwards
}

@keyframes retro-sparkle {
    to { transform: translate(var(--dx), 34px) scale(.3) rotate(160deg); opacity: 0 }
}

/* The "you found it" window, styled like a Windows 98 message box. */
.retro-dialog {
    width: min(430px, calc(100vw - 32px));
    padding: 0;
    border: 3px outset #e0e0e0;
    background: #c0c0c0;
    color: #000;
    font: 15px/1.45 "Times New Roman", Times, serif
}

.retro-dialog::backdrop {
    background: #00008099
}

.retro-dialog-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 4px 3px 8px;
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #fff;
    font: 700 14px Tahoma, Verdana, sans-serif
}

.retro-dialog-x {
    width: 22px;
    height: 20px;
    padding: 0;
    border: 2px outset #e0e0e0;
    background: #c0c0c0;
    color: #000;
    font: 700 13px/1 Tahoma, sans-serif;
    cursor: pointer
}

.retro-dialog-body {
    display: flex;
    gap: 14px;
    padding: 18px 16px 8px
}

.retro-dialog-body > span {
    font-size: 38px;
    line-height: 1
}

.retro-dialog-body p {
    margin: 0 0 8px
}

.retro-dialog-actions {
    display: flex;
    justify-content: center;
    padding: 6px 16px 16px
}

.retro-dialog-ok {
    min-width: 90px;
    padding: 4px 16px;
    border: 2px outset #e0e0e0;
    outline: 1px dotted #000;
    outline-offset: -6px;
    background: #c0c0c0;
    color: #000;
    font: 14px Tahoma, Verdana, sans-serif;
    cursor: pointer
}

.retro-dialog-x:active,
.retro-dialog-ok:active {
    border-style: inset
}

/* ---------- Restyled page parts ---------- */
:root[data-style="retro"] header {
    padding: 14px 18px;
    border: 5px ridge #00ffff;
    background: #000080
}

:root[data-style="retro"] .brand {
    font-family: var(--retro-comic);
    color: #ffff00;
    text-shadow: 2px 2px 0 #ff00ff
}

:root[data-style="retro"] .brand-mark {
    border: 4px outset #ffcc00;
    background: #ff0000;
    color: #ffff00;
    text-shadow: 2px 2px 0 #000
}

:root[data-style="retro"] .brand-mark span {
    color: #00ff00
}

:root[data-style="retro"] .brand-sub {
    color: #00ffff;
    text-shadow: none
}

:root[data-style="retro"] .lang-note {
    color: #ffff99
}

/* Chunky bevelled grey buttons. */
:root[data-style="retro"] :is(.theme-toggle, .space-toggle, .lang-toggle button, .collection-tabs button, .page-button, .current-projects-arrow, .current-projects-toggle, .post-open-button, .minigame-play-button, .post-dialog-close, .modal-close, .post-dialog-link, .comment-form button, .current-project-link, .link-button, .media-nav-button, .collection-filters > summary) {
    border: 3px outset #e8e8e8 !important;
    background: #c0c0c0 !important;
    color: #000080 !important;
    box-shadow: none !important;
    font-family: var(--retro-serif);
    font-weight: 700;
    text-shadow: none
}

:root[data-style="retro"] :is(.theme-toggle, .space-toggle, .lang-toggle button, .collection-tabs button, .page-button, .current-projects-arrow, .current-projects-toggle, .post-open-button, .minigame-play-button, .post-dialog-close, .modal-close, .post-dialog-link, .comment-form button, .current-project-link, .link-button, .media-nav-button):active {
    border-style: inset !important
}

:root[data-style="retro"] :is(.lang-toggle button[aria-pressed="true"], .collection-tabs button[aria-selected="true"], .page-button[aria-current="page"], .space-toggle[aria-pressed="true"], .theme-toggle[aria-expanded="true"]) {
    border-style: inset !important;
    background: #ff00ff !important;
    color: #ffff00 !important
}

:root[data-style="retro"] .lang-toggle {
    border: 0;
    padding: 0;
    gap: 4px
}

:root[data-style="retro"] .collection-tabs {
    gap: 6px;
    border: 0
}

:root[data-style="retro"] .collection-tabs button {
    padding: 8px 18px;
    text-transform: uppercase;
    letter-spacing: 1px
}

:root[data-style="retro"] .collection-bar {
    border: 0
}

:root[data-style="retro"] .collection,
:root[data-style="retro"] .donation,
:root[data-style="retro"] footer {
    border-top: 0
}

:root[data-style="retro"] .eyebrow {
    color: #00ffff;
    font-family: var(--retro-mono);
    text-shadow: 1px 1px 0 #000
}

:root[data-style="retro"] .eyebrow::before {
    content: "★ ";
    color: #ffff00
}

:root[data-style="retro"] .eyebrow > span {
    display: none
}

:root[data-style="retro"] h2 {
    color: #ffff00;
    text-shadow: 2px 2px 0 #ff00ff, 4px 4px 0 #000
}

:root[data-style="retro"] h2 > span:not(#collection-title) {
    border: 2px inset #808080;
    background: #000;
    color: #00ff00;
    font-family: var(--retro-mono);
    text-shadow: none
}

:root[data-style="retro"] .section-heading,
:root[data-style="retro"] .current-projects-head {
    padding: 12px 16px;
    border: 5px ridge #ff00ff;
    background: #0000aa
}

:root[data-style="retro"] .section-heading p:last-child {
    color: #ffff99
}

:root[data-style="retro"] .current-projects {
    margin-top: 12px;
    padding: 14px;
    border: 5px ridge #ffcc00;
    background: #000060
}

:root[data-style="retro"] .current-project,
:root[data-style="retro"] .game-card {
    border: 6px ridge #00ffff;
    background: #000080;
    box-shadow: 6px 6px 0 #000
}

:root[data-style="retro"] .game-card:nth-child(4n+2) { border-color: #ff00ff }
:root[data-style="retro"] .game-card:nth-child(4n+3) { border-color: #00ff00 }
:root[data-style="retro"] .game-card:nth-child(4n+4) { border-color: #ff8800 }

:root[data-style="retro"] :is(.cover, .current-project-image) {
    border-bottom: 5px ridge #ffcc00;
    filter: saturate(1.6) contrast(1.15)
}

@media(min-width:641px) {
    :root[data-style="retro"] .current-project:only-child .current-project-image {
        border-bottom: 0;
        border-right: 5px ridge #ffcc00
    }
}

:root[data-style="retro"] .card-meta {
    color: #00ff00;
    font-family: var(--retro-mono)
}

:root[data-style="retro"] :is(.post-title-button, .current-project-title) {
    color: #ffff00;
    font-family: var(--retro-comic);
    text-decoration: underline;
    text-shadow: 2px 2px 0 #000
}

:root[data-style="retro"] .post-title-button:hover {
    color: #ff00ff;
    background: #ffff00;
    text-shadow: none
}

:root[data-style="retro"] :is(.game-card p, .current-project-description, .project-taxonomy) {
    color: #ffffff
}

:root[data-style="retro"] .current-project-status {
    border: 2px outset #ff8888;
    background: #ff0000;
    color: #ffff00
}

:root[data-style="retro"] .current-project-percent {
    color: #00ff00;
    font-family: var(--retro-mono)
}

/* Windows 95 progress bar: blue blocks in a sunken white trough. */
:root[data-style="retro"] .current-project-bar {
    height: 22px;
    padding: 2px;
    border: 2px inset #808080;
    background: #fff;
    box-shadow: none
}

:root[data-style="retro"] .current-project-fill {
    background: repeating-linear-gradient(90deg, #000080 0 12px, transparent 12px 15px);
    box-shadow: none;
    animation: none
}

:root[data-style="retro"] .visitor-counter {
    border: 4px ridge #c0c0c0;
    background: #000;
    box-shadow: none
}

:root[data-style="retro"] .visitor-counter :is(.visitor-label, .visitor-caption, #visitor-status) {
    color: #00ff00;
    font-family: var(--retro-serif)
}

:root[data-style="retro"] .visitor-counter .visitor-icon {
    color: #ffff00;
    border-color: #ffff00;
    background: transparent
}

/* The odometer shows the count; the original number stays for screen readers. */
:root[data-style="retro"] .visitor-metric strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%)
}

:root[data-style="retro"] .collection-filters {
    border: 4px ridge #00ff00;
    background: #000080
}

:root[data-style="retro"] .collection-filters > .toolbar {
    border: 0;
    background: #000080
}

:root[data-style="retro"] .filter-caption {
    color: #ffff00;
    font-family: var(--retro-serif)
}

:root[data-style="retro"] .filter-control {
    border: 3px inset #808080;
    background: #fff;
    color: #000;
    box-shadow: none
}

:root[data-style="retro"] :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    background-color: #fff;
    color: #000;
    font-family: var(--retro-mono)
}

:root[data-style="retro"] option {
    background: #fff;
    color: #000
}

:root[data-style="retro"] :is(input, textarea)::placeholder {
    color: #808080
}

:root[data-style="retro"] .pin-filter {
    color: #ffff99
}

:root[data-style="retro"] .results {
    color: #ffff99
}

:root[data-style="retro"] .empty {
    border: 4px dashed #ffff00;
    background: #000080
}

:root[data-style="retro"] .donation {
    margin-top: 12px;
    padding: 22px;
    border: 6px dashed #ffff00;
    background: #800080
}

:root[data-style="retro"] .donation p:last-child {
    color: #ffffff
}

:root[data-style="retro"] :is(.donation-button, .donation-floating) {
    border: 5px outset #ffa04d;
    background: #ff6a00;
    color: #fff;
    font-family: var(--retro-serif);
    font-size: 17px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #7a2c00;
    box-shadow: none
}

:root[data-style="retro"] .donation-button {
    animation: retro-pulse 1.1s steps(2) infinite
}

@keyframes retro-pulse {
    50% { background: #ff0000; color: #ffff00 }
}

:root[data-style="retro"] footer {
    margin-top: 12px;
    padding: 14px 18px;
    border: 4px ridge #c0c0c0;
    background: #000080;
    color: #ffffff;
    font-size: 14px
}

:root[data-style="retro"] footer a {
    color: #66ccff;
    text-decoration: underline
}

/* Post detail window: a Windows 98 frame with a blue title bar. */
:root[data-style="retro"] .post-dialog {
    border: 4px outset #e0e0e0;
    background: #000060;
    box-shadow: 10px 10px 0 #000;
    font-family: var(--retro-serif)
}

:root[data-style="retro"] .post-dialog::backdrop {
    background: #4b008299;
    backdrop-filter: none
}

:root[data-style="retro"] .post-dialog-header {
    border-bottom: 3px solid #c0c0c0;
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #fff;
    font-family: Tahoma, Verdana, sans-serif
}

:root[data-style="retro"] .post-dialog .game-card {
    border: 0;
    box-shadow: none
}

:root[data-style="retro"] .post-dialog .card-body > h3 {
    color: #ffff00;
    text-shadow: 2px 2px 0 #ff00ff
}

:root[data-style="retro"] :is(.post-content, .post-description) a {
    color: #66ccff;
    text-decoration: underline
}

:root[data-style="retro"] :is(.post-comments, .post-side, .minigame-play) {
    background: #000040
}

:root[data-style="retro"] .minigame-play [class$="-frame"] {
    border: 4px ridge #00ffff;
    background: #000080
}

:root[data-style="retro"] .comment-bubble {
    border: 2px solid #00ffff;
    background: #000080
}

/* ---------- The theme picker, retro edition ---------- */
:root[data-style="retro"] .theme-toggle {
    width: auto;
    min-width: 38px;
    padding: 0 6px
}

:root[data-style="retro"] .theme-dot {
    display: none
}

:root[data-style="retro"] .theme-toggle::after {
    content: "🎨";
    font-size: 17px
}

:root[data-style="retro"] .theme-menu {
    border: 3px outset #e0e0e0;
    background: #c0c0c0;
    color: #000;
    box-shadow: 4px 4px 0 #000;
    font-family: var(--retro-serif)
}

:root[data-style="retro"] .theme-menu-title {
    margin: -6px -6px 6px;
    padding: 4px 8px;
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #fff
}

:root[data-style="retro"] .theme-option {
    color: #000
}

:root[data-style="retro"] .theme-option:hover:not(:disabled),
:root[data-style="retro"] .theme-option:focus-visible {
    background: #000080;
    color: #fff
}

@media(max-width:640px) {
    .retro-welcome {
        padding: 14px 44px 16px
    }

    .retro-spin {
        margin-top: -16px;
        font-size: 26px
    }

    .retro-spin.is-left { left: 8px }
    .retro-spin.is-right { right: 8px }

    .retro-cta {
        grid-template-columns: 1fr
    }

    .retro-cta a {
        padding: 12px 8px;
        font-size: 16px
    }

    .retro-fire {
        height: 34px;
        font-size: 24px;
        line-height: 34px
    }

    .retro-sub {
        font-size: 12px;
        letter-spacing: 1px
    }

    .retro-tag {
        font-size: 15px
    }

    .retro-construction {
        flex-wrap: nowrap;
        gap: 8px;
        font-size: 14px
    }

    .retro-worker {
        font-size: 22px
    }

    /* The bevelled buttons are wider than the normal ones, so they get their own row under the brand. */
    :root[data-style="retro"] header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 10px
    }

    :root[data-style="retro"] .lang-switch {
        align-items: center
    }

    .retro-odometer {
        gap: 2px
    }

    .retro-odometer span {
        min-width: 15px;
        padding: 0 1px;
        font-size: 16px;
        line-height: 24px
    }

    :root[data-style="retro"] .collection-tabs {
        gap: 4px
    }

    :root[data-style="retro"] .collection-tabs button {
        padding: 6px 9px;
        font-size: 13px;
        letter-spacing: 0
    }
}

@media(prefers-reduced-motion:reduce) {
    :root[data-style="retro"] *,
    :root[data-style="retro"] *::before,
    :root[data-style="retro"] *::after {
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important
    }

    .retro-marquee {
        white-space: normal
    }

    .retro-marquee span {
        padding: 0 12px
    }
}
