/* Windfall: styles for the depth screens (Captain tab, Exchange, stakes, training, lottery, bookmaker, summaries).
   Built on the base classes in style.css; nothing here restyles them. */

/* standing bars */
.repbar { position: relative; height: 8px; min-width: 120px; background: linear-gradient(90deg, rgba(176, 42, 26, .35), var(--paper-2) 50%, rgba(47, 107, 58, .4)); border: 1px solid var(--rule); }
.repbar::before { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--ink-2); opacity: .5; }
.repbar i { position: absolute; top: -3px; width: 4px; height: 14px; margin-left: -2px; background: var(--ink); }
.card .repbar { margin: .4rem 0 .6rem; }

/* goals, open matters, achievements */
.matters { margin: .3rem 0; padding-left: 1.2rem; } .matters li { padding: .2rem 0; border-bottom: 1px dotted var(--rule); }
.achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .5rem; }
.ach { border: 1.5px dashed var(--rule); padding: .5rem .65rem; opacity: .55; background: transparent; }
.ach b { font: 600 .95rem var(--display); display: block; } .ach small { display: block; line-height: 1.25; }
.ach.got { opacity: 1; border: 1.5px solid var(--ink); background: var(--paper-3); box-shadow: 3px 3px 0 rgba(168, 121, 42, .35); }
.ach.got b::before { content: '\2605  '; color: var(--brass); }

/* price book */
.spark.lines polyline.b { stroke: var(--stamp); } .spark.lines polyline.s { stroke: var(--sea); }
.spark.lines circle.b { fill: var(--stamp); } .spark.lines circle.s { fill: var(--sea); }
.spark.lines { height: 140px; margin-top: .6rem; }
.key { display: inline-block; width: 1.4rem; height: 3px; vertical-align: middle; margin: 0 .2rem 0 .6rem; } .key.b { background: var(--stamp); } .key.s { background: var(--sea); }
.trend { font: .62rem var(--mono); } .trend.up { color: var(--bad); } .trend.down { color: var(--good); }

/* cards in the bank and tavern */
.trow { display: flex; justify-content: space-between; gap: .8rem; align-items: center; padding: .45rem 0; border-bottom: 1px dotted var(--rule); }
.trow small { display: block; }
.card select.in, .row select.in { width: auto; }
.page .card + h3, .page .cards + h3 { margin-top: 1.6rem; }
.adv { margin-top: 1rem; }
.card.adv h3 small { margin-left: .4rem; }

/* start screen */
.diffnote { font-size: .8rem; line-height: 1.35; margin: -.3rem 0 .2rem; }

/* special modals */
.modal.mutiny_out h2, .modal.rescue h2, .modal.rivalsea h2 { color: var(--stamp); }
.modal.treasure h2 { color: var(--brass); }

/* end summary */
.epithet { font: italic 1.15rem var(--display); margin: .8rem 0 .4rem; }
.endfacts { grid-template-columns: repeat(2, 1fr); } .endfacts small { display: block; line-height: 1.25; margin-top: .1rem; }
.endgoals { list-style: none; padding: 0; margin: .5rem 0; font-size: .92rem; }
.endgoals li { display: inline-block; margin: 0 .4rem .2rem 0; padding: .1rem .5rem; border: 1px solid var(--rule); }
.endgoals li.done { border-color: var(--good); color: var(--good); } .endgoals li.failed { color: var(--bad); border-color: var(--bad); opacity: .7; }

.ledger.mini td small { margin-left: .4rem; }
