/* css/street.css: the Chain Street houses (js/play/street.js). Uses the tokens and the panel, row, note, btn, tab and
   input styles of css/play.css; only what is new lives here. */
.st-lede { margin: 0 0 10px; font: 700 17px/1.4 Fraunces, Georgia, serif; }
.st-main { display: flex; justify-content: center; margin: 4px 0 6px; }
.st-main .btn.big { width: 100%; max-width: 380px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: inherit; min-height: 52px; }
.st-main .btn.big.berry, .st-main .btn.big.sea { color: #fff; }
.st-main .btn .ico { width: 28px; height: 28px; }
.st-center { text-align: center; margin: 4px 0 8px; }
.st-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.st-head h4 { margin: 0 0 6px; }
.st-p { margin: 4px 0 8px; font-weight: 600; line-height: 1.45; }
.st-steps { margin: 4px 0 8px; padding-left: 22px; display: grid; gap: 4px; font-weight: 700; line-height: 1.4; }
.st-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.st-links .btn, .st-done .btn { text-decoration: none; color: inherit; display: inline-flex; align-items: center; gap: 6px; white-space: normal; text-align: left; max-width: 100%; }
.st-links .btn.berry { color: #fff; }
.st-fine { margin-top: 12px; padding-top: 10px; border-top: 1.5px dashed var(--line); }
.st-risk { background: #FDEBDD; border: 1.5px solid rgba(201,97,76,.4); border-radius: 14px; padding: 10px 12px; font-size: 13.5px; font-weight: 800; margin: 10px 0; }
.st-bad { background: #FDE3E3; border-color: rgba(201,97,76,.45); color: var(--ink); }
.st-badtxt { color: #B4553E !important; }
.st-stage { font-weight: 900; color: var(--sea); margin: 8px 0; }

/* numbers */
.st-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 2px 0 4px; }
.st-price b { font: 900 30px/1 Nunito; }
.st-price span { font-weight: 800; color: var(--ink2); }
.st-badge { font-style: normal; font: 900 12px Nunito; background: #E6F5D8; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px 9px; }
.st-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0; }
.st-stats > div { background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 9px 12px; box-shadow: 0 3px 0 rgba(59,42,31,.9); min-width: 0; }
.st-stats span { display: block; font-size: 12px; font-weight: 800; color: var(--ink2); }
.st-stats b { display: block; font: 800 18px/1.2 Fraunces, Georgia, serif; overflow-wrap: anywhere; }

/* lists */
.st-list { display: grid; }
.st-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1.5px dashed var(--line); }
.st-row:last-child { border-bottom: 0; }
.st-kind { flex: none; min-width: 52px; text-align: center; font: 900 11px Nunito; text-transform: uppercase; letter-spacing: .04em; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px 8px; }
.st-name { flex: 1; min-width: 0; font-weight: 800; overflow-wrap: anywhere; }
.st-name b { font: 700 15.5px Fraunces, Georgia, serif; }
.st-name small, .st-sub { font-size: 12.5px; color: var(--ink2); font-weight: 700; }
.st-sub, .st-warn { display: block; }
.st-warn { color: #B4553E; font-weight: 800; font-size: 12px; }
.st-num { flex: none; text-align: right; }
.st-num small { display: block; font-size: 12px; color: var(--ink2); font-weight: 700; }
.st-row .btn { flex: none; text-decoration: none; color: inherit; padding: 6px 10px; font-size: 13px; }

/* the stock marks (img/stocks, drawn through a mask on a round chip) */
.st-chip { display: inline-flex; align-items: center; gap: 6px; min-width: 76px; flex: none; }
.st-chip b { font: 900 13px Nunito; letter-spacing: .03em; }
.st-mk { flex: none; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4E8F4A, #2F5E33 72%); border: 1.5px solid var(--ink); position: relative; }
.st-mk::after { content: ''; position: absolute; inset: 0; background: #FFFAF0; -webkit-mask: var(--mk) center / var(--mks, 58%) no-repeat; mask: var(--mk) center / var(--mks, 58%) no-repeat; }

/* the Stock Exchange */
.st-wallet { margin: 4px 0 8px; font-weight: 800; text-align: center; color: var(--ink2); }
.st-wallet b { color: var(--ink); }
.st-trade, .st-form, .st-review, .st-puzzle { background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; padding: 12px; margin: 10px 0; display: grid; gap: 8px; box-shadow: 0 3px 0 rgba(59,42,31,.9); }
.st-form { box-shadow: none; border-width: 1.5px; background: #FFF6E4; }
.st-tradetop { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.st-tradetop .st-f { flex: 1; min-width: 180px; }
.st-tabs { margin: 0; flex-wrap: nowrap; }
.st-pay { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.st-pay .tab { padding: 4px 12px; }
.tab[disabled] { opacity: .4; pointer-events: none; }
.st-f { display: grid; gap: 4px; font-weight: 800; font-size: 13px; }
.st-f > span { color: var(--ink2); }
.st-f small { font-size: 12px; color: var(--ink2); font-weight: 700; }
.st-f select.text, .st-f textarea.text, .st-trade select.text { font: 800 15px Nunito; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 10px; background: #fff; width: 100%; color: var(--ink); user-select: text; -webkit-user-select: text; }
.st-f textarea.text { resize: vertical; min-height: 64px; font-weight: 700; }
.st-amt { display: flex; gap: 8px; align-items: center; }
.st-amt input.text { flex: 1; min-width: 0; }
.st-amt .btn { flex: none; }
.st-quote { background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 10px 12px; display: grid; gap: 6px; }
.st-quote p { margin: 0; }
.st-sign { background: #EEF6FB; border: 1.5px solid rgba(95,163,208,.55); border-radius: 14px; padding: 9px 12px; font-size: 13.5px; font-weight: 700; }
.st-sign ol { margin: 6px 0; padding-left: 20px; display: grid; gap: 3px; }
.st-sign > span { display: block; font-size: 12.5px; color: var(--ink2); }
.st-wide { width: 100%; }
.st-table { display: grid; }
.st-stock { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1.5px dashed var(--line); }
.st-stock:last-child { border-bottom: 0; }
.st-sname { flex: 1; min-width: 0; font-weight: 800; font-size: 14px; }
.st-sname small { display: block; font-size: 12px; color: var(--ink2); font-weight: 700; }
.st-sprice { flex: none; font: 900 15px Nunito; }
.st-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.st-acts .btn { padding: 6px 10px; font-size: 13px; }

/* the Morpho House */
.st-loan { border: 2px solid var(--ink); border-radius: 18px; background: #fff; padding: 10px 12px; margin: 8px 0; display: grid; gap: 8px; }
.st-loan.open { box-shadow: 0 3px 0 rgba(59,42,31,.9); }
.st-loanhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-loanhead b { font: 700 15px Fraunces, Georgia, serif; }
.st-loanhead small { font-size: 12px; font-weight: 800; color: var(--ink2); margin-left: auto; }
.st-nums { display: grid; gap: 2px; font-size: 13.5px; font-weight: 700; }
.st-bar { position: relative; height: 10px; border-radius: 6px; background: rgba(59,42,31,.12); border: 1.5px solid var(--ink); overflow: hidden; }
.st-bar .st-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--leaf); }
.st-bar .st-limit { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--clay); }
.st-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 2px 0 0; }
.st-mtable { display: grid; font-size: 13.5px; }
.st-mrow { display: grid; grid-template-columns: 1.5fr 1fr 1fr .8fr; gap: 4px 8px; align-items: baseline; padding: 7px 2px; border-bottom: 1.5px dashed var(--line); font-weight: 800; }
.st-mrow > span:not(.st-pair):not(.st-msub) { text-align: right; }
.st-mth { font-size: 11.5px; color: var(--ink2); text-transform: uppercase; letter-spacing: .03em; }
.st-pair b { font: 700 14.5px Fraunces, Georgia, serif; }
.st-pair small { color: var(--ink2); }
.st-msub { grid-column: 1 / -1; font-size: 12px; color: var(--ink2); font-weight: 700; }

/* the Pons House */
.st-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-cost { display: grid; gap: 4px; }
.st-c { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 700; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.st-c b { text-align: right; overflow-wrap: anywhere; }
.st-total { font-size: 15px; font-weight: 900; }
.st-warnbox { background: #FFF6DA; border: 1.5px solid rgba(244,194,79,.7); border-radius: 14px; padding: 8px 12px; font-size: 13px; font-weight: 800; }
.st-warnbox p { margin: 3px 0; }
.st-ack { display: flex; gap: 8px; align-items: flex-start; font-weight: 800; font-size: 14px; }
.st-ack input { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.st-review h4 { margin: 0; }
.st-done { display: grid; gap: 8px; margin: 8px 0; }
.st-ok { font: 800 17px Fraunces, Georgia, serif; margin: 0; color: #3E7A2E; }
.st-addr { font: 700 12.5px ui-monospace, Menlo, monospace; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 8px; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.st-state { margin: 8px 0; }

/* the Harmonic Observatory */
.st-kick { font: 900 11.5px Nunito; text-transform: uppercase; letter-spacing: .06em; color: var(--clay); }
.st-q { margin: 0; font: 700 17px/1.4 Fraunces, Georgia, serif; }
.st-answer input.text { font-size: 18px; }
.st-puzzle .chest-on, .st-puzzle .note { margin: 0; }

@media (max-width: 480px) {
  .st-two { grid-template-columns: 1fr; }
  .st-amt { flex-wrap: wrap; }
  .st-amt input.text { flex-basis: 100%; }
  .st-answer .btn.big { width: 100%; }
  .st-stock { flex-wrap: wrap; }
  .st-stock .st-sname { flex-basis: calc(100% - 180px); }
  .st-stock .st-acts { width: 100%; justify-content: flex-end; }
  .st-mrow { grid-template-columns: 1.3fr 1fr 1fr .8fr; font-size: 12.5px; }
  .st-row { flex-wrap: wrap; }
  .st-price b { font-size: 26px; }
}
