/* jardi.eu: yellow, black and lasers. No inline styles anywhere (strict CSP). */

@font-face {
    font-family: 'Bungee';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/bungee.woff2) format('woff2');
}
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(../fonts/archivo.woff2) format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url(../fonts/jetbrains-mono.woff2) format('woff2');
}

:root {
    --y: #FFD400;
    --k: #0A0A0A;
    --panel: #121212;
    --ink: #F5F5F0;
    --muted: #A3A3A3;
    --soft: #C9C9C2;
    --display: 'Bungee', 'Arial Black', sans-serif;
    --body: 'Archivo', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
    color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--k);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.55;
    overflow-x: hidden;
}

a { color: var(--y); }
a:hover { color: #FFFFFF; }

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

img { max-width: 100%; }

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.mono { font-family: var(--mono); }
.hl { color: var(--y); }

.bare-btn {
    display: block;
    width: 100%;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

/* ---- hazard stripes ---- */
.stripes { height: 14px; background: repeating-linear-gradient(-45deg, var(--y) 0 18px, var(--k) 18px 36px); }
.stripes-rev { height: 14px; background: repeating-linear-gradient(-45deg, var(--k) 0 18px, var(--y) 18px 36px); }

/* ---- header ---- */
.top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 20px;
    padding-bottom: 20px;
}
.logo {
    display: inline-flex;
    width: auto;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-family: var(--display);
    font-size: 24px;
    color: var(--y);
}
.logo span { color: var(--ink); }
.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 500;
}
.nav a { padding: 10px 12px; text-decoration: none; }
.mute {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--y);
    border-radius: 6px;
    background: transparent;
    color: var(--y);
    cursor: pointer;
}
.mute .icon-off { display: none; }
.mute[aria-pressed="true"] .icon-on { display: none; }
.mute[aria-pressed="true"] .icon-off { display: block; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; }
.stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(var(--ink) 1px, transparent 1.5px), radial-gradient(var(--y) 1.5px, transparent 2px);
    background-size: 140px 120px, 260px 210px;
    opacity: .35;
    animation: drift 40s linear infinite;
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 104px;
}
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.prompt { margin: 0; font-family: var(--mono); font-size: 15px; color: var(--y); }
.title {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(64px, 8.6vw, 140px);
    line-height: .9;
    white-space: nowrap;
    color: var(--y);
    letter-spacing: -.01em;
    animation: glitch 7s steps(1) infinite;
}
.title span { display: inline-block; animation: hop 2.6s ease-in-out infinite; }
.title span:nth-child(2) { animation-delay: .12s; }
.title span:nth-child(3) { animation-delay: .24s; }
.title span:nth-child(4) { animation-delay: .36s; }
.title span:nth-child(5) { animation-delay: .48s; }
.lead { margin: 0; font-size: 22px; max-width: 30ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 0 32px;
    border: 3px solid var(--k);
    border-radius: 6px;
    background: var(--y);
    color: var(--k);
    font-family: var(--display);
    font-size: 28px;
    cursor: pointer;
    box-shadow: 6px 6px 0 var(--ink);
    transition: transform .08s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px) scale(.98); }
.btn-small { min-height: 56px; padding: 0 28px; font-size: 24px; }
.stats { display: flex; flex-direction: column; gap: 2px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.stats strong { color: var(--y); }
.combo {
    display: inline-block;
    padding: 6px 14px;
    background: var(--ink);
    color: var(--k);
    font-family: var(--display);
    font-size: 22px;
    line-height: 1.2;
    box-shadow: 4px 4px 0 var(--y);
    transform: rotate(-3deg);
}
.combo[hidden] { display: none; }
.combo small { display: block; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.combo.bump { animation: bump .25s ease-out forwards; }

.screen-wrap { flex: 1 1 380px; min-width: 0; margin: 0; display: flex; justify-content: center; perspective: 900px; }
.screen { width: 100%; max-width: 480px; animation: wobble 4s ease-in-out infinite; }
.screen-box { border: 4px solid var(--y); background: #161616; box-shadow: 12px 12px 0 var(--y); }
.screen-box.flip { animation: flip .6s ease-in-out; }
.screen-bar {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: var(--y);
    color: var(--k);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
}
.screen img { display: block; width: 100%; height: auto; }

/* ---- effects in the hero ---- */
.flash { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--y); animation: flash .25s ease-out forwards; }
.laser-arm { position: absolute; width: 0; height: 0; pointer-events: none; z-index: 3; }
.laser {
    position: absolute;
    left: 0;
    top: -3px;
    height: 6px;
    width: 220px;
    border-radius: 3px;
    transform-origin: 0 50%;
    background: var(--y);
    box-shadow: 0 0 12px var(--y), 0 0 28px var(--y);
    animation: zap .6s linear forwards;
}
.popup {
    position: absolute;
    left: 50%;
    top: 22%;
    z-index: 5;
    margin: 0;
    padding: 10px 18px;
    background: var(--k);
    border: 3px solid var(--y);
    color: var(--y);
    font-family: var(--display);
    font-size: clamp(20px, 4vw, 30px);
    white-space: nowrap;
    box-shadow: 6px 6px 0 var(--y);
    pointer-events: none;
    animation: popup 1.6s ease-out forwards;
}
.hubcap { position: absolute; bottom: 18px; z-index: 3; pointer-events: none; animation: roll 2.2s linear forwards; }
.ship { position: absolute; z-index: 4; animation: shipfly 5.5s linear forwards; }
.ship.boss { animation-duration: 12s; }
.ship.dead { animation-play-state: paused; }
.ship-btn { display: block; background: none; border: 0; padding: 0; cursor: crosshair; }
.ship-bob, .ship-hit { display: block; }
.ship-bob { animation: bob 1.1s ease-in-out infinite; }
.ship svg { display: block; width: 200px; height: 150px; }
.ship.boss svg { width: 360px; height: 270px; }
.ship .body { fill: var(--y); }
.ship.boss .body { fill: var(--ink); }
.ship .mouth-boss { display: none; }
.ship.boss .mouth { display: none; }
.ship.boss .mouth-boss { display: inline; }
.ship-beam { fill: var(--y); animation: beam .6s ease-in-out infinite; }
.twinkle { animation: twinkle 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.tw2 { animation-delay: .3s; } .tw3 { animation-delay: .6s; } .tw4 { animation-delay: .9s; } .tw5 { animation-delay: 1.2s; }
.hurt { animation: hurt .25s ease-out; }
.hp { width: 220px; height: 12px; margin: 0 auto 8px; border: 2px solid var(--ink); background: var(--k); }
.hp div { height: 100%; width: 100%; background: var(--y); transition: width .15s ease; }
.boom { display: block; animation: boom .6s ease-out forwards; }
.boom .burst { fill: var(--y); stroke: var(--ink); }
.shaking { animation: shake .3s linear; }
.overload { animation: rainbow .8s linear infinite; }

/* ---- marquee ---- */
.marquee { background: var(--y); color: var(--k); overflow: hidden; border-block: 3px solid var(--k); }
.track { display: flex; width: max-content; white-space: nowrap; animation: marquee 22s linear infinite; }
.track span { padding-right: 32px; }
.track-big { padding: 14px 0 6px; font-family: var(--display); font-size: 28px; }
.track-small { padding: 0 0 12px; font-family: var(--mono); font-weight: 700; font-size: 15px; animation-duration: 30s; animation-direction: reverse; }

/* ---- sections ---- */
.section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 32px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.section-head p { margin: 0; font-family: var(--mono); font-size: 15px; color: var(--muted); }
.section-head strong { color: var(--y); }
.h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: 1; }

/* ---- game ---- */
.arena {
    position: relative;
    height: 440px;
    overflow: hidden;
    border: 4px solid var(--y);
    background: var(--panel);
    box-shadow: 12px 12px 0 var(--y);
    user-select: none;
}
.hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 700;
    color: var(--y);
}
.ufo { position: absolute; z-index: 2; animation-timing-function: linear; animation-fill-mode: forwards; }
.ufo.go-r { animation-name: gfly-r; }
.ufo.go-l { animation-name: gfly-l; }
.ufo.dead { animation-play-state: paused; }
.ufo svg { display: block; width: 96px; height: 72px; }
.ufo .body { fill: var(--y); }
.overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px;
    background: rgba(10, 10, 10, .78);
    text-align: center;
}
.overlay[hidden] { display: none; }
.overlay-title { margin: 0; font-family: var(--display); font-size: clamp(28px, 4vw, 44px); line-height: 1.1; color: var(--y); }
.overlay-sub { margin: 0; font-family: var(--mono); font-size: 15px; color: var(--soft); }

/* ---- Sony ---- */
.sony { background: var(--y); color: var(--k); border-block: 3px solid var(--k); }
.sony-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding-top: 96px;
    padding-bottom: 96px;
}
.sony-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.sony-text p { margin: 0; }
.sony-kicker, .sony-warn { font-family: var(--mono); font-size: 15px; font-weight: 700; }
.sony-name { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(72px, 11vw, 150px); line-height: .9; }
.sony-lead { font-size: 22px; max-width: 28ch; }
.cam {
    flex: 0 1 400px;
    min-width: 0;
    margin: 0;
    border: 4px solid var(--k);
    background: var(--k);
    box-shadow: 12px 12px 0 var(--k);
    animation: float 3.4s ease-in-out infinite;
}
.cam-bar {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    color: var(--y);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
}
.cam-btn { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.cat { position: absolute; inset: 0; }
.cat.boop { animation: boop .5s ease-out; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-patch, .cat-paw {
    position: absolute;
    inset: 0;
    clip-path: polygon(51.7% 51.3%, 75% 40%, 99.2% 40%, 99.6% 56.3%, 86.7% 68.8%, 82.5% 84.4%, 80% 100%, 36.7% 100%, 35.8% 81.3%, 43.3% 65.6%);
}
.cat-patch { background: #141418; }
.cat-paw { transform-origin: 88% 48%; animation: paw 1.3s ease-in-out infinite; }
.eye {
    position: absolute;
    width: 14%;
    aspect-ratio: 1;
    margin: -7% 0 0 -7%;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(#FFFFFF 0 15%, var(--y) 35%, transparent 70%);
    animation: eye .9s ease-out forwards;
}
.eye-l { left: 25.8%; top: 28.1%; }
.eye-r { left: 45.8%; top: 26.9%; }
.cam .popup { top: 12%; font-size: 28px; padding: 6px 14px; animation-duration: 1.2s; }

/* ---- gif wall ---- */
.gifs { background: var(--panel); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: start; gap: 32px; }
.gif {
    margin: 0;
    border: 3px solid var(--y);
    background: var(--k);
    box-shadow: 8px 8px 0 var(--y);
    animation: float 3.4s ease-in-out infinite;
}
.gif:nth-child(3n+2) { animation-delay: .8s; }
.gif:nth-child(3n) { animation-delay: 1.6s; }
.gif img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.gif figcaption { padding: 10px 14px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---- footer ---- */
.foot { background: var(--y); color: var(--k); }
.foot-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
    padding-top: 28px;
    padding-bottom: 28px;
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 700;
}
.foot-logo { font-family: var(--display); font-size: 22px; }
.foot a { color: var(--k); text-decoration: none; }

.spin { animation: spin 6s linear infinite; }
.cursor { animation: blink 1s step-end infinite; }

/* ---- secret /pew page ---- */
.pew-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 24px;
}
.big-pew {
    position: relative;
    z-index: 1;
    width: min(72vw, 360px);
    height: min(72vw, 360px);
    border-radius: 50%;
    border: 8px solid var(--k);
    background: var(--y);
    color: var(--k);
    font-family: var(--display);
    font-size: min(18vw, 96px);
    cursor: pointer;
    box-shadow: 0 0 0 6px var(--y), 14px 14px 0 6px var(--ink);
    animation: pulse 1.6s ease-in-out infinite;
}
.big-pew:active { transform: scale(.94); }
.pew-page .stats { flex-direction: row; gap: 6px; }
.pew-page .stats, .pew-page .back { position: relative; z-index: 1; margin: 0; font-size: 16px; }
.pew-page .back { padding: 10px 12px; font-family: var(--mono); font-size: 15px; font-weight: 700; text-decoration: none; }
.center-arm { left: 50%; top: 50%; }
.center-arm .laser { height: 8px; top: -4px; width: 260px; animation: zap-c .7s ease-in forwards; }
.ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 360px;
    height: 360px;
    margin: -180px 0 0 -180px;
    border-radius: 50%;
    border: 6px solid var(--y);
    pointer-events: none;
    animation: ring .6s ease-out forwards;
}

/* ---- keyframes ---- */
@keyframes zap { from { transform: translateX(0) scaleX(.3); } to { transform: translateX(1800px) scaleX(1); } }
@keyframes zap-c { from { transform: translateX(60px) scaleX(.3); } to { transform: translateX(1400px) scaleX(1); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes wobble { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(1.5deg); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes shake { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-4px, -2px); } 80% { transform: translate(3px, 4px); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes hop { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-18px); } 90% { transform: translateY(4px); } }
@keyframes glitch { 0%, 90%, 100% { transform: none; text-shadow: none; } 91% { transform: translate(-5px, 2px) skewX(-8deg); text-shadow: 6px 0 var(--ink), -6px 0 #7A6500; } 93% { transform: translate(4px, -3px); text-shadow: -5px 0 var(--ink), 5px 0 #7A6500; } 95% { transform: translate(-2px, 0) skewX(6deg); text-shadow: 3px 0 var(--ink); } 97% { transform: none; text-shadow: none; } }
@keyframes drift { from { background-position: 0 0, 0 0; } to { background-position: -400px 0, -800px 0; } }
@keyframes shipfly { 0% { left: -380px; } 100% { left: calc(100% + 40px); } }
@keyframes gfly-r { 0% { left: -120px; } 100% { left: calc(100% + 20px); } }
@keyframes gfly-l { 0% { left: calc(100% + 20px); } 100% { left: -120px; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-28px) rotate(4deg); } }
@keyframes beam { 0%, 100% { opacity: .15; } 50% { opacity: .55; } }
@keyframes boom { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes hurt { 0% { filter: brightness(3); } 100% { filter: none; } }
@keyframes popup { 0% { transform: translate(-50%, 10px) scale(.6); opacity: 0; } 15% { transform: translate(-50%, 0) scale(1.1); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(-50%, -40px) scale(1); opacity: 0; } }
@keyframes flash { 0% { opacity: .7; } 100% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
@keyframes bump { 0% { transform: scale(1.5) rotate(-6deg); } 100% { transform: scale(1) rotate(-3deg); } }
@keyframes flip { 0% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
@keyframes roll { 0% { left: -90px; transform: rotate(0); } 100% { left: calc(100% + 20px); transform: rotate(1080deg); } }
@keyframes rainbow { from { filter: hue-rotate(0); } to { filter: hue-rotate(360deg); } }
@keyframes paw { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(6deg) translateY(-1.5%); } }
@keyframes boop { 0% { transform: scale(1); } 35% { transform: scale(1.18) rotate(-3deg); } 100% { transform: scale(1); } }
@keyframes eye { 0% { opacity: 0; transform: scale(.4); } 20% { opacity: 1; transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes ring { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .stars, .track, .screen, .screen-box.flip, .cursor, .gif, .cam, .title, .title span, .shaking, .overload,
    .ship-bob, .ship-beam, .spin, .twinkle, .cat-paw, .cat.boop, .big-pew { animation: none; }
    .ship { animation-duration: 14s; }
}
