/* Eggly game (farm, shop, crack bonus, wallet) in the landing's brand kit (v2/landing.css, the base design, owner
   2026-10-16): dark violet game panels with a thick ink outline, a thin gold rim and a 3D bottom edge, Lilita One
   titles with an ink outline, gold = the action (the PLAY button), glow everywhere. Phone first from 280 px
   (docs/PROTOCOL-LAYOUT.md): words stay whole, taps ≥ 40 px; transform / opacity motion only. */
:root {
  --ink: #120a24; --ink-2: #1c1036;
  --panel-1: #3a2470; --panel-2: #1a0e3a; --panel-3: #0f0826;
  --gold-1: #fff1a8; --gold-2: #ffcf3a; --gold-3: #f59a12; --gold-edge: #8a4300;
  --rim: rgba(255, 210, 110, .55); --glow: rgba(255, 170, 60, .45);
  --ok: #3cf08a; --text: #f3eeff; --muted: #c2b6e6; --gold: #ffc23a; --gem: #ff7ae0; --usdt: #26a17b;
  --hud-h: 64px; --nav-h: 76px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 500 14px/1.4 Fredoka, system-ui, sans-serif;
  background-color: #07030f;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(1px 1px at 72% 9%, rgba(255, 255, 255, .45), transparent 60%),
    radial-gradient(1.4px 1.4px at 88% 42%, rgba(255, 220, 255, .5), transparent 60%),
    radial-gradient(1px 1px at 33% 64%, rgba(255, 255, 255, .35), transparent 60%),
    radial-gradient(900px 560px at 50% -10%, rgba(154, 77, 255, .45), transparent 70%),
    radial-gradient(700px 420px at 100% 100%, rgba(255, 122, 26, .16), transparent 70%),
    linear-gradient(180deg, #1a0d3a, #07030f 70%);
  background-attachment: fixed;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.ic { width: 16px; height: 16px; flex: none; }
.ic.cegg { width: 14px; height: 17px; }

/* the game panel recipe */
.gp, .panel, .vline, .more, .seg, .bal, .tile, .steps li, .grow div, .ladder span, .how li, .card, .ib, .btn, .auto, .sheet {
  color: var(--text); background: linear-gradient(180deg, var(--panel-1), var(--panel-2) 55%, var(--panel-3));
  border: 3px solid var(--ink); box-shadow: inset 0 0 0 1.5px var(--rim), inset 0 2px 0 1.5px rgba(255, 255, 255, .1), 0 4px 0 var(--ink); }
.title-t, .shop-h h2, .panel h2, .panel h3, .sheet h3, .cn, .bal b, .vline .big, .step b, .tile b, .rows b, .grow b, .banner b {
  font-family: 'Lilita One', Fredoka, sans-serif; font-weight: 400; letter-spacing: .02em; }
.shop-h h2, .panel h2, .panel h3, .sheet h3 { color: var(--gold);
  text-shadow: 2px 0 var(--ink), -2px 0 var(--ink), 0 2px var(--ink), 0 -2px var(--ink), 1.5px 1.5px var(--ink), -1.5px 1.5px var(--ink), 0 4px 0 var(--ink), 0 0 18px rgba(255, 150, 40, .4); }

/* HUD: Gems (with the rate), Crypto Eggs, USDT */
.hud { position: sticky; top: 0; z-index: 30; background: linear-gradient(180deg, rgba(10, 5, 26, .96), rgba(10, 5, 26, .82)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 210, 110, .25); box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
.hud .in { max-width: 1100px; margin: 0 auto; padding: 8px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lv { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--ink); padding: 0; display: grid; place-items: center;
  background: conic-gradient(var(--gold-2) calc(var(--p, 0) * 1turn), rgba(255, 255, 255, .14) 0); box-shadow: 0 3px 0 var(--ink), 0 0 14px var(--glow); }
.lv span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); font: 400 12px/1 'Lilita One', sans-serif; color: #fff; }
.bal { flex: 1 1 150px; order: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 7px; border-radius: 16px; }
.bal > .ic { width: 28px; height: 28px; filter: drop-shadow(0 0 6px rgba(255, 122, 224, .7)); }
.bal .v { display: flex; flex-direction: column; min-width: 0; }
.bal b { font-size: clamp(15px, 4.6vw, 22px); line-height: 1.05; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 2px 0 var(--ink); }
.bal small { font-size: 11px; font-weight: 600; color: var(--gem); }
#menuBtn { order: 2; }
.bals { order: 3; flex: 1 1 100%; min-width: 0; display: flex; gap: 6px; }
.bals .bal.sm { flex: 1 1 0; padding: 4px 9px 4px 6px; gap: 6px; }
.bal.sm > .ic { width: 20px; height: 22px; }
.bal.sm b { font-size: clamp(13px, 3.8vw, 17px); }
.bal.sm small { color: rgba(255, 255, 255, .72); font-size: 10px; line-height: 1.1; }
.bal.gold { background: linear-gradient(180deg, #6a4610, #3b2508 60%, #241604); box-shadow: inset 0 0 0 1.5px rgba(255, 210, 110, .6), 0 4px 0 var(--ink), 0 0 14px rgba(255, 190, 60, .25); }
.bal.gold > .ic { filter: drop-shadow(0 0 6px rgba(255, 200, 60, .8)); }
.bal.usd { background: linear-gradient(180deg, #146a4c, #0b4030 60%, #06281e); box-shadow: inset 0 0 0 1.5px rgba(120, 255, 200, .45), 0 4px 0 var(--ink), 0 0 14px rgba(38, 161, 123, .3); }
.bal.usd > .ic { filter: drop-shadow(0 0 6px rgba(60, 240, 160, .7)); }
@media (min-width: 701px) { .bals { order: 2; flex: 0 1 440px; } #menuBtn { order: 3; } }
.ib { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; transition: transform .1s, box-shadow .1s; }
.ib svg { width: 19px; height: 19px; }
.ib:active { transform: translateY(3px); box-shadow: inset 0 0 0 1.5px var(--rim), 0 1px 0 var(--ink); }

/* farm: stage + action on top, creatures below (side by side on wide screens) */
.play { max-width: 1100px; margin: 0 auto; padding: 12px 16px 40px; display: grid; gap: 14px; }
.stagecol { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stage { position: relative; height: clamp(190px, 56vw, 320px); border-radius: 22px; overflow: hidden; background: #0d0620;
  border: 3px solid var(--ink); box-shadow: inset 0 0 0 1.5px var(--rim), 0 5px 0 var(--ink), 0 14px 30px rgba(0, 0, 0, .5), 0 0 30px rgba(154, 77, 255, .25); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }
.chip { position: absolute; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; pointer-events: none;
  background: rgba(10, 5, 26, .78); border: 2px solid var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 210, 110, .35); font-size: 12px; font-weight: 600; }
.chip.tl { top: 8px; left: 8px; max-width: calc(100% - 64px); }
.chip.bl { bottom: 8px; left: 8px; max-width: 58%; }
.chip.br { bottom: 8px; right: 8px; color: var(--gold-2); font: 400 13px/1.3 'Lilita One', sans-serif; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rc); flex: none; box-shadow: 0 0 8px var(--rc); }
.stage .ib { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 12px; }
.banner { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 2; pointer-events: none; padding: 8px 18px; border-radius: 16px; text-align: center; width: max-content; max-width: calc(100% - 16px); white-space: nowrap;
  background: linear-gradient(180deg, var(--panel-1), var(--panel-3)); border: 3px solid var(--ink); box-shadow: inset 0 0 0 1.5px var(--gold-2), 0 4px 0 var(--ink), 0 0 26px rgba(255, 200, 60, .55); }
.banner small { display: block; font-size: 10.5px; font-weight: 700; color: var(--gold-2); letter-spacing: 1px; text-transform: uppercase; }
.banner b { display: block; font-size: clamp(17px, 5.6vw, 22px); line-height: 1.1; color: #fff; text-shadow: 0 2px 0 var(--ink); }

.action { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 10px; align-items: stretch; }
.action .seg { align-items: center; min-height: 58px; }
.action .buy { min-height: 58px; }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 4px; border-radius: 16px; }
.seg button { border: 0; border-radius: 11px; background: transparent; color: var(--muted); font: 400 clamp(12px, 3.8vw, 14px)/1 'Lilita One', sans-serif; letter-spacing: .02em; min-height: 40px; padding: 0; white-space: nowrap; min-width: 0; }
.seg button[aria-pressed="true"] { color: #2a1400; background: linear-gradient(180deg, #ffe27a, var(--gold) 60%, var(--gold-3)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 2px 0 #5a2c00; }
/* the gold action button (= PLAY) */
.buy { position: relative; overflow: hidden; border: 0; border-radius: 16px; min-height: 56px; padding: 7px 10px; color: #2a1400 !important;
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 38%, var(--gold-3) 72%, #ffbf3a 100%);
  box-shadow: 0 0 0 2.5px #5a2c00, 0 5px 0 var(--gold-edge), 0 10px 24px rgba(255, 140, 30, .3), inset 0 2px 0 rgba(255, 255, 255, .7), inset 0 -3px 0 rgba(160, 70, 0, .45);
  font: 400 21px/1 'Lilita One', sans-serif; letter-spacing: .04em; text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; transition: transform .1s, box-shadow .1s, filter .2s; }
.buy::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%) -200% 0 / 200% 100% no-repeat; animation: gShine 3.4s ease-in-out 1.2s infinite; }
@keyframes gShine { 0%, 55% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.buy > span { white-space: nowrap; }
.buy small { display: flex; align-items: center; justify-content: center; gap: 4px; font: 700 12px/1.2 Fredoka, sans-serif; color: #5a2c00; text-shadow: none; letter-spacing: 0; white-space: nowrap; }
.buy:active { transform: translateY(4px); box-shadow: 0 0 0 2.5px #5a2c00, 0 1px 0 var(--gold-edge), inset 0 2px 0 rgba(255, 255, 255, .7); }
.buy.poor { filter: saturate(.35) brightness(.78); }
.buy.poor::after { display: none; }
.buy.locked { filter: grayscale(.8) brightness(.7); }
.buy.ready { animation: gBreathe 1.8s ease-in-out infinite; }
@keyframes gBreathe { 50% { box-shadow: 0 0 0 2.5px #5a2c00, 0 5px 0 var(--gold-edge), 0 0 26px rgba(255, 200, 60, .85), inset 0 2px 0 rgba(255, 255, 255, .7); } }
.next { display: grid; grid-template-columns: minmax(60px, 1fr) auto; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.next .bar { height: 12px; border-radius: 8px; background: rgba(255, 255, 255, .08); border: 2px solid var(--ink); overflow: hidden; }
.next .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gem), var(--gold-2)); transform-origin: left; transition: transform .5s linear; }
.next span { min-width: 0; white-space: nowrap; text-align: right; font-weight: 600; }
.next.ready span { color: var(--gold-2); font-weight: 600; }

/* creature list */
.shop-h { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; margin: 0 2px 10px; }
.shop-h h2 { margin: 0; font-size: 26px; line-height: 1; }
.shop-h small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.cards { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.card { width: 100%; min-height: 78px; text-align: left; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px 14px 8px; border-radius: 18px; position: relative;
  background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 30%, var(--panel-1)) 0%, var(--panel-2) 60%, var(--panel-3)); transition: transform .16s cubic-bezier(.3, 1.5, .5, 1), box-shadow .2s; }
.card:active { transform: translateY(2px) scale(.99); }
.card[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--rc), 0 4px 0 var(--ink), 0 0 22px color-mix(in srgb, var(--rc) 55%, transparent); }
.pw { position: relative; width: 56px; height: 56px; border-radius: 14px; border: 2.5px solid var(--ink);
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc) 55%, #1a0e3a) 0%, #120a24 78%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 60%, transparent); }
.pw canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.card.locked .pw canvas { filter: brightness(0) opacity(.5); }
.oc { position: absolute; right: -8px; bottom: -8px; min-width: 22px; padding: 1px 5px; border-radius: 999px; text-align: center; color: #2a1400;
  background: linear-gradient(180deg, #ffe27a, var(--gold-3)); border: 2px solid var(--ink); font: 400 11px/1.3 'Lilita One', sans-serif; }
.cm { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cearn { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cearn .cr { display: flex; align-items: center; gap: 3px; }
.cearn .cr b { color: #fff; font-weight: 700; }
.cearn .ic { width: 12px; height: 12px; }
.cearn .ic.cegg { width: 10px; height: 12px; }
.cn { display: block; font-size: clamp(15px, 4.8vw, 18px); line-height: 1.1; color: #fff; text-shadow: 0 2px 0 var(--ink); white-space: nowrap; }
.cmeta { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.rar { display: inline-block; flex: none; padding: 1px 7px; border-radius: 999px; background: var(--rc); color: #1a1530; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; box-shadow: 0 0 10px color-mix(in srgb, var(--rc) 60%, transparent); }
.cr { display: block; color: var(--muted); font-size: clamp(10.5px, 3.3vw, 12px); font-weight: 600; white-space: nowrap; }
.cs { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cp { display: flex; align-items: center; gap: 4px; font: 400 16px/1 'Lilita One', sans-serif; color: #fff; }
.cst { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--muted); text-align: right; display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.cst svg { width: 10px; height: 10px; flex: none; }
.cst.ok { background: var(--ok); color: #053a1f; box-shadow: 0 0 10px rgba(60, 240, 138, .5); }
.cst.lock { background: rgba(0, 0, 0, .35); color: #d4cef7; }
.cbar { position: absolute; left: 12px; right: 12px; bottom: 5px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.cbar i { display: block; height: 100%; background: var(--rc); transform-origin: left; transition: transform .5s linear; }
.more-hens { margin: 10px 2px 0; color: var(--muted); font-size: 12px; }
.more-hens button { border: 0; background: none; color: var(--gold-2); font-weight: 600; padding: 4px 0; text-decoration: underline; }
.auto { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 5px 12px 5px 6px; border-radius: 999px; font-weight: 600; font-size: 13px; }
.auto .sw { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .18); border: 2px solid var(--ink); transition: background .2s; }
.auto .sw::after { content: ''; position: absolute; top: 1px; left: 1px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .28s cubic-bezier(.3, 1.5, .5, 1); }
.auto[aria-pressed="true"] { color: #eaffea; box-shadow: inset 0 0 0 1.5px var(--ok), 0 4px 0 var(--ink), 0 0 14px rgba(60, 240, 138, .35); }
.auto[aria-pressed="true"] .sw { background: var(--ok); }
.auto[aria-pressed="true"] .sw::after { transform: translateX(16px); }
.auto:active { transform: translateY(2px); }

/* the three-step loop and the "do this next" card */
.how { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.how li { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 84px; padding: 10px 4px 8px; border-radius: 16px; text-align: center; }
.how svg { width: 26px; height: 26px; margin-bottom: 2px; filter: drop-shadow(0 0 6px rgba(255, 190, 60, .45)); }
.how li:nth-child(2) svg { width: 22px; height: 26px; }
.how li b { color: #fff; font: 400 clamp(14px, 4.4vw, 16px)/1.05 'Lilita One', sans-serif; letter-spacing: .02em; white-space: nowrap; text-shadow: 0 2px 0 var(--ink); }
.how li small { color: var(--muted); font-size: clamp(10px, 3.2vw, 11.5px); font-weight: 600; line-height: 1.15; white-space: nowrap; }
.how .hn { position: absolute; top: 5px; left: 7px; font: 400 11px/1 'Lilita One', sans-serif; font-style: normal; color: var(--gold-2); opacity: .9; }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: center; margin: 0 0 12px; padding: 10px 12px; border-radius: 18px;
  background: linear-gradient(90deg, rgba(255, 207, 58, .22), var(--panel-2) 60%, var(--panel-3)); border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px var(--gold-2), 0 4px 0 var(--ink), 0 0 20px rgba(255, 190, 60, .25); }
.step .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #2a1400; background: linear-gradient(180deg, #ffe27a, var(--gold-3)); border: 2px solid var(--ink); font: 400 16px/1 'Lilita One', sans-serif; }
.step > span:not(.n) { min-width: 0; }
.step b { display: block; font-size: clamp(15px, 4.8vw, 19px); line-height: 1.15; color: #fff; text-shadow: 0 2px 0 var(--ink); white-space: nowrap; }
.step small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; color: var(--muted); font-size: 12px; margin-top: 2px; }
.step .btn { grid-column: 1 / -1; justify-self: start; position: relative; color: #2a1400; border-color: #5a2c00;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 45%, var(--gold-3)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), 0 4px 0 var(--gold-edge); font: 400 16px/1 'Lilita One', sans-serif; letter-spacing: .03em; }
#step .btn::after { content: "👆"; position: absolute; right: -14px; bottom: -20px; font-size: 26px; pointer-events: none; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .4)); animation: eggTap 1.1s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes eggTap { 0%, 100% { transform: translate(0, 0); } 45% { transform: translate(-4px, -10px); } }

/* sheets, buttons, toast */
.scrim { position: fixed; inset: 0; z-index: 60; background: radial-gradient(120% 80% at 50% 100%, rgba(58, 36, 112, .55), rgba(4, 2, 10, .78)); }
.sheet { position: fixed; left: 50%; bottom: 0; z-index: 61; width: min(560px, 100%); max-height: 86vh; overflow: auto; border-bottom: 0; border-radius: 24px 24px 0 0;
  padding: 10px 16px calc(22px + env(safe-area-inset-bottom)); box-shadow: inset 0 0 0 1.5px var(--rim), 0 -10px 40px rgba(0, 0, 0, .6), 0 0 30px rgba(255, 170, 60, .2); transform: translate(-50%, 0); }
.sheet .grab { width: 46px; height: 5px; border-radius: 5px; background: rgba(255, 210, 110, .45); margin: 0 auto 12px; }
.sheet h3 { margin: 0 0 6px; font-size: 25px; line-height: 1.1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sheet h4 { margin: 12px 0 2px; font: 400 17px 'Lilita One', sans-serif; color: #fff; }
.sheet p { margin: 6px 0; color: var(--muted); }
.sheet p i { font-style: normal; color: var(--gold-2); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin: 12px 0; }
.tile { border-radius: 14px; padding: 8px 10px; }
.tile small { display: block; color: var(--muted); font-size: 11px; }
.tile { min-width: 0; }
.tile b { display: flex; align-items: center; gap: 4px; font-size: clamp(13px, 4.2vw, 17px); line-height: 1.2; color: #fff; white-space: nowrap; }
.steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 8px 10px; border-radius: 14px; }
.steps b { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.steps small { color: var(--muted); text-align: right; }
.steps .done small { color: var(--ok); }
.steps .bar, .sheet .bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.steps .bar i, .sheet .bar i { display: block; height: 100%; background: var(--gold-2); transform-origin: left; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 14px; padding: 9px 14px; min-height: 42px; font-weight: 700; text-decoration: none; color: #fff; }
.btn:active { transform: translateY(3px); box-shadow: inset 0 0 0 1.5px var(--rim), 0 1px 0 var(--ink); }
.btn.gold { color: #2a1400; border-color: #5a2c00; background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 45%, var(--gold-3)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), 0 4px 0 var(--gold-edge); font: 400 16px/1 'Lilita One', sans-serif; letter-spacing: .03em; }
.btn.warn { background: linear-gradient(180deg, #8a2b4a, #4a1226); }
.btns.menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.btns.menu .btn { width: 100%; min-height: 46px; padding: 8px 6px; white-space: nowrap; font-size: clamp(13px, 4vw, 15px); }
.btns.menu .btn.gold, .btns.menu .btn.warn { grid-column: 1 / -1; }
.toast { position: fixed; left: 50%; top: calc(var(--hud-h) + 10px); z-index: 70; width: max-content; max-width: min(440px, calc(100% - 20px)); text-align: center; padding: 9px 16px; border-radius: 18px; font-size: clamp(12.5px, 3.9vw, 14px);
  color: #2a1400; font-weight: 700; background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 50%, var(--gold-3)); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink), 0 0 22px rgba(255, 190, 60, .55); }
.fly { position: fixed; left: 0; top: 0; width: 16px; height: 16px; pointer-events: none; z-index: 50; will-change: transform; }

/* bottom navigation */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: center; gap: 6px; padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(26, 14, 58, .96), rgba(10, 5, 26, .98)); border-top: 2px solid rgba(255, 210, 110, .3); box-shadow: 0 -6px 20px rgba(0, 0, 0, .45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav button { position: relative; flex: 1 1 0; max-width: 170px; min-height: 54px; border: 0; border-radius: 16px; background: transparent; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 400 13px/1 'Lilita One', sans-serif; letter-spacing: .03em; }
.nav svg { width: 24px; height: 24px; }
.nav button[aria-current="page"] { color: #fff; background: linear-gradient(180deg, var(--panel-1), var(--panel-2)); box-shadow: inset 0 0 0 1.5px var(--rim), inset 0 -3px 0 var(--gold-2), 0 0 14px rgba(255, 190, 60, .25); }
.nav button[aria-current="page"] svg { color: var(--gold-2); filter: drop-shadow(0 0 6px rgba(255, 200, 60, .7)); }
.nav .badge { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 20px; padding: 1px 5px; border-radius: 999px; text-align: center; color: #2a1400;
  background: linear-gradient(180deg, #ffe27a, var(--gold-3)); font: 400 10px/1.4 'Lilita One', sans-serif; border: 2px solid var(--ink); box-shadow: 0 0 10px rgba(255, 200, 60, .6); }

/* screens */
.view { max-width: 1100px; margin: 0 auto; padding: 12px 16px 24px; }
.panel { border-radius: 20px; padding: 12px 14px; }
.panel h2, .panel h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.15; }
.panel p { margin: 4px 0; color: var(--muted); }
.panel p i { font-style: normal; color: var(--gold-2); font-weight: 600; }
.rows { display: grid; }
.rows div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid rgba(255, 210, 110, .14); }
.rows div:last-child { border-bottom: 0; }
.rows span { display: flex; align-items: center; gap: 6px; }
.rows small { color: var(--muted); }
.rows b { font-size: 17px; line-height: 1.2; color: #fff; }
.wal { display: grid; gap: 12px; max-width: 640px; }
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
.ladder span { min-width: 0; text-align: center; padding: 6px 2px; border-radius: 12px; font-size: 11px; color: var(--muted); }
.ladder span b { display: block; font: 400 clamp(13px, 4.2vw, 17px)/1.2 'Lilita One', sans-serif; color: #fff; white-space: nowrap; }
.ladder span.now { box-shadow: inset 0 0 0 2px var(--gold-2), 0 4px 0 var(--ink), 0 0 14px rgba(255, 200, 60, .5); }
.ladder span.done { opacity: .45; }
.preview { color: var(--muted); margin: 8px 0 10px; }
.preview b { color: var(--gold-2); }
.log { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.coins { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.coins span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 4px; border-radius: 999px; background: rgba(10, 4, 26, .6); border: 2px solid var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 210, 110, .25); font: 400 12px/1 'Lilita One', sans-serif; }
.coins img { width: 18px; height: 18px; }
.grow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
.grow div { position: relative; padding: 8px 6px; border-radius: 14px; text-align: center; }
.grow div + div::before { content: '\2192'; position: absolute; left: -11px; top: 50%; transform: translateY(-50%); color: var(--gold-2); font-weight: 700; }
.grow b { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 18px; line-height: 1.2; color: #fff; }
.grow small { display: block; color: var(--muted); font-size: 11px; line-height: 1.25; }
.grow .best { box-shadow: inset 0 0 0 2px var(--ok), 0 4px 0 var(--ink), 0 0 14px rgba(60, 240, 138, .35); }
.note { color: var(--muted); font-size: 11.5px; margin: 0; }
.lbl { font-size: 11.5px; color: var(--muted); margin: 0 2px -4px; }
.seg.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .seg.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .seg.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(122px, 1fr)); gap: 8px; margin: 8px 0; }
.form label { display: grid; gap: 3px; font-size: 11.5px; color: var(--muted); }
.form input { width: 100%; min-width: 0; padding: 8px; border-radius: 12px; border: 2.5px solid var(--ink); background: var(--panel-3); color: #fff; font: 600 14px Fredoka, sans-serif; }

@media (min-width: 900px) {
  .play { max-width: 1240px; grid-template-columns: minmax(0, 1.35fr) minmax(380px, 1fr); gap: 20px; align-items: start; }
  .hud .in, .view { max-width: 1240px; }
  .stagecol { position: sticky; top: calc(var(--hud-h) + 12px); }
  .stage { height: min(54vh, 460px); }
}
/* tall phones: stage + buy stay in view while the creature list scrolls under them */
@media (max-width: 899px) and (min-height: 640px) {
  .stagecol { position: sticky; top: var(--hud-h); z-index: 20; margin: -12px -16px 0; padding: 12px 16px 12px; background: #0d0620;
    border-bottom: 2px solid rgba(255, 210, 110, .22); box-shadow: 0 10px 18px rgba(4, 2, 10, .75); }
  .stage { height: clamp(150px, 44vw, 240px); }
}
@media (max-width: 360px) {
  .hud .in, .play, .view { padding-left: 10px; padding-right: 10px; }
  .lv { width: 42px; height: 42px; } .lv span { width: 31px; height: 31px; font-size: 11px; }
  .ib { width: 38px; height: 38px; }
  .card { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 8px; } .pw { width: 50px; height: 50px; }
  .cn { font-size: 16px; }
}
@media (max-width: 320px) { .action { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 360px) { .seg button { font-size: 13px; } .buy { font-size: 19px; } }
@media (max-width: 360px) and (max-width: 899px) and (min-height: 640px) { .stagecol { margin-left: -10px; margin-right: -10px; padding-left: 10px; padding-right: 10px; } }
@media (prefers-reduced-motion: reduce) { .buy::after, .buy.ready, #step .btn::after { animation: none; } }
.about { padding: 0 0 calc(var(--nav-h) + 16px); }
.has-token .about { display: none; }

/* crack bonus screen (crack.js) */
.pk { display: grid; gap: 12px; }
.vline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 7px 12px; border-radius: 18px; }
.vline .big { font-size: clamp(16px, 4.8vw, 21px); line-height: 1.15; color: #fff; text-shadow: 0 2px 0 var(--ink); }
.vline .big em { font-style: normal; color: var(--ok); }
.vline small { flex-basis: 100%; color: var(--muted); font-size: 11.5px; }
.pk-main { display: grid; gap: 12px; }
.pk-side { display: grid; gap: 10px; align-content: start; min-width: 0; }
.bonus { position: relative; border-radius: 22px; overflow: hidden; border: 3px solid var(--ink); background: #0c0618;
  box-shadow: inset 0 0 0 1.5px var(--rim), 0 5px 0 var(--ink), 0 0 30px rgba(255, 170, 60, .25);
  height: max(300px, min(calc((100vw - 32px) * 1.32), calc(100vh - var(--hud-h) - var(--nav-h) - 190px))); }
.bonus canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }
.bn-top { position: absolute; left: 8px; right: 8px; top: 7px; display: flex; align-items: center; gap: 6px; pointer-events: none; }
.bn-chip { padding: 4px 10px; border-radius: 999px; border: 2.5px solid var(--ink); background: rgba(10, 5, 26, .82); box-shadow: inset 0 0 0 1px rgba(255, 210, 110, .45);
  font: 400 13px/1.1 'Lilita One', sans-serif; letter-spacing: .03em; color: #fff; white-space: nowrap; }
.bn-chip.multi { color: #2a1400; background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 50%, var(--gold-3)); box-shadow: 0 0 16px rgba(255, 200, 60, .7); }
.bn-snd { pointer-events: auto; margin-left: auto; width: 36px; height: 36px; border-radius: 12px; }
.bn-skip { position: absolute; right: 8px; bottom: 8px; min-height: 38px; padding: 6px 14px; font: 400 15px/1 'Lilita One', sans-serif; letter-spacing: .04em; }
.bonus .banner { top: 34%; }
.buy.big { min-height: 66px; font-size: 25px; }
.buy:disabled { filter: saturate(.5) brightness(.85); cursor: default; }
.hist { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; }
.hist span { padding: 2px 9px; border-radius: 999px; font: 400 12px/1.5 'Lilita One', sans-serif; border: 2px solid var(--ink); color: #1a1530; background: var(--hc, #ffcf3a); box-shadow: 0 0 8px color-mix(in srgb, var(--hc, #ffcf3a) 60%, transparent); }
.more { border-radius: 16px; padding: 8px 12px; }
.more summary { cursor: pointer; font: 400 15px/1.3 'Lilita One', sans-serif; letter-spacing: .02em; color: var(--gold-2); }
.more[open] summary { margin-bottom: 8px; }
.more .seg { margin: 6px 0; }
.note a { color: var(--gold-2); }
.note b { color: #fff; }
@media (min-width: 900px) {
  .pk-main { grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); align-items: start; }
  .bonus { height: min(70vh, 620px); }
}

/* smallest phones: the rarity chip becomes a dot (the portrait ring and the dot carry the colour), so name and stats
   stay one line each */
@media (max-width: 360px) {
  .card .rar { width: 10px; height: 10px; padding: 0; font-size: 0; border-radius: 50%; border: 2px solid var(--ink); }
  .card { grid-template-columns: 50px minmax(0, 1fr) auto; }
}
@media (max-width: 330px) { .cearn .cw { display: none; } }

/* USDT → Gems exchange (owner 2026-10-17): the ⇄ button in the USDT chip opens the Wallet tab; Exchange · Deposit ·
   Withdraw in one panel; 1 USDT = eggsPerUsd Gems (the Gem price, so the pool backing never breaks) */
.bal.usd { cursor: pointer; }
.ex-go { flex: none; margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border-radius: 10px; border: 2px solid var(--ink); color: #2a1400;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 50%, var(--gold-3)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 2px 0 var(--gold-edge); }
.ex-go svg { width: 17px; height: 17px; }
.ex-go:active { transform: translateY(2px); box-shadow: 0 0 0 var(--gold-edge); }
.ex { display: grid; gap: 12px; }
.ex-tabs { margin-bottom: 2px; }
.ex-pane { display: grid; gap: 12px; }
.ex-flow { display: grid; gap: 6px; }
.ex-box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 0 10px; padding: 10px 14px; border-radius: 16px;
  background: var(--panel-3); border: 2.5px solid var(--ink); box-shadow: inset 0 0 0 1.5px rgba(255, 210, 110, .25); }
.ex-box small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; font-weight: 600; }
.ex-box b { font: 400 clamp(22px, 7vw, 30px)/1.1 'Lilita One', sans-serif; color: #fff; white-space: nowrap; min-width: 0; text-shadow: 0 2px 0 var(--ink); }
.ex-box.get b { color: #ffd6fa; text-shadow: 0 2px 0 var(--ink), 0 0 14px rgba(255, 122, 224, .55); }
.ex-box.get { box-shadow: inset 0 0 0 1.5px rgba(255, 122, 224, .5), 0 0 18px rgba(255, 122, 224, .18); }
.ex-unit { display: inline-flex; align-items: center; gap: 5px; font: 400 15px/1 'Lilita One', sans-serif; color: var(--muted); white-space: nowrap; }
.ex-unit .ic { width: 18px; height: 18px; }
.ex-bonus { display: inline-block; margin-left: 6px; vertical-align: 1px; padding: 1px 8px; border-radius: 999px; font: 400 11px/1.4 'Lilita One', sans-serif; font-style: normal; color: #053a1f; background: var(--ok); box-shadow: 0 0 10px rgba(60, 240, 138, .55); }
.ex-arrow { justify-self: center; width: 34px; height: 34px; margin: -10px 0; z-index: 1; display: grid; place-items: center; border-radius: 50%; border: 2.5px solid var(--ink); color: #2a1400;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 50%, var(--gold-3)); box-shadow: 0 2px 0 var(--gold-edge); }
.ex-arrow svg { width: 18px; height: 18px; }
.ex-rate { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
.ex-lead { margin: 0; color: var(--muted); }
.ex-lead i { font-style: normal; color: var(--gold-2); font-weight: 700; }
a.buy { text-decoration: none; }
.invite-btn { justify-self: stretch; min-height: 46px; }

/* the engine's cashier / invite / profile in a frame of the game (index.html embed()) */
.emb { min-height: 120px; }
.emb-frame { display: block; width: 100%; height: 420px; border: 0; background: transparent; color-scheme: dark; }
.emb-wait { margin: 0; padding: 30px 0; text-align: center; color: var(--muted); }
.emb-view { max-width: 680px; }
.ex-tabs.n4 button { font-size: clamp(11px, 3.4vw, 14px); }
.nav button { font-size: clamp(11px, 3.4vw, 13px); }
.nav svg { width: 22px; height: 22px; }
.emb-in { display: block; margin: 0 auto 18px; max-width: 260px; }

/* money history (index.html renderMoney): rows as small game panels, page buttons 1 2 3 …, the newest line under EXCHANGE */
.hl { display: grid; gap: 7px; transition: opacity .15s; }
.hl.busy { opacity: .55; }
.hl-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px;
  background: linear-gradient(180deg, #2a1856, #170c34); border: 2.5px solid var(--ink, #120a24);
  box-shadow: inset 0 0 0 1.5px rgba(255, 210, 110, .18), 0 3px 0 var(--ink, #120a24); }
.hl-row > .ic { width: 24px; height: 24px; }
.hl-m { display: grid; gap: 3px; min-width: 0; }
.hl-m b { font: 400 15px/1.1 'Lilita One', sans-serif; letter-spacing: .02em; color: #fff; }
.hl-m small { font-size: 11.5px; line-height: 1.25; color: var(--muted); }
.hl-amt { font: 400 15px/1 'Lilita One', sans-serif; letter-spacing: .01em; color: #fff; white-space: nowrap; }
.hl-amt.in { color: #3cf08a; }
.hl-empty { margin: 6px 0 12px; text-align: center; color: var(--muted); font-size: 13px; }
.hl-dep { width: 100%; }
.hl-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.hl-pages button { min-width: 38px; height: 38px; padding: 0 8px; border-radius: 12px; border: 2.5px solid var(--ink, #120a24); color: #c2b6e6; cursor: pointer;
  font: 400 15px/1 'Lilita One', sans-serif; background: linear-gradient(180deg, #2a1856, #170c34); box-shadow: inset 0 0 0 1.5px rgba(255, 210, 110, .2), 0 3px 0 var(--ink, #120a24); }
.hl-pages button[aria-current="page"] { color: #2a1400; background: linear-gradient(180deg, #ffe27a, #ffcf3a 60%, #f59a12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 3px 0 #5a2c00; }
.hl-pages span { align-self: center; color: var(--muted); padding: 0 2px; }
.hl-last { display: grid; gap: 7px; margin-top: 14px; }
.hl-cap { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.hl-all { justify-self: center; padding: 6px 14px; border: 0; background: none; color: #ffcf3a; cursor: pointer; font: 400 15px/1 'Lilita One', sans-serif; letter-spacing: .03em; }
.hl-all:active { transform: translateY(1px); }
@media (max-width: 360px) { .hl-row { gap: 8px; padding: 8px 10px; grid-template-columns: 22px minmax(0, 1fr) auto; } .hl-row > .ic { width: 20px; height: 20px; } .hl-m b, .hl-amt { font-size: 14px; } .hl-m small { font-size: 11px; } }
