:root {
  --bg: #061d21;
  --surface: #0c3f47;
  --field: #042026;
  --fg: #f4fbfb;
  --muted: #b7c9cc;
  --accent: #28c320;
  --danger: #e23b3b;
  --warn: #f5a524;
  --border: #878787;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); min-height: 100%; }
button, input, select, option { font-family: inherit; color: var(--fg); }
select, option { background: var(--field); color-scheme: dark; }
button { cursor: pointer; }
img { max-width: 100%; }
.header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 8px; background: var(--bg); border-bottom: 1px solid var(--border); }
/* Werbung auf Unterseiten steuern. Die Klasse acalc-subpage setzt js/app.js,
   sobald nicht die Zähmseite offen ist. Unteres Banner bleibt, In-Page- und
   Vollbildwerbung verschwindet, weil dort der Platz nicht reicht. */
html.acalc-subpage #google-vignette,
html.acalc-subpage ins.adsbygoogle[data-vignette-loaded],
html.acalc-subpage iframe[src*="mellow.tel"],
html.acalc-subpage [id*="mellow"],
html.acalc-subpage [class*="mellow"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
html.acalc-subpage ins.adsbygoogle[data-anchor-status],
html.acalc-subpage body > div[style*="bottom"]:not([style*="top"]) {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; }
.grow { flex: 1; min-width: 0; }
.title { margin: 0; font-size: 14px; font-weight: 600; }
.sub { margin: 0; font-size: 11px; color: var(--muted); }
.page { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; padding: 12px 12px calc(64px + var(--acalc-ad, 0px)); }
.card { border: 1px solid #878787; background: linear-gradient(180deg, #061d21 0%, #0c3f47 50%, #061d21 100%); border-radius: 10px; padding: 12px; }
.field, .btn, .choice { height: 44px; border-radius: 6px; border: 1px solid var(--border); background: var(--field); }
.field { text-align: center; width: 100%; }
.btn { background: var(--accent); color: #fff; font-weight: 600; border: 0; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.row { display: flex; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.green { color: #008000; }
.red { color: #ff0000; }
.lime { color: #28c320; }
.warn { color: var(--warn); }
.danger { color: var(--danger); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.list { position: absolute; top: 100%; left: 0; z-index: 20; margin-top: 4px; max-height: 16rem; overflow: auto; width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 0; list-style: none; }
.list button { width: 100%; min-height: 44px; text-align: left; background: transparent; border: 0; padding: 0 12px; }
.list button:hover, .list button[aria-selected="true"] { background: var(--surface); color: var(--accent); }
.rel { position: relative; }
.food { display: grid; gap: 2px; align-items: center; margin-top: 4px; padding: 2px; border-radius: 6px; }
.food.on { box-shadow: inset 0 0 0 1px var(--accent); }
.food > * { min-width: 0; }
.food .icon-btn { width: 40px; height: 40px; padding: 0; }
.food .icon-btn img { width: 32px; height: 32px; max-width: none; }
.food .name {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.15;
  font-size: 13px;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
}
.food input { min-width: 0; width: 100%; height: 36px; padding: 0 2px; }
.food .add-btn { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; }
.food .add-btn img { width: 28px; height: 28px; max-width: none; }
.cols { grid-template-columns: 40px minmax(0,1fr) 2.6rem 2.4rem 4.3rem; }
.cols-x { grid-template-columns: 40px minmax(0,1fr) 2.4rem 2.15rem 4.15rem 2.7rem 32px; }
.head { font-size: 12px; font-weight: 600; color: var(--muted); }
.grid2 { display: grid; grid-cols: 2; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid4 { display: grid; grid-template-columns: repeat(4, max-content); gap: 4px 12px; justify-content: center; }
.weapons { display: flex; align-items: center; gap: 4px; }
.bar { height: 8px; border-radius: 99px; background: var(--danger); overflow: hidden; }
.bar > span { display: block; height: 100%; background: #77d065; }
.drawer { position: fixed; inset: 0; z-index: 80; display: flex; background: rgba(0,0,0,.5); }
.nav { width: 220px; height: 100%; overflow: auto; background: var(--bg); border-right: 1px solid rgba(40,195,32,.4); padding: 8px 0; }
.nav button { width: 100%; min-height: 44px; text-align: left; background: transparent; border: 0; padding: 0 16px; }
.nav button.g { color: var(--accent); }
.frame { height: calc(100dvh - 56px - var(--acalc-ad, 0px)); display: flex; flex-direction: column; }
#acalc-slot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; width: 100%; background: var(--bg); }
#acalc-slot .adsbygoogle { display: block; width: 100%; }
.frame iframe { flex: 1; width: 100%; border: 0; background: #fff; min-height: 0; }
.pills { display: flex; gap: 8px; overflow: auto; padding: 8px; border-bottom: 1px solid var(--border); }
.pill { height: 44px; flex: 0 0 auto; border-radius: 8px; border: 1px solid var(--border); background: transparent; padding: 0 12px; }
.pill.on { background: var(--surface); color: var(--accent); }
table { width: 100%; border-collapse: collapse; text-align: center; font-size: 12px; }
th, td { padding: 6px 4px; }
tr { border-top: 1px solid var(--border); }
.stats { table-layout: fixed; font-size: 11px; }
.stats th, .stats td { padding: 4px 1px; overflow-wrap: anywhere; }
.stats .stat, .stats img { width: 26px; height: 26px; }
.stats input { width: 100%; min-width: 0; height: 36px; padding: 0 1px; }
.stat { display: block; width: 32px; height: 32px; margin: 0 auto; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.marquee { overflow: hidden; }
.marquee span { display: inline-block; white-space: nowrap; animation: slide 18s linear infinite; }
@keyframes slide { from { transform: translateX(20%); } to { transform: translateX(-120%); } }
.mark { width: 15px; height: 15px; display: inline-block; }
.stars { color: #f5c518; letter-spacing: -1px; }
.stars i { color: rgba(255,255,255,.3); font-style: normal; }
.invert { filter: brightness(0) invert(1); }
.recipe { display: flex; align-items: center; gap: 6px; font-size: 12px; margin: 4px 0; }
.chk { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; }
input, select, textarea { font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .marquee span { animation: none; } }
