/* ═══════════════════════════════════════════════════════════════
   games.krk.today — Love My Pet
   Palette from the app (brief §6): off-white, warm dark brown lines,
   peach and sage. Fraunces with its SOFT axis for the round, friendly
   headings; Hanken Grotesk for text.
═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #fbf5ec;
  --paper: #fffaf3;
  --ink: #45301f;
  --ink-2: #6b5140;          /* 6.6:1 on --bg */
  --line: #ecdfcd;
  --peach: #f2a477;
  --peach-d: #c8643a;        /* buttons: white text 4.6:1 */
  --peach-l: #fde3d1;
  --sage: #a8bf98;
  --sage-d: #57724a;
  --sage-l: #e6eedc;
  --rose: #ef8d97;
  --rose-l: #fbe0e1;
  --butter-l: #fbefc9;
  --sky-l: #dfecf1;
  --lilac-l: #ebe3f2;
  --night: #24304a;
  --heart: #ee6f86;

  --f-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --f-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-s: 14px;
  --r-m: 22px;
  --r-l: 34px;
  --shadow: 0 1px 2px rgba(69, 48, 31, .06), 0 10px 30px -12px rgba(69, 48, 31, .22);
  --shadow-lift: 0 2px 4px rgba(69, 48, 31, .08), 0 24px 50px -18px rgba(69, 48, 31, .35);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --band: clamp(72px, 10vw, 128px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--peach-d); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0;
}
h1 em, h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--peach-d);
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--peach-d); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .32 0 0 0 0 .22 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-d);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; width: 18px; height: 16px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cellipse cx='12' cy='15.5' rx='6' ry='5'/%3E%3Cellipse cx='4' cy='9' rx='2.6' ry='3.2'/%3E%3Cellipse cx='20' cy='9' rx='2.6' ry='3.2'/%3E%3Cellipse cx='8.5' cy='3.6' rx='2.5' ry='3.3'/%3E%3Cellipse cx='15.5' cy='3.6' rx='2.5' ry='3.3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cellipse cx='12' cy='15.5' rx='6' ry='5'/%3E%3Cellipse cx='4' cy='9' rx='2.6' ry='3.2'/%3E%3Cellipse cx='20' cy='9' rx='2.6' ry='3.2'/%3E%3Cellipse cx='8.5' cy='3.6' rx='2.5' ry='3.3'/%3E%3Cellipse cx='15.5' cy='3.6' rx='2.5' ry='3.3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lead { font-size: clamp(1.06rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
.note { color: var(--ink-2); font-size: .97rem; max-width: 70ch; }
.cap { text-align: center; color: var(--ink-2); font-size: .9rem; margin-top: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: transform .25s var(--ease-bounce), box-shadow .25s, background .2s;
}
.btn-primary { background: var(--peach-d); color: #fff; box-shadow: 0 8px 20px -8px rgba(200, 100, 58, .7); }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); background: #b9582f; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }

/* ─── nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--shadow); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt strong { font-family: var(--f-display); font-variation-settings: 'SOFT' 100; font-size: 1.15rem; font-weight: 700; }
.brand-txt small { font-size: .72rem; color: var(--ink-2); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; transition: background .2s; }
.nav-links > a:hover { background: var(--peach-l); }
.nav-toggle { display: none; }
.lang-sw { display: inline-flex; gap: 4px; }
.nav-lang { margin-left: 10px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line);
}
.lang-btn img { width: 20px; height: 10px; border-radius: 2px; }
.lang-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    border: 0; border-radius: 50%; background: var(--peach-l); cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .3s, background .3s; }
  .bars::before, .bars::after { content: ''; position: absolute; left: 0; }
  .bars::before { top: -6px; }
  .bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  html.js .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px var(--gutter) 18px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  html.js .nav-links.open { display: flex; }
  .nav-links > a { padding: 12px 14px; font-size: 1.05rem; }
  .nav-lang { margin: 8px 0 0 14px; }
  html:not(.js) .nav-in { flex-wrap: wrap; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .nav-links { flex-wrap: wrap; }
}

/* ─── hero ─── */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(80px, 9vw, 120px); overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.b1 { width: 520px; height: 520px; background: var(--peach-l); top: -160px; right: -120px; }
.b2 { width: 420px; height: 420px; background: var(--sage-l); bottom: -120px; left: -140px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); margin-bottom: 22px; }
.hero .lead { margin-bottom: 26px; }
.soon {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); font-weight: 700; font-size: .95rem; margin-bottom: 26px;
}
.soon-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sage-d); box-shadow: 0 0 0 0 rgba(87, 114, 74, .5); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(87, 114, 74, .45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(87, 114, 74, 0); } }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-size: .93rem; font-weight: 600; }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: '♥'; color: var(--heart); font-size: .85em; }

.hero-play { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.stage {
  position: relative; width: 100%; max-width: 500px; aspect-ratio: 1 / 1.02;
  border-radius: var(--r-l); overflow: hidden; background: var(--peach-l);
  box-shadow: var(--shadow-lift), inset 0 0 0 6px rgba(255, 255, 255, .55);
  isolation: isolate;
}
.stage-room { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .8s, opacity .4s; z-index: -1; }
.stage.dark .stage-room { filter: brightness(.42) saturate(.75) hue-rotate(-8deg); }
.stage::after { /* soft vignette so the pet stands out */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 60%, transparent 55%, rgba(69, 48, 31, .18));
}
.bubble {
  position: absolute; left: 6%; top: 6%; max-width: 78%; z-index: 3;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 20px;
  font-weight: 600; font-size: clamp(.92rem, 1.6vw, 1.05rem); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .3);
  transform-origin: 20% 120%;
}
.bubble::after { content: ''; position: absolute; left: 32px; bottom: -9px; border: 10px solid transparent; border-top-color: #fff; border-bottom: 0; transform: skewX(-25deg); }
.bubble.pop { animation: bubblePop .45s var(--ease-bounce); }
@keyframes bubblePop { from { transform: scale(.6); opacity: 0; } }
.stage-hint {
  position: absolute; right: 5%; bottom: 5%; z-index: 3; font-size: .8rem; font-weight: 700;
  background: rgba(255, 255, 255, .85); padding: 5px 11px; border-radius: 999px; color: var(--ink-2);
  transition: opacity .4s;
}
.stage.petted .stage-hint { opacity: 0; }

.pet {
  position: absolute; left: 50%; bottom: 7%; width: 74%; transform: translateX(-50%);
  border: 0; padding: 0; background: none; cursor: pointer; z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.pet::before { /* floor shadow */
  content: ''; position: absolute; left: 14%; right: 14%; bottom: -3%; height: 9%;
  background: radial-gradient(closest-side, rgba(60, 40, 20, .35), transparent); z-index: -1;
}
.pet:focus-visible { outline-offset: 8px; border-radius: 30px; }
.pet-still { width: 100%; }
.rig { position: relative; width: 100%; }
.rig > img, .rig .head { position: absolute; max-width: none; }
.rig > img.sleeping-pic { position: relative; }
.rig .head img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.rig .base { transform-origin: 50% 100%; animation: breathe 3.4s ease-in-out infinite; }
.rig .tail { animation: sway 3.6s ease-in-out infinite alternate; }
.rig .head { animation: tilt 9s ease-in-out infinite; }
.rig .closed { opacity: 0; animation: blink 4.6s infinite; }
@keyframes breathe { 50% { transform: scaleY(1.012); } }
@keyframes sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes tilt { 0%, 30%, 60%, 100% { transform: rotate(0); } 40%, 50% { transform: rotate(2.2deg); } 75%, 85% { transform: rotate(-2deg); } }
@keyframes blink { 0%, 93%, 100% { opacity: 0; } 95%, 97% { opacity: 1; } }
.pet.wag .tail { animation: wag .4s ease-in-out 4; }
@keyframes wag { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(10deg); } 75% { transform: rotate(-10deg); } }
.pet.nom .head { animation: nom .3s ease-in-out 4; }
@keyframes nom { 50% { transform: translateY(2.5%) rotate(-1deg); } }
.pet.happy .closed { animation: none; opacity: 1; }
.pet.boing { animation: boing .55s var(--ease-bounce); }
@keyframes boing { 0% { transform: translateX(-50%) scale(1); } 30% { transform: translateX(-50%) scale(1.05, .95); } 60% { transform: translateX(-50%) translateY(-4%) scale(.98, 1.03); } }
.sleeping-pic { width: 112%; margin-left: -6%; transform-origin: 50% 100%; animation: breathe 3.8s ease-in-out infinite; }
.zzz { position: absolute; right: 12%; top: -4%; font-family: var(--f-display); font-weight: 700; color: #fff; font-size: 1.6rem; pointer-events: none; }
.zzz span { position: absolute; opacity: 0; animation: zzz 3s ease-in infinite; }
.zzz span:nth-child(2) { animation-delay: 1s; font-size: .8em; }
.zzz span:nth-child(3) { animation-delay: 2s; font-size: .6em; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(26px, -60px); } }

.hearts { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.heart {
  position: absolute; width: 34px; height: 34px; color: var(--heart);
  animation: floatHeart 1.5s var(--ease-out) forwards;
}
.heart svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 4px rgba(200, 60, 90, .35)); }
@keyframes floatHeart {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.3); }
  15% { opacity: 1; transform: translate(-50%, -12px) scale(1.1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -150px) scale(.8) rotate(var(--rot, 0deg)); }
}
.crumb { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #c98a4b; animation: crumb .9s ease-in forwards; }
@keyframes crumb { from { transform: translateY(-120px) scale(.6); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(0) scale(1); opacity: 0; } }

.stage-actions { display: flex; gap: 10px; justify-content: center; }
.care-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 88px; padding: 10px 14px 9px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); cursor: pointer;
  font-weight: 700; font-size: .92rem; box-shadow: var(--shadow);
  transition: transform .25s var(--ease-bounce), background .2s;
}
.care-btn img { width: 40px; height: 40px; transition: transform .3s var(--ease-bounce); }
.care-btn:hover { transform: translateY(-3px); }
.care-btn:hover img { transform: rotate(-8deg) scale(1.08); }
.care-btn:active { transform: scale(.95); }
.care-btn[aria-pressed="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.care-btn:disabled { opacity: .55; cursor: default; transform: none; }
.picker { display: grid; grid-template-columns: repeat(8, minmax(0, 52px)); justify-content: center; gap: 7px; width: 100%; max-width: 500px; }
.pick {
  display: block; width: 100%; height: auto; aspect-ratio: 1; align-self: center; border-radius: 50%; border: 2px solid var(--line); background: var(--paper);
  padding: 4px; cursor: pointer; transition: transform .25s var(--ease-bounce), border-color .2s;
}
.pick img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.pick:hover { transform: translateY(-3px) rotate(-4deg); }
.pick[aria-pressed="true"] { border-color: var(--peach-d); background: var(--peach-l); transform: scale(1.08); }
html:not(.js) .stage-actions, html:not(.js) .picker, html:not(.js) .stage-hint { display: none; }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; fill: var(--paper); }

/* ─── bands ─── */
.band { padding: var(--band) 0; position: relative; }
.band-paper { background: var(--paper); }
.band-sage { background: var(--sage-l); }
.band-peach { background: linear-gradient(180deg, var(--peach-l), #fdeee2); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 18px; }

/* pets */
.group-title { font-size: 1.5rem; margin: 0 0 20px; display: flex; align-items: center; gap: 14px; }
.group-title::after { content: ''; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.pets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-bottom: 48px; }
.pets-3 { grid-template-columns: repeat(3, 1fr); max-width: 720px; margin-left: auto; margin-right: auto; }
.pet-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 18px 14px 18px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line);
  transition: transform .35s var(--ease-bounce), box-shadow .3s;
}
.pet-card::before {
  content: ''; position: absolute; left: 50%; top: 18px; width: 82%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: var(--c, var(--peach-l)); z-index: 0; transition: transform .4s var(--ease-bounce);
}
.pet-card img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; object-fit: contain; object-position: 50% 100%; margin-bottom: 12px; transition: transform .4s var(--ease-bounce); }
.pet-card h4 { position: relative; font-size: 1.25rem; }
.pet-card p { position: relative; color: var(--ink-2); font-size: .9rem; margin-bottom: 12px; }
.pet-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.pet-card:hover img { transform: rotate(-3deg) scale(1.04); }
.pet-card:hover::before { transform: translateX(-50%) scale(1.06); }
.hello {
  position: relative; margin-top: auto; border: 0; cursor: pointer; border-radius: 999px; padding: 8px 16px; min-height: 40px;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: .85rem;
  transition: background .2s, transform .25s var(--ease-bounce);
}
.hello:hover { background: var(--peach-d); transform: scale(1.05); }
html:not(.js) .hello { display: none; }

/* care */
.care-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: clamp(48px, 7vw, 80px); }
.care-grid li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px 18px; transition: transform .3s var(--ease-bounce); }
.care-grid li:hover { transform: translateY(-4px) rotate(-.6deg); }
.care-grid img { width: 56px; height: 56px; margin-bottom: 12px; }
.care-grid h3 { font-size: 1.3rem; margin-bottom: 6px; }
.care-grid p { color: var(--ink-2); font-size: .95rem; }

.phones { display: flex; justify-content: center; align-items: center; gap: clamp(12px, 3vw, 40px); }
.phone { margin: 0; width: 280px; border-radius: 44px; padding: 9px; background: #1d1813; box-shadow: var(--shadow-lift); transition: transform .5s var(--ease-bounce); }
.phone a { display: block; border-radius: 36px; overflow: hidden; }
.phone img { width: 100%; }
.phone-mid { width: 300px; z-index: 1; }
.tilt-l { transform: rotate(-5deg) translateY(24px); }
.tilt-r { transform: rotate(5deg) translateY(24px); }
.phone:hover { transform: translateY(-8px) rotate(0); }
.phones-row { margin-top: clamp(40px, 6vw, 64px); }
.phones-row .phone { width: 250px; }
.phones-row .phone:nth-child(2) { transform: translateY(-24px); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(56px, 8vw, 88px); }
.facts li { display: flex; gap: 16px; align-items: flex-start; }
.facts img, .fact-heart, .fact-moon { flex: none; width: 40px; height: 40px; }
.fact-heart { display: grid; place-items: center; color: var(--heart); font-size: 2rem; line-height: 1; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 40%, 100% { transform: scale(1); } 20% { transform: scale(1.18); } }
.fact-moon { border-radius: 50%; box-shadow: inset -11px -4px 0 0 #e8b85b; transform: rotate(-20deg); }
.facts h3 { font-size: 1.2rem; margin-bottom: 6px; }
.facts p { color: var(--ink-2); font-size: .97rem; }

/* games */
.games { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.game { background: var(--paper); border-radius: var(--r-m); padding: 16px 16px 20px; box-shadow: var(--shadow); }
.game h3 { font-size: 1.2rem; margin: 14px 0 6px; }
.game p { color: var(--ink-2); font-size: .93rem; }
.game-art { position: relative; height: 120px; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #e6f1f4, #f6efe2); }
.ball {
  position: absolute; width: 44px; height: 44px; border-radius: 50%; bottom: 12px; left: 10px;
  background: conic-gradient(from 20deg, #f08a5d 0 25%, #fff 0 50%, #5d9de0 0 75%, #f6d26b 0);
  box-shadow: inset -5px -5px 10px rgba(0, 0, 0, .18);
  animation: roll 3.4s ease-in-out infinite alternate;
}
@keyframes roll { to { left: calc(100% - 54px); transform: rotate(540deg); } }
.treat { position: absolute; width: 18px; height: 14px; border-radius: 40% 40% 50% 50%; background: #c98a4b; top: -20px; animation: fall 2.2s linear infinite; }
.t1 { left: 30%; }
.t2 { left: 62%; animation-delay: 1.1s; }
@keyframes fall { to { top: 130px; } }
.basket { position: absolute; bottom: 8px; left: 50%; width: 64px; height: 26px; margin-left: -32px; border-radius: 4px 4px 22px 22px; background: repeating-linear-gradient(90deg, #d9a066 0 6px, #c88b51 6px 12px); animation: slide 2.2s ease-in-out infinite alternate; }
@keyframes slide { from { transform: translateX(-34px); } to { transform: translateX(34px); } }
.fly { position: absolute; left: 20%; top: 40%; width: 34px; height: 26px; animation: flutter 5s ease-in-out infinite; }
.fly i { position: absolute; top: 0; width: 17px; height: 24px; border-radius: 60% 60% 50% 50%; background: radial-gradient(circle at 50% 40%, #fbd3e0, #ef8d97); animation: flap .25s ease-in-out infinite alternate; }
.fly i:first-child { left: 0; transform-origin: 100% 50%; }
.fly i:last-child { right: 0; transform-origin: 0 50%; }
@keyframes flap { to { transform: scaleX(.3); } }
@keyframes flutter { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(60px, -24px); } 50% { transform: translate(110px, 10px); } 75% { transform: translate(40px, 26px); } }
.card { position: absolute; top: 26px; width: 46px; height: 64px; border-radius: 9px; display: grid; place-items: center; font-size: 1.4rem; color: var(--heart); background: #fff; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .25); }
.c1 { left: 12%; transform: rotate(-6deg); }
.c2 { left: 39%; background: repeating-linear-gradient(45deg, var(--sage) 0 6px, var(--sage-d) 6px 12px); animation: flip 3s ease-in-out infinite; }
.c3 { left: 66%; transform: rotate(6deg); }
@keyframes flip { 0%, 40%, 100% { transform: rotateY(0); } 60%, 80% { transform: rotateY(180deg); } }
.bub { position: absolute; bottom: -40px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, rgba(173, 216, 230, .5) 60%, rgba(120, 170, 200, .5)); border: 1px solid rgba(255, 255, 255, .8); animation: rise 4s ease-in infinite; }
.u1 { left: 15%; width: 30px; height: 30px; }
.u2 { left: 45%; width: 42px; height: 42px; animation-delay: 1.3s; }
.u3 { left: 72%; width: 24px; height: 24px; animation-delay: 2.5s; }
@keyframes rise { 90% { opacity: 1; transform: scale(1); } 100% { bottom: 110px; opacity: 0; transform: scale(1.5); } }

/* rooms */
.daynight { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 26px; box-shadow: var(--shadow); }
.dn-btn { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-weight: 700; cursor: pointer; transition: background .3s, color .3s; }
.dn-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.dn-btn[data-light="night"][aria-pressed="true"] { background: var(--night); }
.dn-sun { width: 16px; height: 16px; border-radius: 50%; background: #f4c04e; box-shadow: 0 0 0 3px rgba(244, 192, 78, .3); }
.dn-moon { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset -5px -2px 0 0 #e8d9a8; }
.rooms { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.rooms li { position: relative; border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease-bounce); }
.rooms li:hover { transform: translateY(-5px) scale(1.03); z-index: 1; }
.rooms img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: opacity .35s; }
.rooms img.swap { opacity: 0; }
.rooms span { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 5px 8px; border-radius: 10px; background: rgba(255, 250, 243, .92); font-weight: 700; font-size: .82rem; text-align: center; }
html:not(.js) .daynight { display: none; }

/* friends */
.friends { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.friends-art { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 300px; }
.friends-art::before { content: ''; position: absolute; left: 6%; right: 6%; bottom: 0; height: 30%; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.friends-art img { position: relative; width: 46%; }
.f-host { animation: hop 2.8s ease-in-out infinite; transform-origin: 50% 100%; }
.f-guest { animation: hop 2.8s ease-in-out 1.4s infinite; transform: scaleX(-1); transform-origin: 50% 100%; }
.f-guest { animation-name: hopFlip; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-14px) scale(1.02, .98); } 80% { transform: translateY(0) scale(1.03, .97); } }
@keyframes hopFlip { 0%, 60%, 100% { transform: scaleX(-1) translateY(0); } 70% { transform: scaleX(-1) translateY(-14px); } 80% { transform: scaleX(-1) translateY(0); } }
.f-heart { position: absolute; top: 4%; left: 50%; color: var(--heart); font-size: 2.6rem; transform: translateX(-50%); animation: beat 1.6s ease-in-out infinite; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.chips li { padding: 9px 16px; border-radius: 999px; background: var(--paper); font-weight: 700; box-shadow: var(--shadow); }
.chips li:nth-child(1)::before { content: '✋ '; }
.chips li:nth-child(2)::before { content: '🎾 '; }
.chips li:nth-child(3)::before { content: '👋 '; }

/* devices */
.pads { display: flex; justify-content: center; gap: clamp(16px, 3vw, 40px); margin-bottom: clamp(40px, 6vw, 64px); }
.pad { margin: 0; width: 540px; padding: 12px; border-radius: 34px; background: #1d1813; box-shadow: var(--shadow-lift); }
.pad a { display: block; border-radius: 22px; overflow: hidden; }
.pad:nth-child(2) { transform: translateY(32px); }
.devs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 900px; margin: 0 auto; text-align: center; }
.devs h3 { font-size: 1.35rem; margin: 12px 0 4px; }
.devs p { color: var(--ink-2); font-size: .97rem; }
.dev-ico { display: block; margin: 0 auto; border: 3px solid var(--ink); background: var(--peach-l); }
.dev-phone { width: 26px; height: 46px; border-radius: 8px; }
.dev-pad { width: 40px; height: 52px; border-radius: 8px; }
.dev-mac { width: 58px; height: 38px; border-radius: 6px; position: relative; margin-bottom: 8px; }
.dev-mac::after { content: ''; position: absolute; left: -10px; right: -10px; bottom: -11px; height: 5px; border-radius: 0 0 6px 6px; background: var(--ink); }

/* kind */
.kind { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: k; }
.kind li { position: relative; padding: 24px 22px 22px 70px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--line); }
.kind li::before {
  counter-increment: k; content: '♥'; position: absolute; left: 20px; top: 22px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--rose-l); color: var(--heart); font-size: 1.1rem;
}
.kind li:nth-child(2n)::before { background: var(--sage-l); color: var(--sage-d); }
.kind h3 { font-size: 1.2rem; margin-bottom: 6px; }
.kind p { color: var(--ink-2); font-size: .96rem; }

/* price */
.price { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.price h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 18px; }
.contact { margin-top: 22px; font-weight: 600; }
.ticket {
  position: relative; text-align: center; padding: 34px 30px 30px; border-radius: var(--r-l);
  background: var(--bg); border: 2px dashed var(--peach); box-shadow: var(--shadow-lift);
  transform: rotate(1.5deg); transition: transform .4s var(--ease-bounce);
}
.ticket:hover { transform: rotate(0) scale(1.02); }
.ticket-icon { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 12px; box-shadow: var(--shadow); }
.ticket-name { font-family: var(--f-display); font-variation-settings: 'SOFT' 100; font-weight: 700; font-size: 1.3rem; }
.ticket-amount { font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 800; font-size: clamp(3.6rem, 8vw, 5rem); line-height: 1; color: var(--peach-d); margin: 10px 0 4px; }
.ticket-once { color: var(--ink-2); font-weight: 600; margin-bottom: 20px; }
.ticket-list { text-align: left; display: grid; gap: 8px; margin: 0 auto 22px; max-width: 300px; }
.ticket-list li { padding-left: 28px; position: relative; }
.ticket-list li::before { content: ''; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%; }
.ticket-soon { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 0 22px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--peach-l); display: grid; place-items: center; font-weight: 700; transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); }

/* end */
.end { padding: var(--band) 0; background: linear-gradient(180deg, var(--bg), var(--night) 0%); background: var(--night); color: #f6eee3; text-align: center; overflow: hidden; position: relative; }
.end::before { /* stars */
  content: ''; position: absolute; inset: 0; opacity: .7;
  background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 28% 68%, #fff, transparent), radial-gradient(2px 2px at 44% 16%, #ffe9b8, transparent), radial-gradient(1px 1px at 62% 40%, #fff, transparent), radial-gradient(1.5px 1.5px at 78% 18%, #fff, transparent), radial-gradient(1px 1px at 88% 62%, #fff, transparent), radial-gradient(2px 2px at 8% 80%, #ffe9b8, transparent), radial-gradient(1px 1px at 52% 86%, #fff, transparent);
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .35; } }
.end-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.end-sleep { width: min(340px, 70vw); margin-bottom: 18px; transform-origin: 50% 100%; animation: breathe 3.8s ease-in-out infinite; }
.end h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 14px; max-width: 18ch; }
.end h2 em { color: var(--peach); }
.end p { color: #d9cdbf; margin-bottom: 28px; font-size: 1.1rem; }

/* footer */
.footer { background: #1b2438; color: #cfc3b5; padding: 40px 0 32px; font-size: .93rem; }
.footer-in { display: grid; grid-template-columns: 1fr auto; gap: 22px 40px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 13px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.footer a { color: #f6eee3; }
.footer .lang-btn { color: #cfc3b5; border-color: rgba(255, 255, 255, .18); }
.footer .lang-btn.active { background: #f6eee3; color: var(--night); }
.footer-rights { grid-column: 1 / -1; font-size: .82rem; color: #a99d90; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; }

/* reveal — only when JS armed it, so content never hides without JS */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ─── responsive ─── */
@media (max-width: 1080px) {
  .pets { grid-template-columns: repeat(3, 1fr); }
  .care-grid, .games { grid-template-columns: repeat(3, 1fr); }
  .rooms { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .friends, .price { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .ctas, .hero-meta { justify-content: center; }
  .facts, .kind { grid-template-columns: 1fr; }
  .pads { flex-direction: column; align-items: center; }
  .pad:nth-child(2) { transform: none; }
  .friends-art { order: 2; }
  .ticket { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .pets, .pets-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .care-grid, .games { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rooms { grid-template-columns: repeat(2, 1fr); }
  .rooms li:last-child { grid-column: 1 / -1; }
  .rooms li:last-child img { aspect-ratio: 16 / 9; }
  .phones { gap: 10px; }
  .phone, .phone-mid, .phones-row .phone { width: 33%; border-radius: 26px; padding: 5px; }
  .phone a { border-radius: 21px; }
  .tilt-l, .tilt-r { transform: none; }
  .phones-row .phone:nth-child(2) { transform: none; }
  .devs { grid-template-columns: 1fr; }
  .care-btn { min-width: 0; flex: 1; }
  .stage-actions { width: 100%; max-width: 500px; }
  .pick { padding: 3px; }
  .picker { gap: 5px; }
  .footer-in { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .care-grid, .games { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
