/* Polices auto-hébergées VT323 (OFL, voir assets/fonts/OFL.txt) — aucune requête vers Google */
@font-face { font-family: "VT323"; src: url("assets/fonts/vt323.woff2") format("woff2"); font-display: swap; }
/* =========================================================
   MALICIOUS MUSIC — un lecteur chromé plein écran, écran LCD
   ========================================================= */
:root {
  --lcd-hi: #c9dacf;
  --lcd: #b4c8bc;
  --lcd-lo: #98aea1;
  --ink: #26332c;
  --ink-2: rgba(38, 51, 44, .82);
  --ink-3: rgba(38, 51, 44, .12);
  --blue: #2450c8;
  --sans: Helvetica, Arial, sans-serif;
  --term: "VT323", "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: #000; font-family: var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

/* =========================================================
   L'APPAREIL — bord à bord
   ========================================================= */
.device {
  --side: clamp(70px, 7.4vw, 104px);
  --top: clamp(44px, 6.4vh, 60px);
  --bottom: clamp(150px, 23vh, 214px);
  --jog: clamp(118px, 19vh, 172px);
  position: fixed; inset: 0; overflow: hidden;
  background: #9aa2ab; /* avant que le châssis soit dessiné */
}
.chassis, .bezel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.chassis { z-index: 0; }
.glass { z-index: 1; }
.bezel { z-index: 2; }
.dev-top, .side, .console { z-index: 3; }

/* ---------- gravures et plaques ---------- */
.engrave { font-size: .66rem; font-weight: 700; letter-spacing: .22em; color: #3d444c; text-shadow: 0 1px 0 rgba(255,255,255,.75); white-space: nowrap; }
.plate {
  display: inline-block; padding: 5px 16px; border-radius: 999px; white-space: nowrap;
  font-size: .58rem; font-weight: 700; letter-spacing: .24em; color: #d5dbe2;
  background: linear-gradient(180deg, #353b42, #15181c);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.8), 0 -1px 0 rgba(0,0,0,.35);
}

/* ---------- LED ---------- */
.led { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #6c7a95, #222b3d 70%); box-shadow: inset 0 1px 2px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.7); transition: background .2s, box-shadow .2s; }
.led.blue.on, [aria-current="page"] .led { background: radial-gradient(circle at 35% 30%, #f2f8ff, #59a2ff 40%, #1550d8 75%); box-shadow: 0 0 6px #3d8bff, 0 0 16px rgba(61,139,255,.75), inset 0 1px 1px rgba(255,255,255,.7); }

/* ---------- boutons ronds chromés ---------- */
.rbtn {
  --s: clamp(40px, 6.4vh, 54px);
  position: relative; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; flex: none;
  color: var(--blue);
  background:
    radial-gradient(70% 45% at 50% 22%, rgba(255,255,255,.95), rgba(255,255,255,0) 70%),
    radial-gradient(circle at 50% 60%, #eef1f4 0 30%, #b9c1ca 62%, #7f8892 100%);
  box-shadow:
    0 0 0 2px #5d656f, 0 0 0 4px #e8ecef, 0 0 0 6px #8c949d, 0 0 0 7px rgba(0,0,0,.35),
    0 6px 10px rgba(0,0,0,.5), inset 0 -5px 8px rgba(0,0,0,.2), inset 0 2px 1px #fff;
  transition: transform .06s, box-shadow .06s;
}
.rbtn svg { width: 52%; height: 52%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 0 rgba(255,255,255,.9)); }
.rbtn.xs { --s: 26px; color: #3d444c; box-shadow: 0 0 0 1px #5d656f, 0 0 0 3px #e8ecef, 0 0 0 4px #8c949d, 0 3px 5px rgba(0,0,0,.45), inset 0 -3px 4px rgba(0,0,0,.2); }
.rbtn.xs svg { stroke-width: 3; }
a:hover > .rbtn, button.rbtn:hover { color: #0b37b8; background: radial-gradient(70% 45% at 50% 22%, #fff, rgba(255,255,255,0) 70%), radial-gradient(circle at 50% 60%, #f6f8fa 0 30%, #c6cdd5 62%, #87909a 100%); }
a:active > .rbtn, button.rbtn:active, [aria-current="page"] > .rbtn {
  transform: translateY(1px);
  background: radial-gradient(circle at 50% 70%, #e9edf1 0 25%, #a9b2bc 70%, #78818b);
  box-shadow: 0 0 0 2px #5d656f, 0 0 0 4px #d3d8dd, 0 0 0 6px #8c949d, 0 0 0 7px rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.4), inset 0 4px 8px rgba(0,0,0,.35);
}
:focus-visible { outline: 2px solid #59a2ff; outline-offset: 4px; border-radius: 999px; }

/* ---------- haut ---------- */
.dev-top { position: absolute; top: 0; left: 0; right: 0; height: var(--top); display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 clamp(14px, 2.4vw, 30px); }
.badge {
  display: flex; align-items: center; gap: 8px; padding: 4px 16px 4px 6px; border-radius: 999px; flex: none;
  background: linear-gradient(180deg, #2c3138, #101215); color: #eef2f6;
  font-weight: 700; font-size: clamp(.85rem, 1.6vw, 1.02rem); letter-spacing: -.02em;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.85);
}
.badge img { height: 26px; width: auto; filter: drop-shadow(0 0 6px rgba(155,59,255,.85)); }
.dev-model { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dev-right { display: flex; align-items: center; gap: 14px; flex: none; }

/* ---------- côtés ---------- */
.side { position: absolute; top: var(--top); bottom: var(--bottom); width: var(--side); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 2.6vh, 26px); }
.side-l { left: 0; } .side-r { right: 0; }
.nav-btn { position: relative; display: grid; justify-items: center; gap: 6px; }
.side-l .nav-btn .led { right: -16px; } .side-r .nav-btn .led { left: -16px; }
.nav-btn b { font-size: .66rem; font-weight: 700; letter-spacing: .06em; color: #3d444c; text-shadow: 0 1px 0 rgba(255,255,255,.75); }
.nav-btn .led { position: absolute; top: calc(clamp(40px, 6.4vh, 54px) / 2 - 5.5px); }
.grille { width: 40px; height: 40px; border-radius: 10px; background: radial-gradient(circle, #23272c 0 1.6px, transparent 2.2px) 0 0 / 8px 8px; opacity: .85; filter: drop-shadow(0 1px 0 rgba(255,255,255,.7)); }

/* =========================================================
   L'ÉCRAN LCD
   ========================================================= */
.glass {
  --bl: 1;
  position: absolute; left: var(--side); right: var(--side); top: var(--top); bottom: var(--bottom);
  display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 38%, var(--lcd-hi), var(--lcd) 55%, var(--lcd-lo));
  color: var(--ink); font-family: var(--term); font-size: clamp(1.1rem, 1.9vw, 1.35rem); line-height: 1.1; letter-spacing: .02em;
  text-shadow: 1px 1px 0 rgba(38,51,44,.22), 0 0 1px rgba(38,51,44,.5);
  filter: brightness(var(--bl));
}
.glass::before { /* matrice de pixels basse résolution */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 6;
  background:
    linear-gradient(rgba(38,51,44,.11) 1px, transparent 1px) 0 0 / 3px 3px,
    linear-gradient(90deg, rgba(38,51,44,.11) 1px, transparent 1px) 0 0 / 3px 3px,
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 1px / 3px 3px;
}
.glass::after { /* vitre : reflet + ombre intérieure */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 7;
  background:
    linear-gradient(160deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.08) 20%, transparent 34%),
    radial-gradient(130% 110% at 50% 45%, transparent 60%, rgba(20,28,24,.38) 100%);
}
.status, .views, .splash { filter: blur(.4px) contrast(1.06); }
.glass canvas { image-rendering: pixelated; }
.status { flex: none; display: flex; justify-content: space-between; gap: 16px; padding: clamp(14px, 2.4vh, 22px) clamp(30px, 5vw, 66px) 4px; border-bottom: 2px solid var(--ink); font-size: clamp(1.15rem, 2.2vw, 1.6rem); white-space: nowrap; }
.st-right { overflow: hidden; text-overflow: ellipsis; font-size: .8em; align-self: flex-end; }
.views { flex: 1; min-height: 0; overflow-y: auto; padding: clamp(12px, 2.2vw, 26px) clamp(24px, 4.6vw, 60px) clamp(40px, 7vh, 64px); scrollbar-width: none; outline: none; }
.views::-webkit-scrollbar { display: none; }
.js .view:not(.active) { display: none; }
.view { display: grid; gap: clamp(12px, 1.8vw, 20px); align-content: start; }
.view.active { animation: lcd-in .28s steps(4) both; }
@keyframes lcd-in { from { opacity: 0; } to { opacity: 1; } }

.js .glass.off { background: radial-gradient(120% 90% at 50% 38%, #6f7c74, #56625b); filter: none; }
.js .glass.off > .status, .js .glass.off > .views { visibility: hidden; }

/* ---------- splash d'allumage ---------- */
.splash { display: none; position: absolute; inset: 0; z-index: 5; place-content: center; justify-items: center; gap: clamp(8px, 1.6vh, 16px); text-align: center; padding: 20px; }
.glass.booting .splash { display: grid; }
.glass.booting > .status, .glass.booting > .views { visibility: hidden; }
.glass.booting { animation: backlight .8s steps(1) both; }
@keyframes backlight {
  0% { filter: brightness(.42) saturate(.5); } 30% { filter: brightness(.95); } 38% { filter: brightness(.5) saturate(.6); }
  52% { filter: brightness(1.08); } 64% { filter: brightness(.8); } 100% { filter: brightness(var(--bl)); }
}
.splash-logo { width: clamp(110px, min(24vw, 28vh), 230px); image-rendering: pixelated; animation: logo-in 1s steps(10) .55s both; }
@keyframes logo-in { from { clip-path: inset(0 0 100% 0); opacity: .25; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.splash-title { font-size: clamp(2.1rem, 8.6vw, 5.6rem); line-height: .9; }
.splash-title span { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; vertical-align: bottom; animation: type .9s steps(14) 1.5s forwards; }
@keyframes type { to { width: 14ch; } }
.splash-sub { letter-spacing: .14em; animation: appear .01s 2.45s both; }
.splash-bar { width: min(72%, 440px); height: 18px; border: 2px solid var(--ink); border-radius: 10px; padding: 2px; animation: appear .01s 2.45s both; }
.splash-bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 7px; animation: load 1s steps(14) 2.5s forwards; }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes load { to { width: 100%; } }

/* =========================================================
   CONSOLE DU BAS
   ========================================================= */
.console {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--bottom);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "jog deck pod";
  align-items: center; gap: clamp(14px, 3vw, 44px);
  padding: 8px clamp(16px, 3.4vw, 48px) max(10px, env(safe-area-inset-bottom));
}

/* molette */
.jog { grid-area: jog; position: relative; width: var(--jog); height: var(--jog); border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #fbfcfd, #d7dde3 40%, #9aa3ad 75%, #6d757f);
  box-shadow: 0 0 0 2px #59616b, 0 0 0 5px #dfe4e8, 0 0 0 7px #7d858f, 0 10px 18px rgba(0,0,0,.55), inset 0 -8px 14px rgba(0,0,0,.22), inset 0 3px 2px #fff;
}
.dot { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #2a2f35; box-shadow: 0 1px 0 rgba(255,255,255,.8); transform: rotate(var(--a)) translateY(calc(var(--jog) * -.44)); }
.jog-disc { position: absolute; inset: 14%; border-radius: 50%; overflow: hidden;
  background: radial-gradient(70% 45% at 42% 22%, rgba(255,255,255,.95), rgba(255,255,255,0) 72%), radial-gradient(circle at 45% 55%, #bcd8fb, #5d97e8 45%, #2457c2 78%, #163a8a);
  box-shadow: 0 0 0 2px #4a525c, 0 0 0 4px #e8ecef, inset 0 -6px 12px rgba(0,0,40,.4), inset 0 3px 3px rgba(255,255,255,.8);
}
.jog-btn { position: absolute; top: 0; bottom: 0; width: 50%; display: grid; align-items: center; color: #fff; }
.jog-btn svg { width: 30%; height: 30%; fill: currentColor; filter: drop-shadow(0 1px 1px rgba(0,0,60,.7)); }
.jog-btn.prev { left: 0; justify-items: start; padding-left: 9%; }
.jog-btn.next { right: 0; justify-items: end; padding-right: 9%; }
.jog-btn:hover { background: rgba(255,255,255,.12); }
.jog-btn:active { background: rgba(0,0,60,.2); }
.jog-home { position: absolute; left: 50%; top: 50%; width: 38%; height: 38%; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(70% 45% at 50% 22%, #fff, rgba(255,255,255,0) 70%), radial-gradient(circle at 50% 60%, #eef1f4 0 30%, #b9c1ca 62%, #7f8892);
  box-shadow: 0 0 0 2px #4a525c, 0 0 0 3px #e8ecef, 0 4px 8px rgba(0,0,40,.55), inset 0 -3px 5px rgba(0,0,0,.2);
}
.jog-home img { width: 62%; height: auto; filter: drop-shadow(0 1px 0 rgba(255,255,255,.8)); }
.jog-home:active { transform: translate(-50%, -48%); }

/* plaque centrale */
.deck { grid-area: deck; display: grid; justify-items: center; gap: 10px; }
.pos-row { width: 100%; display: flex; align-items: center; gap: 12px; }
.pill {
  flex: none; width: 54px; height: 30px; border-radius: 15px; display: grid; place-items: center; color: var(--blue);
  background: radial-gradient(80% 60% at 50% 20%, #fff, rgba(255,255,255,0) 70%), linear-gradient(180deg, #eef1f4, #aab2bb);
  box-shadow: 0 0 0 2px #5d656f, 0 0 0 4px #e3e7eb, 0 0 0 5px #8a929b, 0 4px 6px rgba(0,0,0,.45), inset 0 -3px 5px rgba(0,0,0,.18);
}
.pill svg { width: 20px; height: 20px; fill: currentColor; }
.pill:active { transform: translateY(1px); box-shadow: 0 0 0 2px #5d656f, 0 0 0 4px #d3d8dd, 0 0 0 5px #8a929b, inset 0 3px 6px rgba(0,0,0,.35); }
.pos-track { --p: 0; position: relative; flex: 1; height: 16px; border-radius: 9px; cursor: pointer;
  background: linear-gradient(180deg, #8fb69d, #cfe8d6 55%, #a9cbb4);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.6), 0 0 0 2px #4a525c, 0 0 0 3px #e3e7eb, 0 1px 0 4px rgba(0,0,0,.15);
}
.pos-track i { position: absolute; top: -5px; left: calc(var(--p) * (100% - 34px)); width: 34px; height: 26px; border-radius: 9px;
  background: radial-gradient(80% 60% at 50% 20%, #fff, rgba(255,255,255,0) 70%), linear-gradient(180deg, #f1f3f5, #9ea7b0);
  box-shadow: 0 0 0 1px #5d656f, 0 3px 5px rgba(0,0,0,.5), inset 0 -2px 3px rgba(0,0,0,.2);
}
.pos-track i::after { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 8px; margin-left: -4px; background: repeating-linear-gradient(90deg, #5d656f 0 1px, transparent 1px 3px); }
.readout {
  width: min(100%, 420px); display: flex; justify-content: space-between; gap: 12px; padding: 3px 14px; border-radius: 8px;
  font-family: var(--term); font-size: 1.35rem; line-height: 1.1; color: var(--ink);
  background: linear-gradient(180deg, var(--lcd-hi), var(--lcd-lo)); text-shadow: 1px 1px 0 rgba(38,51,44,.2);
  box-shadow: inset 0 2px 5px rgba(0,0,0,.55), 0 0 0 2px #4a525c, 0 0 0 3px #e3e7eb;
  filter: blur(.3px);
}

/* potard + power */
.pod { grid-area: pod; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); }
.knob-wrap, .power-wrap { display: grid; justify-items: center; gap: 10px; }
.knob-wrap { position: relative; }
.knob-wrap::before { content: ""; position: absolute; left: 50%; top: calc(var(--jog) * .41); width: calc(var(--jog) * .98); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from -135deg, #3d444c 0 1.4deg, transparent 1.4deg 13.5deg);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 59% 66%, transparent 67%), conic-gradient(from -135deg, #000 0 270deg, transparent 270deg);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask: radial-gradient(circle, transparent 58%, #000 59% 66%, transparent 67%), conic-gradient(from -135deg, #000 0 270deg, transparent 270deg);
}
.knob { --a: 54deg; position: relative; width: calc(var(--jog) * .82); aspect-ratio: 1; border-radius: 50%; touch-action: none; cursor: ns-resize; transform: rotate(var(--a));
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.0) 0 40%, rgba(0,0,0,.12) 41%, transparent 43%),
    conic-gradient(from 0deg, #f7f9fa, #959ea8 12%, #eef1f4 25%, #89929c 38%, #f3f5f7 50%, #929aa4 63%, #eef1f4 75%, #8b949e 88%, #f7f9fa);
  box-shadow: 0 0 0 3px #4a525c, 0 0 0 6px #dfe4e8, 0 0 0 8px #7d858f, 0 12px 20px rgba(0,0,0,.55), inset 0 0 12px rgba(0,0,0,.25);
}
.knob::after { content: ""; position: absolute; left: 50%; top: 8%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f2f8ff, #59a2ff 40%, #1550d8); box-shadow: 0 0 8px #3d8bff; }
.power-ring { position: relative; width: calc(var(--jog) * .5); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(70% 45% at 50% 22%, #fff, rgba(255,255,255,0) 70%), radial-gradient(circle at 50% 60%, #eef1f4 0 30%, #b9c1ca 62%, #7f8892);
  box-shadow: 0 0 0 2px #4a525c, 0 0 0 7px #6e767f, 0 0 0 9px #dfe4e8, 0 8px 14px rgba(0,0,0,.55), inset 0 -4px 6px rgba(0,0,0,.2);
  transition: box-shadow .2s;
}
.power-ring[aria-pressed="true"] { box-shadow: 0 0 0 2px #2a6b1c, 0 0 0 7px #5bea3f, 0 0 18px 7px rgba(91,234,63,.55), 0 0 0 9px #dfe4e8, 0 8px 14px rgba(0,0,0,.55), inset 0 -4px 6px rgba(0,0,0,.2); }
.power-ring span { position: absolute; inset: 30%; border: 3px solid #3d444c; border-top-color: transparent; border-radius: 50%; }
.power-ring span::after { content: ""; position: absolute; left: 50%; top: -42%; width: 3px; height: 55%; margin-left: -1.5px; background: #3d444c; border-radius: 2px; }
.power-ring:active { transform: translateY(1px); }

.mob-keys { display: none; grid-area: keys; }

/* =========================================================
   CONTENU DANS L'ÉCRAN
   ========================================================= */
.ink-logo { mix-blend-mode: multiply; filter: saturate(.85) contrast(1.1); image-rendering: pixelated; }
.ph { color: var(--ink-2); }
h1 { font-weight: 400; font-size: clamp(2rem, 7vw, 4.8rem); line-height: .85; }
h2 { font-weight: 400; font-size: clamp(1.8rem, 4.6vw, 3rem); line-height: .9; }
h3 { font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1; margin-top: 6px; }
h2::before { content: "> "; }
.view > h3 { border-bottom: 2px dotted var(--ink); padding-bottom: 2px; }
.big { font-size: clamp(1.9rem, 5.4vw, 3.6rem); line-height: .88; }
.txt { max-width: 68ch; }
.note { font-size: .88em; color: var(--ink-2); }
.hero { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
.hero img { width: clamp(70px, 12vw, 140px); flex: none; }

.box { border: 2px solid var(--ink); border-radius: 8px; padding: clamp(10px, 1.6vw, 16px); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 16px); list-style: none; }

.btn { display: inline-block; padding: 5px 14px; border: 2px solid var(--ink); border-radius: 6px; font-family: var(--term); font-size: 1.05em; letter-spacing: .04em; text-align: center; text-shadow: none; }
.btn:hover { background: var(--ink-3); }
.btn.inv, .btn[aria-pressed="true"] { background: var(--ink); color: var(--lcd-hi); }
.btn.inv:hover { background: #121a16; }
.btn.sm { padding: 1px 9px; }
.btn.xl { font-size: 1.6em; padding: 6px 28px; }
.views :focus-visible { outline: 2px dashed var(--ink); outline-offset: 3px; border-radius: 4px; }

.scope { display: grid; gap: 6px; }
.track { display: grid; grid-template-columns: 5.2em 1fr; align-items: center; gap: 10px; }
.track canvas { width: 100%; height: 20px; }
.track-mix { padding-bottom: 8px; margin-bottom: 2px; border-bottom: 2px dotted var(--ink); }
.track-mix canvas { height: 32px; }
.tile { display: block; color: var(--ink-2); }
.tile b { display: block; font-weight: 400; font-size: 1.3em; color: var(--ink); }
.tile:hover { background: var(--ink-3); }

.player { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(10px, 1.6vw, 16px); align-items: start; }
.p-title { font-size: 1.3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--ink-2); }
.p-sub { text-align: right; font-size: .9em; margin: 4px 0 8px; letter-spacing: .08em; }
.bar { height: 14px; border: 2px solid var(--ink); border-radius: 8px; padding: 1px; }
.bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 6px; }
.p-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 6px 0; text-align: right; }
.p-time { font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: .75; }
.player canvas { width: 100%; height: clamp(74px, 13vh, 120px); }
.p-legend { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-size: .9em; }
.transport { margin-top: 10px; }
.mixer { display: grid; gap: 10px; }
.strip { display: grid; grid-template-columns: 4.4em 1fr auto auto; gap: 8px; align-items: center; }
.strip.is-muted > span, .strip.is-muted .lv { opacity: .35; }
.lv { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border: 2px solid var(--ink); border-radius: 8px; background: transparent; cursor: pointer; }
.lv::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 22px; background: var(--ink); border-radius: 3px; }
.lv::-moz-range-thumb { width: 12px; height: 22px; background: var(--ink); border: 0; border-radius: 3px; }
.lv::-moz-range-progress { background: var(--ink-2); height: 100%; }
.steps { counter-reset: s; }
.steps li { counter-increment: s; color: var(--ink-2); }
.steps b { display: block; font-weight: 400; font-size: 1.3em; color: var(--ink); }
.steps b::before { content: "0" counter(s) " · "; }
.list { list-style: none; display: grid; gap: 3px; }
.list li::before { content: "> "; }
.list b { font-weight: 400; background: var(--ink); color: var(--lcd-hi); padding: 0 5px; text-shadow: none; }
.chips span { border: 2px solid var(--ink); border-radius: 999px; padding: 1px 12px; font-size: .92em; }
.nosignal { aspect-ratio: 16 / 7; display: grid; place-content: center; text-align: center; font-size: 1.6em; background: repeating-linear-gradient(0deg, var(--ink-3) 0 2px, transparent 2px 5px); animation: roll 1.2s steps(5) infinite; }
.nosignal .ph { font-size: .6em; }
@keyframes roll { to { background-position: 0 25px; } }

.price { max-width: 620px; display: grid; gap: 10px; }
.amount { font-size: clamp(4.5rem, 16vw, 9rem); line-height: .72; margin: 8px 0 2px; }
.amount small { font-size: .26em; letter-spacing: .06em; }

.product { display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 10px; }
.product .btn { margin-top: auto; }
.viewer { position: relative; border: 2px solid var(--ink); border-radius: 6px; background: linear-gradient(var(--ink-3) 1px, transparent 1px) 0 0 / 100% 25%, linear-gradient(90deg, var(--ink-3) 1px, transparent 1px) 0 0 / 25% 100%; }
.viewer canvas { width: 100%; aspect-ratio: 4 / 3; }
.stamp { position: absolute; right: 6px; bottom: 3px; display: flex; align-items: center; gap: 5px; font-size: .8em; }
.stamp img { height: 20px; width: auto; }
.tag { font-size: .9em; color: var(--ink-2); }
.product .list { border-top: 2px dotted var(--ink); padding-top: 6px; }

.faq details { border-bottom: 2px dotted var(--ink); padding: 8px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 14px; font-size: 1.15em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "[+]"; flex: none; }
.faq details[open] summary::after { content: "[–]"; }
.faq details p { margin-top: 6px; max-width: 70ch; color: var(--ink-2); }

.signup { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; max-width: 820px; }
.signup label { display: grid; gap: 4px; font-size: .9em; letter-spacing: .08em; }
.signup input, .signup select { width: 100%; padding: 5px 10px; border: 2px solid var(--ink); border-radius: 6px; background: var(--ink-3); color: var(--ink); font-family: var(--term); font-size: 1.2em; }
.signup input::placeholder { color: var(--ink-2); }
.signup input:focus, .signup select:focus { outline: 2px dashed var(--ink); outline-offset: 3px; }
.signup .msg { grid-column: 1 / -1; }
.views .note a, .views p a { text-decoration: underline; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .player, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .signup { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .device { --side: 14px; --top: 52px; --bottom: 276px; --jog: 132px; }
  .side, .pod, .dev-model { display: none; }
  .st-right { display: none; }
  .console { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "deck deck" "jog keys"; align-content: center; row-gap: 14px; column-gap: 18px; padding-top: 14px; }
  .mob-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 4px; justify-items: center; }
  .mob-keys .rbtn { --s: 38px; }
  .mob-keys .nav-btn .led { display: none; }
  .mob-keys .nav-btn b { font-size: .64rem; letter-spacing: .02em; }
  .readout { font-size: 1.2rem; }
  .pill { width: 44px; }
}
@media (max-height: 600px) and (min-width: 761px) {
  .device { --bottom: 128px; --jog: 104px; }
  .readout { display: none; }
  .nav-btn b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* le splash d'allumage reste joué : c'est l'ouverture du site */
  .view, .nosignal, .glass:not(.booting), .title-chrome, .title-chrome::before, .title-chrome::after { animation: none !important; }
}

/* =========================================================
   PIÈCES RENDUES DANS BLENDER (design/blender/parts.py)
   ========================================================= */
.rbtn, a:hover > .rbtn, button.rbtn:hover, .rbtn.xs {
  width: calc(var(--s) * 1.22); height: calc(var(--s) * 1.22);
  background: url("assets/hw/btn-frame.webp") center / 100% 100% no-repeat;
  box-shadow: none; filter: drop-shadow(0 4px 5px rgba(0,0,0,.45));
}
.rbtn svg { width: 40%; height: 40%; }
a:hover > .rbtn, button.rbtn:hover { filter: drop-shadow(0 4px 5px rgba(0,0,0,.45)) brightness(1.06); }
a:active > .rbtn, button.rbtn:active, [aria-current="page"] > .rbtn {
  background: url("assets/hw/btn-frame.webp") center / 100% 100% no-repeat; box-shadow: none;
  transform: translateY(1px) scale(.97); filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)) brightness(.9);
}
.nav-btn .led { top: calc(clamp(40px, 6.4vh, 54px) * .61 - 5.5px); }


.pill, .pill:active { width: 64px; height: 32px; border-radius: 0; background: url("assets/hw/pill-frame.webp") center / 100% 100% no-repeat; box-shadow: none; filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); }
.pill:active { transform: translateY(1px); filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)) brightness(.9); }
.pill svg { width: 20px; height: 20px; filter: drop-shadow(0 1px 0 #fff); }

.jog { background: url("assets/hw/jog.webp") center / 100% 100% no-repeat; box-shadow: none; filter: drop-shadow(0 10px 14px rgba(0,0,0,.55)); }
.jog .dot { display: none; }
.jog-disc { inset: 22.6%; background: none; box-shadow: none; }
.jog-btn { color: #fff; }
.jog-btn svg { width: 34%; height: 34%; filter: drop-shadow(0 1px 2px rgba(0,0,60,.9)); }
.jog-home, .jog-home:active { width: 40%; height: 40%; background: none; box-shadow: none; }
.jog-home img { width: 58%; }

.knob { transform: none; background: url("assets/hw/knob.webp") center / 100% 100% no-repeat; box-shadow: none; filter: drop-shadow(0 10px 14px rgba(0,0,0,.55)); }
.knob::after { left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; transform: rotate(var(--a)) translateY(calc(var(--jog) * -.27)); }

.power-ring { background: url("assets/hw/power-off-frame.webp") center / 100% 100% no-repeat; box-shadow: none; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); width: calc(var(--jog) * .58); }
.power-ring[aria-pressed="true"] { background-image: url("assets/hw/power-on-frame.webp"); box-shadow: none; filter: drop-shadow(0 0 10px rgba(91,234,63,.85)) drop-shadow(0 6px 8px rgba(0,0,0,.5)); }
.power-ring span { inset: 34%; }

/* =========================================================
   TITRE GRAVÉ · STICKER · LED SERTIES
   ========================================================= */
.badge { display: none; }
.dev-left, .dev-right { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 14px; }
.dev-right { justify-content: flex-end; }
.engraved-title {
  flex: none; position: relative; z-index: 1;
  font-family: "Orbitron", var(--sans); font-weight: 700; font-size: clamp(.7rem, 1.45vw, 1.05rem); letter-spacing: .34em; padding-left: .34em;
  color: rgba(44, 50, 58, .82);
  text-shadow: 0 1px 0 rgba(255,255,255,.85), 0 -1px 0 rgba(0,0,0,.45);
  margin-top: calc(var(--top) * -.06);
}
.engraved-title:hover { color: rgba(30, 60, 150, .85); }
.sticker {
  position: absolute; z-index: 4; pointer-events: none;
  top: calc(var(--top) * -.12); right: -6px; width: clamp(84px, 9.4vw, 136px); height: auto;
  transform: rotate(6deg);
}
.jog-home svg { width: 46%; height: 46%; fill: none; stroke: rgba(44,50,58,.75); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 0 rgba(255,255,255,.9)); }

/* LED dans une douille creusée dans le châssis */
.led {
  width: 10px; height: 10px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.85),
    0 0 0 2px #1c2025, 0 0 0 3px #6a727c, 0 -1px 0 3.5px rgba(0,0,0,.35), 0 1px 0 3.5px rgba(255,255,255,.85);
}
.led.blue.on, [aria-current="page"] .led {
  box-shadow: 0 0 6px #3d8bff, 0 0 14px rgba(61,139,255,.75), inset 0 1px 1px rgba(255,255,255,.7),
    0 0 0 2px #1c2025, 0 0 0 3px #6a727c, 0 -1px 0 3.5px rgba(0,0,0,.35), 0 1px 0 3.5px rgba(255,255,255,.85);
}
.side-l .nav-btn .led { right: -21px; } .side-r .nav-btn .led { left: -21px; }

@media (max-width: 760px) {
  .dev-model { display: none; }
  .sticker { width: 76px; right: -8px; top: -6px; }
  .engraved-title { font-size: .62rem; letter-spacing: .26em; }
}

/* =========================================================
   POWER : halo réaliste + clignotement · LED violettes · poisson LCD
   ========================================================= */
.power-ring[aria-pressed="true"] { filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); }
.power-ring::before { /* lumière émise par l'anneau, limitée à l'anneau */
  content: ""; position: absolute; inset: -16%; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle closest-side, transparent 47%, rgba(140,255,90,.55) 54%, rgba(90,240,50,.38) 60%, rgba(60,220,30,.14) 72%, transparent 84%);
  filter: blur(3px); mix-blend-mode: screen; transition: opacity .25s;
}
.power-wrap { position: relative; }
.power-wrap::before { /* reflet vert sur le chrome autour */
  content: ""; position: absolute; left: 50%; top: calc(var(--jog) * .29); width: calc(var(--jog) * 1.05); height: calc(var(--jog) * .82);
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(110,255,70,.22), rgba(110,255,70,.07) 55%, transparent);
  mix-blend-mode: soft-light; transition: opacity .25s;
}
.power-ring[aria-pressed="true"]::before, .power-wrap:has(.power-ring[aria-pressed="true"])::before { opacity: 1; }
.power-ring.blink { animation: pwr-blink .9s steps(1) 1; }
.power-ring.blink::before { animation: pwr-blink-glow .9s steps(1) 1; }
@keyframes pwr-blink {
  0%, 22%, 44%, 66% { background-image: url("assets/hw/power-on-frame.webp"); }
  11%, 33%, 55%, 77%, 100% { background-image: url("assets/hw/power-off-frame.webp"); }
}
@keyframes pwr-blink-glow { 0%, 22%, 44%, 66% { opacity: 1; } 11%, 33%, 55%, 77%, 100% { opacity: 0; } }

.led.blue.on, [aria-current="page"] .led {
  background: radial-gradient(circle at 35% 30%, #faf0ff, #c47bff 40%, #7a22e0 75%);
  box-shadow: 0 0 6px #a64dff, 0 0 14px rgba(166,77,255,.75), inset 0 1px 1px rgba(255,255,255,.7),
    0 0 0 2px #1c2025, 0 0 0 3px #6a727c, 0 -1px 0 3.5px rgba(0,0,0,.35), 0 1px 0 3.5px rgba(255,255,255,.85);
}
.led { background: radial-gradient(circle at 35% 30%, #7a6c8f, #2a2238 70%); }
.knob::after { background: radial-gradient(circle at 35% 30%, #faf0ff, #c47bff 40%, #7a22e0); box-shadow: 0 0 8px #a64dff; }

.ink-logo { mix-blend-mode: normal; filter: none; }

/* =========================================================
   BOUTONS EN DEUX PIÈCES : le cadre reste fixe, seul le bouton s'enfonce
   ========================================================= */
.rbtn, .rbtn.xs, a:hover > .rbtn, button.rbtn:hover, a:active > .rbtn, button.rbtn:active, [aria-current="page"] > .rbtn {
  background: url("assets/hw/btn-frame.webp") center / 100% 100% no-repeat;
  box-shadow: none; transform: none; filter: drop-shadow(0 4px 5px rgba(0,0,0,.45));
}
.rbtn::before, .pill::before, .power-ring::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: center / 100% 100% no-repeat;
  transition: transform .07s ease-out, filter .07s ease-out;
}
.rbtn::before { background-image: url("assets/hw/btn-cap.webp"); }
.rbtn svg, .pill svg { position: relative; z-index: 1; transition: transform .07s ease-out, opacity .07s; }
a:hover > .rbtn::before, button.rbtn:hover::before, .pill:hover::before, .power-ring:hover::after { filter: brightness(1.06); }
a:active > .rbtn::before, button.rbtn:active::before, [aria-current="page"] > .rbtn::before,
.pill:active::before, .power-ring:active::after {
  transform: translateY(1.5px) scale(.955); filter: brightness(.72) contrast(1.06);
}
a:active > .rbtn svg, button.rbtn:active svg, [aria-current="page"] > .rbtn svg, .pill:active svg {
  transform: translateY(1.5px) scale(.955); opacity: .8;
}

.pill, .pill:active, .pill:hover { position: relative; transform: none; background: url("assets/hw/pill-frame.webp") center / 100% 100% no-repeat; filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); }
.pill::before { background-image: url("assets/hw/pill-cap.webp"); }

.power-ring, .power-ring:active { transform: none; background-image: url("assets/hw/power-off-frame.webp"); }
.power-ring[aria-pressed="true"] { background-image: url("assets/hw/power-on-frame.webp"); }
.power-ring::after { background-image: url("assets/hw/power-cap.webp"); }
.power-ring span { z-index: 2; transition: transform .07s ease-out; }
.power-ring:active span { transform: translateY(1.5px) scale(.955); }
@keyframes pwr-blink {
  0%, 22%, 44%, 66% { background-image: url("assets/hw/power-on-frame.webp"); }
  11%, 33%, 55%, 77%, 100% { background-image: url("assets/hw/power-off-frame.webp"); }
}

/* =========================================================
   GRADUATIONS DU POTARD GRAVÉES DANS LE CHROME
   ========================================================= */
.knob { z-index: 1; }
.knob-wrap::before, .knob-wrap::after {
  content: ""; position: absolute; left: 50%; top: calc(var(--jog) * .41);
  width: calc(var(--jog) * .98); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 58.5% 68%, transparent 68.5%), conic-gradient(from -137deg, #000 0 274deg, transparent 274deg);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle, transparent 58%, #000 58.5% 68%, transparent 68.5%), conic-gradient(from -137deg, #000 0 274deg, transparent 274deg);
  mask-composite: intersect;
}
.knob-wrap::before { /* creux du trait */
  background: repeating-conic-gradient(from -135.6deg, rgba(18,22,28,.78) 0 1.3deg, transparent 1.2deg 13.5deg);
  filter: blur(.25px);
}
.knob-wrap::after { /* lumière sur la lèvre basse de la gravure */
  background: repeating-conic-gradient(from -135.6deg, rgba(255,255,255,.95) 0 1.3deg, transparent 1.2deg 13.5deg);
  transform: translate(-50%, calc(-50% + 1.2px));
  filter: blur(.3px); z-index: 0; mix-blend-mode: screen;
}
.knob-wrap::before { z-index: 0; }

/* =========================================================
   MOLETTE : le clic assombrit seulement le demi-disque, pas le bouton home
   ========================================================= */
.jog-btn:hover, .jog-btn:active { background: none; }
.jog-btn::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .07s;
  background: radial-gradient(ellipse 100% 50% at var(--cx) 50%, rgba(0,0,40,.34), rgba(0,0,40,.18));
  -webkit-mask: radial-gradient(ellipse 46% 23% at var(--cx) 50%, transparent 98%, #000 100%);
  mask: radial-gradient(ellipse 46% 23% at var(--cx) 50%, transparent 98%, #000 100%);
}
.jog-btn.prev { --cx: 100%; } .jog-btn.next { --cx: 0%; }
.jog-btn:hover::before { opacity: .35; background: rgba(255,255,255,.35); }
.jog-btn:active::before { opacity: 1; background: radial-gradient(ellipse 100% 50% at var(--cx) 50%, rgba(0,0,40,.34), rgba(0,0,40,.18)); }
.jog-btn svg { position: relative; z-index: 1; transition: transform .07s; }
.jog-btn:active svg { transform: scale(.92); }
.jog-home, .jog-home:active { transform: translate(-50%, -50%); border-radius: 50%; transition: background .07s; }
.jog-home:active { background: radial-gradient(circle, rgba(0,0,0,.3), rgba(0,0,0,.14) 66%, transparent 70%); }
.jog-home:active svg { transform: translateY(1px) scale(.94); }
.jog-home svg { transition: transform .07s; }

/* =========================================================
   FADER DE POSITION : rail creusé + tirette Blender
   ========================================================= */
.pos-track {
  --tw: clamp(46px, 5.2vw, 58px);           /* largeur de la tirette */
  --th: calc(var(--tw) * .616);
  position: relative; flex: 1; height: calc(var(--th) + 18px); background: none; box-shadow: none; border-radius: 0;
  cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none;
}
.pos-track.dragging { cursor: grabbing; }
.pos-track::before { /* la fente creusée dans le châssis */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 10px; margin-top: -7px; border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(120,255,90,.75), rgba(120,255,90,.75)) 0 50% / calc(var(--p) * (100% - var(--tw)) + var(--tw) / 2) 2px no-repeat,
    linear-gradient(180deg, #050607, #1d2126 70%, #2c3239);
  box-shadow: inset 0 2px 3px rgba(0,0,0,.9), 0 -1px 0 rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.85), 0 0 6px rgba(120,255,90,.0);
}
.pos-track::after { /* graduations gravées sous le rail */
  content: ""; position: absolute; left: calc(var(--tw) / 2); right: calc(var(--tw) / 2); top: calc(50% + 7px); height: 7px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(20,24,30,.6) 0 1px, transparent 1px 100%) 0 0 / calc(100% / 10) 100%,
    repeating-linear-gradient(90deg, rgba(255,255,255,.9) 0 1px, transparent 1px 100%) 1px 1px / calc(100% / 10) 100%;
  -webkit-mask: linear-gradient(#000, #000) 0 0 / calc(100% + 1px) 100% no-repeat; mask: linear-gradient(#000, #000) 0 0 / calc(100% + 1px) 100% no-repeat;
}
.pos-track i, .pos-track i:hover {
  position: absolute; z-index: 1; top: 50%; left: calc(var(--p) * (100% - var(--tw)));
  width: var(--tw); height: var(--th); margin-top: calc(var(--th) / -2 - 2px);
  border-radius: 0; box-shadow: none;
  background: url("assets/hw/fader.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.55)) drop-shadow(0 1px 1px rgba(0,0,0,.5));
  transition: filter .08s, transform .08s;
}
.pos-track i::after { display: none; }
.pos-track.dragging i { transform: translateY(1px); filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)) brightness(1.06); }
@media (max-width: 760px) {
  .pos-track { --tw: 54px; height: 50px; }
}

/* Rail : bande lumineuse en dégradé violet (comme le poisson) */
.pos-track::before {
  background:
    linear-gradient(90deg, #3a0f8a, #7a2be0 55%, #c47bff) 0 50% / calc(var(--p) * (100% - var(--tw)) + var(--tw) / 2) 3px no-repeat,
    linear-gradient(180deg, #050607, #1d2126 70%, #2c3239);
}
.pos-track { --th: calc(var(--tw) * .62); }

/* =========================================================
   STYLET + ÉCRAN TACTILE
   ========================================================= */
.stylus-on, .stylus-on * { cursor: none !important; }
.stylus {
  --sw: clamp(96px, 9vw, 128px);
  position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
  width: var(--sw); height: var(--sw);
  margin: calc(var(--sw) * -.044) 0 0 calc(var(--sw) * -.044);   /* la pointe tombe pile sous la souris */
  opacity: 0; transition: opacity .15s, filter .08s, scale .08s;
  transform-origin: 4.4% 4.4%; will-change: transform;
  filter: drop-shadow(14px 16px 6px rgba(0,0,0,.28));
}
.stylus.show { opacity: 1; }
.stylus.down { scale: .97; filter: drop-shadow(4px 5px 2px rgba(0,0,0,.38)); }
.stylus-on .views { -webkit-user-select: none; user-select: none; }
.stylus-on .signup input, .stylus-on .signup select { -webkit-user-select: text; user-select: text; }

.ink { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; image-rendering: pixelated; filter: blur(.35px); }
.tap {
  position: absolute; z-index: 5; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(38,51,44,.42) 0 18%, rgba(38,51,44,.16) 40%, transparent 68%);
  box-shadow: 0 0 0 2px rgba(38,51,44,.28);
  animation: tap-out .45s steps(5) forwards; animation-play-state: paused;
}
.tap.hold { animation-play-state: paused; }
.tap:not(.hold) { animation-play-state: running; }
@keyframes tap-out { to { opacity: 0; transform: scale(1.9); box-shadow: 0 0 0 1px rgba(38,51,44,.1); } }
.glass.scrolling .views { pointer-events: none; }

/* =========================================================
   ENCOCHE QUI DESCEND DANS L'ÉCRAN + GRAVURE STYLISÉE
   ========================================================= */
.engraved-title {
  position: absolute; left: 50%; top: calc(var(--top) * 1.02); transform: translateX(-50%);
  font-family: "Audiowide", var(--sans); font-weight: 400;
  font-size: clamp(.95rem, 2.1vw, 1.5rem); letter-spacing: .14em; padding-left: .14em; margin: 0; white-space: nowrap;
  color: rgba(40, 46, 54, .86);
  text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 -1px 0 rgba(0,0,0,.5), 0 0 1px rgba(0,0,0,.25);
}
@media (max-width: 760px) {
  .engraved-title { font-size: .86rem; letter-spacing: .1em; top: calc(var(--top) * .92); }
}

/* Stylet : plus grand, pointe en bas à gauche */
.stylus {
  --sw: clamp(150px, 13vw, 200px);
  margin: calc(var(--sw) * -.956) 0 0 calc(var(--sw) * -.044);
  transform-origin: 4.4% 95.6%;
  filter: drop-shadow(16px 14px 7px rgba(0,0,0,.28));
}
.stylus.down { filter: drop-shadow(5px 4px 2px rgba(0,0,0,.38)); }

/* =========================================================
   CHARMS ACCROCHÉS AU BOUT DU STYLET (cordons simulés dans main.js)
   ========================================================= */
.charms { --u: clamp(28px, 2.6vw, 38px); position: fixed; inset: 0; z-index: 10000; pointer-events: none; opacity: 0; transition: opacity .15s; }
.charms.show { opacity: 1; }
.cords { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cords path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cords .cord { stroke: #5b22c2; stroke-width: 2.2; }
.cords .cord-shadow { stroke: rgba(0,0,0,.22); stroke-width: 2.2; transform: translate(6px, 7px); filter: blur(1.5px); }
.charm { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; will-change: transform; filter: drop-shadow(9px 10px 5px rgba(0,0,0,.28)); }

/* stylet en perspective : point chaud = pointe */
.stylus {
  --sw: clamp(150px, 13vw, 200px);
  margin: calc(var(--sw) * -0.9664) 0 0 calc(var(--sw) * -0.0371);
  transform-origin: 3.71% 96.64%;
}

/* nœud du cordon passé autour de l'anneau du stylet */
.cords .loop { fill: none; stroke: #5b22c2; stroke-width: 2.4; }
.cords .knot { fill: #3d1288; stroke: #7d3fe6; stroke-width: 1; }

/* Gravure du nom : police grasse, creusée directement dans le chrome (sans plaque) */
.engraved-title {
  font-family: "Russo One", var(--sans); font-weight: 400;
  font-size: clamp(1.05rem, 2.4vw, 1.75rem); letter-spacing: .1em; padding-left: .1em;
  color: rgba(52, 58, 66, .72);
  text-shadow:
    0 1.5px 0 rgba(255,255,255,.95),        /* lèvre basse éclairée */
    0 -1px 0 rgba(0,0,0,.55),               /* bord haut dans l'ombre */
    0 0 1px rgba(0,0,0,.3);
  -webkit-text-stroke: .4px rgba(30,34,40,.35);
}
@media (max-width: 760px) { .engraved-title { font-size: .95rem; letter-spacing: .08em; } }

/* =========================================================
   TITRE CHROME QUI SORT DU CHÂSSIS (rendu Blender) + reflet qui balaie
   ========================================================= */
.title-chrome {
  position: absolute; left: 50%; top: calc(var(--top) * .32); transform: translateX(-50%);
  display: block; width: clamp(300px, 33vw, 520px); aspect-ratio: 1758 / 263;
  max-width: calc(100% - 2 * var(--side) - 120px);
}
.title-chrome img { display: block; width: 100%; height: 100%; max-width: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.title-chrome::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 44%, rgba(255,255,255,.45) 50%, transparent 56%) 0 0 / 300% 100% no-repeat;
  -webkit-mask: url("assets/hw/title-chrome.webp") center / 100% 100% no-repeat; mask: url("assets/hw/title-chrome.webp") center / 100% 100% no-repeat;
  mix-blend-mode: overlay; animation: chrome-sweep 7s ease-in-out infinite;
}
@keyframes chrome-sweep { 0%, 62% { background-position: 120% 0; } 100% { background-position: -20% 0; } }
@media (max-width: 760px) { .title-chrome { height: auto; width: calc(100% - 160px); top: calc(var(--top) * .42); max-width: none; } }

/* focus programmatique sur l'écran au changement de page : pas de contour */
.views:focus { outline: none; }

/* =========================================================
   PROPORTIONS DE LA CONSOLE : molette de navigation XXL qui mord dans l'écran,
   backlight réduite, power agrandi (les pièces sont toutes dimensionnées sur --jog)
   ========================================================= */
.device { --jog-big: calc(var(--jog) * 1.45); --jog-k: calc(var(--jog) * .7); --jog-p: calc(var(--jog) * 1.4); }
.console > .jog { --jog: var(--jog-big); align-self: start; margin: calc(var(--bottom) - 8px - max(14px, env(safe-area-inset-bottom)) - var(--jog)) 0 0; z-index: 4; }
.knob-wrap { --jog: var(--jog-k); }
.knob-wrap .engrave { font-size: .64rem; letter-spacing: .1em; }
.power-wrap { --jog: var(--jog-p); }
@media (max-width: 760px) { .device { --jog-big: var(--jog); } .console > .jog { align-self: center; margin: 0; } }

/* =========================================================
   MISE EN PAGE AJUSTÉE À L'ÉCRAN : l'écran LCD est un conteneur,
   les tailles suivent sa largeur ET sa hauteur (cqw / cqh)
   ========================================================= */
.views { container: screen / size; }
.big { font-size: clamp(1.5rem, min(5.2cqw, 9cqh), 3.6rem); }
h1 { font-size: clamp(2rem, min(7.5cqw, 13cqh), 4.8rem); }
h2 { font-size: clamp(1.6rem, min(4.6cqw, 8cqh), 3rem); }
.hero img { width: clamp(64px, min(12cqw, 21cqh), 140px); }

/* tarif : offre à gauche, contenu à droite */
.price { max-width: none; grid-template-columns: minmax(0, 1fr); align-items: center; }
.offer { display: grid; gap: 10px; justify-items: start; }
.amount { font-size: clamp(3.6rem, min(15cqw, 24cqh), 9rem); }
@container screen (min-width: 640px) {
  .price { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(16px, 4cqw, 48px); }
  .price .list { border-left: 2px dotted var(--ink); padding-left: clamp(14px, 3cqw, 32px); gap: clamp(3px, 1.4cqh, 10px); font-size: 1.05em; }
}

/* accueil : texte et CTA à gauche, oscilloscope à droite */
@container screen (min-width: 720px) {
  #home { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: clamp(16px, 3cqw, 36px); grid-template-areas: "hero scope" "big scope" "txt scope" "cta cta" "tiles tiles"; }
  #home .hero { grid-area: hero; } #home .h-big { grid-area: big; } #home .h-txt { grid-area: txt; }
  #home .h-cta { grid-area: cta; } #home .scope { grid-area: scope; align-self: stretch; align-content: space-evenly; } #home .grid3 { grid-area: tiles; }
  #home .h-big { font-size: clamp(1.5rem, min(3.9cqw, 8cqh), 3rem); }
  .track canvas { height: clamp(14px, 3.4cqh, 22px); } .track-mix canvas { height: clamp(22px, 5.6cqh, 34px); }
}

/* audioware : vues filaires plus basses pour tenir les trois fiches */
.viewer canvas { aspect-ratio: auto; height: clamp(110px, 30cqh, 240px); }
.product > p:not(.tag) { font-size: .95em; }
#home .tile { padding-block: clamp(6px, 1.6cqh, 14px); }
.views { padding-bottom: max(clamp(18px, 3vh, 30px), calc(var(--bite, 0px) + 10px)); }
@container screen (min-width: 720px) {
  #home { row-gap: clamp(8px, 2.2cqh, 18px); }
  #home h1 { font-size: clamp(1.8rem, min(5.4cqw, 11cqh), 4.2rem); }
  #home .hero img { width: clamp(56px, min(9cqw, 17cqh), 120px); }
}
/* audioware : titre et intro sur une ligne, fiches compactes */
@container screen (min-width: 720px) {
  #audioware { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(16px, 3cqw, 40px); align-items: end; }
  #audioware > .txt { font-size: .86em; max-width: none; }
  #audioware > .products { grid-column: 1 / -1; }
}
.product { gap: clamp(4px, 1.1cqh, 8px); }
.product h3 { font-size: clamp(1.15rem, min(2.4cqw, 4.6cqh), 1.6rem); }
.product h3 .ph { display: block; font-size: .55em; letter-spacing: .06em; margin-top: 2px; }
.product .tag { font-size: .8em; }
.product > p:not(.tag) { font-size: .86em; line-height: 1.12; }
.product .list { font-size: .86em; gap: 1px; }
.viewer canvas { height: clamp(90px, 22cqh, 200px); }

/* plugin : page compacte — intro sur une ligne, fonctions | compatibilité + démo */
.two { display: grid; gap: clamp(12px, 2cqh, 20px) clamp(16px, 3cqw, 40px); }
.two .col { display: grid; gap: clamp(8px, 1.6cqh, 14px); align-content: start; }
.two h3 { border-bottom: 2px dotted var(--ink); padding-bottom: 2px; }
#plugin { gap: clamp(8px, 2cqh, 16px); }
#plugin .player canvas { height: clamp(60px, 14cqh, 110px); }
#plugin .p-time { font-size: clamp(2rem, min(5cqw, 9cqh), 3.4rem); }
#plugin .steps li { font-size: .9em; }
#plugin .list { font-size: .92em; }
#plugin .nosignal { aspect-ratio: auto; height: clamp(90px, 22cqh, 180px); font-size: 1.3em; }
@container screen (min-width: 720px) {
  #plugin { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(16px, 3cqw, 40px); align-items: end; }
  #plugin > .txt { font-size: .86em; max-width: none; }
  #plugin > :not(h2):not(.txt) { grid-column: 1 / -1; }
  .two { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

/* trait sous la barre de statut : deux segments, interrompus sous l'encoche du titre */
.status { border-bottom: 0; padding-bottom: 6px;
  background: linear-gradient(var(--ink), var(--ink)) left bottom / var(--gap-l, 100%) 2px no-repeat,
              linear-gradient(var(--ink), var(--ink)) right bottom / var(--gap-r, 0px) 2px no-repeat; }

/* =========================================================
   ACCUEIL : 100 % software — présentation courte + prix, puis la démo en vedette
   ========================================================= */
#home { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; row-gap: clamp(8px, 2cqh, 16px); }
@container screen (min-width: 720px) { #home { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; } }
.h-top { display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 3cqw, 36px); }
.h-top .hero { min-width: 0; }
#home h1 { font-size: clamp(1.8rem, min(5.4cqw, 10cqh), 4.2rem); }
#home .hero img { width: clamp(52px, min(9cqw, 15cqh), 120px); }
.h-pitch { max-width: 60ch; font-size: .95em; margin-top: 4px; }
.h-price { flex: none; display: grid; justify-items: center; line-height: .9; padding: 8px clamp(14px, 2.4cqw, 26px); font-size: clamp(1.4rem, min(3.6cqw, 6.5cqh), 2.4rem); }
.h-price small { font-size: .42em; letter-spacing: .18em; margin-top: 4px; }

.demo { display: grid; gap: clamp(6px, 1.4cqh, 12px); }
.demo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.demo-title { font-size: 1.25em; letter-spacing: .12em; }
.demo-title::before { content: "◉ "; }
.demo-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-pick .btn[aria-checked="true"] { background: var(--ink); color: var(--lcd-hi); }
.demo-roll { width: 100%; height: clamp(170px, 42cqh, 460px); image-rendering: auto; border-top: 2px dotted var(--ink); border-bottom: 2px dotted var(--ink); padding-block: 4px; }
.demo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.demo-status { letter-spacing: .06em; min-height: 1.1em; }
.demo-ctl { flex: none; }
.demo-ab { display: inline-flex; gap: 6px; }
.demo-ab[hidden] { display: none; }
.demo-note { margin-top: -4px; }
@container screen (max-width: 560px) {
  .h-top { flex-direction: column; align-items: stretch; }
  .h-price { justify-self: start; align-self: flex-start; }
  .demo-roll { height: 230px; }
  .demo-pick .btn { font-size: .9em; }
}
.h-top .hero { flex: 1; }
.h-pitch { max-width: none; font-size: .9em; text-wrap: balance; }
.h-price { line-height: .95; }
.h-price small { font-size: 1em; letter-spacing: .04em; margin-top: 2px; }

/* audioware : vues 3D plus grandes, sans tampon */
.viewer { background: none; border-style: dotted; }
.viewer canvas { height: clamp(170px, 40cqh, 340px); image-rendering: auto; }
.glass .viewer canvas { image-rendering: auto; }

/* =========================================================
   AUDIOWARE : 3 fiches qui tiennent dans l'écran · PAGES PRODUIT
   ========================================================= */
.products .product { color: inherit; text-decoration: none; gap: clamp(4px, 1cqh, 8px); min-height: 0; }
.products .product:hover { background: var(--ink-3); }
.product .card-price { font-size: clamp(1.3rem, min(2.6cqw, 5cqh), 2rem); line-height: 1; }
.product .btn { margin-top: auto; align-self: stretch; }
.product .tag { min-height: 2.2em; }
@container screen (min-width: 720px) {
  #audioware { height: 100cqh; grid-template-rows: minmax(0, 1fr); }
  #audioware .products { height: 100%; grid-column: 1 / -1; }
  #audioware .product { display: flex; flex-direction: column; }
  #audioware .viewer { flex: 1; min-height: 0; }
  #audioware .viewer canvas { height: 100%; }
}

.pdp { grid-template-columns: minmax(0, 1fr); }
.pdp-stage { position: relative; border: 2px dotted var(--ink); border-radius: 8px; min-height: 0; }
.pdp-stage canvas { display: block; width: 100%; height: clamp(240px, 52cqh, 520px); touch-action: none; cursor: grab; image-rendering: auto; }
.pdp-stage canvas:active { cursor: grabbing; }
.pdp-hint { position: absolute; left: 10px; bottom: 6px; font-size: .78em; color: var(--ink-2); letter-spacing: .06em; pointer-events: none; }
.pdp-info { display: grid; gap: clamp(6px, 1.4cqh, 12px); align-content: start; min-height: 0; }
.pdp-back { justify-self: start; font-size: .9em; letter-spacing: .08em; }
.pdp-back:hover { text-decoration: underline; }
.pdp-info .txt { font-size: .95em; }
.pdp-info .list { border-top: 2px dotted var(--ink); padding-top: 6px; font-size: .92em; }
.pdp-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; border-top: 2px dotted var(--ink); padding-top: 10px; }
.pdp-price { font-size: clamp(2.2rem, min(6cqw, 11cqh), 4.4rem); margin: 0; width: 100%; }
@container screen (min-width: 720px) {
  .pdp { height: 100cqh; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(16px, 3cqw, 40px); }
  .pdp-stage canvas { height: 100%; }
  .pdp-info { overflow: hidden; }
}

/* page produit : tout tient dans la colonne */
.pdp-info { gap: clamp(4px, 1cqh, 10px); }
.pdp-info h2 { font-size: clamp(1.5rem, min(3.6cqw, 7cqh), 2.6rem); }
.pdp-info .tag { font-size: .8em; }
.pdp-info .txt { font-size: .88em; line-height: 1.12; }
.pdp-info .list { font-size: .86em; gap: 0; }
.pdp-buy { flex-wrap: nowrap; padding-top: 8px; }
.pdp-price { width: auto; flex: 1; font-size: clamp(1.8rem, min(4.4cqw, 8cqh), 3.4rem); white-space: nowrap; }
.pdp-buy .btn.xl { font-size: 1.25em; padding: 4px 16px; }
@container screen (max-width: 560px) { .pdp-buy { flex-wrap: wrap; } .pdp-price { width: 100%; } }
@container screen (min-width: 720px) { .pdp { grid-template-rows: minmax(0, 1fr); } }
.pdp-buy .btn { white-space: nowrap; }
.pdp-info { grid-template-columns: minmax(0, 1fr); }
.pdp-buy { flex-wrap: wrap; }
.pdp-price { flex: none; margin-right: 4px; }

/* informations légales et consentement */
.legal { gap: clamp(8px, 1.6cqh, 14px); }
.legal .txt { max-width: 82ch; font-size: .95em; line-height: 1.15; }
.legal h3 { scroll-margin-top: 8px; }
.legal-toc a { border: 2px solid var(--ink); border-radius: 999px; padding: 1px 12px; font-size: .92em; }
.legal-toc a:hover { background: var(--ink-3); }
.signup .consent { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-start; font-size: .82em; letter-spacing: .02em; }
.signup .consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: #26332c; }
.signup .consent a { text-decoration: underline; }

/* sélecteur de langue dans la barre de statut */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang select { appearance: none; -webkit-appearance: none; background: transparent; border: 2px solid var(--ink); border-radius: 6px; color: var(--ink);
  font-family: var(--term); font-size: .95em; padding: 0 22px 0 8px; cursor: pointer; letter-spacing: .04em;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 11px) 55%, calc(100% - 6px) 55%; background-size: 5px 5px; background-repeat: no-repeat; max-width: 11em; }
.lang select:focus-visible { outline: 2px dashed var(--ink); outline-offset: 2px; }
.lang option { color: #111; background: #e8efe9; }
@media (max-width: 760px) { .st-right { display: block; } }
.lang select { max-width: 7.2em; font-size: .85em; text-overflow: ellipsis; }

/* sélecteur de langue : bouton LCD + panneau dans l'écran */
.lang-btn { font-family: var(--term); font-size: .9em; color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; padding: 0 8px; letter-spacing: .06em; background: transparent; cursor: pointer; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: var(--ink); color: var(--lcd-hi); }
.lang-pop { position: absolute; z-index: 5; right: clamp(24px, 4.6vw, 60px); top: calc(clamp(14px, 2.4vh, 22px) + 2.2em);
  width: min(260px, calc(100% - 48px)); max-height: calc(100% - 4.6em - var(--bite, 0px));
  display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: 8px;
  background: var(--lcd-hi); box-shadow: 4px 4px 0 rgba(38,51,44,.35); font-size: clamp(1rem, 1.6vw, 1.2rem); }
.lang-pop[hidden] { display: none; }
.lang-head { padding: 6px 12px 4px; border-bottom: 2px dotted var(--ink); letter-spacing: .14em; font-size: .85em; }
.lang-list { list-style: none; overflow-y: auto; overscroll-behavior: contain; padding: 4px; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.lang-list button { display: flex; gap: 10px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: none; border: 0; border-radius: 4px; padding: 3px 8px; cursor: pointer; }
.lang-list button b { font-weight: 400; min-width: 2.2ch; letter-spacing: .06em; }
.lang-list button span { font-family: var(--term), system-ui, sans-serif; }
.lang-list button:hover, .lang-list button:focus-visible { background: var(--ink-3); outline: none; }
.lang-list button[aria-selected="true"] { background: var(--ink); color: var(--lcd-hi); }

/* sticker décollable : la colle reste sur le chrome */
.glue { position: absolute; z-index: 3; pointer-events: none; top: calc(var(--top) * -.12); right: -6px; width: clamp(84px, 9.4vw, 136px); height: auto; transform: rotate(6deg); opacity: .9; mix-blend-mode: screen; }
.glue.tacky { pointer-events: auto; cursor: pointer; }
.sticker { pointer-events: auto; cursor: grab; touch-action: none; transform-origin: 50% 50%; will-change: transform; user-select: none; -webkit-user-drag: none; }
.sticker.peeling { cursor: grabbing; transition: none; }
.sticker.snap { transition: transform .35s cubic-bezier(.2,1.6,.4,1), filter .35s; }
.sticker.gone { display: none; }
@media (max-width: 760px) { .glue { width: 76px; right: -8px; top: -6px; } }

/* les composants du lecteur ne se sélectionnent pas (seul le contenu de l'écran reste copiable) */
#device, .charms, .stylus { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
#device img, .charms img, .stylus { -webkit-user-drag: none; user-drag: none; }
.views .txt, .views .list li, .views .faq p, .views .legal p, .signup input { -webkit-user-select: text; user-select: text; }
.views ::selection { background: var(--ink); color: var(--lcd-hi); }

/* téléphone : titre plus compact, l'encoche laisse les coins libres, la barre de statut passe dessous */
@media (max-width: 760px) {
  .title-chrome { width: min(64vw, 320px); top: calc(var(--top) * .3); }
  .status { padding-top: calc(var(--notch-d, 40px) + 4px); padding-left: 22px; padding-right: 22px; font-size: 1.05rem; }
  .lang-pop { top: calc(var(--notch-d, 40px) + 2.4em); }
}
@media (max-width: 760px) and (max-height: 700px) {
  .device { --bottom: 246px; --jog: 104px; }
  .console { row-gap: 8px; padding-top: 8px; }
  .mob-keys { gap: 6px 4px; }
  .mob-keys .rbtn { --s: 32px; }
  .readout { font-size: 1rem; }
}
/* téléphone en paysage : console basse, molette sans morsure, boutons latéraux serrés */
@media (max-height: 500px) and (min-width: 761px) {
  .device { --top: 40px; --bottom: 92px; --jog: 80px; --jog-big: var(--jog); --side: 64px; }
  .console > .jog { align-self: center; margin: 0; }
  .title-chrome { width: clamp(220px, 30vw, 340px); top: 4px; }
  .side { gap: 4px; }
  .side .rbtn { --s: 34px; }
  .side .grille { display: none; }
  .deck .plate { display: none; }
  .pod { gap: 10px; }
}

/* attributs style remplacés par des classes (CSP sans style en ligne) */
.grain { mix-blend-mode: overlay; }
.p-sub.left { text-align: left; }
html[hidden] { display: none; }

/* fenêtre très basse (zoom 200 à 400 %, petit téléphone couché) : l'appareil garde une taille lisible et la page défile */
@media (max-width: 760px) and (max-height: 520px) {
  html, body { height: auto; overflow: auto; }
  .device { position: relative; inset: auto; width: 100%; height: 620px; }
}

/* pas encore en vente / pas encore ouvert */
.btn:disabled, .btn:disabled:hover { background: transparent; color: var(--ink); border-style: dashed; cursor: not-allowed; }
.signup input:disabled, .signup select:disabled { opacity: 1; border-style: dashed; cursor: not-allowed; }
.notice { border-left: 4px solid var(--ink); padding-left: 10px; }
/* le focus au clavier sur l'écran ne doit pas arrondir (donc couper) son contenu */
.views:focus, .views:focus-visible { border-radius: 0; }

/* =========================================================
   LES PIPO : fiche Audioware, blind box, collection
   ========================================================= */
@container screen (min-width: 720px) { #audioware .products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container screen (min-width: 460px) and (max-width: 719px) { #audioware .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* figurines imprimées dans l'encre de l'écran */
.pipo-img, .blind-pipo, .pipo-item img { filter: grayscale(1) contrast(1.3) brightness(1.04); mix-blend-mode: multiply; image-rendering: auto; }
.pipo-viewer { position: relative; min-height: 170px; }
.pipo-viewer .pipo-img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }

.pdp-pipo { row-gap: clamp(14px, 3cqh, 28px); }
@container screen (min-width: 720px) {
  .pdp-pipo { height: auto; grid-template-rows: calc(100cqh - 8px) auto; }
}
.blind { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 12px 34px; min-height: 320px; overflow: hidden; }
.blind-box, .blind-pipo { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); }
.blind-box { width: min(44%, 210px); aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 10px; display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, var(--ink-3) 0 6px, transparent 6px 12px); transition: opacity .35s, transform .35s; }
.blind-lid { position: absolute; left: -7px; right: -7px; top: -16px; height: 22px; border: 3px solid var(--ink); border-radius: 8px; background: var(--lcd-hi); transition: transform .45s; }
.blind-q { font-size: clamp(3rem, 12cqh, 6rem); line-height: 1; }
.blind-brand { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: .7em; letter-spacing: .14em; }
.blind-box.shake { animation: bb-shake .9s steps(14) both; }
@keyframes bb-shake {
  0%, 100% { transform: translate(-50%, -50%) rotate(0); } 15% { transform: translate(-52%, -50%) rotate(-7deg); }
  30% { transform: translate(-48%, -51%) rotate(6deg); } 45% { transform: translate(-52%, -50%) rotate(-5deg); }
  60% { transform: translate(-48%, -50%) rotate(4deg); } 80% { transform: translate(-50%, -52%) rotate(-2deg); }
}
.blind-box.open { opacity: 0; transform: translate(-50%, -50%) scale(.82); }
.blind-box.open .blind-lid { transform: translateY(-46px) rotate(-20deg); }
.blind-pipo { height: min(64%, 320px); width: auto; }
.blind-pipo.pop { animation: pipo-pop .55s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes pipo-pop { from { transform: translate(-50%, -28%) scale(.3); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.blind-name { min-height: 1.2em; letter-spacing: .08em; text-align: center; position: relative; }
.blind-open { position: relative; }

.pipo-coll { grid-column: 1 / -1; display: grid; gap: 10px; }
.pipo-coll h3 { border-bottom: 2px dotted var(--ink); padding-bottom: 2px; }
.pipo-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.pipo-item { width: 100%; display: grid; justify-items: center; gap: 2px; border: 2px solid var(--ink); border-radius: 6px; background: none; padding: 4px 2px 3px;
  color: var(--ink); font-family: var(--term); font-size: .74em; letter-spacing: .03em; line-height: 1; cursor: pointer; }
.pipo-item img { width: 100%; height: 84px; object-fit: contain; }
.pipo-item:hover { background: var(--ink-3); }
.pipo-item[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); background: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .blind-box, .blind-lid { transition: none; } .blind-box.shake, .blind-pipo.pop { animation: none; } }
.pipo-img, .blind-pipo, .pipo-item img { filter: grayscale(1) contrast(1.7) brightness(.92); }
.blind-pipo[hidden] { display: none; }
.blind { padding-bottom: 58px; }
.blind-box, .blind-pipo { top: 38%; }
.blind-pipo { height: min(52%, 270px); }

/* Pipo en pixel art LCD (deux tons, comme le bar du démarrage) */
.pipo-img, .blind-pipo, .pipo-item img, .blind-box img { filter: none; mix-blend-mode: normal; image-rendering: pixelated; }
.pipo-item img { height: 84px; }
/* blind box pixel art : boîte + couvercle superposés */
.blind-box { width: min(46%, 230px); aspect-ratio: 88 / 92; border: 0; border-radius: 0; background: none; display: block; transition: opacity .3s steps(3), transform .3s steps(3); }
.blind-box img { position: absolute; inset: 0; width: 100%; height: 100%; }
.blind-box .bb-lid { transform-origin: 80% 30%; transition: transform .45s steps(6), opacity .45s steps(6); }
.blind-box:not(.shake):not(.open) { animation: bb-idle 2.4s steps(4) infinite; }
@keyframes bb-idle { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -53%); } }
.blind-box.open { opacity: 0; transform: translate(-50%, -42%) scale(.92); }
.blind-box.open .bb-lid { transform: translate(28%, -70%) rotate(24deg); opacity: 0; }
/* éclat de lumière en rayons d'encre à l'ouverture */
.blind-burst { position: absolute; left: 50%; top: 38%; width: min(80%, 420px); aspect-ratio: 1; transform: translate(-50%, -50%) scale(.2); opacity: 0; pointer-events: none;
  background: repeating-conic-gradient(var(--ink) 0 6deg, transparent 6deg 22deg); -webkit-mask: radial-gradient(closest-side, transparent 30%, #000 32%, #000 70%, transparent 72%); mask: radial-gradient(closest-side, transparent 30%, #000 32%, #000 70%, transparent 72%); }
.blind.burst .blind-burst { animation: bb-burst .8s steps(8) both; }
@keyframes bb-burst { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.2) rotate(0); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.1) rotate(25deg); } }
@media (prefers-reduced-motion: reduce) { .blind-box, .blind-box img { animation: none !important; transition: none; } .blind.burst .blind-burst { animation: none; } }
