/* GRAVETIDE · her personal offers (owner, 2026-10-15; client/src/ui/promo.ts). Small cards in the bands — in the island
   scene's right column, the top band of a boarding's end (at sea and in port: a round icon, seahud.css #tc-offer) — and
   the entry carousel in the middle (a window, allowed there). Dark wood, brass, gold; the «−20 %» ribbon, the old price
   struck through, the clock red in its last hour. Loaded before fit.css, which stays the last (index.html). */

/* ---------- a small card */
.po-chip { display: flex; align-items: stretch; gap: 0; z-index: 12; pointer-events: auto; border: 1px solid rgba(224, 184, 98, 0.75); border-radius: 6px;
  background: linear-gradient(160deg, rgba(58, 44, 20, 0.94), rgba(12, 10, 8, 0.95) 70%); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), inset 0 0 14px rgba(224, 184, 98, 0.08); color: var(--bone); font-family: var(--sans); }
.po-chip.hidden { display: none; }
.po-open { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 5px; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; touch-action: manipulation; }
.po-open .sh-art { flex: none; width: 34px; height: 34px; }
.po-open .sh-ico { width: 24px; height: 24px; }
.po-open .sh-face { width: 34px; height: 34px; }
.po-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.po-n { font: 600 11px/1.12 var(--sans); overflow-wrap: anywhere; }
.po-n small { color: var(--fog); font-weight: 500; }
.po-l { display: flex; flex-wrap: wrap; align-items: center; gap: 1px 5px; white-space: nowrap; font-size: 11px; } /* (the price in real money and doubloons, the clock: a second line when the card is narrow — frames.mjs 2026-10-19) */
.po-was { color: var(--steel-text); font-size: 10px; }
.po-new { display: inline-flex; align-items: center; gap: 2px; color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.po-new .ico-xs { width: 12px; height: 12px; margin: 0; object-fit: contain; }
.po-clock { color: #f1d08a; font-variant-numeric: tabular-nums; font-weight: 700; }
.po-clock.urgent { color: #ff7a66; text-shadow: 0 0 6px rgba(255, 70, 50, 0.45); }
.po-off { position: absolute; top: -6px; left: -4px; z-index: 1; padding: 0 4px; border-radius: 6px; font: 800 9px/13px var(--sans); font-style: normal; color: #fff; background: linear-gradient(180deg, #c0392b, #7d1d14); box-shadow: 0 1px 3px #000; }
.po-x { flex: none; width: 26px; border: 0; border-left: 1px solid rgba(224, 184, 98, 0.3); background: none; color: var(--fog); font: 700 15px/1 var(--sans); cursor: pointer; touch-action: manipulation; }
.po-x:hover { color: var(--bone); }

/* ---------- where they stand */
/* (the sea's chip is the round icon under the captain's plate now: seahud.css #tc-offer, owner 2026-10-16) */
#isle .po-isle { position: absolute; z-index: 11; top: calc(var(--is-top) + 6px); right: var(--is-pad-r); width: 200px; }
.po-board { position: fixed; z-index: 26; top: calc(var(--sa-t, 0px) + 6px); left: 50%; transform: translateX(-50%); width: 220px; }

/* ---------- the overlay: the entry carousel, one offer's card */
#promo-over { position: fixed; inset: 0; z-index: 38; display: flex; align-items: center; justify-content: center; padding: max(var(--sa-t, 0px), 8px) max(var(--sa-r, 0px), 8px) max(var(--sa-b, 0px), 8px) max(var(--sa-l, 0px), 8px); background: rgba(3, 4, 6, 0.72); }
.po-box { position: relative; width: min(560px, 100%); max-height: 100%; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid var(--brass, #b08d57); border-radius: 6px;
  background: linear-gradient(170deg, #2a2117, #0f0d0b 65%); box-shadow: 0 0 0 1px #000, 0 12px 40px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(224, 184, 98, 0.07); }
.po-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.po-head b { font: 400 20px/1.1 var(--display); color: var(--gold); letter-spacing: 0.03em; }
.po-x-big { width: 36px; height: 36px; border: 1px solid rgba(224, 184, 98, 0.45); border-radius: 50%; font-size: 20px; }
.po-card { position: relative; display: flex; gap: 12px; align-items: flex-start; }
.po-card .sh-art { flex: none; width: 76px; height: 76px; }
.po-card .sh-ico { width: 56px; height: 56px; }
.po-card .sh-face { width: 76px; height: 76px; }
.po-card .po-off { top: -4px; left: -4px; font-size: 13px; line-height: 18px; padding: 0 6px; }
.po-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.po-ctx { font: 600 10px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fog); }
.po-name { font: 600 18px/1.15 var(--serif); color: var(--bone); }
.po-text { margin: 0; font: italic 14px/1.3 var(--serif); color: #d6c39a; }
.po-hurry { font-size: 13px; color: var(--fog); }
.po-hurry .po-clock { font-size: 22px; margin-left: 4px; }
.po-price { display: flex; align-items: baseline; gap: 10px; font-size: 20px; }
.po-price .po-was { font-size: 15px; }
.po-price .po-new .ico-xs { width: 18px; height: 18px; }
.po-why { color: var(--bad); font-size: 12px; }
.po-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.po-acts .btn { min-height: 36px; }
.po-acts .po-nav { min-width: 40px; font-size: 18px; }
.po-acts .po-buy { min-width: 110px; }
.po-dots { display: flex; justify-content: center; gap: 6px; }
.po-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(224, 184, 98, 0.3); }
.po-dots i.on { background: var(--gold); }

/* what is inside (each thing with its picture and how many), the value, the price on the button */
.po-in { display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; border: 1px solid rgba(224, 184, 98, 0.28); border-radius: 5px; background: rgba(0, 0, 0, 0.28); }
.po-in-h { font: 600 10px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fog); }
.po-in ul { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; }
.po-in li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--bone); }
.po-in-ico { width: 26px; height: 26px; flex: none; margin: 0; object-fit: contain; }
.po-in-q { color: var(--gold); font-variant-numeric: tabular-nums; }
.po-gain { align-self: center; padding: 1px 7px; border-radius: 9px; font: 800 12px/18px var(--sans); font-style: normal; color: #1b1308; background: linear-gradient(180deg, #f6d27a, #c99a3c); box-shadow: 0 0 8px rgba(232, 196, 106, 0.45); }
.po-acts .po-buy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 150px; font-size: 15px; }
.po-buy-n { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.po-buy-n .ico-xs { width: 15px; height: 15px; margin: 0; }

/* ---------- a phone held sideways: the fit's fluid sizes */
@media (max-height: 520px) {
  .po-in { padding: 4px 6px; gap: 2px; }
  .po-in li { font-size: var(--f-fs, 10px); gap: 4px; }
  .po-in-ico { width: calc(18px + 4 * var(--u, 1px)); height: calc(18px + 4 * var(--u, 1px)); }
  .po-gain { font-size: var(--f-fs, 10px); line-height: 14px; }
  .po-acts .po-buy { min-width: 110px; font-size: var(--f-fs-m, 11px); }
  #isle .po-isle { width: calc(160px + 30 * var(--u, 1px)); }
  .po-open { gap: 4px; padding: 3px; }
  .po-open .sh-art { width: calc(24px + 6 * var(--u, 1px)); height: calc(24px + 6 * var(--u, 1px)); }
  .po-open .sh-ico { width: calc(17px + 5 * var(--u, 1px)); height: calc(17px + 5 * var(--u, 1px)); }
  .po-open .sh-face { width: calc(24px + 6 * var(--u, 1px)); height: calc(24px + 6 * var(--u, 1px)); }
  .po-n { font-size: var(--f-fs, 10px); }
  .po-l { font-size: var(--f-fs, 10px); gap: 3px; }
  .po-was { font-size: var(--f-fs-xs, 8px); }
  .po-off { font-size: var(--f-fs-xs, 8px); line-height: 11px; }
  .po-x { width: calc(20px + 4 * var(--u, 1px)); }
  .po-box { gap: calc(4px + 4 * var(--u, 1px)); padding: calc(6px + 4 * var(--u, 1px)) calc(8px + 4 * var(--u, 1px)); width: min(520px, 100%); }
  .po-head b { font-size: var(--f-fs-t, 14px); }
  .po-x-big { width: var(--f-btn, 32px); height: var(--f-btn, 32px); }
  .po-card { gap: 8px; }
  .po-card .sh-art, .po-card .sh-face { width: calc(44px + 16 * var(--u, 1px)); height: calc(44px + 16 * var(--u, 1px)); }
  .po-card .sh-ico { width: calc(32px + 12 * var(--u, 1px)); height: calc(32px + 12 * var(--u, 1px)); }
  .po-card .po-off { font-size: var(--f-fs, 10px); line-height: 14px; }
  .po-name { font-size: var(--f-fs-h, 13px); }
  .po-text { font-size: var(--f-fs, 10px); }
  .po-hurry { font-size: var(--f-fs, 10px); }
  .po-hurry .po-clock { font-size: var(--f-fs-t, 14px); }
  .po-price { font-size: var(--f-fs-h, 13px); }
  .po-price .po-was { font-size: var(--f-fs, 10px); }
  .po-acts { gap: 4px; }
  .po-acts .btn { min-height: var(--f-tap, 32px); font-size: var(--f-fs, 10px); padding: 0 calc(6px + 4 * var(--u, 1px)); }
  .po-acts .po-buy { min-width: 80px; }
  .po-dots i { width: 5px; height: 5px; }
}
