/* Handheld 1989: feste Größe; Gehäuse 90:148, LCD 47:43.
   Proportionale Positionen bleiben unabhängig von Textlänge und Fensterhöhe. */
@media screen {
html[data-shell="r1989"] .topbar:has(.hh-nav) {
  display: grid; grid-template-columns: max-content 24px minmax(0, 1fr);
  padding-inline: 12px; gap: 8px 12px;
}
html[data-shell="r1989"] .topbar:has(.hh-nav) .brand { grid-column: 1; grid-row: 1; }
html[data-shell="r1989"] .topbar:has(.hh-nav) .session { grid-column: 3; grid-row: 1; justify-self: end; }
html[data-shell="r1989"] .topbar:has(.hh-nav) .term-open { grid-column: 2; grid-row: 1; }
html[data-shell="r1989"] .topbar:has(.hh-nav) nav.main,
html[data-shell="r1989"] .topbar:has(.hh-nav) .navcmd { display: none !important; }
html[data-shell="r1989"] .hh-nav {
  display: grid !important; grid-template-columns: 32px 24px minmax(0, 1fr) 36px 32px;
  align-items: center; gap: 8px; min-width: 0; grid-column: 1 / -1;
  width: min(420px, calc(100vw - 24px)); margin-inline: auto;
  font: 14px 'Courier Prime', monospace; color: #30355e;
}
html[data-shell="r1989"] .hh-nav button {
  flex: none; width: 32px; height: 32px; padding: 0; border: 1px solid #9b9891;
  border-radius: 5px; color: #30355e; background: linear-gradient(#e6e2d9, #b9b6ae);
  box-shadow: inset 0 1px 0 #f4f1ea, 0 2px 0 #9c9992; font: 24px/1 'Arimo', sans-serif;
  cursor: pointer;
}
html[data-shell="r1989"] .hh-nav .hh-nav-current {
  flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font: inherit; color: #30355e !important;
  padding: 7px 3px; text-align: center; text-decoration: none; border-bottom: 1px dotted #74717e;
}
html[data-shell="r1989"] .hh-nav .hh-nav-count { flex: none; font-size: 11px; opacity: .7; }
html[data-shell="r1989"] .hh-nav .hh-nav-command { opacity: .65; }
html[data-shell="r1989"] .hh-nav button:focus-visible,
html[data-shell="r1989"] .hh-nav a:focus-visible { outline: 2px solid #30355e; outline-offset: 2px; }
html[data-shell="r1989"] .topbar.typing .hh-nav { display: none !important; }
@media (max-width: 720px) {
  html[data-shell="r1989"] .topbar:has(.hh-nav) { display: flex; }
  html[data-shell="r1989"] .hh-nav { order: 3; flex: none; }
}
html[data-shell="r1989"] .hh-device {
  --hh-h: 690.667px;
  position: relative; container-type: inline-size; flex: none;
  width: min(420px, calc(100vw - 24px)); height: auto; aspect-ratio: 90 / 148;
  max-width: none; min-width: 0; padding: 0; margin: 20px auto 32px;
  display: block; isolation: isolate;
  border: 1px solid #a4a198; border-radius: 14px 14px 76px 14px;
  background: linear-gradient(105deg, #d8d5cc, #d1cec5 42%, #c6c3bb 94%, #aaa79f);
  box-shadow: inset 3px 3px 2px #eeeae1, inset -5px -3px 2px #aaa79f,
    9px 12px 0 -4px #96938d, 14px 20px 28px #0003;
}
html[data-shell="r1989"] .hh-device::before {
  content: ''; position: absolute; top: 3.4%; left: 0; right: 0; height: 2px;
  background: #9c9992; box-shadow: 0 1px 0 #eeeae1; pointer-events: none;
}
html[data-shell="r1989"] .hh-device::after {
  content: 'SCHMALZL.TIROL  /  1989'; position: absolute; left: 8%; top: 49%;
  font: italic 700 3.1cqw 'Arimo', sans-serif; letter-spacing: -.04em;
  color: #30355e; text-shadow: 0 1px 0 #ffffff60; pointer-events: none;
}
html[data-shell="r1989"] .hh-device .hh-top {
  position: absolute; left: 9%; right: 9%; top: 1.5%; margin: 0;
  font-size: 1.55cqw; letter-spacing: .1em; color: #656361;
}
html[data-shell="r1989"] .hh-device main {
  position: absolute; left: 7%; top: 7%; width: 86%; height: 39.7%;
  display: block; margin: 0; padding: 0; border: 1px solid #474750;
  border-radius: 11px 11px 44px 11px; box-sizing: border-box;
  background: linear-gradient(135deg, #666670, #575761);
  box-shadow: inset 1px 2px 2px #363640, 0 1px 1px #f5f0e166;
}
html[data-shell="r1989"] .hh-device main::before {
  content: 'BATTERIE'; position: absolute; left: 3%; top: 45%; width: 15%; height: 23px;
  padding-top: 12px; font: 1.35cqw 'Arimo', sans-serif; letter-spacing: .06em;
  color: #cac7cc; text-align: center; writing-mode: initial; transform: none;
  border-radius: 0; box-shadow: none;
  background: radial-gradient(circle at 50% 4px, #ff7773 0 2px, #c52d37 3px, #721c25 4px, transparent 5px);
}
html[data-shell="r1989"] .hh-device main::after {
  content: 'PUNKTMATRIX MIT STEREO-TON'; position: absolute;
  left: 8%; right: 8%; top: 5.5%; padding: 0 0 3px; display: block;
  font: italic 700 1.65cqw 'Arimo', sans-serif; letter-spacing: .1em;
  color: #d0ccd2; border-top: 2px solid #834663; border-bottom: 1px solid #404869;
}
html[data-shell="r1989"] .hh-device .hh-lcd {
  position: absolute; left: 23%; top: 15.5%; width: 60.7%; height: auto;
  aspect-ratio: 47 / 43; min-height: 0; display: flex; box-sizing: border-box;
  border: 3px solid #3a4322; box-shadow: 0 1px 0 #a5a098, inset 2px 2px 3px #0005;
  background: #9baa3d;
}
html[data-shell="r1989"] .hh-device .hh-screen {
  flex: 1; width: 100%; height: 100%; min-height: 0; padding: 10px;
  box-sizing: border-box; font-size: clamp(9px, 2.55cqw, 11px); line-height: 1.75;
  overflow: auto; overscroll-behavior: contain; background: #9baa3d;
}
html[data-shell="r1989"] .hh-device .hh-screen h1 { font-size: 2.55cqw; line-height: 1.5; overflow-wrap: anywhere; }
html[data-shell="r1989"] .hh-device .hh-screen h2 { font-size: 2.7cqw; line-height: 1.6; }
html[data-shell="r1989"] .hh-device .hh-screen .statusline { font-size: 1.65cqw; }
html[data-shell="r1989"] .hh-device .hh-screen .page { min-width: 0; }
html[data-shell="r1989"] .hh-device .reader-bar {
  display: flex; flex-wrap: wrap; gap: 3px 10px; margin: 0 0 10px;
  font: 2.4cqw/1.4 'Arimo', sans-serif;
}
html[data-shell="r1989"] .hh-device .reader-bar .rb-time { flex-basis: 100%; }
html[data-shell="r1989"] .hh-device .reader-bar button.link {
  margin: 0; padding: 0; background: none; box-shadow: none; color: #0f380f;
  font: inherit;
}
html[data-shell="r1989"] .hh-device .hh-lcd::after {
  background-size: 2px 2px; opacity: .65;
  box-shadow: inset 0 0 9px #35461666, inset 2px 2px 2px #35461666;
}
html[data-shell="r1989"] .hh-device .hh-controls {
  position: absolute; inset: 0; display: block; margin: 0; padding: 0;
  min-height: 0; background: none; pointer-events: none;
}
html[data-shell="r1989"] .hh-device .hh-controls > div { pointer-events: auto; }
html[data-shell="r1989"] .hh-device .hh-dpad {
  position: absolute; left: 9%; top: 57%; width: 25%; height: auto;
  aspect-ratio: 1; margin: 0; filter: drop-shadow(0 3px 1px #5d5a55);
}
html[data-shell="r1989"] .hh-device .hh-dpad span { box-shadow: none; }
html[data-shell="r1989"] .hh-device .hh-dpad .u,
html[data-shell="r1989"] .hh-device .hh-dpad .d { left: 33.333%; width: 33.334%; height: 33.334%; }
html[data-shell="r1989"] .hh-device .hh-dpad .l,
html[data-shell="r1989"] .hh-device .hh-dpad .r { top: 33.333%; width: 33.334%; height: 33.334%; }
html[data-shell="r1989"] .hh-device .hh-dpad .c { left: 33.333%; top: 33.333%; width: 33.334%; height: 33.334%; }
html[data-shell="r1989"] .hh-device .hh-ab {
  position: absolute; left: 62%; top: 58.8%; width: 32%; margin: 0;
  display: flex; justify-content: space-between; gap: 0; transform: rotate(-25deg);
}
html[data-shell="r1989"] .hh-device .hh-ab::after {
  content: ''; position: absolute; inset: -6px -8px; border-radius: 50px;
  background: linear-gradient(#b3b0a8, #e4dfd6); box-shadow: inset 0 1px 2px #86827b;
  z-index: -1; pointer-events: none;
}
html[data-shell="r1989"] .hh-device .hh-ab button {
  flex: none; width: 11.7cqw; height: 11.7cqw; padding: 0;
  background: radial-gradient(circle at 38% 30%, #a72c66, #8d1d52 67%, #6b143c) !important;
  box-shadow: inset 1px 1px 1px #dc6691, inset -1px -2px 1px #681338,
    0 3px 0 #51102e, 0 5px 5px #0004 !important;
}
html[data-shell="r1989"] .hh-device .hh-ab button::before { font-size: 2.55cqw; bottom: -4.8cqw; }
html[data-shell="r1989"] .hh-device .hh-ss {
  position: absolute; left: 28%; top: 76.5%; width: 35%; margin: 0 !important;
  display: flex; justify-content: space-between; gap: 0 !important;
}
html[data-shell="r1989"] .hh-device .hh-ss button {
  width: 12.4cqw !important; height: 3.1cqw !important;
  box-shadow: inset 0 1px 1px #b6b6bb, inset 0 -2px 1px #44454c,
    0 2px 0 #73706b, 0 3px 0 3px #b5b2aa !important;
}
html[data-shell="r1989"] .hh-device .hh-ss button::before { font-size: 1.9cqw !important; top: 4.4cqw !important; }
html[data-shell="r1989"] .hh-device .hh-speaker {
  position: absolute; right: 9%; bottom: 7%; width: 24%; height: 13%;
  border-radius: 3px; transform: rotate(-28deg); pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 2.8cqw,
    #8b887f 2.8cqw 3.3cqw, #615f58 3.3cqw 3.75cqw, #e2ded4 3.75cqw 4.1cqw);
}
html[data-shell="r1989"] .hh-device .hh-ab button.pressed { transform: translateY(2px); box-shadow: inset 0 1px 2px #57132f, 0 1px 0 #51102e !important; }
html[data-shell="r1989"] .hh-device .hh-ss button.pressed { transform: rotate(-25deg) translateY(2px); }
html[data-shell="r1989"] .hh-device button:focus-visible,
html[data-shell="r1989"] .hh-device a:focus-visible { outline: 2px solid #30355e; outline-offset: 4px; }
@media (max-width: 450px) {
  html[data-shell="r1989"] .hh-device { border-radius: 12px 12px 64px 12px; }
}
}
