/* keep2 + dwstall2 (2026-10-15): Keep taxes card, Village Projects rows, Dwarf Stall scene. */
.keep-tax { margin: 6px 0 12px; padding: 10px 12px; border-radius: 14px; border: 2px solid #c9a24a; background: linear-gradient(170deg, rgba(248,236,208,.96), rgba(232,211,166,.96)); color: #3e2616; }
.kt-head { display: flex; align-items: center; gap: 8px; } .kt-head b { font: 700 1.15rem Georgia, serif; } .kt-head span { margin-left: auto; font-weight: 700; color: #7a4a14; }
.kt-gauge { position: relative; height: 22px; margin: 8px 0 6px; border-radius: 11px; background: #3a2614; border: 2px solid #8b5a2b; overflow: hidden; }
.kt-gauge i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #d9a93c, #f3cf62); }
.kt-gauge.full i { background: linear-gradient(90deg, #e08a2c, #ffb347); }
.kt-gauge span { position: relative; display: block; text-align: center; font: 700 .85rem/18px system-ui, sans-serif; color: #fff7e0; text-shadow: 0 1px 2px #000; }
.kt-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; font-size: .9rem; }
.kt-fine { margin: 6px 0 0; font-size: .8rem; color: #5a3a14; }
.kp-title { margin: 12px 0 4px; font: 700 1.05rem Georgia, serif; color: #6a3c10; }
.kp-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(139,90,43,.3); }
.kp-name { flex: 1; min-width: 0; } .kp-name b { display: block; font-size: .95rem; } .kp-name small { color: #6a4a24; }
.kp-cost { display: flex; gap: 6px; align-items: center; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.kp-done, .kp-busy { font-weight: 700; color: #3f7a2a; min-width: 70px; text-align: center; } .kp-busy { color: #8b5a2b; }
/* Dwarf Stall scene: approved dwarf shop A behind, shopkeeper A in the bubble, deals on parchment */
.dw-stage .dw-bg { position: absolute; inset: 0; background: url("assets/story/scenes/scene_dwarf_shop.png") 22% 50% / cover no-repeat; filter: saturate(1.05) brightness(.95); }
.dw-say { position: absolute; z-index: 3; left: 4%; top: 12%; display: flex; align-items: center; gap: 8px; max-width: 300px; padding: 6px 12px 6px 6px; border-radius: 16px;
  background: #fbf3df; border: 2px solid #c9a24a; color: #3e2616; box-shadow: 0 6px 16px rgba(10,6,2,.45); animation: psBob 4s ease-in-out infinite; }
.dw-say img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid #8b5a2b; }
.dw-say p { margin: 0; font: 600 .95rem/1.2 Georgia, serif; }
.dw-say::after { content: ""; position: absolute; left: 34px; bottom: -9px; width: 14px; height: 14px; background: #fbf3df; border-right: 2px solid #c9a24a; border-bottom: 2px solid #c9a24a; transform: rotate(45deg); }
.dw-card { padding: 10px 14px 12px; border-radius: 16px; border: 2px solid #c9a24a; background: linear-gradient(170deg, rgba(248,236,208,.96), rgba(232,211,166,.96)); color: #3e2616; box-shadow: 0 10px 30px rgba(10,6,2,.55); }
.dw-card h2 { margin: 2px 0 6px; font: 700 1.3rem Georgia, serif; color: #5a3410; }
.dw-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid rgba(139,90,43,.3); }
.dw-deal { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-weight: 700; font-size: .95rem; }
.dw-amt { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.dw-arrow { color: #8b5a2b; font-size: 1.1rem; }
.dw-act { display: flex; flex-direction: column; align-items: center; gap: 2px; } .dw-act small { font-size: .72rem; color: #6a4a24; }
.dw-fine { margin: 6px 0 0; font-size: .8rem; color: #5a3a14; }
@media (min-width: 821px) { .dw-say { left: 30%; top: 16%; } }
.kp-or { text-align: center; font: italic 700 .85rem Georgia, serif; color: #8b5a2b; margin: -2px 0; }
.kp-off { opacity: .45; }
/* keep5: the Keep scene (town painting blurred behind the keep landmark) + steward-spoken offers */
.kp-stage .kp-bg { position: absolute; inset: -20px; background: url("assets/town/scene/village_landscape.png") 48% 70% / 260% auto no-repeat; filter: blur(6px) brightness(.8) saturate(1.05); }
.kp-stage .kp-mark { position: absolute; inset: 0; background: url("assets/town/scene/village_landscape.png") 48% 70% / 260% auto no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 30% 38% at 32% 52%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 30% 38% at 32% 52%, #000 55%, transparent 100%); }
.kp-steward { top: 10%; }
@media (min-width: 821px) { .kp-steward { left: 6%; top: 10%; } }
.kp-card { position: relative; }
.kp-job { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; margin: 6px 0; border-radius: 10px; background: #efe0bb; border: 1px solid #c9a24a; font-size: .9rem; }
.kp-offer { margin: 8px 0 12px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.35); border: 1px solid #d8bf86; }
.kp-say { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 14px; background: #fbf3df; border: 2px solid #c9a24a; margin-bottom: 8px; }
.kp-say img { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid #8b5a2b; }
.kp-say p { margin: 0; font: 600 .92rem/1.25 Georgia, serif; color: #3b2a14; }
.kp-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.kp-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 8px 10px; border-radius: 10px; border: 2px solid #c9a24a;
  background: linear-gradient(#fff6dc, #f1dca6); color: #3b2a14; cursor: pointer; font: inherit; }
.kp-opt:hover:not([disabled]) { filter: brightness(1.05); border-color: #a0782c; }
.kp-opt[disabled] { opacity: .55; cursor: default; }
.kp-opt b { font-size: .9rem; line-height: 1.2; }
.kp-opt small { color: #6b4a1a; font-size: .8rem; }
.kp-opt .kp-cost { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 700; font-size: .85rem; }
.kp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: .85rem; color: #5a4020; }
.kp-swap { padding: 4px 10px; font-size: .8rem; min-height: 0; }
#btnHeroes .pouch-icon { display: none; }
.kp-card > h2 { color: #fbf3df; text-shadow: 0 2px 6px rgba(0,0,0,.7); }
/* keep6: inside the Keep. The throne hall painting (keep_1) in a 16:9 room box that covers the stage; all life is pinned in % of the painting. */
.kp-inside { container-type: size; background: #1d140c; }
.kp-room { position: absolute; top: 50%; left: 34%; width: max(100cqw, 177.78cqh); aspect-ratio: 16 / 9; transform: translate(-34%, -50%); }
.kp-hall { position: absolute; inset: 0; background: url("assets/town/keep/throne_hall_1920.webp") center / 100% 100% no-repeat; }
@media (max-width: 820px) { .kp-hall { background-image: url("assets/town/keep/throne_hall_960.webp"); } .kp-room { left: 38%; transform: translate(-38%, -50%); } }
.kp-room > div { position: absolute; }
.kp-hearth { left: 0; top: 46%; width: 15%; height: 30%; border-radius: 50%; mix-blend-mode: screen; will-change: opacity;
  background: radial-gradient(ellipse at 50% 70%, rgba(255,150,50,.55), rgba(255,110,30,.2) 45%, rgba(255,90,20,0) 70%); animation: kpFire 1.6s steps(6) infinite alternate; }
.kp-hearth::after { content: ""; position: absolute; left: -10%; top: 60%; width: 140%; height: 70%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,140,50,.18), rgba(255,140,50,0) 70%); animation: kpFire 2.3s steps(5) infinite alternate-reverse; }
.kp-candle { width: 7%; height: 12%; border-radius: 50%; mix-blend-mode: screen; will-change: opacity;
  background: radial-gradient(circle, rgba(255,214,140,.5), rgba(255,190,90,0) 65%); animation: kpCandle 1.1s steps(4) infinite alternate; }
.kp-c1 { left: 47.5%; top: 55%; } .kp-c2 { left: 58%; top: 50%; width: 6%; animation-duration: 1.4s; animation-delay: -.5s; }
.kp-sun { left: 16%; top: 4%; width: 24%; height: 86%; mix-blend-mode: screen; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,236,190,.22), rgba(255,236,190,.08) 55%, rgba(255,236,190,0) 85%); clip-path: polygon(20% 0, 55% 0, 100% 100%, 30% 100%); }
.kp-dust { left: 18%; top: 10%; width: 22%; height: 70%; overflow: hidden; clip-path: polygon(15% 0, 55% 0, 100% 100%, 30% 100%); }
.kp-dust i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: rgba(255,240,205,.7); opacity: 0; will-change: transform, opacity; animation: kpDust 9s linear infinite; }
.kp-dust i:nth-child(1) { left: 25%; top: 10%; } .kp-dust i:nth-child(2) { left: 45%; top: 30%; animation-delay: -1.2s; animation-duration: 11s; }
.kp-dust i:nth-child(3) { left: 35%; top: 55%; animation-delay: -2.5s; } .kp-dust i:nth-child(4) { left: 60%; top: 40%; animation-delay: -3.7s; animation-duration: 12s; }
.kp-dust i:nth-child(5) { left: 50%; top: 70%; animation-delay: -5s; width: 2px; height: 2px; } .kp-dust i:nth-child(6) { left: 70%; top: 65%; animation-delay: -6.3s; animation-duration: 10s; }
.kp-dust i:nth-child(7) { left: 30%; top: 25%; animation-delay: -7.1s; width: 2px; height: 2px; } .kp-dust i:nth-child(8) { left: 80%; top: 85%; animation-delay: -8s; }
@keyframes kpFire { 0% { opacity: .65; } 40% { opacity: 1; } 70% { opacity: .8; } 100% { opacity: .95; } }
@keyframes kpCandle { 0% { opacity: .55; } 50% { opacity: .9; } 100% { opacity: .7; } }
@keyframes kpDust { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: .8; } 80% { opacity: .6; } 100% { transform: translate(18px, 40px); opacity: 0; } }
/* future cut-out slots (guard by the window arch, servant at the hearth, steward seated at the ledger desk); empty slots show nothing */
.kp-slot { pointer-events: none; background: center bottom / contain no-repeat; }
.kp-slot:empty:not([style]) { display: none; }
.kp-slot-guard { left: 25%; top: 30%; width: 9%; height: 50%; }
.kp-slot-servant { left: 9%; top: 48%; width: 9%; height: 40%; }
.kp-slot-steward { left: 46%; top: 42%; width: 13%; height: 34%; }
/* steward bubble sits over the ledger desk, tail down to the open book */
.kp-inside .kp-steward { left: 41%; top: 40%; right: auto; transform: translate(-30%, -100%); max-width: 260px; animation: none; }
@media (prefers-reduced-motion: reduce) { .kp-inside *, .kp-inside *::after { animation: none !important; } }
/* keep8: human throne hall with the crew painted in; steward lines in a caption bar like the temple's */
.kp-crew .kp-hall { background-image: url("assets/town/keep/throne_hall_crew_nogold_1920.webp"); }
.kp-elf .kp-hall { background-image: url("assets/town/keep/throne_hall_elf_nogold_1920.webp"); }
.kp-ork .kp-hall { background-image: url("assets/town/keep/throne_hall_ork_nogold_1920.webp"); }
@media (max-width: 820px) { .kp-elf .kp-hall { background-image: url("assets/town/keep/throne_hall_elf_nogold_960.webp"); } .kp-ork .kp-hall { background-image: url("assets/town/keep/throne_hall_ork_nogold_960.webp"); } }
@media (max-width: 820px) { .kp-crew .kp-hall { background-image: url("assets/town/keep/throne_hall_crew_nogold_960.webp"); } }
.kp-caption { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 18px; margin: 0; width: max-content; max-width: min(640px, 92vw); padding: 8px 14px; border-radius: 8px;
  background: rgba(20,13,6,.78); color: #f4e6c8; font: 15px/1.35 Georgia, serif; text-align: center; }
@media (min-width: 821px) { .kp-caption { left: 31%; max-width: min(560px, 54vw); } }
@media (max-width: 820px) { .kp-caption { font-size: 14px; bottom: 56px; } }


/* ==========================================================
   keep_collect_v1 (Brandon pt1664u): coin collect icon on Keep
   Reuses ArenaIcon coin (approved currency icon) — no new art.
   ========================================================== */
.kp-tax-collect {
  display: flex !important; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin: 8px 0 6px; min-height: 48px; font-size: 1.05rem; font-weight: 800;
}
.kp-tax-collect .cur-ico { flex: none; }
.kp-tax-collect.filling, .kp-tax-collect:disabled {
  opacity: 1; filter: none;
  background: rgba(62, 38, 22, 0.12) !important;
  color: #6b4a2a !important;
  border: 2px dashed rgba(139, 90, 43, 0.5) !important;
}
.kp-tax-collect.ready {
  box-shadow: 0 0 0 3px rgba(255, 213, 106, 0.55), 0 6px 16px rgba(0,0,0,0.25);
}
.kt-sub { margin: 0 0 4px; font-size: .88rem; color: #5a3a14; }
.kp-collect-fab {
  /* Sit on the hall painting ABOVE the mobile sheet; z above #overlayBody (4) */
  position: absolute; z-index: 8; right: 14px; top: 12%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; width: 78px; height: 78px; padding: 6px;
  border-radius: 50%; border: 3px solid #c9a24a;
  background: linear-gradient(165deg, #fff6dc, #e8c56a 55%, #c9962e);
  color: #3e2616; box-shadow: 0 6px 18px rgba(0,0,0,.45);
  pointer-events: auto; cursor: pointer; font: inherit;
}
.overlay-card.prod-scene > .kp-collect-fab { /* when appended on card */ }
.kp-collect-fab .cur-ico { width: 36px !important; height: 36px !important; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.kp-collect-fab .kp-collect-amt { font: 800 0.95rem system-ui, sans-serif; line-height: 1; color: #2a1808; }
.kp-collect-fab .kp-collect-lab { font: 800 0.68rem system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #5a3a14; }
.kp-collect-fab.ready {
  animation: kpCollectGlow 1.2s ease-in-out infinite;
}
.kp-collect-fab:disabled, .kp-collect-fab:not(.ready) {
  background: linear-gradient(165deg, #d7c8a8, #b8a078);
  border-color: #8a7350; opacity: .92; animation: none;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.kp-collect-fab:disabled .kp-collect-amt { color: #6b5640; }
@keyframes kpCollectGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 213, 106, .55), 0 6px 18px rgba(0,0,0,.45); }
  50% { box-shadow: 0 0 0 6px rgba(255, 213, 106, .9), 0 8px 22px rgba(0,0,0,.5); }
}
@media (max-width: 820px) {
  .kp-collect-fab { right: 12px; top: 10%; width: 72px; height: 72px; }
}
@media (min-width: 821px) {
  .kp-collect-fab { right: calc(420px + 28px); top: auto; bottom: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .kp-collect-fab.ready { animation: none; box-shadow: 0 0 0 4px rgba(255, 213, 106, .85), 0 8px 22px rgba(0,0,0,.5); }
}


/* ==========================================================
   keep_map_coin_v1 + keep_gold_modest_v1 (Brandon pt1683u)
   Town-map coin bubble over Keep (same ready cue idea as Farm).
   Modest gold: CSS covers hide painted overflow; tiny peek of the
   same approved throne_hall coins, scaled to taxes held. No new art.
   ========================================================== */
.pin.hotspot .pin-coin-bubble {
  position: absolute;
  left: 50%;
  top: -6px;
  transform: translate(-50%, -100%);
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 52px;
  height: 52px;
  padding: 4px 2px 2px;
  border-radius: 50%;
  border: 2.5px solid #c9a24a;
  background: linear-gradient(165deg, #fff6dc, #e8c56a 55%, #c9962e);
  color: #2a1808;
  box-shadow: 0 4px 12px rgba(0,0,0,.45), 0 0 0 2px rgba(255, 213, 106, .55);
  pointer-events: auto;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  animation: kpMapCoinPulse 1.3s ease-in-out infinite;
}
.pin.hotspot .pin-coin-bubble[hidden] { display: none !important; }
.pin.hotspot .pin-coin-bubble .cur-ico {
  width: 26px !important;
  height: 26px !important;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.35));
}
.pin.hotspot .pin-coin-bubble .pcb-amt {
  font: 800 0.72rem system-ui, sans-serif;
  color: #2a1808;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
@keyframes kpMapCoinPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(0,0,0,.45), 0 0 0 2px rgba(255, 213, 106, .5); transform: translate(-50%, -100%) scale(1); }
  50% { box-shadow: 0 6px 16px rgba(0,0,0,.5), 0 0 0 5px rgba(255, 213, 106, .85); transform: translate(-50%, -100%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .pin.hotspot .pin-coin-bubble { animation: none; }
}

/* Modest gold pile inside Keep — sample desk/floor from same approved hall art to hide overflow */
.kp-gold-modest {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
/* qa13: gold pile overlays (Concord Art, gold-free halls): one img per tier, % of the 16:9 room, scale 1.0 or less about the manifest origin. */
.kp-gold-img { position: absolute; display: block; max-width: none; pointer-events: none; user-select: none; }
.kp-crew .kp-gold-small { left: 54.896%; top: 65.185%; width: 6.823%; height: 6.389%; transform-origin: 50.0% 79.7%; }
.kp-crew .kp-gold-medium { left: 52.24%; top: 77.037%; width: 10.469%; height: 9.907%; transform-origin: 50.0% 86.9%; }
.kp-elf .kp-gold-small { left: 55.104%; top: 65.278%; width: 6.823%; height: 6.389%; transform-origin: 50.0% 79.7%; }
.kp-elf .kp-gold-medium { left: 52.188%; top: 77.13%; width: 10.469%; height: 9.907%; transform-origin: 50.0% 86.9%; }
.kp-ork .kp-gold-small { left: 56.25%; top: 67.222%; width: 6.823%; height: 6.389%; transform-origin: 50.0% 79.7%; }
.kp-ork .kp-gold-medium { left: 52.396%; top: 81.204%; width: 10.469%; height: 9.907%; transform-origin: 50.0% 86.9%; }
/* which piles show: the treasury tier (empty/low show none; mid = small pile; high = small + medium) */
.kp-gold-small { transform: scale(0.95); }
.kp-gold-modest.high .kp-gold-small, .kp-gold-modest.high .kp-gold-medium { transform: scale(1); }
.kp-gold-modest.mid .kp-gold-medium { display: none; }
/* keepbadge1: no map coin bubble, no Keep coin FAB */
.pin.hotspot .pin-coin-bubble, .kp-collect-fab { display: none !important; }
/* armyqty1: Barracks 1/5/10/Max row */
.army-qty { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 6px; }
.army-qty .aq-btn { min-height: 38px; padding: 4px 2px; font-weight: 800; font-size: .9rem; white-space: nowrap; }
.army-qty .aq-btn.on { background: linear-gradient(#ffe9a8, #e2b552); border-color: #8b5a2b; color: #2a1808; box-shadow: 0 0 0 2px rgba(255,213,106,.7); }
/* hud1 (Brandon 2026-11-04): Ruler level + XP bar live in the top-left block with the portrait and name */
.slim-bar .who-block { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; flex: 0 1 auto; }
.slim-bar .who-block .avatar-name { display: block !important; max-width: 8em; padding: 0 6px; font-size: .78rem; line-height: 1.25; }
.slim-bar .who-block .avatar-name[hidden] { display: none !important; }
.slim-bar .who-block .ruler-pill { order: 0 !important; flex: 0 0 auto !important; max-width: none; padding: 1px 6px 1px 5px !important; gap: 4px; }
@media (orientation: portrait) and (max-width: 699px) {
  .town-home .slim-bar .who-block { order: 2; max-width: 34vw; }
  .town-home .slim-bar .who-block .avatar-name { font-size: .7rem; max-width: 100%; padding: 0 5px; }
  .town-home .who-block .ruler-pill .ruler-tag { font-size: .66rem; }
  .town-home .who-block .ruler-pill strong { font-size: .74rem; }
  .town-home .who-block .ruler-pill .ruler-bar { width: 40px; }
  .town-home .who-block .ruler-pill .ruler-xp { display: none; }
}

/* rankbar1 (Brandon 2026-11-12, repeat ask): the Ruler rank bar sits on the LEFT of the top HUD, right beside the portrait (it had slipped back to the right when town.html was overwritten from a stale copy). Phone portrait: row 1 = home | portrait | Ruler bar | settings | menu; row 2 = coins | Heroes; row 3 = basics | Goals | Bags. */
.slim-bar .who-block { flex: 0 0 auto; }
.slim-bar .who-block .ruler-pill .ruler-bar { min-width: 36px; }
@media (orientation: portrait) and (max-width: 699px) {
  .town-home .slim-bar .back-town { order: 1; }
  .town-home .slim-bar .avatar-chip { order: 2; }
  .town-home .slim-bar .who-block { order: 3; flex: 1 1 calc(100% - 150px); min-width: 0; max-width: none; }
  .town-home .slim-bar .settings-wrap { order: 4; }
  .town-home .slim-bar .menu-wrap { order: 5; }
  .town-home .slim-bar .coin-pills { order: 6; flex: 1 1 calc(100% - 78px); min-width: 0; }
  .town-home .slim-bar #btnHeroes { order: 7; }
  .town-home .slim-bar .soft-strip { order: 8; flex: 1 1 calc(100% - 132px); min-width: 0; }
  .town-home .slim-bar #btnGoals { order: 9; }
  .town-home .slim-bar #btnPouch { order: 10; }
  .town-home .slim-bar #btnBless { order: 11; }
  .town-home .slim-bar .night-tag { order: 12; }
  .town-home .slim-bar .who-block .ruler-pill { width: 100%; box-sizing: border-box; }
  .town-home .who-block .ruler-pill .ruler-bar { flex: 1 1 auto; width: auto; min-width: 30px; }
}
/* rankbar1: short landscape phones have one nowrap row, so the Ruler pill drops its word and keeps level + bar */
@media (orientation: landscape) and (max-height: 500px) {
  .town-home .who-block .ruler-pill .ruler-tag { display: none; }
  .slim-bar .who-block .ruler-pill .ruler-bar { min-width: 30px; width: 30px; }
}

/* keepfix1 (Brandon pt1804u): the steward looked see-through. Causes: (1) the "modest gold" covers + coin peek are blurry zoomed crops of the same painting laid over the steward and his desk (gray ghost patches); (2) the Keep sheet was 96% opaque and sat over the whole painting, so the steward and the caption only showed as a ghost through the parchment. Fix: no gold covers (the painting's own chests show), an opaque sheet, and on a phone the painting sits above the sheet so the steward reads solid. */
.keep-tax { background: linear-gradient(170deg, #f8ecd0, #e8d3a6); }
@media (max-width: 820px) and (orientation: portrait) {
  .kp-stage.kp-inside { height: 50vw; bottom: auto; }
  .kp-stage.kp-inside .kp-room { top: 0; left: 50%; width: 100cqw; transform: translateX(-50%); }
  .kp-stage.kp-inside .kp-caption { bottom: 6px; font-size: 12px; padding: 4px 10px; max-width: 94vw; }
  /* medium pile: on the floor right of the desk, clear of the caption bar */
  .kp-stage.kp-inside .kp-gold-modest .kp-gold-medium { left: 81%; top: 76.6%; }
  .kp-card > h2 { position: fixed; top: 14px; left: 104px; margin: 0; z-index: 7; font-size: 1.35rem; }
  .kp-card { margin-top: 0 !important; }
  .kp-card .keep-tax { margin-top: calc(50vw - 66px + 6px); }
}
/* keep_boost1 (Brandon pt1804u): the total % of every boost, shown right next to a rate */
.boost-tag { color: #2f7a2a; font-weight: 800; font-size: .85em; white-space: nowrap; }
.kt-head .boost-tag { font-size: .75em; }
.kp-have { margin: 8px 0 2px; padding: 6px 10px; border-radius: 10px; background: rgba(47,122,42,.12); border: 1px solid rgba(47,122,42,.35); color: #2b4a1c; font-size: .85rem; }
