@font-face{font-family:'Silkscreen';font-weight:400;font-display:swap;src:url(/fonts/silkscreen-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Grenze Gotisch';font-weight:600;font-display:swap;src:url(/fonts/grenze-gotisch-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-weight:400;font-display:swap;src:url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-weight:600;font-display:swap;src:url(/fonts/ibm-plex-mono-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Cookie';font-weight:400;font-display:swap;src:url(/fonts/cookie-latin-400-normal.woff2) format('woff2')}
/* Shared by the studio home and each game's page (the build adds the @font-face lines for /fonts/). */
:root {
  --void: #0c0b09; --hull: #17150f; --plate: #24201a;
  --bronze: #8a6a3a; --gold: #c9a23a; --ash: #b9b2a3; --bone: #e6dfcf;
}
* { box-sizing: border-box; }
html { background: var(--void); }
body { margin: 0; color: var(--ash); font: 400 15px/1.6 'IBM Plex Mono', ui-monospace, monospace; }
a { color: var(--gold); }
a:focus-visible, .play:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.wrap { max-width: 880px; margin: 0 auto; padding: 28px 16px 40px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.studio { font: 600 34px/1 'Grenze Gotisch', serif; color: var(--bone); letter-spacing: .5px; margin: 0; }
.links { display: flex; gap: 18px; flex-wrap: wrap; }

/* the one loud thing: the game's title screen, set in a riveted bronze plate like a ship's viewport */
.viewport { position: relative; margin: 26px 0 0; padding: 14px; background: linear-gradient(#3a2f20, #241d14); border: 1px solid #4d3d26;
  box-shadow: inset 0 1px 0 #6b5434, inset 0 -2px 0 #120e09, 0 18px 40px -20px #000; }
.viewport::before, .viewport::after { content: ''; position: absolute; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: #6b5434; }
.viewport::before { left: 5px; } .viewport::after { right: 5px; }
.rivets { position: absolute; inset: auto 5px 5px; display: flex; justify-content: space-between; pointer-events: none; }
.rivets i { width: 5px; height: 5px; border-radius: 50%; background: #6b5434; }
.viewport a.shot { display: block; position: relative; overflow: hidden; background: #000; }
.viewport img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; image-rendering: pixelated; }
.viewport a.shot::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,.18) 2px 3px); }

.game { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: end; margin-top: 22px; }
.game h2 { font: 600 44px/1 'Grenze Gotisch', serif; color: var(--bone); margin: 0; }
.ver { font-family: 'Silkscreen', monospace; font-size: 11px; color: var(--bronze); margin-left: 10px; vertical-align: 6px; white-space: nowrap; }
.game p { margin: 6px 0 0; grid-column: 1; max-width: 52ch; }
.play { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: inline-block; padding: 14px 22px; background: var(--gold); color: var(--void);
  font: 400 14px/1 'Silkscreen', monospace; text-decoration: none; border: 1px solid #f0d27a; box-shadow: 0 3px 0 #6e561d; }
.play:hover { background: #ddb84a; }
.play:active { transform: translateY(2px); box-shadow: 0 1px 0 #6e561d; }

.changes { margin-top: 44px; border-top: 1px solid var(--plate); padding-top: 20px; }
.changes > h2 { font: 600 28px/1.1 'Grenze Gotisch', serif; color: var(--bone); margin: 0 0 6px; }
/* one spacer per day: the date, then a rule running to the edge */
.daydate { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; font: 600 21px/1.1 'Grenze Gotisch', serif; color: var(--gold); }
.daydate::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--bronze), transparent); }
.clver h4 { margin: 14px 0 8px; font: 400 11px/1 'Silkscreen', monospace; color: var(--bronze); }
.changes .tz { margin: 0; font-size: 12px; color: #6f695d; }
.cltime { display: inline-block; min-width: 6.2em; margin-right: 6px; color: var(--bronze); font-size: 12px; white-space: nowrap; }
.changes .intro { margin: 0 0 10px; max-width: 72ch; font-size: 14px; }
.changes ul { margin: 0; padding: 0; list-style: none; max-width: 72ch; }
.changes li { position: relative; padding-left: 20px; margin: 0 0 10px; font-size: 14px; }
.changes li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--bronze); transform: rotate(45deg); }
.changes li ul { margin-top: 8px; }
.changes li li { margin-bottom: 6px; }
.changes li li::before { width: 5px; height: 5px; top: .7em; background: none; border: 1px solid var(--bronze); }
.changes code { color: var(--bone); font-size: 13px; }
.changes b { color: var(--bone); font-weight: 600; }

footer { margin-top: 44px; border-top: 1px solid var(--plate); padding-top: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.credits { position: relative; margin-left: auto; }
.creditsbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--bronze); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.creditsbtn:hover, .credits.open .creditsbtn { color: var(--gold); }
.creditsbtn:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.creditspop { display: none; position: absolute; right: 0; bottom: 100%; padding-bottom: 8px; width: min(360px, calc(100vw - 32px)); z-index: 5; }
.credits:hover .creditspop, .credits:focus-within .creditspop, .credits.open .creditspop { display: block; }
.creditsbox { background: var(--hull); border: 1px solid #3a3226; box-shadow: 0 6px 20px rgba(0, 0, 0, .55); padding: 10px 12px; font-size: 12px; line-height: 1.5; color: var(--ash); }
.creditsbox h4 { margin: 0 0 6px; font: 400 11px/1 'Silkscreen', monospace; color: var(--bronze); }
.creditsbox ul { margin: 0; padding: 0; list-style: none; } .creditsbox li + li { margin-top: 6px; }
.about { margin: 0; max-width: 60ch; }
.copy { color: #6f695d; }

@media (max-width: 620px) {
  .studio { font-size: 28px; }
  .game { grid-template-columns: 1fr; }
  .game h2 { font-size: 36px; }
  .play { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 10px; }
  .viewport { padding: 9px; }
}
@media (prefers-reduced-motion: reduce) { .play:active { transform: none; } }

.studio a { color: inherit; text-decoration: none; }
.studio a:hover { color: var(--gold); }
.hright { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
/* Buy Me a Coffee, in the look of BMC's own button */
.donate { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 11px; background: #FFDD00; border: 1px solid #000; border-radius: 12px; color: #000; text-decoration: none; font: 400 25px/1 'Cookie', cursive; white-space: nowrap; box-shadow: 0 2px 0 #0006; }
.donate:hover { background: #ffe633; }
.donate .cup { font: 20px/1 system-ui, 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif; }
.donate:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }

/* the studio home: a title card per game */
.games > h2 { font: 600 28px/1.1 'Grenze Gotisch', serif; color: var(--bone); margin: 34px 0 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 22px; }
.card { display: block; color: var(--ash); text-decoration: none; background: var(--hull); border: 1px solid #4d3d26; box-shadow: inset 0 1px 0 #6b543466, 0 14px 30px -18px #000; }
.card:hover { border-color: var(--bronze); }
.card:hover .cardtitle { color: var(--gold); }
.card:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.card .viewport { margin: 0; padding: 10px; }
.card .shot { display: block; position: relative; overflow: hidden; background: #000; }
.card .shot::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,.18) 2px 3px); }
.cardbody { padding: 12px 16px 16px; }
.cardtitle { font: 600 30px/1.05 'Grenze Gotisch', serif; color: var(--bone); margin: 0; }
.cardbody p { margin: 6px 0 0; font-size: 14px; }
@media (max-width: 620px) { .donate { height: 36px; font-size: 22px; } }
/* the space background (src/spacebg.js) shows on both sides; a dark band behind the page's column keeps text readable */
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 11, 9, 0) calc(50% - 600px), rgba(12, 11, 9, .76) calc(50% - 470px), rgba(12, 11, 9, .76) calc(50% + 470px), rgba(12, 11, 9, 0) calc(50% + 600px)); }
/* the studio home's music player (src/sitemusic.js): mute and volume, bottom left */
.musicbox { position: fixed; left: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px;
  background: rgba(23, 21, 15, .82); border: 1px solid #3a3226; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.musicbox .mute { width: 28px; height: 28px; display: grid; place-items: center; background: none; border: 0; padding: 0; color: var(--gold); cursor: pointer; }
.musicbox .mute:hover { color: var(--bone); }
.musicbox.muted .mute { color: var(--bronze); }
.musicbox .mute:focus-visible, .musicbox input:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.musicbox input { -webkit-appearance: none; appearance: none; width: 96px; height: 4px; margin: 0; cursor: pointer;
  background: linear-gradient(90deg, var(--gold) var(--fill, 50%), #3a3226 var(--fill, 50%)); }
.musicbox input::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 14px; background: var(--bone); border: 1px solid #6e561d; cursor: pointer; }
.musicbox input::-moz-range-thumb { width: 10px; height: 14px; background: var(--bone); border: 1px solid #6e561d; border-radius: 0; cursor: pointer; }
