@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

:root {
  --black: #000;
  --white: #fff;
  --yellow: #FFE600;
  --red: #E8001D;
  --cyan: #00B4D8;
  --green: #39ff14;
  --bg: #f0e8c8; /* carta da giornale ingiallita */
  --ink: #1a1a1a;
  --border: 3px solid #1a1a1a;
  --shadow: 4px 4px 0 #1a1a1a;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Press Start 2P', 'Courier New', monospace;
  font-size: 11px;
}

/* The page itself (html) is the scroller. Keep overflow-x hidden HERE, not on
   body — on body it silently breaks position:sticky for #stage. body must grow
   with its content (min-height, no fixed height) so the sticky stage can pin
   across the whole scroll. */
html { height: 100%; overflow-x: hidden; }

body {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 28px;
  gap: 8px;
  min-height: 100dvh;
  /* notebook lines */
  background-image: repeating-linear-gradient(
    transparent, transparent 23px,
    rgba(0,0,80,0.08) 24px
  );
}

/* ── HEADER ── */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: var(--border);
  background: var(--yellow);
  box-shadow: var(--shadow);
  padding: 8px 10px;
  position: relative;
  z-index: 100;
}

/* hamburger */
#btn-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 30px;
  height: 30px;
  padding: 6px;
  background: transparent;
  border: 2px solid var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
#btn-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

/* dropdown */
#menu-dropdown {
  position: fixed;
  top: 55px;
  right: 0;
  background: var(--ink);
  border-left: var(--border);
  border-bottom: var(--border);
  z-index: 200;
  display: flex;
  flex-direction: column;
}
#menu-dropdown.hidden { display: none; }
.menu-item {
  display: block;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--bg);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: rgba(255,255,255,0.08); }

/* comment modal */
#comment-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
#comment-modal.hidden { display: none; }
#comment-box {
  background: var(--bg);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  width: min(90vw, 360px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#comment-title {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--ink);
}
#comment-text {
  font-family: inherit;
  font-size: 8px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  padding: 8px;
  resize: vertical;
  min-height: 90px;
  letter-spacing: 0.5px;
  line-height: 1.8;
}
#comment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
#comment-actions button {
  font-family: inherit;
  font-size: 8px;
  letter-spacing: 1px;
  padding: 7px 12px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
#btn-invia {
  background: var(--ink) !important;
  color: var(--bg) !important;
}

#title {
  font-size: 11px;
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: 1px;
}

#subtitle {
  font-size: 7px;
  color: var(--ink);
  opacity: 0.6;
  display: block;
  margin-top: 4px;
}

#header-logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

#header-wave {
  display: block;
  width: 24px;
  height: 14px;
  flex-shrink: 0;
  image-rendering: auto;
}

#leds {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.led-group { display: flex; gap: 5px; align-items: center; }
.led {
  width: 10px; height: 10px;
  border: 2px solid var(--ink);
  background: #555;
  image-rendering: pixelated;
}
.led-label { font-size: 7px; color: var(--ink); letter-spacing: 1px; }

/* ── ONBOARDING HINT ── */
#onboarding-hint {
  text-align: center;
  padding: 6px 8px;
  background: var(--ink);
}
#onboarding-link {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--yellow);
  text-decoration: none;
}
#onboarding-link:hover { text-decoration: underline; }

/* ── STAGE (sticky) ── keeps the scope + tabs + transport on screen while
   the controls below scroll past. */
#stage {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
  padding: 8px 0;
  box-shadow: 0 5px 0 -1px rgba(0,0,80,0.10);
}

/* ── SCREEN ── */
#screen-wrap {
  border: var(--border);
  box-shadow: var(--shadow);
  background: #000;
  padding: 4px;
  position: relative;
}

canvas {
  display: block;
  width: 100%;
  height: clamp(160px, 36vw, 300px);
  image-rendering: pixelated;
  touch-action: none; /* allow drawing gestures without page scroll */
}

/* fullscreen toggle button, overlaid on the scope */
#btn-fs {
  position: absolute;
  bottom: 8px; right: 10px;
  padding: 6px 8px;
  background: rgba(0,0,0,0.55);
  color: #39ff14;
  border: 2px solid #39ff14;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px; line-height: 1; letter-spacing: 1px;
  cursor: pointer;
  z-index: 6;
  -webkit-tap-highlight-color: transparent;
}
#btn-fs:active { transform: translate(1px,1px); }

/* fake fullscreen: works everywhere (incl. iPhone, which blocks the native API
   on non-video elements) */
#screen-wrap.fs {
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 0;
  border: 0;
  box-shadow: none;
}
#screen-wrap.fs canvas {
  width: 100vw;
  height: 100dvh;
}

#screen-label {
  position: absolute;
  top: 8px; left: 10px;
  font-size: 7px;
  color: #39ff14;
  opacity: 0.7;
  letter-spacing: 2px;
}

/* ── FULLSCREEN MINI-CONTROLS (YouTube-style, auto-hiding) ── */
#fs-bar { display: none; }
#screen-wrap.fs #btn-fs { display: none; }   /* ESCI replaces GIGANTE */
#screen-wrap.fs #fs-bar {
  display: flex;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 10000;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  transition: opacity .25s ease, transform .25s ease;
}
#screen-wrap.fs #fs-bar.hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.fs-btn {
  background: rgba(0,0,0,0.55);
  color: #39ff14;
  border: 2px solid #39ff14;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px; line-height: 1; letter-spacing: 1px;
  padding: 12px 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fs-btn:active { transform: translate(1px,1px); }

.fs-seg { display: flex; gap: 5px; }
.fs-seg button {
  background: rgba(0,0,0,0.55);
  color: #39ff14;
  border: 2px solid #39ff14;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px; line-height: 1; letter-spacing: 1px;
  padding: 12px 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fs-seg button.active { background: #39ff14; color: #000; }
.fs-seg button:active { transform: translate(1px,1px); }

#mode-label {
  position: absolute;
  top: 8px; right: 10px;
  font-size: 7px;
  color: #fff;
  opacity: 0.4;
  letter-spacing: 2px;
}

/* ── CONTROLS ── (the page itself scrolls; the stage above stays pinned) */
#controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-label {
  font-size: 8px;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── TAB BAR ── */
.tabbar {
  display: flex;
  gap: 4px;
}

.tabbar button {
  flex: 1;
  background: var(--white);
  color: var(--ink);
  border: var(--border);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 8px 2px;
  cursor: pointer;
  font-size: 8px;
  font-family: 'Press Start 2P', monospace;
  transition: all .05s;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.4;
}

.tabbar button:active { transform: translate(3px,3px); box-shadow: none; }
.tabbar button.active {
  background: var(--ink);
  color: var(--yellow);
  box-shadow: 3px 3px 0 #555;
}

/* ── CHANNEL CARD ── */
.ch-card {
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--white);
}

.ch-card.ch-odd { background: #fefefe; }

.ch-header {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
}

.ch-dot {
  width: 14px; height: 14px;
  border: 2px solid var(--ink);
  flex-shrink: 0;
  image-rendering: pixelated;
  border-radius: 0 !important;
}

.ch-name {
  font-size: 10px;
  color: var(--ink);
  letter-spacing: 1px;
}

.ch-toggle {
  margin-left: auto;
  background: var(--white);
  border: var(--border);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 4px 8px;
  cursor: pointer;
  font-size: 8px;
  font-family: 'Press Start 2P', monospace;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

.ch-toggle:active { transform: translate(2px,2px); box-shadow: none; }
.ch-toggle.on { background: var(--ink); color: var(--yellow); }

/* ── SEG BUTTONS ── */
.seg {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.seg button {
  flex: 1;
  min-width: 0;
  background: var(--white);
  color: var(--ink);
  border: var(--border);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 7px 2px;
  cursor: pointer;
  font-size: 7px;
  font-family: 'Press Start 2P', monospace;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  line-height: 1.4;
}

.seg button:active { transform: translate(2px,2px); box-shadow: none; }
.seg button.active { background: var(--ink); color: var(--yellow); box-shadow: 2px 2px 0 #555; }

/* ── OSCILLATOR BANK (per-channel additive editor) ── */
.osc-bank {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.osc {
  border: 2px solid var(--ink);
  border-left-width: 6px;        /* coloured spine = the channel colour */
  background: rgba(0,0,0,0.035);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.osc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
}

.osc-title {
  font-size: 9px;
  letter-spacing: 1px;
}

.osc-del {
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 7px;
  font-family: 'Press Start 2P', monospace;
  color: var(--ink);
  letter-spacing: 1px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.osc-del:active { transform: translate(2px,2px); box-shadow: none; }

.osc-add {
  width: 100%;
  padding: 11px;
  cursor: pointer;
  background: var(--white);
  border: 2px dashed var(--ink);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  letter-spacing: 1px;
  -webkit-tap-highlight-color: transparent;
}
.osc-add:active { transform: translate(2px,2px); }

/* ── SLIDER ── */
.row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.slider-row { display: flex; flex-direction: column; gap: 5px; }
.slider-meta { display: flex; justify-content: space-between; align-items: baseline; }

.sl {
  font-size: 9px;
  color: #333;
  letter-spacing: 1px;
}

.slider-meta .sl {
  font-size: 9px;
  color: #333;
  letter-spacing: 1px;
}

.slider-meta .sv {
  font-size: 9px;
  font-family: 'Press Start 2P', monospace;
  color: var(--ink);
}

input[type=range] {
  width: 100%;
  height: 34px;
  cursor: pointer;
  accent-color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  touch-action: pan-y;        /* let vertical page scroll start on the slider too */
}

input[type=range]::-webkit-slider-runnable-track {
  height: 10px;
  background: var(--ink);
  border: 2px solid var(--ink);
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  margin-top: -10px;
  cursor: pointer;
  image-rendering: pixelated;
}
input[type=range]::-moz-range-track { height: 10px; background: var(--ink); border: 2px solid var(--ink); }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 0; }

/* ── Param groups: each parameter + its LFO live in one box ── */
.param-group {
  border: 1px solid rgba(26,26,26,0.18);
  background: rgba(255,255,255,0.28);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.param-group-label {
  font-size: 7px;
  letter-spacing: 2px;
  color: #555;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}
.param-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filter-group { gap: 0; }

/* ADSR envelope section (visible only when LFO rate > 0) */
.lfo-adsr {
  border-top: 1px dashed rgba(26,26,26,0.2);
  padding-top: 5px;
  margin-top: 2px;
}
.lfo-adsr-hidden { display: none; }
.adsr-canvas {
  display: block;
  width: 100%;
  height: 60px;
  cursor: crosshair;
  touch-action: none;
  image-rendering: pixelated;
  margin-top: 2px;
}

/* LFO sub-slider (inside param-group, subordinate style) */
.lfo-row {
  padding-left: 6px;
  border-left: 2px solid rgba(26,26,26,0.15);
}
.lfo-sl {
  font-size: 6px !important;
  color: #777 !important;
  letter-spacing: 1px;
}
.lfo-sv {
  font-size: 7px !important;
  color: #666;
}
.lfo-range {
  height: 22px !important;
}
.lfo-range::-webkit-slider-runnable-track {
  height: 5px !important;
  background: #444 !important;
  border-color: #444 !important;
}
.lfo-range::-webkit-slider-thumb {
  width: 16px !important;
  height: 16px !important;
  background: #aaa !important;
  border-width: 2px !important;
  margin-top: -7px !important;
}
.lfo-range::-moz-range-track { height: 5px !important; background: #444 !important; border-color: #444 !important; }
.lfo-range::-moz-range-thumb { width: 14px !important; height: 14px !important; background: #aaa !important; }

/* editable readout: click the number to type an exact value */
.slider-meta .sv, .mix-head .sv { cursor: text; }
.sv[contenteditable="true"] {
  outline: 2px solid var(--ink);
  background: var(--white);
  padding: 0 3px;
  min-width: 28px;
}

/* dedicated per-channel VISIVO sub-panel */
.subpanel {
  border: 2px solid var(--ink);
  background: rgba(0,0,0,0.04);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.subpanel-label {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── SWATCHES ── */
.swatches {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.swatch {
  width: 22px; height: 22px;
  border: 2px solid var(--ink);
  cursor: pointer;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.swatch.selected {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* ── TRANSPORT ── */
#transport { display: flex; gap: 8px; }

#btn-run {
  flex: 2;
  background: var(--red);
  color: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 12px;
  cursor: pointer;
  font-size: 10px;
  font-family: 'Press Start 2P', monospace;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.6;
}

#btn-run:active { transform: translate(4px,4px); box-shadow: none; }
#btn-run.stopped { background: var(--white); color: var(--ink); }

#btn-clr {
  flex: 1;
  background: var(--white);
  color: var(--ink);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 12px;
  cursor: pointer;
  font-size: 10px;
  font-family: 'Press Start 2P', monospace;
  -webkit-tap-highlight-color: transparent;
}

#btn-clr:active { transform: translate(4px,4px); box-shadow: none; }

/* ── MIXER ── */
.mix-strip { display: flex; flex-direction: column; gap: 8px; }
.mix-strip + .mix-strip { border-top: 2px solid rgba(0,0,0,0.25); padding-top: 14px; margin-top: 6px; }

.mix-head { display: flex; align-items: center; gap: 8px; }
.mix-name { font-size: 8px; color: #fff; letter-spacing: 1px; }
.mix-head .sv { margin-left: auto; font-size: 9px; color: #fff; }

.mix-sl { color: rgba(255,255,255,0.7) !important; }
.mix-sv { color: #fff !important; }

.mix-mute {
  margin-left: auto;
  background: var(--white);
  border: var(--border);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 4px 7px;
  cursor: pointer;
  font-size: 7px;
  font-family: 'Press Start 2P', monospace;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.mix-mute:active { transform: translate(2px,2px); box-shadow: none; }
.mix-mute.muted { background: var(--ink); color: var(--red); }

/* trigger card */
.trigger-card {
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 10px;
  background: var(--cyan);
}

/* ── LINE-INPUT DEVICE PICKER ── */
.input-device {
  width: 100%;
  background: var(--white);
  color: var(--ink);
  border: var(--border);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 8px 6px;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}

/* ── DESKTOP: scope fixed on the left, config panel scrolls on the right ── */
@media (min-width: 860px) {
  html { height: 100%; }
  body.page-body {
    display: flex;
    flex-direction: column;
    max-width: 700px;
    margin: 0 auto;
  }
  body {
    display: grid;
    grid-template-columns: 1fr 400px;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "header header"
      "stage  controls";
    column-gap: 16px;
    height: 100dvh;
    min-height: 0;
    max-width: 1280px;
    margin: 0 auto;
    overflow: hidden;            /* the right panel scrolls itself, not the page */
  }
  #header   { grid-area: header; }
  #stage {
    grid-area: stage;
    position: static;            /* no longer sticky: its column doesn't scroll */
    align-self: stretch;         /* fill the full grid cell height */
    padding: 0;
    box-shadow: none;
    min-width: 0;
    min-height: 0;
  }
  #screen-wrap {
    flex: 1;                     /* grow to consume remaining height after tabs/transport */
    min-height: 0;
  }
  canvas { height: 100%; }      /* fill screen-wrap */
  #controls {
    grid-area: controls;
    height: 100%;
    overflow-y: auto;
    padding: 2px 6px 24px 2px;   /* room for the scrollbar */
  }
}

/* ── Footer ── */
#footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 10px;
  background: var(--ink);
  font-size: 8px;
  letter-spacing: 1px;
}
.footer-link {
  color: var(--bg);
  text-decoration: none;
  opacity: 0.6;
}
.footer-link:hover { opacity: 1; }

/* ── Page overlays (ABOUT / GUIDA) ── */
.page-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.page-overlay.hidden { display: none; }

.page-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.page-close {
  display: block;
  font-family: inherit;
  font-size: 7px;
  letter-spacing: 1px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  margin-bottom: 32px;
}
.page-close:hover { background: #333; }

.page-h1 {
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.4;
}
.page-sub {
  font-size: 8px;
  letter-spacing: 0.5px;
  color: var(--ink);
  opacity: 0.55;
  margin-bottom: 32px;
  line-height: 2;
}
.page-h2 {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--ink);
  border-left: 4px solid var(--yellow);
  padding-left: 8px;
  margin-bottom: 14px;
}
.page-block {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.page-block p, .page-block li {
  font-size: 9px;
  letter-spacing: 0.4px;
  line-height: 2.2;
  color: var(--ink);
}
.page-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 10px;
}
.page-list li::before { content: "— "; }

.page-credit {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-left: 2px solid #ccc;
  padding-left: 10px;
  margin-bottom: 14px;
}
.page-credit-who {
  font-size: 8px;
  letter-spacing: 1px;
  opacity: 0.5;
}
.page-credit-what {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--ink);
}
.page-credit-link {
  font-size: 8px;
  letter-spacing: 0.5px;
  color: var(--ink);
  opacity: 0.6;
  text-decoration: none;
}
.page-credit-link:hover { opacity: 1; text-decoration: underline; }

.page-action-block { gap: 14px; }
.page-btn {
  display: inline-block;
  font-family: inherit;
  font-size: 8px;
  letter-spacing: 1px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border: 2px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.page-btn:hover { background: #333; }
.page-btn-outline {
  background: transparent;
  color: var(--ink);
}
.page-btn-outline:hover { background: rgba(0,0,0,0.06); }

/* ── Ipnorospo dedication ── */
.page-dedica { align-items: center; text-align: center; gap: 14px; }
.hypnotoad-img {
  display: block;
  width: min(280px, 80vw);
  height: auto;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
}
.dedica-text {
  font-size: 9px !important;
  letter-spacing: 1px;
  line-height: 2.2;
}
.dedica-subtext {
  font-size: 8px !important;
  letter-spacing: 2px;
  opacity: 0.55;
  font-style: italic;
}

/* ── Back link ── */
.btn-back {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 28px;
  opacity: 0.7;
}
.btn-back:hover { opacity: 1; text-decoration: underline; }
