/* Sammlung 2.0 (AP 1.6), Heldenwahl und Kampagnenkarte (AP 1.7). Painted parts are placeholders for Astra (MOTIVE.md). */

/* ---------- Sammlung 3.0 (1.35.0): Raster der Decks, Deckbau in zwei Spalten, Steinknöpfe, Manakurve ---------- */
/* Reiter in der Kopfleiste (Decks | Kartensammlung). */
.collection .topbar .stone-tabs{height:auto;padding:0;gap:14px;margin-right:8px}
.collection .topbar button.stone-tab{min-width:212px;height:52px;font-size:18px;letter-spacing:2px}
/* Übersicht: alle Decks als Kacheln. */
.deck-grid{height:708px;padding:22px 40px 30px;display:grid;grid-template-columns:repeat(7,1fr);grid-auto-rows:300px;gap:18px;align-content:start;overscroll-behavior:contain}
.deck-tile{position:relative;padding:0;min-height:0;height:300px;border-radius:12px;overflow:hidden;border:2px solid #967343;background:linear-gradient(#26231e,#15191c);box-shadow:inset 0 0 0 3px #211d1980,0 8px 16px #0008;text-align:left;color:#f1dfb6}
.deck-tile .tile-art{position:absolute;left:0;right:0;top:0;height:200px;background-repeat:no-repeat;background-color:var(--hero);box-shadow:inset 0 -40px 30px -10px #15191c}
.deck-tile .tile-age{position:absolute;left:10px;top:10px;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font:18px Title,serif;color:#f6e3b4;background:#15191ccc;border:2px solid var(--hero)}
.deck-tile .tile-plate{position:absolute;left:0;right:0;bottom:0;height:104px;padding:8px 12px 10px;display:flex;flex-direction:column;gap:3px;border-top:3px solid var(--hero);background:linear-gradient(#2c2822,#1a1d1f)}
.deck-tile .tile-plate b{font:17px/1.2 Title,serif;color:#f3dca5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.deck-tile .tile-plate small{font-size:13px;color:#bfae8a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.deck-tile .tile-meta{margin-top:auto;display:flex;align-items:flex-end;justify-content:space-between}
.tile-count{font:16px Title,serif;color:#9fd3b4}.tile-count.short{color:#f3ba63}
.deck-tile.new{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;border-style:dashed;background:#1a1f22b8;padding:20px}
.deck-tile.new .plus{font:64px/1 Title,serif;color:#e8c57d}
.deck-tile.new b{font:20px Title,serif;color:#f3dca5}.deck-tile.new small{font-size:14px;color:#bfae8a;line-height:1.4}
.deck-tile:active{transform:translateY(3px)}
/* Zwei Spalten: links Deck (oder Sammlungsstand), rechts alle Karten. */
.deckbuilder{display:flex;height:708px;position:relative;background:linear-gradient(100deg,#1d1914e6,#221d17d9 40%,#171e21e6)}
.deck-panel{width:640px;flex:none;padding:14px 18px 12px;display:flex;flex-direction:column;gap:8px;background:linear-gradient(130deg,#2b2721f2,#181e22f2);border-right:2px solid #9a7948}
.deck-head{display:flex;align-items:center;gap:12px;height:50px}
.deck-head .coin-face{width:50px;height:50px;flex:none;border-radius:50%;background-repeat:no-repeat;box-shadow:0 0 0 3px #8a6a3a,0 0 0 5px #2a1f14}
.deck-title{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.deck-title .eyebrow{font-size:12px;letter-spacing:3px}
.deck-title input{font-size:17px;min-height:30px;height:30px;padding:2px 10px;width:100%}
.deck-count{font:30px/1 Title,serif;color:#f3ba63;min-width:84px;text-align:right}.deck-count small{font-size:18px;color:#bfae8a}.deck-count.full{color:#9fd3b4}
.deck-slots{display:grid;grid-template-columns:repeat(8,70px);grid-auto-rows:99px;gap:6px;height:414px;margin-top:4px}
.deck-slot{position:relative;width:70px;height:99px;padding:0;min-height:0;border:0;border-radius:6px;background:none;box-shadow:none}
.deck-slot img{width:70px;height:99px;display:block;filter:drop-shadow(0 3px 3px #0009)}
.deck-slot.empty{display:block;background:#0f1417aa;box-shadow:inset 0 0 0 2px #5d4d36,inset 0 6px 12px #0008}
.deck-slot.empty:after{content:'';position:absolute;inset:34px 22px;border-radius:50%;border:2px dashed #5d4d3688}
.deck-slot .land{position:absolute;inset:-3px;border-radius:7px;box-shadow:0 0 0 2px #fff3c4,0 0 14px #ffd77a;opacity:0;animation:bar-grow .9s .5s ease-out both;pointer-events:none}
.deck-controls{display:flex;gap:7px;margin-top:auto}.deck-controls button{font-size:15px;padding:8px 10px;min-height:48px}.deck-controls .save{flex:1;min-height:48px;font-size:18px}
/* Sammlungsstand links im Reiter Kartensammlung. */
.coll-stats{gap:12px;padding:24px 34px}
.coll-stats h3{font-size:28px}
.progress{height:12px;border-radius:6px;background:#0f1417;box-shadow:inset 0 0 0 1px #6a5838;overflow:hidden}.progress i{display:block;height:100%;background:linear-gradient(90deg,#a77332,#e2c07a)}
.rarity-list{list-style:none;margin:6px 0;padding:0;display:grid;gap:8px;font-size:18px}
.rarity-list li{display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:6px;background:#11191b66}.rarity-list b{margin-left:auto;font-weight:normal;color:#efcf8c}
.seal-dot{width:22px;height:22px;border-radius:50%;flex:none;border:2px solid #211c17}
.seal-dot.basic{background:#b5ab98}.seal-dot.common{background:#c27c45}.seal-dot.rare{background:#c9d0d8}.seal-dot.epic{background:#e2b14c}.seal-dot.legendary{background:#3b3550;box-shadow:0 0 6px #b9c3ff}
.dust-line{font-size:20px;color:#e6c881}.dust-line .cur{display:inline-block;width:1.2em;height:1.2em;margin-right:.4em;vertical-align:-.22em;background:center/contain no-repeat}
.coll-stats>button{align-self:flex-start}
.coll-note{font-size:16px;line-height:1.5;margin-top:auto}
/* Rechte Spalte: Suche, Filter, Raster, Blättern. */
.pool{flex:1;padding:14px 20px 0;display:flex;flex-direction:column;min-width:0}
.pool-filters{display:flex;gap:10px;height:48px}
.pool-filters input{flex:1;min-width:0;font-size:16px;min-height:48px;height:48px}
.pool-filters select{width:178px;font-size:16px;min-height:48px;height:48px;padding:6px 10px}
.pool-knobs{display:flex;align-items:center;gap:16px;height:48px;margin-top:10px}
.mana-knobs{display:flex;gap:6px}
button.knob{width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;font:18px Title,serif;color:#eaf6ff;background:radial-gradient(circle at 35% 30%,#7fb6d9,#2c5b85 60%,#173452);border:3px solid #6f6250;box-shadow:inset 0 -3px 0 #0e2236,0 3px 0 #0b0907b0;text-shadow:0 1px 2px #0a1a2a}
button.knob.on{background:radial-gradient(circle at 35% 30%,#d6f0ff,#5aa7e0 55%,#235a8c);border-color:#f0d48c;box-shadow:0 0 0 2px #f0d48c,0 0 14px #9fd6ff99;transform:translateY(2px)}
.rarity-seals{display:flex;gap:7px}
button.seal-knob{width:40px;height:44px;min-height:44px;padding:0;border-radius:50%;border:2px solid #211c17;box-shadow:inset 0 0 0 3px #0003,0 3px 0 #0b0907b0;display:grid;place-items:center}
.seal-knob.basic{background:radial-gradient(circle at 40% 35%,#d8cfbd,#8f8574 70%)}
.seal-knob.common{background:radial-gradient(circle at 40% 35%,#e0a46a,#8a5126 70%)}
.seal-knob.rare{background:radial-gradient(circle at 40% 35%,#f4f6f8,#8e98a3 70%)}
.seal-knob.epic{background:radial-gradient(circle at 40% 35%,#ffe7a0,#c08a22 70%)}
.seal-knob.legendary{background:radial-gradient(circle at 40% 35%,#5b5470,#151320 70%)}
.seal-knob.legendary:after{content:'✦';color:#dfe6ff;font-size:18px}
.seal-knob.on{box-shadow:0 0 0 3px #f0d48c,0 0 14px #f0d48c88;transform:translateY(2px)}
.pool-knobs .owned-toggle{min-height:44px;font-size:15px;padding:6px 14px;margin-left:auto}.pool-knobs .owned-toggle.on{border-color:#f0d48c;color:#f6e3b4}
.pool-knobs .reset{min-height:44px;min-width:48px;padding:4px 10px;font-size:20px}
.pool-grid{display:grid;grid-template-columns:repeat(6,146px);grid-auto-rows:206px;column-gap:9px;row-gap:16px;height:428px;margin-top:18px;touch-action:pan-y}
.pool-card{position:relative;width:146px;height:206px}
.collect-card{position:relative;width:146px;height:206px;border:0;box-shadow:none;padding:0;background:none;min-height:0}
.collect-card img{width:146px;height:206px;display:block;filter:drop-shadow(0 5px 6px #000a)}
.collect-card .count{position:absolute;bottom:-6px;left:50%;transform:translateX(-50%);color:#f7e1ad;background:#39362a;border:1px solid #a99a77;padding:2px 12px;border-radius:14px;font-size:13px;white-space:nowrap}
.pool-card.locked img{filter:grayscale(1) brightness(.62);opacity:.8}
.pool-card.full img{filter:brightness(.55) saturate(.7)}
.collect-card .in-deck{position:absolute;left:-4px;top:-4px;border-radius:12px;background:#204c47;border:2px solid #9fd3b4;color:#f9e4a5;padding:2px 8px;font:15px Title,serif}
.pc-info{position:absolute;right:-6px;top:-6px;width:42px;height:42px;min-height:0;padding:0;border-radius:50%;font:italic bold 19px Title,serif;color:#f6e3b4;background:#1d3034d9;border:2px solid #c9a86899;box-shadow:0 2px 4px #0008}
.pool-empty{grid-column:1/-1;align-self:center;text-align:center;font-size:20px}
.turn-next{animation:pool-next 260ms cubic-bezier(.2,.8,.3,1) both}.turn-prev{animation:pool-prev 260ms cubic-bezier(.2,.8,.3,1) both}
@keyframes pool-next{from{transform:translateX(60px);opacity:0}}
@keyframes pool-prev{from{transform:translateX(-60px);opacity:0}}
.pool-pager{display:flex;align-items:center;justify-content:center;gap:28px;height:52px;margin-top:14px;color:#d9c49a;font-size:18px}
.pool-pager span{min-width:200px;text-align:center}.pool-pager small{display:block;font-size:13px;color:#b7aa91}
.pool-pager button{min-width:76px}
.pool-help{text-align:center;font-size:14px;color:#b7aa91;margin-top:6px}
/* Deck lists as rows (Kolosseum). */
.decklist{overflow:auto;flex:1;touch-action:pan-y;min-height:0;border-top:1px solid #8c724d;border-bottom:1px solid #8c724d;padding:6px 0}
.deckrow{display:flex;align-items:center;gap:10px;min-height:42px;margin:4px 0;border:1px solid #766548;background:#393c36;padding:6px 10px;border-radius:5px;color:#e7d6b2;font-size:15px;width:100%;text-align:left}
.deckrow .mana{border-radius:50%;background:#386b90;min-width:26px;text-align:center;color:white;padding:3px}
.deckrow b{flex:1;font-size:14px}
.deckrow .legend{color:#f4be60}
/* Mana curve (AP 1.6), compact under the deck. */
.mini-curve{display:flex;align-items:flex-end;gap:2px;height:24px}
.mini-curve i{width:5px;border-radius:1px 1px 0 0}
.mini-curve .ph-early,.bar.ph-early{background:linear-gradient(#86cfae,#2f6f5a)}
.mini-curve .ph-mid,.bar.ph-mid{background:linear-gradient(#f0cf7a,#a7752c)}
.mini-curve .ph-late,.bar.ph-late{background:linear-gradient(#e8917a,#8e3626)}
.curve-box{flex:none;padding:4px 2px 0}
.curve{height:88px;display:flex;gap:8px;align-items:flex-end;border-bottom:1px solid #867753;padding:0 4px;margin-bottom:20px}
.deck-panel .curve-box{padding-top:16px}.deck-panel .curve{height:58px;margin-bottom:18px}
.bar{flex:1;position:relative;min-height:3px;border-radius:3px 3px 0 0;transition:height .38s cubic-bezier(.3,1.5,.5,1)}
.bar em{position:absolute;top:-19px;left:0;right:0;text-align:center;font:13px Title,serif;font-style:normal;color:#f1dcab}
.bar span{position:absolute;bottom:-18px;left:0;right:0;text-align:center;font-size:11px;color:#baa887}
.bar .grow{position:absolute;inset:-4px;border-radius:4px;box-shadow:0 0 0 2px #fff3c4,0 0 16px #ffd77a;opacity:0;animation:bar-grow .9s .45s ease-out both}
@keyframes bar-grow{0%{opacity:0}25%{opacity:1}100%{opacity:0}}
.phases{display:flex;gap:12px;font-size:13px;letter-spacing:.5px}
.phases .ph-early{color:#8fd3b4}.phases .ph-mid{color:#f0cf7a}.phases .ph-late{color:#ee9a7c}.phases .avg{margin-left:auto;color:#cdbd9b}
.curve-hint{font-size:14px;line-height:1.35;color:#b9c7a4;margin:5px 0 0;min-height:38px}
.deck-panel .curve-hint{margin-top:4px}
.curve-hint.warn{color:#f3ba63}
/* An added card flies from the grid onto its place in the deck. */
.fly-card{position:absolute;z-index:30;pointer-events:none;transform-origin:0 0;filter:drop-shadow(0 12px 16px #000a);animation:card-fly 520ms cubic-bezier(.45,0,.3,1) both}
@keyframes card-fly{0%{transform:none;opacity:1}88%{opacity:1}100%{transform:translate(var(--tx),var(--ty)) scale(var(--s));opacity:.2}}
.card-detail img{width:300px;flex:none}
.card-detail img.zoom-in{animation:zoom-in 300ms cubic-bezier(.2,.8,.3,1.08) both}
.card-detail img.from-slot{animation-name:zoom-from;animation-duration:340ms}
@keyframes zoom-in{from{transform:scale(.7);opacity:0}}
@keyframes zoom-from{from{transform:translate(var(--fx),var(--fy)) scale(.49);opacity:.6}}
@media(prefers-reduced-motion:reduce){.fly-card,.bar .grow,.deck-slot .land{display:none}.pool-grid{animation:none!important}.card-detail img.zoom-in{animation:none}.bar{transition:none}}

/* ---------- Heldenwahl: gallery by age, the chosen hero large, deck and opponent ---------- */
.setup-content{display:flex;gap:18px;margin:20px 30px 0;height:668px}
.hero-gallery{width:450px;flex:none;display:flex;flex-direction:column;gap:6px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding-right:4px}
.age-row{padding:6px 10px 4px;border-radius:10px;border-left:3px solid var(--age);background:linear-gradient(90deg,color-mix(in srgb,var(--age) 32%,#1b1a17),#1b1a1700)}
.age-label{display:flex;gap:8px;align-items:center;font:13px Title,serif;letter-spacing:2px;text-transform:uppercase;color:#e9d3a2}
.age-label span{font-size:16px;color:color-mix(in srgb,var(--age) 50%,#fff)}
.age-heroes{display:flex;gap:8px;margin-top:4px}
button.hero-coin{width:76px;min-height:0;padding:0;display:flex;flex-direction:column;align-items:center;gap:3px;color:#d5bb87;background:none;border:0;box-shadow:none}
.hero-coin .coin-face{display:block;width:56px;height:56px;border-radius:50%;background-repeat:no-repeat;box-shadow:0 0 0 3px #8a6a3a,0 0 0 5px #2a1f14,0 4px 6px #0008}
.hero-coin small{max-width:76px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-coin.selected .coin-face{box-shadow:0 0 0 3px #f0d48c,0 0 0 5px #2a1f14,0 0 18px #f0d48caa}
.hero-coin.selected small{color:#fff0c8}
.hero-coin.foe .coin-face{box-shadow:0 0 0 3px #c0503c,0 0 0 5px #2a1f14,0 0 14px #c0503c99}
.hero-gallery.fixed .hero-coin:not(.selected):not(.foe){opacity:.45}
.hero-show{flex:1;min-width:0;display:grid;grid-template-columns:260px 1fr;align-content:center;gap:18px 24px;padding:22px 26px;border-radius:14px;border:2px solid #9a7948;box-shadow:inset 0 0 0 5px #44372b,0 12px 30px #0006;background:radial-gradient(ellipse at 22% 30%,color-mix(in srgb,var(--age,#6e5a3c) 38%,transparent),transparent 60%),linear-gradient(130deg,#2b2721f2,#181e22f2)}
.hero-medal{position:relative;width:260px;height:260px;filter:drop-shadow(0 14px 14px #000a)}
.hero-medal .coin-face{position:absolute;inset:40px;border-radius:50%;background-repeat:no-repeat;box-shadow:0 0 0 4px #3a2a16,inset 0 0 18px #0008}
.coin-face.mystery{display:grid;place-items:center;font:110px Title,serif;color:#f0d48c;background:radial-gradient(#3b4a52,#141c21)}
.age-badge{display:inline-flex;gap:8px;align-items:center;padding:4px 12px;border-radius:14px;border:1px solid #c9a96a;font-size:14px;letter-spacing:1px;color:#f6e7c4;background:color-mix(in srgb,var(--age) 62%,#1b1a17)}
.show-info h2{font-size:34px;line-height:1.1;margin:10px 0 4px;color:#f4ddb0}
.show-info>p{font-size:18px;line-height:1.5;color:#d6c9ac;margin-top:10px}
.show-meta{font-size:16px;color:#d5bb87}
.show-school{margin-top:4px;font-size:14px;line-height:1.35;color:#b9c7a4}
.show-power{display:flex;gap:12px;align-items:flex-start;margin-top:14px;padding:12px;border-radius:10px;background:#11191b80;border:1px solid #746148}
.power-cost{flex:none;width:40px;height:44px;display:grid;place-items:center;font:22px Title,serif;color:#fff;background:linear-gradient(135deg,#7fc7eb,#17467c 70%);clip-path:polygon(50% 0,100% 28%,100% 72%,50% 100%,0 72%,0 28%)}
.show-power b{font-family:Title,serif;font-size:17px;color:#efcf8c}
.show-power p{margin:3px 0 0;font-size:15px;line-height:1.4;color:#e2d6bd}
/* AP L.5: the deed behind the hero power, with its source. */
.show-power .power-deed{margin-top:5px;font-size:13.5px;font-style:italic;line-height:1.35;color:#c9b998}
.show-style{margin-top:8px;font-size:14px;color:#c9bd9f}
.show-favorites{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;gap:8px 20px;align-items:end}
.show-favorites .eyebrow{grid-column:1/-1}
.fav-row{display:flex;gap:12px}
button.fav-card{padding:0;min-height:0;background:none;border:0;box-shadow:none}
.fav-card img{display:block;width:116px;height:164px;filter:drop-shadow(0 6px 8px #000a)}
.show-favorites>button{justify-self:end}
.setup-side{width:360px;flex:none;padding:22px;display:flex;flex-direction:column;gap:14px}
.setup-side h3{font-size:24px}
.setup-side p{font-size:17px;line-height:1.5;color:#d6c9ac}
.setup-side select{width:100%}
.setup-side label{display:block;margin-bottom:8px;font-size:15px;color:#aaab9e}
.setup-side .spacer{flex:1}

/* ---------- Kampagnenkarte: stations on the map, march route, mission panel ---------- */
.campaign-content{display:flex;gap:20px;margin:24px 36px 0;height:650px}
.world-map{position:relative;width:1080px;height:640px;flex:none;overflow:hidden;border-radius:10px;background:radial-gradient(ellipse at 50% 45%,#efe4c6,#e2d3ac 70%,#cdb98d);box-shadow:0 0 0 6px #4a2f18,0 0 0 9px #a8834a,0 16px 30px #000a}
.map-art,.map-route{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.map-route path{fill:none;stroke-linecap:round}
.map-route .open{stroke:#7a2a1c;stroke-width:3;stroke-dasharray:2 9;stroke-opacity:.7}
.map-route .won{stroke:#b5853f;stroke-width:4;stroke-opacity:.9}
.map-route .lead{stroke:#4a3418;stroke-width:1.2;stroke-opacity:.55}
.map-route .place{fill:#4a3418;fill-opacity:.7}
.map-title{position:absolute;left:24px;bottom:18px;padding:8px 18px;font:22px Title,serif;letter-spacing:3px;color:#3a2810;background:#e9dcb9e6;border:2px solid #8a6a3a;border-radius:6px;box-shadow:0 0 0 3px #e9dcb9}
.inset-title{position:absolute;left:842px;top:144px;width:224px;text-align:center;font:12px Title,serif;letter-spacing:3px;text-transform:uppercase;color:#4a3418}
button.station{position:absolute;width:48px;height:48px;min-height:0;margin:-24px 0 0 -24px;padding:0;border-radius:50%;background:none;border:0;box-shadow:none;z-index:1}
.station .st-seal{position:absolute;inset:3px;border-radius:50%;display:grid;place-items:center;font:16px Title,serif;color:#fff3dc;text-shadow:0 1px 1px #4a0d08;background:radial-gradient(circle at 38% 32%,#d0503f,#8e1f18 72%);box-shadow:inset 0 0 0 3px #6a150f,0 3px 5px #0008}
.station.done .st-seal{color:#3a2810;text-shadow:0 1px #fff4;background:radial-gradient(circle at 38% 32%,#f6dc93,#b5853f 70%);box-shadow:inset 0 0 0 3px #7a5420,0 3px 5px #0008}
.station.locked .st-seal{color:#e6e0d4;text-shadow:none;background:radial-gradient(circle at 38% 32%,#a59d90,#5f574b 72%);box-shadow:inset 0 0 0 3px #3e382f,0 3px 5px #0007}
.station.open .st-seal{animation:station-pulse 1.8s ease-in-out infinite}
@keyframes station-pulse{50%{box-shadow:inset 0 0 0 3px #6a150f,0 0 0 7px #d0503f55,0 3px 5px #0008}}
.station.picked{z-index:3}
.station.picked:before{content:'';position:absolute;inset:-5px;border-radius:50%;border:3px solid #fff3c4;box-shadow:0 0 14px #ffd77a}
.station .tower{position:absolute;right:-7px;top:-8px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-style:normal;color:#f3e2bd;background:#3a2a16;border:1px solid #c9a96a}
.place-name{position:absolute;top:52px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:3px 10px;border-radius:10px;font:13px Title,serif;letter-spacing:1px;color:#f6e7c4;background:#2a1f14e6;border:1px solid #a8834a}
.mission-panel{flex:1;min-width:0;padding:22px 24px;display:flex;flex-direction:column;gap:10px}
.mission-panel h2{font-size:28px;line-height:1.15;color:#f4ddb0}
.mission-panel p{font-size:16px;line-height:1.5;color:#d9cbb0}
.mission-panel .reward{color:#e8c36f}
.mission-panel .sealed{font-size:15px;color:#c9b892}
.mission-panel .spacer{flex:1}
.mission-foe{display:flex;gap:12px;align-items:center}
.mission-foe .coin-face{width:64px;height:64px;flex:none;border-radius:50%;background-repeat:no-repeat;box-shadow:0 0 0 3px #c0503c,0 0 0 5px #2a1f14}
.mission-foe small{display:block;font-size:12px;letter-spacing:2px;text-transform:uppercase;color:#c2b18b}
.mission-foe b{display:block;font-family:Title,serif;font-size:18px;color:#f1dcab}
.mission-foe span{font-size:14px;color:#cdbd9b}
.campaign-foot{display:flex;align-items:center;justify-content:space-between;font-size:15px;color:#cdbd9b}
@media(prefers-reduced-motion:reduce){.station.open .st-seal{animation:none}}
/* AP 3.8: starting orders as scrolls – they unroll one after another, replaced ones carry a red wax seal and roll back
   into the deck at the right. */
.mulligan-card{display:flex;flex-direction:column;align-items:center}
.mulligan-card .sheet{display:block;padding:6px 8px;background:linear-gradient(90deg,#c9b085,#f1e4c3 18%,#efe1bd 82%,#c2a87c);box-shadow:0 6px 16px #0007;animation:unroll 520ms calc(120ms + var(--i)*130ms) cubic-bezier(.3,.7,.3,1) both}
.mulligan-card .sheet img{display:block;height:290px}
.mulligan-card .rod{position:relative;z-index:1;display:block;width:calc(100% + 18px);height:14px;border-radius:7px;background:linear-gradient(#b07a3a,#5a3612 70%,#3a220a);box-shadow:0 3px 6px #0008}
.mulligan-card .rod:before,.mulligan-card .rod:after{content:'';position:absolute;top:-3px;width:14px;height:20px;border-radius:6px;background:radial-gradient(circle at 40% 35%,#ffe08a,#b07a1e 60%,#5a3a0a)}
.mulligan-card .rod:before{left:-9px}.mulligan-card .rod:after{right:-9px}
.mulligan-card .rod.top{margin-bottom:-6px;animation:rod-top 520ms calc(120ms + var(--i)*130ms) cubic-bezier(.3,.7,.3,1) both}
.mulligan-card .rod.bottom{margin-top:-6px;animation:rod-bottom 520ms calc(120ms + var(--i)*130ms) cubic-bezier(.3,.7,.3,1) both}
@keyframes unroll{from{clip-path:inset(50% 0 50% 0)}to{clip-path:inset(0)}}
@keyframes rod-top{from{transform:translateY(151px)}to{transform:none}}
@keyframes rod-bottom{from{transform:translateY(-151px)}to{transform:none}}
.mulligan-card.replace{filter:none}
.mulligan-card.replace .sheet img{filter:grayscale(.7) brightness(.8)}
.mulligan-card.replace:after{content:'↻';position:absolute;inset:auto;left:50%;top:50%;width:84px;height:84px;margin:-42px 0 0 -42px;display:grid;place-items:center;border-radius:50%;font-size:46px;line-height:1;color:#ffe2a0;text-shadow:0 2px #4a0c06;
 background:radial-gradient(circle at 38% 32%,#e0503c,#a8221a 55%,#6a120c);box-shadow:0 0 0 4px #8a1a12,0 4px 10px #000a;animation:seal-press 220ms ease-out both}
@keyframes seal-press{from{transform:scale(1.5);opacity:0}to{transform:none;opacity:1}}
.mulligan-deck{position:relative;align-self:center;width:84px;height:150px;margin-left:10px}
.mulligan-deck i{position:absolute;left:8px;width:68px;height:22px;border-radius:11px;background:linear-gradient(#efe1bd,#c9b085);box-shadow:inset 0 -3px #a88a5a,0 3px 5px #0007}
.mulligan-deck i:nth-child(1){bottom:6px}.mulligan-deck i:nth-child(2){bottom:26px;left:12px}.mulligan-deck i:nth-child(3){bottom:46px;left:5px}
.mulligan-deck b{position:absolute;left:0;right:0;bottom:-26px;text-align:center;font:16px Title,serif;color:#e8d3a6}
.mulligan.rolling .mulligan-card.replace{pointer-events:none;animation:to-deck 700ms ease-in both}
.mulligan.rolling .mulligan-card.replace .sheet{animation:roll-up 260ms ease-in both}
.mulligan.rolling .mulligan-card.replace .rod.top{animation:rod-up 260ms ease-in both}
.mulligan.rolling .mulligan-card.replace .rod.bottom{animation:rod-down 260ms ease-in both}
.mulligan.rolling .mulligan-card.replace:after{opacity:0;transition:opacity .15s}
@keyframes roll-up{from{clip-path:inset(0)}to{clip-path:inset(50% 0 50% 0)}}
@keyframes rod-up{to{transform:translateY(151px)}}
@keyframes rod-down{to{transform:translateY(-151px)}}
@keyframes to-deck{0%,35%{transform:none;opacity:1}100%{transform:translate(calc((var(--n) - var(--i)) * 238px - 100px),20px) scale(.28) rotate(80deg);opacity:0}}
/* AP 3.8: result – the banner of the close above, the rewards as bars that fill one after another. */
.result{width:840px;padding:0 44px 32px}
.result-banner{position:relative;margin:-18px auto 14px;width:470px;height:120px;display:grid;place-items:center;clip-path:polygon(0 0,100% 0,100% 78%,50% 100%,0 78%);
 background:linear-gradient(90deg,#7a1414,#c8322a 50%,#7a1414);box-shadow:inset 0 0 0 4px #ffd36a55;animation:banner-drop 700ms cubic-bezier(.2,.8,.3,1.2) both}
.result-banner span{font:bold 52px Title,serif;letter-spacing:4px;color:#ffd36a;text-shadow:0 3px #2a0806,0 0 18px #ff9a3a66;margin-top:-14px}
.result.loss .result-banner{background:linear-gradient(90deg,#1e1a24,#3a3446 50%,#1e1a24);box-shadow:inset 0 0 0 4px #a8a0b855}.result.loss .result-banner span{color:#cfc6dc;font-size:44px}
.result.draw .result-banner{background:linear-gradient(90deg,#2a2a22,#5a5444 50%,#2a2a22)}.result.draw .result-banner span{color:#efe0b0;font-size:38px}
@keyframes banner-drop{from{clip-path:polygon(0 0,100% 0,100% 0,50% 0,0 0)}}
.result p{margin:8px 0 14px}
.result .rewards{display:flex;flex-direction:column;gap:9px;padding:16px 22px;margin:0 0 20px;text-align:left;font-size:18px}
.reward-bar{position:relative;display:grid;grid-template-columns:200px 1fr 82px;grid-template-rows:auto auto;column-gap:14px;align-items:center}
.reward-bar .label{font-size:17px;color:#ead7ae;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reward-bar .track{height:14px;border-radius:7px;background:#0f1518;box-shadow:inset 0 2px 4px #000a,0 0 0 1px #7a6038;overflow:hidden}
.reward-bar .track i{display:block;height:100%;width:var(--to);border-radius:7px;background:linear-gradient(#9fd06a,#4f8a2a);animation:bar-fill 800ms calc(500ms + var(--i)*380ms) cubic-bezier(.3,.6,.3,1) both}
.reward-bar.gain .track i{background:linear-gradient(#ffe08a,#c8901e)}
.reward-bar.full .track i{background:linear-gradient(#ffe9a0,#e0a830);box-shadow:0 0 10px #ffd36a}
.reward-bar b{font:18px Title,serif;color:#f4ddb0;text-align:right}
.reward-bar small{grid-column:2/4;font-size:13px;color:#c2b18b;min-height:0}
.reward-bar.full small{color:#ffd36a}
.reward-pack{font-size:18px;color:#ead7ae}
@keyframes bar-fill{from{width:var(--from)}}
.coin-rain{position:absolute;left:214px;top:-26px;width:60%;height:30px;pointer-events:none}
.coin-rain i{position:absolute;top:0;width:13px;height:13px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff3b0,#e0a020 55%,#8a5a0a);opacity:0;animation:coin-fall 700ms calc(450ms + var(--k)*120ms) ease-in both}
.coin-rain i:nth-child(1){left:8%;--k:0}.coin-rain i:nth-child(2){left:26%;--k:1}.coin-rain i:nth-child(3){left:45%;--k:2}.coin-rain i:nth-child(4){left:63%;--k:3}.coin-rain i:nth-child(5){left:82%;--k:4}
@keyframes coin-fall{0%{transform:translateY(-30px);opacity:0}25%{opacity:1}100%{transform:translateY(34px) scaleY(.6);opacity:0}}
@media(prefers-reduced-motion:reduce){.mulligan-card .sheet,.mulligan-card .rod,.mulligan-card.replace:after,.result-banner,.reward-bar .track i{animation:none}.coin-rain{display:none}}

/* Lange Chronikquellen dürfen in der Kartenansicht über mehrere Zeilen laufen. */
.card-detail .details { min-width: 0; overflow-wrap: anywhere; }
@media (orientation: portrait) {
  body.browser-game::after {
    content: 'Für ein größeres Spielfeld ins Querformat drehen';
    position: fixed;
    bottom: 1em;
    left: 0;
    right: 0;
    text-align: center;
    font: 16px system-ui;
    color: #fff3de;
    pointer-events: none;
  }
}
