/* Windfall: staged unlocks ("First command"). The stripped-down first screens, the unlock card, the "new" dot and the one quiet "what is next" line.
   Loaded last. Nothing here changes the full game's screens: every selector below only matches markup that ui.js draws for a stage-1 to stage-2 captain
   (or the card, dot and hint, which only appear in a staged game). */

/* ----- no side panel: the page sits in the middle with the two tabs beside it ----- */

/* ----- the tiny ship summary (stages 1 and 2): just the hold ----- */

/* ----- the first mate, one line at a time ----- */
.mate.lean { grid-template-columns: auto 1fr auto; padding: .55rem .8rem; gap: .7rem; margin-bottom: .8rem; }
.mate.lean .mate-art { width: 2rem; height: 2rem; } .mate.lean .mate-art svg { width: 1.25rem; height: 1.25rem; }
.mate-line { font: 500 1.08rem/1.3 var(--display); }
.mate.lean .mate-ops { display: flex; gap: .5rem; align-items: center; justify-items: unset; }
.mate-x { all: unset; box-sizing: border-box; cursor: pointer; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; font: 400 1.3rem/1 var(--body); color: var(--ink-2); border-radius: 50%; }
.mate-x:hover { background: rgba(0, 0, 0, .08); color: var(--ink); } .mate-x:focus-visible { outline: 3px solid var(--sea); outline-offset: 1px; }

/* ----- the stripped-down market: five goods, one line each ----- */

/* ----- the stripped-down chart ----- */
.destpick { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .5rem; margin: .5rem 0 .8rem; }
.dp { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: .1rem; padding: .55rem .8rem; border: 1.5px solid var(--rule); background: var(--paper-2); }
.dp b { font: 700 1.1rem var(--display); } .dp small { font: .72rem var(--mono); }
.dp:hover { border-color: var(--ink); background: #fff; } .dp.on { border-color: var(--stamp); background: #fff9ee; box-shadow: inset 0 0 0 1.5px var(--stamp); }
.dp:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.dp.coach, .destpick.coach { outline-offset: 3px; }

/* ----- the one quiet line: what opens next ----- */
.nexthint { display: grid; gap: .3rem; margin: 1.8rem 0 0; padding-top: .8rem; border-top: 1px dotted var(--rule); font: .72rem/1.3 var(--mono); letter-spacing: .04em; color: var(--ink-2); }
.nexthint b { color: var(--ink); font-weight: 600; } .nexthint i { font-style: normal; opacity: .85; }
.nexthint .nbar { display: block; height: 3px; max-width: 18rem; background: var(--paper-2); } .nexthint .nbar i { display: block; height: 100%; background: var(--brass); transition: width .5s; }

/* ----- the "new" dot on a tab that opened and has not been visited ----- */
 .start-card.first .start-tools kbd { display: none; }
.newdot { display: inline-block; vertical-align: middle; margin-left: .45rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--stamp); box-shadow: 0 0 0 2px var(--paper); animation: dotPulse 2s ease-in-out infinite; }
@keyframes dotPulse { 50% { transform: scale(1.35); } }
@media (max-width: 1100px) { .newdot { position: absolute; top: .3rem; right: .75rem; margin: 0; box-shadow: 0 0 0 2px var(--ink); } }

/* ----- the unlock card ----- */
.veil.unlockveil { z-index: 60; align-items: center; background: rgba(18, 28, 34, .62); }
.unlock { position: relative; width: min(500px, 100%); text-align: center; padding: 2.2rem 2rem 1.6rem; background: var(--paper-3); border: 2px solid var(--ink); border-top: 8px solid var(--brass); box-shadow: 10px 10px 0 rgba(0, 0, 0, .35); animation: unlockIn .5s cubic-bezier(.2, 1.1, .4, 1) both; }
.unlock:focus { outline: none; }
@keyframes unlockIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.un-stamp { position: absolute; top: 1rem; right: 1rem; padding: .15rem .6rem; font: 800 .95rem var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--stamp); border: 3px double var(--stamp); border-radius: 3px; transform: rotate(8deg); opacity: .92; animation: stampDown .45s .25s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes stampDown { from { opacity: 0; transform: rotate(8deg) scale(2.2); } 60% { opacity: .95; } }
.un-art { width: 4.6rem; height: 4.6rem; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); box-shadow: 0 0 0 4px var(--paper-3), 0 0 0 5.5px var(--brass); }
.un-art .ti { width: 2.5rem; height: 2.5rem; }
.unlock .eyebrow { margin-bottom: .4rem; color: var(--brass); }
.unlock h2 { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-bottom: .8rem; }
.un-text { font-size: 1.1rem; line-height: 1.45; margin: 0 0 .6rem; }
.un-mods { font: .72rem/1.5 var(--mono); letter-spacing: .04em; color: var(--ink-2); margin: 0 0 1.3rem; padding-top: .7rem; border-top: 1px dotted var(--rule); }
.un-mods span { text-transform: uppercase; letter-spacing: .14em; color: var(--brass); margin-right: .4rem; }
.un-ops { display: flex; gap: .6rem; justify-content: center; align-items: center; flex-wrap: wrap; } .un-ops .btn { margin: 0; }
@media (max-width: 700px) { .unlock { padding: 1.8rem 1.1rem 1.2rem; } .unlock h2 { font-size: 1.8rem; } .un-ops .btn.primary { flex: 1 1 100%; } .un-art { width: 3.8rem; height: 3.8rem; } }
@media (prefers-reduced-motion: reduce) { .unlock, .un-stamp, .newdot { animation: none; } }
body.rm .unlock, body.rm .un-stamp, body.rm .newdot { animation: none; }

/* ----- the start screen: name, one big button, everything else tucked away ----- */
.start-card.first { max-width: 560px; }
.start-card.first .lede { font-size: 1.2rem; margin: 1rem 0 1.6rem; }
.more { border: 0; }
.more summary { cursor: pointer; list-style: none; display: inline-block; padding: .25rem 0; font: 600 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.more summary::-webkit-details-marker { display: none; } .more summary::before { content: '\25B8  '; } .more[open] summary::before { content: '\25BE  '; }
.more summary:hover { color: var(--ink); } .more summary:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.more-body { display: grid; gap: 1.1rem; margin-top: .6rem; }
.dgrid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .dgrid.two { grid-template-columns: 1fr; } .start-card.first { margin-top: 8vh !important; } }

/* ----- phone: the first screens stay short ----- */
@media (max-width: 700px) {
  .mate.lean { position: relative; grid-template-columns: 1fr; gap: .45rem; padding: .55rem 2.2rem .6rem .75rem; margin-bottom: .6rem; }
  .mate.lean .mate-art { display: none; } .mate-line { font-size: 1rem; }
  .mate.lean .mate-ops { display: block; } .mate.lean .mate-ops .btn { width: 100%; }
  .mate-x { position: absolute; top: .35rem; right: .35rem; }
  .mate.lean .mate-ops:not(:has(.btn)) { display: none; }

  .nexthint { margin-top: 1rem; }
}
.more-body .ck { display: flex; }

/* ----- header: room under the brand line for the day-progress ship, so the captain's name is never covered ----- */

.dship { width: 32px; bottom: 3px; }

/* ----- phone, first screens: five goods, one compact line each, so the whole market and the first mate's line fit in one view ----- */

