/* M6 + M7, the adventure track: the newer callings, talents, reputation, mounts, companions */

/* the ability bar holds up to eight now: four to a row on a phone */
body.touch #abilities { width: 212px; }
.res.rage { background: linear-gradient(#ff7a6a, #c0302a); }
.hbtn.on { border-color: #7ac050; box-shadow: 0 0 10px #a8f080, 0 3px 0 rgba(0, 0, 0, .35); }

/* callings: five cards, the one you are now ringed */
.calling.cur { border-color: #7ac050; box-shadow: 0 0 0 2px #a8f080 inset, 0 3px 0 rgba(0, 0, 0, .35); }
.calling .cozy { font-style: italic; margin: 2px 0 6px; }
.calling .cabs { display: flex; flex-wrap: wrap; gap: 2px; font-size: 16px; }
.tf-on { color: #ffd06a; }

/* reputation */
.adv-rep { margin: 6px 0; }
.adv-rep-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.adv-rep-top span { font-weight: 700; text-shadow: 1px 1px 0 #3a2a1a; }
.adv-repbar { position: relative; height: 14px; border-radius: 7px; background: rgba(40, 30, 20, .25); border: 2px solid var(--wood2); overflow: hidden; margin-top: 3px; }
.adv-repbar > div { height: 100%; transition: width .3s; }
.adv-repbar span { position: absolute; inset: 0; text-align: center; font-size: 10px; line-height: 10px; color: #fff; text-shadow: 1px 1px 0 #000; }
.adv-where { margin: 0 0 10px; }
.adv-quarter { margin-top: 12px; padding-top: 6px; border-top: 2px dashed var(--paper2); }

/* mounts */
.adv-mount { width: 45px; height: 36px; image-rendering: pixelated; }
.adv-mbtn { display: inline-flex; align-items: center; gap: 4px; }
.adv-mbtn .adv-mount { width: 30px; height: 24px; }

/* talents */
.adv-paths { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; }
.adv-path { flex: 1 1 180px; padding: 8px 10px; text-align: left; }
.adv-path .cname { font-size: 17px; font-weight: 700; }
.adv-path p { margin: 4px 0 0; font-size: 13px; }
.adv-path.cur { border-color: #f2c94c; box-shadow: 0 0 0 2px #ffe680 inset, 0 3px 0 rgba(0, 0, 0, .35); }
.adv-talents { display: flex; flex-direction: column; gap: 6px; }
.adv-tal { display: flex; align-items: center; gap: 8px; padding: 6px 8px; }
.adv-tal.has { border-color: #c8962a; }
.adv-tal.dim { opacity: .6; }
.adv-tal .grow { flex: 1; min-width: 0; }
.adv-tal .btn { min-width: 40px; font-size: 18px; }
.adv-pips { margin-left: 8px; color: #c8962a; letter-spacing: 1px; }

/* companions */
.adv-pet { width: 40px; height: 36px; image-rendering: pixelated; }
.row.adv-cur { border-color: #7ac050; background: #f4fff0; }
.adv-char { margin-top: 8px; }

/* where you are, out past the Wildwood (and inside the Observatory) */
#adv-banner { top: calc(62px + var(--safe-t)); left: 50%; transform: translateX(-50%); padding: 3px 12px; border-radius: 10px; background: rgba(20, 24, 30, .6); border: 2px solid #4a6a5a; color: #f0f8f0; font-size: 13px; white-space: nowrap; pointer-events: none; text-shadow: 0 1px 0 #000; }
#adv-banner span { color: #c8e0c8; }
@media (max-width: 600px) { #adv-banner { top: calc(128px + var(--safe-t)); left: auto; right: calc(62px + var(--safe-r)); transform: none; font-size: 11px; } }
@media (max-height: 500px) { #adv-banner { display: none !important; } } /* a phone held sideways: no room up top */

/* M8, Adventure III: wear, the paper-doll and wardrobe, the lock, rolls */
.adv-dur { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; white-space: nowrap; }
.adv-durbar { position: relative; display: inline-block; width: 46px; height: 8px; border-radius: 4px; background: rgba(40, 30, 20, .25); border: 1px solid var(--wood2); overflow: hidden; }
.adv-durbar > span { position: absolute; left: 0; top: 0; bottom: 0; }
.row.dg-broken { background: #fbe8e0; border-color: #c84a3a; }
.dg-doll.wd-doll, .wd-doll { image-rendering: pixelated; background: radial-gradient(circle at 50% 70%, #e2f0c4, #cfe6a8); border-radius: 8px; border: 2px solid var(--wood2); cursor: pointer; }
.dg-char .wd-doll { width: 66px; height: 84px; }
.wd-top { display: flex; gap: 12px; align-items: center; }
.wd-top .wd-doll { width: 110px; height: 140px; flex: none; }
.wd-slot { margin-top: 8px; }
.wd-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.wd-item { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 84px; padding: 4px; font-size: 11px; line-height: 1.1; }
.wd-item.dim { opacity: .55; }
.wd-item .big { font-size: 22px; height: 36px; line-height: 36px; }
.wd-cos { width: 48px; height: 36px; image-rendering: pixelated; }
.wd-left { margin-top: 4px; font-style: italic; }
.adv-lockp { display: flex; flex-direction: column; align-items: center; }
.adv-lock { width: 200px; height: 200px; background: radial-gradient(circle, #5a4a5a, #2a1e2a); border-radius: 50%; border: 4px solid #c8962a; cursor: pointer; touch-action: manipulation; }
.adv-roll .btn { min-width: 96px; }
.adv-tokens .btn { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.adv-wild .row { align-items: flex-start; }
@media (max-width: 600px) { .wd-top { flex-direction: column; } .wd-item { width: 72px; } .adv-lock { width: 170px; height: 170px; } }
.wd-item > span:last-child { white-space: normal; overflow-wrap: anywhere; font-size: 10px; min-height: 2.2em; display: flex; align-items: center; text-align: center; }
