/* ==========================================================================
   HARD BATCH — Vintage Portrait Hardware Drum Machine Stylesheet
   Visual reference: hard-batch-portrait-social-final.png
   ========================================================================== */

:root {
  /* Core hardware palette */
  --case-base: #c9bfa7;
  --case-light: #e5ddc9;
  --case-mid: #bdb298;
  --case-dark: #9e937a;
  --case-crevice: #504b40;

  --rubber-top: #666761;
  --rubber-hi: #7b7c76;
  --rubber-mid: #575853;
  --rubber-edge: #40423d;
  --rubber-shadow: #292b28;

  --ink-dark: #34372f;
  --ink-muted: #4b4d44;
  --line-panel: rgba(52, 55, 47, 0.42);

  --lcd-bezel-hi: #343531;
  --lcd-bezel-lo: #171816;
  --lcd-bg: #717a36;
  --lcd-bg-dark: #5c642a;
  --lcd-ink: #252c14;

  --focus-ring: #252c14;

  /* Typography */
  --font-industrial: "DIN Condensed", "Arial Narrow", "Roboto Condensed",
    "Helvetica Neue", Arial, sans-serif;
  --font-stencil: "Rockwell", "Courier New", "Georgia", serif;
  --font-lcd: "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New",
    monospace;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: radial-gradient(
    ellipse at 30% 15%,
    #252421 0%,
    #161614 55%,
    #0e0e0d 100%
  );
  color: var(--ink-dark);
  font-family: var(--font-industrial);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* Stage centers the portrait unit on desktop and respects mobile safe areas */
.stage {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(10px, env(safe-area-inset-top))
    max(8px, env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom))
    max(8px, env(safe-area-inset-left));
}

/* ==========================================================================
   Aged Ivory Painted Metal Chassis
   ========================================================================== */

.chassis {
  position: relative;
  width: 100%;
  max-width: 416px;
  border-radius: 16px;
  padding: 15px 14px 16px;
  background:
    /* Top-left soft directional light & aged patina */
    linear-gradient(
      148deg,
      rgba(246, 241, 227, 0.55) 0%,
      rgba(222, 213, 191, 0.25) 26%,
      rgba(196, 185, 160, 0.15) 62%,
      rgba(128, 118, 97, 0.35) 100%
    ),
    /* Subtle edge wear & yellowing patches */
    radial-gradient(
      circle at 12% 8%,
      rgba(242, 236, 220, 0.65) 0%,
      transparent 38%
    ),
    radial-gradient(
      circle at 88% 92%,
      rgba(130, 118, 92, 0.38) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 6% 60%,
      rgba(116, 106, 86, 0.2) 0%,
      transparent 30%
    ),
    var(--case-base);
  border: 1.5px solid #8a806c;
  box-shadow:
    /* Outer studio drop shadow */
    0 24px 55px rgba(0, 0, 0, 0.68),
    0 8px 20px rgba(0, 0, 0, 0.45),
    /* Outer bevel highlight (top-left) and rim shade (bottom-right) */
    inset 2px 2px 1px rgba(247, 242, 228, 0.78),
    inset -2px -2px 2px rgba(74, 68, 56, 0.62),
    /* Inner recessed metal flange */
    inset 0 0 0 4px rgba(182, 171, 146, 0.42),
    inset 4px 4px 8px rgba(242, 236, 219, 0.25),
    inset -5px -6px 10px rgba(76, 69, 55, 0.28);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* Fine painted-metal grain + micro-scuff texture overlay */
.chassis-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.24;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.55'/%3E%3Cpath d='M18 34 L34 39 M140 12 L152 17 M78 164 L96 158 M188 122 L196 138 M42 110 L48 113' stroke='%23504b40' stroke-width='0.6' opacity='0.35' fill='none'/%3E%3C/svg%3E");
}

/* Aged corner discoloration vignette */
.chassis-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 26px rgba(68, 60, 46, 0.34);
}

/* Keep interactive layers above surface overlays */
.nameplate,
.control-strip,
.pad-panel,
.footer-deck,
.screw {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Corner Phillips Screws
   ========================================================================== */

.screw {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 30%,
    #e2dccd 0%,
    #a89f8d 48%,
    #666053 88%,
    #3d3931 100%
  );
  border: 1px solid #4c463b;
  box-shadow:
    inset 1px 1px 1px rgba(255, 252, 240, 0.65),
    0 1px 2px rgba(36, 33, 27, 0.65);
  pointer-events: none;
}

.screw::before,
.screw::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #36332c;
  border-radius: 1px;
  box-shadow: 0 0.5px 0 rgba(235, 229, 214, 0.4);
}

.screw::before {
  width: 9px;
  height: 1.8px;
  transform: translate(-50%, -50%) rotate(12deg);
}

.screw::after {
  width: 1.8px;
  height: 9px;
  transform: translate(-50%, -50%) rotate(12deg);
}

.screw-tl {
  top: 9px;
  left: 9px;
}

.screw-tr {
  top: 9px;
  right: 9px;
}

.screw-tr::before {
  transform: translate(-50%, -50%) rotate(-18deg);
}

.screw-tr::after {
  transform: translate(-50%, -50%) rotate(-18deg);
}

.screw-bl {
  bottom: 9px;
  left: 9px;
}

.screw-bl::before {
  transform: translate(-50%, -50%) rotate(34deg);
}

.screw-bl::after {
  transform: translate(-50%, -50%) rotate(34deg);
}

.screw-br {
  bottom: 9px;
  right: 9px;
}

.screw-br::before {
  transform: translate(-50%, -50%) rotate(-7deg);
}

.screw-br::after {
  transform: translate(-50%, -50%) rotate(-7deg);
}

/* ==========================================================================
   Top Nameplate Header (HARD BATCH | KNDRX)
   ========================================================================== */

.nameplate {
  margin: 14px 4px 14px;
  padding: 9px 14px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 3px
    ),
    linear-gradient(
      176deg,
      #d7d0be 0%,
      #c1b9a6 46%,
      #afa794 74%,
      #bfb7a3 100%
    );
  border: 1px solid #6b6456;
  box-shadow:
    inset 0 1px 0 rgba(250, 246, 234, 0.7),
    inset 0 -1px 1px rgba(68, 63, 52, 0.45),
    0 1px 0 rgba(244, 238, 224, 0.55),
    0 2px 4px rgba(55, 50, 41, 0.28);
}

.nameplate-title {
  margin: 0;
  flex: 1 1 auto;
  font-family: var(--font-stencil);
  font-size: clamp(16px, 4.9vw, 22px);
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1;
  color: #3a3d35;
  text-shadow:
    0 1px 0 rgba(242, 237, 224, 0.55),
    0 -0.5px 0 rgba(26, 28, 24, 0.35);
  white-space: nowrap;
}

.nameplate-divider {
  width: 1.5px;
  height: 22px;
  flex-shrink: 0;
  background: linear-gradient(
    to bottom,
    rgba(64, 60, 51, 0.2),
    rgba(64, 60, 51, 0.72),
    rgba(64, 60, 51, 0.2)
  );
  box-shadow: 1px 0 0 rgba(242, 236, 222, 0.45);
}

.nameplate-logo-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 39%;
}

.nameplate-logo {
  display: block;
  height: clamp(20px, 5.6vw, 28px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1.5px 1.5px rgba(34, 32, 27, 0.48));
}

/* ==========================================================================
   Control Strip: Recessed Olive LCD + Master Volume Knob
   ========================================================================== */

.control-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 6px 16px;
}

.lcd-bezel {
  flex: 1 1 auto;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 7px;
  background: linear-gradient(
    160deg,
    #1c1d1a 0%,
    #2f312c 52%,
    #1d1e1b 100%
  );
  border: 1px solid #141513;
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.72),
    inset 0 -1px 1px rgba(130, 132, 120, 0.25),
    0 1px 0 rgba(245, 240, 226, 0.65),
    -1px -1px 2px rgba(68, 62, 50, 0.45);
  cursor: pointer;
  outline: none;
}

.lcd-bezel:focus-visible {
  box-shadow:
    0 0 0 2px var(--case-light),
    0 0 0 4px var(--focus-ring),
    inset 0 2px 3px rgba(0, 0, 0, 0.72);
}

.lcd-glass {
  position: relative;
  min-height: 66px;
  padding: 10px 12px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background:
    linear-gradient(
      145deg,
      rgba(218, 228, 146, 0.14) 0%,
      transparent 42%,
      rgba(32, 38, 14, 0.18) 100%
    ),
    linear-gradient(180deg, #687131 0%, var(--lcd-bg) 38%, #6d7634 100%);
  box-shadow:
    inset 3px 4px 7px rgba(24, 29, 10, 0.52),
    inset -2px -2px 4px rgba(154, 165, 86, 0.22);
  overflow: hidden;
}

.lcd-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(37, 44, 20, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 44, 20, 0.35) 1px, transparent 1px);
  background-size: 3px 3px;
}

.lcd-line {
  position: relative;
  z-index: 1;
  font-family: var(--font-lcd);
  color: var(--lcd-ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow:
    1px 1px 0 rgba(37, 44, 20, 0.16),
    0 0 1px rgba(37, 44, 20, 0.2);
}

.lcd-line-primary {
  font-size: clamp(14px, 4.1vw, 18px);
  font-weight: 700;
  line-height: 1.1;
}

.lcd-line-secondary {
  font-size: clamp(11.5px, 3.2vw, 14px);
  font-weight: 700;
  line-height: 1.15;
  opacity: 0.92;
}

/* Master Volume Rotary Knob */
.volume-module {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-right: 2px;
}

.silkscreen-label {
  font-family: var(--font-industrial);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-dark);
  text-transform: uppercase;
  text-shadow: 0 0.5px 0 rgba(242, 236, 222, 0.45);
}

.volume-label {
  font-size: 10.5px;
  line-height: 1;
}

.knob-assembly {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: ns-resize;
  touch-action: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.knob-assembly:focus-visible {
  box-shadow:
    0 0 0 2px var(--case-light),
    0 0 0 4px var(--focus-ring);
}

.knob-shadow {
  position: absolute;
  inset: 3px -3px -5px 4px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 42% 40%,
    rgba(25, 24, 20, 0.72) 0%,
    rgba(25, 24, 20, 0.42) 55%,
    transparent 76%
  );
  pointer-events: none;
}

.knob-skirt {
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      #343531 0deg 4deg,
      #1a1b19 4deg 8deg
    );
  border: 1px solid #181917;
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, 0.2),
    0 4px 7px rgba(20, 19, 16, 0.55);
  pointer-events: none;
}

.knob-cap {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 30% 28%,
      #ece5d3 0%,
      #d5cbb2 42%,
      #b9ae92 84%,
      #9a8f75 100%
    );
  border: 1.5px solid #595345;
  box-shadow:
    inset 1px 1px 2px rgba(255, 252, 242, 0.75),
    inset -2px -2px 4px rgba(72, 66, 53, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.65);
  transition: transform 35ms linear;
  pointer-events: none;
}

.knob-assembly.is-dragging .knob-cap {
  transition: none;
}

.knob-indicator {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 2.5px;
  height: 15px;
  transform: translateX(-50%);
  border-radius: 1px;
  background: #22231f;
  box-shadow: 0.5px 0 0 rgba(248, 244, 232, 0.45);
}

/* ==========================================================================
   4x4 Pad Matrix Panel
   ========================================================================== */

.pad-panel {
  border: 1px solid var(--line-panel);
  border-radius: 6px;
  background: linear-gradient(
    180deg,
    rgba(255, 252, 242, 0.08) 0%,
    rgba(72, 66, 54, 0.04) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(246, 240, 226, 0.4),
    0 1px 0 rgba(246, 240, 226, 0.42);
  overflow: hidden;
}

.pad-row {
  display: grid;
  grid-template-columns: 44px repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  padding: 9px 10px 11px 8px;
  border-bottom: 1px solid var(--line-panel);
  box-shadow: inset 0 1px 0 rgba(246, 240, 226, 0.3);
}

.pad-row:first-child {
  box-shadow: none;
}

.pad-row:last-child {
  border-bottom: none;
}

.row-label {
  align-self: center;
  padding-top: 14px;
  font-family: var(--font-industrial);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--ink-dark);
  text-transform: uppercase;
  text-align: left;
  line-height: 1.1;
  text-shadow: 0 0.5px 0 rgba(245, 240, 226, 0.48);
}

.pad-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.pad-label-stack {
  min-height: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  line-height: 1.08;
}

.pad-label-main {
  font-family: var(--font-industrial);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-dark);
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0.5px 0 rgba(246, 241, 228, 0.45);
}

.pad-label-sub {
  font-family: var(--font-industrial);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-top: 1px;
}

/* Recessed Rubber Pad Well */
.pad-well {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-width: 44px;
  min-height: 44px;
  padding: 2.5px;
  border-radius: 7px;
  background: linear-gradient(155deg, #272824 0%, #3d3e39 100%);
  box-shadow:
    inset 1.5px 2px 3px rgba(14, 15, 13, 0.85),
    0 1px 0 rgba(244, 238, 224, 0.52);
}

/* Tactile Thick Gray Rubber Pad */
.pad-btn {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 5px;
  background:
    /* Subtle matte rubber surface sheen from top-left */
    linear-gradient(
      145deg,
      var(--rubber-hi) 0%,
      var(--rubber-top) 36%,
      var(--rubber-mid) 82%,
      #4a4c47 100%
    );
  box-shadow:
    /* Top-left beveled rubber catchlight */
    inset 1.5px 1.5px 1.5px rgba(176, 178, 170, 0.34),
    /* Bottom-right rubber thickness rim */
    inset -2px -2.5px 3px rgba(24, 26, 23, 0.65),
    /* Contact shadow inside well */
    1.5px 2.5px 3px rgba(18, 20, 17, 0.78);
  cursor: pointer;
  touch-action: none;
  outline: none;
  transform: translate3d(0, 0, 0);
  transition:
    transform 45ms cubic-bezier(0.2, 0.8, 0.3, 1),
    box-shadow 45ms ease,
    filter 45ms ease;
}

/* Subtle matte grain on pad surface */
.pad-btn::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 4px;
  pointer-events: none;
  background: radial-gradient(
    circle at 30% 25%,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 65%
  );
}

/* Subtle silkscreened keyboard shortcut printed on rubber pad bottom-right */
.pad-key-hint {
  position: absolute;
  right: 6px;
  bottom: 5px;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  font-family: var(--font-industrial);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  color: rgba(232, 228, 214, 0.56);
  text-shadow: 0 -0.5px 0 rgba(20, 22, 19, 0.55);
}

.pad-btn.is-pressed .pad-key-hint {
  color: rgba(232, 228, 214, 0.44);
}

.pad-btn.is-empty .pad-key-hint {
  color: rgba(232, 228, 214, 0.42);
}

.pad-btn:focus-visible {
  box-shadow:
    0 0 0 2px var(--case-light),
    0 0 0 4px var(--focus-ring),
    inset 1.5px 1.5px 1.5px rgba(176, 178, 170, 0.34);
}

/* Physical rubber depression when pressed */
.pad-btn.is-pressed {
  transform: translate3d(0.5px, 1.8px, 0) scale(0.985);
  background: linear-gradient(
    145deg,
    #5d5e58 0%,
    #545550 45%,
    #484944 100%
  );
  box-shadow:
    inset 1px 1px 2px rgba(24, 26, 23, 0.55),
    inset -1px -1px 1.5px rgba(130, 132, 125, 0.16),
    0.5px 0.5px 1px rgba(18, 20, 17, 0.7);
}

/* Empty sample slots: preserve rubber look, no active trigger behavior */
.pad-btn.is-empty {
  cursor: default;
  touch-action: manipulation;
  background: linear-gradient(
    145deg,
    #71726c 0%,
    #62635d 42%,
    #53544f 86%,
    #484a45 100%
  );
}

/* Unavailable sound (only when a real enabled WAV fails to load) */
.pad-btn.is-unavailable {
  filter: saturate(0.7) brightness(0.88);
}

/* ==========================================================================
   Bottom Footer: Album Cover Sticker + Credits & Social Badges
   ========================================================================== */

.footer-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 4px 10px 4px 12px;
}

.sticker-slot {
  flex: 0 0 auto;
  padding: 2px 4px;
}

.cover-sticker {
  width: clamp(82px, 24vw, 106px);
  aspect-ratio: 1 / 1;
  padding: 2.5px;
  border-radius: 3px;
  background: linear-gradient(155deg, #e5decb 0%, #cfc6af 100%);
  transform: rotate(-5.5deg);
  box-shadow:
    2px 4px 8px rgba(34, 30, 23, 0.55),
    0 1px 2px rgba(34, 30, 23, 0.4),
    inset 0 0 0 0.5px rgba(255, 252, 242, 0.7);
}

.cover-sticker-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5px;
}

.credits-block {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.credit-text {
  margin: 0;
  font-family: var(--font-industrial);
  font-size: clamp(10px, 3vw, 12px);
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--ink-dark);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 0.5px 0 rgba(246, 240, 226, 0.5);
}

.social-links {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(14px, 5vw, 24px);
}

.social-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 48px;
  min-height: 48px;
  padding: 2px 4px;
  color: var(--ink-dark);
  text-decoration: none;
  border-radius: 6px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.social-link:focus-visible {
  box-shadow:
    0 0 0 2px var(--case-light),
    0 0 0 4px var(--focus-ring);
}

/* Ivory Enamel + Thin Metallic Rim + Dark Engraved Icon */
.social-badge {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #dcd4be 0%, #c6bca3 55%, #b5aa90 100%);
  border: 2px solid #767061;
  box-shadow:
    inset 1px 1px 1px rgba(248, 244, 232, 0.78),
    inset -1.5px -1.5px 2px rgba(68, 63, 52, 0.45),
    1.5px 2.5px 4px rgba(38, 35, 28, 0.46),
    0 0 0 1px rgba(56, 52, 43, 0.45);
  transition:
    transform 60ms ease,
    box-shadow 60ms ease;
}

.social-link:hover .social-badge {
  background: linear-gradient(155deg, #e2dac6 0%, #ccc3aa 55%, #bbb096 100%);
}

.social-link:active .social-badge {
  transform: translate3d(0.5px, 1.5px, 0);
  box-shadow:
    inset 1px 1px 2px rgba(58, 54, 44, 0.55),
    0.5px 0.5px 1.5px rgba(38, 35, 28, 0.45),
    0 0 0 1px rgba(56, 52, 43, 0.5);
}

.social-icon {
  width: 24px;
  height: 24px;
  color: #363931;
  filter: drop-shadow(0 0.5px 0 rgba(246, 241, 228, 0.55));
}

.social-label {
  font-family: var(--font-industrial);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-dark);
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 0.5px 0 rgba(246, 241, 228, 0.45);
}

/* ==========================================================================
   Responsive Tuning: 320px narrow phones & compact viewports
   ========================================================================== */

@media (max-width: 375px) {
  .chassis {
    padding: 14px 10px 16px;
    border-radius: 13px;
  }

  .nameplate {
    margin: 12px 2px 12px;
    padding: 8px 10px;
  }

  .control-strip {
    margin: 0 2px 12px;
    gap: 10px;
  }

  .lcd-glass {
    min-height: 60px;
    padding: 8px 10px;
  }

  .knob-assembly {
    width: 54px;
    height: 54px;
  }

  .knob-cap {
    width: 42px;
    height: 42px;
  }

  .pad-row {
    grid-template-columns: 36px repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 7px 9px 6px;
  }

  .row-label {
    font-size: 9px;
    letter-spacing: 0.02em;
  }

  .pad-label-main {
    font-size: 9px;
    letter-spacing: 0.02em;
  }

  .pad-label-sub {
    font-size: 7.5px;
  }

  .footer-deck {
    gap: 10px;
    padding: 2px 4px;
  }

  .cover-sticker {
    width: 78px;
  }

  .credit-text {
    font-size: 9.5px;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 335px) {
  .stage {
    padding: 6px 4px 10px;
  }

  .chassis {
    padding: 12px 8px 14px;
  }

  .pad-row {
    grid-template-columns: 32px repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding: 7px 6px 8px 5px;
  }

  .row-label {
    font-size: 8.5px;
  }

  .pad-label-main {
    font-size: 8.5px;
  }

  .pad-key-hint {
    right: 4px;
    bottom: 3.5px;
    font-size: 9px;
  }
}
