/* Corner Lot, in a browser.
 *
 * The game's look (game/scripts/Palette.cs, UiKit.cs): a sunny cartoon Chicago, warm paper
 * panels, near-black type, thick friendly buttons with a lip you can press. Everything the
 * city's screens draw is styled here by the node types in ui.js -- u-col, u-row, u-btn,
 * u-text s-heading -- so a panel ported from Godot looks like itself without any styling of
 * its own. No inline styles in markup: the content security policy forbids them. */

:root {
  --backdrop: #8ACB6E;
  --panel: #FFFCF4;
  --raised: #FFFFFF;
  --sunken: #F6EDDC;
  --divider: #E4D6BE;
  --outline: #3A312A;
  --ink: #332C26;
  --muted: #6E6155;
  --faint: #A0917F;
  --on-color: #2A231C;
  --positive: #22A85A;
  --negative: #E8453A;
  --warning: #FFB020;
  --info: #1F92E0;
  --property: #8B5FD6;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --hud-h: 76px;
  --tab-h: 48px;
  --side-w: clamp(340px, 32vw, 480px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body.game {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--backdrop);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

.hidden { display: none !important; }

a { color: #B87A00; }

.gem { width: 0.95em; height: 0.95em; vertical-align: -0.12em; margin-right: 0.08em; display: inline-block; }

/* ---- Buttons (UiKit.Button) --------------------------------------------------------- */

.btn, .u-btn {
  font: 700 14px/1.2 var(--font);
  border: 0;
  border-radius: 12px;
  padding: 11px 14px 8px;
  border-bottom: 3px solid rgba(0, 0, 0, 0.22);
  background: var(--sunken);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.06s ease, filter 0.12s ease, background 0.12s ease;
  touch-action: manipulation;
}
.btn:hover:not(:disabled), .u-btn:hover:not(:disabled) { filter: brightness(1.05); }
.btn:active:not(:disabled), .u-btn:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 1px; padding-top: 13px; }
.btn:disabled, .u-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary, .u-btn.v-primary { background: var(--warning); color: var(--on-color); border-bottom-color: #B87A00; }
.u-btn.v-danger { background: var(--negative); color: #fff; border-bottom-color: #A2261E; }
.u-btn.v-quiet { background: transparent; color: var(--muted); border-bottom-color: transparent; }
.u-btn.v-quiet:hover:not(:disabled) { background: rgba(0, 0, 0, 0.04); }
.u-btn.v-secondary { border-bottom-color: #C9B89A; }
.btn-big { font-size: 17px; padding: 15px 22px 12px; border-radius: 14px; }
.btn-small { font-size: 12px; padding: 7px 11px 5px; }

/* ---- The screens' building blocks (ui.js) --------------------------------------------- */

.u-col { display: flex; flex-direction: column; min-width: 0; }
.u-row { display: flex; flex-direction: row; align-items: center; min-width: 0; }
.u-row.va-top { align-items: flex-start; }
.u-row.va-bottom { align-items: flex-end; }
.u-row.wrap { flex-wrap: wrap; }
.u-grid { display: grid; }
.u-panel { display: flex; flex-direction: column; min-width: 0; }
.u-link { display: inline-flex; align-items: center; cursor: pointer; border-radius: 8px; padding: 2px 4px; margin: -2px -4px; }
.u-link:hover { background: rgba(0, 0, 0, 0.05); }
.u-link:focus-visible { outline: 2px solid var(--warning); }
.u-scroll { overflow: auto; min-height: 0; }
.u-spacer { flex: 1 1 auto; }
.grow { flex: 1 1 auto; min-width: 0; }
.u-col > .shrink { align-self: flex-start; }
.u-sep { border: 0; border-top: 1px solid var(--divider); margin: 6px 0; width: 100%; }
.u-vsep { width: 1px; align-self: stretch; background: var(--divider); min-height: 34px; }

.u-text { line-height: 1.35; overflow-wrap: anywhere; white-space: pre-line; min-width: 0; }
.u-text.nowrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.u-text.wrap { white-space: pre-line; }
.s-title { font-size: 27px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
/* A title is never cut short: it wraps. */
.u-text.s-title.nowrap { white-space: pre-line; overflow: visible; overflow-wrap: break-word; }
.s-heading { font-size: 18px; font-weight: 800; line-height: 1.25; }
.s-body { font-size: 14px; }
.s-small { font-size: 12px; color: var(--muted); }
.s-number { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.al-center { text-align: center; justify-content: center; }
.al-right { text-align: right; justify-content: flex-end; }

.u-meter { width: 100%; background: var(--sunken); border-radius: 999px; overflow: hidden; }
.u-meter .fill { height: 100%; border-radius: 999px; transition: width 0.4s ease; }

.u-chip {
  display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  color: var(--chip); border: 1px solid var(--chip);
  background: color-mix(in srgb, var(--chip) 22%, transparent);
}

.u-slider { width: 100%; accent-color: var(--warning); height: 22px; cursor: pointer; }

.u-input, .gate-form input {
  font: 600 14px var(--font); padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid var(--divider); background: var(--raised); color: var(--ink); min-width: 0;
}
.u-input:focus, .gate-form input:focus { outline: none; border-color: var(--warning); box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.25); }

.u-select {
  font: 700 14px var(--font); padding: 9px 10px; border-radius: 10px; border: 1.5px solid var(--divider);
  background: var(--raised); color: var(--ink); max-width: 100%;
}

.u-chart-canvas { width: 100%; display: block; border-radius: 7px; }
.ico { display: block; flex: none; }

.u-flowbar .fb-track { position: relative; height: 22px; background: var(--sunken); border-radius: 5px; overflow: hidden; }
.u-flowbar .fb-rev { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(34, 168, 90, 0.3); border-radius: 5px; }
.u-flowbar .fb-seg { position: absolute; top: 4px; bottom: 4px; }
.u-flowbar .fb-keep { background: rgba(34, 168, 90, 0.85); }

.swatch { width: 8px; height: 8px; border-radius: 2px; flex: none; }

/* ---- Loading ------------------------------------------------------------------------- */

.boot, .gate {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(255, 194, 51, 0.35), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 0%, rgba(63, 193, 232, 0.35), transparent 60%),
    linear-gradient(180deg, #A5DB86, #8ACB6E);
}
.boot-card, .gate-card {
  width: min(420px, 100%); background: var(--panel); border-radius: 22px; padding: 28px 26px 22px;
  box-shadow: 0 24px 60px rgba(40, 60, 20, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.04); text-align: center;
  animation: rise 0.5s cubic-bezier(.2, .8, .2, 1);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.boot-card h1, .gate-card h1 { margin: 12px 0 6px; font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.boot-card p { color: var(--muted); margin: 0 0 16px; }
.boot-mark { display: flex; justify-content: center; }
.boot-mark .mark {
  width: 58px; height: 58px; border-radius: 16px;
  background: linear-gradient(135deg, #FFD466, #E8A12C);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.14), 0 10px 24px rgba(232, 161, 44, 0.45);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-5px) rotate(-3deg); } }
.boot-bar { height: 10px; background: var(--sunken); border-radius: 999px; overflow: hidden; }
#boot-fill { height: 100%; width: 8%; background: linear-gradient(90deg, #FFC233, #FF9F1C); border-radius: 999px; transition: width 0.3s ease; }
.gate-lede { color: var(--muted); margin: 0 0 18px; line-height: 1.5; }
.gate-card .btn-big { width: 100%; }
.gate-or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 18px 0 12px; }
.gate-or::before, .gate-or::after { content: ""; flex: 1; height: 1px; background: var(--divider); }
.gate-form { display: flex; flex-direction: column; gap: 8px; }
.gate-small { margin: 16px 0 0; font-size: 12px; color: var(--faint); }
.notice { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 13px; text-align: left; background: #FDECEA; color: #A2261E; }
.notice.ok { background: #E6F6EC; color: #16703C; }

/* ---- Layout (Layout.cs) ---------------------------------------------------------------- */

.screen { position: fixed; inset: 0; display: flex; flex-direction: column; }

.hud { flex: none; background: var(--panel); padding: 12px 18px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05); z-index: 5; overflow: hidden; }
.hud .hud-row { flex-wrap: nowrap; }
.hud .s-number { font-size: 24px; }
.hud .hud-weather { font-size: 15px; font-weight: 700; }
.hud .hud-stat .s-small { font-size: 11px; letter-spacing: 0.06em; }

.stage { position: relative; flex: 1 1 auto; min-height: 0; }

.map-wrap { position: absolute; top: 12px; left: 12px; bottom: 12px; right: calc(var(--side-w) + 24px); border-radius: 14px; overflow: hidden; }
.map { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.map.dragging { cursor: grabbing; }

.panel {
  position: absolute; top: 12px; right: 12px; width: var(--side-w);
  bottom: calc(var(--tab-h) + 20px); background: var(--panel); border-radius: 12px;
  display: flex; flex-direction: column; box-shadow: 0 6px 18px rgba(40, 60, 20, 0.18); overflow: hidden;
}
.panel-body { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 12px 14px 16px 12px; scrollbar-width: thin; }
.sheet-head { display: none; align-items: center; justify-content: space-between; padding: 10px 12px 4px; }
.sheet-head h2 { margin: 0; font-size: 18px; font-weight: 800; }

.tabs {
  position: absolute; right: 12px; bottom: 12px; width: var(--side-w); height: var(--tab-h);
  display: flex; gap: 4px; padding: 6px; background: var(--panel); border-radius: 12px;
  box-shadow: 0 6px 18px rgba(40, 60, 20, 0.18); overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto; font: 800 13px var(--font); border: 0; border-radius: 9px; padding: 0 10px;
  background: var(--raised); color: var(--ink); cursor: pointer; position: relative; white-space: nowrap;
}
.tab:hover { background: var(--sunken); }
.tab.active { background: var(--warning); color: var(--on-color); }
.tab .badge { display: inline-block; margin-left: 4px; color: #B87A00; }
.tab.active .badge { color: var(--on-color); }
.tab.more { display: none; }

/* Medium and compact: the panels are a sheet over the map, the tabs along the bottom. */
@media (max-width: 899px) {
  :root { --tab-h: 56px; }
  .map-wrap { top: 6px; left: 6px; right: 6px; bottom: calc(var(--tab-h) + 6px + var(--safe-b)); }
  .tabs { left: 0; right: 0; bottom: 0; width: auto; border-radius: 0; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: calc(6px + var(--safe-b)); box-shadow: 0 -2px 0 rgba(0, 0, 0, 0.05); }
  .panel {
    left: 0; right: 0; width: auto; top: auto; bottom: calc(var(--tab-h) + var(--safe-b));
    height: min(62vh, calc(100% - var(--tab-h) - 10px)); border-radius: 18px 18px 0 0;
    transform: translateY(0); transition: transform 0.25s cubic-bezier(.2, .8, .2, 1);
  }
  .panel.closed { transform: translateY(110%); pointer-events: none; }
  .sheet-head { display: flex; }
}
@media (max-width: 899px) and (orientation: landscape) {
  .panel { height: min(78vh, calc(100% - var(--tab-h) - 10px)); }
}
.tabs.overflow .tab.extra { display: none; }
.tabs.overflow .tab.more { display: block; }
@media (max-width: 499px) {
  .map-wrap { top: 0; left: 0; right: 0; border-radius: 0; }
}

/* The HUD sheds what will not fit (HudBar.SetCompact). */
@media (max-width: 759px) {
  .hud { padding: 7px 10px; }
  .hud .hud-optional { display: none; }
  .hud .hud-row { gap: 12px !important; }
  .hud .s-number { font-size: 18px; }
  .hud .hud-stat { min-width: 0 !important; }
}
@media (max-width: 519px) {
  .hud .hud-worth, .hud .hud-wname, .hud .hud-linkword { display: none; }
  .hud .hud-row { gap: 14px !important; }
  .hud .hud-stat { flex: none; }
  .hud .hud-clock { flex: 0 1 auto; min-width: 0; }
  .hud .s-number { font-size: 17px; }
}

/* ---- Map controls ----------------------------------------------------------------------- */

.map-controls { position: absolute; left: 14px; top: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 3; }
.mbtn {
  font: 700 14px var(--font); background: var(--panel); color: var(--ink); border: 0; border-radius: 12px;
  padding: 9px 14px 7px; border-bottom: 3px solid #C9B89A; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.mbtn:hover { background: #fff; }
.mbtn:active { transform: translateY(2px); border-bottom-width: 1px; }
.mbtn:disabled { opacity: 0.45; }
.mbtn.square { width: 42px; padding: 7px 0 5px; font-size: 18px; }
.mbtn.on { background: var(--warning); color: var(--on-color); border-bottom-color: #B87A00; }
.zoom-row { display: flex; gap: 6px; align-items: center; }
.zoom-label { color: var(--muted); font-size: 12px; font-weight: 700; padding: 0 4px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }
.districts { background: rgba(255, 252, 244, 0.94); border-radius: 12px; padding: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
.districts .mbtn { box-shadow: none; }
.district-list { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.district-list button { font: 700 13px var(--font); text-align: left; background: transparent; border: 0; border-radius: 8px; padding: 6px 10px; color: var(--muted); cursor: pointer; min-width: 150px; }
.district-list button:hover { background: var(--sunken); color: var(--ink); }
.district-list button.mine { color: #C98500; }
@media (max-width: 499px) {
  .map-controls { left: 8px; top: 8px; }
  .zoom-label, #land-values { display: none; }
  .mbtn.square { width: 46px; height: 44px; }
}

.weather-change { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; pointer-events: none; z-index: 4; }
.weather-change canvas { opacity: 0; transform: scale(0.6); }
.weather-change.go canvas { animation: weatherchange 2.35s forwards; }
@keyframes weatherchange {
  0% { opacity: 0; transform: scale(0.6); }
  15% { opacity: 1; transform: scale(1.05); }
  20% { transform: scale(1); }
  45% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(3.2); }
}

/* ---- The business card (BusinessPopout) ----------------------------------------------- */

.card {
  position: fixed; z-index: 30; width: 430px; max-height: min(78vh, 660px); height: min(78vh, 660px);
  background: var(--panel); border-radius: 14px; border: 1px solid rgba(228, 214, 190, 0.9);
  display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(30, 40, 20, 0.35);
  animation: pop 0.22s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes pop { from { opacity: 0; transform: scale(0.94); } }
.card-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; background: var(--raised); border-radius: 14px 14px 0 0; cursor: move; user-select: none; touch-action: none; }
.card-titles { flex: 1 1 auto; min-width: 0; }
.card-title { font-size: 18px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title.mine { color: #E39A00; }
.card-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qbtn { background: transparent; border: 0; border-radius: 10px; font-size: 16px; width: 40px; height: 34px; color: var(--muted); cursor: pointer; }
.qbtn:hover { background: var(--sunken); color: var(--ink); }
#card-expand { display: none; }
.grabber { display: none; }
.card-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 12px 14px 14px; scrollbar-width: thin; }

@media (max-width: 499px) {
  .card { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; height: min(46vh, 420px); max-height: none; border-radius: 18px 18px 0 0; animation: slideup 0.25s cubic-bezier(.2, .8, .2, 1); padding-bottom: var(--safe-b); }
  .card.expanded { height: calc(100% - 60px); }
  .card-head { flex-wrap: wrap; border-radius: 18px 18px 0 0; cursor: ns-resize; padding-top: 6px; }
  .grabber { display: block; width: 100%; height: 12px; position: relative; }
  .grabber::after { content: ""; position: absolute; left: 50%; top: 4px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--divider); }
  #card-expand { display: block; }
}
@keyframes slideup { from { transform: translateY(100%); } }

/* ---- Toast ---------------------------------------------------------------------------- */

.toast {
  position: fixed; left: 50%; bottom: 44px; transform: translate(-50%, 20px); z-index: 150; max-width: min(560px, 92vw);
  background: #2B2520; color: #FFF7E6; padding: 11px 18px; border-radius: 14px; font-weight: 700; font-size: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); opacity: 0; pointer-events: none; transition: opacity 0.35s ease, transform 0.35s ease; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 899px) { .toast { bottom: calc(var(--tab-h) + 18px + var(--safe-b)); } }

/* ---- Overlays: cards the game raises over the map ------------------------------------ */

.overlays { position: fixed; inset: 0; z-index: 250; pointer-events: none; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; pointer-events: auto; }
.overlay.dim { background: rgba(30, 36, 20, 0.45); animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; } }
.overlay-card {
  width: min(var(--w, 460px), 100%); max-height: calc(100% - 20px); overflow-y: auto; background: var(--panel); border-radius: 18px;
  padding: 20px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); animation: pop 0.28s cubic-bezier(.2, .9, .3, 1.2);
}
.overlay-card.wide { --w: 620px; }
.overlay-card.full { --w: 760px; }
.overlay.corner { place-items: end end; padding: 0 16px calc(var(--tab-h) + 30px) 0; pointer-events: none; }
.overlay.corner .overlay-card { pointer-events: auto; --w: 360px; }
.overlay.top { place-items: start center; padding-top: calc(var(--hud-h) + 10px); pointer-events: none; }
.overlay.top .overlay-card { pointer-events: auto; }
@media (max-width: 899px) {
  .overlay.corner { place-items: end center; padding: 0 10px calc(var(--tab-h) + 16px + var(--safe-b)); }
}

/* The walkthrough's pointer. */
.coach-ring { position: fixed; border: 3px solid var(--warning); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(20, 24, 12, 0.45); pointer-events: none; z-index: 61; transition: all 0.3s ease; }
.coach-bubble { position: fixed; z-index: 62; width: min(320px, 92vw); background: var(--panel); border-radius: 14px; padding: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); }

/* Goal card: a touch of shine, because it is the one thing to be going on with. */
.goal-card { position: relative; overflow: hidden; }
.goal-card::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: shine 6s ease-in-out infinite;
}
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

.u-chart { width: 100%; display: block; border-radius: 7px; }
.u-icon, .u-face, .u-weather { display: block; flex: none; }

/* Cards the city raises (Overlays.cs). */
/* A modal is as tall as it needs to be, and the dimmed layer behind it scrolls. Capping the
 * card at 100vh doesn't work on a phone: in Safari that's the height behind the toolbars,
 * so the bottom of a tall card -- its buttons -- ends up under the address bar, out of reach.
 * Centred when it fits, from the top when it doesn't, clear of the notch and the home bar. */
.modal-card { box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); animation: pop 0.28s cubic-bezier(.2, .9, .3, 1.2); }
.overlay.dim {
  place-items: start center; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: max(16px, env(safe-area-inset-top)) 12px calc(24px + env(safe-area-inset-bottom));
}
.overlay.dim > .overlay-body { margin: auto 0; max-width: 100%; }
.float-card { width: min(380px, calc(100vw - 24px)); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28); animation: pop 0.28s cubic-bezier(.2, .9, .3, 1.2); }
.overlay.corner .overlay-body, .overlay.top .overlay-body { pointer-events: auto; }
.u-btn.tall { padding-top: 16px; padding-bottom: 13px; font-size: 16px; }
.big-number { font-size: 34px !important; }
.left-button { text-align: left; }
.big-input { font-size: 17px !important; padding: 12px 14px !important; }
.state-grid .u-btn { white-space: normal; }
.picker-scroll { max-height: min(420px, 50vh); }
@media (max-width: 620px) { .state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 720px) { .fit-grid { grid-template-columns: minmax(0, 1fr) !important; } }
.house-ad { background: linear-gradient(135deg, #FFF3CF, #FFE08A) !important; }
.u-swatch { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.u-staff { width: 100%; display: block; }
.u-btn.two-line { white-space: pre-line; line-height: 1.25; padding-top: 9px; padding-bottom: 6px; }
.u-icon.dimmed { opacity: 0.4; filter: grayscale(0.6); }
.flow-key { row-gap: 4px; }
.u-row.wrap, .u-row.wrap-row { flex-wrap: wrap; }
.u-btn.left-button { text-align: left; }
.u-grid > .u-btn { width: 100%; }

/* ---- Friends, account, a rival's card --------------------------------------------------- */
.u-panel.badge { align-items: center; justify-content: center; flex: none; padding: 0; }
.u-panel.badge > .u-text { line-height: 1; text-align: center; }
.fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; } .fs-14 { font-size: 14px; }
.fs-15 { font-size: 15px; } .fs-16 { font-size: 16px; } .fs-18 { font-size: 18px; }
.fs-20 { font-size: 20px; } .fs-22 { font-size: 22px; } .fs-24 { font-size: 24px; }
.fs-28 { font-size: 28px; } .fs-32 { font-size: 32px; } .fs-40 { font-size: 40px; }
.person-body { max-height: min(56vh, 560px); overflow-y: auto; padding-right: 10px; }
.person-body > * { flex-shrink: 0; }
.u-btn.star-button { font-size: 26px; padding: 2px 6px; color: #E39A00; min-width: 0; border-bottom-width: 0; background: transparent; }
.ref-code { letter-spacing: 0.08em; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.u-row.wrap { flex-wrap: wrap; }
.u-btn.lang-chip { font-size: 12px; padding: 6px 12px 4px; }
.linklike { all: unset; cursor: pointer; color: #B87A00; text-decoration: underline; text-underline-offset: 2px; }
.linklike.current { color: var(--ink); font-weight: 800; text-decoration: none; }
