/* 1.5 Der ASCII Code – ergänzt binaer.css (Karten, Knöpfe, Schritte) */
.as-plan { margin: 0 0 14px; padding-left: 22px; line-height: 1.7; color: var(--tinte-2); font-size: 16px; }
.as-zeile { font-size: 14px; color: var(--gedaempft); margin: 8px 0 0 !important; min-height: 1.3em; }
.as-klein { font-size: 14px !important; margin-top: 14px; }
.as-klein a { color: var(--akzent-tief); font-weight: 600; }
code { font-family: var(--schrift-mono); background: var(--flaeche-2); border: 1px solid var(--rand); border-radius: 6px; padding: 0 5px; }

.as-abschreib [data-satz] { transition: opacity .2s; }
.as-abschreib.satzweise [data-satz] { opacity: .18; }
.as-abschreib.satzweise [data-satz].jetzt { opacity: 1; background: var(--akzent-zart); border-radius: 6px; padding: 2px 4px; font-size: 1.15em; }

/* Fakten */
.as-zaehler { font-weight: 700; color: var(--akzent-tief); margin: 0 0 12px !important; }
.as-fakten { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.as-fakt { border: 2px solid var(--rand); border-radius: var(--radius); background: var(--flaeche-2); overflow: hidden; }
.as-fakt-kopf {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  padding: 14px; border: 0; background: transparent; color: var(--tinte); font: inherit; touch-action: manipulation;
}
.as-fakt-nr { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font: 800 16px var(--schrift-mono); background: var(--akzent); color: #fff; }
.as-fakt-titel { font-weight: 700; font-size: 16px; line-height: 1.3; }
.as-fakt.offen { border-color: var(--akzent); background: var(--flaeche); }
.as-fakt.offen .as-fakt-nr { background: var(--gut); }
.as-fakt-text { padding: 0 14px 14px; font-size: 15.5px; line-height: 1.6; color: var(--tinte-2); }
.as-fakt-text p { margin: 0 0 10px; }
.as-fakt-text[hidden] { display: none; }
.as-punkte { display: grid; grid-template-columns: repeat(32, 1fr); gap: 2px; margin: 8px 0; }
.as-punkte i { aspect-ratio: 1; border-radius: 2px; background: var(--akzent); }
.as-punkte i.s { background: var(--blau); }
.as-bitlampen { display: flex; gap: 4px; margin: 8px 0; }
.as-bitlampen button { flex: 1 1 0; min-width: 0; padding: 6px 0; border-radius: 9px; border: 2px solid var(--rand-stark); background: var(--flaeche-2); color: var(--tinte); font: 800 16px var(--schrift-mono); cursor: pointer; touch-action: manipulation; }
.as-bitlampen button small { display: block; font: 600 10px var(--schrift-mono); color: var(--gedaempft); }
.as-bitlampen button.an { background: var(--akzent-zart); border-color: var(--akzent); color: var(--akzent-tief); }
.as-gross { font: 800 40px var(--schrift-mono); text-align: center; margin: 4px 0; color: var(--tinte); }
.as-stanz { font: 600 15px var(--schrift-mono); line-height: 1.25; background: #3a3936; color: #ffe9a8; padding: 8px 10px; border-radius: 8px; overflow-x: auto; white-space: pre; margin: 8px 0; }

/* Tabelle */
.as-detail { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding: 14px 16px; margin-bottom: 14px; border-radius: var(--radius); background: var(--flaeche-2); border: 1px solid var(--rand); min-height: 82px; }
.as-detail .zeichen { font: 800 52px var(--schrift-mono); color: var(--akzent-tief); min-width: 70px; text-align: center; line-height: 1; }
.as-detail .zeichen.klein { font-size: 24px; }
.as-detail dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font: 700 16px var(--schrift-mono); }
.as-detail dt { color: var(--gedaempft); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; align-self: center; }
.as-detail dd { margin: 0; }
.as-detail .beschr { flex-basis: 100%; font: 500 15px var(--schrift); color: var(--tinte-2); }
.as-tabelle { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; margin-bottom: 8px; }
.as-zeich { display: grid; justify-items: center; gap: 1px; padding: 6px 2px; border-radius: 10px; cursor: pointer; background: var(--flaeche-2); border: 1px solid var(--rand-stark); color: var(--tinte); font: inherit; touch-action: manipulation; }
.as-zeich b { font: 800 21px var(--schrift-mono); line-height: 1.2; }
.as-zeich small { font: 600 11px var(--schrift-mono); color: var(--gedaempft); }
.as-zeich.buchstabe b { color: var(--akzent-tief); }
.as-zeich.ziffer b { color: var(--blau); }
.as-zeich.jetzt { border-color: var(--akzent); background: var(--akzent-zart); }
.as-tabelle.steuer { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
.as-tabelle.steuer .as-zeich b { font-size: 15px; }

/* Werkstatt */
.as-textfeld { width: min(100%, 360px) !important; }
.as-uebers { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.as-uz { display: grid; justify-items: center; gap: 2px; padding: 8px 8px 6px; border-radius: 12px; background: var(--flaeche-2); border: 1px solid var(--rand-stark); min-width: 76px; }
.as-uz b { font: 800 26px var(--schrift-mono); line-height: 1; }
.as-uz .dez { font: 700 17px var(--schrift-mono); color: var(--akzent-tief); }
.as-uz .bin { font: 600 13px var(--schrift-mono); color: var(--tinte-2); letter-spacing: .04em; }
.as-uz.fremd { border-color: #c2410c; }
.as-ergebnis { font: 800 26px var(--schrift-mono); min-height: 1.4em; overflow-wrap: anywhere; color: var(--tinte); }
.as-agent { display: grid; gap: 12px; }
.as-auftrag { border: 2px solid var(--rand); border-radius: var(--radius); padding: 14px; background: var(--flaeche-2); }
.as-auftrag.geloest { border-color: var(--gut); background: var(--gut-zart); }
.as-auftrag h4 { margin: 0 0 6px; font-size: 16px; }
.as-code { font: 700 18px var(--schrift-mono); line-height: 1.7; overflow-wrap: anywhere; margin: 0 0 10px; color: var(--tinte); }
.as-auftrag .antwort { align-items: center; }
.as-auftrag input { font: 700 18px var(--schrift-mono); padding: 9px 12px; border-radius: 12px; border: 1px solid var(--rand-stark); background: var(--flaeche); color: var(--tinte); width: 200px; max-width: 100%; }
.as-auftrag input:focus { outline: 2px solid var(--akzent); outline-offset: 1px; }

/* Blitz */
.as-blitz { padding: 16px; border-radius: var(--radius); background: var(--flaeche-2); border: 1px solid var(--rand); margin-bottom: 8px; }
.as-wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.as-wahl button { padding: 14px 6px; font: 800 24px var(--schrift-mono); border-radius: 14px; border: 2px solid var(--rand-stark); background: var(--flaeche); color: var(--tinte); cursor: pointer; touch-action: manipulation; }
.as-wahl button:hover:not(:disabled) { border-color: var(--akzent); }
.as-wahl button.richtig { border-color: var(--gut); background: var(--gut-zart); }
.as-wahl button.falsch { border-color: #c2410c; background: var(--schlecht-zart); }

/* Links */
.as-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.as-linkkarte { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche-2); text-decoration: none; color: inherit; }
.as-linkkarte:hover { border-color: var(--akzent); }
.as-prev { flex: none; width: 96px; height: 74px; display: grid; align-content: center; background: #141413; color: #7ee787; border-radius: 10px; padding: 4px 8px; font: 700 14px/1.25 var(--schrift-mono); white-space: nowrap; overflow: hidden; }
.as-linkkarte small { display: block; margin-top: 3px; color: var(--gedaempft); font-size: 13px; }

/* Zeitleiste */
.as-zeit { display: grid; gap: 12px; margin-bottom: 6px; }
.as-ereignis { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; padding: 14px; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche-2); }
.as-jahr { font: 800 22px var(--schrift-mono); color: var(--akzent-tief); }
.as-ereignis h4 { margin: 0 0 4px; font-size: 16.5px; }
.as-ereignis p { margin: 0 0 8px; font-size: 15px; line-height: 1.55; color: var(--tinte-2); }
.as-schirm { margin: 6px 0 0; padding: 10px 12px; background: #141413; color: #7ee787; border-radius: 10px; font: 700 15px/1.2 var(--schrift-mono); overflow-x: auto; white-space: pre; max-width: 100%; }
.as-schirm .w { color: #8b949e; } .as-schirm .g { color: #f2cc60; } .as-schirm .m { color: #ff7b72; } .as-schirm .s { color: #fff; }

/* Dungeon */
.as-dungeon { padding: 16px; border-radius: var(--radius); background: var(--flaeche-2); border: 1px solid var(--rand); margin-bottom: 8px; }
.as-dstatus { font-weight: 700; margin: 0 0 10px !important; min-height: 1.4em; }
.as-karte { margin: 0 auto 12px; background: #141413; color: #5c6370; padding: 10px; border-radius: 12px; font: 700 clamp(14px, 4.6vw, 24px)/1.15 var(--schrift-mono); width: max-content; max-width: 100%; overflow: hidden; outline: none; user-select: none; -webkit-user-select: none; }
.as-karte:focus { box-shadow: 0 0 0 2px var(--akzent); }
.as-karte .w { color: #6e7681; } .as-karte .f { color: #30363d; } .as-karte .p { color: #fff; background: #C6613F; border-radius: 3px; }
.as-karte .g { color: #f2cc60; } .as-karte .m { color: #ff7b72; } .as-karte .a { color: #7ee787; } .as-karte .z { color: #3a4048; }
.as-pad { display: grid; grid-template-columns: repeat(3, 62px); grid-template-areas: ". up ." "left down right"; gap: 8px; justify-content: center; margin: 0 0 12px; }
.as-pad button { height: 58px; font: 800 26px var(--schrift-mono); border-radius: 14px; border: 2px solid var(--rand-stark); background: var(--flaeche); color: var(--tinte); cursor: pointer; touch-action: manipulation; }
.as-pad button:active { background: var(--akzent-zart); }
.as-pad button:nth-child(1) { grid-area: up; } .as-pad button:nth-child(2) { grid-area: left; }
.as-pad button:nth-child(3) { grid-area: down; } .as-pad button:nth-child(4) { grid-area: right; }
.as-dungeon .antwort { justify-content: center; }

/* Maler */
.as-maler { padding: 16px; border-radius: var(--radius); background: var(--flaeche-2); border: 1px solid var(--rand); margin-bottom: 8px; }
.as-palette { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.as-palette button { width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--rand-stark); background: var(--flaeche); color: var(--tinte); font: 800 20px var(--schrift-mono); cursor: pointer; touch-action: manipulation; }
.as-palette button[aria-pressed="true"] { border-color: var(--akzent); background: var(--akzent-zart); color: var(--akzent-tief); }
.as-raster { display: grid; grid-template-columns: repeat(28, 1fr); width: 100%; max-width: 560px; margin: 0 auto 12px; background: #141413; border-radius: 10px; padding: 6px; touch-action: none; user-select: none; -webkit-user-select: none; }
.as-raster span { aspect-ratio: 1 / 1.6; display: grid; place-items: center; color: #7ee787; font: 700 clamp(9px, 2.6vw, 16px) var(--schrift-mono); border: 1px solid #1f2328; }

@media (max-width: 560px) {
  .as-ereignis { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .as-punkte { grid-template-columns: repeat(16, 1fr); }
}
