/* ──────────────────────────────────────────────────────────────────
   ROBERTO VENTURELLI · personal site
   PIXEL ART · SKEUOMORPHIC EDITION
   Muted retro palette, System-6/7 inspired chrome
   ────────────────────────────────────────────────────────────────── */

:root {
  /* monochrome warm gray — barely a hint of sepia, mostly neutral */
  --bg:        #afa9a0;        /* desktop, warm gray */
  --bg-stripe: #a49e94;

  /* paper / window */
  --paper:     #e8e3d8;        /* off-white with warm tint */
  --paper-2:   #d6d0c2;        /* light warm gray */
  --paper-3:   #bfb8a8;
  --ink:       #1a1816;        /* near-black, hint of warm */
  --ink-soft:  #4a4640;        /* warm dark gray */
  --ink-faint: rgba(26, 24, 22, 0.30);
  --rule:      #1a1816;

  /* skeuo bevel tokens */
  --bevel-hi:  #f4f0e6;
  --bevel-md:  #e8e3d8;
  --bevel-sh:  #8a857a;
  --bevel-dk:  #4a4640;

  /* accent = ink (same color); emphasis via weight / treatment */
  --accent:    #1a1816;
  --accent-2:  #4a4640;

  /* terminal — same monochrome family, dark surface */
  --screen-bg: #14110e;
  --screen-fg: #d4cec0;
  --screen-dim: rgba(212, 206, 192, 0.42);

  --font-display: "Press Start 2P", ui-monospace, monospace;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
  --font-body:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1100px;
  --gutter: 32px;
}

/* ── reset / base ─────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  image-rendering: pixelated;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  /* paper grain via subtle diagonal stripes */
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent 0 4px,
      rgba(0,0,0,0.025) 4px 5px
    );
  background-attachment: fixed;
}

img { image-rendering: pixelated; }

/* very subtle scanlines */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.05) 2px,
    rgba(0,0,0,0.05) 3px);
  z-index: 2000;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
a:hover { color: var(--ink); border-bottom-color: var(--ink); }
::selection { background: var(--accent); color: var(--paper); }

/* ─────────────────────────────────────────────────────────────────
   SKEUOMORPHIC PRIMITIVES
   - .skeuo-win: raised window (highlight top-left, shadow bottom-right)
   - .skeuo-sunken: inset panel (reversed bevel — sunken into surface)
   - .skeuo-btn: physical raised button
   ───────────────────────────────────────────────────────────────── */

.skeuo-win {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh),
    2px 2px 0 rgba(0,0,0,0.35);
}

.skeuo-sunken {
  background: var(--paper-2);
  border: 1px solid var(--ink);
  box-shadow:
    inset 1px 1px 0 var(--bevel-sh),
    inset -1px -1px 0 var(--bevel-hi);
}

.skeuo-btn {
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh),
    1px 1px 0 rgba(0,0,0,0.3);
  cursor: pointer;
}
.skeuo-btn:active {
  box-shadow:
    inset 1px 1px 0 var(--bevel-sh),
    inset -1px -1px 0 var(--bevel-hi);
  transform: translate(1px, 1px);
}

/* Classic Mac title-bar pattern: horizontal stripes */
.skeuo-titlebar {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--ink);
  text-transform: uppercase;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--ink) 0 1px,
    transparent 1px 3px
  );
}
.skeuo-titlebar > .title {
  background: var(--paper);
  padding: 0 8px;
  position: relative;
  z-index: 1;
}
.skeuo-titlebar > .closebox {
  position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  width: 11px; height: 11px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-sh);
  z-index: 1;
}

/* ── LAYOUT ──────────────────────────────────────────────────────── */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

/* ── CHROME (top menubar — Mac System 7 style) ────────────────── */
.chrome {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 1px 0 var(--bevel-hi) inset, 0 -1px 0 var(--bevel-sh) inset;
  position: sticky; top: 0; z-index: 100;
  font-family: var(--font-display);
  font-size: 9px;
}
.chrome-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 16px;
}
.chrome-id { display: flex; gap: 10px; align-items: center; }
.chrome-id .blink { color: var(--accent); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.15; } }
.chrome-nav { display: flex; gap: 16px; }
.chrome-nav a {
  color: var(--ink); border: none;
  padding: 3px 8px;
  text-transform: uppercase;
  font-size: 9px;
}
.chrome-nav a:hover {
  background: var(--ink);
  color: var(--paper);
}
.chrome-meta { display: flex; align-items: center; gap: 12px; }
.chrome-meta #clock {
  font-variant-numeric: tabular-nums;
  font-size: 9px;
  font-family: var(--font-display);
  color: var(--ink-soft);
}
.chrome-meta #reset-btn {
  appearance: none;
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.1em;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 4px 9px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh),
    1px 1px 0 rgba(0,0,0,0.3);
}
.chrome-meta #reset-btn:hover { background: var(--ink); color: var(--paper); }
.chrome-meta #reset-btn:active {
  transform: translate(1px, 1px);
  box-shadow: inset 1px 1px 0 var(--bevel-sh), inset -1px -1px 0 var(--bevel-hi);
}

/* ── LANGUAGE SWITCH (ITA ▢ ENG) ─────────────────────────────────── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.08em;
  user-select: none;
}
.lang-switch .lang-opt {
  appearance: none;
  background: none;
  border: none;
  padding: 2px 1px;
  cursor: pointer;
  color: var(--ink-soft);
  font: inherit;
  letter-spacing: inherit;
  opacity: 0.55;
  transition: opacity 0.12s, color 0.12s;
}
.lang-switch .lang-opt:hover { opacity: 0.85; }
.lang-switch .lang-opt.is-active {
  color: var(--ink);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* the physical toggle track + knob */
.lang-switch .lang-track {
  appearance: none;
  position: relative;
  width: 30px;
  height: 14px;
  padding: 0;
  cursor: pointer;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  box-shadow: inset 1px 1px 0 var(--bevel-sh), inset -1px -1px 0 var(--bevel-hi);
}
.lang-switch .lang-knob {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 12px;
  height: 10px;
  background: var(--ink);
  box-shadow: inset 1px 1px 0 var(--bevel-sh), inset -1px -1px 0 rgba(255,255,255,0.18);
  transition: transform 0.14s steps(3);
}
.lang-switch[data-active="en"] .lang-knob { transform: translateX(14px); }
@media (max-width: 520px) {
  .lang-switch { gap: 5px; }
}
@media (max-width: 520px) {
  .chrome-meta #clock { display: none; }
  .chrome-nav { display: none; }
}

/* ── SECTION HEADERS — Mac title-bar windows ─────────────────────── */
.section {
  padding: 56px var(--gutter) 32px;
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: 68px auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh),
    2px 2px 0 rgba(0,0,0,0.3);
}

.section-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.section-icon img,
.section-icon svg {
  width: 100%; height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  shape-rendering: crispEdges;
}

.section-num {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.section-title {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink);
}
.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-align: right;
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 44px auto 1fr; padding: 8px 10px; }
  .section-icon { width: 40px; height: 40px; }
  .section-num { font-size: 12px; }
  .section-title { font-size: 11px; }
  .section-kicker { display: none; }
}

/* ── HERO ─────────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 44px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px var(--gutter) 64px;
  position: relative;
}
.hero-left { position: relative; z-index: 1; }

.hero-tag {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 22px;
  display: inline-flex; gap: 10px; align-items: center;
  padding: 0;
  background: none;
  border: none;
}
.hero-tag::before { content: "▸"; color: var(--accent); font-family: var(--font-mono); }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.22;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--ink);
}
.hero h1 .amp {
  color: var(--accent);
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  max-width: 50ch;
  margin-top: 18px;
  color: var(--ink-soft);
  background: none;
  padding: 0;
  border: none;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}
.hero-meta {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 8px;
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-meta span {
  background: var(--paper);
  color: var(--ink);
  padding: 6px 10px;
  border: 1px solid var(--ink);
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh);
}
.hero-meta b { color: var(--accent); font-weight: normal; }

/* hero right: classic window with the pixel logo */
.hero-right {
  position: relative; z-index: 1;
  aspect-ratio: 1/1;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh),
    3px 3px 0 rgba(0,0,0,0.3);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.hero-card-bar {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 9px;
  padding: 6px 30px;
  display: flex; justify-content: center; align-items: center;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  position: relative;
  background-image: repeating-linear-gradient(
    to bottom, var(--ink) 0 1px, transparent 1px 3px
  );
}
.hero-card-bar > span:first-child {
  background: var(--paper);
  padding: 0 8px;
  position: relative; z-index: 1;
}
.hero-card-bar .dots {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: flex; gap: 3px;
  background: var(--paper);
  padding: 3px 4px;
  z-index: 1;
}
.hero-card-bar .dots i {
  width: 8px; height: 8px; display: inline-block;
  background: var(--paper-2);
  border: 1px solid var(--ink);
}
.hero-card-bar .dots i:last-child { background: var(--ink); }

.hero-card-logo {
  display: grid; place-items: center;
  padding: 36px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero-card-logo img {
  width: 75%;
  max-width: 360px;
  image-rendering: pixelated;
}
.hero-card-foot {
  background: var(--paper-2);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 8px;
  padding: 6px 12px;
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--ink);
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 var(--bevel-hi);
}

/* ── ABOUT ────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: start;
}
.about-prose {
  background: var(--paper);
  color: var(--ink);
  padding: 28px 32px;
  border: 1px solid var(--ink);
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh),
    3px 3px 0 rgba(0,0,0,0.25);
}
.about-prose p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 16px;
}
.about-prose p:last-child { margin-bottom: 0; }
.about-prose p:first-of-type::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 22px;
  line-height: 1;
  padding: 6px 10px 4px 8px;
  color: var(--accent);
  background: var(--paper-2);
  margin-right: 10px;
  border: 1px solid var(--ink);
  box-shadow: inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-sh);
}

.about-card {
  background: var(--paper-2);
  color: var(--ink);
  padding: 16px 18px;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh),
    3px 3px 0 rgba(0,0,0,0.25);
}
.about-card h4 {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 12px;
  color: var(--accent);
}
.about-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
.about-card dt { color: var(--ink-soft); text-transform: uppercase; font-size: 10px; letter-spacing: 0.08em; }
.about-card dd { text-align: right; color: var(--ink); }
.about-card .ascii {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  line-height: 1.1;
  white-space: pre;
  color: var(--ink-soft);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--ink-faint);
}

/* ── MANIFESTO / QUOTE BLOCK ─────────────────────────────────────── */
.manifesto {
  margin-top: 28px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh),
    3px 3px 0 rgba(0,0,0,0.25);
  padding: 0 28px 30px;
}
.manifesto-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -28px 24px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.1em;
}
.manifesto-bar .dots { display: flex; gap: 5px; }
.manifesto-bar .dots i {
  width: 8px; height: 8px;
  border: 1px solid var(--paper);
  display: inline-block;
}
.manifesto-intro {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.manifesto-add { margin-top: 28px; }
.manifesto-quote {
  position: relative;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--accent);
}
.manifesto-quote p {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 2;
  color: var(--ink);
  text-wrap: pretty;
}
.manifesto-quote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.manifesto-mine p { color: var(--ink); }
.manifesto-mine cite { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) {
  .manifesto-quote p { font-size: 12px; line-height: 1.9; }
}

/* ── COLLECTION ──────────────────────────────────────────────────── */
.collection-intro {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 72ch;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.coll-card {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh),
    2px 2px 0 rgba(0,0,0,0.25);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
.coll-card:hover {
  transform: translate(-1px, -1px);
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh),
    3px 3px 0 rgba(0,0,0,0.3);
}

.coll-tag {
  display: flex; justify-content: space-between;
  padding: 5px 10px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  background-image: repeating-linear-gradient(
    to bottom, var(--ink) 0 1px, transparent 1px 3px
  );
}
.coll-tag span {
  background: var(--paper);
  padding: 0 6px;
}

.coll-img {
  aspect-ratio: 4/3;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  box-shadow: inset 1px 1px 0 var(--bevel-sh), inset -1px -1px 0 var(--bevel-hi);
}
.coll-img::before { display: none; }
.coll-img .placeholder-art {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--ink);
}
.coll-img svg {
  width: 70%; height: 70%;
  image-rendering: pixelated; shape-rendering: crispEdges;
}

.coll-body {
  padding: 12px 14px 6px;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--paper);
}
.coll-name {
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink);
}
.coll-maker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.coll-spec {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 3px 12px;
  padding: 8px 14px 12px;
  border-top: 1px dashed var(--ink-faint);
  background: var(--paper-2);
}
.coll-spec dt { color: var(--ink-faint); }
.coll-spec dd { text-align: right; color: var(--ink); }

/* ── COLLECTION · filtri ─────────────────────────────────────────── */
.coll-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh),
    2px 2px 0 rgba(0,0,0,0.25);
}
.coll-field { display: flex; flex-direction: column; gap: 6px; }
.coll-field label {
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-left: 1px;
}
.coll-select { position: relative; display: inline-flex; }
.coll-select select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--ink);
  padding: 7px 30px 7px 10px;
  min-width: 168px;
  cursor: pointer;
  border-radius: 0;
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh);
}
.coll-select select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.coll-select-arrow {
  position: absolute;
  right: 9px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 10px;
  color: var(--ink-soft);
}
.coll-reset {
  appearance: none;
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 8px 12px;
  cursor: pointer;
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh),
    1px 1px 0 rgba(0,0,0,0.3);
}
.coll-reset:hover { background: var(--ink); color: var(--paper); }
.coll-reset:active {
  transform: translate(1px, 1px);
  box-shadow: inset 1px 1px 0 var(--bevel-sh), inset -1px -1px 0 var(--bevel-hi);
}
.coll-count {
  margin-left: auto;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* link & badge on cards */
a.coll-card { text-decoration: none; cursor: pointer; }
a.coll-card .coll-link-ico {
  position: absolute;
  top: 4px; right: 6px;
  font-size: 11px;
  color: var(--ink-faint);
  transition: color 0.15s;
}
a.coll-card:hover .coll-link-ico { color: var(--accent); }
.coll-img .coll-badge {
  position: absolute;
  bottom: 5px; right: 5px;
  font-family: var(--font-display);
  font-size: 6px;
  letter-spacing: 0.08em;
  padding: 3px 5px;
  background: var(--ink);
  color: var(--paper);
}
.coll-note {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin-top: 2px;
  font-style: italic;
}
.coll-spec dd.st-working,
.coll-spec dd.st-brand-new { color: var(--ink); font-weight: 700; }
.coll-spec dd.st-not-working { color: var(--ink-soft); text-decoration: line-through; }

.coll-empty {
  grid-column: 1 / -1;
  padding: 48px 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  border: 1px dashed var(--ink-faint);
  background: var(--paper-2);
}

/* ── COLLECTION · paginazione ────────────────────────────────────── */
.coll-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.coll-pager-pages { display: flex; flex-wrap: wrap; gap: 6px; }
.coll-page-btn {
  appearance: none;
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.08em;
  min-width: 30px;
  padding: 8px 9px;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh),
    1px 1px 0 rgba(0,0,0,0.3);
}
.coll-page-btn.is-nav { padding: 8px 12px; }
.coll-page-btn:hover:not([disabled]):not(.is-active) { background: var(--paper-3); }
.coll-page-btn:active:not([disabled]) {
  transform: translate(1px, 1px);
  box-shadow: inset 1px 1px 0 var(--bevel-sh), inset -1px -1px 0 var(--bevel-hi);
}
.coll-page-btn.is-active {
  background: var(--ink);
  color: var(--paper);
  cursor: default;
  box-shadow: inset 1px 1px 0 var(--bevel-dk);
}
.coll-page-btn[disabled] { opacity: 0.35; cursor: default; }
@media (max-width: 520px) {
  .coll-count { margin-left: 0; width: 100%; }
  .coll-select select { min-width: 140px; }
}

/* ── GAME ─────────────────────────────────────────────────────────── */
.game-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
}
.game-info {
  background: var(--paper);
  color: var(--ink);
  padding: 24px 28px;
  border: 1px solid var(--ink);
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh),
    3px 3px 0 rgba(0,0,0,0.25);
}
.game-info h3 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 18px;
  text-transform: uppercase;
  color: var(--accent);
}
.game-info p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
  max-width: 56ch;
  color: var(--ink);
}
.game-meta {
  margin-top: 22px;
  border-top: 1px dashed var(--ink-faint);
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
}
.game-meta dt { color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; }
.game-meta dd { color: var(--ink); }
.game-keys {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  align-items: center;
}
.game-keys kbd {
  display: inline-block;
  padding: 4px 7px;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh),
    1px 1px 0 rgba(0,0,0,0.25);
  font-family: var(--font-mono);
  font-size: 10px;
  min-width: 20px;
  text-align: center;
}

/* ── GAME · ARCHIVE (screenshots + download CTA) ─────────────────── */
.game-archive {
  margin-top: 32px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh),
    3px 3px 0 rgba(0,0,0,0.25);
}
.game-archive-head {
  border-bottom: 1px dashed var(--ink-faint);
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.game-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.shot {
  position: relative;
  padding: 18px;
  border-right: 1px dashed var(--ink-faint);
}
.shot:last-child { border-right: none; }
.shot-img {
  position: relative;
  background: #000;
  border: 1px solid var(--ink);
  padding: 6px;
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh);
  aspect-ratio: 4/3;
  overflow: hidden;
}
.shot-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  display: block;
  filter: saturate(0.95) contrast(1.04);
}
.shot-img::after {
  content: "";
  position: absolute; inset: 6px;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px,
    rgba(255,255,255,0.04) 2px, rgba(255,255,255,0.04) 3px);
}
.shot figcaption {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.shot-no {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.shot-cap { color: var(--ink); }

.game-download {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-top: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease;
}
.game-download:hover { background: #000; }
.game-download .dl-ico {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--paper);
  border-radius: 2px;
  color: var(--paper);
}
.game-download .dl-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.game-download .dl-body b {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--paper);
  text-transform: uppercase;
}
.game-download .dl-body small {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--paper);
  opacity: 0.6;
  text-transform: uppercase;
}
.game-download .dl-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.game-download .dl-status {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--paper);
  border-radius: 2px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--paper);
  text-transform: uppercase;
  opacity: 1;
}
.game-download .arrow {
  font-size: 16px;
  color: var(--paper);
  transition: transform 120ms ease;
}
.game-download:hover .arrow { transform: translateX(4px); }
.game-download.shake { animation: dlShake 0.5s ease-in-out; }
@keyframes pendingPulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
@keyframes dlShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

@media (max-width: 820px) {
  .game-gallery { grid-template-columns: 1fr; }
  .shot { border-right: none; border-bottom: 1px dashed var(--ink-faint); }
  .shot:last-child { border-bottom: none; }
  .game-download { grid-template-columns: auto 1fr; }
  .game-download .dl-meta { grid-column: 1 / -1; justify-content: space-between; }
}

/* ── CONTACT ─────────────────────────────────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.contact-left {
  background: var(--paper);
  color: var(--ink);
  padding: 28px 32px;
  border: 1px solid var(--ink);
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh),
    3px 3px 0 rgba(0,0,0,0.25);
}
.contact-left h3 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.3;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--ink);
}
.contact-left p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  max-width: 44ch;
  margin-bottom: 22px;
  color: var(--ink-soft);
}
.contact-links {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.contact-links a {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 12px;
  padding: 10px 12px;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh),
    1px 1px 0 rgba(0,0,0,0.25);
  align-items: center;
}
.contact-links a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.contact-links a:active {
  transform: translate(1px, 1px);
  box-shadow: inset 1px 1px 0 var(--bevel-sh), inset -1px -1px 0 var(--bevel-hi);
}
.contact-links .arrow { color: var(--accent); transition: transform 0.15s; }
.contact-links a:hover .arrow { transform: translateX(4px); color: var(--paper); }

/* ── MAIL MODAL ──────────────────────────────────────────────────── */
.mail-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.mail-modal.is-open { display: flex; }
.mail-backdrop {
  position: absolute; inset: 0;
  background: rgba(26, 24, 22, 0.55);
  backdrop-filter: blur(1px);
}
.mail-win {
  position: relative;
  width: 100%; max-width: 460px;
  box-shadow:
    inset 1px 1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-sh),
    6px 7px 0 rgba(0,0,0,0.35);
  animation: mail-pop 0.14s steps(3) both;
}
@keyframes mail-pop {
  from { transform: translateY(-8px) scale(0.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.mail-closebox { padding: 0; cursor: pointer; }
.mail-closebox:hover { background: var(--ink); }

.mail-body {
  padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.mail-to {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display);
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--ink-faint);
  padding-bottom: 10px;
}
.mail-to code {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0;
  color: var(--accent); text-transform: none;
}
.mail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mail-body input,
.mail-body textarea {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--ink);
  box-shadow: inset 1px 1px 0 var(--bevel-sh), inset -1px -1px 0 var(--bevel-hi);
  padding: 8px 10px;
  border-radius: 0;
  resize: vertical;
}
.mail-body input::placeholder,
.mail-body textarea::placeholder { color: var(--ink-faint); }
.mail-body input:focus,
.mail-body textarea:focus {
  outline: none;
  background: var(--paper);
  box-shadow: inset 1px 1px 0 var(--bevel-sh), inset -1px -1px 0 var(--bevel-hi), 0 0 0 1px var(--ink);
}
.mail-hint {
  font-family: var(--font-mono);
  font-size: 11px; line-height: 1.4;
  color: var(--ink-soft);
  margin: 2px 0 0;
}
.mail-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 4px;
}
.mail-actions .skeuo-btn {
  font-family: var(--font-display);
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 14px; cursor: pointer;
}
.mail-actions .mail-send { background: var(--ink); color: var(--paper); }
.mail-actions .mail-send:hover { background: var(--ink-soft); }
.mail-actions .skeuo-btn:active { transform: translate(1px, 1px); }

@media (max-width: 520px) {
  .mail-row { grid-template-columns: 1fr; }
}

/* terminal — inset CRT panel */
.terminal {
  background: var(--screen-bg);
  color: var(--screen-fg);
  font-family: "VT323", ui-monospace, monospace;
  font-size: 19px;
  line-height: 1.3;
  padding: 20px 22px;
  border: 1px solid var(--ink);
  position: relative;
  min-height: 320px;
  box-shadow:
    inset 1px 1px 0 var(--bevel-sh),
    inset -1px -1px 0 var(--bevel-hi),
    inset 0 0 60px rgba(184, 201, 168, 0.08);
}
.terminal::before {
  content: "ROBBY-TTY";
  position: absolute; top: -10px; left: 14px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 8px;
  padding: 3px 8px;
  letter-spacing: 0.15em;
  border: 1px solid var(--ink);
  box-shadow: inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-sh);
}
.terminal .prompt { color: var(--screen-dim); }
.terminal .cmd { color: var(--screen-fg); }
.terminal .out { color: var(--screen-fg); opacity: 0.92; }
.terminal .out.dim { opacity: 0.5; }
.terminal .cursor::after { content: "▌"; animation: blink 1s steps(2) infinite; }

/* ── FOOTER ──────────────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--ink);
  box-shadow: 0 1px 0 var(--bevel-hi) inset;
  padding: 28px var(--gutter) 48px;
  margin-top: 64px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  background: var(--paper-2);
}
.foot .right { text-align: right; }
.foot-break {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0.7;
}
.foot-break kbd {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  background: var(--paper);
  color: var(--ink);
  padding: 1px 5px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: 1px 1px 0 var(--ink);
  letter-spacing: 0.05em;
}
.foot-break-lbl { opacity: 0.85; }
.foot .ascii-mark {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  white-space: pre;
  line-height: 1.3;
  color: var(--ink-faint);
  margin-top: 10px;
}

/* ── BOOT OVERLAY (kept blue + Atari self-test) ───────────────── */
#boot-overlay {
  position: fixed; inset: 0;
  background: #2858f0;
  color: #ffffff;
  font-family: "VT323", monospace;
  font-size: 22px;
  line-height: 1.25;
  z-index: 9999;
  padding: 48px 8vw;
  white-space: pre-wrap;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: opacity 0.4s ease;
  scrollbar-width: none;
}
#boot-overlay::-webkit-scrollbar { display: none; }

/* Command prompt (Ctrl+C break) */
.boot-prompt-line {
  display: flex; align-items: baseline;
  flex-wrap: wrap;
}
.boot-prompt-head { color: #ffffff; }
.boot-prompt-text { color: #ffffff; }
.boot-cursor {
  display: inline-block;
  margin-left: 1px;
  animation: bootCursorBlink 1s steps(2, start) infinite;
}
@keyframes bootCursorBlink {
  to { visibility: hidden; }
}
#boot-overlay .skip {
  position: fixed; bottom: 18px; right: 24px;
  opacity: 0.75;
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  z-index: 2;
}
#boot-overlay.fade { opacity: 0; pointer-events: none; }
#boot-overlay::after {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom,
    rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.30) 2px, rgba(0,0,0,0.30) 3px);
  z-index: 1;
}
#boot-overlay > .crt-vignette {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

/* ── HEARTS.SYS · fullscreen demo shell ─────────────────────────── */
#hearts-demo {
  position: fixed; inset: 0;
  z-index: 10000;
  background: #07060a;
  display: grid;
  grid-template-rows: auto 1fr auto;
  font-family: "JetBrains Mono", monospace;
  color: #f7f5ee;
  animation: hdFadeIn 0.45s ease both;
}
@keyframes hdFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#hearts-demo .hd-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 22px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: #0e0a14;
  border-bottom: 1px solid #1f1828;
  position: relative;
  z-index: 3;
}
#hearts-demo .hd-bar-bot {
  border-top: 1px solid #1f1828;
  border-bottom: none;
  font-size: 9px;
  color: #8a7e9a;
}
#hearts-demo .hd-tag {
  color: #ffd255;
}
#hearts-demo .hd-title {
  color: #ff5e7a;
  letter-spacing: 0.35em;
  font-weight: 700;
}
#hearts-demo .hd-hint {
  color: #a89bbd;
}
#hearts-demo .hd-blink {
  color: #ff5e7a;
  animation: hdBlink 1.2s steps(2, start) infinite;
}
@keyframes hdBlink {
  to { opacity: 0.2; }
}
#hearts-demo .hd-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(120, 60, 180, 0.18), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(220, 60, 100, 0.14), transparent 60%),
    #0a0810;
}
#hearts-demo .hd-mount {
  display: flex;
  align-items: center;
  justify-content: center;
}
#hearts-demo .hd-scaler {
  /* match the arcade cabinet exactly — no scaling */
  width: min(560px, 92vw);
}
#hearts-demo.is-play .hd-scaler {
  /* the piano is naturally wider */
  width: min(1100px, 96vw);
}
#hearts-demo.is-basic .hd-stage {
  /* BASIC fills the stage edge-to-edge */
  padding: 0;
  background: #1a1a1d;
}
#hearts-demo.is-basic .hd-mount {
  width: 100%;
  height: 100%;
  align-items: stretch;
  justify-content: stretch;
}
#hearts-demo.is-basic .hd-scaler {
  width: 100%;
  height: 100%;
}
#hearts-demo.is-logo .hd-stage {
  padding: 0;
  background: #1f1f23;
}
#hearts-demo.is-logo .hd-mount {
  width: 100%;
  height: 100%;
  align-items: stretch;
  justify-content: stretch;
}
#hearts-demo.is-logo .hd-scaler {
  width: 100%;
  height: 100%;
}
#hearts-demo .hd-mount .puyo-cabinet {
  /* override the mocked cabinet shadow so it reads on the dark stage */
  box-shadow:
    inset 0 0 0 2px #2a2218,
    inset 0 0 0 4px #15110a,
    0 12px 60px rgba(0,0,0,0.6);
}

/* ── PLAY.SYS · piano ────────────────────────────────────────── */
.play-piano {
  background: #15110a;
  border: 1px solid #f7f5ee;
  border-radius: 12px;
  padding: 20px 22px 24px;
  box-shadow:
    inset 0 0 0 2px #2a2218,
    inset 0 0 0 4px #15110a,
    0 12px 60px rgba(0,0,0,0.6);
  position: relative;
  font-family: "JetBrains Mono", monospace;
  color: #f7f5ee;
}
.play-piano::before {
  content: "PLAY · MODEL-8";
  position: absolute;
  top: -10px; left: 22px;
  font-size: 9px;
  letter-spacing: 0.2em;
  background: #f7f5ee;
  color: #15110a;
  padding: 2px 8px;
  border: 1px solid #f7f5ee;
  text-transform: uppercase;
}
.play-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #4d3a2a;
  margin-bottom: 14px;
}
.play-title {
  font-size: 14px;
  letter-spacing: 0.28em;
  color: #ffd255;
}
.play-meta {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #a89bbd;
}
.play-demo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.play-demo-lbl {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: #8a7e9a;
  margin-right: 4px;
}
.play-demo button {
  background: #0e0a14;
  color: #f7f5ee;
  border: 1px solid #4d3a2a;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 6px 12px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.12s, transform 0.08s;
}
.play-demo button:hover { background: #2a2218; }
.play-demo button:active { transform: translateY(1px); }
.play-demo .play-stop {
  border-color: #ff5e7a;
  color: #ff5e7a;
}
.play-demo .play-stop:hover { background: #2a0d18; }

/* Instrument + drum banks */
.play-banks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.play-bank {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.play-bank-lbl {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: #8a7e9a;
  margin-right: 4px;
}
.play-pad {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0e0a14;
  color: #f7f5ee;
  border: 1px solid #4d3a2a;
  font-family: "JetBrains Mono", monospace;
  padding: 5px 8px 5px 5px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.12s, transform 0.08s, border-color 0.12s, box-shadow 0.12s;
}
.play-pad:hover { background: #2a2218; }
.play-pad:active { transform: translateY(1px); }
.play-pad .pad-key {
  font-size: 10px;
  line-height: 1;
  padding: 3px 5px;
  border: 1px solid #4d3a2a;
  border-radius: 2px;
  background: #07060a;
  color: #a89bbd;
}
.play-pad .pad-name {
  font-size: 10px;
  letter-spacing: 0.16em;
}
/* selected instrument — amber */
.play-inst.is-sel {
  border-color: #ffd255;
  box-shadow: inset 0 0 0 1px #ffd255;
}
.play-inst.is-sel .pad-key { border-color: #ffd255; color: #ffd255; }
.play-inst.is-sel .pad-name { color: #ffd255; }
/* active drum beat — pink, with a running pulse */
.play-drum.is-sel {
  border-color: #ff5e7a;
  box-shadow: inset 0 0 0 1px #ff5e7a;
}
.play-drum.is-sel .pad-key { border-color: #ff5e7a; color: #ff5e7a; }
.play-drum.is-sel .pad-name { color: #ff5e7a; }
.play-drum.is-hit {
  background: #2a0d18;
  box-shadow: inset 0 0 0 1px #ff5e7a, 0 0 12px rgba(255,94,122,0.5);
}

@media (max-width: 720px) {
  .play-banks { grid-template-columns: 1fr; gap: 10px; }
  .play-pad .pad-name { display: none; }
}

/* Keyboard */
.play-keys {
  position: relative;
  width: 100%;
  aspect-ratio: 7 / 2;
  max-height: 280px;
  background: #07060a;
  border: 2px solid #2a2218;
  border-radius: 6px;
  overflow: hidden;
}
.play-whites,
.play-blacks {
  position: absolute; inset: 0;
}
.play-whites {
  display: grid;
  grid-template-columns: repeat(var(--white-count, 14), 1fr);
  z-index: 1;
}
.play-blacks {
  pointer-events: none;
  z-index: 2;
}
.play-blacks .play-key {
  pointer-events: auto;
}
.play-key {
  appearance: none;
  border: none;
  margin: 0;
  padding: 0;
  font-family: "JetBrains Mono", monospace;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 10px;
  gap: 4px;
  transition: background 0.06s, transform 0.06s, box-shadow 0.06s;
  user-select: none;
}
.play-key:focus { outline: none; }

.play-white {
  background: linear-gradient(180deg, #f7f5ee 0%, #d9d4c4 100%);
  color: #15110a;
  border-right: 1px solid #15110a;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.10);
}
.play-white:last-child { border-right: none; }
.play-white.is-down,
.play-white:active {
  background: linear-gradient(180deg, #ffd255 0%, #d99b1a 100%);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.25), inset 0 4px 12px rgba(0,0,0,0.2);
  transform: translateY(1px);
}

.play-black {
  position: absolute;
  top: 0;
  width: calc(100% / var(--white-count, 14) * 0.64);
  height: 60%;
  background: linear-gradient(180deg, #1a1620 0%, #07060a 90%);
  color: #f7f5ee;
  border: 1px solid #07060a;
  border-radius: 0 0 4px 4px;
  box-shadow:
    inset 0 -4px 0 rgba(255,255,255,0.05),
    0 3px 6px rgba(0,0,0,0.6);
  padding-bottom: 6px;
  z-index: 3;
}
.play-black.is-down,
.play-black:active {
  background: linear-gradient(180deg, #ff5e7a 0%, #7a1e2e 100%);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.4);
  transform: translateY(1px);
}

.play-key-note {
  font-size: 10px;
  letter-spacing: 0.1em;
  opacity: 0.7;
}
.play-key-note sub {
  font-size: 8px;
  opacity: 0.7;
}
.play-key-cap {
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 2px 5px;
  border: 1px solid currentColor;
  opacity: 0.6;
  border-radius: 2px;
  min-width: 14px;
  text-align: center;
}
.play-black .play-key-note,
.play-black .play-key-cap {
  opacity: 0.55;
}

.play-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #8a7e9a;
  text-transform: uppercase;
}
.play-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffd255;
}
.play-now .dot {
  color: #ff5e7a;
  animation: hdBlink 1.2s steps(2, start) infinite;
}

@media (max-width: 720px) {
  .play-keys { aspect-ratio: 5 / 2; }
  .play-key-cap { display: none; }
  .play-key-note { font-size: 8px; }
}

/* ── RVBASIC.SYS · BASIC interpreter ─────────────────────────── */
.rvb-host {
  width: 100%;
  height: 100%;
  display: block;
  background: #1f1f23;
  font-family: "VT323", "JetBrains Mono", monospace;
  color: #ffffff;
}
.rvb-term {
  width: 100%;
  height: 100%;
  padding: 32px 48px;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 22px;
  line-height: 1.25;
  white-space: pre-wrap;
  letter-spacing: 0.02em;
  scrollbar-width: thin;
  scrollbar-color: #4a4a52 transparent;
}
.rvb-term::-webkit-scrollbar { width: 10px; }
.rvb-term::-webkit-scrollbar-thumb { background: #4a4a52; }
.rvb-term::-webkit-scrollbar-track { background: transparent; }
.rvb-out > div { min-height: 1.25em; }
.rvb-input-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}
.rvb-prompt { color: #ffffff; margin-right: 4px; }
.rvb-cmd    { color: #ffffff; }
.rvb-cursor {
  display: inline-block;
  margin-left: 1px;
  color: #ffffff;
  animation: rvbCursorBlink 1s steps(2, start) infinite;
}
@keyframes rvbCursorBlink {
  to { visibility: hidden; }
}

@media (max-width: 720px) {
  .rvb-term { padding: 18px 22px; font-size: 18px; }
}

/* ── RVLOGO.SYS · LOGO turtle graphics ────────────────────────── */
.logo-host {
  width: 100%;
  height: 100%;
  display: block;
  background: #1f1f23;
  color: #ffffff;
  font-family: "VT323", "JetBrains Mono", monospace;
}
.logo-root {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 0;
}
.logo-stage {
  position: relative;
  background: #1f1f23;
  border-right: 1px solid #2a2a30;
  overflow: hidden;
}
.logo-canvas,
.logo-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}
.logo-overlay {
  pointer-events: none;
}
.logo-side {
  background: #15151a;
  display: flex;
  flex-direction: column;
}
.logo-term {
  flex: 1;
  padding: 18px 20px;
  overflow-y: auto;
  font-size: 18px;
  line-height: 1.3;
  scrollbar-width: thin;
  scrollbar-color: #4a4a52 transparent;
}
.logo-out > div { min-height: 1.3em; white-space: pre-wrap; }
.logo-input-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  margin-top: 4px;
}
.logo-prompt { color: #ffd255; margin-right: 6px; }
.logo-cmd    { color: #ffffff; }
.logo-cursor {
  display: inline-block;
  margin-left: 1px;
  color: #ffffff;
  animation: rvbCursorBlink 1s steps(2, start) infinite;
}

@media (max-width: 720px) {
  .logo-root { grid-template-columns: 1fr; grid-template-rows: 1.4fr 1fr; }
  .logo-stage { border-right: none; border-bottom: 1px solid #2a2a30; }
  .logo-term { font-size: 15px; padding: 12px 14px; }
}
#hearts-demo .hd-scanlines {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(to bottom,
    rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.18) 2px, rgba(0,0,0,0.18) 3px);
}
#hearts-demo .hd-vignette {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.65) 100%);
}

@media (max-height: 720px) {
  #hearts-demo .hd-stage { padding: 12px; }
  #hearts-demo .hd-bar   { padding: 8px 16px; }
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 820px) {
  :root { --gutter: 18px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 24px; gap: 28px; }
  .hero-right { aspect-ratio: 1/1; max-width: 360px; }
  .about-grid, .game-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .collection-grid { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; text-align: center; }
  .foot .right { text-align: center; }
  .foot-break { justify-content: center; }
}
