: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 path:first-child { transform-origin: 56px 124px; animation: flapL .5s ease-in-out infinite alternate; }
.pet.alive .wing path:last-child { transform-origin: 144px 124px; animation: flapR .5s ease-in-out infinite alternate; }
.pet .bob, .pet .blink, .pet .wobble, .pet .pulse, .pet .twinkle, .pet .spin, .pet .float, .pet .wing path { transform-box: view-box; }
@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 320px; gap: 18px; }
.park { position: relative; height: 470px; overflow: hidden; background: linear-gradient(#BFE6FF, #E8F6FF 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: 5%; bottom: 23%; width: 22%; height: 11%; 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: 470px; }
.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: 999px; font-weight: 800; box-shadow: 3px 3px 0 var(--pink); }

/* 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: 400px; }
  .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; }
}
