:root {
  --paper: #f8f4e9;
  --ink: #3e3039;
  --pink: #cd6187;
  --wine: #ac3d66;
  --rose: #f3ccd9;
  --mint: #dce9c8;
  --lavender: #e3d9ee;
  --mono: 'Courier New', Courier, monospace;
  --line: 2px solid var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 22px; }
body { margin: 0; color: var(--ink); background-color: var(--paper); background-image: linear-gradient(#3e303907 1px,transparent 1px),linear-gradient(90deg,#3e303907 1px,transparent 1px); background-size: 28px 28px; font-family: Arial,Helvetica,sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid #276959; outline-offset: 5px; }
button:disabled { cursor: wait; opacity: .7; }
svg { display: block; width: 100%; height: 100%; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.site-shell { max-width: 1110px; margin: auto; padding: 0 36px; }
.site-header { display: flex; align-items: center; gap: 24px; padding: 25px 0 20px; border-bottom: var(--line); }
.brand { display: flex; align-items: center; font-size: 28px; font-weight: 800; letter-spacing: -2px; min-height: 44px; }
.brand-mark { display: grid; place-items: center; background: var(--pink); border: var(--line); width: 39px; height: 37px; box-shadow: 2px 2px 0 var(--ink); color: var(--paper); margin-right: 13px; }
.brand-mark svg { width: 22px; height: 20px; }
.brand-plus { font-size: 20px; margin: 0 3px; font-weight: 400; }
.brand-dot { color: var(--wine); }
.header-note { font: 12px var(--mono); margin-left: auto; }
.arcade-link { font: 700 12px var(--mono); min-height: 44px; display: flex; align-items: center; gap: 14px; padding-left: 24px; border-left: 1px solid #3e303940; }
.arcade-link:hover { color: var(--wine); }
.welcome-line { display: flex; align-items: center; gap: 9px; font: 10px var(--mono); letter-spacing: 1px; margin: 22px 0 13px; }
.online-dot { width: 6px; height: 6px; background: #5c8052; border-radius: 50%; }
.welcome-line > span:last-child { margin-left: auto; color: var(--pink); font-size: 22px; }
.window { border: var(--line); background: #fffdf7; box-shadow: 4px 4px 0 var(--ink); }
.window-bar { min-height: 36px; border-bottom: var(--line); display: flex; justify-content: space-between; align-items: center; padding: 7px 13px; font: 11px var(--mono); gap: 10px; }
.window-bar > span:first-child { display: flex; align-items: center; gap: 8px; }
.hero-bar { background: var(--pink); color: #fffdf5; font-weight: bold; }
.tiny-heart { width: 13px; height: 12px; }
.window-buttons { font: 16px var(--mono); white-space: nowrap; letter-spacing: 5px; }
.hero-body { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); gap: 35px; padding: 43px 39px 34px; align-items: center; }
.eyebrow, .section-kicker { font: 10px/1.5 var(--mono); letter-spacing: 1px; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
h1 { font: 700 clamp(61px,6.5vw,80px)/.96 Georgia,'Times New Roman',serif; letter-spacing: -4px; margin: 21px 0 23px; color: var(--wine); }
.ampersand { font-style: italic; font-weight: 400; color: var(--ink); font-size: .73em; }
.title-period { color: var(--ink); }
.hero-intro { font-size: 19px; line-height: 1.4; font-weight: 600; letter-spacing: -.45px; margin: 0 0 12px; }
.hero-note { font-size: 13px; line-height: 1.65; margin: 0 0 24px; color: #71616b; }
.button { min-height: 47px; border: var(--line); background: var(--paper); display: inline-flex; align-items: center; justify-content: center; gap: 18px; font: 700 12px var(--mono); padding: 12px 17px; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s,box-shadow .15s; }
.button:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.button:active { transform: translate(3px,3px); box-shadow: 0 0 0 var(--ink); }
.hero-button { background: var(--mint); }
.hero-button > span:first-child { font-size: 19px; line-height: 1; }
.photo-composition { position: relative; padding: 18px 0 0; }
.polaroid { position: relative; margin: 0; background: #fffdf7; border: var(--line); padding: 10px 10px 0; transform: rotate(2.5deg); box-shadow: 5px 6px 0 #3e303924; }
.polaroid img { display: block; width: 100%; height: 278px; object-fit: cover; object-position: 53% 60%; border: 1px solid var(--ink); }
.polaroid figcaption { display: flex; align-items: center; justify-content: space-between; font: italic 22px Georgia,serif; padding: 16px 7px 18px; gap: 6px; }
.polaroid figcaption span { font-size: 29px; color: var(--wine); line-height: 1; }
.photo-sticker { position: absolute; z-index: 2; right: -10px; top: -12px; width: 93px; height: 93px; background: var(--mint); border: var(--line); border-radius: 50%; transform: rotate(12deg); display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; font: 700 13px/1.1 var(--mono); box-shadow: 2px 2px 0 var(--ink); }
.photo-sticker span { font-size: 8px; font-weight: 400; margin-top: 6px; }
.photo-sparkle { position: absolute; color: var(--wine); width: 33px; height: 33px; left: -21px; top: -1px; }
.photo-footnote { font: 9px var(--mono); display: flex; align-items: center; gap: 6px; margin: 22px 1px 0; }
.photo-footnote > span:first-child { font-size: 20px; }
.photo-footnote > span:last-child { margin-left: auto; white-space: nowrap; }
.hero-status { background: #f0eadf; border-top: var(--line); padding: 11px 15px; display: flex; justify-content: space-between; gap: 12px; font: 9px var(--mono); letter-spacing: .5px; }
.status-heart { color: var(--wine); margin-right: 5px; }
.ticker { overflow: hidden; margin: 24px 0; border-block: var(--line); padding: 11px 0; background: var(--rose); }
.ticker-track { display: flex; width: max-content; animation: marquee 35s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track > span { white-space: nowrap; flex-shrink: 0; font: 700 10px var(--mono); letter-spacing: 1px; }
.ticker b { padding: 0 23px; font-size: 14px; }
.widgets { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 24px; align-items: stretch; }
.clock-window { background: var(--mint); display: flex; flex-direction: column; }
.clock-window .window-bar { background: #cbdcaf; }
h2 { font: 700 34px/1.1 Georgia,'Times New Roman',serif; letter-spacing: -1.2px; margin: 9px 0 22px; }
.clock-body { padding: 32px 25px 25px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.clock { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.clock > div { background: #fbfff1; border: var(--line); text-align: center; padding: 14px 2px 11px; box-shadow: 2px 2px 0 #3e303929; }
.clock > div > span { display: block; font: 700 38px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -3px; }
.clock small { display: block; font: 9px var(--mono); letter-spacing: .7px; margin-top: 8px; }
.clock-caption { font: 11px/1.6 var(--mono); margin: 20px 0 26px; }
.clock-caption > span:last-child { color: #526841; }
.clock-caption > span:last-child > span { color: var(--wine); }
.clock-date { display: flex; align-items: center; gap: 11px; font: 9px var(--mono); color: #5c714c; white-space: nowrap; }
.clock-date > span:nth-child(2) { flex: 1; overflow: hidden; }
.music-window { background: #f9e4eb; }
.music-window .window-bar { background: var(--rose); }
.music-body { padding: 23px 20px 10px; }
.music-body h2 { font-size: 29px; margin: 8px 0 4px; }
.music-body h2 > span { font: italic 17px Georgia,serif; letter-spacing: -.4px; white-space: nowrap; }
.song-artist { font: 11px var(--mono); margin: 8px 0 18px; color: #735866; }
.youtube-player { display: block; width: 100%; aspect-ratio: 16/9; min-height: 200px; border: 1px solid var(--ink); background: #38282f; }
.youtube-link { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font: 10px var(--mono); text-decoration: underline; text-underline-offset: 3px; }
.youtube-link > span { font-size: 17px; text-decoration: none; }
.arcade-window { margin-top: 25px; background: var(--lavender); }
.arcade-window .window-bar { background: #d0c1e0; }
.arcade-body { display: grid; grid-template-columns: 138px minmax(0,1fr) auto; gap: 23px; align-items: center; padding: 25px 29px; }
.arcade-art { height: 126px; position: relative; }
.arcade-heart { position: absolute; filter: drop-shadow(3px 3px 0 var(--ink)); color: var(--pink); }
.heart-a { width: 70px; height: 65px; left: 26px; top: 28px; transform: rotate(-13deg); }
.heart-b { width: 38px; height: 35px; left: 80px; top: 7px; color: #f5e59c; transform: rotate(10deg); }
.heart-c { width: 31px; height: 29px; left: 4px; top: 77px; color: #fff8ed; transform: rotate(12deg); }
.plus-score { position: absolute; right: 1px; bottom: 8px; font: 700 18px var(--mono); color: #765187; }
.arcade-twinkle { position: absolute; color: #876194; font-size: 24px; top: 5px; left: 5px; }
.arcade-copy h2 { margin: 8px 0 11px; }
.arcade-copy p { font-size: 13px; line-height: 1.6; margin: 0; color: #63546e; }
.arcade-action { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.game-button { background: var(--pink); color: #fffdf5; border: var(--line); font: 700 12px var(--mono); min-height: 47px; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: space-between; gap: 23px; box-shadow: 3px 3px 0 var(--ink); }
.best-score { font: 9px var(--mono); letter-spacing: .3px; }
.signoff { display: flex; align-items: center; justify-content: center; gap: 29px; margin: 38px 0 32px; }
.signoff > span { color: var(--wine); font-size: 22px; }
.signoff p { font: 12px/1.8 var(--mono); text-align: center; margin: 0; }
.signoff p > span { font: italic 29px/1.5 Georgia,serif; color: var(--wine); }
footer { border-top: var(--line); display: flex; align-items: center; gap: 18px; padding: 18px 0 max(25px,env(safe-area-inset-bottom)); font: 9px var(--mono); }
.retro-badge { display: flex; align-items: center; gap: 6px; font-size: 8px; line-height: 1.5; }
.retro-badge svg { width: 13px; height: 12px; color: var(--wine); flex-shrink: 0; }
footer > p { margin-left: auto; white-space: nowrap; }
footer > a { display: flex; align-items: center; min-height: 44px; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* Game: native modal focus management, large touch targets, no page scrolling. */
.game-dialog { width: min(500px,calc(100% - 24px)); max-height: calc(100dvh - 28px); padding: 0; border: 2px solid var(--ink); color: var(--ink); background: var(--paper); box-shadow: 6px 6px 0 #161927; overflow: hidden; }
.game-dialog::backdrop { background: #111426c9; backdrop-filter: blur(3px); }
.game-dialog .window-bar { display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: var(--mint); padding-left: 14px; font: 10px var(--mono); min-height: 46px; }
.close-game { width: 46px; height: 46px; border: 0; background: transparent; color: inherit; font: 28px var(--mono); }
.game-hud { display: flex; justify-content: space-between; font: 10px var(--mono); padding: 15px; background: var(--mint); border-bottom: 2px solid var(--ink); }
.game-hud b { font-size: 20px; margin-left: 4px; }
.game-field { position: relative; overflow: hidden; height: min(450px,58dvh); min-height: 240px; background-image: radial-gradient(#3e303920 1px,transparent 1px); background-size: 20px 20px; }
.game-screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px; z-index: 3; background: var(--paper); }
.game-screen[hidden], .game-rules[hidden], .countdown[hidden] { display: none; }
.game-screen-heart { font-size: 45px; color: var(--wine); line-height: 1; }
.game-screen h2 { font-size: 37px; line-height: .95; letter-spacing: -2px; margin: 15px 0; }
.game-screen p { font: 12px/1.5 var(--mono); margin: 0; }
.game-rules { display: flex; gap: 16px; margin: 22px 0; font: 700 16px var(--mono); }
.game-screen .game-small { font-size: 10px; margin-top: 18px; }
.game-screen .game-button { margin-top: 12px; }
.game-bottom { background: var(--ink); color: var(--mint); font: 10px var(--mono); padding: 12px; text-align: center; min-height: 38px; }
.countdown { position: absolute; inset: 0; display: grid; place-items: center; background: var(--paper); z-index: 4; font: 900 100px Arial,sans-serif; }
.tap-heart { position: absolute; display: grid; place-items: center; width: 64px; height: 64px; border: 0; background: transparent; font-size: 43px; padding: 0; user-select: none; -webkit-user-select: none; touch-action: manipulation; animation: heart-arrive .18s ease-out; }
.tap-heart.is-caught { font: 700 25px var(--mono); pointer-events: none; color: var(--ink); animation: point-pop .45s ease-out forwards; }
body.game-open { overflow: hidden; }
@keyframes dot-blink { 50% { opacity: .25; } }
@keyframes levels { to { height: 16px; } }
@keyframes heart-arrive { from { transform: scale(.3); } to { transform: scale(1); } }
@keyframes point-pop { to { transform: translateY(-20px); opacity: 0; } }
/* Modal chrome follows the same window treatment as the page. */
.game-dialog { color: var(--ink); }
.game-dialog .window-bar { background: var(--pink); color: #fffdf5; padding: 0 0 0 14px; }
.game-dialog .game-bottom { background: var(--lavender); color: var(--ink); border-top: var(--line); }
.game-dialog .game-hud { background: var(--mint); }
@media (min-width: 1250px) {
  .hero-body { padding: 44px 43px 36px; gap: 40px; }
  .polaroid img { height: 292px; }
}
@media (max-width: 900px) and (min-width: 761px) {
  .hero-body { padding: 35px 27px 28px; gap: 20px; }
  h1 { font-size: 58px; letter-spacing: -3px; }
  .hero-note { font-size: 12px; }
  .polaroid img { height: 244px; }
  .photo-footnote { font-size: 8px; gap: 4px; }
  .polaroid figcaption { font-size: 18px; }
  .clock-body { padding-inline: 17px; }
  .clock { gap: 6px; }
  .clock > div > span { font-size: 32px; }
  .music-body { padding-inline: 15px; }
  .music-body h2 { font-size: 26px; }
  .arcade-body { grid-template-columns: 108px minmax(0,1fr) auto; padding: 23px; gap: 16px; }
  .arcade-copy h2 { font-size: 29px; }
  .arcade-copy p { font-size: 12px; }
  .arcade-art { transform: scale(.8); transform-origin: left center; }
}
@media (max-width: 760px) {
  .site-shell { padding: 0 22px; }
  .header-note { display: none; }
  .arcade-link { margin-left: auto; border: 0; padding-left: 10px; }
  .site-header { padding: 17px 0 13px; }
  .welcome-line { margin: 19px 0 11px; font-size: 9px; }
  .hero-body { grid-template-columns: minmax(0,1fr); padding: 28px 25px 23px; gap: 25px; }
  h1 { font-size: clamp(59px,12vw,84px); letter-spacing: -3.5px; margin: 17px 0 19px; }
  .hero-intro { font-size: 18px; }
  .hero-note { font-size: 13px; max-width: 360px; margin-bottom: 20px; }
  .desktop-break { display: none; }
  .hero-button { min-height: 46px; }
  .photo-composition { width: 100%; max-width: 430px; margin: 0 auto; padding: 18px 7px 0; }
  .polaroid img { height: 250px; }
  .photo-sticker { width: 82px; height: 82px; right: -1px; top: 0; font-size: 12px; }
  .photo-sticker span { font-size: 8px; }
  .polaroid figcaption { font-size: 22px; padding: 14px 4px; }
  .photo-sparkle { left: -6px; top: 3px; width: 27px; height: 27px; }
  .photo-footnote { margin-top: 18px; font-size: 8px; gap: 4px; }
  .hero-status { font-size: 8px; letter-spacing: 0; padding: 11px; }
  .hero-status > span:last-child { white-space: nowrap; }
  .widgets { grid-template-columns: minmax(0,1fr); gap: 23px; }
  .clock-body { padding: 25px; }
  .clock > div > span { font-size: clamp(27px,9vw,42px); }
  .clock-caption { margin-bottom: 20px; }
  .clock-date { font-size: 9px; }
  .music-body { padding: 24px 20px 9px; }
  .music-body h2 { font-size: 30px; }
  .music-body h2 > span { font-size: 18px; }
  .youtube-link { font-size: 11px; }
  .arcade-body { grid-template-columns: 88px minmax(0,1fr); gap: 14px; padding: 24px; }
  .arcade-art { height: 108px; }
  .heart-a { width: 51px; height: 47px; left: 13px; top: 26px; }
  .heart-b { width: 28px; height: 26px; left: 55px; top: 6px; }
  .heart-c { width: 24px; height: 22px; left: 0; top: 68px; }
  .plus-score { font-size: 15px; right: 0; bottom: 4px; }
  .arcade-twinkle { font-size: 19px; top: 6px; left: 1px; }
  .arcade-copy h2 { font-size: 29px; }
  .arcade-copy .section-kicker { font-size: 8px; letter-spacing: .5px; }
  .arcade-copy p { font-size: 12px; line-height: 1.5; }
  .arcade-action { grid-column: 1/-1; flex-direction: row; justify-content: space-between; gap: 10px; margin-top: 9px; }
  .arcade-action .button { min-width: 145px; }
  .best-score { font-size: 8px; white-space: nowrap; }
  .signoff { gap: 23px; margin: 31px 0 26px; }
  footer { flex-wrap: wrap; justify-content: space-between; gap: 5px 10px; padding-top: 20px; }
  .retro-badge { width: 100%; justify-content: center; margin-bottom: 7px; font-size: 8px; }
  footer > p { margin-left: 0; font-size: 8px; }
}
@media (max-width: 380px) {
  .site-shell { padding: 0 15px; }
  .window-bar { font-size: 10px; padding-inline: 10px; }
  .window-buttons { letter-spacing: 3px; }
  .hero-body { padding: 25px 19px 20px; }
  h1 { font-size: clamp(47px,15.3vw,58px); letter-spacing: -3px; }
  .eyebrow { font-size: 9px; gap: 6px; }
  .hero-intro { font-size: 17px; }
  .hero-note { font-size: 12px; }
  .polaroid img { height: 217px; }
  .polaroid figcaption { font-size: 19px; }
  .photo-footnote { font-size: 7px; }
  .hero-status { font-size: 7px; }
  .clock-body { padding: 23px 17px; }
  .clock { gap: 7px; }
  .clock > div > span { font-size: clamp(25px,8.4vw,32px); letter-spacing: -2px; }
  .clock small { font-size: 8px; }
  .clock-caption { font-size: 10px; }
  .music-body { padding-inline: 15px; }
  .music-body h2 { font-size: 26px; }
  .music-body h2 > span { font-size: 16px; }
  .arcade-body { grid-template-columns: 76px minmax(0,1fr); padding: 22px 16px; gap: 9px; }
  .arcade-copy h2 { font-size: 26px; }
  .arcade-copy p { font-size: 11px; }
  .best-score { font-size: 7px; }
  .arcade-action .button { min-width: 130px; }
  .retro-badge { font-size: 7px; }
  .game-screen h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* A tiny hardware-inspired player around the official YouTube playback. */
.retro-deck { padding: 13px; border: 1px solid #866978; background: #ddbecb; box-shadow: inset 2px 2px 0 #fff6fa,inset -2px -2px 0 #b48d9e,3px 3px 0 #755364; }
.deck-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 8px var(--mono); margin: 0 0 10px; }
.deck-label > span:first-child { font-weight: 900; letter-spacing: 1px; }
.deck-display { display: flex; gap: 17px; align-items: center; background: #334037; color: #dce9c8; padding: 13px 12px; border: 2px solid #947986; border-bottom-color: #fff1f7; border-right-color: #fff1f7; margin-bottom: 12px; box-shadow: inset 2px 2px 0 #1b271e; }
.deck-display > div:first-child { flex-shrink: 0; }
#song-state { display: block; font: 8px var(--mono); letter-spacing: .6px; margin-bottom: 7px; }
#song-time { display: block; font: 30px/1 var(--mono); letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.deck-track { min-width: 0; flex: 1; font: 8px/1.5 var(--mono); }
.deck-equalizer { display: flex; gap: 3px; align-items: flex-end; height: 22px; margin-top: 5px; }
.deck-equalizer i { width: 4px; height: 3px; background: #dce9c8; }
.is-playing .deck-equalizer i { animation: deck-levels .6s infinite alternate; }
.is-playing .deck-equalizer i:nth-child(3n+1) { animation-delay: -.3s; animation-duration: .8s; }
.is-playing .deck-equalizer i:nth-child(3n+2) { animation-delay: -.6s; animation-duration: .4s; }
.retro-deck .youtube-player { margin: 0; min-height: 202px; }
.seek-caption { display: flex; justify-content: space-between; margin-top: 13px; font: 8px var(--mono); }
.song-seek { width: 100%; height: 30px; margin: 0 0 8px; display: block; appearance: none; background: transparent; cursor: pointer; touch-action: pan-y; }
.song-seek::-webkit-slider-runnable-track { height: 5px; background: #8e6c7b; border-bottom: 1px solid #fff6f9; }
.song-seek::-moz-range-track { height: 4px; background: #8e6c7b; }
.song-seek::-webkit-slider-thumb { appearance: none; width: 15px; height: 19px; margin-top: -7px; background: #fff8ee; border: 1px solid #765866; border-top: 2px solid #fff; box-shadow: 1px 1px 0 #765866; }
.song-seek::-moz-range-thumb { width: 15px; height: 19px; background: #fff8ee; border: 1px solid #765866; border-radius: 0; }
.song-seek:focus-visible { outline: 3px solid #276959; outline-offset: 3px; }
.deck-controls { display: grid; grid-template-columns: 44px minmax(72px,1fr) 44px 60px; gap: 6px; }
.deck-controls button { min-height: 45px; padding: 8px 4px; background: #f9edf0; border: 1px solid #967887; border-top-color: white; border-left-color: white; box-shadow: 1px 1px 0 #755364; font: 700 11px var(--mono); }
.deck-controls #song-restart { font-size: 25px; line-height: 1; }
.deck-controls button:active { box-shadow: inset 1px 1px 0 #755364; transform: translate(1px,1px); }
.deck-controls #song-play { background: var(--mint); }
.deck-controls #song-mute[aria-pressed=true] { background: var(--mint); }
.deck-message { font: 8px/1.5 var(--mono); margin: 13px 0 0; min-height: 12px; }
@keyframes deck-levels { to { height: 22px; } }
@media (max-width: 380px) {
  .retro-deck { padding: 10px; }
  .deck-display { padding: 12px 9px; gap: 10px; }
  #song-time { font-size: 27px; }
  .deck-track { font-size: 7px; }
  .deck-controls { grid-template-columns: 40px minmax(58px,1fr) 40px 52px; gap: 4px; }
  .deck-controls button { font-size: 10px; }
}
