:root {
  --blue: #003A7D;
  --blue2: #0a4fa3;
  --navy: #071a38;
  --orange: #FF9900;
  --orange2: #F9AD09;
  --ink: #13233f;
  --card: rgba(255, 255, 255, 0.97);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; cursor: pointer; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--navy); font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); user-select: none; -webkit-user-select: none; touch-action: none; }
canvas { position: fixed; inset: 0; display: block; }
#safe { position: fixed; top: 0; left: 0; width: 0; padding-top: var(--sat); padding-bottom: var(--sab); visibility: hidden; }
.hidden { display: none !important; }

#hud { position: fixed; top: calc(var(--sat) + 8px); left: 8px; right: 8px; display: flex; gap: 8px; align-items: center; z-index: 5; }
.hud-btn { width: 44px; height: 40px; border: 0; border-radius: 12px; background: rgba(255,255,255,.16); color: #fff; font-size: 14px; font-weight: 800; }
.hud-chip { background: rgba(255,255,255,.16); color: #fff; border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.hud-score { margin-left: auto; background: var(--orange); color: #1b1200; font-size: 17px; min-width: 70px; text-align: right; }

#controls { position: fixed; left: 0; right: 0; bottom: calc(var(--sab) + 14px); display: flex; align-items: center; justify-content: center; gap: 14px; z-index: 5; pointer-events: none; }
.remote { pointer-events: auto; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 18px; padding: 10px 16px; background: var(--orange); color: #1b1200; font-weight: 800; font-size: 18px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.remote:disabled { background: #6b7891; color: #c9d2e3; box-shadow: none; }
.remote-ico { width: 22px; height: 30px; border-radius: 6px; background: #1b2a48; position: relative; }
.remote-ico::before, .remote-ico::after { content: ""; position: absolute; left: 6px; width: 10px; height: 6px; border-radius: 3px; background: var(--orange2); }
.remote-ico::before { top: 6px; } .remote-ico::after { top: 16px; }
.hint { color: #dbe6ff; font-size: 14px; font-weight: 600; opacity: .85; transition: opacity .6s; }

.screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: calc(var(--sat) + 16px) 16px calc(var(--sab) + 16px); background: linear-gradient(160deg, rgba(0,58,125,.92), rgba(7,26,56,.95)); z-index: 10; overflow-y: auto; }
.card { background: var(--card); border-radius: 24px; padding: 22px 20px; width: 100%; max-width: 420px; text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.35); margin: auto; }
.small-card { max-width: 340px; }
.logo { width: 170px; max-width: 60%; height: auto; }
/* 20-Jahre-Emblem und Hoermann Kompetenzcenter unter dem TECDOOR-Logo */
.marken { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 8px 0 2px; }
.marken .emblem { height: 52px; }
.marken .hkc { height: 36px; border-radius: 3px; }
h1 { margin: 10px 0 6px; font-size: 32px; color: var(--blue); letter-spacing: -.5px; }
h2 { margin: 4px 0 12px; font-size: 26px; color: var(--blue); }
.lead { margin: 0 0 12px; font-size: 16px; color: #33476b; }
.howto { text-align: left; margin: 0 0 16px; padding-left: 20px; font-size: 14px; color: #33476b; line-height: 1.45; }
.howto li { margin-bottom: 4px; }
.btn { display: block; width: 100%; border: 0; border-radius: 16px; padding: 14px; margin: 8px 0; font-size: 18px; font-weight: 800; background: #e7edf7; color: var(--blue); }
.btn.primary { background: var(--orange); color: #1b1200; font-size: 21px; }
.btn.small { width: auto; display: inline-block; padding: 8px 14px; font-size: 14px; margin: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.best { font-weight: 700; color: var(--blue); }
.foot { font-size: 12px; color: #6a7a96; margin: 14px 0 0; }
.foot a { color: var(--blue2); }
.big { font-size: 48px; font-weight: 900; color: var(--orange); }
.mut { color: #5a6a88; margin: 4px 0 14px; }
