.af-seite { overflow-x: clip; }

.af-kopfzeile { display: flex; align-items: center; gap: 16px; }
.af-kopfzeile .af-logo { width: 64px; height: 64px; }
.af-kopfzeile h1 { overflow-wrap: anywhere; }

.af-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.af-nav .chip { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.af-ruhe[aria-pressed="true"] { border-color: var(--orange); background: var(--orange); color: var(--orange-auf); }

.af-teil { scroll-margin-top: 96px; }

.af-erzaehler { display: flex; align-items: flex-end; gap: 14px; margin: 0 0 20px; max-width: 72ch; }
.af-pixel {
  flex: none;
  width: 48px;
  height: 72px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.af-blase {
  position: relative;
  margin: 0 0 18px;
  padding: 12px 14px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--orange);
  line-height: 1.5;
}
.af-blase::before {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 10px;
  width: 10px;
  height: 10px;
  background: var(--ink);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.af-leise { color: var(--ink-70); line-height: 1.5; }
.af-status { min-height: 1.5em; font-weight: 600; }
.af-wege { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.af-wege .btn { min-height: 44px; }

.af-regalbau { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1024px) {
  .af-regalbau { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
  .af-crewfeld { position: sticky; top: 96px; }
}

.af-regal {
  list-style: none;
  margin: 0;
  padding: 18px 14px 26px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 30px 14px;
  background: var(--figur-regal);
  border: 6px solid var(--figur-regal-kante);
  border-radius: 10px;
  box-shadow: inset 0 0 0 3px var(--figur-regal-licht), 6px 6px 0 var(--figur-regal-kante);
}
@media (max-width: 359px) {
  .af-regal { grid-template-columns: minmax(0, 1fr); }
}

.af-blister {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 22px 8px 10px;
  background: var(--paper-2);
  color: var(--ink);
  border: 2px solid var(--figur-regal-kante);
  border-radius: 12px 12px 4px 4px;
  cursor: grab;
  transition: transform .14s var(--ease-out), box-shadow .14s var(--ease-out);
}
.af-blister::after {
  content: "";
  position: absolute;
  left: -16px;
  right: -16px;
  bottom: -20px;
  height: 8px;
  background: var(--figur-regal-licht);
  border-bottom: 3px solid var(--figur-regal-kante);
}
.af-chefblister { cursor: default; }
.af-blister.zieht { opacity: .55; }
.af-blister:has(input:checked) { box-shadow: 0 0 0 3px var(--orange); transform: translateY(-4px); }
.af-haken {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 26px;
  height: 8px;
  margin-left: -13px;
  background: var(--figur-regal);
  border-radius: 4px;
}
.af-blisterbild {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  outline: 2px solid var(--figur-folie-rand);
  outline-offset: -2px;
  pointer-events: none;
}
.af-blister-nr { font-size: 12px; color: var(--ink-70); }
.af-blister-name { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.af-blister-amt { font-size: 14px; line-height: 1.3; color: var(--ink-70); overflow-wrap: anywhere; }
.af-blister-verf { font-size: 14px; }
.af-wahl {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: auto;
  padding: 6px 10px;
  border: 2px solid var(--orange);
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}
.af-wahl input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--orange); }
.af-wahl:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.af-wahl:has(input:checked) { background: var(--orange); color: var(--orange-auf); }
.af-chef {
  margin-top: auto;
  padding: 10px;
  border: 2px dashed var(--gold-tief);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gold-schrift);
}

.af-crewfeld {
  padding: 16px;
  background: var(--paper-2);
  border: 2px solid var(--rand);
  border-radius: 8px;
  min-width: 0;
}
.af-crewfeld h3 { margin-top: 0; }
.af-crew {
  min-height: 120px;
  padding: 10px;
  border: 2px dashed var(--rand);
  border-radius: 8px;
}
.af-crew.ueber { border-color: var(--orange); background: color-mix(in srgb, var(--violet) 14%, transparent); }
.af-crew-leer { margin: 0; color: var(--ink-70); }
.af-crewliste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.af-crewkopf {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 4px 4px 4px 6px;
  background: var(--paper);
  border: 2px solid var(--rand);
  border-radius: 6px;
}
.af-crewkopf img { width: 28px; height: 42px; object-fit: cover; border-radius: 3px; flex: none; }
.af-crewkopf span { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; min-width: 0; }
.af-crewkopf button {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}
.af-crewkopf button:focus-visible { outline: 3px solid var(--orange); }
.af-crewkopf.chef { border-style: dashed; border-color: var(--gold-tief); }

.af-stand { margin: 16px 0 0; display: grid; gap: 12px; }
.af-stand > div { min-width: 0; }
.af-stand dt { font-weight: 700; font-size: 14px; }
.af-stand dd { margin: 2px 0 0; }
.af-werteliste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.af-wert { display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr) 2.2em; align-items: center; gap: 8px; font-size: 13px; }
.af-wert span:first-child { overflow-wrap: anywhere; }
.af-wert b { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.af-balken { position: relative; height: 8px; background: var(--rule); overflow: hidden; }
.af-fuell { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--tuerkis); transition: width .9s var(--ease-out); }

.af-boosterbau { display: grid; gap: 20px; align-items: start; }
@media (min-width: 640px) {
  .af-boosterbau { grid-template-columns: 200px minmax(0, 1fr); }
}
.af-packung {
  position: relative;
  width: 180px;
  aspect-ratio: 2 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--figur-blende);
  border: 4px solid var(--orange);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .5s var(--ease-out);
}
.af-packung .af-logo { width: 96px; height: 96px; position: relative; z-index: 1; }
.af-packung-titel {
  position: relative;
  z-index: 1;
  font-family: var(--font-arcade);
  font-weight: 400;
  font-synthesis: none;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--figur-gold);
}
.af-packung-rand {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  border-bottom: 3px dashed var(--figur-chrom);
  transition: transform .5s var(--ease-out);
}
.af-folie {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, transparent 0 22px, var(--figur-holo-1) 22px 30px, transparent 30px 52px, var(--figur-holo-2) 52px 58px, transparent 58px 80px, var(--figur-holo-3) 80px 86px);
  background-size: 300% 100%;
  background-position: 0 0;
  opacity: .35;
  transition: background-position 1.2s var(--ease-out);
}
.af-packung.offen { transform: translateY(-6px) rotate(-3deg); }
.af-packung.offen .af-folie { background-position: 100% 0; }
.af-packung.offen .af-packung-rand { transform: translateY(-16px); }

.af-zug { min-height: 120px; }
.af-zugkarte {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: var(--paper-2);
  border: 2px solid var(--orange);
  border-radius: 10px;
  box-shadow: 6px 6px 0 var(--figur-regal-kante);
  animation: af-auftauchen .6s var(--ease-out) both;
}
@media (max-width: 420px) {
  .af-zugkarte { grid-template-columns: minmax(0, 1fr); }
  .af-zugkarte img { max-width: 160px; }
}
.af-zugkarte img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; }
.af-zugkarte h3 { margin: 0 0 4px; overflow-wrap: anywhere; }
.af-zugkarte p { margin: 0 0 8px; }
.af-marke {
  display: inline-block;
  padding: 2px 8px;
  border: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
@keyframes af-auftauchen {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.af-sammlung-titel { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin-top: 24px; }
.af-sammlung {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
}
.af-slot {
  position: relative;
  aspect-ratio: 2 / 3;
  display: grid;
  place-items: center;
  border: 2px dashed var(--rand);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-2);
}
.af-slot-nr {
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 11px;
  color: var(--ink-70);
  z-index: 1;
}
.af-slot-frage { font-family: var(--font-arcade); font-size: 16px; color: var(--ink-45); }
.af-slot.hat { border-style: solid; border-color: var(--orange); }
.af-slot.hat .af-slot-frage { display: none; }
.af-slot.hat .af-slot-nr { background: var(--paper-2); padding: 0 3px; }
.af-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.af-3dbau { display: grid; gap: 20px; align-items: start; }
@media (min-width: 760px) {
  .af-3dbau { grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); }
}
.af-buehne {
  display: grid;
  place-items: center;
  min-height: 440px;
  padding: 28px 16px;
  perspective: 900px;
  background-color: var(--figur-schirm);
  background-image: repeating-linear-gradient(0deg, var(--figur-raster) 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, var(--figur-raster) 0 1px, transparent 1px 28px);
  border: 2px solid var(--rand);
  border-radius: 12px;
  touch-action: pan-y;
  outline: none;
}
.af-buehne:focus-visible { box-shadow: 0 0 0 3px var(--orange); }
.af-blister3d {
  position: relative;
  width: min(240px, 68vw);
  aspect-ratio: 2 / 3.2;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .18s var(--ease-out);
}
.af-karton {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 10px 10px;
  background: var(--orange);
  border: 3px solid var(--figur-regal-kante);
  border-radius: 14px 14px 6px 6px;
  box-shadow: 10px 12px 0 var(--figur-schatten);
}
.af-karton .af-logo { width: 40px; height: 40px; }
.af-karton-loch {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 30px;
  height: 8px;
  margin-left: -15px;
  background: var(--figur-schirm);
  border-radius: 4px;
}
.af-karton-name {
  max-width: 100%;
  padding: 4px 10px;
  background: var(--figur-blende);
  color: var(--figur-text);
  font-weight: 700;
  border-radius: 4px;
  overflow-wrap: anywhere;
  text-align: center;
}
.af-fenster {
  position: absolute;
  inset: 17% 12% 16%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--figur-blende);
  transform: translateZ(18px);
  transition: transform .5s var(--ease-out);
}
.af-figurbild { display: block; width: 100%; height: 100%; object-fit: cover; }
.af-blase3d, .af-holo {
  position: absolute;
  inset: 15% 9% 14%;
  border-radius: 24px;
  transform: translateZ(32px);
  pointer-events: none;
  transition: transform .6s var(--ease-out), opacity .6s var(--ease-out);
}
.af-blase3d { background: var(--figur-folie); border: 2px solid var(--figur-folie-rand); }
.af-holo {
  background-image: repeating-linear-gradient(115deg, transparent 0 18px, var(--figur-holo-1) 18px 24px, transparent 24px 42px, var(--figur-holo-2) 42px 46px, transparent 46px 64px, var(--figur-holo-3) 64px 68px);
  background-size: 260% 260%;
  background-position: var(--hx, 50%) var(--hy, 50%);
  mix-blend-mode: screen;
  opacity: .3;
}
.af-blister3d.offen .af-blase3d, .af-blister3d.offen .af-holo { transform: translateZ(32px) translateY(-115%) rotateX(35deg); opacity: 0; }
.af-blister3d.offen .af-fenster { transform: translateZ(64px) scale(1.06); }
.flach .af-blister3d { transform: none; }
.flach .af-fenster, .flach .af-blase3d, .flach .af-holo { transform: none; }

.af-3dsteuer { display: grid; gap: 8px; min-width: 0; }
.af-3dsteuer label { font-weight: 700; }
.af-3dsteuer select { min-height: 44px; max-width: 100%; font: inherit; }
.af-3dwerte-titel { margin: 16px 0 0; }
.af-3dwerte { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

.af-kraftform { display: grid; gap: 8px; max-width: 72ch; }
.af-kraftform label { font-weight: 700; }
.af-kraftform textarea { width: 100%; min-height: 180px; font: inherit; line-height: 1.5; }

.af-arena {
  position: relative;
  margin-top: 18px;
  padding: 18px 16px;
  background-color: var(--figur-schirm);
  background-image: repeating-linear-gradient(0deg, var(--figur-raster) 0 1px, transparent 1px 4px);
  color: var(--figur-text);
  border: 6px solid var(--figur-regal-kante);
  border-radius: 14px;
  box-shadow: inset 0 0 0 3px var(--figur-regal-licht);
}
.af-arena h3 {
  margin: 0 0 12px;
  font-family: var(--font-arcade);
  font-weight: 400;
  font-synthesis: none;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--figur-gold);
}
.af-arena h3 + * { margin-top: 0; }
.af-kaempfer { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.af-kaempfer li {
  display: grid;
  grid-template-columns: 24px minmax(0, 9em) minmax(0, 1fr) 3.2em;
  align-items: center;
  gap: 10px;
}
.af-kaempfer canvas { width: 24px; height: 36px; image-rendering: pixelated; image-rendering: crisp-edges; }
.af-kaempfer .af-name { font-weight: 700; overflow-wrap: anywhere; line-height: 1.2; }
.af-kaempfer .af-name small { display: block; font-weight: 400; color: var(--figur-leise); }
.af-kaempfer b { text-align: right; font-variant-numeric: tabular-nums; }
.af-kraft { position: relative; height: 14px; background: var(--figur-raster); border: 1px solid var(--figur-leise); }
.af-kraft span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--figur-violett); transition: width .9s var(--ease-out); }
.af-kaempfer li.kombi .af-kraft span { background: var(--figur-tuerkis); }
.af-kaempfer li.beste .af-kraft span { background: var(--figur-gruen); }
.af-kombi {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 2px solid var(--figur-gold);
  font-weight: 700;
  line-height: 1.5;
}
.af-anforderungen { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.af-anforderungen li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--figur-leise);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.af-anforderungen .af-punkt { width: 10px; height: 10px; flex: none; }
.af-anforderungen .d2 .af-punkt { background: var(--figur-gruen); }
.af-anforderungen .d1 .af-punkt { background: var(--figur-gold); }
.af-anforderungen .d0 .af-punkt { background: var(--figur-rot); }
.af-anforderungen small { color: var(--figur-leise); }
.af-arena .btn { margin-top: 16px; }

.af-hilfeliste { max-width: 72ch; line-height: 1.6; }

.af-ruhig *, .af-ruhig *::before, .af-ruhig *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .af-seite *, .af-seite *::before, .af-seite *::after { transition: none !important; animation: none !important; }
}
