/* Feed the Penguin — a fun, fast casual arcade game.
   Icy blues, a happy penguin, warm combo-gold. Bubbly Fredoka; the most
   playful of the set. Signature: a mini game HUD — score, hearts, JOY, combo. */

:root {
  --bg:        #E9F5FD;
  --bg-2:      #D7ECFA;
  --card:      #FFFFFF;
  --ink:       #12395A;
  --text:      #2D5170;
  --muted:     #6F91AB;
  --line:      #CFE5F4;
  --sky:       #1FA6E8;
  --sky-deep:  #0E79B5;
  --sun:       #FFB330;
  --joy:       #37C871;
  --coral:     #FF6B5C;
  --accent:     var(--sky);
  --accent-ink: var(--sky-deep);

  --radius:    22px;
  --radius-lg: 30px;
  --shadow:    0 26px 54px -28px rgba(18,57,90,.4);
  --shadow-sm: 0 12px 26px -18px rgba(18,57,90,.42);
  --maxw:      1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif; font-size: 1.15rem; line-height: 1.62; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
h1, h2, h3, .display { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600; line-height: 1.1; letter-spacing: -0.005em; color: var(--ink); margin: 0; }
.eyebrow { font-family:'Fredoka',sans-serif; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tint { background: var(--bg-2); }
.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3rem); margin-top: 12px; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: 14px 0 0; }

.topbar { position: sticky; top: 0; z-index: 50; background: rgba(233,245,253,.84); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-family:'Fredoka',sans-serif; font-weight: 600; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.topnav { display: flex; gap: 24px; }
.topnav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem; }
.topnav a:hover { color: var(--accent-ink); }

.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--sky); color: #fff; padding: 15px 28px; border-radius: 999px; font-family:'Fredoka',sans-serif; font-weight: 600; font-size: 1.08rem; text-decoration: none; border: 0; cursor: pointer; box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--sky) 80%, transparent); transition: transform .16s ease; }
.btn:hover { transform: translateY(-2px); }
.btn .apple { width: 19px; height: 22px; flex: 0 0 auto; }

/* hero */
.hero { padding: 58px 0 84px; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr .98fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4rem); max-width: 12ch; margin: 16px 0 0; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero .lede { max-width: 42ch; margin: 22px 0 0; font-size: 1.2rem; color: var(--text); }
.hero .cta-row { margin-top: 34px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero .fine { font-weight: 600; font-size: .92rem; color: var(--muted); }

/* signature: mini game HUD */
.game { position: relative; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; padding: 26px 26px 30px; text-align: center;
  background: linear-gradient(180deg, #BFE3FB 0%, #6FB8E8 45%, #2E7FC0 100%); }
.game .hud { display: flex; justify-content: space-between; align-items: center; }
.game .score { background: rgba(255,255,255,.9); border-radius: 999px; padding: 6px 22px; font-family:'Fredoka',sans-serif; font-weight: 600; font-size: 1.6rem; color: var(--ink); }
.game .hearts { font-size: 1.15rem; letter-spacing: 2px; }
.game .peng { font-size: 5rem; line-height: 1; margin: 18px 0 6px; animation: bob 2.4s ease-in-out infinite; }
.game .joy { max-width: 230px; margin: 0 auto; background: rgba(255,255,255,.35); border-radius: 999px; padding: 4px; }
.game .joy .fill { height: 16px; border-radius: 999px; background: var(--joy); width: 90%; display: flex; align-items: center; justify-content: center; color: #fff; font-family:'Fredoka',sans-serif; font-weight: 600; font-size: .78rem; }
.game .combo { font-family:'Fredoka',sans-serif; font-weight: 700; font-size: 2rem; color: var(--sun); text-shadow: 0 2px 0 rgba(0,0,0,.15); margin: 20px 0 8px; animation: pop2 2.4s ease-in-out infinite; }
.game .bucket { font-size: 2.2rem; }

/* features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feature .emoji { font-size: 1.9rem; width: 52px; height: 52px; border-radius: 14px; background: var(--bg-2); display: grid; place-items: center; margin-bottom: 16px; }
.feature h3 { font-size: 1.3rem; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }

/* how to play */
.play { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.playcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; }
.playcard .big { font-size: 2.4rem; margin-bottom: 12px; }
.playcard h3 { font-size: 1.25rem; margin-bottom: 6px; }
.playcard p { color: var(--muted); margin: 0; font-size: 1.01rem; }

/* screenshots */
.shots { display: flex; justify-content: safe center; gap: 22px; overflow-x: auto; padding: 8px 24px 22px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.shot { flex: 0 0 auto; width: 232px; scroll-snap-align: center; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* closer */
.closer { text-align: center; }
.closer h2 { font-size: clamp(2.2rem, 5vw, 3.3rem); }
.closer .cta-row { margin-top: 26px; display: flex; justify-content: center; }

/* footer */
.foot { background: var(--card); border-top: 1px solid var(--line); padding: 44px 0; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.foot nav a { color: var(--text); text-decoration: none; margin-left: 22px; font-weight: 600; }
.foot nav a:hover { color: var(--accent-ink); }
.foot .copy { width: 100%; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 4px; }

/* content pages */
.page-head { text-align: center; padding: 58px 0 64px; position: relative; overflow: hidden; }
.page-head::before { content:""; position:absolute; inset:0; background: radial-gradient(50% 90% at 50% 0%, color-mix(in srgb, var(--sky) 16%, transparent), transparent 68%); }
.page-head > * { position: relative; }
.page-head img.logo { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 18px; box-shadow: var(--shadow); }
.page-head h1 { font-size: clamp(2.2rem,5.4vw,3.2rem); }
.back-link { display: inline-block; margin-top: 22px; color: var(--accent-ink); background: color-mix(in srgb, var(--sky) 12%, #fff); padding: 11px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.prose { max-width: 760px; margin: 0 auto; padding: 66px 24px; }
.prose h2 { font-size: 1.85rem; margin: 8px 0 22px; }
.prose h3 { font-size: 1.3rem; color: var(--ink); margin: 38px 0 12px; }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.updated { display: inline-block; font-family:'Fredoka',sans-serif; font-weight: 600; font-size: .85rem; color: var(--accent-ink); background: color-mix(in srgb, var(--sky) 12%, #fff); padding: 8px 14px; border-radius: 10px; margin-bottom: 28px; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 14px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 22px 26px; font-family:'Fredoka',sans-serif; font-weight: 600; font-size: 1.14rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sky); font-weight: 600; font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 26px 24px; color: var(--muted); font-size: 1.04rem; }
.callout { background: color-mix(in srgb, var(--sky) 9%, #fff); border-radius: var(--radius); padding: 24px 28px; }

/* motion */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes pop2 { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.hero h1, .hero .lede, .hero .cta-row { animation: rise .6s both cubic-bezier(.2,.7,.2,1); }
.game { animation: rise .7s .1s both cubic-bezier(.2,.7,.2,1); }

/* a11y */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* responsive */
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 38px; } .grid, .play { grid-template-columns: 1fr; } .grid, .play { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  body { font-size: 1.08rem; }
  .section { padding: 58px 0; }
  .grid, .play { grid-template-columns: 1fr; }
  .topnav { gap: 14px; font-size: .95rem; } .topnav a.hide-sm { display: none; }
  .foot .wrap { flex-direction: column; align-items: flex-start; } .foot nav a { margin: 0 22px 0 0; }
}
