:root {
  --bg: #061316;
  --bg2: #0a1f23;
  --panel: #0f2a2e;
  --panel2: #133539;
  --line: #1f474b;
  --text: #ecfbe9;
  --muted: #8fb3ad;
  --acid: #b9ff3c;
  --teal: #39f5d0;
  --pink: #ff7aa8;
  --gold: #ffd34d;
  --red: #ff5f6d;
  --radius: 18px;
  --display: 'Fredoka', ui-rounded, system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 15px/1.5 var(--body);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(57, 245, 208, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(185, 255, 60, .08), transparent 60%),
    var(--bg);
}
a { color: var(--teal); }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; margin: 0 0 .4em; line-height: 1.15; letter-spacing: .2px; }
h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 10px 18px;
  background: rgba(6, 19, 22, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 600 20px var(--display); white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; }
.brand b { color: var(--acid); font-weight: 600; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  text-decoration: none; color: var(--muted); padding: 7px 12px; border-radius: 999px; white-space: nowrap; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; gap: 6px; position: relative;
}
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.on { color: #072019; background: var(--acid); }
.nav .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.wallet { display: flex; align-items: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line);
  font-weight: 800; font-size: 14px; white-space: nowrap; text-decoration: none; color: var(--text);
}
.pill.schlecki { border-color: rgba(255, 122, 168, .45); }
.pill.schlecki:hover { background: #2a1a24; }
.coin {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; flex: none;
  font: 800 10px/1 var(--display); color: #3a0d1e; background: radial-gradient(circle at 35% 30%, #ffe1ec, #ff8fb8 55%, #d9467e);
  box-shadow: 0 0 8px rgba(255, 120, 170, .45);
}
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--panel2); object-fit: cover; flex: none; }
.me { display: flex; align-items: center; gap: 8px; cursor: pointer; background: none; border: 0; padding: 0; }
.menu { position: absolute; right: 16px; top: 58px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 6px; min-width: 190px; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 10px; background: none; border: 0; color: var(--text); text-decoration: none; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--panel2); }

main { max-width: 1180px; margin: 0 auto; padding: 22px 18px 80px; }

/* ---------- generic ---------- */
.card { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.grid { display: grid; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 14px; padding: 11px 18px;
  font: 600 15px var(--display); background: var(--panel2); color: var(--text); text-decoration: none; transition: transform .12s, filter .12s, background .12s;
}
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; transform: none; }
.btn.primary { background: var(--acid); color: #102400; box-shadow: 0 6px 24px rgba(185, 255, 60, .25); }
.btn.teal { background: var(--teal); color: #032a22; }
.btn.pink { background: var(--pink); color: #3a0d1e; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 11px; }
.btn.discord { background: #5865f2; color: #fff; }
.input { width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; outline: none; }
.input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(57, 245, 208, .15); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { border: 1px solid var(--line); background: var(--bg2); color: var(--muted); padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 700; }
.tabs button.on { background: var(--teal); color: #032a22; border-color: var(--teal); }
.bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--acid)); transition: width .5s; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--panel2); color: var(--muted); }
.chip.acid { background: rgba(185,255,60,.14); color: var(--acid); }
.chip.pink { background: rgba(255,122,168,.15); color: var(--pink); }
.chip.gold { background: rgba(255,211,77,.15); color: var(--gold); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.empty { text-align: center; padding: 30px; color: var(--muted); }

/* ---------- landing ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; min-height: 72vh; }
.hero h1 { font-size: clamp(38px, 6.5vw, 68px); line-height: 1; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--acid); text-shadow: 0 0 30px rgba(185, 255, 60, .45); }
.hero p { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero-stage { position: relative; aspect-ratio: 400 / 300; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 6px rgba(57,245,208,.05); }
.hero-stage .room-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-pets { position: absolute; inset: auto 0 6% 0; display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.hero-pets svg { width: 34%; height: auto; }
.hero-pets svg:nth-child(2) { width: 38%; margin-bottom: 4%; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.features .card { padding: 16px; }
.features b { display: block; font-family: var(--display); font-size: 17px; margin: 6px 0 2px; }
.notice { padding: 12px 16px; border-radius: 14px; background: rgba(255, 95, 109, .12); border: 1px solid rgba(255, 95, 109, .35); margin: 16px 0; }

/* ---------- adopt ---------- */
.adopt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.adopt-card { cursor: pointer; text-align: center; transition: transform .2s, border-color .2s; position: relative; }
.adopt-card:hover { transform: translateY(-4px); border-color: var(--teal); }
.adopt-card.on { border-color: var(--acid); box-shadow: 0 0 0 3px rgba(185,255,60,.25); }
.adopt-card.taken { opacity: .45; pointer-events: none; }
.adopt-card svg { width: 180px; height: 180px; }
.adopt-card p { color: var(--muted); font-size: 14px; min-height: 64px; }

/* ---------- home ---------- */
.home { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.pet-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.pet-tab { display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; font-weight: 800; color: var(--text); }
.pet-tab svg { width: 38px; height: 38px; }
.pet-tab.on { border-color: var(--acid); background: #1a3a1f; }
.pet-tab.locked { color: var(--muted); cursor: default; padding: 8px 14px; border-style: dashed; }
.pet-tab .alert { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.stage {
  position: relative; aspect-ratio: 400 / 290; border-radius: 26px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,.45); user-select: none; -webkit-user-select: none;
}
.stage .room-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .pet-wrap { position: absolute; left: 50%; bottom: 3%; width: 58%; transform: translateX(-50%); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.stage .pet-wrap svg { width: 100%; height: auto; display: block; }
.stage .name-tag { position: absolute; left: 16px; top: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stage .name-tag h2 { margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.stage .status { position: absolute; right: 14px; top: 14px; max-width: 46%; text-align: right; }
.bubble { display: inline-block; background: rgba(255,255,255,.92); color: #13232a; padding: 7px 13px; border-radius: 16px 16px 4px 16px; font-weight: 800; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.mess { position: absolute; bottom: 5%; cursor: pointer; animation: wobble 2s ease-in-out infinite; z-index: 2; }
.mess:hover { filter: brightness(1.2); }
.away-sign { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.away-sign .card { background: rgba(10, 31, 35, .88); backdrop-filter: blur(6px); max-width: 320px; }
.floaty { position: absolute; pointer-events: none; font-size: 26px; animation: floatUp 1.2s ease-out forwards; z-index: 5; }
.actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; margin-top: 14px; }
.act {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 6px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--panel); cursor: pointer; font: 600 14px var(--display); color: var(--text); position: relative; transition: transform .12s, background .12s;
}
.act span:first-child { font-size: 26px; line-height: 1.1; }
.act small { font: 700 11px var(--body); color: var(--muted); }
.act:hover { background: var(--panel2); transform: translateY(-2px); }
.act:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.act.hot { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(255,122,168,.2); }
.act.hot::after { content: ''; position: absolute; top: 7px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.stats { display: grid; gap: 10px; }
.stat { display: grid; grid-template-columns: 26px 72px 1fr 34px; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.stat .bar { height: 12px; }
.stat.low .bar > i { background: linear-gradient(90deg, var(--red), #ff9a5c); }
.stat.low { color: #ffb3ba; }
.level-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; }
.level-badge { font: 600 22px var(--display); color: var(--acid); }
.check { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-weight: 700; }
.check:last-child { border: 0; }
.tick { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); display: grid; place-items: center; flex: none; font-size: 13px; }
.done .tick { background: var(--acid); border-color: var(--acid); color: #142a00; }
.done .label { color: var(--muted); text-decoration: line-through; }
.good-banner { padding: 12px 14px; border-radius: 14px; background: linear-gradient(90deg, rgba(185,255,60,.18), rgba(57,245,208,.12)); border: 1px solid rgba(185,255,60,.35); font-weight: 800; }
.streak { display: flex; align-items: center; gap: 12px; }
.streak .fire { font-size: 34px; filter: drop-shadow(0 0 10px rgba(255,140,60,.6)); }
.streak b { font: 600 28px var(--display); }
.side { display: grid; gap: 14px; }

/* ---------- quests ---------- */
.quest { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.quest .q-ico { font-size: 22px; width: 32px; text-align: center; }
.quest .grow { flex: 1; min-width: 0; }
.quest .bar { margin-top: 6px; height: 7px; }
.quest.done { border-color: rgba(185,255,60,.4); background: rgba(185,255,60,.06); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ach { padding: 14px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); }
.ach .stars { color: var(--gold); letter-spacing: 2px; }
.ach .stars i { color: #33514f; font-style: normal; }
.log-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.log-row:last-child { border: 0; }
.plus { color: var(--acid); font-weight: 800; white-space: nowrap; }

/* ---------- shop / wardrobe ---------- */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.item { text-align: center; padding: 12px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; align-items: center; position: relative; }
.item svg.pet-svg { width: 120px; height: 120px; }
.item .item-room { width: 100%; aspect-ratio: 400/260; border-radius: 12px; overflow: hidden; }
.item .item-room svg { width: 100%; height: 100%; display: block; }
.item b { font-family: var(--display); font-weight: 600; }
.item.owned { border-color: rgba(57,245,208,.35); }
.item.worn { border-color: var(--acid); box-shadow: 0 0 0 2px rgba(185,255,60,.2); }
.item .src { font-size: 12px; color: var(--muted); min-height: 18px; }
.item .lock { position: absolute; top: 10px; right: 10px; font-size: 14px; }
.item.locked svg { filter: grayscale(.8) brightness(.6); }
.wardrobe { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
.wardrobe .stage { position: sticky; top: 76px; }
.event-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(90deg, #2b1240, #3d1a1f); border: 1px solid #5a2d6e; margin-bottom: 16px; }
.event-head .big { font-size: 40px; }

/* ---------- games ---------- */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.game-card { display: flex; flex-direction: column; gap: 10px; }
.game-card .icon { font-size: 54px; }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(2, 8, 10, .82); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.modal .card { width: min(560px, 100%); max-height: 94vh; overflow: auto; }
.game-box { position: relative; }
.game-box canvas { width: 100%; height: auto; display: block; border-radius: 16px; background: #071a1d; touch-action: none; }
.game-hud { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 800; }
.game-over { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: rgba(4, 16, 18, .86); border-radius: 16px; padding: 20px; }
.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mem { aspect-ratio: 1; border-radius: 14px; border: 0; cursor: pointer; font-size: clamp(26px, 7vw, 40px); background: linear-gradient(145deg, #1b4a4a, #0f2c2f); box-shadow: inset 0 0 0 2px #2a6060; transition: transform .25s; }
.mem.open { background: #e9fff2; transform: rotateY(180deg); }
.mem.open span { display: inline-block; transform: rotateY(180deg); }
.mem.matched { background: rgba(185,255,60,.25); box-shadow: inset 0 0 0 2px var(--acid); }
.mem span { visibility: hidden; }
.mem.open span, .mem.matched span { visibility: visible; }

/* ---------- lake ---------- */
.lake { position: relative; aspect-ratio: 400 / 230; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); }
.lake .room-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lake-pet { position: absolute; width: 15%; cursor: pointer; transform: translate(-50%, -100%); transition: filter .2s; }
.lake-pet svg { width: 100%; height: auto; display: block; }
.lake-pet:hover { filter: drop-shadow(0 0 10px rgba(185,255,60,.7)); z-index: 3; }
.lake-pet .tag { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); font-size: 11px; font-weight: 800; background: rgba(0,0,0,.55); padding: 1px 7px; border-radius: 99px; white-space: nowrap; }
.lake-pet.mine .tag { background: var(--acid); color: #142a00; }
.lake-pet .crown-tag { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); font-size: 18px; }
.lake-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
.feed-row { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.feed-row:last-child { border: 0; }
.pet-card-pop { display: flex; gap: 14px; align-items: center; }
.pet-card-pop svg { width: 130px; height: 130px; flex: none; }

/* ---------- ranks ---------- */
.rank-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.rank-row:last-child { border: 0; }
.rank-row .pos { width: 26px; font: 600 18px var(--display); color: var(--muted); text-align: center; }
.rank-row:nth-child(1) .pos { color: var(--gold); }
.rank-row svg { width: 44px; height: 44px; }

/* ---------- admin ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.field { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.table-wrap { overflow-x: auto; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { padding: 12px 16px; border-radius: 14px; background: #f1fff4; color: #0d2a20; font-weight: 800; box-shadow: 0 14px 40px rgba(0,0,0,.4); display: flex; gap: 10px; align-items: center; animation: toastIn .3s ease-out; }
.toast.err { background: #ffe3e6; color: #5c0d18; }
.toast.big { background: linear-gradient(90deg, var(--acid), var(--teal)); color: #0b2a10; }
.toast .coin { width: 20px; height: 20px; }

/* ---------- animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .pet-svg.anim .body { animation: bob 3.2s ease-in-out infinite; transform-origin: 100px 186px; }
  .pet-svg.anim.st-sleeping .body { animation: breathe 4.5s ease-in-out infinite; }
  .pet-svg.anim.st-sad .body, .pet-svg.anim.st-sick .body { animation: breathe 5s ease-in-out infinite; }
  .pet-svg.anim.st-happy .body { animation: hop 2.2s ease-in-out infinite; }
  .pet-svg.anim .eyes { animation: blink 5.5s infinite; transform-box: fill-box; transform-origin: center; }
  .pet-svg.anim.st-sleeping .eyes { animation: none; }
  .pet-svg .buddy { animation: bob 2.4s ease-in-out infinite; }
  .zzz text { animation: zz 2.4s ease-in-out infinite; }
  .zzz text:nth-child(2) { animation-delay: .4s; } .zzz text:nth-child(3) { animation-delay: .8s; }
  .spin { animation: spin .5s linear infinite; }
  .glowspot { animation: glowp 2.4s ease-in-out infinite; }
  .pulse { animation: pulse 3s ease-in-out infinite; }
  .twinkle { animation: twinkle 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .rise { animation: rise 4s ease-in infinite; transform-box: fill-box; }
  .fall { animation: fall 6s linear infinite; }
  .orbit { animation: spin 9s linear infinite; }
  .flap { animation: flap 1.6s ease-in-out infinite; }
  .wave { animation: wave 4s ease-in-out infinite; }
  .steam { animation: steam 5s ease-in-out infinite; }
  .stink path { animation: steam 2.4s ease-in-out infinite; }
  .stage .pet-wrap.squish svg { animation: squish .4s ease-out; }
  .lake-pet.swim { animation: drift var(--d, 9s) ease-in-out infinite alternate; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes hop { 0%, 70%, 100% { transform: translateY(0) scale(1, 1); } 78% { transform: translateY(0) scale(1.06, .94); } 86% { transform: translateY(-10px) scale(.97, 1.04); } }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.02, .98); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes zz { 0%, 100% { opacity: .2; transform: translateY(4px); } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glowp { 0%, 100% { opacity: .65; } 50% { opacity: 1; filter: drop-shadow(0 0 4px currentColor); } }
@keyframes pulse { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-150px); opacity: 0; } }
@keyframes fall { 0% { transform: translateY(-10px); } 100% { transform: translateY(270px); } }
@keyframes flap { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes wave { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@keyframes steam { 0%, 100% { opacity: .2; transform: translateY(2px); } 50% { opacity: .7; transform: translateY(-4px); } }
@keyframes squish { 0% { transform: scale(1, 1); } 35% { transform: scale(1.08, .9); } 70% { transform: scale(.96, 1.05); } 100% { transform: scale(1, 1); } }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; transform: translateY(-10px) scale(1.1); } 100% { opacity: 0; transform: translateY(-80px) scale(1); } }
@keyframes wobble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translate(-50%, -100%); } to { transform: translate(calc(-50% + var(--dx, 30px)), calc(-100% + var(--dy, -6px))); } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .home, .lake-wrap, .wardrobe { grid-template-columns: 1fr; }
  .wardrobe .stage { position: relative; top: 0; max-width: 420px; margin: 0 auto; width: 100%; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 10px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .games { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .top { flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
  .nav { order: 3; flex-basis: 100%; }
  .wallet { margin-left: auto; }
  .wallet .pill { padding: 5px 9px; font-size: 13px; }
  .brand span { display: none; }
  main { padding: 16px 14px 70px; }
  .adopt-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .stat { grid-template-columns: 24px 64px 1fr 30px; font-size: 13px; }
  .lake-pet { width: 18%; }
  .lake-pet .tag { font-size: 9px; }
  .items { grid-template-columns: repeat(2, 1fr); }
}
