/* The Road: goals, stage stars, chests, the market, the treasury, Mustard Seeds and the Armor of God */

/* home: goals card */
.goalscard { display: flex; align-items: center; gap: 10px; margin-top: 12px; background: linear-gradient(#fff, #ffe6ee) !important; }
.goalscard.claim { animation: callglow2 1.4s ease-in-out infinite alternate; }
.goalscard .gic { width: 46px; height: 46px; flex: none; border: 3px solid var(--ink); border-radius: 14px; background: #fff; display: grid; place-items: center; }
.goalscard .gic svg { width: 34px; height: 34px; }
.gcount { font: 400 14px/1 var(--head); background: var(--ink); color: #fff; border-radius: 8px; padding: 3px 6px; }
.goalscard .wk { color: #8a2b55; white-space: nowrap; }
.gdots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 6px; }
.gdot { position: relative; height: 10px; border: 2px solid var(--ink); border-radius: 6px; background: #f1ecf8; overflow: hidden; }
.gdot i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold); }
.gdot.on i { background: var(--green2); width: 100% !important; }
.gline { margin-top: 4px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* goals sheet */
.goalrow { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 2px solid #efe8f7; }
.goalrow:first-of-type { border-top: 0; }
.goalrow .okdot { width: 36px; height: 30px; display: grid; place-items: center; }
.goalrow .okdot svg { width: 26px; height: 26px; }
.gnum { font: 400 12px/1 var(--head); background: #f1ecf8; border: 2px solid var(--ink); border-radius: 8px; padding: 4px 3px; min-width: 34px; text-align: center; }
.goalrow.done b { color: #2d6a4f; }
.goalrow.bonus { background: #fff7cc; border-radius: 12px; padding: 8px; margin-top: 6px; border: 2px solid var(--ink); }
.weekrewards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.wkr { border: 2px dashed #b8aecb; border-radius: 12px; padding: 7px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.wkr b { font: 400 14px/1 var(--head); }
.wkr.on { border-style: solid; border-color: var(--green2); background: #e8ffe9; }
.wkr .chip { font-size: 12px; }
.rundot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); background: #f1ecf8; flex: none; }
.rundot.on { background: #8ecae6; }

/* stage sheet: stars, chests, treasure meter */
.starspanel { margin-top: 12px; background: #fffdf5; }
.starrow.small svg { width: 20px; height: 20px; }
.starline, .chestline { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.starline .sico, .chestline .sico { width: 26px; height: 26px; flex: none; }
.starline .sico svg, .chestline .sico svg { width: 100%; height: 100%; }
.starline b { font: 400 14px/1.1 var(--head); }
.starline.done { opacity: .75; }
.chips.tight { margin-top: 0; gap: 4px; justify-content: flex-end; flex-wrap: wrap; max-width: 46%; }
.chips.tight .chip { font-size: 11.5px; padding: 2px 7px 2px 3px; }
.chips.tight .chip svg { width: 16px; height: 16px; }
.chestline { padding-top: 8px; border-top: 2px solid #efe8f7; }
.chestbar { position: relative; height: 10px; border: 2px solid var(--ink); border-radius: 6px; background: #f1ecf8; margin: 4px 0 3px; }
.chestbar > b { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.chestbar > i { position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--ink); border-radius: 2px; }
.node .lab b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nodestars { display: flex; justify-content: center; gap: 0; margin-top: -9px; position: relative; z-index: 2; }
.nodestars svg { width: 15px; height: 15px; }

/* results: stars */
.resultstars { display: flex; justify-content: center; gap: 10px; margin: 8px 0 2px; }
.rstar { display: flex; flex-direction: column; align-items: center; width: 92px; }
.rstar span { width: 56px; height: 56px; padding: 7px; border-radius: 50%; background: #3c096c; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.rstar span svg { width: 100%; height: 100%; display: block; }
.rstar.on span { background: radial-gradient(circle, #7b2cbf, #3c096c); }
.rstar b { font: 400 12.5px/1.1 var(--head); color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-align: center; margin-top: 2px; }
.rstar:not(.on) span svg { opacity: .45; }
.rstar.new span { animation: starpop .7s cubic-bezier(.34,1.56,.64,1) both; }
.rstar.new:nth-child(2) span { animation-delay: .25s; } .rstar.new:nth-child(3) span { animation-delay: .5s; }
@keyframes starpop { from { transform: scale(0) rotate(-90deg); } 70% { transform: scale(1.3) rotate(10deg); } to { transform: scale(1) rotate(0); } }
.bonusline { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.bonusline .chip { font-size: 12.5px; background: #fff7cc; white-space: normal; line-height: 1.2; padding: 4px 10px 4px 5px; }
.results .chestzone { margin-top: 34px; }
.lootcard .ic .pcard { width: 52px; border-width: 2px; border-radius: 12px; }
.helpcard { margin-top: 12px; background: #e8f4ff !important; }
.helpcard .btn { margin-top: 8px; }

/* party screen: a hero picked up to swap */
.pslot.sel .pcard { outline: 4px solid var(--gold); outline-offset: 2px; transform: translateY(-4px); }

/* team: seed buttons, Hero Rank rows */
.invitestrip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; margin-top: 4px; background: #2a1b45; border-color: #000; }
.istrip { display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 6px 8px; cursor: pointer; text-align: left; color: var(--ink); min-width: 0; }
.istrip > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.istrip .plants { flex: none; text-align: center; color: var(--muted); line-height: 1.1; }
.istrip b.h { font-size: 20px; line-height: 1; }
.istrip .tiny { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boosts { margin-top: 12px; background: #fff7e6; }
.rankrow .steps { margin: 4px 0 0; display: grid; gap: 3px; }
.rankrow .step { display: flex; align-items: center; gap: 6px; font: 800 12px/1.2 var(--body); }
.rankrow .step i { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }
.rankrow .step.done i { background: var(--green2); }
.rankrow .step .btn { margin-left: auto; }
.rankrow.rankscripture { align-items: flex-start; background: #f5edff; border: 2px solid var(--ink); border-radius: 12px; padding: 7px; }
.rankrow.rankscripture .ric { background: #fff; }
.sheet { padding-bottom: calc(30px + var(--safe-bottom)); }
.capnote { margin-top: 6px; font: 800 12px/1.3 var(--body); color: #8a2b55; }

/* bag: armor growth, merge, refine */
.armorgrow { display: flex; align-items: center; gap: 8px; margin-top: 10px; font: 800 12.5px/1.3 var(--body); }
.itembtns .btn .kic { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }
.itembtns .btn .kic svg { width: 16px; height: 16px; }
.shopcards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shopcard { display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.shopcard .sic { margin-bottom: 2px; }
.shopcard.locked { opacity: .78; }

/* market and treasury */
.marketbg { background: linear-gradient(#ffe8a3, #e9c46a 40%, #bc6c25); }
.mtabs { display: flex; gap: 8px; padding: 0 14px 6px; }
.mtabs .btn { flex: 1; }
.mtabs .btn svg { width: 22px; height: 22px; }
.marketsign { display: flex; gap: 12px; align-items: center; background: #fff7e6; margin-bottom: 12px; }
.goodrow { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.goodrow.soldout { opacity: .7; }
.gic2 { width: 52px; height: 52px; flex: none; border: 3px solid var(--ink); border-radius: 14px; background: #fff3c4; display: grid; place-items: center; padding: 0; cursor: default; }
button.gic2 { cursor: pointer; }
.gic2 svg { width: 76%; height: 76%; }
.gic2.heroic { background: #e6f0ff; } .gic2.common { background: #f3efe6; }
.buybtn { flex: none; min-width: 78px; }
.buybtn svg { width: 18px; height: 18px; }
.pricehist { display: flex; align-items: center; gap: 6px; color: #8a7a54; }
.pricespark { width: 34px; height: 13px; flex: none; }
.secretnote { display: flex; gap: 10px; align-items: flex-start; background: #fff7e6; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.amounts .btn { padding: 8px 4px; }
.plaques { display: grid; gap: 6px; margin-top: 12px; }
.plaque { display: flex; align-items: center; gap: 8px; border: 2px solid #d8d0e4; border-radius: 12px; padding: 6px 8px; background: #faf7ff; }
.plaque .pl { width: 30px; height: 30px; flex: none; opacity: .6; }
.plaque .pl svg { width: 100%; height: 100%; }
.plaque.on { border-color: var(--ink); background: linear-gradient(#fffbe0, #ffe28a); }
.plaque.on .pl { opacity: 1; }

/* boss counters: the stage sheet, the party screen */
.ctrpanel { margin-top: 10px; background: #fffdf5; border-width: 3px; }
.ctrpanel.strong { border-color: #e63946; }
.ctrpanel.weakened { border-color: #e08a00; }
.ctrpanel.veryWeak { border-color: #38b000; }
.bossstr { font: 400 13px/1 var(--head); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 9px; color: #fff; background: #e63946; white-space: nowrap; }
.bossstr.weakened { background: #e08a00; }
.bossstr.veryWeak { background: #38b000; }
.ctrlead { font-weight: 800; line-height: 1.45; margin-top: 6px; }
.ctrway { display: inline; font: 900 13.5px/1.45 var(--body); color: #5a189a; background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; cursor: pointer; }
.ctrlist { margin-top: 6px; }
.ctrrow { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 2px solid #efe8f7; }
.ctrrow b { font: 400 15px/1.1 var(--head); }
.ctrrow .tiny { line-height: 1.3; margin-top: 2px; font-weight: 700; }
.ctrmark { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font: 900 15px/1 var(--body); background: #ffd6d9; color: #b3001b; }
.ctrrow.met .ctrmark { background: #b7f5b0; color: #1b5e20; }
.ctrhint { font: 800 12.5px/1.2 var(--body); color: #b3001b; }
.ctrparty { margin-top: 8px; background: #2a1b45; border: 3px solid #000; border-radius: 16px; padding: 8px 10px; box-shadow: 0 4px 0 #000; }
.ctrparty.strong { border-color: #ff6b6b; }
.ctrparty.weakened { border-color: #ffb703; }
.ctrparty.veryWeak { border-color: #7ae582; }
.ctrpips { display: flex; gap: 4px; }
.ctrpips i { width: 16px; height: 10px; border: 2px solid #000; border-radius: 4px; background: #4a3a66; }
.ctrpips i.on { background: #7ae582; }
.ctrchips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ctrchip { font: 800 12px/1.2 var(--body); border: 2px solid #000; border-radius: 999px; padding: 3px 9px; background: rgba(255,255,255,.12); color: #ffb3b8; cursor: pointer; }
.ctrchip.met { background: #7ae582; color: var(--ink); }

/* team: Mustard Seeds (one seed, one card) */
.seedstrip { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 4px; text-align: left; color: var(--ink); cursor: pointer; background: linear-gradient(#fffbe6, #fff0b8); }
.seedstrip .plants { flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1.05; text-align: center; color: var(--muted); }
.seedstrip .plants b.h { font-size: 22px; color: var(--ink); }
.boosts .row .btn + .btn { margin-left: 4px; }

/* team: wardrobe tiles show how an outfit is won */
.wtile .wcond { display: block; font: 900 9.5px/1.15 var(--body); color: #5a189a; margin-top: 3px; min-height: 22px; }
.wtile .wgo { margin-top: 4px; padding: 2px 12px; font-size: 12px; }
.wtile.locked { background: linear-gradient(#e7e1f2, #d3c9e6); }
.rankrow.buyrow { border-top: 2px dashed #d6c9ea; margin-top: 6px; padding-top: 8px; }

/* the Armor of God: the set You always wears */
.armorset .armortiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 8px; }
.armortile { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); text-align: center; min-width: 0; }
.armortile .aic { position: relative; display: grid; place-items: center; aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 12px; background: #e9e3f2; }
.armortile.owned .aic { background: radial-gradient(circle, #fff7c2, #ffd23f); box-shadow: 0 0 10px #ffd23f99; }
.armortile .aic svg { width: 72%; height: 72%; }
.armortile .aic .plus { position: absolute; right: 1px; bottom: -1px; font: 400 11px/1 var(--head); color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.armortile b { display: block; font: 900 10px/1.05 var(--body); margin: 3px -3px 0; white-space: nowrap; }
/* "Breastplate" is the one name that doesn't fit: let it wrap rather than shrink under 9px, which is too small to read. */
.armortile b.long { font-size: 9.5px; letter-spacing: -.2px; line-height: 10.5px; white-space: normal; overflow-wrap: anywhere; }
.armortile .tiny { display: block; font-size: 9px; color: #6b5f80; }
.armortile.owned .tiny { color: #2d8a00; }
.armorset .setline { margin-top: 8px; font-weight: 800; line-height: 1.35; }
.armorreveal { position: relative; height: 190px; border: 3px solid var(--ink); border-radius: 20px; overflow: hidden; background: radial-gradient(circle, #fffbe0, #ffd23f 55%, #f4a300); display: grid; place-items: center; }
.armorreveal .rays { opacity: 1; transform: translate(-50%, -50%) scale(.8); animation: spin 18s linear infinite; }
.armorreveal .aic { position: relative; z-index: 1; width: 128px; height: 128px; filter: drop-shadow(0 6px 0 #0003); animation: armorin .7s cubic-bezier(.34, 1.56, .64, 1) both; }
.armorreveal .aic svg { width: 100%; height: 100%; }
@keyframes armorin { from { transform: translateY(-60px) scale(.3) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.armorsetmini { background: #fff7e6; text-align: left; }
@media (prefers-reduced-motion: reduce) { .armorreveal .rays, .armorreveal .aic { animation: none; } }

/* stage sheets: possible rewards */
.droplist .chip.drop .dic { width: 20px; height: 20px; flex: none; display: inline-grid; place-items: center; font-style: normal; }
.droplist .chip.drop .dic svg { width: 100%; height: 100%; }
.droplist .chip.drop .dic .pcard { width: 20px; border-width: 1.5px; border-radius: 5px; }
.droplist .chip.armor { background: #fff3b0; }

/* market: outfits */
.outfitgood .ofig { background: linear-gradient(#bdf1ff, #9be7c4); overflow: hidden; align-items: end; }
.outfitgood .ofig svg { width: 100%; height: 118%; }
