/* game/menu.css - the game's menu: the kit of a small ace. Saddle leather for the surfaces, brass for what is chosen and for the main action,
   canvas for the type, the teal of the goggle lens for "on" and for the keyboard's focus, the red scarf only in the wordmark and for the fight.
   Type: Bricolage Grotesque ExtraBold, a little narrow (game/rodent-display.ttf, made by tools/schrift.py) for the wordmark and the titles, Inter for every
   control and text (it stays the more legible at 13 to 19 px, and has the even figures the values need).
   The markup is game/menu.js (MENU); the paired phone reads the same markup (game/remote.js), so the look lives here only. */
@font-face { font-family: 'Rodent Display'; src: url('/game/rodent-display.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Rodent Sans'; src: url('/game/rodent-sans.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }
#sim {
  --leder: #24190f; --sattel: #3a2a1d; --naht: #5b4430; --messing: #d8a64a; --messing-hell: #f0c46c; --leinen: #f1e7d3; --leise: rgba(241, 231, 211, 0.66);
  --linse: #4cc3b5; --schal: #c63a2c;
  --display: 800 1em/1 'Rodent Display', 'Bricolage Grotesque', 'Rodent Sans', system-ui, sans-serif;
  --sans: 'Rodent Sans', Inter, system-ui, sans-serif;
  --fokus: 0 0 0 2px var(--leder), 0 0 0 5px var(--linse);
}

/* the button that opens the menu during a flight, and the one to get off the bird */
#menuKnopf, #absteigen {
  position: fixed; z-index: 4; right: max(14px, env(safe-area-inset-right)); top: max(12px, env(safe-area-inset-top)); min-width: 88px; padding: 9px 16px; margin: 0;
  font: 600 15px/1.2 var(--sans); color: var(--leinen); background: rgba(36, 25, 15, 0.82); border: 1px solid rgba(216, 166, 74, 0.45); border-radius: 999px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
#absteigen { display: none; top: calc(max(12px, env(safe-area-inset-top)) + 50px); min-width: 112px; color: var(--leder); background: var(--messing); border-color: var(--messing-hell); }
#menuKnopf:focus-visible, #absteigen:focus-visible { outline: none; box-shadow: var(--fokus); }
body.menuauf #menuKnopf, body.menuauf #qr, body.sim.menuauf #kampf, body.menuauf #kreuzG, body.menuauf .griff { display: none !important; }
body:has(#menu.auf) #absteigen { display: none !important; }

#menu { position: fixed; inset: 0; z-index: 5; display: none; color: var(--leinen); font: 500 15px/1.4 var(--sans); -webkit-font-smoothing: antialiased; }
#menu.auf { display: block; }
#menu .nurfern { display: none; }
#menu h1, #menu h2, #menu h3, #menu p, #menu figure { margin: 0; }

/* every button: leather, a fine brass edge; chosen = brass ring; the main one = brass */
#menu button {
  position: relative; margin: 0; min-height: 44px; padding: 10px 16px; font: 600 15px/1.2 var(--sans); color: var(--leinen); text-align: center;
  background: var(--sattel); border: 1px solid rgba(216, 166, 74, 0.16); border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 0.14s, border-color 0.14s, color 0.14s, transform 0.08s;
}
#menu button:hover { background: #47341f; border-color: rgba(216, 166, 74, 0.5); }
#menu button:active { transform: scale(0.98); }
#menu button:focus-visible, #menu summary:focus-visible, #menu input:focus-visible { outline: none; box-shadow: var(--fokus); }
#menu button[aria-pressed="true"] { color: var(--messing-hell); background: #4a3520; border-color: var(--messing); box-shadow: inset 0 0 0 1px var(--messing); }
#menu button[aria-pressed="true"]:focus-visible { box-shadow: inset 0 0 0 1px var(--messing), var(--fokus); }
#menu button.los { color: var(--leder); background: var(--messing); border-color: var(--messing-hell); font-weight: 700; }
#menu button.los:hover { background: var(--messing-hell); }

/* ---------------------------------------------------------------- the title */
#menu .titel { position: absolute; inset: 0; }
#menu .titel::before, #menu .titel::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
#menu .titel::before { background: radial-gradient(ellipse 58% 62% at 0 0, rgba(28, 18, 9, 0.55), rgba(28, 18, 9, 0.18) 55%, transparent 78%); }
#menu .titel::after { background: radial-gradient(ellipse 50% 70% at 100% 100%, rgba(28, 18, 9, 0.5), transparent 72%); }
/* the wordmark: "Rodent" and under it "Aces" set in by 0.52 em, the lines 0.8 em apart; the scarf's knot tucked behind the end of "Aces", the scarf
   streaming out to the right under "Rodent" (the box is as wide as the scarf reaches, 4.3 em, so that centring it centres the whole) */
#menu .wortmarke { position: absolute; z-index: 1; left: max(clamp(18px, 4vw, 64px), env(safe-area-inset-left)); top: clamp(10px, 4.5vh, 52px); width: 4.3em; font-size: clamp(50px, min(9.5vw, 18vh), 132px); pointer-events: none; }
#menu .wortmarke h1 { position: relative; z-index: 1; font: var(--display); line-height: 0.8; letter-spacing: -0.01em; color: var(--leinen); text-shadow: 0 2px 26px rgba(20, 12, 6, 0.45); }
#menu .wortmarke h1 span { display: block; }
#menu .wortmarke h1 span + span { padding-left: 0.52em; }
#menu .wortmarke p { display: none; }
#menu .schal { position: absolute; left: 2.1em; top: 1.03em; width: 2.2em; height: 0.44em; animation: schal 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
@keyframes schal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

#menu .titel .knoepfe { position: absolute; z-index: 1; right: max(clamp(14px, 3.5vw, 56px), env(safe-area-inset-right)); bottom: max(clamp(12px, 5vh, 52px), env(safe-area-inset-bottom)); width: min(340px, 40vw); display: flex; flex-direction: column; gap: 8px; }
#menu .tafel {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 8px 18px 8px 9px; font-size: clamp(16px, 1.9vw, 19px); text-align: left;
  background: rgba(36, 25, 15, 0.86); border-color: rgba(216, 166, 74, 0.3); border-radius: 14px; animation: ankommen 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
#menu .tafel:hover { background: rgba(58, 42, 29, 0.94); }
#menu .tafel svg { width: 36px; height: 36px; flex: none; padding: 7px; box-sizing: border-box; border-radius: 50%; color: var(--messing); background: var(--leder); box-shadow: inset 0 0 0 1.5px rgba(216, 166, 74, 0.55); }
#menu .tafel.los svg { color: var(--messing-hell); }
#menu .tafel:not(:has(svg)) { padding-left: 18px; }
#menu #mKampf svg, #menu #eAndere svg, #menu #pAufgeben svg { color: #e5614f; }
#menu .knoepfe > :nth-child(2) { animation-delay: 0.05s; } #menu .knoepfe > :nth-child(3) { animation-delay: 0.1s; } #menu .knoepfe > :nth-child(4) { animation-delay: 0.15s; } #menu .knoepfe > :nth-child(5) { animation-delay: 0.2s; }
@keyframes ankommen { from { opacity: 0; transform: translateY(8px); } }
#menu .ecke { position: absolute; z-index: 1; left: max(16px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); min-height: 40px; padding: 8px 16px; font-size: 14px; background: rgba(36, 25, 15, 0.8); border-radius: 999px; }

/* ---------------------------------------------------------------- a whole screen: one leather sheet */
#menu .huelle { position: absolute; inset: 0; display: flex; justify-content: center; background: linear-gradient(100deg, rgba(36, 25, 15, 0.97), rgba(36, 25, 15, 0.93) 60%, rgba(44, 31, 19, 0.9)); }
#menu .blatt { width: 100%; max-width: 1240px; min-height: 0; display: flex; flex-direction: column; padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
#menu .blatt header { flex: none; display: flex; align-items: center; gap: 14px; padding: 2px 0 10px; }
#menu .blatt header h1 { font: var(--display); font-size: clamp(24px, 2.9vw, 34px); line-height: 1.1; letter-spacing: 0; color: var(--leinen); }
#menu .zurueck { width: 44px; height: 44px; min-height: 0; padding: 0; flex: none; font-size: 0; border-radius: 50%; background: transparent; border: 1.5px solid rgba(216, 166, 74, 0.6); }
#menu .zurueck::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -6px 0 0 -3px; border-left: 2px solid var(--messing); border-bottom: 2px solid var(--messing); transform: rotate(45deg); }
#menu .zurueck:hover { background: rgba(216, 166, 74, 0.12); }
#menu .koerper { flex: 1; min-height: 0; overflow-y: auto; padding: 0 6px 12px 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--naht) transparent; }
#menu .blatt footer { flex: none; display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px; }
#menu .blatt footer button { min-height: 48px; }
#menu .blatt footer .los { flex: 0 1 340px; min-height: 54px; font-size: 18px; border-radius: 14px; }

#menu h2 { font: var(--display); font-size: 19px; line-height: 1.15; letter-spacing: 0.01em; color: var(--messing); padding: 16px 0 8px; }
#menu h3 { font-weight: 600; font-size: 13px; color: var(--leise); padding: 12px 0 6px; }
#menu small { display: block; margin: 6px 0; font-size: 13px; line-height: 1.4; color: var(--leise); max-width: 62ch; }
#menu .wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
#menu .wahl.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#menu .wahl button { min-width: 0; padding: 9px 8px; font-size: 14.5px; overflow-wrap: anywhere; }
#menu .wahl.modi small { display: none; }
#menu .wahl.modi .n { font: inherit; }

/* free flight and the dogfight: the picture and its strip at the left, the few choices at the right */
#menu .wahlbild { height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 34%); gap: 20px; }
#menu .waehlen { min-height: 0; display: flex; flex-direction: column; gap: 8px; }
#menu .waehlen > .wahl { flex: none; }
#menu figure.gross { position: relative; flex: 1; min-height: 60px; overflow: hidden; border-radius: 14px; background: var(--sattel); }
#menu figure.gross img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#menu figure.gross::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(241, 231, 211, 0.12); background: linear-gradient(transparent 55%, rgba(24, 16, 9, 0.72)); pointer-events: none; }
#menu figure.gross figcaption { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 12px; font: var(--display); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.05; color: var(--leinen); text-shadow: 0 1px 12px rgba(20, 12, 6, 0.5); }
#menu .seite { min-height: 0; overflow-x: hidden; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--naht) transparent; }
#menu .seite > h2:first-child { padding-top: 0; }
#menu .seite h2 { font-size: 17px; padding: 14px 0 7px; }
#menu[data-scr="mehr"] .koerper > *, #menu[data-scr="einst"] .koerper > * { max-width: 820px; }
#menu .wahl.karten { display: flex; overflow-x: auto; overflow-y: hidden; gap: 6px; padding: 2px; scrollbar-width: none; }
#menu .wahl.karten button { flex: none; width: clamp(92px, 14vh, 140px); aspect-ratio: 1.55; min-height: 0; padding: 0; overflow: hidden; border-radius: 9px; background: var(--sattel); border-color: rgba(241, 231, 211, 0.1); }
#menu .wahl.karten img, #menu .wahl.karten i.leer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.78; transition: opacity 0.14s; }
#menu .wahl.karten button:hover img { opacity: 1; }
#menu .wahl.karten button[aria-pressed="true"] { border: 2px solid var(--messing); box-shadow: none; }
#menu .wahl.karten button[aria-pressed="true"] img { opacity: 1; }
#menu .wahl.karten i.leer, #menu figure.gross.leer { background: linear-gradient(152deg, #7d9858 0 22%, #6b8a4b 22% 34%, #c9b58a 34% 37%, #4f9c9a 37% 58%, #3f8a8c 58% 79%, #33767c 79%); }      /* (the map of now, without a picture: land, shore and sea in facets) */
#menu .wahl.karten .n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* switches, sliders, folded parts */
#menu label.zeile, #menu label.haken { display: block; margin: 0; padding: 11px 2px; font-size: 14.5px; font-weight: 500; line-height: 1.35; border-bottom: 1px solid rgba(91, 68, 48, 0.55); }
#menu label.zeile output { float: right; margin-left: 12px; font-weight: 650; color: var(--messing); font-variant-numeric: tabular-nums; }
#menu input.eins { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 30px; margin: 6px 0 0; background: transparent; cursor: pointer; touch-action: pan-y; }
#menu input.eins::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--naht); }
#menu input.eins::-moz-range-track { height: 4px; border-radius: 2px; background: var(--naht); }
#menu input.eins::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--messing); }
#menu input.eins::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--leinen); border: 5px solid var(--messing); box-sizing: border-box; }
#menu input.eins::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--leinen); border: 5px solid var(--messing); box-sizing: border-box; }
#menu input.eins:focus-visible { box-shadow: none; }
#menu input.eins:focus-visible::-webkit-slider-thumb { box-shadow: var(--fokus); }
#menu input.eins:focus-visible::-moz-range-thumb { box-shadow: var(--fokus); }
#menu label.haken { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
#menu label.haken input { order: 2; -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 46px; height: 28px; margin: 0; border-radius: 14px; background: var(--naht); cursor: pointer; transition: background-color 0.15s; }
#menu label.haken input::after { content: ''; position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--leinen); transition: transform 0.15s; }
#menu label.haken input:checked { background: var(--linse); }
#menu label.haken input:checked::after { transform: translateX(18px); }
#menu details { margin: 10px 0 0; }
#menu summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 2px; font-weight: 650; font-size: 15px; color: var(--leinen); border-bottom: 1px solid rgba(91, 68, 48, 0.8); cursor: pointer; list-style: none; }
#menu summary::-webkit-details-marker { display: none; }
#menu summary::after { content: ''; width: 7px; height: 7px; margin: -4px 4px 0 auto; border-right: 2px solid var(--messing); border-bottom: 2px solid var(--messing); transform: rotate(45deg); transition: transform 0.15s; }
#menu details[open] > summary::after { margin-top: 4px; transform: rotate(225deg); }
#menu details[open] > summary { color: var(--messing-hell); }
#menu .zweit, #menu .breit { margin-top: 10px; }
#menu .koerper > .breit { display: block; width: 100%; }

/* settings: the tabs at the left, the chosen one marked in brass */
#menu[data-scr="einst"] .blatt { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: 24px; }
#menu[data-scr="einst"] header { grid-column: 1 / 3; }
#menu nav.modus { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; overflow-y: auto; background: none; border-radius: 0; }
#menu nav.modus button { flex: none; width: 100%; text-align: left; padding: 11px 14px; background: transparent; border: 0; border-radius: 10px; color: var(--leise); }
#menu nav.modus button:hover { background: rgba(58, 42, 29, 0.7); color: var(--leinen); }
#menu nav.modus button[aria-pressed="true"] { color: var(--leinen); background: var(--sattel); box-shadow: inset 3px 0 0 var(--messing); }
#menu nav.modus button[aria-pressed="true"]:focus-visible { box-shadow: inset 3px 0 0 var(--messing), var(--fokus); }

/* ---------------------------------------------------------------- pause and result: the flight stays visible behind */
#menu .mitte {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 12px; overflow-y: auto;
  padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: radial-gradient(ellipse 75% 85% at 50% 50%, rgba(28, 18, 9, 0.72), rgba(28, 18, 9, 0.5) 70%, rgba(28, 18, 9, 0.38));
}
#menu .mitte h1 { font: var(--display); font-size: clamp(36px, min(6vw, 11.5vh), 72px); line-height: 1.02; color: var(--leinen); text-align: center; text-shadow: 0 2px 26px rgba(20, 12, 6, 0.45); padding-bottom: 4px; }
#menu .mitte .knoepfe { display: flex; flex-direction: column; gap: 8px; width: min(360px, 100%); }
#menu .mitte .tafel { justify-content: flex-start; }
#menu .ende.sieg h1 { color: var(--messing-hell); }
#menu .ende .grund { font-size: 16px; text-align: center; color: var(--leinen); }
#menu .ende .zahlen { font-size: 14px; text-align: center; color: var(--leise); font-variant-numeric: tabular-nums; }
#menu .ende .punkte { display: flex; align-items: baseline; gap: 10px; color: var(--leise); font-size: 15px; }
#menu .ende .punkte b { font: var(--display); font-size: clamp(40px, 10.5vh, 70px); line-height: 1; color: var(--leinen); }
#menu .rang { width: min(360px, 100%); padding: 6px 16px; border-radius: 14px; background: rgba(36, 25, 15, 0.86); border: 1px solid rgba(216, 166, 74, 0.2); }
#menu .rang p { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 15px; }
#menu .rang p + p { border-top: 1px solid rgba(91, 68, 48, 0.6); }
#menu .rang p::before { content: ''; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--c); }
#menu .rang p span { flex: 1; }
#menu .rang p b { font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- multiplayer */
#menu label.code { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; font-weight: 600; }
#menu label.code input { flex: 1; min-width: 0; font: 650 24px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: 0.14em; padding: 10px 14px; color: var(--leinen); background: var(--leder); border: 1px solid var(--naht); border-radius: 10px; }
#menu label.code input:focus-visible { border-color: var(--linse); }
#menu .wahl.tasten button { font-size: 18px; font-variant-numeric: tabular-nums; }
#menu .raum { display: flex; gap: 20px; align-items: center; margin: 10px 0; }
#menu .raum canvas { width: 140px; height: 140px; flex: none; image-rendering: pixelated; background: #fff; border-radius: 10px; border: 6px solid #fff; }
#menu .raumcode { display: block; margin: 2px 0 4px; font: var(--display); font-size: 46px; line-height: 1; color: var(--messing); font-variant-numeric: tabular-nums; }
#menu h2.team { display: flex; align-items: center; gap: 10px; }
#menu h2.team::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
#menu .platz { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 2px; border-bottom: 1px solid rgba(91, 68, 48, 0.55); }
#menu .platz p { flex: 1; }
#menu .platz span { color: var(--leise); margin-right: 6px; }
#menu .platz button { min-height: 40px; padding: 8px 14px; font-size: 14px; }
#menu p.status { font-weight: 650; color: var(--linse); padding: 8px 0 2px; }

/* wide: the main button stands under the choices, the picture has the whole height */
@media (min-aspect-ratio: 1/1) {
  #menu[data-scr="frei"] .blatt, #menu[data-scr="kampf"] .blatt { position: relative; }
  #menu[data-scr="frei"] .koerper, #menu[data-scr="kampf"] .koerper { overflow: hidden; padding-bottom: 0; }
  #menu[data-scr="frei"] .blatt footer, #menu[data-scr="kampf"] .blatt footer { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); width: max(250px, calc(34% - 16px)); flex-wrap: wrap; }
  #menu[data-scr="frei"] .blatt footer .los, #menu[data-scr="kampf"] .blatt footer .los { flex: 1 1 100%; }
  #menu[data-scr="frei"] .blatt footer .zweit, #menu[data-scr="kampf"] .blatt footer .zweit { flex: 1; margin: 0; }
  #menu[data-scr="frei"] .seite, #menu[data-scr="kampf"] .seite { margin-bottom: 70px; }
  #menu[data-scr="kampf"] .blatt:has(#kWeiter) .seite { margin-bottom: 128px; }
}

/* a phone held upright */
@media (max-aspect-ratio: 1/1) {
  #menu .wortmarke { left: 50%; transform: translateX(-50%); font-size: min(20.5vw, 92px); top: max(clamp(16px, 5vh, 60px), env(safe-area-inset-top)); }
  #menu .titel::before { background: radial-gradient(ellipse 110% 34% at 50% 14%, rgba(28, 18, 9, 0.62), rgba(28, 18, 9, 0.3) 60%, transparent 100%); }
  #menu .titel::after { background: linear-gradient(transparent 50%, rgba(28, 18, 9, 0.55)); }
  #menu .titel .knoepfe { left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); width: auto; }
  #menu .titel .ecke { display: none; }
  #menu .wahlbild { height: auto; display: block; }
  #menu figure.gross { flex: none; height: 46vw; }
  #menu .seite { padding-top: 6px; overflow: visible; }
  #menu[data-scr="einst"] .blatt { display: flex; }
  #menu nav.modus { flex: none; flex-direction: row; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 0 0 10px; scrollbar-width: none; }
  #menu nav.modus button { width: auto; flex: none; text-align: center; padding: 9px 14px; font-size: 14px; border: 1px solid rgba(216, 166, 74, 0.16); }
  #menu nav.modus button[aria-pressed="true"] { box-shadow: inset 0 -2px 0 var(--messing); }
  #menu .blatt footer .los { flex: 1 1 auto; }
}
/* a phone held crosswise: little height */
@media (max-height: 480px) and (min-aspect-ratio: 1/1) {
  #menu .tafel { min-height: 46px; padding-top: 5px; padding-bottom: 5px; font-size: 16px; }
  #menu .tafel svg { width: 32px; height: 32px; padding: 6px; }
  #menu .titel .knoepfe, #menu .mitte .knoepfe { gap: 6px; }
  #menu .blatt header { padding-bottom: 6px; }
  #menu .blatt header h1 { font-size: 23px; }
  #menu .zurueck { width: 40px; height: 40px; }
  #menu .blatt footer .los { min-height: 48px; font-size: 17px; }
  #menu .wahl button { min-height: 40px; padding: 7px 6px; font-size: 13.5px; }
  #menu h2 { font-size: 17px; padding: 12px 0 6px; }
  #menu .mitte { gap: 8px; }
  #menu .mitte h1 { font-size: clamp(30px, 10.5vh, 52px); }
  #menu .ende .punkte b { font-size: 40px; }
  #menu .ende .grund { font-size: 14.5px; }
  #menu .mitte .tafel { min-height: 44px; }
  #menu .rang p { padding: 3px 0; }
  #menu label.zeile, #menu label.haken { padding: 8px 2px; }
}
/* the result on a low wide screen: what happened at the left, the ways on at the right */
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  #menu .ende { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 330px); justify-content: center; align-content: safe center; column-gap: clamp(24px, 5vw, 56px); row-gap: 6px; }
  #menu .ende > * { grid-column: 1; justify-self: center; }
  #menu .ende > .rang { justify-self: stretch; width: auto; }
  #menu .ende > .knoepfe { grid-column: 2; grid-row: 1 / span 5; align-self: center; width: 100%; }
  #menu .ende h1 { font-size: clamp(32px, 10vh, 52px); }
}
@media (prefers-reduced-motion: reduce) {
  #menu *, #menu *::before, #menu *::after { animation: none !important; transition: none !important; }
}

/* the thumbs on this screen (touch): the same instrument rings as on the phone */
body.sim .griff { border: 2px solid rgba(216, 166, 74, 0.7); background: radial-gradient(circle, rgba(36, 25, 15, 0.08) 0 60%, rgba(36, 25, 15, 0.22)); }
body.sim .griff i { background: rgba(241, 231, 211, 0.9); box-shadow: 0 0 0 3px rgba(216, 166, 74, 0.8), 0 2px 10px rgba(0, 0, 0, 0.3); }

/* the pairing code on this screen and its state, in the menu's leather */
body.sim #qr { background: rgba(36, 25, 15, 0.9); border-color: rgba(216, 166, 74, 0.3); color: var(--leinen); font-family: var(--sans); }
body.sim #qr span { color: var(--leise); }
body.sim #qr.ok b { color: var(--linse); }

/* in flight (game/hud.js): speed and height, between them the frame rate when the player asked for it - one small line at the top centre. Under the
   fight's line in a match, lower still in the rider's view; in an upright phone without the two words, in the middle of what the menu button leaves free */
#flugHud {
  position: fixed; z-index: 3; left: 50%; top: max(12px, env(safe-area-inset-top)); transform: translateX(-50%); display: none; align-items: stretch;
  font: 500 12px/1 var(--sans); color: var(--leise); white-space: nowrap; font-variant-numeric: tabular-nums; pointer-events: none;
  background: rgba(36, 25, 15, 0.8); border: 1px solid rgba(216, 166, 74, 0.4); border-radius: 999px;
}
#flugHud span { display: flex; align-items: baseline; gap: 5px; padding: 7px 13px 6px; }
#flugHud span + span { border-left: 1px solid rgba(216, 166, 74, 0.25); }
#flugHud b { min-width: 2ch; font-weight: 700; font-size: 15px; color: var(--leinen); text-align: right; }
#flugHud .tempo b, #flugHud .hoehe b { min-width: 3ch; }
#flugHud small { font-size: 11.5px; }
#flugHud .bild b { color: var(--messing-hell); }
#flugHud.ohneflug .tempo, #flugHud.ohneflug .hoehe, #flugHud.ohnebild .bild { display: none; }
#flugHud.ohneflug .bild { border-left: 0; }
#flugHud.ohnebild .hoehe { border-left: 1px solid rgba(216, 166, 74, 0.25); }
body.kampf #flugHud { top: calc(max(12px, env(safe-area-inset-top)) + 40px); }
body.maus #flugHud { top: 54px; } body.kampf.maus #flugHud { top: 94px; }
body.menuauf #flugHud { display: none !important; }
body.probe:not(.probe-handy) #qr { display: none !important; }      /* (the editor's test flight, a small frame: no pairing code over the picture) */
body.sim #fps { display: none !important; }      /* (the picture's own count at the lower left is the editor's; the game shows the rate in its line) */
@media (max-width: 560px) { #flugHud { left: calc(50% - 51px); } #flugHud .wort { display: none; } #flugHud span { padding-left: 9px; padding-right: 9px; } }      /* (the middle of what the menu button leaves free) */

/* the tags over the birds at the base: which bird is whose (game/basis.js places them over the bird on the screen) */
.vogelmarke { display: none; position: fixed; left: 0; top: 0; z-index: 3; padding: 4px 11px 6px; border: 1px solid var(--naht); border-radius: 8px; background: var(--leder); color: var(--leinen); font: 600 14px/1.2 var(--sans); white-space: nowrap; pointer-events: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.vogelmarke.dein { background: var(--messing); border-color: var(--messing-hell); color: var(--leder); }
.vogelmarke.dein::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top: 9px solid var(--messing); border-bottom: 0; }
body:has(#menu.auf) .vogelmarke, body.maus .vogelmarke { display: none !important; }
