/* Under the Counter (20 Nov 2026, player.js counterTab): the port's tax lady sells a tip.
   Lacquer and brass like the rest of the deck. Her picture lives on the stage, so the pane is all words:
   her greeting, then one card per tip with its worth and her price, or the tip itself once paid. */

/* The rail label is two short words longer than the others: let it wrap onto two lines. */
.dk-nav button.dk-t-counter span { white-space: normal; text-align: center; line-height: 1.05; }

.uc { display: flex; flex-direction: column; gap: clamp(.55rem, 1.2vw, .95rem); }
.uc-head { padding: .2rem .2rem 0; }
.uc-head small { display: block; font: .72rem/1.2 var(--special); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-hi); }
.uc-head h2 { margin: .1rem 0 .45rem; font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.9rem); color: var(--deck-ivory);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .65); }
.uc-head > p { margin: .45rem 0 0; font-size: .92rem; }

.uc-say { position: relative; margin: 0; padding: .7rem 1rem .7rem 1.2rem; font: italic 1.02rem/1.45 var(--text, serif); color: var(--deck-ivory);
  background: linear-gradient(100deg, color-mix(in srgb, var(--deck-oxblood) 34%, transparent), color-mix(in srgb, var(--deck-night) 40%, transparent));
  border-left: 3px solid var(--deck-brass); border-radius: 0 calc(var(--radius) * 1.2) calc(var(--radius) * 1.2) 0;
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, .08); }

.uc-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: clamp(.55rem, 1.2vw, .95rem); }
.uc-card { display: flex; flex-direction: column; gap: .7rem; padding: .85rem 1rem 1rem;
  background: radial-gradient(ellipse at 15% 0%, color-mix(in srgb, var(--deck-brass) 14%, transparent), transparent 60%), var(--glass);
  border: 1px solid var(--edge); border-radius: calc(var(--radius) * 1.4);
  box-shadow: 0 14px 34px -18px #000, inset 0 1px 0 rgba(255, 236, 190, .08); }
.uc-card header h3 { margin: 0; font-family: var(--head, var(--serif)); font-size: 1.15rem; color: var(--brass-hi); }
.uc-card header p { margin: .2rem 0 0; font-size: .86rem; color: var(--muted); }
.uc-card.bought { border-color: var(--edge-hi); box-shadow: 0 0 26px -10px color-mix(in srgb, var(--deck-brass) 70%, transparent), 0 14px 34px -18px #000; }
.uc-card.none { opacity: .86; }

.uc-price { display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem; flex-wrap: wrap;
  padding: .6rem .75rem; border: 1px dashed var(--edge); border-radius: var(--radius); }
.uc-price span { font-size: .95rem; color: var(--deck-ivory); }
.uc-price b { display: flex; flex-direction: column; align-items: flex-end; font: 700 1.45rem/1.05 var(--serif); color: var(--brass-hi); }
.uc-price b small { font: .66rem/1.2 var(--special); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.uc-none { display: flex; flex-direction: column; gap: .2rem; margin: 0; }
.uc-none small { color: var(--muted); }

.uc-act { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin-top: auto; }
.uc-act button { flex: 1 1 auto; min-height: 2.6rem; }
.uc-short { color: var(--blood-hi); font-size: .85rem; }

.uc-dl { display: grid; gap: .1rem; margin: 0; }
.uc-dl > div { display: flex; justify-content: space-between; gap: .8rem; padding: .32rem 0; border-bottom: 1px solid var(--rule); }
.uc-dl dt { color: var(--muted); font-size: .9rem; }
.uc-dl dd { margin: 0; text-align: right; font-size: .95rem; color: var(--deck-ivory); }
.uc-dl .uc-big dd { font-size: 1.2rem; }
.uc-dl .up dd b { color: var(--jade-hi); }
.uc-dl .down { color: var(--blood-hi); }

.uc-note { margin: 0; font-size: .8rem; }

@media (orientation: portrait) {
  .uc-offers { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Under the Counter as a shop on Port > Newspaper (21 Nov 2026, player.js counterPanel)
   The left column is the news with this beneath it. The tax lady's portrait fills the shop window, fading in from
   the right behind the brass counter ledge. Until you pay for a tip she stands back, dim and sepia; once you
   have, she leans in and the light comes up. The offers and reveals below are the same cards as ever. */
.pt-col-news { display: flex; flex-direction: column; gap: var(--pt-gap); min-width: 0; align-self: start; }
.pt-col-news > .card { margin: 0; min-width: 0; }
.deck .pt .card.uc-shop { padding: 0; overflow: hidden; gap: 0; border-color: var(--edge-hi); }

.uc-shop .uc-window { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  min-height: 12.5rem; padding: .9rem 1.1rem 1rem;
  background: radial-gradient(ellipse at 85% 20%, color-mix(in srgb, var(--deck-brass) 20%, transparent), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--deck-night) 88%, #000), color-mix(in srgb, var(--deck-oxblood) 40%, var(--deck-night))); }
.uc-shop .uc-lady { position: absolute; z-index: -1; top: 0; right: 0; width: 64%; height: 100%; object-fit: cover; object-position: 50% 12%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%); mask-image: linear-gradient(90deg, transparent 0, #000 42%);
  filter: sepia(.4) saturate(.75) brightness(.6); transform: scale(1) translateX(0); transform-origin: 72% 28%;
  transition: filter .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
/* The window's lower edge sinks into the ledge, so she stands behind the counter. */
.uc-shop .uc-window::after { content: ""; position: absolute; z-index: -1; inset: auto 0 0 0; height: 38%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(8, 5, 3, .82)); }
.uc-shop.leaning .uc-lady { filter: none; transform: scale(1.1) translateX(-4%); }

.uc-shop .uc-head { max-width: min(100%, 24rem); padding: 0; }
.uc-shop .uc-head > p { text-shadow: 0 1px 8px #000; }
.uc-shop.nopic .uc-window { min-height: 0; }
.uc-shop.nopic .uc-head { max-width: none; }

/* The counter: a brass edge, then the polished top the offers sit on. */
.uc-shop .uc-ledge { height: .6rem; border-top: 1px solid var(--brass-hi);
  background: linear-gradient(180deg, var(--brass-hi), var(--deck-brass) 45%, color-mix(in srgb, var(--deck-brass) 35%, #1b1008));
  box-shadow: 0 7px 14px -6px #000; }
.uc-shop .uc-bench { display: flex; flex-direction: column; gap: clamp(.55rem, 1.2vw, .85rem); padding: .85rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, .34), transparent 45%); }
.uc-shop .uc-card { background: radial-gradient(ellipse at 15% 0%, color-mix(in srgb, var(--deck-brass) 12%, transparent), transparent 60%), color-mix(in srgb, var(--deck-night) 70%, var(--glass)); }

@media (prefers-reduced-motion: reduce) { .uc-shop .uc-lady { transition: none; } }
.pt-paper > .pt-col-news { grid-area: news; }
