/* The homestead track: trades, machines, the Homestead overview, the dry dock */

/* the six trades: a row of chips with your skill in each */
.hs-chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 2px 0 8px; }
.hs-chip { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 0 3px; border-radius: 8px; background: var(--paper2); border: 2px solid var(--wood2); opacity: .75; box-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.hs-chip.sel { opacity: 1; background: #fff6d8; border-color: #f2a83a; box-shadow: 0 0 0 2px #f2a83a; }
.hs-chip-i { font-size: 20px; line-height: 1; }
.hs-chip-n { font-size: 12px; font-weight: 700; }
.hs-skill { margin: 2px 0 4px; }
.hs-skill-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px; }
.hs-lvl { font-weight: 700; }
.hs-bar { position: relative; height: 11px; }
.hs-bar i { position: absolute; top: -1px; bottom: -1px; width: 2px; background: var(--wood); opacity: .55; }
.hs-seat { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 6px 8px; margin: 6px 0; background: #fff6d8; border: 2px dashed #f2a83a; border-radius: 8px; font-size: 13.5px; }
.hs-rec b { font-size: 15px; }
.hs-req { display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 6px; background: var(--paper2); font-size: 11px; color: var(--ink2); font-weight: 700; vertical-align: 2px; }
.hs-legend b { font-weight: 700; }
.hs-btns { display: flex; gap: 5px; flex: none; }
.row.hs-rec .btn { padding: 6px 9px; }

/* a machine's panel */
.hs-head { display: flex; align-items: center; gap: 12px; }
.hs-head .hint { margin: 0; }
.hs-pic { image-rendering: pixelated; flex: none; max-width: 110px; max-height: 120px; object-fit: contain; }
.hs-status { padding: 8px 10px; margin: 8px 0; border-radius: 8px; background: #fffaf0; border: 2px solid var(--paper2); }
.hs-status > b { display: block; font-size: 15px; }
.hs-status.ready, .hs-status.full { border-color: #f2c94c; background: #fff8e0; }
.hs-status.nopower { border-color: #e8b0a0; }
.hs-fill { transition: width 1s linear; }
.hs-slots { margin: 6px 0; }
.hs-slotrow { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; min-height: 30px; align-items: center; }
.hs-slot { position: relative; display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 7px; background: var(--paper2); border: 2px solid #b08a5a; }
.hs-slot .ico { width: 28px; height: 28px; }
.hs-slot .n { position: absolute; right: 2px; bottom: 0; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 1px 1px 0 #3a2a1a, -1px -1px 0 #3a2a1a, 1px -1px 0 #3a2a1a, -1px 1px 0 #3a2a1a; }
.hs-slot.take { padding: 0; cursor: pointer; }
.hs-slot.take:hover { border-color: #f2a83a; } /* tap to take it back out of the hopper (#23) */
.hs-traybox { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.hs-mrec { flex-wrap: wrap; gap: 4px; font-size: 13.5px; padding: 4px 8px; }
.hs-in { display: inline-flex; align-items: center; gap: 2px; }
.hs-arrows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.hs-arrows .btn { margin: 0; font-size: 24px; }

/* the Homestead overview: made for a phone at lunch */
.hs-tier { padding: 8px 10px; margin-bottom: 8px; background: #eef6e0; border: 2px solid #b8d89c; border-radius: 8px; }
.hs-tier b { font-size: 17px; }
.hs-tier a { color: var(--good); font-weight: 600; }
.hs-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.hs-c { padding: 3px 9px; border-radius: 12px; background: var(--paper2); font-size: 13.5px; font-weight: 600; }
.hs-c.hot { background: #fff0b8; box-shadow: inset 0 0 0 2px #f2c94c; }
.hs-big { flex-direction: column; }
.hs-big .btn { margin-top: 0; width: 100%; }
.hs-home h4 { margin: 12px 0 6px; }
.row.hs-mrow { width: 100%; }
.row.hs-mrow.ready, .row.hs-mrow.full { border-color: #f2c94c; background: #fff8e4; }
.row.hs-mrow.nopower, .row.hs-mrow.idle { border-style: dashed; }
.row.hs-mrow .bar { margin-top: 4px; }
.hs-trade.seat { border-color: #f2c94c; background: #fff8e4; }
.hs-trade .btn { align-self: center; }
.hs-away { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding: 8px 10px; background: #fff8e4; border: 2px solid #f2c94c; border-radius: 8px; font-size: 14.5px; }
.hs-cook { margin-top: 14px; padding-top: 6px; border-top: 2px dashed var(--paper2); }

/* the dry dock */
.hs-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 18px; }
.hs-part { margin-bottom: 8px; }
.hs-part .giverow { font-size: 13.5px; }
.hs-gn { width: 120px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-launch { text-align: center; padding: 10px; background: linear-gradient(#f4ecff, #fff8e4); border: 2px solid #b48cff; border-radius: 10px; }
.hs-launch p { margin: 2px 0; font-size: 17px; }

/* the launch: a banner across the top */
.hs-banner { position: fixed; z-index: 31; bottom: calc(96px + var(--safe-b)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 22px; border-radius: 14px; background: linear-gradient(#3a2a6a, #5a3a8a); border: 3px solid #e0d0ff; color: #fff6e0; box-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 0 30px rgba(180, 140, 255, .6); text-align: center; pointer-events: none; animation: pop .4s; transition: opacity .9s, transform .9s; width: min(92vw, 480px); }
.hs-banner b { font-size: 24px; }
.hs-banner span { font-size: 14.5px; color: #e8dcff; }
.hs-banner.out { opacity: 0; transform: translateX(-50%) translateY(-12px); }

/* asleep in a bed: the screen dims (over the world, under the HUD), and a card on getting up */
#hs-sleep { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 1.4s; background: radial-gradient(ellipse at 50% 42%, rgba(30, 20, 60, .22), rgba(12, 8, 30, .82)); display: flex; align-items: flex-end; justify-content: center; }
#hs-sleep.on { opacity: 1; }
#hs-sleep span { margin: 0 16px calc(170px + var(--safe-b)); padding: 6px 14px; border-radius: 12px; background: rgba(20, 14, 40, .55); color: #e8dcff; font-size: 14.5px; text-align: center; }
.hs-morning { position: fixed; z-index: 31; top: calc(78px + var(--safe-t)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 22px; border-radius: 14px; background: linear-gradient(#ffe6b0, #f6c890); border: 3px solid #fff6dc; color: #4a2e1a; box-shadow: 0 4px 0 rgba(0, 0, 0, .3), 0 0 30px rgba(255, 210, 140, .6); text-align: center; animation: pop .4s; transition: opacity .9s, transform .9s; width: min(92vw, 420px); cursor: pointer; }
.hs-morning b { font-size: 22px; }
.hs-morning span { font-size: 14.5px; }
.hs-morning.out { opacity: 0; transform: translateX(-50%) translateY(-12px); }

@media (max-width: 600px) {
  .hs-chip-i { font-size: 18px; }
  .hs-gn { width: 84px; }
  .hs-pic { max-width: 84px; }
  .hs-btns { flex-direction: column; gap: 4px; }
  .row.hs-rec .btn { padding: 4px 8px; font-size: 13.5px; }
  .row.hs-rec { padding: 5px 6px; gap: 6px; }
}

/* Homestead II: the barn, ghosts, the undo, rooms, the launch hold */
.hs-stars { color: #d8a020; font-size: 13px; letter-spacing: 1px; }
.hs-barn .big { font-size: 26px; }
.hs-movebar { position: fixed; z-index: 6; left: 50%; transform: translateX(-50%); top: calc(64px + var(--safe-t)); display: flex; gap: 8px; align-items: center; padding: 8px 12px; font-weight: 600; max-width: 94vw; flex-wrap: wrap; }
.hs-ghost { margin-top: 10px; padding-top: 8px; border-top: 2px dashed var(--paper2); }
.row.hs-note { font-size: 14px; gap: 6px; }
.hs-noteform { display: flex; gap: 6px; margin-top: 6px; }
.hs-noteform input { flex: 1; min-width: 0; }
.hs-deco { margin-top: 4px; }
.hs-deco .swatch { width: 40px; height: 30px; }
.hs-air2 h4 { margin: 12px 0 6px; }
.hs-hold { padding: 8px 10px; background: #f4ecff; border: 2px solid #b48cff; border-radius: 8px; }
.hs-hold p { margin: 0 0 6px; }
.hs-banner.hs-count { bottom: auto; top: calc(70px + var(--safe-t)); }
