/* =========================================================================
   Genlings — styles (mobile-first, cute, all-ages)
   ========================================================================= */
:root {
  --bg1: #fff3e0; --bg2: #ffe4ef; --bg3: #e3f2fd;
  --card: #ffffff; --card-2: #fff8fb;
  --ink: #4a3b53; --ink-soft: #8a7a93; --line: #f0e2ea;
  --brand: #ff7aa8; --brand-d: #e85f92; --brand-l: #ffd6e6;
  --accent: #7c6cff; --accent-l: #e7e2ff;
  --good: #4caf7d; --warn: #ffab40; --bad: #ef6b7d;
  --gold: #ffcf4d; --silver: #cfd8dc; --bronze: #d69763;
  --shadow: 0 6px 20px rgba(120, 80, 110, 0.16);
  --radius: 20px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; max-width: 100%; overflow-x: hidden; }
body {
  font-family: "Baloo 2", "Quicksand", "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg1), var(--bg2) 55%, var(--bg3));
  background-attachment: fixed;
  overscroll-behavior-y: none;
  user-select: none;
}
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: .2px; }
button { font-family: inherit; cursor: pointer; border: none; }

#app { width: 100%; max-width: 560px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px calc(10px);
  background: rgba(255,255,255,.72); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { font-size: 20px; font-weight: 900; color: var(--brand-d); display: flex; align-items: center; gap: 6px; flex: none; }
.logo small { font-size: 11px; color: var(--ink-soft); font-weight: 700; }
.stat-pills { margin-left: auto; display: flex; gap: 5px; flex-wrap: nowrap; }
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 9px; font-weight: 800; font-size: 12.5px; box-shadow: var(--shadow); white-space: nowrap;
}
@media (max-width: 400px) { .logo small { display: none; } .logo { font-size: 18px; } .pill { padding: 5px 8px; font-size: 12px; } }
.pill .n { color: var(--brand-d); }
.pill.rep .n { color: var(--accent); }
.pill.day .n { color: var(--ink-soft); }

/* ---------- screen ---------- */
#screen { flex: 1; padding: 14px 14px 96px; }
.screen-title { font-size: 22px; margin: 4px 4px 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.screen-sub { color: var(--ink-soft); font-size: 13px; margin: -8px 4px 14px; font-weight: 600; }

.toolbar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.btn {
  background: var(--brand); color: #fff; border-radius: 14px; padding: 11px 15px;
  font-weight: 800; font-size: 14px; box-shadow: var(--shadow); transition: transform .08s ease, filter .1s;
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
}
.btn:active { transform: scale(.95); }
.btn:disabled { opacity: .5; filter: grayscale(.4); cursor: not-allowed; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.btn.accent { background: var(--accent); }
.btn.good { background: var(--good); }
.btn.warn { background: var(--warn); color: #6b4a00; }
.btn.bad { background: var(--bad); }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 12px; }
.btn.big { width: 100%; padding: 15px; font-size: 16px; }

/* ---------- creature grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px; position: relative; border: 1.5px solid var(--line); transition: transform .1s;
}
.card:active { transform: scale(.97); }
.card .art { width: 100%; aspect-ratio: 1/1; border-radius: 16px; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #fff, #f6eef4); display: grid; place-items: center; }
.genling-svg { width: 100%; height: 100%; display: block; }
.card .nm { font-weight: 800; font-size: 15px; margin: 8px 2px 2px; display: flex; align-items: center; gap: 4px; }
.card .meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-soft); font-weight: 700; flex-wrap: wrap; }
.chip { border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 800; color: #fff; }
.stars { color: var(--gold); letter-spacing: -1px; font-size: 12px; }
.ovr { margin-left: auto; background: var(--accent-l); color: var(--accent); border-radius: 8px; padding: 2px 7px; font-weight: 900; font-size: 12px; }
.badge-fav { position: absolute; top: 8px; right: 8px; font-size: 15px; }
.stagebar { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 8px; }
.stagebar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-l), var(--brand)); }

.empty { text-align: center; color: var(--ink-soft); padding: 40px 20px; font-weight: 700; }

.sortbar { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 2px 0 8px; -webkit-overflow-scrolling: touch; }
.sortbar::-webkit-scrollbar { display: none; }
.sortbar .sortlabel { font-size: 11px; font-weight: 800; color: var(--ink-soft); flex: none; text-transform: uppercase; letter-spacing: .5px; }
.sortchip { flex: none; background: var(--card); border: 1.5px solid var(--line); color: var(--ink-soft); border-radius: 999px;
  padding: 6px 11px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.sortchip.on { background: var(--accent); color: #fff; border-color: transparent; }
.sortchip:active { transform: scale(.94); }

/* ---------- stat bars ---------- */
.stat-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.stat-row .lbl { width: 70px; font-size: 12px; font-weight: 800; color: var(--ink-soft); }
.stat-row .bar { flex: 1; height: 12px; background: var(--line); border-radius: 8px; overflow: hidden; }
.stat-row .bar > i { display: block; height: 100%; border-radius: 8px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.stat-row .val { min-width: 34px; text-align: right; font-weight: 900; font-size: 13px; white-space: nowrap; }
.b-str > i { background: #ef7d7d; } .b-spd > i { background: #ffcf4d; }
.b-sta > i { background: #7fd18b; } .b-agi > i { background: #6fd0e0; }
.b-foc > i { background: #9b8cff; } .b-sma > i { background: #f39ad4; }

/* ---------- modal ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(70,50,70,.42);
  display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(3px);
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  background: linear-gradient(180deg, var(--card), var(--card-2)); width: 100%; max-width: 560px;
  border-radius: 26px 26px 0 0; padding: 8px 16px calc(20px + var(--safe-b));
  max-height: 92vh; overflow-y: auto; box-shadow: 0 -8px 30px rgba(120,80,110,.25);
  animation: slideup .28s cubic-bezier(.2,.9,.2,1);
}
@keyframes slideup { from { transform: translateY(100%); } }
.grip { width: 44px; height: 5px; background: var(--line); border-radius: 3px; margin: 6px auto 10px; }
.sheet-close { position: sticky; top: 0; float: right; z-index: 10; width: 36px; height: 36px; border-radius: 50%;
  background: var(--line); color: var(--ink); font-size: 15px; font-weight: 900; line-height: 1;
  display: grid; place-items: center; box-shadow: var(--shadow); margin: 0 0 -6px 8px; }
.sheet-close:active { transform: scale(.9); }
.sex { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 6px;
  font-size: 12px; font-weight: 900; color: #fff; vertical-align: middle; }
.sex.f { background: #ff6fae; } .sex.m { background: #4aa3ff; }
.sheet .hero { display: flex; gap: 14px; align-items: center; }
.sheet .hero .art { width: 130px; height: 130px; flex: none; border-radius: 20px;
  background: radial-gradient(circle at 50% 42%, #fff, #f4ecf3); overflow: hidden; box-shadow: var(--shadow); }
.sheet .hero .info h2 { font-size: 22px; }
.sheet .hero .info .row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.section-h { font-size: 13px; font-weight: 900; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .6px; margin: 18px 2px 8px; }
.ability { background: var(--card-2); border: 1.5px solid var(--line); border-radius: 14px; padding: 9px 11px; margin: 6px 0; }
.ability.good { border-left: 5px solid var(--good); }
.ability.bad { border-left: 5px solid var(--bad); }
.ability .an { font-weight: 800; font-size: 14px; }
.ability .ad { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.pedigree { display: flex; gap: 8px; font-size: 12px; color: var(--ink-soft); font-weight: 700; flex-wrap: wrap; }
.mini-par { display: flex; align-items: center; gap: 6px; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px 8px; }
.mini-par .art { width: 34px; height: 34px; border-radius: 8px; overflow: hidden; background: #f6eef4; }
.actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

/* ---------- kinship gauge ---------- */
.gauge { height: 14px; border-radius: 8px; background: linear-gradient(90deg,#7fd18b,#ffcf4d 55%,#ef6b7d); position: relative; margin: 8px 0; }
.gauge > .mark { position: absolute; top: -4px; width: 4px; height: 22px; background: var(--ink); border-radius: 2px; transform: translateX(-50%); box-shadow: 0 0 0 2px #fff; }
.kin-note { font-size: 12px; font-weight: 800; }

/* ---------- breed / selectors ---------- */
.parent-slots { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-bottom: 12px; }
.slot { background: var(--card); border: 2px dashed var(--brand-l); border-radius: 18px; padding: 10px; min-height: 150px; display: grid; place-items: center; text-align: center; }
.slot.filled { border-style: solid; border-color: var(--line); }
.slot .art { width: 90px; height: 90px; border-radius: 14px; overflow: hidden; background: #f6eef4; }
.slot .nm { font-weight: 800; margin-top: 6px; font-size: 14px; }
.heart { font-size: 26px; }
.chooser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-card { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 6px; text-align: center; position: relative; }
.mini-card.selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-l); }
.mini-card .ovr-badge { position: absolute; top: 4px; right: 4px; z-index: 2; background: var(--accent); color: #fff;
  border-radius: 8px; font-size: 11px; font-weight: 900; padding: 1px 6px; box-shadow: var(--shadow); }
.mini-card .toppick { position: absolute; top: -6px; left: -4px; z-index: 2; font-size: 17px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
.mini-card.rel-none { border-color: #8ed49b; }
.mini-card.rel-some { border-color: #f0c26a; }
.mini-card.rel-close { border-color: #ed8b98; }
.rel { display: inline-block; font-size: 9px; font-weight: 800; border-radius: 999px; padding: 1px 6px; margin-top: 3px; }
.rel.rel-none { background: #e3f6e6; color: #2e8b46; }
.rel.rel-some { background: #fff2d6; color: #a5761a; }
.rel.rel-close { background: #ffe0e4; color: #c0384a; }
.mini-card .art { width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f6eef4; }
.mini-card .nm { font-size: 11px; font-weight: 800; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- events / leagues ---------- */
.event-list, .league-list { display: flex; flex-direction: column; gap: 8px; }
.event-item, .league-item {
  display: flex; align-items: center; gap: 12px; background: var(--card); border: 1.5px solid var(--line);
  border-radius: 16px; padding: 12px; box-shadow: var(--shadow);
}
.event-item.selected, .league-item.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-l); }
.event-item .emoji { font-size: 30px; }
.event-item .ei-body { flex: 1; }
.event-item .ei-name { font-weight: 800; }
.event-item .ei-desc { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.event-item .ei-tag { font-size: 11px; font-weight: 800; color: var(--accent); }
.league-item.locked { opacity: .55; }
.league-item .li-name { font-weight: 800; }
.league-item .li-info { font-size: 12px; color: var(--ink-soft); font-weight: 700; }

/* ---------- results ---------- */
.medal-hero { text-align: center; padding: 8px 0 4px; }
.medal-hero .big { font-size: 64px; animation: pop .5s cubic-bezier(.2,1.5,.4,1); }
@keyframes pop { from { transform: scale(0) rotate(-30deg); } }
.standing { display: flex; align-items: center; gap: 8px; margin: 5px 0; font-weight: 700; font-size: 13px; }
.standing.me { background: var(--brand-l); border-radius: 10px; padding: 4px 8px; }
.standing .pos { width: 22px; font-weight: 900; color: var(--ink-soft); }
.standing .sbar { flex: 1; height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; }
.standing .sbar > i { display: block; height: 100%; background: linear-gradient(90deg,var(--accent-l),var(--accent)); }
.standing.me .sbar > i { background: linear-gradient(90deg,var(--brand-l),var(--brand)); }
.standing .snm { width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- codex ---------- */
.codex-card { background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.progbar { height: 12px; background: var(--line); border-radius: 8px; overflow: hidden; margin: 8px 0; }
.progbar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-l), var(--accent)); }
.tag-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; }
.tag.found { background: var(--accent-l); color: var(--accent); border-color: transparent; }
.tag.locked { color: #c9bcd0; }
.record-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; text-align: center; }
.record { background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.record .rv { font-size: 22px; font-weight: 900; }
.record .rl { font-size: 11px; color: var(--ink-soft); font-weight: 700; }

/* ---------- log ---------- */
.log { margin-top: 8px; }
.log-item { font-size: 12px; color: var(--ink-soft); font-weight: 600; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.log-item b { color: var(--ink); }

/* ---------- bottom nav ---------- */
.nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; max-width: 560px; margin: 0 auto;
  display: flex; background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding-bottom: var(--safe-b);
}
.nav button { flex: 1; background: none; padding: 9px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink-soft); font-weight: 800; font-size: 10px; }
.nav button .ic { font-size: 21px; line-height: 1; }
.nav button.active { color: var(--brand-d); }
.nav button.active .ic { transform: translateY(-2px); filter: drop-shadow(0 3px 4px rgba(232,95,146,.4)); }

/* ---------- start / title ---------- */
.title-screen { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; gap: 14px; }
.title-screen .big-logo { font-size: 44px; font-weight: 900; color: var(--brand-d); text-shadow: 0 4px 0 var(--brand-l); }
.title-screen p { color: var(--ink-soft); font-weight: 700; max-width: 320px; }
.title-art { display: flex; gap: -10px; }
.title-art .genling-svg { width: 120px; height: 120px; }
.name-input { width: 100%; max-width: 340px; font-family: inherit; font-weight: 800; font-size: 18px; text-align: center;
  color: var(--ink); background: #fff; border: 2.5px solid var(--brand-l); border-radius: 16px; padding: 13px 14px;
  box-shadow: var(--shadow); outline: none; }
.name-input:focus { border-color: var(--brand); }
.auth-error { width: 100%; max-width: 340px; background: #ffe3e6; border: 1.5px solid var(--bad); color: #b3283a;
  border-radius: 12px; padding: 9px 12px; font-size: 13px; font-weight: 700; text-align: center; margin-top: 4px; }
.auth-warn { max-width: 340px; text-align: center; color: var(--ink-soft); font-size: 11px; margin-top: 12px; line-height: 1.5; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 800; font-size: 13px;
  box-shadow: var(--shadow); animation: toastin .25s ease; max-width: 90%; text-align: center; }
@keyframes toastin { from { transform: translate(-50%, 12px); opacity: 0; } }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 55; overflow: hidden; }
.confetti i { position: absolute; width: 9px; height: 14px; top: -20px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

@media (min-width: 480px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* ================= v2 tycoon UI ================= */
.ranchname { display: flex; flex-direction: column; line-height: 1.1; flex: none; }
.ranchname .rn { font-weight: 900; font-size: 17px; color: var(--brand-d); }
.ranchname .rr { font-size: 11px; color: var(--accent); font-weight: 800; }
.pill.berry .n { color: #2fa36b; }
.pill.mood { font-size: 16px; padding: 4px 9px; }
.pill.more { background: var(--card); color: var(--ink-soft); font-size: 16px; line-height: 1; }
.subhud { display: flex; justify-content: space-between; gap: 8px; padding: 6px 14px; font-size: 12px; font-weight: 800; color: var(--ink-soft);
  background: rgba(255,255,255,.55); border-bottom: 1px solid var(--line); }
#app > #screen { padding: 14px 14px 96px; }

/* meadow / yard */
.yard { margin: 2px 0 12px; }
.meadow { position: relative; height: 200px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #bfe9ff 0%, #d9f6c9 45%, #b6e88f 100%); box-shadow: inset 0 -10px 24px rgba(80,140,60,.25), var(--shadow); }
.meadow::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: radial-gradient(ellipse at 30% 120%, #a6dd7a, transparent 60%), radial-gradient(ellipse at 80% 120%, #9fd66f, transparent 60%); opacity: .6; }
.avatar { position: absolute; width: 60px; height: 60px; cursor: pointer; transform: translate(-50%,-50%);
  animation: bob 2.6s ease-in-out infinite; z-index: 1; }
.avatar:active { transform: translate(-50%,-50%) scale(.9); }
.avatar .genling-svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 3px rgba(40,70,30,.35)); }
.avatar .anm { position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%); font-size: 9px; font-weight: 800;
  color: #3a5a2a; background: rgba(255,255,255,.7); padding: 0 4px; border-radius: 6px; white-space: nowrap; opacity: .9; }
.avatar .zzz { position: absolute; top: -4px; right: -2px; font-size: 15px; }
@keyframes bob { 0%,100% { margin-top: 0; } 50% { margin-top: -7px; } }

/* ranch stat strip */
.ranch-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-bottom: 8px; }
.rstat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 7px 4px; text-align: center; box-shadow: var(--shadow); }
.rstat .rv { font-weight: 900; font-size: 14px; }
.rstat .rl { font-size: 9.5px; color: var(--ink-soft); font-weight: 700; }
.warnline { background: #fff3d6; border: 1.5px solid #ffd479; color: #8a5a00; border-radius: 12px; padding: 8px 12px; font-size: 12px; font-weight: 700; margin: 8px 0; }
.specialties { background: var(--accent-l); border-radius: 12px; padding: 8px 11px; font-size: 12px; font-weight: 700; color: var(--accent);
  margin: 4px 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.specialties .sp-label { color: var(--ink); }
.chip.spec { background: #fff; color: var(--accent); border: 1.5px solid var(--accent); }

/* plots */
.plots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px,1fr)); gap: 8px; }
.plot { aspect-ratio: 1; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  box-shadow: var(--shadow); cursor: pointer; transition: transform .1s; position: relative; }
.plot:active { transform: scale(.94); }
.plot.filled { background: var(--tint, #eee); border: 2px solid rgba(255,255,255,.6); }
.plot.filled .bemoji { font-size: 32px; line-height: 1; }
.plot.filled .blvl { font-size: 9px; font-weight: 900; background: rgba(255,255,255,.75); border-radius: 6px; padding: 0 5px; color: var(--ink); }
.plot.filled .bname { font-size: 9px; font-weight: 800; color: var(--ink); opacity: .8; text-align: center; }
.plot.empty { background: rgba(255,255,255,.4); border: 2px dashed var(--brand-l); }
.plot.empty .plus { font-size: 26px; color: var(--brand); font-weight: 900; }

/* build menu rows */
.build-row { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 9px; margin-bottom: 7px; }
.build-row .be { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; flex: none; }
.build-row .bi { flex: 1; min-width: 0; }
.build-row .bn { font-weight: 800; font-size: 14px; }
.build-row .bd { font-size: 11px; color: var(--ink-soft); font-weight: 600; }
.build-row .bs { font-size: 11px; color: var(--good); font-weight: 800; margin-top: 2px; }

/* eggs */
.egg-card { display: flex; align-items: center; gap: 10px; background: #fffdf2; border: 1.5px solid #ffe9a8; border-radius: 14px; padding: 9px; margin-bottom: 7px; }
.egg-card .egg-emoji { font-size: 30px; animation: bob 1.8s ease-in-out infinite; }
.egg-card .bn { font-weight: 800; font-size: 13px; }
.egg-card .bd { font-size: 11px; color: var(--ink-soft); font-weight: 700; }

/* league banner */
.league-banner { display: flex; align-items: center; justify-content: space-between; border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); }
.league-banner .lb-name { font-weight: 900; font-size: 18px; }
.league-banner .lb-sub { font-size: 11px; color: var(--ink); opacity: .7; font-weight: 700; }
.league-banner .lb-count { text-align: center; }
.league-banner .lc-n { font-weight: 900; font-size: 16px; }
.league-banner .lc-l { font-size: 10px; opacity: .7; font-weight: 700; }
.entry-row { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 8px; margin-bottom: 6px; }
.entry-row .bn { font-weight: 800; font-size: 13px; } .entry-row .bd { font-size: 11px; color: var(--ink-soft); font-weight: 700; }
.ranch-tag { font-size: 9px; color: var(--ink-soft); font-weight: 700; width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* market list cards */
.list-card { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 9px; margin-bottom: 8px; box-shadow: var(--shadow); }
.list-card .art { width: 62px; height: 62px; border-radius: 12px; overflow: hidden; background: #f6eef4; flex: none; }
.list-card .li { flex: 1; min-width: 0; }
.list-card .bn { font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.src-badge { font-size: 9.5px; font-weight: 800; padding: 1px 6px; border-radius: 999px; }
.src-badge.supply { background: #e3f2fd; color: #1976d2; }
.src-badge.player { background: #f3e5f5; color: #8e24aa; }
.src-badge.stud { background: #ffe0ec; color: #c2185b; }

/* misc */
.badge-status { position: absolute; top: 8px; left: 8px; font-size: 15px; }
.mini-edit { background: none; font-size: 13px; padding: 0 2px; }
.mini-par .art { width: 34px; height: 34px; }
