/* Mauno Kiiskinen's portfolio: a late-night video shop somewhere in a PlayStation 1 kind of dark
   In order: basics, hero, tape strips, the player (TV, VCR, card), cassettes, the two shelves, about, footer, small screens, motion */

@font-face { font-family: "Pixelify Sans"; font-weight: 400 700; font-display: swap; src: url(https://fonts.gstatic.com/s/pixelifysans/v3/CHylV-3HFUT7aC4iv1TxGDR9Jn0Eiw.woff2) format("woff2"); }
@font-face { font-family: "Permanent Marker"; font-display: swap; src: url(https://fonts.gstatic.com/s/permanentmarker/v16/Fh4uPib9Iyv2ucM6pGQMWimMp004La2Cfw.woff2) format("woff2"); }

:root {
	--night: #0b0a12;
	--cream: #f6eccb;
	--candle: #ffb462;
	--tape: #e2d3a2;
	--ink: #17131f;
	--blood: #9c0700;
	--shell: #24212d;
	--shell-dark: #1b1924;
	--shell-light: #4d4760;
	--shell-edge: #3d3849;
	--pixel: "Pixelify Sans", ui-monospace, monospace;
	--marker: "Permanent Marker", "Comic Sans MS", cursive;
	--spring: cubic-bezier(.3, 1.7, .5, 1);
}

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

html { background: var(--night); scroll-behavior: smooth; scrollbar-color: var(--shell-light) var(--night); }

body {
	margin: 0;
	overflow-x: hidden;
	font: 18px/1.5 var(--pixel);
	color: var(--cream);
	cursor: url(../media/cursor.png), auto;
}

a { color: var(--candle); }
img { max-width: 100%; }
::selection { background: var(--candle); color: var(--night); }
:focus-visible { outline: 3px solid var(--candle); outline-offset: 3px; }

.icons { position: absolute; width: 0; height: 0; }

.skip { position: absolute; left: -999px; top: 12px; z-index: 50; padding: 6px 12px; background: var(--cream); color: var(--ink); }
.skip:focus { left: 12px; }

/* The fog drifts behind everything, with scanlines over it */
.fog { position: fixed; inset: 0; z-index: -1; background: url(../media/fog.gif) 50% 0 / 576px; image-rendering: pixelated; }
.fog::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(#0000 0 2px, #0004 0 3px); }

/* The page comes on like an old television */
.boot { position: fixed; inset: 0; z-index: 60; pointer-events: none; background: #000; animation: boot 1s linear forwards; }
.boot::after { content: ""; position: absolute; inset: 50% 0 auto; height: 2px; background: #fff; box-shadow: 0 0 30px 8px #fff9; animation: boot-line 1s ease-out forwards; }
@keyframes boot { 0%, 40% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes boot-line { 0% { scale: 0 1; } 35% { scale: 1 1; opacity: 1; } 70% { scale: 1 260; opacity: .35; } 100% { scale: 1 400; opacity: 0; } }

/* ---- Hero */

.hero { position: relative; padding-bottom: 36px; text-align: center; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(#0000 0 2px, #0003 0 3px); }

#candle { display: block; width: 100%; height: clamp(260px, 43vw, 620px); image-rendering: pixelated; cursor: pointer; opacity: 0; outline-offset: -8px; transition: opacity 1.2s; }
#candle.is-lit { opacity: 1; }
#candle[hidden] { display: none; }
.no-js #candle { display: none; }

.hero__fallback { display: block; width: min(960px, 100%); height: auto; margin: 0 auto; image-rendering: pixelated; }
.hero__fallback[hidden] { display: none; }

.hero__osd { position: absolute; inset: 0 0 auto; height: clamp(260px, 43vw, 620px); color: #fff; font-size: clamp(11px, 1.4vw, 18px); font-weight: 700; letter-spacing: 2px; line-height: 1.3; text-shadow: 2px 2px #000; text-transform: uppercase; opacity: .85; pointer-events: none; }
.no-js .hero__osd { display: none; }
.hero__rec { position: absolute; top: 5%; left: 3%; }
.hero__rec::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .5em; border-radius: 50%; background: #e2231a; animation: blink 1.2s steps(1) infinite; }
.hero__stamp { position: absolute; right: 3%; bottom: 5%; text-align: right; white-space: pre-line; }
.hero__hint { position: absolute; bottom: 5%; left: 3%; color: var(--candle); animation: blink 1.6s steps(1) infinite; }
.hero__hint.is-done { display: none; }

.hero__name { position: relative; z-index: 1; margin-top: clamp(-34px, -2.4vw, -10px); }
.hero__name h1 { margin: 0; font-size: clamp(30px, 5vw, 58px); }
.hero__role { margin: 12px 0 0; font-size: clamp(15px, 1.9vw, 22px); letter-spacing: 3px; text-transform: uppercase; color: var(--candle); text-shadow: 2px 2px #000; }

.nav { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 30px; margin-top: 22px; }
.nav a { padding: 2px 6px; color: var(--cream); font-weight: 700; letter-spacing: 2px; text-decoration: none; text-transform: uppercase; text-shadow: 2px 2px #000; }
.nav a::before { content: "\25B6\A0"; color: var(--candle); opacity: 0; }
.nav a:hover, .nav a:focus-visible { color: var(--candle); }
.nav a:hover::before, .nav a:focus-visible::before { animation: blink .8s steps(1) infinite; }

/* ---- Tape strips: marker handwriting on torn masking tape */

.tape {
	display: inline-block;
	padding: .15em .7em .1em;
	background: #e2d3a2f0;
	color: var(--ink);
	font-family: var(--marker);
	font-weight: 400;
	line-height: 1.2;
	rotate: -1.5deg;
	clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 30%, 100% 55%, calc(100% - 3px) 80%, 100% 100%, 0 100%, 4px 75%, 0 50%, 3px 25%);
}

/* ---- Sections */

.section { position: relative; padding: clamp(46px, 7vw, 96px) 0 10px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section__eyebrow { margin: 0 0 12px; color: var(--candle); font-size: 14px; font-weight: 700; letter-spacing: 3px; text-shadow: 2px 2px #000; text-transform: uppercase; }
.section__title { margin: 0 0 36px; font-size: clamp(26px, 3.4vw, 40px); }
.section__lead { margin: -20px 0 38px; color: #cfc6a8; }

/* ---- The player: a television, the VCR under it and a card with the tape's notes */

.player { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.no-js .player { display: none; }

.tv { position: relative; padding: 18px 18px 0; border-radius: 16px 16px 6px 6px; background: linear-gradient(#37333f, var(--shell) 30%, var(--shell-dark)); box-shadow: inset 0 2px var(--shell-light), 0 0 0 1px var(--shell-edge), 10px 10px #0009; }

.tv__screen { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 10; border-radius: 26px / 22px; background: #050409; box-shadow: 0 0 0 5px var(--night), 0 0 0 6px var(--shell-light); }
.tv__picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.tv__picture[hidden] { display: none; }

.tv__static { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; }
.tv.is-tuning .tv__static { opacity: 1; }

.tv__empty { display: none; position: absolute; inset: 0; margin: 0; place-content: center; background: #1420b4; color: #fff; font-size: clamp(20px, 3vw, 34px); font-weight: 700; letter-spacing: 3px; line-height: 1.3; text-align: center; text-transform: uppercase; }
.tv__empty span { font-size: .5em; font-weight: 400; letter-spacing: 1px; }
.tv.is-empty .tv__empty { display: grid; }
.tv.is-empty .tv__picture, .tv.is-empty .osd, .tv.is-empty .tv__start { display: none; }

/* Glass: a glare, scanlines and darker corners. "Clean picture" takes it all off */
.tv__crt { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, #ffffff1c 0, #fff0 30%), repeating-linear-gradient(#0000 0 2px, #00000052 0 3px), radial-gradient(ellipse at center, #0000 60%, #000000b0 100%); }
.tv.is-clean .tv__crt { display: none; }
.tv.is-clean .tv__screen { border-radius: 6px; }

.osd { position: absolute; margin: 0; color: #fff; font-size: clamp(13px, 1.9vw, 21px); font-weight: 700; letter-spacing: 2px; line-height: 1.2; text-shadow: 2px 2px #000; text-transform: uppercase; pointer-events: none; transition: opacity .4s; }
.osd--mode { top: 7%; left: 6%; }
.osd--channel { top: 7%; right: 6%; color: #86ff95; }
.osd--title { bottom: 7%; left: 6%; max-width: 62%; text-align: left; }
.osd--time { bottom: 7%; right: 6%; font-variant-numeric: tabular-nums; }
.tv.is-quiet .osd { opacity: 0; }
.tv.is-quiet:hover .osd, .tv.is-quiet:focus-within .osd { opacity: 1; }

.tv__start { position: absolute; inset: 0; display: none; place-items: center; width: 92px; height: 68px; margin: auto; border: 3px solid var(--cream); background: #0b0a12d9; color: var(--cream); cursor: pointer; }
.tv__start svg { width: 28px; height: 28px; fill: currentColor; }
.tv__start:hover, .tv__start:focus-visible { border-color: var(--night); background: var(--candle); color: var(--night); }
.tv.can-start .tv__start { display: grid; }

.tv__panel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 6px; }
.tv__brand { margin-right: auto; color: #8c84a3; font-size: 14px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.tv__brand i { color: var(--candle); font-style: normal; }
.tv__led { width: 8px; height: 8px; border-radius: 50%; background: #c21807; box-shadow: 0 0 8px #c21807; }

.knob { padding: 6px 10px; border: 0; border-radius: 3px; background: var(--shell-dark); box-shadow: inset 0 1px var(--shell-light), 0 2px var(--night); color: var(--cream); font: 700 13px var(--pixel); letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
.knob::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #3a3545; }
.knob[aria-pressed="true"]::before { background: var(--candle); box-shadow: 0 0 6px var(--candle); }
.knob:hover { color: var(--candle); }
.knob:active { translate: 0 2px; box-shadow: inset 0 1px var(--shell-light); }

.vcr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 14px; align-items: center; margin-top: 12px; padding: 12px 16px; border-radius: 6px; background: linear-gradient(#322e3c, var(--shell-dark)); box-shadow: inset 0 2px var(--shell-light), 0 0 0 1px var(--shell-edge), 10px 10px #0009; }

.vcr__slot { grid-column: 1 / -1; position: relative; height: 40px; overflow: hidden; border-radius: 3px; background: #07060b; box-shadow: inset 0 4px #000, 0 1px var(--shell-light); }
.vcr__tape { position: absolute; inset: 5px 12px 0; display: grid; place-items: center; border-radius: 3px 3px 0 0; background: linear-gradient(var(--shell-light) 2px, var(--shell) 0); translate: 0 -120%; transition: translate .5s steps(8); }
.vcr.has-tape .vcr__tape { translate: 0 0; }
.vcr__tape .tape { max-width: 92%; overflow: hidden; padding-block: 0; font-size: 15px; rotate: 0deg; text-overflow: ellipsis; white-space: nowrap; }

.vcr__display { justify-self: start; min-width: 13ch; padding: 6px 10px; border-radius: 3px; background: #07060b; color: var(--candle); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: 2px; text-align: center; text-shadow: 0 0 8px #ffb46299; }

.vcr__buttons { display: flex; gap: 6px; }
.vcr__buttons button { display: grid; place-items: center; width: 44px; height: 36px; border: 0; border-radius: 3px; background: var(--shell-dark); box-shadow: inset 0 1px var(--shell-light), 0 3px var(--night); color: var(--cream); cursor: pointer; }
.vcr__buttons svg { width: 16px; height: 16px; fill: currentColor; }
.vcr__buttons button:hover { color: var(--candle); }
.vcr__buttons button:active { translate: 0 3px; box-shadow: inset 0 1px var(--shell-light); }

.card { position: relative; padding: 0 22px 22px; border: 3px solid var(--ink); background: repeating-linear-gradient(#0000 0 27px, #17131f12 0 28px) var(--cream); box-shadow: 8px 8px #0009; color: var(--ink); font-size: 17px; line-height: 1.45; rotate: .7deg; }
.card .card__head { display: flex; justify-content: space-between; gap: 12px; margin: 0 -22px 16px; padding: 6px 22px; background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.card h3, .tape-notes h3 { margin: 0 0 10px; font: 400 clamp(24px, 2.6vw, 32px)/1.15 var(--marker); }
.card p, .tape-notes p { margin: 0 0 12px; }
.card a { color: var(--blood); font-weight: 700; }
p.tape-notes__meta { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: .7; }
.tape-notes__role strong { display: block; color: var(--blood); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.no-js .tape-notes__role strong { color: var(--candle); }
p.tape-notes__links, p.member__actions { display: flex; flex-wrap: wrap; gap: 12px 14px; }

.rent { display: inline-block; margin-top: 4px; padding: 7px 16px; background: var(--ink); box-shadow: 4px 4px var(--blood); color: var(--cream) !important; letter-spacing: 1px; text-decoration: none; text-transform: uppercase; transition: .15s; }
.rent::after { content: "\A0\25B6"; }
.rent:hover, .rent:focus-visible { translate: -2px -2px; background: var(--blood); box-shadow: 6px 6px var(--ink); }
.rent--plain { background: none; box-shadow: inset 0 0 0 3px var(--ink); color: var(--ink) !important; }
.rent--plain:hover, .rent--plain:focus-visible { box-shadow: 6px 6px var(--ink); color: var(--cream) !important; }

.js .tape-notes { display: none; }

/* ---- Cassettes: a cover sticker, the title on tape and a window with two reels
   The sizes hang on three variables, so the small ones on the top shelf only change those */

.cassette {
	--pad: 9px;
	--reel: 34px;
	--window: 42px;
	position: relative;
	display: block;
	width: 100%;
	padding: var(--pad) var(--pad) calc(var(--pad) - 1px);
	border: 0;
	border-radius: 5px;
	outline: 1px solid var(--shell-edge);
	background: linear-gradient(var(--shell-light) 2px, #0000 0), repeating-linear-gradient(#0000 0 3px, #0005 0 5px) 0 100% / 100% calc(var(--window) + 6px) no-repeat var(--shell);
	box-shadow: 6px 6px #0009;
	color: var(--cream);
	font: inherit;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: rotate .18s var(--spring), scale .18s var(--spring), translate .18s var(--spring), box-shadow .18s, filter .2s;
}

.cassette__label { position: relative; display: block; overflow: hidden; aspect-ratio: 315 / 250; margin: 4px; background: #000; box-shadow: 0 0 0 4px var(--cream); }
.cassette__label img { display: block; width: 100%; height: 100%; object-fit: cover; filter: sepia(.5) saturate(.7) contrast(.85) brightness(1.15); transition: filter .3s; }
.cassette__label--logo img { padding: 8%; object-fit: contain; background: #1d1233; }
/* Over the cover: scanlines and browned edges */
.cassette__label::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(#0000 0 2px, #0003 0 3px), radial-gradient(#0000 45%, #3b230b99); }

.cassette__caption { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 0 10px 16px; background: linear-gradient(#0000 40%, #000d); color: var(--cream); font: 15px/1.2 var(--pixel); text-align: left; text-shadow: 1px 1px #000; text-transform: uppercase; opacity: 0; transition: opacity .2s; }

.cassette__title { position: relative; z-index: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; width: fit-content; max-width: 92%; overflow: hidden; margin: -9px auto 0; padding: 3px 14px 2px; font-size: 20px; }

.cassette__window { display: flex; align-items: center; justify-content: space-between; height: var(--window); margin: 8px 24px 0; padding: 0 19px; border-radius: 3px; background: radial-gradient(circle at 36px, #4a2f22 25px, #0000 0), radial-gradient(circle at calc(100% - 36px), #4a2f22 19px, #0000 0), var(--night); box-shadow: 0 1px var(--shell-light); }

.reel { display: block; width: var(--reel); height: var(--reel); border-radius: 50%; background: radial-gradient(var(--night) 3px, #0000 0), radial-gradient(#0000 12px, var(--cream) 0), repeating-conic-gradient(var(--cream) 0 20deg, var(--night) 0 60deg); }

.cassette__sticker { position: absolute; top: -8px; left: -9px; z-index: 2; padding: 2px 10px 1px; font-size: 13px; rotate: -5deg; }
.cassette__sticker--new { top: 3px; right: 0; left: auto; padding: 3px 14px 2px; font-size: 17px; rotate: 7deg; }

.cassette:hover, .cassette:focus-visible { z-index: 9; box-shadow: 12px 12px #0009; rotate: 0deg; scale: 1.07; translate: 0 -6px; }
.cassette:hover .reel, .cassette:focus-visible .reel, .tape-slot.is-playing .reel { animation: spin 1s linear infinite; }
.cassette:hover .cassette__label img, .cassette:focus-visible .cassette__label img { filter: none; animation: jitter .3s steps(1) infinite; }
.cassette:hover .cassette__caption, .cassette:focus-visible .cassette__caption { opacity: 1; }

.cassette--small { --pad: 6px; --reel: 20px; --window: 26px; border-radius: 4px; }
.cassette--small .cassette__label { margin: 3px; box-shadow: 0 0 0 3px var(--cream); }
.cassette--small .cassette__title { margin-top: -6px; padding: 2px 8px 1px; font-size: 15px; }
.cassette--small .cassette__window { margin: 6px 10px 0; padding: 0 8px; background: radial-gradient(circle at 18px, #4a2f22 15px, #0000 0), radial-gradient(circle at calc(100% - 18px), #4a2f22 11px, #0000 0), var(--night); }
.cassette--small .reel { background: radial-gradient(var(--night) 2px, #0000 0), radial-gradient(#0000 7px, var(--cream) 0), repeating-conic-gradient(var(--cream) 0 20deg, var(--night) 0 60deg); }

/* ---- The two project shelves: professional work and game jams, the tape in the player stands out of its row */

.shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 20px; align-items: end; margin: 48px 0 0; padding: 0 14px; list-style: none; }
.shelf::after { content: ""; grid-column: 1 / -1; height: 16px; margin: 0 -14px; background: linear-gradient(#6b4a30 2px, #3f2b1c 0 11px, #1c120b 0); box-shadow: 8px 8px #0008; }

.tape-slot { position: relative; }
.tape-slot:nth-child(3n+1) .cassette, .tapes li:nth-child(3n+1) .cassette { rotate: -1.4deg; }
.tape-slot:nth-child(3n+2) .cassette, .tapes li:nth-child(3n+2) .cassette { rotate: .4deg; }
.tape-slot:nth-child(3n) .cassette, .tapes li:nth-child(3n) .cassette { rotate: 1.1deg; }
.tape-slot:nth-child(even) .tape, .tapes li:nth-child(even) .cassette__title { rotate: 1deg; }

.tape-slot.is-playing .cassette { outline: 3px solid var(--candle); rotate: 0deg; translate: 0 -18px; }
.tape-slot.is-playing .cassette__label img { filter: none; }

#gamejam .shelf { margin-top: 0; }

.no-js .shelf { display: block; }
.no-js .shelf::after { display: none; }
.no-js .tape-slot { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 44px; }

/* ---- The lower shelf: games on itch.io */

.tapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 34px 26px; margin: 0; padding: 0; list-style: none; }
.tapes:has(.cassette:hover) .cassette:not(:hover) { filter: brightness(.7); }

.js .reveal { opacity: 0; translate: 0 44px; scale: .9; }
.js .reveal.is-in { opacity: 1; translate: 0 0; scale: 1; transition: opacity .5s, translate .5s var(--spring), scale .5s var(--spring); }

/* ---- About: a membership card from the shop */

.member { position: relative; display: grid; grid-template-columns: minmax(150px, 250px) minmax(0, 1fr); gap: 0 30px; max-width: 920px; padding: 0 26px 24px; border: 3px solid var(--ink); border-radius: 14px; background: var(--cream); box-shadow: 10px 10px #0009; color: var(--ink); rotate: -.6deg; }
.member__head { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; margin: 0 -26px 24px; padding: 8px 26px; border-radius: 9px 9px 0 0; background: var(--ink); color: var(--cream); font-size: 14px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }

.member__side { align-self: start; }
.member__photo { position: relative; overflow: hidden; aspect-ratio: 1; border: 3px solid var(--ink); background: var(--ink); box-shadow: 5px 5px #17131f55; rotate: -2deg; }
.member__photo img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 0; padding: 0; list-style: none; }
.badges li { padding: 2px 8px; background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

.member__text h3 { margin: 0 0 8px; font: 400 clamp(26px, 3vw, 38px)/1.1 var(--marker); }
.member__text p { margin: 0 0 20px; line-height: 1.55; }
.member__text a { color: var(--blood); font-weight: 700; }
p.member__lead { font-size: 21px; line-height: 1.4; }
p.member__actions { margin-bottom: 26px; }

.socials { display: flex; flex-wrap: wrap; gap: 12px 14px; margin: 0; padding: 0; list-style: none; }
.socials a { color: var(--ink); font-size: 18px; font-weight: 400; text-decoration: none; transition: scale .15s var(--spring), background .15s; }
.socials li:nth-child(even) a { rotate: 1.2deg; }
.socials a:hover, .socials a:focus-visible { background: var(--candle); scale: 1.1; }

.member__barcode { grid-column: 1 / -1; justify-self: end; width: 190px; height: 34px; margin-top: 20px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, #0000 0 5px, var(--ink) 0 6px, #0000 0 8px, var(--ink) 0 11px, #0000 0 13px); }

/* ---- Footer */

.footer { padding: 80px 16px 64px; color: #7a5a48; font-size: 14px; text-align: center; }
.footer p { margin: 8px 0; }
.footer__rewind a { color: var(--cream); font-size: 16px; letter-spacing: 2px; text-decoration: none; text-transform: uppercase; }
.footer__rewind a:hover, .footer__rewind a:focus-visible { color: var(--candle); }

/* ---- Small screens */

@media (max-width: 900px) {
	.player { grid-template-columns: minmax(0, 1fr); gap: 26px; }
	.card { rotate: 0deg; }
	.shelf { display: flex; overflow-x: auto; scrollbar-color: var(--shell-light) transparent; scrollbar-width: thin; margin-inline: -16px; padding: 26px 16px 18px; scroll-snap-type: x proximity; }
	.shelf::after { display: none; }
	.shelf .tape-slot { flex: 0 0 136px; scroll-snap-align: center; }
}

@media (max-width: 560px) {
	body { font-size: 17px; }
	.tv { padding: 12px 12px 0; }
	.tapes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
	.tapes .cassette { --pad: 6px; --reel: 20px; --window: 26px; }
	.tapes .cassette__title { margin-top: -6px; padding: 2px 8px 1px; font-size: 14px; }
	.tapes .cassette__window { margin: 6px 10px 0; padding: 0 8px; background: radial-gradient(circle at 18px, #4a2f22 15px, #0000 0), radial-gradient(circle at calc(100% - 18px), #4a2f22 11px, #0000 0), var(--night); }
	.tapes .reel { background: radial-gradient(var(--night) 2px, #0000 0), radial-gradient(#0000 7px, var(--cream) 0), repeating-conic-gradient(var(--cream) 0 20deg, var(--night) 0 60deg); }
	.tapes .cassette__sticker { font-size: 11px; }
	.tapes .cassette__sticker--new { font-size: 12px; padding: 2px 8px 1px; }
	.cassette__caption { display: none; }
	.member { grid-template-columns: minmax(0, 1fr); rotate: 0deg; }
	.member__side { margin-bottom: 26px; }
	.member__photo { width: min(200px, 60%); margin: 0 auto; }
	.badges { justify-content: center; }
}

/* ---- Motion */

@keyframes spin { to { rotate: 1turn; } }
@keyframes jitter { 50% { translate: 1px 1px; } }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.boot { display: none; }
}
