/* lorendil.com - Blubbi. All art is real game art exported by trailer/website_assets.py in the Blubbi project. */
@font-face { font-family: Peaberry; src: url(../game/font/PeaberryBase.ttf) format("truetype"); font-display: swap; }
:root {
  --night: #0d1330; --night2: #131a44; --night3: #1a2358; --line: #2a3672;
  --ink: #fff7ea; --cream: #f8e2a7; --mute: #b8bfe6; --dim: #8088bd;
  --cyan: #53ecd3; --cyan2: #26b9a2; --wood: #6b5340; --wood2: #4f3d2f; --woodlite: #8a6b4e; --pink: #ff9ec0;
  --pane: 51px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font: 500 17px/1.6 Nunito, "Segoe UI", sans-serif; overflow-x: hidden;
  cursor: url(../game/ui/hand_2x.png) 8 2, auto; }
a, button, .clickable, .bb, .kind, .cos, .food, .rtab, .clip { cursor: url(../game/ui/hand_2x.png) 8 2, pointer; }
.bb, .kind { cursor: url(../game/ui/hand_pet_2x.png) 12 6, pointer; }
img { display: block; }
.pix, .pix img, img.pix { image-rendering: pixelated; image-rendering: crisp-edges; }
.px { font-family: Peaberry, "Segoe UI", sans-serif; font-weight: normal; letter-spacing: .5px; }
h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.1; margin: 6px 0 16px; text-shadow: 0 3px 0 rgba(10,12,30,.6); }
h2.big { font-size: clamp(38px, 6vw, 72px); }
p { margin: 0 0 14px; color: var(--mute); }
.lead { font-size: 19px; max-width: 760px; margin: 0 auto 10px; }
.muted { color: var(--dim); } .small { font-size: 13px; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; position: relative; z-index: 2; }
.center { text-align: center; }
.two { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.two.flip > :first-child { order: 2; }
.eyebrow { color: var(--cyan); font-size: 18px; letter-spacing: 2px; text-transform: uppercase; }
.sec { position: relative; padding: 120px 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 14px; font: 20px Peaberry, sans-serif;
  text-decoration: none; color: #062a24; border: 0; position: relative; transition: transform .12s, filter .15s; letter-spacing: .5px; }
.btn:hover { transform: translateY(-3px) scale(1.03); filter: brightness(1.08); }
.btn:active { transform: translateY(2px) scale(.98); }
.btn-cyan { background: linear-gradient(180deg, #7ff8e5, var(--cyan) 45%, var(--cyan2)); box-shadow: 0 6px 0 #127a6a; }
.btn-wood { color: var(--cream); background: linear-gradient(180deg, var(--woodlite), var(--wood) 50%, var(--wood2)); box-shadow: 0 6px 0 #2e2219; }
.btn.sm { padding: 9px 16px; font-size: 16px; box-shadow: 0 4px 0 #127a6a; }

/* game UI frame (OrnateCornersUISquare 9-slice, 17px corners) */
.panel { border: var(--pane) solid transparent; border-image: url(../game/ui/OrnateCornersUISquare.png) 17 fill / var(--pane) round;
  image-rendering: pixelated; padding: 6px; box-shadow: 0 14px 0 -6px rgba(0,0,0,.28); }
.panel > * { image-rendering: auto; }

/* nav */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(1180px, 100% - 28px); display: flex; align-items: center; gap: 22px;
  padding: 10px 12px 10px 22px; border-radius: 18px; background: rgba(13,19,48,.82); border: 1px solid rgba(255,255,255,.08);
  transition: background .3s; }
.nav.scrolled { background: rgba(13,19,48,.92); box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.brand { font-size: 24px; color: var(--ink); text-decoration: none; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--mute); text-decoration: none; font-weight: 700; transition: color .2s; }
.links a:hover { color: var(--cyan); }
.burger { display: none; background: none; border: 0; padding: 8px; }
.burger span { display: block; width: 24px; height: 3px; margin: 4px 0; background: var(--ink); border-radius: 3px; }

/* hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 120px 0 230px; }
.hero-world { position: absolute; top: -8%; bottom: -8%; left: -10%; right: -10%; image-rendering: pixelated; will-change: transform;
  background: url(../game/worlds/solhaven.png) 50% 58% / calc(544px * var(--wk, 4)) auto; animation: pan 40s ease-in-out infinite alternate; }
/* darkening = a pre-rendered image moving with the art (Firefox re-draws CSS gradients every frame, images it caches) */
.hero-shade { position: absolute; inset: 0; background: url(../game/ui/hero_shade.png) 0 0 / 100% 100%; image-rendering: auto; }
@keyframes pan { from { transform: translate3d(-4%, 1%, 0); } to { transform: translate3d(4%, -1%, 0); } }
.hero-inner { position: relative; z-index: 3; text-align: center; padding: 0 20px; }
.hero-logo { position: relative; width: min(640px, 82vw); margin: 0 auto;
  animation: logoIn 1s cubic-bezier(.2,1.6,.4,1) both, bob 3.2s ease-in-out 1s infinite; will-change: transform; }
@keyframes logoIn { from { transform: scale(.3) translateY(40px); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1deg); } }
.hero-tag { font-size: clamp(20px, 2.6vw, 30px); color: var(--cream); margin: 18px 0 28px; text-shadow: 0 3px 0 rgba(10,12,30,.7); animation: rise .8s .35s both; }
.hero-cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; animation: rise .8s .5s both; }
.hero-cta.left { justify-content: flex-start; }
.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; animation: rise .8s .65s both; }
.chip { padding: 6px 14px; border-radius: 99px; background: rgba(13,19,48,.65); border: 1px solid rgba(255,255,255,.12); color: var(--mute); font-weight: 700; font-size: 15px; }
.chip b { color: var(--cyan); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.parade { position: absolute; left: 0; right: 0; bottom: 30px; height: 200px; z-index: 4; }
.parade.small { position: relative; bottom: 0; height: 170px; margin-top: 30px; }
.hint { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 4; color: var(--dim); font-size: 14px; animation: rise 1s 1.6s both; }

/* Blubbi rig */
.bb { position: absolute; left: 0; top: 0; will-change: transform; }
.logo-im { position: relative; width: 100%; }
.logo-sh { position: absolute; left: 0; top: 10px; width: 100%; }
.bb .lay { position: absolute; left: 0; top: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.bb .part, .bb .shadow { position: absolute; left: 0; top: 0; width: 100%; height: 100%; will-change: transform; }   /* own GPU layer each: squish = no repaint */

/* care demo */
.raise { background: linear-gradient(180deg, var(--night), var(--night2)); }
.try { display: inline-block; margin-top: 10px; color: var(--cream); padding: 10px 16px; border-radius: 12px; background: rgba(248,226,167,.08); border: 1px dashed rgba(248,226,167,.35); font-size: 16px; }
.care-stage { position: relative; height: 360px; border-radius: 10px; overflow: hidden; background: url(../game/worlds/solhaven.png) 47% 46% / 2176px auto; image-rendering: pixelated; }
.bubble { position: absolute; right: 16%; top: 14%; width: 108px; height: 84px; background: url(../game/ui/ThoughtBubble-Large.png) center / 100% 100%; image-rendering: pixelated;
  display: flex; align-items: center; justify-content: center; transform-origin: 20% 100%; transition: transform .25s cubic-bezier(.3,1.8,.5,1), opacity .2s; }
.bubble img { width: 48px; height: 48px; margin-top: -10px; image-rendering: pixelated; }
.bubble.hide { transform: scale(0); opacity: 0; }
.bars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; padding: 16px 8px 6px; }
.bar { display: grid; grid-template-columns: 52px 1fr 40px; align-items: center; gap: 10px; font: 15px Peaberry, sans-serif; color: var(--cream); }
.bar .track { height: 16px; border-radius: 4px; background: #3a2c21; box-shadow: inset 0 0 0 2px #29211a; overflow: hidden; position: relative; }
.bar .fill { position: absolute; inset: 2px auto 2px 2px; border-radius: 3px; transition: width .5s cubic-bezier(.3,1.4,.5,1); }
.bar .fill::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: rgba(255,255,255,.35); border-radius: 3px; }
.bar .val { text-align: right; color: var(--ink); }
.foods { display: flex; gap: 10px; justify-content: center; padding: 10px 0 4px; flex-wrap: wrap; }
.food { width: 64px; height: 64px; border-radius: 12px; background: #3a2c21; border: 2px solid #5a4636; display: grid; place-items: center; transition: transform .12s, border-color .2s; }
.food:hover { transform: translateY(-4px) rotate(-4deg); border-color: var(--cyan); }
.food img { width: 44px; height: 44px; image-rendering: pixelated; }

/* collect */
.collect { background: linear-gradient(180deg, #1a2358, var(--night2) 40%); }
.rtabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 34px 0 22px; }
.rtab { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 14px; background: var(--night3); border: 2px solid transparent;
  font: 16px Peaberry, sans-serif; color: var(--mute); transition: transform .15s, border-color .2s, background .2s; }
.rtab img { width: 34px; height: 34px; image-rendering: pixelated; }
.rtab:hover { transform: translateY(-3px); }
.rtab.on { color: #10142e; background: var(--rc); border-color: rgba(255,255,255,.6); box-shadow: 0 4px 0 rgba(0,0,0,.3); }
.dex { min-height: 300px; }
.dexgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 10px; }
.kind { position: relative; display: flex; flex-direction: column; align-items: center; padding: 6px 0 10px; border-radius: 12px; transition: background .2s; }
.kind:hover { background: rgba(255,255,255,.06); }
.kind .sprite { width: 180px; height: 180px; margin: -30px 0 -24px; position: relative; z-index: 0; image-rendering: pixelated; transform-origin: 50% 75%; animation: idle 1.6s ease-in-out infinite; will-change: transform; }
.kind:hover .sprite { animation: hop .7s cubic-bezier(.3,.7,.4,1) infinite; }
.kind .nm { position: relative; z-index: 1; font: 16px Peaberry, sans-serif; color: #3b2a1e; }
@keyframes idle { 0%,100% { transform: scale(1,1); } 50% { transform: scale(1.04,.95); } }
@keyframes hop { 0% { transform: scale(1.1,.88); } 25% { transform: translateY(-34px) scale(.94,1.08); } 55% { transform: translateY(0) scale(1.14,.86); } 75% { transform: scale(.97,1.03); } 100% { transform: scale(1,1); } }
.dexgrid .kind { opacity: 0; animation: pop .45s cubic-bezier(.3,1.7,.5,1) forwards; }
@keyframes pop { from { opacity: 0; transform: scale(.4) translateY(20px); } to { opacity: 1; transform: none; } }
.shinyrow { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.shiny { position: relative; width: 170px; text-align: center; }
.shiny img.sp { width: 180px; height: 180px; margin: -20px auto -36px; image-rendering: pixelated; transform-origin: 50% 75%; animation: idle 1.4s ease-in-out infinite; }
.shiny .nm { position: relative; z-index: 1; font: 15px Peaberry, sans-serif; background: linear-gradient(90deg, #ff9aa6, #ffd48d, #a6f7a0, #7fd8ff, #c9a2ff, #ff9ec0); -webkit-background-clip: text; background-clip: text; color: transparent;
  }
@keyframes rainbow { to { background-position: 200% 0; } }
.shiny img.twinkle, .twinkle { position: absolute; width: 27px; height: 27px; margin: 0; z-index: 2; image-rendering: pixelated; pointer-events: none; animation: tw 1.6s ease-in-out infinite; }
@keyframes tw { 0%,100% { transform: scale(0) rotate(0); opacity: 0; } 40% { transform: scale(1) rotate(45deg); opacity: 1; } 70% { transform: scale(.4) rotate(90deg); opacity: .6; } }

/* closet */
.dress { background: linear-gradient(180deg, var(--night2), var(--night)); }
.closet-stage { position: relative; height: 360px; border-radius: 10px; overflow: hidden; background: url(../game/worlds/isla.png) 50% 40% / 2176px auto; image-rendering: pixelated; }
.closet-kinds, .closet-cos { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 12px 6px 4px; }
.pick { width: 58px; height: 58px; border-radius: 12px; background: #3a2c21; border: 2px solid #5a4636; display: grid; place-items: center; transition: transform .12s, border-color .2s; padding: 0; }
.pick img { width: 60px; height: 60px; image-rendering: pixelated; margin-top: -4px; }
.pick:hover { transform: translateY(-4px); }
.pick.on { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(83,236,211,.25); }
.cos img { width: 46px; height: 46px; margin: 0; }
.closet-cos .pick { overflow: hidden; }

/* explore */
.explore { background: var(--night); padding-bottom: 80px; }
.worlds { display: flex; gap: 24px; overflow-x: auto; padding: 40px max(20px, calc(50vw - 590px)) 20px; scroll-snap-type: x mandatory;
  scroll-padding: 0 max(20px, calc(50vw - 590px)); scrollbar-width: none; }
.worlds::-webkit-scrollbar { display: none; }
.world { flex: none; width: min(544px, 86vw); scroll-snap-align: start; }
.world .pic { height: 320px; border-radius: 12px; background-size: 544px 320px; background-repeat: no-repeat; background-color: #0a0f27; image-rendering: pixelated;
  box-shadow: inset 0 0 0 4px rgba(0,0,0,.25); }
.world .cap { margin-top: -26px; position: relative; display: flex; justify-content: center; }
.world .cap span { font: 20px Peaberry, sans-serif; color: var(--cream); padding: 14px 26px; border: 27px solid transparent; border-image: url(../game/ui/OrnateCornersUISquare.png) 17 fill / 34px round; image-rendering: pixelated; }
.world p { text-align: center; margin-top: 8px; font-size: 15px; }
.wnavs { display: flex; justify-content: center; gap: 16px; position: relative; z-index: 2; }
.wnav { width: 54px; height: 54px; border-radius: 50%; border: 0; font-size: 18px; color: #062a24; background: linear-gradient(180deg, #7ff8e5, var(--cyan2));
  box-shadow: 0 5px 0 #127a6a; transition: transform .12s, opacity .2s; }
.wnav:hover { transform: scale(1.1); }
.wnav:disabled { opacity: .25; transform: none; cursor: default; }

/* cta */
.cta { overflow: hidden; padding: 150px 0 40px; }
.cta-world { position: absolute; inset: 0; background: url(../game/worlds/ackyria.png) 50% 50% / 2176px auto; image-rendering: pixelated; opacity: .5; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--night), rgba(13,19,48,.5) 40%, rgba(13,19,48,.6) 70%, var(--night)); }
.cta-in { z-index: 2; }
.soon { margin-top: 24px; color: var(--cyan); font-size: 16px; opacity: .85; }

/* studio */
.studio { background: var(--night); }
.studio-art { position: relative; height: 420px; border-radius: 18px; overflow: hidden; background: url(../game/worlds/hammock.png) 47% 55% / 2176px auto; image-rendering: pixelated;
  box-shadow: 0 10px 0 -2px rgba(0,0,0,.3), inset 0 0 0 4px rgba(0,0,0,.2); }
.hammock { position: absolute; image-rendering: pixelated; background-repeat: no-repeat; }

/* footer */
.foot { padding: 46px 0 60px; border-top: 1px solid var(--line); background: #0a0f27; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--mute); text-decoration: none; font-weight: 700; }
.foot-links a:hover { color: var(--cyan); }

/* fx + reveal */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.fx img { position: absolute; left: 0; top: 0; image-rendering: pixelated; will-change: transform, opacity; }
.fx .float { position: absolute; left: 0; top: 0; font: 36px Peaberry, sans-serif; text-shadow: 0 3px 0 rgba(0,0,0,.45); will-change: transform; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.9,.3,1.2); }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 980px) {
  .two { grid-template-columns: 1fr; gap: 34px; } .two.flip > :first-child { order: 0; }
  .links { display: none; position: absolute; top: 64px; right: 0; left: 0; flex-direction: column; gap: 0; padding: 10px; background: rgba(13,19,48,.97); border-radius: 16px; }
  .links.open { display: flex; } .links a { padding: 12px 14px; }
  .burger { display: block; margin-left: auto; } .nav .btn.sm { display: none; }
  .sec { padding: 90px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; } :root { --pane: 34px; }
  .bars { grid-template-columns: 1fr; }
  .kind .sprite { width: 150px; height: 150px; } .dexgrid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .hero { padding-bottom: 200px; } .parade { height: 160px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
/* full-page screenshot mode (?shot): fixed hero height, everything revealed */
.shot .hero { min-height: 900px; } .shot .reveal { opacity: 1; transform: none; }
.hero.off .hero-world, .hero.off .hero-logo { animation-play-state: paused; }
