/* Event page: hero + countdown, section menu, Lucky Draw (stage, prizes/winners, participants), Pet Event ranking */
.page-event {
  --silver: #d7e0ee;
  --bronze: #e0a36a;
  --gold-line: rgba(246, 196, 83, 0.4);
  --gold-soft: rgba(246, 196, 83, 0.1);
}

/* ── Hero ── */
.evt-hero { padding-bottom: clamp(40px, 6vw, 72px); }
.evt-hero .page-hero__bg {
  background:
    radial-gradient(520px 260px at 50% 58%, rgba(246, 196, 83, 0.16), transparent 70%),
    radial-gradient(700px 300px at 50% 0%, rgba(56, 189, 248, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(5, 10, 22, 0.2) 0%, rgba(5, 10, 22, 0.72) 70%, var(--bg) 100%);
}
.evt-hero .page-hero__bg::after { background: linear-gradient(90deg, transparent, rgba(246, 196, 83, 0.5), transparent); }
.evt-hero .eyebrow { color: var(--gold); }
.evt-hero .page-hero__title { font-size: clamp(2.3rem, 6vw, 4rem); background: linear-gradient(180deg, #fff 0%, #ffe9b0 50%, #f6c453 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 6px 30px rgba(246, 196, 83, 0.25)); }
.evt-hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.evt-hero__meta .chip { padding: 6px 12px; font-size: 0.82rem; color: #fff; }
.evt-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
.evt-hero__cd-label { margin: 26px 0 10px; color: var(--gold); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.evt-cd { display: flex; justify-content: center; gap: clamp(8px, 1.6vw, 14px); }
.evt-cd span {
  display: grid; justify-items: center; min-width: clamp(66px, 9vw, 96px); padding: 14px 8px 10px; border-radius: var(--r);
  border: 1px solid var(--gold-line); background: linear-gradient(180deg, rgba(40, 30, 10, 0.55), rgba(8, 13, 28, 0.85));
  box-shadow: inset 0 1px 0 rgba(255, 224, 138, 0.18), 0 16px 40px -20px rgba(246, 196, 83, 0.5);
}
.evt-cd b { font: 700 clamp(1.8rem, 4.4vw, 2.9rem)/1 var(--font-display); font-variant-numeric: tabular-nums; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.evt-cd small { margin-top: 6px; color: var(--muted); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.evt-hero__ended { max-width: 560px; margin: 22px auto 0; color: var(--text-2); }
.evt-hero__stats { display: inline-flex; margin-top: 26px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(5, 10, 22, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.evt-hero__stats div { display: grid; padding: 10px 22px; }
.evt-hero__stats div + div { border-left: 1px solid var(--line); }
.evt-hero__stats b { font: 700 1.3rem/1.2 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.evt-hero__stats span { color: var(--muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.evt-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
@media (max-width: 640px) {
  .evt-hero__stats div { padding: 8px 14px; }
  .evt-hero__actions .btn { flex: 1 1 100%; }
}

/* ── Section menu (sticks under the header) ── */
.evt-nav { position: sticky; top: var(--header-h); z-index: 40; padding: 10px 0; margin-bottom: 8px; background: linear-gradient(180deg, rgba(5, 10, 22, 0.92), rgba(5, 10, 22, 0.7)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.evt-nav__tabs { max-width: 640px; margin-inline: auto; }
.evt-nav .tab { text-align: center; }
@media (max-width: 520px) {
  .evt-nav .tab { flex: 1 1 0; min-width: 0; padding: 9px 6px; font-size: 0.78rem; white-space: normal; }
}
.evt-section { scroll-margin-top: 72px; }
.evt-section + .evt-section { margin-top: clamp(48px, 7vw, 88px); }

/* ── Lucky Draw: stage ── */
.ld-stage { overflow: hidden; }
.ld-stage::after { content: ""; position: absolute; left: 50%; top: 70px; width: 640px; height: 280px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(246, 196, 83, 0.12), transparent); pointer-events: none; }
.ld-machine { position: relative; z-index: 1; text-align: center; padding: 8px 0 4px; }
.ld-machine__sub { display: none; margin: 0 0 4px; color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.ld-machine.is-active .ld-machine__sub { display: block; }
.ld-machine.is-shown { animation: ldFade 0.35s var(--ease) both; }
.ld-machine__sub span { color: #fff; }
.ld-machine__reward { display: none; min-height: 1.4em; margin: 0 0 14px; color: var(--gold); font-weight: 700; font-size: 0.95rem; }
.ld-machine.is-active .ld-machine__reward { display: block; }
.ld-slot {
  position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  width: 100%; max-width: 560px; height: 110px; margin: 0 auto; border-radius: 20px;
  border: 2px solid rgba(56, 189, 248, 0.35);
  background: radial-gradient(80% 120% at 50% 50%, rgba(23, 44, 86, 0.95), rgba(6, 12, 28, 0.98));
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6), 0 0 30px -6px rgba(56, 189, 248, 0.25), 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.ld-slot::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.08) 3px 4px); pointer-events: none; }
.ld-slot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 22, 0.7), transparent 30%, transparent 70%, rgba(5, 10, 22, 0.7)); pointer-events: none; }
.ld-slot.is-spinning { border-color: rgba(56, 189, 248, 0.75); box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6), 0 0 50px -4px rgba(56, 189, 248, 0.45); }
.ld-slot.is-winner { border-color: rgba(246, 196, 83, 0.85); box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5), 0 0 60px -2px rgba(246, 196, 83, 0.45); animation: ldWin 0.6s var(--ease); }
.ld-slot__name {
  position: relative; z-index: 1; max-width: 100%; padding: 0 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 700 clamp(1.4rem, 3.6vw, 2.2rem)/1.2 var(--font-display); letter-spacing: 0.04em; color: var(--primary); text-shadow: 0 0 18px rgba(56, 189, 248, 0.55);
  transition: color 0.3s, text-shadow 0.3s;
}
.ld-slot__name.is-winner-name { color: var(--gold); text-shadow: 0 0 26px rgba(246, 196, 83, 0.6), 0 0 6px rgba(246, 196, 83, 0.4); }
.ld-count { padding: 18px 0 0; }
.ld-count__label { margin: 0 0 6px; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.ld-count__num { display: inline-block; min-width: 80px; margin: 0; font: 700 3.6rem/1 var(--font-display); color: var(--primary); text-shadow: 0 0 28px rgba(56, 189, 248, 0.55); font-variant-numeric: tabular-nums; }
.ld-count__num.pop, .ld-ticket-val.pop { animation: ldPop 0.25s ease-out both; }
.ld-machine__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.ld-machine__actions .btn[disabled] { opacity: 0.45; }

/* ── Lucky Draw: prizes & winners ── */
.ld-prizes__title { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin: 32px 0 16px; color: var(--gold); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.ld-prizes__title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-line), transparent); }
.ld-prizes { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ld-prize {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 14px 12px; border-radius: var(--r);
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(22, 36, 66, 0.6), rgba(8, 14, 30, 0.8));
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.ld-prize__pos { color: var(--muted); font: 700 0.78rem/1 var(--font-body); letter-spacing: 0.08em; }
.ld-prize__value { color: var(--gold); font: 700 1.15rem/1.25 var(--font-display); font-variant-numeric: tabular-nums; }
.ld-prize__value small { display: block; color: var(--text-2); font: 600 0.7rem/1.3 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; }
.ld-prize__extra { color: var(--text-2); font-size: 0.8rem; }
.ld-prize__winner { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); min-height: 1.6em; font-size: 0.82rem; }
.ld-prize__wait { color: #5d6f8f; font-size: 0.74rem; }
.ld-rewards-ign { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-weight: 700; }
.ld-rewards-ign:empty { display: none; }
.ld-rewards-ign.is-in { animation: ldWinnerIn 0.4s ease-out both; }
.ld-prize.has-winner .ld-prize__wait { display: none; }
.ld-prize.has-winner { border-color: var(--gold-line); background: linear-gradient(180deg, rgba(60, 44, 12, 0.55), rgba(10, 14, 28, 0.85)); }
.ld-prize.has-winner .ld-rewards-ign { color: #ffe08a; }
.ld-prize.is-current { border-color: rgba(56, 189, 248, 0.7); box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4), 0 0 30px -6px rgba(56, 189, 248, 0.6); transform: translateY(-3px); }
.ld-prize--top1 { border-color: var(--gold-line); background: linear-gradient(180deg, rgba(70, 52, 14, 0.6), rgba(12, 14, 26, 0.85)); box-shadow: 0 16px 40px -22px rgba(246, 196, 83, 0.7); }
.ld-prize--top1 .ld-prize__pos { color: var(--gold); }
.ld-prize--top1 .ld-prize__value { font-size: 1.45rem; }
.ld-prize--top1 .ld-prize__value, .ld-prize--top1 .ld-prize__value small { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ld-prize--top2 .ld-prize__pos { color: var(--silver); }
.ld-prize--top3 .ld-prize__pos { color: var(--bronze); }
.ld-prize--top1 .ld-prize__pos::before, .ld-prize--top2 .ld-prize__pos::before, .ld-prize--top3 .ld-prize__pos::before { content: "\2605 "; }
@media (max-width: 960px) { .ld-prizes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  /* compact prize rows: #  value  winner */
  .ld-prizes { grid-template-columns: 1fr; gap: 6px; }
  .ld-prize { display: grid; grid-template-columns: 40px auto minmax(0, 1fr); column-gap: 10px; row-gap: 0; align-items: center; padding: 10px 12px; border-radius: 12px; }
  .ld-prize__pos { grid-column: 1; grid-row: 1 / -1; }
  .ld-prize__value { grid-column: 2; grid-row: 1; font-size: 1rem; white-space: nowrap; }
  .ld-prize__value small { display: inline; margin-left: 2px; font-size: 0.62rem; }
  .ld-prize__extra { grid-column: 2; font-size: 0.74rem; }
  .ld-prize__winner { grid-column: 3; grid-row: 1 / -1; margin: 0; padding: 0; border: 0; min-height: 0; text-align: right; }
  .ld-prize__winner { overflow: hidden; }
  .ld-prize__wait { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.7rem; }
  .ld-prize--top1 { padding: 14px 12px; }
  .ld-prize--top1 .ld-prize__value { font-size: 1.3rem; }
  .ld-prize--top1 .ld-prize__value small { display: block; margin: 0; }
  .ld-prize.is-current { transform: none; }
  .ld-slot { height: 84px; border-radius: 16px; }
  .ld-count__num { font-size: 2.8rem; }
  .ld-machine__actions .btn { flex: 1 1 100%; }
}

/* ── Lucky Draw: how to join + participants ── */
.ld-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; margin-top: 24px; align-items: start; }
.ld-info__side { display: grid; gap: 16px; }
.ld-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ld-stat { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(8, 15, 32, 0.6); }
.ld-stat b { font: 700 1.35rem/1.1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.ld-stat b.gold { color: var(--gold); }
@media (max-width: 900px) { .ld-info { grid-template-columns: 1fr; } }

.ld-list__head, .ld-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 110px 130px; gap: 10px; align-items: center; }
.ld-list__head { padding: 0 14px 8px; color: var(--muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.ld-list__head span:nth-child(n+3) { text-align: right; }
.ld-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ld-skel { height: 44px; }
.ld-row { padding: 9px 14px; border-radius: 12px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.025); font-size: 0.92rem; }
.ld-row:hover { border-color: var(--line); background: rgba(56, 189, 248, 0.05); }
.ld-row.is-more { display: none; }
.ld-list.is-open .ld-row.is-more { display: grid; }
.ld-row__rank { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.ld-row__ign { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-weight: 600; }
.ld-row__poin { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; font-size: 0.86rem; }
.ld-row__poin small { display: none; }
.ld-row__tix { display: grid; justify-items: end; gap: 4px; }
.ld-ticket-val { display: inline-block; color: var(--primary); font-weight: 700; font-variant-numeric: tabular-nums; }
.ld-ticket-val.is-zero { color: #4b5c7a; }
.ld-bar { display: block; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.ld-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad-primary); }
.ld-row--top1 { border-color: var(--gold-line); background: var(--gold-soft); }
.ld-row--top1 .ld-row__rank { color: var(--gold); }
.ld-row--top2 .ld-row__rank { color: var(--silver); }
.ld-row--top3 .ld-row__rank { color: var(--bronze); }
.ld-row--top1 .ld-bar i { background: var(--grad-gold); }
@media (max-width: 520px) {
  .ld-list__head { display: none; }
  .ld-row { grid-template-columns: 28px minmax(0, 1fr) 76px; grid-template-areas: "rank ign tix" "rank poin tix"; row-gap: 0; padding: 8px 12px; }
  .ld-row__rank { grid-area: rank; }
  .ld-row__ign { grid-area: ign; }
  .ld-row__poin { grid-area: poin; text-align: left; font-size: 0.76rem; color: var(--muted); }
  .ld-row__poin small { display: inline; }
  .ld-row__tix { grid-area: tix; }
}

/* ── Pet Event ── */
.pet-tabs { margin-bottom: 16px; }
.pet-tabs .tab { flex: 0 0 auto; }
.pet-tabs__n { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: 0.7rem; font-weight: 700; }
.pet-panel.is-in { animation: ldFade 0.35s var(--ease) both; }
.pet-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; max-width: 820px; margin: 0 auto; }
.pet-skel { height: 260px; }
.pet-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 26px 14px 16px;
  border: 1px solid var(--line-2); border-radius: var(--r-lg); cursor: pointer; text-align: center; color: var(--text); font: inherit;
  background: linear-gradient(180deg, rgba(30, 48, 86, 0.65), rgba(8, 14, 30, 0.9));
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.pet-card:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.55); box-shadow: 0 24px 50px -24px rgba(56, 189, 248, 0.55); }
.pet-card--r1 { order: 2; padding-top: 34px; padding-bottom: 26px; border-color: var(--gold-line); background: radial-gradient(90% 60% at 50% 0%, rgba(246, 196, 83, 0.22), transparent 70%), linear-gradient(180deg, rgba(56, 42, 12, 0.7), rgba(10, 13, 26, 0.92)); box-shadow: 0 24px 60px -28px rgba(246, 196, 83, 0.7); }
.pet-card--r1:hover { border-color: rgba(246, 196, 83, 0.8); box-shadow: 0 28px 60px -24px rgba(246, 196, 83, 0.8); }
.pet-card--r2 { order: 1; }
.pet-card--r3 { order: 3; }
.pet-card__rank {
  position: absolute; top: -1px; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font: 700 1rem/1 var(--font-display); color: #0b1020; background: linear-gradient(135deg, #fff, var(--silver)); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.8);
}
.pet-card--r1 .pet-card__rank { width: 42px; height: 42px; font-size: 1.2rem; background: var(--grad-gold); color: #2a1700; }
.pet-card--r3 .pet-card__rank { background: linear-gradient(135deg, #f3c79d, #b8733a); }
.pet-card__face { display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 8px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08)); }
.pet-card--r1 .pet-card__face { width: 118px; height: 118px; background: var(--grad-gold); box-shadow: 0 0 30px -4px rgba(246, 196, 83, 0.6); }
.pet-card__face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #0a1430; }
.pet-card__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 1.02rem; color: #fff; }
.pet-card--r1 .pet-card__name { font-size: 1.15rem; color: #ffe9b0; }
.pet-card__species, .pet-card__owner { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 0.8rem; }
.pet-card__species { color: var(--text-2); }
.pet-card .pet-lev { margin-top: 8px; }

.pet-lev { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pet-lev b { font: 700 1.05rem/1 var(--font-display); color: var(--gold); font-variant-numeric: tabular-nums; }
.pet-lev em { color: var(--gold); font-size: 0.72rem; font-style: normal; font-weight: 700; }
.stars { display: inline-block; width: calc(var(--n, 1) * 13px); height: 13px; background: url("../../../img/96/images/misc/star.png.webp") 0 0 / 13px 13px repeat-x; filter: drop-shadow(0 0 4px rgba(246, 196, 83, 0.5)); }

.pet-list { display: grid; gap: 6px; margin: 24px 0 0; padding: 0; list-style: none; }
.pet-list li.is-more { display: none; }
.pet-list.is-open li.is-more { display: block; }
.pet-row {
  display: grid; grid-template-columns: 34px 44px minmax(0, 1.3fr) minmax(0, 1fr) 190px; grid-template-areas: "rank face main owner lev"; gap: 12px; align-items: center;
  width: 100%; padding: 8px 14px; border: 1px solid transparent; border-radius: 12px; background: rgba(255, 255, 255, 0.025);
  color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.pet-row:hover { border-color: var(--line-2); background: rgba(56, 189, 248, 0.06); }
.pet-row__rank { grid-area: rank; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.pet-row__face { grid-area: face; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #0a1430; border: 1px solid var(--line); }
.pet-row__main { grid-area: main; display: grid; min-width: 0; }
.pet-row__main b, .pet-row__main small, .pet-row__owner { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pet-row__main b { color: #fff; font-weight: 600; }
.pet-row__main small { color: var(--muted); font-size: 0.8rem; }
.pet-row__owner { grid-area: owner; color: var(--text-2); font-size: 0.86rem; }
.pet-row__owner small { display: block; color: var(--muted); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.pet-row .pet-lev { grid-area: lev; justify-self: end; }
@media (max-width: 640px) {
  .pet-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .pet-tabs .tab { white-space: normal; padding: 9px 10px; font-size: 0.8rem; line-height: 1.25; }
  .pet-podium { gap: 8px; }
  .pet-card { padding: 22px 6px 12px; border-radius: var(--r); }
  .pet-card--r1 { padding-top: 26px; padding-bottom: 16px; }
  .pet-card__face { width: 60px; height: 60px; }
  .pet-card--r1 .pet-card__face { width: 76px; height: 76px; }
  .pet-card__name, .pet-card--r1 .pet-card__name { font-size: 0.86rem; }
  .pet-card__species, .pet-card__owner { font-size: 0.7rem; }
  .pet-card .stars { display: none; }
  .pet-card .pet-lev em { display: none; }
  .pet-card .pet-lev::before { content: "\2605"; color: var(--gold); font-size: 0.8rem; }
  .pet-card__rank { width: 28px; height: 28px; font-size: 0.85rem; }
  .pet-card--r1 .pet-card__rank { width: 34px; height: 34px; font-size: 1rem; }
  .pet-row { grid-template-columns: 26px 40px minmax(0, 1fr) auto; grid-template-areas: "rank face main lev" "rank face owner lev"; column-gap: 10px; row-gap: 0; padding: 8px 10px; }
  .pet-row__face { width: 40px; height: 40px; }
  .pet-row__owner { font-size: 0.74rem; color: var(--muted); }
  .pet-row__owner small { display: inline; font-size: inherit; font-weight: 400; letter-spacing: 0; text-transform: none; }
  .pet-row__owner small::after { content: ": "; }
  .pet-row .stars { width: 13px; }
  .pet-row .pet-lev em { display: none; }
  .pet-row .pet-lev { gap: 4px; }
}

/* ── Pet details ── */
.pet-modal { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 20px; }
.pet-modal__backdrop { position: absolute; inset: 0; background: rgba(2, 6, 16, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.22s; }
.pet-modal__card {
  position: relative; width: min(380px, 100%); padding: 34px 26px 26px; border-radius: var(--r-lg); text-align: center; outline: none;
  border: 1px solid var(--gold-line); background: radial-gradient(90% 50% at 50% 0%, rgba(246, 196, 83, 0.18), transparent 70%), linear-gradient(180deg, #121d38, #070d1c);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(246, 196, 83, 0.45);
  opacity: 0; transform: scale(0.92) translateY(14px); transition: opacity 0.22s, transform 0.3s var(--ease);
}
.pet-modal.is-open .pet-modal__backdrop { opacity: 1; }
.pet-modal.is-open .pet-modal__card { opacity: 1; transform: none; }
.pet-modal__close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; }
.pet-modal__rank { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.pet-modal__face { display: block; width: 168px; height: 168px; margin: 18px auto 14px; padding: 4px; border-radius: 50%; background: var(--grad-gold); box-shadow: 0 0 50px -6px rgba(246, 196, 83, 0.6); }
.pet-modal__face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #0a1430; }
.pet-modal__name { margin: 0; font-size: 1.4rem; overflow-wrap: anywhere; }
.pet-modal__species { margin: 2px 0 16px; color: var(--text-2); }
.pet-modal__facts { display: grid; gap: 8px; margin: 0; text-align: left; }
.pet-modal__facts div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.pet-modal__facts dt { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.pet-modal__facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: #fff; font-weight: 600; text-align: right; }

/* ── Motion ── */
@keyframes ldFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ldPop { 0% { transform: scale(1.3); opacity: 0.5; } 100% { transform: scale(1); opacity: 1; } }
@keyframes ldWin { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes ldWinnerIn { 0% { opacity: 0; transform: translateY(12px) scale(0.92); } 60% { opacity: 1; transform: translateY(-2px) scale(1.02); } 100% { opacity: 1; transform: none; } }
