:root {
  --ink: #2B2140;
  --ink2: #5E5373;
  --cream: #FFF7EC;
  --paper: #FFFFFF;
  --pink: #FF5C8A;
  --pink2: #FFD6E2;
  --mint: #8FE3C4;
  --sun: #FFD23F;
  --lilac: #C6A8FF;
  --sky: #8CCBFF;
  --grass: #9ED87A;
  --common: #9A93A8;
  --uncommon: #3FBF8A;
  --rare: #3E9BFF;
  --epic: #9B5CFF;
  --legendary: #F0A400;
  --r: 22px;
  --shadow: 4px 4px 0 var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 500 16px/1.5 Nunito, system-ui, sans-serif;
  background-image: radial-gradient(#F3E6D2 1.2px, transparent 1.2px); background-size: 22px 22px;
  overflow-x: hidden;
}
h1, h2, h3, .brand, .btn, .tag, .pill { font-family: Fredoka, Nunito, sans-serif; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
a { color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--ink2); }

.card { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink);
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .08s, box-shadow .08s; white-space: nowrap;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.hot { background: var(--pink); color: #fff; }
.btn.ghost { box-shadow: none; }
.btn.small { padding: 6px 12px; font-size: 14px; }
.iconbtn { border: 0; background: none; cursor: pointer; font-size: 20px; color: var(--ink2); padding: 4px 8px; border-radius: 10px; }
.iconbtn:hover { background: #F3ECF9; color: var(--ink); }

/* header */
.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  padding: 10px max(16px, calc((100vw - 1180px) / 2)); background: rgba(255, 247, 236, .92); backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 700; text-decoration: none; letter-spacing: .5px; }
.logo { width: 44px; height: 44px; display: block; }
.logo svg { width: 100%; height: 100%; }
.links { display: flex; gap: 18px; font-weight: 700; }
.links a { text-decoration: none; }
.links a:hover { color: var(--pink); }
.sp { flex: 1; }
.top .x { padding: 8px 12px; font-size: 18px; }

main { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; padding: 48px 0 28px; }
.pill { display: inline-block; background: var(--sun); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
h1 { font-size: clamp(52px, 8vw, 96px); font-weight: 700; letter-spacing: -1px; }
h1 em { font-style: normal; color: var(--pink); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); }
.lead { font-size: 19px; max-width: 520px; margin: 18px 0 22px; }
.find { display: flex; gap: 10px; max-width: 540px; }
.find input, .say input, .rename input {
  flex: 1; min-width: 0; padding: 12px 16px; border: 3px solid var(--ink); border-radius: 999px; font: inherit; font-weight: 700; background: #fff; color: var(--ink);
}
.find input:focus, .say input:focus { outline: 3px solid var(--pink2); }
.or { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: var(--ink2); font-weight: 700; }
.err { color: #D62D5B; font-weight: 700; min-height: 24px; margin: 10px 0 0; }
.hero-art { position: relative; height: 430px; }
.hero-art .hp { position: absolute; width: 190px; transition: transform .3s; }
.hero-art .hp svg { width: 100%; height: auto; overflow: visible; }
.hero-art .hp .say { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); }

/* speech bubbles */
.bubble, .say-b {
  background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 8px 12px; font-weight: 700; font-size: 14px; line-height: 1.3;
  box-shadow: 3px 3px 0 var(--ink); max-width: 240px; width: max-content; position: relative;
}
.bubble::after, .say-b::after {
  content: ""; position: absolute; left: 50%; bottom: -11px; width: 14px; height: 14px; background: #fff; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: translateX(-50%) rotate(45deg);
}
.say-b { font-size: 13px; padding: 6px 10px; animation: pop .25s ease-out; }
@keyframes pop { from { transform: translateX(-50%) scale(.6); opacity: 0; } }

/* pet animation */
.pet.alive .bob { animation: bob 2.6s ease-in-out infinite; }
.pet.alive.floaty .bob { animation: floaty 3.2s ease-in-out infinite; }
.pet.alive .blink { animation: blink 4.8s infinite; }
.pet.alive .wobble { animation: wobble 2.2s ease-in-out infinite; }
.pet.alive .pulse { animation: pulse 2.4s ease-in-out infinite; }
.pet.alive .twinkle { animation: twinkle 1.8s ease-in-out infinite; }
.pet.alive .twinkle.d2 { animation-delay: .6s; }
.pet.alive .twinkle.d3 { animation-delay: 1.2s; }
.pet.alive .spin { animation: spin .6s linear infinite; }
.pet.alive .float { animation: hover 2s ease-in-out infinite; }
.pet.alive .wing > :first-child { transform-origin: 58px 126px; animation: flapL .5s ease-in-out infinite alternate; }
.pet.alive .wing > :last-child { transform-origin: 142px 126px; animation: flapR .5s ease-in-out infinite alternate; }
.pet .bob, .pet .blink, .pet .wobble, .pet .pulse, .pet .twinkle, .pet .spin, .pet .float, .pet .wing > *, .pet .spinslow, .pet .orbit, .pet .rise, .pet .flicker { transform-box: view-box; }
.pet.alive .float.d2, .pet.alive .rise.d2, .pet.alive .flicker.d2 { animation-delay: .7s; }
.pet.alive .float.d3, .pet.alive .rise.d3, .pet.alive .flicker.d3 { animation-delay: 1.4s; }
.pet.alive .rise.d4 { animation-delay: 2.1s; }
.pet.alive .spinslow { animation: spin 24s linear infinite; }
.pet.alive .orbit { animation: spin 9s linear infinite; }
.pet.alive .rise { animation: rise 2.8s ease-in infinite; }
.pet.alive .flicker { animation: flicker 1.1s ease-in-out infinite alternate; }
.pet.alive .march { animation: march 1.6s linear infinite; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-120px); opacity: 0; } }
@keyframes flicker { from { transform: scale(.9, .85); opacity: .55; } to { transform: scale(1.05, 1.08); opacity: .9; } }
@keyframes march { to { stroke-dashoffset: -28; } }
@keyframes bob { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.04, .96); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes wobble { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-6deg); } 84% { transform: rotate(6deg); } 92% { transform: rotate(-3deg); } }
@keyframes pulse { 0%, 100% { transform: scale(.94); opacity: .85; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes twinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .4; } 50% { transform: scale(1.1) rotate(20deg); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes flapL { to { transform: rotate(-14deg); } }
@keyframes flapR { to { transform: rotate(14deg); } }
.pet.hop .bob { animation: hop .5s ease-out; }
@keyframes hop { 30% { transform: translateY(-24px) scale(.95, 1.05); } 60% { transform: translateY(0) scale(1.08, .92); } }

/* my pet */
.me { padding: 18px 0 30px; scroll-margin-top: 80px; }
.me-card { display: grid; grid-template-columns: 1fr 1.05fr; overflow: hidden; }
.room { position: relative; min-height: 460px; background: linear-gradient(#FFE9D6 0 64%, #F2C9A0 64% 100%); border-right: 3px solid var(--ink); overflow: hidden; }
.room .window { position: absolute; left: 10%; top: 9%; width: 30%; aspect-ratio: 1; background: linear-gradient(#9FD8FF, #D9F1FF); border: 4px solid var(--ink); border-radius: 50% 50% 10px 10px; overflow: hidden; }
.room .window i { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; background: var(--ink); }
.room .window::after { content: ""; position: absolute; left: 0; right: 0; top: 55%; height: 4px; background: var(--ink); }
.room .frame { position: absolute; right: 12%; top: 14%; width: 22%; aspect-ratio: 1.2; border: 4px solid var(--ink); border-radius: 8px; background: repeating-linear-gradient(45deg, #FFD6E2 0 10px, #FFC0D3 10px 20px); }
.room .rug { position: absolute; left: 50%; bottom: 7%; width: 74%; height: 13%; transform: translateX(-50%); background: #C6A8FF; border: 4px solid var(--ink); border-radius: 50%; box-shadow: inset 0 0 0 10px #B394F5; }
.petbox { position: absolute; left: 50%; bottom: 8%; width: min(84%, 380px); transform: translateX(-50%); }
.petbox svg { width: 100%; height: auto; display: block; overflow: visible; cursor: pointer; }
.room .bubble { position: absolute; left: 50%; top: 6%; transform: translateX(-50%); z-index: 3; max-width: 82%; font-size: 15px; animation: pop .25s ease-out; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -10px; width: 10px; height: 14px; border: 2px solid var(--ink); border-radius: 3px; animation: fall 1.6s ease-in forwards; }
@keyframes fall { to { transform: translateY(520px) rotate(540deg); } }

.me-info { padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.me-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pname { font-size: 40px; display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.bio { margin: 6px 0 0; color: var(--ink2); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 2px solid var(--ink); background: #F6F0FF; }
.tag.r-common { background: #EEEAF3; }
.tag.r-uncommon { background: #CFF5E3; }
.tag.r-rare { background: #D2E8FF; }
.tag.r-epic { background: #E6D6FF; }
.tag.r-legendary { background: linear-gradient(90deg, #FFE27A, #FFC93A); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { border: 2px solid var(--ink); border-radius: 14px; padding: 8px 10px; background: #FFFBF4; min-width: 0; }
.stat b { display: block; font-family: Fredoka, sans-serif; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { font-size: 12px; color: var(--ink2); font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.meter { height: 12px; border: 2px solid var(--ink); border-radius: 99px; background: #fff; overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, #FF9EC4, #FF5C8A); border-radius: 99px; transition: width .6s; }
.stat.wide { grid-column: span 3; }
.letter { background: #FFFDF5; border: 3px dashed var(--ink); border-radius: 16px; padding: 16px 18px; font-family: Fredoka, sans-serif; font-size: 19px; transform: rotate(-1deg); }
.letter small { display: block; margin-top: 10px; font-family: Nunito, sans-serif; font-size: 14px; color: var(--ink2); }
.none { background: #F6F0FF; border: 2px solid var(--ink); border-radius: 16px; padding: 14px 16px; font-weight: 700; }
.talk { border: 2px solid var(--ink); border-radius: 18px; padding: 10px; background: #FFFBF4; }
.log { max-height: 170px; min-height: 60px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 2px 2px 8px; }
.log .m { max-width: 85%; padding: 6px 12px; border-radius: 16px; font-weight: 700; font-size: 14.5px; border: 2px solid var(--ink); }
.log .m.you { align-self: flex-end; background: var(--pink); color: #fff; border-bottom-right-radius: 4px; }
.log .m.pet { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.log .m.typing { color: var(--ink2); }
.log .hint { color: var(--ink2); font-size: 14px; font-weight: 700; text-align: center; margin: auto; }
.say { display: flex; gap: 8px; }
.say input { padding: 9px 14px; }
.say .btn { padding: 8px 16px; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; }
.note { margin: 0; color: var(--ink2); font-size: 14px; font-weight: 700; min-height: 20px; }
.rename { display: flex; gap: 8px; }
.rename input { padding: 6px 12px; font-size: 18px; width: 180px; flex: none; }

/* park */
.sec-h { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 30px 0 14px; flex-wrap: wrap; }
.sec-h h2 { font-size: 42px; }
.sec-h p { margin: 0; font-weight: 700; }
.park-sec { scroll-margin-top: 90px; }
.park-wrap { display: grid; grid-template-columns: 1fr; gap: 18px; }
.park { position: relative; height: 660px; overflow: hidden; background: linear-gradient(#9FD8FF, #DDF2FF 45%, #F4FBFF 60%); }
.sky .sun { position: absolute; right: 9%; top: 9%; width: 70px; height: 70px; border-radius: 50%; background: #FFE07A; border: 3px solid var(--ink); box-shadow: 0 0 0 10px rgba(255, 224, 122, .35); }
.cloud { position: absolute; height: 26px; background: #fff; border: 3px solid var(--ink); border-radius: 30px; animation: drift 60s linear infinite; }
.cloud::before { content: ""; position: absolute; left: 18%; top: -18px; width: 40%; height: 34px; background: #fff; border: 3px solid var(--ink); border-bottom: 0; border-radius: 30px 30px 0 0; }
.cloud.c1 { top: 12%; width: 110px; left: -10%; }
.cloud.c2 { top: 24%; width: 80px; left: 30%; animation-duration: 80s; animation-delay: -30s; }
.cloud.c3 { top: 8%; width: 90px; left: 60%; animation-duration: 70s; animation-delay: -50s; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }
.hill { position: absolute; border: 3px solid var(--ink); border-radius: 50%; }
.hill.h1 { left: -15%; bottom: 30%; width: 70%; height: 46%; background: #B7E39A; }
.hill.h2 { right: -20%; bottom: 28%; width: 80%; height: 52%; background: #A6DB86; }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 44%; background: linear-gradient(#9ED87A, #8BCB66); border-top: 3px solid var(--ink); }
.tree { position: absolute; bottom: 40%; width: 16px; height: 60px; background: #A97848; border: 3px solid var(--ink); border-radius: 4px; z-index: 1; }
.tree i { position: absolute; left: 50%; bottom: 44px; width: 86px; height: 86px; transform: translateX(-50%); background: #6FC27A; border: 3px solid var(--ink); border-radius: 50%; box-shadow: inset -10px -8px 0 #5BAE67; }
.tree.t1 { left: 8%; } .tree.t2 { left: 30%; height: 44px; } .tree.t2 i { bottom: 30px; width: 66px; height: 66px; } .tree.t3 { right: 22%; }
.pond { position: absolute; right: 4%; bottom: 22%; width: 24%; height: 12%; background: #8CCBFF; border: 3px solid var(--ink); border-radius: 50%; z-index: 2; box-shadow: inset 0 -6px 0 #6BB4F0; }
.claw-mini { position: absolute; left: 44%; bottom: 40%; width: 52px; height: 84px; background: var(--pink); border: 3px solid var(--ink); border-radius: 10px 10px 4px 4px; z-index: 1; }
.claw-mini i { position: absolute; left: 6px; right: 6px; top: 8px; height: 40px; background: #DFF4FF; border: 3px solid var(--ink); border-radius: 6px; }
.walkers { position: absolute; inset: 0; z-index: 3; }
.walker { position: absolute; width: 124px; transform: translateX(-50%); transition-property: left, bottom; transition-timing-function: linear; cursor: pointer; }
.walker .body { transition: transform .2s; }
.walker.flip .body { transform: scaleX(-1); }
.walker svg { width: 100%; height: auto; display: block; overflow: visible; }
.walker .nm { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); font: 600 12px Fredoka, sans-serif; background: rgba(255, 255, 255, .9); border: 2px solid var(--ink); border-radius: 99px; padding: 0 7px; white-space: nowrap; }
.walker .nm.r-rare { background: #D2E8FF; } .walker .nm.r-epic { background: #E6D6FF; } .walker .nm.r-legendary { background: #FFE27A; }
.walker .say-b { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); z-index: 5; max-width: 200px; }
.walker .say-b.edge-r { left: auto; right: 0; transform: none; animation: none; }
.walker .say-b.edge-l { left: 0; transform: none; animation: none; }
.walker .say-b.edge-r::after { left: auto; right: 30px; }
.walker .say-b.edge-l::after { left: 40px; }
.walker.stray { opacity: .82; }
.peek { position: absolute; z-index: 10; left: 50%; top: 14px; transform: translateX(-50%); display: flex; gap: 12px; align-items: center; background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 10px 14px; box-shadow: var(--shadow); max-width: 92%; }
.peek svg { width: 64px; height: 64px; flex: none; }
.peek b { font: 600 18px Fredoka, sans-serif; }
.peek p { margin: 2px 0 6px; font-size: 13px; font-weight: 700; color: var(--ink2); }

.news { display: flex; flex-direction: column; padding: 14px; height: 340px; }
.news-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.live { display: inline-flex; align-items: center; gap: 6px; font: 600 13px Fredoka, sans-serif; color: #D62D5B; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: #FF3D6E; animation: blinkdot 1.2s infinite; }
@keyframes blinkdot { 50% { opacity: .3; } }
.feed { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.feed li { border: 2px solid var(--ink); border-radius: 14px; padding: 8px 10px; font-size: 14px; font-weight: 700; background: #FFFBF4; }
.feed li.gossip { background: #F6F0FF; }
.feed li.gone { background: #FFEDEF; }
.feed li.prize, .feed li.evolve { background: #FFF6D6; }
.feed .ln { display: flex; gap: 6px; align-items: flex-start; }
.feed .ln + .ln { margin-top: 4px; }
.feed .ln b { flex: none; cursor: pointer; }
.feed .ln b:hover { color: var(--pink); }
.feed time { display: block; font-size: 11px; color: var(--ink2); margin-top: 3px; }
.feed .empty { background: none; border: 0; color: var(--ink2); text-align: center; }

.boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.board { padding: 14px 16px; }
.board h3 { font-size: 22px; margin-bottom: 8px; }
.board ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.board li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 14px; }
.board li:hover { background: #F6F0FF; }
.board li .rk { width: 20px; color: var(--ink2); font-family: Fredoka, sans-serif; }
.board li svg { width: 40px; height: 40px; flex: none; }
.board li .nn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board li .vv { color: var(--ink2); font-size: 13px; white-space: nowrap; }
.board .empty { color: var(--ink2); cursor: default; }

/* how */
.how { scroll-margin-top: 70px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 18px; }
.step .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); font: 700 18px Fredoka, sans-serif; margin-bottom: 8px; }
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink2); font-weight: 700; }

/* coin */
.coin { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: center; padding: 24px; margin: 40px 0; background: linear-gradient(135deg, #FFE0EC, #EDE3FF); scroll-margin-top: 80px; }
.coin-art svg { width: 100%; height: auto; overflow: visible; }
.coin h2 { font-size: 48px; }
.coin p { font-weight: 700; }
.ca { display: flex; gap: 8px; align-items: center; background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 6px 6px 6px 16px; max-width: 560px; }
.ca code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.coin-btns { display: flex; gap: 10px; margin: 16px 0 6px; flex-wrap: wrap; }
.fine { font-size: 13px; color: var(--ink2); }

.foot { display: flex; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 22px 16px 40px; font: 600 16px Fredoka, sans-serif; color: var(--ink2); }

/* modals */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(43, 33, 64, .45); padding: 16px; }
.modal .card { position: relative; padding: 20px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
.modal h3 { font-size: 28px; }
.modal .close { position: absolute; right: 10px; top: 10px; }

.machine { margin-top: 10px; }
.glass { position: relative; height: 330px; border: 4px solid var(--ink); border-radius: 18px; background: linear-gradient(#DFF4FF, #F4FBFF 70%); overflow: hidden; }
.glass::before { content: ""; position: absolute; left: 14px; top: 10px; width: 16px; bottom: 30%; border-radius: 8px; background: rgba(255, 255, 255, .7); }
.rail { position: absolute; left: 0; right: 0; top: 0; height: 18px; background: var(--pink); border-bottom: 4px solid var(--ink); }
.claw { position: absolute; top: 12px; left: 50%; width: 60px; margin-left: -30px; z-index: 4; transition: left .25s; }
.cable { width: 6px; height: 30px; margin: 0 auto; background: #8A8FA3; border: 2px solid var(--ink); border-top: 0; transition: height .9s ease-in-out; }
.head { position: relative; width: 44px; height: 18px; margin: -2px auto 0; background: #C3CAD6; border: 3px solid var(--ink); border-radius: 10px 10px 4px 4px; }
.head i { position: absolute; top: 10px; width: 10px; height: 34px; border: 3px solid var(--ink); background: #C3CAD6; border-radius: 0 0 8px 8px; transition: transform .3s; }
.head i.l { left: -4px; transform-origin: top center; transform: rotate(24deg); }
.head i.r { right: -4px; transform-origin: top center; transform: rotate(-24deg); }
.claw.shut .head i.l { transform: rotate(8deg); }
.claw.shut .head i.r { transform: rotate(-8deg); }
.held { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 8px; width: 56px; }
.pile { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; }
.pile .it { position: absolute; width: 58px; transition: opacity .2s; }
.pile .it svg { width: 100%; height: auto; display: block; }
.chute { position: absolute; right: 0; bottom: 0; width: 70px; height: 70px; background: rgba(43, 33, 64, .12); border-left: 4px solid var(--ink); border-top: 4px solid var(--ink); border-radius: 12px 0 0 0; }
.controls { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.controls .drop { padding: 12px 34px; font-size: 20px; }
.won { text-align: center; margin-top: 14px; padding: 14px; border: 3px solid var(--ink); border-radius: 18px; background: #FFFBF4; animation: pop2 .35s ease-out; }
@keyframes pop2 { from { transform: scale(.7); opacity: 0; } }
.won svg { width: 110px; height: 110px; }
.won b { display: block; font: 700 24px Fredoka, sans-serif; }
.won.r-legendary { background: linear-gradient(135deg, #FFF3B8, #FFD866); }
.won.r-epic { background: #F0E6FF; }
.won.r-rare { background: #E2F0FF; }

.closet { display: grid; grid-template-columns: 200px 1fr; gap: 16px; margin-top: 12px; }
.closet-pet { background: linear-gradient(#FFE9D6, #FFF7EC); border: 3px solid var(--ink); border-radius: 18px; align-self: start; }
.closet-pet svg { width: 100%; height: auto; display: block; overflow: visible; }
.closet-items h4 { margin: 0 0 6px; font: 600 16px Fredoka, sans-serif; }
.closet-items .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; margin-bottom: 14px; }
.slot { position: relative; border: 2px solid var(--ink); border-radius: 14px; background: #fff; padding: 4px 2px 2px; cursor: pointer; text-align: center; font-size: 11px; font-weight: 800; line-height: 1.1; }
.slot svg { width: 52px; height: 52px; display: block; margin: 0 auto; }
.slot.on { background: var(--pink2); box-shadow: inset 0 0 0 2px var(--pink); }
.slot.r-rare { border-color: var(--rare); } .slot.r-epic { border-color: var(--epic); } .slot.r-legendary { border-color: var(--legendary); border-width: 3px; }
.closet-items .empty { color: var(--ink2); font-weight: 700; font-size: 14px; margin: 0 0 14px; }

.share-box img { width: 100%; border: 3px solid var(--ink); border-radius: 14px; margin: 12px 0; display: block; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 18px; font-weight: 800; box-shadow: 3px 3px 0 var(--pink); width: max-content; max-width: min(520px, calc(100vw - 32px)); text-align: center; }

/* phones and tablets */
@media (max-width: 900px) {
  .links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 26px; }
  .hero-art { height: 300px; order: -1; }
  .hero-art .hp { width: 130px; }
  .me-card { grid-template-columns: 1fr; }
  .room { min-height: 340px; border-right: 0; border-bottom: 3px solid var(--ink); }
  .park-wrap { grid-template-columns: 1fr; }
  .news { height: 340px; }
  .boards, .steps { grid-template-columns: 1fr; }
  .coin { grid-template-columns: 1fr; }
  .coin-art { max-width: 200px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .top { gap: 8px; }
  .brand { font-size: 22px; }
  .logo { width: 36px; height: 36px; }
  .top .btn { padding: 7px 12px; font-size: 14px; }
  .find { flex-direction: column; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat.wide { grid-column: span 2; }
  .pname { font-size: 32px; }
  .park { height: 480px; }
  .walker { width: 92px; }
  .sec-h h2 { font-size: 34px; }
  .closet { grid-template-columns: 1fr; }
  .closet-pet { max-width: 180px; margin: 0 auto; }
  .glass { height: 290px; }
}
@media (prefers-reduced-motion: reduce) {
  .pet.alive .bob, .pet.alive .blink, .pet.alive .wobble, .pet.alive .twinkle, .pet.alive .pulse, .cloud { animation: none !important; }
  .walker { transition-duration: 0s !important; }
}

/* ---------- launchpad, market, my stuff ---------- */
.top .sign { padding: 8px 14px; font-size: 15px; }
.top .sign.in { background: var(--sun); }
.sub-h { font-size: 24px; margin: 24px 0 12px; }
.stuff, .launch-sec, .market-sec { scroll-margin-top: 80px; }
.stuff-top { display: grid; grid-template-columns: 260px 1fr 1fr; gap: 18px; }
.treats { padding: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.treats b { font: 700 46px Fredoka, sans-serif; line-height: 1; }
.treats b::before { content: ""; display: inline-block; width: 34px; height: 34px; margin-right: 8px; vertical-align: -2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23E9A867' stroke='%232B2140' stroke-width='2'/%3E%3Ccircle cx='8.5' cy='9' r='1.6' fill='%232B2140'/%3E%3Ccircle cx='15' cy='10' r='1.6' fill='%232B2140'/%3E%3Ccircle cx='10' cy='15.5' r='1.6' fill='%232B2140'/%3E%3Ccircle cx='15.5' cy='15' r='1.6' fill='%232B2140'/%3E%3C/svg%3E") center / contain no-repeat; }
.treats p { margin: 0; font-size: 13px; font-weight: 700; }
.todo { grid-column: 1 / -1; }
.found-sec { margin-top: 8px; }
.eggshop { padding: 16px; display: flex; gap: 14px; align-items: center; }
.eggshop .egg-art { width: 110px; flex: none; }
.eggshop .egg-art svg { width: 100%; height: auto; display: block; }
.eggshop h3, .todo h3 { font-size: 22px; }
.eggshop p { margin: 4px 0 10px; font-weight: 700; font-size: 14px; }
.todo { padding: 16px; }
.todo .it { display: flex; align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: 14px; padding: 8px 10px; margin-top: 8px; font-weight: 700; font-size: 14px; background: #FFFBF4; }
.todo .it svg { width: 44px; height: 44px; flex: none; }
.todo .it .tx { flex: 1; min-width: 0; }
.todo .it .btn { padding: 5px 12px; font-size: 13px; }
.todo .empty { color: var(--ink2); font-weight: 700; font-size: 14px; margin: 8px 0 0; }

.grid-pets { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.pcard { background: #fff; border: 3px solid var(--ink); border-radius: 20px; box-shadow: var(--shadow); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; transition: transform .1s; min-width: 0; }
.pcard:hover { transform: translateY(-3px); }
.pcard .art { background: linear-gradient(#FFF1E2, #FFF9F1); border: 2px solid var(--ink); border-radius: 14px; aspect-ratio: 1.15; display: grid; place-items: center; overflow: hidden; position: relative; }
.pcard .art svg { width: 82%; height: auto; overflow: visible; }
.pcard .art.r-rare { background: linear-gradient(#E2F0FF, #F5FAFF); }
.pcard .art.r-epic { background: linear-gradient(#EFE4FF, #FAF6FF); }
.pcard .art.r-legendary { background: linear-gradient(#FFF0B0, #FFFAE6); }
.pcard .badge { position: absolute; left: 8px; top: 8px; font: 600 12px Fredoka, sans-serif; background: #fff; border: 2px solid var(--ink); border-radius: 99px; padding: 0 8px; }
.pcard .badge.gold { background: var(--sun); }
.pcard .badge.sale { left: auto; right: 8px; background: var(--pink); color: #fff; }
.pcard h4 { margin: 0; font: 600 20px Fredoka, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .meta { font-size: 13px; font-weight: 800; color: var(--ink2); }
.pcard .price { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 600 18px Fredoka, sans-serif; }
.pcard .price small { font: 800 12px Nunito, sans-serif; color: var(--ink2); display: block; }
.pcard .btns { display: flex; gap: 6px; flex-wrap: wrap; }
.pcard .btns .btn { padding: 6px 12px; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); }
.grid-pets .empty { color: var(--ink2); font-weight: 700; grid-column: 1 / -1; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { border: 2px solid var(--ink); background: #fff; border-radius: 99px; padding: 4px 12px; font: 600 14px Fredoka, sans-serif; cursor: pointer; color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; }
.divider { width: 2px; height: 22px; background: var(--ink2); opacity: .3; margin: 0 4px; }

.launch-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.launch-form { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.launch-form label, .mform label { display: flex; flex-direction: column; gap: 4px; font: 600 15px Fredoka, sans-serif; min-width: 0; }
.launch-form input, .launch-form textarea, .mform input, .mform select {
  border: 3px solid var(--ink); border-radius: 14px; padding: 10px 12px; font: 700 15px Nunito, sans-serif; background: #fff; color: var(--ink); width: 100%;
}
.launch-form textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file span { border: 3px dashed var(--ink); border-radius: 14px; padding: 10px 12px; font: 700 15px Nunito, sans-serif; cursor: pointer; background: #FFFBF4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn.big { padding: 14px 20px; font-size: 20px; }
.founder-card { padding: 18px; background: linear-gradient(135deg, #FFF3C4, #FFE0EC); }
.founder-art { width: 200px; margin: -6px auto 4px; }
.founder-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.founder-card h3 { font-size: 24px; text-align: center; }
.perks { margin: 10px 0 0; padding-left: 20px; font-weight: 700; display: flex; flex-direction: column; gap: 6px; }

.seg { display: flex; border: 3px solid var(--ink); border-radius: 99px; overflow: hidden; }
.seg label { flex: 1; display: block !important; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 8px; font: 600 15px Fredoka, sans-serif; cursor: pointer; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.mform { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 10px 0; max-height: 260px; overflow-y: auto; }
.pick button { border: 2px solid var(--ink); border-radius: 14px; background: #fff; padding: 4px; cursor: pointer; font: 600 12px Fredoka, sans-serif; }
.pick button svg { width: 100%; height: auto; display: block; }
.pick button.on { background: var(--pink2); box-shadow: inset 0 0 0 3px var(--pink); }
.pick .empty { grid-column: 1 / -1; color: var(--ink2); font-weight: 700; }
.listing-box { border: 3px solid var(--ink); border-radius: 16px; padding: 10px 12px; background: #FFF6D6; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.listing-box b { font: 600 20px Fredoka, sans-serif; }

@media (max-width: 900px) {
  .stuff-top, .launch-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-pets { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcard { padding: 8px; }
  .pcard h4 { font-size: 16px; }
  .row2 { grid-template-columns: 1fr; }
  .top .sign { padding: 7px 10px; font-size: 13px; }
  #buyTop { display: none; }
}

/* ---------- inventory ---------- */
.inv-tabs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 24px 0 12px; }
.inv-tabs .chip { font-size: 18px; padding: 6px 16px; }
.inv-tabs .see-all { margin-left: auto; font: 600 15px Fredoka, sans-serif; color: var(--pink); }
.slot-h { font: 600 20px Fredoka, sans-serif; margin: 16px 0 8px; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.icard { --g1: #FBF8FF; --g2: #ECE6F3; --rim: var(--ink); position: relative; background: #fff; border: 3px solid var(--ink); border-radius: 20px; padding: 8px 8px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: 3px 3px 0 var(--ink); transition: transform .18s, box-shadow .18s; }
.icard:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 5px 7px 0 var(--ink); }
.icard:hover .iart { animation: floaty 1.6s ease-in-out infinite; }
.icard.r-uncommon { --g1: #EFFFF7; --g2: #BDEFD6; }
.icard.r-rare { --g1: #EEF6FF; --g2: #A9D2FF; }
.icard.r-epic { --g1: #F6EEFF; --g2: #C9A6FF; background: linear-gradient(180deg, #fff, #FAF5FF); }
.icard.r-legendary { --g1: #FFFBE6; --g2: #FFC93A; background: linear-gradient(180deg, #FFFDF2, #FFF4CC); border-color: #8A5A00; box-shadow: 3px 3px 0 #8A5A00, 0 0 0 3px #FFE27A; }
.ishow { position: relative; width: 100%; height: 112px; border-radius: 14px; border: 2px solid var(--ink); overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, var(--g1) 0 30%, var(--g2) 100%); }
.ishow::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 10px; height: 12px; border-radius: 50%; background: rgba(43, 33, 64, .16); }
.icard.r-legendary .ishow::after { background: radial-gradient(#FFE27A, #E0A100); height: 14px; border: 2px solid #8A5A00; }
.iart { position: relative; z-index: 2; width: 84px; height: 84px; display: grid; place-items: center; filter: drop-shadow(0 3px 0 rgba(43, 33, 64, .18)); }
.iart svg { width: 100%; height: 100%; overflow: visible; }
.iart.skin { width: 100px; height: 100px; margin-top: 6px; }
.icard.r-rare .iart { filter: drop-shadow(0 0 8px rgba(62, 155, 255, .55)); }
.icard.r-epic .iart { filter: drop-shadow(0 0 10px rgba(155, 92, 255, .6)); }
.icard.r-legendary .iart { filter: drop-shadow(0 0 12px rgba(255, 190, 40, .9)); }
.ishow .rays { position: absolute; inset: -40%; z-index: 1; background: repeating-conic-gradient(rgba(255, 255, 255, .75) 0 10deg, transparent 10deg 24deg); animation: spin 14s linear infinite; }
.ishow .sp { position: absolute; z-index: 3; font-style: normal; font-size: 14px; color: #fff; text-shadow: 0 0 6px var(--g2), 0 0 2px var(--ink); animation: twinkle 1.8s ease-in-out infinite; }
.ishow .s1 { left: 12%; top: 14%; } .ishow .s2 { right: 12%; top: 30%; animation-delay: .6s; font-size: 11px; } .ishow .s3 { left: 22%; bottom: 20%; animation-delay: 1.1s; font-size: 10px; }
.icard.r-epic .sp { color: #E9DAFF; } .icard.r-legendary .sp { color: #FFF3B0; }
.icard b { font: 600 16px Fredoka, sans-serif; line-height: 1.1; }
.icard .tag { font-size: 11px; padding: 0 9px; }
.icard.got::before { content: ""; position: absolute; inset: -3px; border-radius: 20px; box-shadow: inset 0 0 0 3px var(--mint); pointer-events: none; }
.have { position: absolute; z-index: 4; top: -9px; right: -6px; transform: rotate(6deg); background: var(--mint); border: 2px solid var(--ink); border-radius: 99px; font: 700 11px Nunito, sans-serif; padding: 0 7px; }

/* ---------- everything you can get ---------- */
.all-sec { scroll-margin-top: 80px; }
.rar-pick { margin-bottom: 12px; }
.rar-pick .chip { font-size: 16px; }
.rar-pick .chip.r-uncommon.on { background: var(--uncommon); } .rar-pick .chip.r-rare.on { background: var(--rare); } .rar-pick .chip.r-epic.on { background: var(--epic); }
.rar-pick .chip.r-legendary.on { background: var(--legendary); }
.rar-info { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 14px 18px; margin-bottom: 14px; }
.rar-info p { margin: 8px 0 0; font-weight: 700; }
.rar-info ul { margin: 0; padding-left: 20px; font-weight: 700; display: flex; flex-direction: column; gap: 4px; }
.rar-info.r-uncommon { background: #E9FBF2; } .rar-info.r-rare { background: #E6F2FF; } .rar-info.r-epic { background: #F1E8FF; } .rar-info.r-legendary { background: linear-gradient(135deg, #FFF6CF, #FFE6A0); }
.dex { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.dcard { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: 20px; padding: 6px 6px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.dcard svg { width: 100%; height: auto; display: block; overflow: visible; }
.dcard b { font: 600 17px Fredoka, sans-serif; }
.dcard .muted { font-size: 13px; font-weight: 800; }
.dcard.got { background: #F0FFF7; }
.dex-count { grid-column: 1 / -1; margin: 4px 0 0; font-weight: 800; }
.stages { display: flex; align-items: center; gap: 8px; }
.stages .dcard { flex: 1; min-width: 0; }
.stages .arrow { font: 700 26px Fredoka, sans-serif; color: var(--ink2); }

/* ---------- playing in the park ---------- */
.park-sec .sec-h p { flex: 1 1 260px; }
.play-bar { grid-column: 1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; }

.pb-pet { font: 600 15px Fredoka, sans-serif; }
.pb-pet label { display: flex; align-items: center; gap: 6px; }
.pb-pet select { border: 2px solid var(--ink); border-radius: 12px; padding: 5px 8px; font: 700 14px Nunito, sans-serif; background: #fff; color: var(--ink); max-width: 200px; }
.pb-say { display: flex; gap: 6px; flex: 1; min-width: 220px; }
.pb-say input { flex: 1; min-width: 0; border: 3px solid var(--ink); border-radius: 14px; padding: 7px 10px; font: 700 15px Nunito, sans-serif; }
.pb-help { flex-basis: 100%; margin: 0; font-size: 13px; font-weight: 700; color: var(--ink2); }
.park.playing { cursor: crosshair; outline: 4px solid var(--pink); outline-offset: -4px; }
.walker.you { cursor: default; z-index: 200 !important; }
.walker.you .body { filter: drop-shadow(0 0 6px rgba(255, 92, 138, .7)); }
.walker.walking .body > svg { animation: waddle .32s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes waddle { from { transform: rotate(-5deg) translateY(0); } to { transform: rotate(5deg) translateY(-4px); } }
.you-tag { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); background: var(--pink); color: #fff; border: 2px solid var(--ink); border-radius: 99px; padding: 0 8px; font: 600 12px Fredoka, sans-serif; white-space: nowrap; }
.you-tag::after { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); }
.you-tag.them { background: var(--sky); color: var(--ink); }
.cookie { position: absolute; z-index: 4; width: 34px; height: 34px; transform: translate(-50%, 0); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFE9A8, #F2B544 60%, #D98F1C); border: 3px solid var(--ink); box-shadow: 0 0 0 6px rgba(255, 210, 63, .45), 0 0 18px 6px rgba(255, 210, 63, .6); animation: cookie 1.1s ease-in-out infinite alternate; pointer-events: none; }
.cookie::before, .cookie::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #6B3B12; left: 8px; top: 9px; box-shadow: 10px 4px 0 #6B3B12, 3px 10px 0 #6B3B12; }
.cookie::after { display: none; }
.cookie.got { animation: cookieGot .5s forwards; }
@keyframes cookie { to { transform: translate(-50%, -8px) rotate(12deg); } }
@keyframes cookieGot { to { transform: translate(-50%, -60px) scale(1.6); opacity: 0; } }
.splash { position: absolute; z-index: 4; width: 90px; height: 30px; transform: translateX(-50%); border: 4px solid #fff; border-radius: 50%; animation: splash .9s ease-out forwards; pointer-events: none; }
@keyframes splash { from { transform: translateX(-50%) scale(.3); opacity: 1; } to { transform: translateX(-50%) scale(1.6); opacity: 0; } }

@media (max-width: 900px) {
  .dex { grid-template-columns: repeat(3, 1fr); }
  .rar-info { grid-template-columns: 1fr; }
  .stages { flex-wrap: wrap; justify-content: center; }
  .stages .dcard { flex: 0 0 30%; }
  .stages .arrow { display: none; }
}
@media (max-width: 560px) {
  .dex { grid-template-columns: repeat(2, 1fr); }
  .item-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .inv-tabs .see-all { margin-left: 0; flex-basis: 100%; }
  .stages .dcard { flex: 0 0 45%; }
}

/* ---------- pet buddy ---------- */
.buddy { position: fixed; left: 40px; bottom: 0; width: 110px; z-index: 60; pointer-events: none; }
.buddy-pet { pointer-events: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.buddy-pet svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 4px 0 rgba(43, 33, 64, .15)); transition: transform .2s; }
.buddy.flip .buddy-pet svg { transform: scaleX(-1); }
.buddy.walking .buddy-pet { animation: waddle .32s ease-in-out infinite alternate; transform-origin: 50% 90%; }
.buddy.lifted .buddy-pet { cursor: grabbing; animation: dangle .5s ease-in-out infinite alternate; transform-origin: 50% 10%; }
.buddy.hop .buddy-pet { animation: hop .6s ease-out; }
.buddy.asleep .buddy-pet { filter: saturate(.7); }
.buddy.asleep .buddy-pet svg { transform: rotate(-8deg) translateY(4px); }
@keyframes dangle { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.buddy-say { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 6px; z-index: 2; max-width: 210px; pointer-events: none; }
.buddy-say.edge-r { left: auto; right: 0; transform: none; animation: none; }
.buddy-say.edge-r::after { left: auto; right: 30px; }
.buddy-chat { position: fixed; z-index: 3; padding: 10px; pointer-events: auto; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.buddy-chat.hidden { display: none; }
.bc-top { display: flex; align-items: center; gap: 8px; }
.bc-top b { font: 600 18px Fredoka, sans-serif; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-top select { border: 2px solid var(--ink); border-radius: 10px; padding: 3px 6px; font: 700 13px Nunito, sans-serif; background: #fff; color: var(--ink); max-width: 130px; }
.buddy-chat .log { max-height: 220px; }
.buddy-chat .say input { min-width: 0; flex: 1; }
.bc-foot { display: flex; justify-content: space-between; }
.linkbtn { border: 0; background: none; padding: 0; font: 700 13px Nunito, sans-serif; color: var(--ink2); text-decoration: underline; cursor: pointer; }
.buddy-show { position: fixed; left: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 4px; background: #fff; border: 3px solid var(--ink); border-radius: 99px; padding: 2px 12px 2px 2px; box-shadow: 3px 3px 0 var(--ink); font: 600 14px Fredoka, sans-serif; color: var(--ink); cursor: pointer; }
.buddy-show svg { width: 38px; height: 38px; }
@media (max-width: 560px) { .buddy { width: 84px; } }
@media (prefers-reduced-motion: reduce) { .buddy { transition: none !important; } .buddy .buddy-pet { animation: none !important; } }
.brain { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1; font-size: 15px; }
.brain .dots { display: inline-flex; gap: 3px; padding: 3px 0; }
.brain .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); border: 2px solid var(--ink); }
.brain .ico { width: 18px; height: 18px; }
.brain small { letter-spacing: 0; font: 800 11px Nunito, sans-serif; color: var(--ink2); }
.stat .brain { align-items: flex-start; }

/* ---------- pages ---------- */
main > section.off { display: none !important; }
main > section[data-page] { animation: pageIn .28s ease-out; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
.links a { padding: 4px 2px; border-bottom: 3px solid transparent; }
.links a.on { color: var(--pink); border-bottom-color: var(--pink); }
.lead-s { margin: -4px 0 16px; font-weight: 700; color: var(--ink2); }
.sec-h .lead-s { margin: 6px 0 0; }
.coins-sec, .market-sec, .launch-sec, .all-sec, .park-sec, .stuff { min-height: 60vh; }
@media (max-width: 900px) {
  .top { flex-wrap: wrap; row-gap: 6px; }
  .links { display: flex; order: 10; flex-basis: 100%; overflow-x: auto; gap: 16px; padding: 2px 0 4px; scrollbar-width: none; white-space: nowrap; }
  .links::-webkit-scrollbar { display: none; }
}

/* ---------- park scenery ---------- */
.park-back { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.park-front { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.deco { position: absolute; transform: translateX(-50%); }
.deco svg { width: 100%; height: auto; display: block; overflow: visible; }
.deco.far { opacity: .95; }
.park .path { position: absolute; left: 0; bottom: 0; width: 100%; height: 44%; z-index: 0; }
.fence { position: absolute; left: 0; right: 0; bottom: 43.4%; height: 26px; z-index: 0;
  background: linear-gradient(transparent 7px, #fff 7px, #fff 11px, transparent 11px, transparent 17px, #fff 17px, #fff 21px, transparent 21px),
    repeating-linear-gradient(90deg, transparent 0 14px, #fff 14px 22px); filter: drop-shadow(0 0 0 #2B2140) drop-shadow(1.5px 1.5px 0 rgba(43, 33, 64, .45)); }
.claw-mini { width: 64px; height: 104px; box-shadow: 3px 3px 0 var(--ink); }
.claw-mini b { position: absolute; left: -3px; right: -3px; top: -20px; height: 18px; background: var(--sun); border: 3px solid var(--ink); border-radius: 8px; font: 700 11px/12px Fredoka, sans-serif; text-align: center; letter-spacing: 1px; }
.claw-mini i { top: 8px; height: 46px; }
.claw-mini u { position: absolute; left: 14px; right: 14px; bottom: 10px; height: 12px; background: var(--ink); border-radius: 4px; }
.pond { box-shadow: inset 0 -8px 0 #6BB4F0, inset 0 6px 0 rgba(255, 255, 255, .5); }
.sway { transform-origin: 50% 100%; animation: sway 3.2s ease-in-out infinite alternate; }
.sway.d2 { animation-delay: -1s; } .sway.d3 { animation-delay: -2s; }
@keyframes sway { from { transform: translateX(-50%) rotate(-3deg); } to { transform: translateX(-50%) rotate(3deg); } }
.duck { animation: duck 9s ease-in-out infinite alternate; }
@keyframes duck { 0% { transform: translateX(-80%) translateY(0); } 50% { transform: translateX(-20%) translateY(-3px); } 100% { transform: translateX(-80%) scaleX(-1); } }
.fountain .spray { animation: spray .9s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes spray { from { transform: scaleY(.9); opacity: .7; } to { transform: scaleY(1.05); opacity: 1; } }
.butterfly { animation: flutter 14s ease-in-out infinite; }
.butterfly.bf2 { animation-duration: 18s; animation-delay: -6s; } .butterfly.bf3 { animation-duration: 11s; animation-delay: -3s; }
.butterfly .wings { transform-origin: 50% 50%; animation: flap .18s ease-in-out infinite alternate; }
@keyframes flap { to { transform: scaleX(.35); } }
@keyframes flutter { 0% { transform: translate(0, 0); } 25% { transform: translate(120px, -60px); } 50% { transform: translate(260px, 10px); } 75% { transform: translate(120px, 50px); } 100% { transform: translate(0, 0); } }
.bird { animation: fly 26s linear infinite; }
.bird.b2 { animation-duration: 34s; animation-delay: -12s; }
@keyframes fly { from { transform: translateX(-60px); } to { transform: translateX(1400px); } }
.bird svg { animation: flap .35s ease-in-out infinite alternate; }
.tuft { transform: none; }
.stars, .fireflies, .moon { display: none; }
.tint { position: absolute; inset: 0; z-index: 4; background: rgba(24, 20, 70, .32); display: none; }
.park.night { background: linear-gradient(#1E1B4B, #3B3486 50%, #5B4FA8 62%); }
.park.night .sun, .park.night .bird { display: none; }
.park.night .moon { display: block; position: absolute; right: 10%; top: 8%; width: 62px; height: 62px; border-radius: 50%; background: #FFF6D6; border: 3px solid var(--ink); box-shadow: inset -12px -4px 0 #EADFB4, 0 0 0 12px rgba(255, 246, 214, .15), 0 0 40px 10px rgba(255, 246, 214, .3); }
.park.night .cloud { opacity: .35; }
.park.night .tint, .park.night .stars, .park.night .fireflies { display: block; }
.park.night .lamp { z-index: 5 !important; }
.park.night .lamp .glow { opacity: .85; animation: pulse 2.4s ease-in-out infinite; }
.park.night .house .win, .park.night .far .win { fill: #FFE07A; }
.stars i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; animation: twinkle 2.6s ease-in-out infinite; }
.fireflies i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #FFF59A; box-shadow: 0 0 10px 4px rgba(255, 245, 120, .7); animation: firefly 4s ease-in-out infinite alternate; }
@keyframes firefly { 0% { transform: translate(0, 0); opacity: .2; } 50% { opacity: 1; } 100% { transform: translate(30px, -26px); opacity: .3; } }
@media (max-width: 560px) {
  .deco { zoom: .7; }
  .butterfly { animation-name: flutterS; }
  @keyframes flutterS { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(110px, -40px); } }
}
@media (prefers-reduced-motion: reduce) { .butterfly, .bird, .duck, .sway, .fireflies i { animation: none !important; } }

/* buyback and burn */
.burned { font-weight: 800; color: #E2582B; }
.pcard .meta.burned { color: #E2582B; }
p.burned { margin: 8px 0 0; font-size: 14px; }
#burnModal .burned { margin: 0 0 12px; }
#burnAmtRow > span { display: flex; justify-content: space-between; align-items: center; }

/* coin treasuries */
.tbadge { border: 0; background: #EAF7EF; color: #1F8A4C; border-radius: 999px; padding: 4px 10px; cursor: pointer; font: 800 12px Nunito, sans-serif; }
.tbadge.warn { background: #FFF1E0; color: #B5541B; }
.unsplit { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #FFF1E0; color: #B5541B; font-weight: 700; }
.unsplit span { flex: 1; min-width: 200px; }
.fbadge { background: #FFF4D6; color: #9A6A00; border-radius: 999px; padding: 4px 10px; font: 800 12px Nunito, sans-serif; cursor: help; }
.fbadge.warn { background: #FFF1E0; color: #B5541B; }
.tbadge:not(.good):not(.warn) { background: #EEF0F6; color: var(--ink2); }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 6px 0 10px; }
.trow { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; border-bottom: 1px dashed rgba(0,0,0,.08); padding: 4px 0; }
.trow span { color: var(--ink2); }
.t-warn { background: #FFF1E0; color: #B5541B; font-weight: 800; padding: 8px 12px; border-radius: 12px; margin: 0 0 10px; }
.t-dev { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
#treasuryModal .ca code { font-size: 11px; word-break: break-all; }
.treasury-pick { margin: 4px 0 8px; }
.treasury-pick .note { margin: 4px 0 0; }
@media (max-width: 560px) { .tgrid { grid-template-columns: 1fr; } }

/* coin research report in the pet chat */
.m.has-rep { max-width: 100% !important; width: 100%; }
.rep { margin-top: 8px; background: #fff; border: 2px solid var(--ink, #2B2340); border-radius: 14px; padding: 10px 12px; font-size: 13px; color: var(--ink, #2B2340); text-align: left; }
.rep-h { font-size: 16px; margin-bottom: 4px; }
.rep-h span { color: var(--ink2); font-weight: 700; font-size: 13px; }
.rep-nums { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 6px; color: var(--ink2); }
.rep-nums b { color: var(--ink, #2B2340); }
.rep-nums b.up { color: #1F8A4C; } .rep-nums b.dn { color: #D2453B; }
.rep .flags { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 3px; }
.rep .flags li { padding: 3px 8px; border-radius: 8px; font-weight: 700; }
.rep .flags li.bad { background: #FDE6E3; color: #B2302A; }
.rep .flags li.meh { background: #FFF1E0; color: #A3521B; }
.rep .flags li.good { background: #EAF7EF; color: #1F7A44; }
.rep-sub { color: var(--ink2); margin: 3px 0; word-break: break-word; }
.rep-sub b { color: var(--ink, #2B2340); }
.rep-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.rep-links a { font-weight: 800; color: #E2582B; text-decoration: none; }
.rep .fine { margin: 6px 0 0; font-size: 11px; color: var(--ink2); }
#buddyLog .rep { font-size: 12px; }
.log:has(.rep) { max-height: 380px; }
.buddy-chat .log:has(.rep) { max-height: 320px; }

/* ---------- the 3D park ---------- */
.park.three { height: 72vh; min-height: 540px; max-height: 860px; background: #8fd0ff; user-select: none; -webkit-user-select: none; }
.park.three > :not(.p3-canvas):not(.p3-layer):not(.p3-mini):not(.p3-hint):not(.peek) { display: none !important; }
.park.three.playing { outline: none; cursor: default; }
.p3-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; touch-action: none; cursor: grab; }
.p3-canvas:active { cursor: grabbing; }
.p3-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.p3-tag { position: absolute; left: 0; top: 0; transform-origin: 0 0; display: flex; flex-direction: column; align-items: center; gap: 5px; white-space: nowrap; will-change: transform; }
.p3-nm { font: 800 13px Nunito, sans-serif; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 9px 3px; color: var(--ink); box-shadow: inset 0 -3px 0 var(--rc); }
.p3-nm i { font-style: normal; background: var(--pink); color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; margin-left: 3px; }
.p3-nm i.k { background: #3D8BFF; }
.p3-say { max-width: 230px; white-space: normal; text-align: center; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 6px 11px; font: 700 14px Nunito, sans-serif; color: var(--ink); box-shadow: 3px 3px 0 var(--ink); animation: pop .25s ease-out; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.p3-mini { position: absolute; right: 12px; top: 12px; width: 132px; height: 132px; border: 3px solid var(--ink); border-radius: 16px; z-index: 6; pointer-events: none; box-shadow: 3px 3px 0 var(--ink); }
.p3-hint { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 16px; font: 800 15px Nunito, sans-serif; z-index: 6; opacity: 0; transition: opacity .2s; pointer-events: none; box-shadow: 3px 3px 0 var(--ink); }
.p3-hint.on { opacity: 1; }
.park.three .peek { z-index: 8; }
.emotes { display: flex; gap: 6px; }
.emotes button { width: 42px; height: 42px; border: 3px solid var(--ink); border-radius: 14px; background: #fff; font-size: 20px; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); transition: transform .1s; }
.emotes button:hover { transform: translateY(-2px); }
.emotes button:active { transform: translateY(1px); box-shadow: none; }
.p3-tools { display: none; }
.park-wrap.full { position: fixed; inset: 0; z-index: 2000; display: block; margin: 0; padding: 0; background: #8fd0ff; }
html.park-full, html.park-full body { overflow: hidden; }
.park-wrap.full .park, .park-wrap.full .park.three { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
.park-wrap.full .news { display: none; }
.park-wrap.full .play-bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(1100px, calc(100% - 24px)); z-index: 10; background: rgba(255, 255, 255, .94); }
.park-wrap.full .p3-tools { display: flex; gap: 8px; position: absolute; left: 14px; top: 14px; z-index: 11; }
.park-wrap.full:has(.park.playing) #fullPlay { display: none; }
.park-wrap.full .p3-hint { top: 70px; }
@media (max-width: 720px) {
  .park.three { height: 68vh; min-height: 440px; }
  .p3-mini { width: 90px; height: 90px; right: 8px; top: 8px; }
  .p3-say { max-width: 170px; font-size: 13px; }
  .emotes button { width: 38px; height: 38px; font-size: 18px; }
  .park-wrap.full .play-bar { bottom: 8px; padding: 8px; }
  .park-wrap.full .pb-help { display: none; }
  .park-wrap.full .p3-tools .btn { padding: 6px 12px; font-size: 14px; }
}

/* ---------- Coins and Market heroes ---------- */
.hero-band { position: relative; min-height: 300px; border: 3px solid var(--ink); border-radius: 28px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; margin: 24px 0 18px; isolation: isolate; }
.hb-text { position: relative; z-index: 5; max-width: 470px; padding: 34px 34px 90px; }
.hb-text h2 { font-size: 46px; margin: 8px 0 10px; }
.hb-text p { margin: 0 0 18px; font-weight: 700; font-size: 17px; }
.hb-kicker { display: inline-block; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; font: 700 14px Fredoka, sans-serif; color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }

/* coins: night launchpad */
.coins-hero { background: linear-gradient(170deg, #1E1648 0%, #3B2A8C 45%, #7A55E0 75%, #FF9EC4 100%); color: #fff; }
.coins-hero .hb-text h2 { color: #fff; text-shadow: 3px 3px 0 var(--ink); }
.coins-hero .hb-text p { color: #EDE3FF; }
.hb-stars i { position: absolute; width: var(--z); height: var(--z); border-radius: 50%; background: #FFF5CF; box-shadow: 0 0 6px #FFE07A; animation: twinkle 2.6s ease-in-out infinite; animation-delay: var(--d); z-index: 0; }
.hb-moon { position: absolute; right: 30%; top: 26px; width: 58px; height: 58px; border-radius: 50%; background: #FFF5CF; box-shadow: 0 0 40px 8px rgba(255, 224, 122, .45); z-index: 0; }
.hb-moon::after { content: ""; position: absolute; left: 14px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: #F3E1A6; box-shadow: 18px 12px 0 -2px #F3E1A6; }
.hb-hills i { position: absolute; bottom: 30px; border-radius: 50% 50% 0 0; z-index: 1; }
.hb-hills i:nth-child(1) { left: -6%; width: 46%; height: 120px; background: #2E2470; }
.hb-hills i:nth-child(2) { left: 30%; width: 52%; height: 90px; background: #3A2D85; }
.hb-hills i:nth-child(3) { right: -8%; width: 40%; height: 140px; background: #2A2066; }
.hb-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: var(--grass); border-top: 3px solid var(--ink); z-index: 3; }
.hb-pad { position: absolute; right: 9%; bottom: 36px; width: 120px; height: 230px; z-index: 2; }
.hb-base { position: absolute; left: 10px; right: 10px; bottom: 0; height: 18px; background: #FFD23F; border: 3px solid var(--ink); border-radius: 10px 10px 0 0; }
.hb-rocket { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); animation: blastoff 7s cubic-bezier(.5, 0, .9, .6) infinite; }

.hb-flame { position: absolute; left: 50%; top: 100%; width: 18px; height: 30px; margin-left: -9px; border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; background: radial-gradient(#FFF5CF, #FFD23F 45%, #FF8E80); animation: flicker .12s ease-in-out infinite alternate; opacity: 0; }
@keyframes blastoff { 0%, 35% { transform: translate(-50%, 0); } 37%, 40% { transform: translate(calc(-50% + 2px), 0); } 39% { transform: translate(calc(-50% - 2px), 0); } 100% { transform: translate(-50%, -420px); } }
.hb-rocket { --f: 0; }
.coins-hero .hb-rocket .hb-flame { animation: flicker .12s ease-in-out infinite alternate, flameOn 7s linear infinite; }
@keyframes flameOn { 0%, 34% { opacity: 0; } 36%, 100% { opacity: 1; } }
.hb-smoke i { position: absolute; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: #fff; opacity: 0; animation: puff 7s ease-out infinite; }
.hb-smoke i:nth-child(1) { left: 6px; } .hb-smoke i:nth-child(2) { left: 44px; animation-delay: .15s; } .hb-smoke i:nth-child(3) { left: 80px; animation-delay: .3s; }
@keyframes puff { 0%, 36% { opacity: 0; transform: scale(.3); } 42% { opacity: .9; } 70%, 100% { opacity: 0; transform: scale(1.8) translateY(-10px); } }
.hb-parade { position: absolute; left: 0; right: 0; bottom: 28px; height: 86px; z-index: 4; pointer-events: none; }
.hb-walk { position: absolute; bottom: 0; left: 0; width: 76px; height: 76px; animation: parade 21.7s linear infinite; animation-delay: calc(var(--k) * -3.1s); }
.hb-walk svg { width: 100%; height: 100%; transform: scale(var(--s)); transform-origin: bottom; animation: waddle .45s ease-in-out infinite alternate; }
@keyframes parade { from { transform: translateX(-100px); } to { transform: translateX(1300px); } }
@keyframes paradeM { from { transform: translateX(-80px); } to { transform: translateX(480px); } }

/* market: a pet shop */
.market-hero { background: linear-gradient(#BFE6FF, #FFF1DC 70%); }
.hb-bunting { position: absolute; left: 0; right: 0; top: 0; height: 30px; z-index: 6; background: linear-gradient(135deg, var(--pink) 25%, transparent 25%) 0 0 / 36px 30px, linear-gradient(225deg, var(--pink) 25%, transparent 25%) 0 0 / 36px 30px; }
.hb-bunting::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--sun) 25%, transparent 25%) 18px 0 / 36px 30px, linear-gradient(225deg, var(--sun) 25%, transparent 25%) 18px 0 / 36px 30px; }
.market-hero .hb-text { padding-top: 48px; }
.hb-shop { position: absolute; right: 24px; top: 40px; bottom: 34px; width: min(560px, 54%); background: #FFF7EC; border: 3px solid var(--ink); border-bottom: 0; border-radius: 18px 18px 0 0; z-index: 2; }
.hb-awning { position: absolute; left: -14px; right: -14px; top: -6px; height: 46px; border: 3px solid var(--ink); border-radius: 14px; background: repeating-linear-gradient(90deg, var(--pink) 0 38px, #fff 38px 76px); box-shadow: 0 6px 0 rgba(43, 33, 64, .15); }
.hb-sign { position: absolute; left: 50%; top: 32px; transform: translateX(-50%) rotate(-3deg); background: var(--sun); border: 3px solid var(--ink); border-radius: 12px; padding: 2px 16px; font: 700 20px Fredoka, sans-serif; z-index: 3; box-shadow: 3px 3px 0 var(--ink); transform-origin: top center; animation: signSwing 3s ease-in-out infinite alternate; }
@keyframes signSwing { from { transform: translateX(-50%) rotate(-4deg); } to { transform: translateX(-50%) rotate(4deg); } }
.hb-stall { position: absolute; left: 10px; right: 10px; bottom: 50px; display: flex; justify-content: space-around; align-items: end; height: 130px; z-index: 1; }
.hb-item { position: relative; display: flex; flex-direction: column; align-items: center; }
.hb-pet { width: 96px; height: 96px; margin-bottom: -10px; animation: hop 2s ease-in-out infinite; animation-delay: var(--d); }
.hb-pet svg { width: 100%; height: 100%; }
.hb-crate { display: none; width: 74px; height: 22px; margin-top: -6px; background: repeating-linear-gradient(90deg, #C98B52 0 16px, #B57840 16px 18px); border: 3px solid var(--ink); border-radius: 6px; }
.hb-tag { position: absolute; top: 0; right: -10px; z-index: 2; background: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: 0 7px; font: 700 13px Fredoka, sans-serif; white-space: nowrap; transform: rotate(8deg); animation: dangle 1.6s ease-in-out infinite alternate; animation-delay: var(--d); }
.hb-counter { position: absolute; left: -3px; right: -3px; bottom: 0; height: 52px; z-index: 2; background: #E9A867; border: 3px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0; }
.hb-counter::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: #F6C48C; border-bottom: 3px solid var(--ink); border-radius: 8px 8px 0 0; }
.hb-keeper { position: absolute; left: -96px; bottom: -6px; width: 104px; height: 104px; }
.hb-keeper svg { width: 100%; height: 100%; animation: bob 2.2s ease-in-out infinite; }
.hb-say { position: absolute; left: -150px; bottom: 100px; background: #fff; border: 2px solid var(--ink); border-radius: 14px 14px 14px 4px; padding: 3px 10px; font: 800 14px Nunito, sans-serif; white-space: nowrap; box-shadow: 2px 2px 0 var(--ink); }
.hb-say.pop { animation: pop2 .3s ease-out; }
.hb-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: repeating-linear-gradient(90deg, #E7C79C 0 60px, #DDBB8D 60px 120px); border-top: 3px solid var(--ink); z-index: 3; }

/* colorful stat chips */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 22px; }
.stat-row .stat { display: flex; align-items: center; gap: 12px; border: 3px solid var(--ink); border-radius: 18px; padding: 10px 14px; box-shadow: 3px 3px 0 var(--ink); background: #fff; transition: transform .15s; }
.stat-row .stat:hover { transform: translateY(-2px) rotate(-.5deg); }
.stat-row .stat > i { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: #fff; border: 2px solid var(--ink); font-style: normal; font-size: 22px; font-weight: 800; }
.stat-row .stat b { display: block; font: 700 26px/1.1 Fredoka, sans-serif; }
.stat-row .stat span { color: var(--ink2); font-weight: 800; font-size: 13px; }
.stat.c-pink { background: var(--pink2); } .stat.c-sun { background: #FFF1B8; } .stat.c-sky { background: #DDF0FF; } .stat.c-mint { background: #D9F7EA; }

.empty-fun { grid-column: 1 / -1; text-align: center; padding: 30px 16px; background: #fff; border: 3px dashed var(--ink2); border-radius: var(--r); }
.empty-fun h4 { font: 700 24px Fredoka, sans-serif; margin: 6px 0 4px; }
.empty-fun p { margin: 0 0 14px; color: var(--ink2); font-weight: 700; }
.ef-pets { display: flex; justify-content: center; gap: 6px; }
.ef-pets span { width: 70px; height: 70px; animation: hop 1.8s ease-in-out infinite; animation-delay: var(--d); }
.ef-pets svg { width: 100%; height: 100%; }

.m-mine { padding: 18px; margin: 0 0 22px; }
.m-mine-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.m-mine-h p { margin: 0; }
.m-offers h4 { margin: 0 0 6px; font-family: Fredoka, sans-serif; }
.m-offers .it { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 2px dashed #eadfcf; flex-wrap: wrap; }
.m-offers .it svg { width: 44px; height: 44px; }
.m-offers .it .tx { flex: 1; min-width: 160px; }
.m-offers { margin-bottom: 12px; }
.m-pets { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.m-pets > .empty, .m-pets > .btn { grid-column: 1 / -1; justify-self: start; }
.m-h { font-size: 26px; margin: 8px 0 12px; }
.m-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.m-bar .m-h { margin: 8px 0; }

@media (max-width: 820px) {
  .hero-band { min-height: 0; }
  .hb-text { max-width: none; padding: 26px 20px 12px; }
  .hb-text h2 { font-size: 34px; }
  .hb-text p { font-size: 15px; }
  .coins-hero .hb-text { padding-bottom: 200px; }
  .hb-pad { right: 4%; width: 90px; height: 180px; }
  .hb-moon { right: 8%; top: 18px; width: 40px; height: 40px; }
  .hb-moon::after { left: 9px; top: 10px; width: 9px; height: 9px; }
  .hb-walk { width: 58px; height: 58px; animation-name: paradeM; animation-duration: 11.2s; animation-delay: calc(var(--k) * -1.6s); }
  .hb-sign { white-space: nowrap; font-size: 16px; padding: 2px 12px; }
  .hb-stall { left: 4px; right: 12px; }
  .hb-tag { right: -2px; }
  .market-hero .hb-text { padding-top: 40px; }
  .hb-shop { position: relative; right: auto; top: auto; bottom: auto; width: auto; height: 250px; margin: 14px 14px 34px; }
  .hb-stall { height: 100px; }
  .hb-pet { width: 64px; height: 64px; }
  .hb-shop { margin-left: 80px; }
  .hb-keeper { left: -84px; width: 84px; height: 84px; }
  .hb-say { left: -88px; bottom: 84px; font-size: 12px; padding: 2px 8px; }
  .hb-crate { width: 56px; }
  .hb-item:nth-child(n+5) { display: none; }
  .hb-tag { font-size: 11px; right: -6px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-row .stat { padding: 8px 10px; gap: 8px; }
  .stat-row .stat > i { width: 36px; height: 36px; font-size: 18px; }
  .stat-row .stat b { font-size: 21px; }
  .m-pets { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .hb-walk, .hb-pet, .hb-rocket, .hb-walk svg, .hb-sign, .hb-tag, .hb-smoke i, .ef-pets span { animation: none; }
  .hb-parade { display: flex; justify-content: space-evenly; } .hb-walk { position: static; }
}

/* line icons used instead of emoji */
.ico { width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex: none; }
.btn .ico, .meta .ico, .tbadge .ico, .fbadge .ico { margin-right: 4px; }
.feed .ln .ico { color: var(--pink); margin-right: 4px; }
.stat-row .stat > i .ico { width: 24px; height: 24px; }
.stat.c-pink > i { color: #E0336A; } .stat.c-sun > i { color: #B07A00; } .stat.c-sky > i { color: #1F74C9; } .stat.c-mint > i { color: #1C8B5E; }
.flags li .ico, .rep li .ico { margin-right: 6px; }
li.bad .ico { color: #E0336A; } li.meh .ico { color: #B07A00; } li.good .ico { color: #1C8B5E; }
.t-warn .ico { color: #B07A00; margin-right: 4px; }
.emotes button { width: auto; height: 38px; padding: 0 9px; font: 700 13px Fredoka, sans-serif; color: var(--ink); border-radius: 12px; }
.emotes { gap: 4px; }
.hb-ship { display: block; width: 56px; height: 103px; filter: drop-shadow(3px 3px 0 rgba(43, 33, 64, .35)); }
@media (max-width: 820px) { .hb-ship { width: 42px; height: 77px; } .emotes { flex-wrap: wrap; } .emotes button { padding: 0 9px; font-size: 13px; } }

/* a new pet arrives as an egg: it wobbles, shakes when tapped, and hatches on the third tap */
.buddy.egg .buddy-pet { animation: eggWobble 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
.buddy.egg.lifted .buddy-pet { animation: dangle .5s ease-in-out infinite alternate; transform-origin: 50% 10%; }
.buddy.egg.crack .buddy-pet { animation: eggShake .45s ease-in-out; }
.buddy.egg .buddy-pet svg { filter: drop-shadow(0 0 14px rgba(255, 210, 63, .8)) drop-shadow(0 4px 0 rgba(43, 33, 64, .15)); }
@keyframes eggWobble { 0%, 60%, 100% { transform: rotate(0); } 66% { transform: rotate(-9deg); } 74% { transform: rotate(8deg); } 82% { transform: rotate(-5deg); } 90% { transform: rotate(3deg); } }
@keyframes eggShake { 0%, 100% { transform: translateX(0) rotate(0); } 20% { transform: translateX(-6px) rotate(-10deg); } 40% { transform: translateX(6px) rotate(10deg); } 60% { transform: translateX(-4px) rotate(-6deg); } 80% { transform: translateX(3px) rotate(4deg); } }
.buddy-say.edge-l { left: 0; transform: none; animation: none; }
.buddy-say.edge-l::after { left: 30px; }
.buddy.egg .buddy-pet svg { transform: scale(1.35); transform-origin: 50% 100%; }

.buddy-timer { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); z-index: 2; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 1px 10px; font: 700 12px/1.3 Fredoka, sans-serif; white-space: nowrap; text-align: center; box-shadow: 2px 2px 0 var(--ink); pointer-events: none; }
.buddy-timer small { display: block; font: 800 10px Nunito, sans-serif; color: var(--ink2); }
.buddy.egg .buddy-timer { background: var(--sun); }
.buddy:has(.buddy-timer:not(.hidden)) .buddy-pet { margin-bottom: 30px; }

/* how it works page */
.how-more { display: flex; justify-content: center; margin-top: 20px; }
.guide { padding: 28px 0 10px; }
.g-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: center; padding: 30px 34px; background: linear-gradient(135deg, #FFF 0%, #FFF1F6 55%, #EFE6FF 100%); border-radius: 28px; box-shadow: 6px 6px 0 var(--ink); }
.g-pill { display: inline-block; font: 600 14px Fredoka, sans-serif; background: var(--sun); border: 2px solid var(--ink); border-radius: 99px; padding: 3px 12px; margin-bottom: 10px; }
.g-hero h1 { font-size: clamp(38px, 5.4vw, 62px); }
.g-hero h1 em { font-style: normal; color: var(--pink); }
.g-hero .lead { margin: 14px 0 18px; }
.g-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.g-jump .chip:hover { background: var(--pink2); }
.g-hero-art { position: relative; height: 300px; }
.g-hp { position: absolute; width: 150px; }
.g-hp svg { width: 100%; height: auto; overflow: visible; display: block; }
.g-hp:nth-child(1) { left: 2%; top: 46%; width: 120px; }
.g-hp:nth-child(2) { left: 30%; top: 0; width: 175px; }
.g-hp:nth-child(3) { right: 0; top: 44%; width: 140px; }
.g-sec { padding-top: 46px; scroll-margin-top: 80px; }
.g-h { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.g-h h2 { font-size: 38px; }
.g-h p { margin: 4px 0 0; font-weight: 700; color: var(--ink2); max-width: 760px; }
.g-ic { display: inline-grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 18px; border: 3px solid var(--ink); background: var(--pink); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.g-ic .ico { width: 30px; height: 30px; vertical-align: 0; }
.g-ic.sm { width: 42px; height: 42px; border-radius: 14px; box-shadow: 2px 2px 0 var(--ink); color: var(--ink); margin-bottom: 8px; }
.g-ic.sm .ico { width: 22px; height: 22px; }
.g-ic.pink { background: var(--pink2); } .g-ic.mint { background: var(--mint); } .g-ic.sun { background: var(--sun); } .g-ic.sky { background: var(--sky); } .g-ic.lilac { background: var(--lilac); }
.g-grid2, .g-grid3, .g-grid4 { display: grid; gap: 18px; }
.g-grid2 { grid-template-columns: repeat(2, 1fr); }
.g-grid3 { grid-template-columns: repeat(3, 1fr); }
.g-grid4 { grid-template-columns: repeat(4, 1fr); }
.g-card { padding: 18px; display: flex; flex-direction: column; align-items: flex-start; }
.g-card h3 { font-size: 22px; margin-bottom: 6px; }
.g-card p { margin: 0 0 10px; color: var(--ink2); font-weight: 700; }
.g-card .btn { margin-top: auto; }
.g-small { font-size: 13px; font-weight: 800; color: var(--ink2); }
.g-card .g-small { margin: 6px 0 0; }
.g-tiers { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; align-items: center; font-weight: 800; font-size: 14px; }
.g-tiers .tag { justify-self: start; }
.g-egg { margin-top: 18px; display: flex; gap: 18px; align-items: center; padding: 14px 22px; background: #FFFBEA; }
.g-egg-art { width: 96px; flex: none; }
.g-egg-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.g-egg h3 { font-size: 22px; margin-bottom: 4px; }
.g-egg p { margin: 0; font-weight: 700; color: var(--ink2); }
.g-ask { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 16px; margin-bottom: 16px; font-weight: 800; }
.g-you { background: var(--pink); color: #fff; border: 2px solid var(--ink); border-radius: 16px 16px 4px 16px; padding: 5px 12px; font-weight: 700; }
.g-stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: st; }
.g-stage { padding: 12px 12px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.g-stage:nth-child(1) { background: #FFFBEA; } .g-stage:nth-child(2) { background: #FFF1F6; } .g-stage:nth-child(3) { background: #EDFBF4; } .g-stage:nth-child(4) { background: #EEF6FF; } .g-stage:nth-child(5) { background: #F4EEFF; }
.g-stage-art { width: 100%; max-width: 150px; }
.g-stage-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.g-stage > b { font: 600 22px Fredoka, sans-serif; }
.g-when { font-size: 13px; font-weight: 800; color: var(--ink2); margin-bottom: 4px; }
.g-said { position: relative; margin: 12px 0 8px; background: #fff; border: 2px solid var(--ink); border-radius: 16px 16px 16px 4px; padding: 8px 10px; font-weight: 700; font-size: 14.5px; line-height: 1.35; text-align: left; align-self: stretch; }
.g-mem { margin-top: auto; font-size: 12px; font-weight: 800; color: var(--ink2); }
.g-notes { margin-top: 18px; }
.g-note { padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; }
.g-note .g-ic { margin: 0; }
.g-note p { margin: 0; font-weight: 700; color: var(--ink2); }
.g-note b { color: var(--ink); }
.g-research { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; align-items: start; }
.g-checks { display: grid; gap: 14px; }
.g-check { padding: 14px 18px; border-left-width: 10px; }
.g-check:nth-child(2) { border-left-color: var(--sky); } .g-check:nth-child(3) { border-left-color: var(--pink); } .g-check:nth-child(4) { border-left-color: var(--mint); }
.g-check h3 { font-size: 20px; margin-bottom: 2px; }
.g-check p { margin: 0; font-weight: 700; color: var(--ink2); }
.g-report { padding: 16px 18px; background: #FDFBFF; }
.g-report-top { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.g-report-top > div { display: flex; flex-direction: column; }
.g-report-top b { font: 600 20px Fredoka, sans-serif; }
.g-mini { width: 56px; flex: none; }
.g-mini svg { width: 100%; height: auto; display: block; }
.g-flags { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.g-flags li { display: flex; gap: 10px; align-items: baseline; font-weight: 700; font-size: 14.5px; padding: 6px 10px; border-radius: 12px; border: 2px solid var(--ink); }
.g-flags li b { flex: none; font: 600 12px Fredoka, sans-serif; text-transform: uppercase; letter-spacing: .5px; padding: 1px 8px; border-radius: 99px; border: 2px solid var(--ink); background: #fff; }
.g-flags .bad { background: #FFE3E3; } .g-flags .bad b { background: #FF6B6B; color: #fff; }
.g-flags .meh { background: #FFF6D6; } .g-flags .meh b { background: var(--sun); }
.g-flags .good { background: #E3F8EE; } .g-flags .good b { background: var(--mint); }
.g-take > b { font: 600 17px Fredoka, sans-serif; }
.g-take p { margin: 6px 0 0; font-weight: 700; font-size: 14.5px; display: flex; gap: 10px; align-items: baseline; }
.g-take p span { flex: none; width: 56px; font: 600 12px Fredoka, sans-serif; text-align: center; background: var(--lilac); border: 2px solid var(--ink); border-radius: 99px; padding: 1px 0; }
.g-fine { margin: 14px 0 0; font-weight: 700; color: var(--ink2); font-size: 14px; }
.g-strip { margin-top: 18px; display: flex; gap: 12px; align-items: center; padding: 12px 18px; background: #EDFBF4; }
.g-strip > span { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--mint); border: 2px solid var(--ink); }
.g-strip p { margin: 0; font-weight: 700; }
#gTreasury .g-strip { background: #FFFBEA; } #gTreasury .g-strip > span { background: var(--sun); }
.g-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.g-step { padding: 18px; position: relative; }
.g-step .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); font: 700 18px Fredoka, sans-serif; margin-bottom: 8px; }
.g-step h3 { font-size: 21px; margin-bottom: 4px; }
.g-step p { margin: 0; color: var(--ink2); font-weight: 700; }
.g-split { padding: 20px 22px; }
.g-bar { display: flex; height: 52px; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; font: 700 20px Fredoka, sans-serif; }
.g-bar span { display: grid; place-items: center; min-width: 0; }
.g-bar span + span { border-left: 3px solid var(--ink); }
.dev { background: var(--sky); } .tre { background: var(--mint); } .brn { background: var(--pink); color: #fff; }
.g-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 6px; }
.g-legend p { margin: 0; font-weight: 700; color: var(--ink2); display: flex; gap: 8px; align-items: baseline; }
.g-legend b { color: var(--ink); }
.g-legend i { flex: none; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--ink); }
.g-split .g-small { margin: 8px 0 0; }
.g-end { margin: 46px 0 20px; padding: 26px; text-align: center; background: linear-gradient(135deg, #FFF1F6, #EFE6FF); }
.g-end h2 { font-size: 36px; }
.g-end-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 14px 0 10px; }
.g-end .fine { margin: 0 auto; max-width: 620px; }
@media (max-width: 900px) {
  .g-hero { grid-template-columns: 1fr; padding: 22px 18px; }
  .g-hero-art { height: 210px; order: -1; }
  .g-hp:nth-child(1) { width: 90px; } .g-hp:nth-child(2) { width: 130px; left: 34%; } .g-hp:nth-child(3) { width: 105px; }
  .g-grid3, .g-research, .g-legend { grid-template-columns: 1fr; }
  .g-grid4, .g-flow { grid-template-columns: repeat(2, 1fr); }
  .g-stages { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .g-h { align-items: flex-start; }
  .g-h h2 { font-size: 30px; }
  .g-ic { width: 46px; height: 46px; border-radius: 14px; }
  .g-ic .ico { width: 24px; height: 24px; }
  .g-grid2, .g-grid4, .g-flow { grid-template-columns: 1fr; }
  .g-stages { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .g-stage:last-child { grid-column: span 2; }
  .g-stage:last-child .g-stage-art { max-width: 130px; }
  .g-egg { flex-direction: column; text-align: center; }
  .g-bar { font-size: 16px; height: 44px; }
  .g-end h2 { font-size: 30px; }
}
.g-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g-level { padding: 12px 16px; background: #EEF6FF; }
.g-level.deep { background: #F4EEFF; }
.g-level b { font: 600 18px Fredoka, sans-serif; }
.g-level p { margin: 2px 0 0; font-weight: 700; color: var(--ink2); font-size: 14.5px; }
.g-check h3 small { font: 700 12px Nunito, sans-serif; background: var(--lilac); border: 2px solid var(--ink); border-radius: 99px; padding: 0 8px; vertical-align: 3px; margin-left: 4px; }
.g-check:nth-child(5) { border-left-color: var(--sun); }
@media (max-width: 560px) { .g-levels { grid-template-columns: 1fr; } }
.file span:has(.logo-prev) { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; }
.file .logo-prev { width: 34px; height: 34px; flex: none; object-fit: cover; border-radius: 10px; border: 2px solid var(--ink); background: #fff; }
.file span i { font-style: normal; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.coin-prev { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 3px dashed rgba(43, 33, 64, .25); text-align: center; }
.coin-prev img { width: 220px; height: 220px; max-width: 100%; object-fit: cover; border-radius: 26px; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); background: #fff; }
.cp-txt { display: flex; flex-direction: column; align-items: center; min-width: 0; max-width: 100%; }
.cp-l { font: 600 13px Fredoka, sans-serif; background: var(--sun); border: 2px solid var(--ink); border-radius: 99px; padding: 1px 10px; }
.cp-txt b { font: 700 26px Fredoka, sans-serif; margin-top: 4px; overflow-wrap: anywhere; }
.cp-txt span:last-child { font-weight: 800; color: var(--ink2); }
@media (max-width: 560px) { .coin-prev img { width: 170px; height: 170px; } }

/* coin activity on a pet's page */
.coin-act { margin: 14px; border: 2px solid var(--ink); border-radius: 16px; background: #FFFBF4; padding: 12px 14px; }
.coin-act h3 { margin: 0 0 8px; font: 700 18px Fredoka, sans-serif; }
.act-tot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.act-tot div { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 6px 8px; min-width: 0; }
.act-tot span { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--ink2); }
.act-tot b { display: block; font: 700 15px Fredoka, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.act-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 4px; border-bottom: 1px dashed rgba(43, 33, 64, .2); font-size: 14px; }
.act-list li:last-child { border-bottom: 0; }
.act-list li a { white-space: nowrap; color: var(--ink2); font-weight: 700; text-decoration: none; font-size: 13px; }
.act-list .k-buy span { color: #1f9d55; }
.act-list .k-sell span { color: #d6455d; }
.act-list .k-burn span { color: #e0662a; }
.act-list .k-tre span { font-weight: 700; }
.coin-act .note { margin: 8px 0 0; }
@media (max-width: 560px) { .act-tot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the room keeps its size and stays at the top; the coin activity fills the space under it */
.me-left { display: flex; flex-direction: column; border-right: 3px solid var(--ink); min-width: 0; }
.me-left .room { flex: 1; border-right: 0; }
.me-left:has(.coin-act:not(.hidden)) .room { flex: none; height: 460px; border-bottom: 3px solid var(--ink); }
.stat.fill2 { grid-column: span 2; }
.stat.castat a { font-size: 13px; font-weight: 800; color: var(--ink2); }
.ca-row { display: flex; align-items: center; gap: 8px; margin: 4px 0 2px; }
.ca-row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13px ui-monospace, Menlo, Consolas, monospace; background: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: 4px 8px; }
.ca-row .btn { flex: none; }
@media (max-width: 900px) {
  /* on a phone: the pet, then its info, then the coin activity */
  .me-left { display: contents; }
  .me-left .room { order: 0; border-bottom: 3px solid var(--ink); }
  .me-left:has(.coin-act:not(.hidden)) .room { height: 340px; }
  .me-info { order: 1; }
  .me-left .coin-act { order: 2; margin-top: 0; }
  .stat.fill2 { grid-column: span 2; }
}
