/* The city's Rent panel and the payout moment (web/js/city/rent.js).
   prefers-reduced-motion: no stripes moving, no bursts, no flight. */
.rentp { position: absolute; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 360px; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.rentp[hidden] { display: none; }
.rp-top { display: flex; gap: 14px; align-items: center; }
.ring { position: relative; width: 92px; height: 92px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .trk { fill: none; stroke: color-mix(in srgb, var(--muted) 22%, transparent); stroke-width: 9; }
.ring .arc { fill: none; stroke: url(#ringGold); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 100 100; transition: stroke-dashoffset .25s linear; }
.ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-in b { font-family: "Lilita One", Fredoka, sans-serif; font-weight: 400; font-size: 21px; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.ring-in span { font-size: 10px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.rp-pool { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rp-lbl { font-size: 13px; color: var(--muted); font-weight: 500; }
.rp-lbl.sm { font-size: 12px; }
.pool { display: flex; align-items: center; gap: 6px; }
.pool svg { width: 26px; height: 26px; flex: none; }
.pool b { font-family: "Lilita One", Fredoka, sans-serif; font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: .5px; color: #f5b72f; -webkit-text-stroke: 1px #3a2a05; }
/* The gold gradient goes on each digit: a clipped background does not reach into the rolling columns. */
.pool b .odo-col span, .pool b .odo-s { background: linear-gradient(180deg, #ffe38a, #f5b72f 55%, #e08a1c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pool small, .rp-all small { font-weight: 600; color: var(--muted); }
.tank { height: 12px; border-radius: 99px; border: 2px solid var(--edge); overflow: hidden; background: color-mix(in srgb, var(--muted) 15%, transparent); }
.tank i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .8s ease;
  background: repeating-linear-gradient(-45deg, #ffcc4d 0 8px, #f5b72f 8px 16px); background-size: 22.6px 22.6px; animation: tankStripes 1.1s linear infinite; }
@keyframes tankStripes { to { background-position: 22.6px 0; } }
.rp-me { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 2px dashed color-mix(in srgb, var(--muted) 30%, transparent); }
.rp-me[hidden] { display: none; }
.rp-share { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.rp-share b { font-family: "Lilita One", Fredoka, sans-serif; font-weight: 400; font-size: 20px; color: var(--ink); }
.chips2 { display: flex; gap: 6px; }
.chip2 { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; border: 2px solid var(--edge); background: var(--gold); color: var(--gold-ink); white-space: nowrap; }
.chip2.alt { background: #b8a4ec; color: #231a4a; }
.bars { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); align-items: end; gap: 6px; height: 54px; }
.bars .bar { flex: 1; height: var(--h); min-height: 4px; border-radius: 5px 5px 2px 2px; border: 2px solid var(--edge); background: linear-gradient(180deg, #ffd766, #f5b72f); cursor: default; outline: none; }
.bars .bar.last { background: linear-gradient(180deg, #7de3ad, #2f9e6a); }
.bars .bar:focus-visible { box-shadow: 0 0 0 3px var(--coral); }
.bars .bar.grow { animation: barGrow .8s cubic-bezier(.2, 1.4, .4, 1) both; transform-origin: bottom; }
@keyframes barGrow { from { transform: scaleY(0); } }
.bars .bar.empty { height: 4px; min-height: 0; border: 0; background: color-mix(in srgb, var(--muted) 30%, transparent); border-radius: 2px; }
.rp-none { grid-column: 1 / -1; margin: 0; align-self: center; font-size: 13px; color: var(--muted); }
.bartip { position: absolute; transform: translate(-50%, -100%); padding: 4px 9px; border-radius: 8px; background: #2e2748; color: #fffaf0; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; z-index: 2; }
.bartip[hidden] { display: none; }
.rp-why { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.rp-why[hidden] { display: none; }
.rp-all { display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.rp-all b { margin-left: auto; font-family: "Lilita One", Fredoka, sans-serif; font-weight: 400; font-size: 20px; color: var(--ink); }
.rentp #feed { margin: 0; padding: 8px 0 0; border-top: 2px dashed color-mix(in srgb, var(--muted) 30%, transparent); list-style: none; display: flex; flex-direction: column; gap: 4px; }

/* The payout moment. */
.paycard { position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 30; padding: 22px 34px 20px; text-align: center; min-width: min(420px, calc(100vw - 32px));
  background: linear-gradient(135deg, #1b1f36, #241c44); color: #f3efff; border-color: #0d0f1c; box-shadow: 0 6px 0 #0d0f1c, 0 0 60px rgba(255, 204, 77, .35); animation: payIn .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes payIn { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } }
.pc-title { display: block; font-family: "Lilita One", Fredoka, sans-serif; font-weight: 400; font-size: 20px; letter-spacing: 6px; color: #ffcc4d; }
.pc-amt { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 4px; }
.pc-amt svg { width: 46px; height: 46px; }
.pc-n { font-family: "Lilita One", Fredoka, sans-serif; font-size: clamp(52px, 9vw, 84px); line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff3b0, #ffcc4d 50%, #f08a1c); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1.5px #3a2a05; }
.pc-amt small { font-family: "Lilita One", Fredoka, sans-serif; font-size: 24px; color: #ffcc4d; }
.pc-sub { margin: 0; font-size: 15px; color: #c9c3e6; }
.pc-sub a { color: #ffe08a; }
.pc-coins { position: absolute; left: 50%; top: 52%; width: 0; height: 0; pointer-events: none; }
.pc-coins i { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; opacity: 0; animation: coinOut 1.3s cubic-bezier(.15, .7, .3, 1) forwards; }
.pc-coins i svg { width: 100%; height: 100%; }
@keyframes coinOut { 0% { opacity: 1; transform: translate(0, 0) scale(.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); } }

body.onboarding .rentp { opacity: 0; pointer-events: none; }

/* The city's banner and ticker placement. */
.evb.city { position: absolute; left: 50%; transform: translateX(-50%); top: calc(16px + env(safe-area-inset-top, 0px)); }
.who .rtick { margin-top: 2px; }
@media (min-width: 721px) and (max-width: 1400px) { .evb.city { top: calc(156px + env(safe-area-inset-top, 0px)); } body.has-event .toast { top: calc(246px + env(safe-area-inset-top, 0px)); } }
@media (max-width: 720px) {
  /* Where the feed card was: above the buttons along the bottom. Compact: no chart, no feed. */
  .rentp { left: 12px; right: 12px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); padding: 10px 12px; gap: 8px; }
  .ring { width: 66px; height: 66px; }
  .ring-in b { font-size: 17px; }
  .ring-in span { display: none; }
  .pool b { font-size: 26px; }
  .rp-me { padding-top: 6px; }
  .bars, .rp-why, .rentp #feed { display: none; }
  .evb.city { top: auto; bottom: calc(var(--rentp-h, 200px) + 86px + env(safe-area-inset-bottom, 0px)); }
  .evb-live { font-size: 16px; letter-spacing: 2px; white-space: nowrap; }
  .evb-cta { min-height: 36px; padding: 0 12px; font-size: 14px; }
  .toast { bottom: calc(var(--rentp-h, 200px) + 96px + env(safe-area-inset-bottom, 0px)); }
  body.has-event .toast { bottom: calc(var(--rentp-h, 200px) + 164px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .tank i { animation: none; transition: none; }
  .ring .arc { transition: none; }
  .paycard { animation: none; }
  .pc-coins { display: none; }
  .bars .bar.grow { animation: none; }
}
