/* PC-Oberfläche: Maus, Trackpad, Tastatur, große Bildschirme.
   Aussehen und Anordnung für alle Geräte stehen in oberflaeche.css; hier nur PC-Größen und Maus.
   Gilt nur für (min-width: 1024px) and (pointer: fine), siehe base.css.
   Ausnahme: Tooltip und Tastenhilfe stammen aus js/ui/input-pc.js und sind deshalb immer gestylt. */

/* ---------- Elemente aus input-pc.js (geräteunabhängig) ---------- */
.pc-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  max-width: 280px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(40, 54, 72, 0.92);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.pc-tooltip[hidden] { display: none; }

.pc-help {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(40, 54, 72, 0.45);
}
.pc-help[hidden] { display: none; }
.pc-help-box {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px 26px;
  border-radius: 16px;
  background: var(--paper, #fffcf6);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.pc-help-box h2 { margin: 0 0 14px; font-size: 20px; }
.pc-help-box dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 18px;
  margin: 0 0 18px;
}
.pc-help-box dt { font-weight: 700; }
.pc-help-box dd { margin: 0; color: #4a5a70; }
.pc-help-box kbd, .hm kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 6px;
  border: 1px solid #b9c4d0;
  border-bottom-width: 3px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink, #283648);
  font: 700 12px/1.5 ui-monospace, "SF Mono", Consolas, monospace;
  text-align: center;
}
.pc-help-btn { display: none !important; }

/* ---------- PC: Größen und Maus ---------- */
@media (min-width: 1024px) and (pointer: fine) {
  :root {
    --hm-knopf: 48px;
    --hm-tempo: 40px;
    --hm-chip: 40px;
    --hm-bauen: 60px;
    --hm-schrift: 15px;
    --hm-rand: 16px;
    --hm-karte-breite: 400px;
  }
  .hm-neu .hm-himmel { min-width: 90px; }
  /* Tastenhilfe gibt es nur mit Tastatur */
  .hm-neu #btn-help { display: flex !important; }
  .hm-neu .hm-rund:hover, .hm-neu .hm-chip:hover:not([aria-expanded="true"]) { color: var(--hm-meer); }
  .hm-neu #card button:not(:disabled) { cursor: pointer; }
  #stage { cursor: grab; }
  #stage:active { cursor: grabbing; }
  body.towing, body.towing * { cursor: grabbing !important; }
}

/* Große Bildschirme: alles doppelt so grob, damit es auf 27 Zoll und 4K nicht winzig wird */
@media (min-width: 1920px) and (pointer: fine) {
  :root { --hm-px: 3px; --hm-knopf: 58px; --hm-tempo: 50px; --hm-chip: 48px; --hm-bauen: 72px; --hm-schrift: 18px; --hm-karte-breite: 470px; --hm-symbol: 30px; }
}
@media (min-width: 2560px) and (pointer: fine) {
  :root { --hm-px: 4px; --hm-knopf: 76px; --hm-tempo: 64px; --hm-chip: 62px; --hm-bauen: 96px; --hm-schrift: 23px; --hm-karte-breite: 620px; --hm-symbol: 36px; --hm-rand: 24px; }
  .pc-tooltip { font-size: 18px; max-width: 360px; }
}
