/* Guides: eggs (#eggs), rarities (#rarity), codes (#codes). Shared hero + section styles prefixed gd-. */
.gd { display: flex; flex-direction: column; gap: 40px; }
.gd-skel { display: flex; flex-direction: column; gap: 24px; }
.gd-skel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

/* ---------- Shared hero ---------- */
.gd-hero {
  --glow: var(--accent);
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px;
  padding: 34px 36px;
  border-radius: 26px;
  background:
    radial-gradient(640px 360px at 85% 40%, color-mix(in srgb, var(--glow) 22%, transparent), transparent 65%),
    radial-gradient(500px 300px at 0% 0%, rgba(120, 90, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #131a2b, #0d1220);
  border: 1px solid color-mix(in srgb, var(--glow) 22%, rgba(255, 255, 255, 0.06));
  box-shadow: 0 30px 80px -44px color-mix(in srgb, var(--glow) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.gd-hero-deco {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(560px 340px at 82% 40%, #000, transparent 75%);
  mask-image: radial-gradient(560px 340px at 82% 40%, #000, transparent 75%);
}
.gd-hero-main { min-width: 0; }
.gd-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2);
}
.gd-kicker svg { width: 14px; height: 14px; color: var(--glow); }
.gd-hero h1 {
  margin: 14px 0 0;
  font: 900 clamp(40px, 6vw, 72px)/0.98 var(--font-display); letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}
.gd-hero-main > p { margin: 12px 0 0; color: var(--text-2); font-size: 15px; max-width: 54ch; line-height: 1.55; }
.gd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 24px 0 0; max-width: 560px; }
.gd-stats div {
  display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; min-width: 0;
  border-radius: 14px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line);
}
.gd-stats dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.gd-stats dt svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.gd-stats dd { margin: 0; font: 800 24px/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-stats dd.sm { font-size: 20px; line-height: 24px; }
.gd-stats .val { display: inline-flex; align-items: center; gap: 6px; }
.gd-stats .tok { width: 20px; height: 20px; }

/* Top bar with back link and prev/next */
.gd-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: -16px; flex-wrap: wrap; }
.gd-pager { display: flex; gap: 8px; min-width: 0; }
.gd-pg {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; max-width: 220px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2);
  color: var(--text-2); font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.gd-pg span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-pg svg { width: 15px; height: 15px; flex-shrink: 0; }
.gd-pg:hover { background: var(--surface-3); color: var(--text); border-color: var(--line-3); }

.gd-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.gd-sec-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; display: flex; align-items: center; gap: 10px; }
.gd-sec-head > span { color: var(--muted); font-size: 14px; }

.gd-source { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 80ch; }
.gd-source svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.gd-source a, .cd-src a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.gd-source a:hover, .cd-src a:hover { color: var(--text); text-decoration-color: currentColor; }

.eg-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.eg-meta svg { width: 14px; height: 14px; color: var(--muted); }

/* ---------- Egg art: in-game screenshot on a rounded tile ---------- */
.egg-art {
  position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  background: radial-gradient(60% 55% at 50% 55%, rgba(47, 140, 255, 0.18), transparent 70%), linear-gradient(180deg, #16181d, #0d0e11);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: grid; place-items: center;
}
.egg-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.egg-art::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 -40px 50px -30px rgba(0, 0, 0, 0.55); pointer-events: none; }
.egg-ph svg { width: 42%; height: auto; color: rgba(255, 255, 255, 0.22); display: block; margin: auto; }
.egg-ph { width: 100%; display: grid; place-items: center; }
.egg-art.lg { border-radius: 22px; }

/* Eggs list hero: three floating eggs */
.eg-hero-show { position: relative; width: 340px; height: 230px; }
.eg-float { position: absolute; width: 150px; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55)); }
.eg-float .egg-art { border-radius: 24px; }
.eg-float.f0 { left: 95px; top: 0; width: 170px; z-index: 2; }
.eg-float.f1 { left: 0; top: 60px; transform: rotate(-7deg); opacity: 0.9; }
.eg-float.f2 { right: 0; top: 66px; transform: rotate(7deg); opacity: 0.9; }

/* Egg cards */
.egg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.egg-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 12px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  color: inherit; text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.egg-card:hover { transform: translateY(-3px); border-color: var(--line-3); background: var(--surface-2); box-shadow: var(--shadow); }
.egg-card:hover .egg-art img { transform: scale(1.05); }
.egg-card:focus-visible, .odds-row:focus-visible, .rr-card:focus-visible, .gd-pg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ec-tile { position: relative; }
.ec-tile .egg-art { aspect-ratio: 16 / 11; border-radius: 13px; }
.ec-step {
  position: absolute; top: 10px; left: 10px; min-width: 28px; height: 28px; padding: 0 9px;
  display: grid; place-items: center; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: rgba(8, 11, 18, 0.72); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ec-step.ec-lim { color: var(--gold); }
.ec-body { display: flex; flex-direction: column; gap: 8px; padding: 0 4px 4px; min-width: 0; }
.ec-name { font-size: 18px; font-weight: 800; letter-spacing: -0.025em; }
.ec-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ec-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.ec-pets { display: flex; align-items: center; min-width: 0; }
.ec-pet { width: 34px; flex-shrink: 0; margin-right: -8px; border-radius: 11px; box-shadow: 0 0 0 2px var(--surface); }
.egg-card:hover .ec-pet { box-shadow: 0 0 0 2px var(--surface-2); }
.ec-pet .art { border-radius: 10px; }
.ec-pet .art-inner { border-radius: 9px; }
.ec-count { margin-left: 16px; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ec-ev { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; flex-shrink: 0; }
.ec-ev small { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.ec-ev .val { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 5px; }
.ec-ev .tok { width: 16px; height: 16px; }
.ec-ev .val-none { font-size: 13px; }

/* Egg detail hero */
.egg-hero { grid-template-columns: 220px minmax(0, 1fr) minmax(240px, 300px); }
.eh-art { filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5)); }
.eh-tags { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.eh-cost { margin-top: 20px; }
.eh-cost dd { font-size: 20px; }
.eh-ev {
  align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: 20px; border-radius: 18px;
  background: rgba(8, 11, 18, 0.45); border: 1px solid var(--line-2);
}
.eh-ev-label { color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.eh-ev-num .val { display: inline-flex; align-items: center; gap: 10px; font: 900 clamp(34px, 4vw, 48px)/1 var(--font-display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.eh-ev-num .tok { width: 36px; height: 36px; }
.eh-ev-num .val-none { font-size: 22px; font-weight: 800; }
.eh-ev p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }

/* Odds list */
.odds-list { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.odds-head, .odds-row { display: grid; grid-template-columns: 56px minmax(0, 1.6fr) minmax(150px, 1fr) minmax(110px, 0.6fr); gap: 16px; align-items: center; padding: 10px 18px; }
.odds-head { padding-top: 12px; padding-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--line); }
.odds-head span:last-child { text-align: right; }
.odds-row { color: inherit; text-decoration: none; transition: background 0.15s; }
.odds-row + .odds-row { border-top: 1px solid var(--line); }
.odds-row:hover { background: var(--surface-2); }
.or-art { width: 56px; }
.or-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.or-name b { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.or-event { font-size: 11px; font-weight: 700; color: var(--accent-2); padding: 2px 8px; border-radius: 999px; background: rgba(255, 122, 89, 0.1); border: 1px solid rgba(255, 122, 89, 0.25); }
.or-odds { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; row-gap: 6px; min-width: 0; }
.or-odds b { font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.or-odds b.unk { color: var(--muted); font-weight: 600; }
.or-odds small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.or-bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); position: relative; overflow: hidden; }
.or-bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 60%, transparent), var(--rc)); }
.or-val { text-align: right; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.or-val .val { display: inline-flex; align-items: center; gap: 6px; }
.or-val .tok { width: 17px; height: 17px; }
.or-val .val-none { font-size: 13px; font-weight: 600; }

/* ---------- Rarity index ---------- */
.rr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rr-card {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 64px; grid-template-rows: auto auto; gap: 14px 14px; align-items: center;
  padding: 16px 16px 18px; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(260px 140px at 100% 0%, color-mix(in srgb, var(--rc) 14%, transparent), transparent 70%), var(--surface);
  border: 1px solid var(--line); color: inherit; text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}
.rr-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--rc) 45%, transparent); box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--rc) 70%, transparent); }
.rr-ico, .rh-ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: var(--rc);
  background: color-mix(in srgb, var(--rc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 35%, transparent);
}
.rr-ico svg { width: 22px; height: 22px; }
.rr-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rr-main b { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.rr-main span { color: var(--muted); font-size: 12.5px; }
.rr-art { width: 64px; }
.rr-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 16px; }
.rr-foot .val { display: inline-flex; align-items: center; gap: 6px; }
.rr-foot .tok { width: 17px; height: 17px; }
.rr-foot .val-none { font-size: 13px; font-weight: 600; }
.rr-share { color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.rr-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.04); }
.rr-bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--rc); box-shadow: 0 0 10px var(--rc); }

/* ---------- Rarity page ---------- */
.rh-hero { --glow: var(--rc); }
.rh-title { display: flex; align-items: center; gap: 18px; }
.rh-title .gd-kicker { margin-bottom: 0; }
.rh-title h1 { margin-top: 10px; color: color-mix(in srgb, var(--rc) 30%, #fff); text-shadow: 0 0 40px color-mix(in srgb, var(--rc) 45%, transparent); }
.rh-ico { width: 76px; height: 76px; border-radius: 22px; flex-shrink: 0; box-shadow: 0 0 40px -6px color-mix(in srgb, var(--rc) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.rh-ico svg { width: 40px; height: 40px; }
.rh-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 680px; }
.rh-note { margin: 14px 0 0 !important; color: var(--muted) !important; font-size: 13px !important; }
.rh-show { position: relative; width: 330px; height: 220px; }
.rh-pet { position: absolute; width: 130px; filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.55)); }
.rh-pet.p0 { left: 100px; top: 4px; width: 150px; z-index: 2; }
.rh-pet.p1 { left: 0; top: 66px; transform: rotate(-6deg); }
.rh-pet.p2 { right: 0; top: 72px; transform: rotate(6deg); }
.rh-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.rh-tools .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.rh-tools .seg button { white-space: nowrap; }
.rh-group + .rh-group { margin-top: 36px; }
.rh-ghead { margin: 18px 0 0; }
.rh-vdot { width: 12px; height: 12px; border-radius: 50%; background: #9aa7b8; flex-shrink: 0; }
.rh-vdot.v-golden { background: linear-gradient(135deg, #ffeaa8, #d39a2c); }
.rh-vdot.v-rainbow { background: conic-gradient(#ff5b6e, #ffcf4a, #2ee6a0, #2f8cff, #b26bff, #ff5b6e); }
.rh-vdot.v-diamond { background: linear-gradient(135deg, #e6fbff, #7fd6ff); box-shadow: 0 0 8px rgba(127, 214, 255, 0.7); }

/* ---------- Codes ---------- */
.cd-hero { --glow: #2ee6a0; }
.cd-hero .gd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 380px; }
.cd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.code-list { display: flex; flex-direction: column; gap: 12px; }
.code-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 18px 18px 22px; border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(46, 230, 160, 0.06), transparent 40%), var(--surface);
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.code-card::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--win); box-shadow: 0 0 12px rgba(46, 230, 160, 0.6); }
.code-card.is-expired { background: var(--surface); opacity: 0.6; }
.code-card.is-expired::before { background: var(--faint); box-shadow: none; }
.cc-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cc-code-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cc-code {
  font: 800 24px/1.1 ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace; letter-spacing: 0.01em;
  color: #fff; overflow-wrap: anywhere;
}
.is-expired .cc-code { text-decoration: line-through; text-decoration-color: var(--faint); }
.cc-badge { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 999px; }
.cc-badge.ok { color: var(--win); background: rgba(46, 230, 160, 0.1); border: 1px solid rgba(46, 230, 160, 0.25); }
.cc-badge.new { color: #1a0f00; background: linear-gradient(135deg, #ffe58a, #ffbf3a); }
.cc-badge.exp { color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); }
.cc-reward { display: flex; align-items: flex-start; gap: 8px; color: var(--text-2); font-size: 14.5px; line-height: 1.45; }
.cc-reward svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--accent-2); }
.cc-added { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.cc-added svg { width: 13px; height: 13px; }
.cc-copy { flex-shrink: 0; height: 44px; padding: 0 18px; gap: 8px; min-width: 104px; justify-content: center; }
.cc-copy.done { color: var(--win); border-color: rgba(46, 230, 160, 0.45); background: rgba(46, 230, 160, 0.08); }
.cd-exp-head { margin-top: 32px; }
.cd-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--header-h) + 20px); }
.cd-how { padding: 20px 22px; }
.cd-how h2 { margin: 0 0 12px; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.cd-how ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.cd-how li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.cd-how li::before {
  content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px;
  font-size: 12.5px; font-weight: 800; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(47, 140, 255, 0.3);
}
.cd-about { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.cd-about p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; display: flex; gap: 8px; }
.cd-about p svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.cd-src { display: block !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .egg-hero { grid-template-columns: 180px minmax(0, 1fr); }
  .eh-ev { grid-column: 1 / -1; }
  .rh-show, .eg-hero-show { display: none; }
  .gd-hero:not(.egg-hero) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .cd-layout { grid-template-columns: minmax(0, 1fr); }
  .cd-side { position: static; }
  .rh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .gd { gap: 30px; }
  .gd-hero { padding: 22px 18px; border-radius: 22px; gap: 18px; }
  .gd-hero h1 { font-size: 42px; }
  .gd-stats { gap: 8px; }
  .gd-stats div { padding: 10px 11px; }
  .gd-stats dd { font-size: 20px; }
  .gd-stats dd.sm { font-size: 16px; line-height: 20px; }
  .gd-stats dt { font-size: 11.5px; }
  .gd-stats .val { gap: 4px; }
  .gd-stats .tok { width: 15px; height: 15px; }
  .gd-stats dd:has(.val) { font-size: 18px; }
  .gd-sec-head h2 { font-size: 19px; }
  .gd-sec-head > span { font-size: 13px; }
  .gd-top { margin-bottom: -10px; }
  .gd-pg { height: 34px; padding: 0 11px; max-width: 150px; font-size: 12.5px; }

  .egg-hero { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .egg-hero .gd-hero h1, .egg-hero h1 { font-size: 34px; margin-top: 10px; }
  .egg-hero .gd-kicker { font-size: 11.5px; }
  .eh-cost { grid-column: 1 / -1; }
  .egg-hero .gd-hero-main { display: contents; }
  .egg-hero .gd-hero-main > :not(.eh-cost) { grid-column: 2; }
  .egg-hero .eh-art { grid-row: 1 / span 3; align-self: start; }
  .eh-cost { margin-top: 2px; }
  .eh-ev { padding: 16px; }

  .egg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .egg-card { padding: 8px; gap: 10px; }
  .ec-tile .egg-art { aspect-ratio: 1; }
  .ec-body { padding: 0 4px 4px; gap: 6px; }
  .ec-name { font-size: 15px; }
  .ec-tags { flex-direction: column; gap: 3px; }
  .eg-meta { font-size: 12px; }
  .ec-foot { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 10px; margin-top: 2px; }
  .ec-ev { align-items: flex-start; text-align: left; }
  .ec-pet { width: 28px; }
  .ec-count { margin-left: 14px; font-size: 11.5px; }

  .odds-head { display: none; }
  .odds-row { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: 'art name val' 'art odds odds'; gap: 6px 12px; padding: 12px 14px; }
  .or-art { grid-area: art; width: 48px; align-self: start; }
  .or-name { grid-area: name; }
  .or-name b { font-size: 14.5px; }
  .or-name .rarity { display: none; }
  .or-odds { grid-area: odds; }
  .or-val { grid-area: val; font-size: 15px; }

  .rr-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rh-title { gap: 14px; }
  .rh-ico { width: 56px; height: 56px; border-radius: 17px; }
  .rh-ico svg { width: 30px; height: 30px; }
  .rh-title h1 { font-size: 36px; }
  .rh-tools .seg { width: 100%; }
  .rh-tools .seg button { flex: 1; }
  .rh-sort, .rh-sort .select { width: 100%; }

  .code-card { flex-direction: column; align-items: stretch; padding: 16px 16px 16px 20px; }
  .cc-code { font-size: 22px; }
  .cc-copy { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .egg-card, .rr-card, .egg-art img { transition: none; }
  .egg-card:hover, .rr-card:hover { transform: none; }
  .egg-card:hover .egg-art img { transform: none; }
}

/* ---------- Header "More" menu ---------- */
.nav-more { position: relative; }
.nav-more summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  color: var(--text-2); font-weight: 600; font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary svg { width: 17px; height: 17px; }
.nav-more summary .chev { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-more[open] summary .chev { transform: rotate(180deg); }
.nav-more summary:hover, .nav-more[open] summary { background: var(--surface-2); color: var(--text); }
.nav-more:has(a.active) summary { color: var(--text); }
.nav-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 200px;
  display: flex; flex-direction: column; gap: 2px; padding: 6px;
  background: rgba(18, 24, 38, 0.97); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: menu-in 0.16s ease;
}
.nav .nav-menu a { display: flex !important; flex-direction: row; justify-content: flex-start; gap: 10px; border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.nav .nav-menu a.active { background: var(--surface-3); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 720px) { .nav-more { display: none; } }
@media (min-width: 721px) and (max-width: 1023px) { .nav-more summary { padding: 8px 9px; font-size: 13.5px; } .nav-more summary > svg:first-child { display: none; } }
.nav .nav-menu a svg { display: block !important; width: 16px; height: 16px; opacity: 0.8; }
.nav .nav-menu a::after, .nav .nav-menu a::before { display: none !important; }

/* Egg art is now transparent renders: show them floating on a glow, like pets */
.egg-art {
  background:
    radial-gradient(50% 46% at 50% 56%, rgba(47, 140, 255, 0.32), transparent 72%),
    radial-gradient(130% 70% at 50% -10%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(180deg, #161c2c, #0c111c);
}
.egg-art img { inset: 10%; width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.55)); }
.egg-art::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.egg-art:hover img, a:hover > .egg-art img { transform: translateY(-4px) rotate(-4deg) scale(1.05); }
