/* v107: Daily Voyage + Charters */
/* title: New voyage and Daily Voyage share a row, as do Captain's log and Charters, so the menu keeps its height */
#app .titlescr>.choices.v107{display:grid!important;grid-template-columns:1fr 1fr;column-gap:8px}
#app .titlescr>.choices.v107>*{grid-column:1/-1;margin-left:0!important;margin-right:0!important;width:auto!important;min-width:0}
#app .titlescr>.choices.v107>#new,#app .titlescr>.choices.v107>#daily,#app .titlescr>.choices.v107>#logbook,#app .titlescr>.choices.v107>#charters{grid-column:auto}
html body.wide #app .titlescr>.choices.v107>button:first-child:not(#new){grid-column:1/-1}
html body.wide #app .titlescr>.choices.v107>#hallbtn{grid-column:auto}
html body.wide #app .titlescr>.choices.v107>#setbtn{grid-column:auto}
#app .titlescr #daily{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;line-height:1.1;padding-top:3px!important;padding-bottom:3px!important;overflow:hidden}
#app .titlescr #daily b{font-weight:inherit;font-size:1em;white-space:nowrap}
#app .titlescr #daily small{font-size:max(11px,.62em);opacity:.92;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-family:inherit;letter-spacing:0;text-transform:none;font-variant:normal}
#app .titlescr #daily .dvst{opacity:.78}
#app .titlescr #daily .dvtick{font-style:normal;color:#8fd18f}
#app .titlescr #daily.done{border-color:#8a7a3a}
#app .titlescr #daily .emo svg,#app .titlescr #daily .emo .ic{width:1em;height:1em;vertical-align:-.12em}
#app .titlescr #charters small{display:inline;font-size:.7em;opacity:.8;margin-left:4px}
/* daily briefing */
.dvscr h2{margin-bottom:0}
.dvscr .dvdate{text-align:center;margin:2px 0 0;line-height:1.2;font-style:italic;color:#ead9ad;opacity:.92}
.dvscr .dvmod,.endscr .dvend,.dvscr .dvstats div{background:var(--paper) center/220px,#e6d7b1;color:var(--ink);border:1px solid #2a180a;box-shadow:0 0 0 1px #000,0 4px 10px rgba(0,0,0,.4)}
.dvscr .dvmod{display:flex;gap:12px;align-items:center;outline:1px solid rgba(35,26,18,.45);outline-offset:-5px;padding:10px 14px;max-width:560px;width:100%;box-sizing:border-box;margin:4px auto}
.dvscr .dvmod .dvmi{font-size:34px;line-height:1;flex:none;width:40px;text-align:center}
.dvscr .dvmod .dvmi svg,.dvscr .dvmod .dvmi .ic{width:34px;height:34px}
.dvscr .dvmod>div>b{font-size:20px;display:block}
.dvscr .dvmod .dvmd{display:block;margin:2px 0 0;font-size:14.5px;line-height:1.3}
.dvscr .dvmod .dvcap{display:block;margin-top:5px;font-size:13.5px;border-top:1px solid rgba(35,26,18,.25);padding-top:4px}
.dvscr .dvline{margin:2px auto;max-width:560px;text-align:center;color:#ead9ad;font-size:13.5px;line-height:1.35;opacity:.9}
.dvscr .dvstats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;max-width:560px;width:100%;margin:4px auto;text-align:center}
.dvscr .dvstats div{padding:5px 2px}
.dvscr .dvstats b{display:block;font-size:19px}
.dvscr .dvstats small{font-size:11.5px;opacity:.85}
.dvscr .dvhist{display:flex;justify-content:center;gap:6px;margin:4px auto;color:#ead9ad}
.dvscr .dvday{display:flex;flex-direction:column;align-items:center;gap:2px}
.dvscr .dvday b{display:flex;align-items:center;justify-content:center;width:28px;height:28px;box-sizing:border-box;border:1px solid rgba(232,199,106,.45);background:rgba(0,0,0,.35);font-size:17px;color:#8fd18f}
.dvscr .dvday.on b{background:var(--paper) center/220px,#e6d7b1;color:#2f6b2f;border-color:#2a180a}
.dvscr .dvday.win b{color:#8a5a00}
.dvscr .dvday.today b{outline:2px solid #e8c76a;outline-offset:1px}
.dvscr .dvday i{font-size:11px;font-style:normal;opacity:.85}
html body #app[data-screen=dailybrief]>.actions,html body #app[data-screen=charters]>.actions{display:flex!important;flex-direction:row!important;gap:8px!important;justify-content:center!important}
html body #app[data-screen=dailybrief]>.actions>button,html body #app[data-screen=charters]>.actions>button{flex:1 1 0!important;max-width:240px!important;min-width:0!important;width:auto!important;margin:0!important}
/* charters */
.chscr .chlede{margin:4px auto 2px;max-width:600px;text-align:center;color:#ead9ad;font-size:13.5px;line-height:1.35}
.chscr .chlist{display:flex;flex-direction:column;gap:6px;max-width:620px;width:100%;margin:0 auto}
.chscr .chrow{display:flex;align-items:center;gap:10px;padding:7px 10px;border:1px solid rgba(232,199,106,.3);background:rgba(0,0,0,.28)}
.chscr .chrow.own{background:var(--paper) center/220px,#e6d7b1;color:var(--ink);border-color:#2a180a;box-shadow:0 0 0 1px #000}
.chscr .chrow.on{outline:2px solid #e8c76a;outline-offset:1px}
.chscr .chi{font-size:24px;flex:none;width:30px;text-align:center}
.chscr .chrow:not(.own) .chi{opacity:.45}
.chscr .chrow:not(.own){color:#ead9ad}
.chscr .chb{flex:1 1 auto;min-width:0}
.chscr .chb b{font-size:16.5px}
.chscr .chb p{margin:1px 0 0;font-size:13.5px;line-height:1.25}
.chscr .chf{font-style:italic;opacity:.8;font-size:12.5px!important}
.chscr .chneed span{opacity:.8;white-space:nowrap}
.chscr .chbar{height:4px;background:rgba(255,255,255,.12);margin-top:4px}
.chscr .chbar i{display:block;height:100%;background:#c9a34a}
.chscr .cheq{flex:none;min-height:38px!important;padding:4px 12px!important;font-size:15px!important;min-width:88px}
.capscr .chline{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;font-size:13px;line-height:1.25;margin:6px 0 0;padding-top:6px;border-top:1px solid rgba(232,199,106,.25);color:#ead9ad}
.capscr .chline b{color:#e8c76a;font-weight:normal}
.capscr .chline b{flex:none}
.capscr .chline span{flex:1 1 auto;min-width:0;opacity:.92}
.capscr .chline button{flex:none;min-height:32px!important;height:auto!important;padding:2px 10px!important;font-size:14px!important;margin:0!important;width:auto!important}
/* end screen */
.endscr .dvend{text-align:center;padding:6px 10px;max-width:520px;width:100%;box-sizing:border-box;margin:2px auto}
.endscr .dvend .dvhd{font-size:14px;opacity:.9}
.endscr .dvend .dvsc{font-size:16px}
.endscr .dvend .dvsc b{font-size:22px}
.unlockban{display:flex;gap:10px;align-items:center;max-width:520px;width:100%;box-sizing:border-box;margin:4px auto;padding:8px 12px;background:linear-gradient(#f3df9f,#d9b65a);color:#2a180a;border:1px solid #2a180a;box-shadow:0 0 0 1px #000,0 0 18px rgba(232,199,106,.55);animation:unlockpop .6s ease-out both}
.unlockban .ubi{font-size:28px;flex:none}
.unlockban b{display:block;font-size:17px}
.unlockban small{display:block;font-size:13px;line-height:1.25}
@keyframes unlockpop{0%{transform:scale(.85);opacity:0}60%{transform:scale(1.04);opacity:1}100%{transform:scale(1)}}
html.rm .unlockban{animation:none}
.dvchip{display:inline-block;font-size:12px;font-family:inherit;letter-spacing:0;text-transform:none;font-variant:normal;padding:1px 7px;border:1px solid rgba(232,199,106,.55);border-radius:9px;vertical-align:middle;white-space:nowrap;opacity:.95}
.unlockban.multi{padding:5px 10px;margin:2px auto}
.unlockban.multi .ubi{font-size:20px}
.unlockban.multi b{font-size:15px}
.unlockban.multi small{font-size:12px}
/* v108: end-screen legibility. The Ko-fi and feedback lines sit on the wood, so their plain words are light like their links.
   On wide end screens (sideways phones, 16:9 portal frames) the two summary lines get the same paper as the desktop layout,
   and the buttons and the two small lines sit a little tighter so the last line clears the bottom of short frames. */
html #app>p.kofi{color:rgba(232,216,176,.82);text-shadow:0 1px 2px rgba(0,0,0,.75)}
html body.wide #app:not(.bt) .endscr .wcol>p.center:not(.msg){background:var(--paper) center/170px,#e8d3a0;color:var(--ink);padding:5px 10px;border-radius:5px;border:1px solid #2a180a;box-shadow:0 0 0 2px rgba(201,162,74,.55),0 4px 8px rgba(0,0,0,.5)}
html body.wide #app[data-screen=end]>.actions{margin-top:6px}
html body.wide #app[data-screen=end]>p.kofi{line-height:1.25;margin-top:1px}
