/* Angry Beaks: Slingshot site. The game's own look: chunky outlined buttons, wooden signs, Rubik, painted art. */
:root {
  --ink: #1d2742;
  --ink-soft: #46506e;
  --paper: #fff6e3;
  --paper-deep: #f8e6c2;
  --sky: #2b8fe6;
  --sky-deep: #1466bd;
  --night: #16203c;
  --grass: #4ea62c;
  --grass-deep: #2f7a18;
  --gold: #ffc928;
  --gold-deep: #e8930f;
  --red: #d8251f;
  --white: #fff;
  --on-night: #c9d4ee;
  --shadow: rgba(16, 24, 48, 0.35);
  --veil: rgba(16, 24, 48, 0.74);
  --wrap: min(1180px, 100% - 40px);
  --radius: 18px;
  --stroke: 3px;
  --clouds: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0h480v22c-14 16-40 16-54 4-12 22-52 24-68 4-16 18-48 16-60 0-16 26-62 26-78 2-14 14-42 14-54 0-14 18-46 18-60 0-14 12-38 12-52 0-12 8-34 8-54-10z'/%3E%3C/svg%3E");
}

@font-face { font-family: Rubik; font-weight: 500; font-display: swap; src: url(fonts/rubik-latin-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Rubik; font-weight: 900; font-display: swap; src: url(fonts/rubik-latin-900.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Rubik; font-weight: 500; font-display: swap; src: url(fonts/rubik-cyrillic-500.woff2) format('woff2'); unicode-range: U+0400-04FF; }
@font-face { font-family: Rubik; font-weight: 900; font-display: swap; src: url(fonts/rubik-cyrillic-900.woff2) format('woff2'); unicode-range: U+0400-04FF; }
@font-face { font-family: Rubik; font-weight: 500; font-display: swap; src: url(fonts/rubik-latin-ext-500.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20CF; }
@font-face { font-family: Rubik; font-weight: 900; font-display: swap; src: url(fonts/rubik-latin-ext-900.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20CF; }
@font-face { font-family: Rubik; font-weight: 500; font-display: swap; src: url(fonts/rubik-hebrew-500.woff2) format('woff2'); unicode-range: U+0590-05FF; }
@font-face { font-family: Rubik; font-weight: 900; font-display: swap; src: url(fonts/rubik-hebrew-900.woff2) format('woff2'); unicode-range: U+0590-05FF; }
@font-face { font-family: Rubik; font-weight: 500; font-display: swap; src: url(fonts/rubik-arabic-500.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Rubik; font-weight: 900; font-display: swap; src: url(fonts/rubik-arabic-900.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 clamp(16px, 1.1vw + 12px, 19px) / 1.55 Rubik, system-ui, 'Noto Sans', sans-serif; overflow-x: hidden; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h2 { font-weight: 900; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
[dir='rtl'] h2 { letter-spacing: 0; }
[lang='ja'] h1, [lang='ja'] h2 { word-break: auto-phrase; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lead { color: var(--ink-soft); max-width: 58ch; }
section { padding-block: clamp(64px, 9vw, 120px); }

/* buttons: outlined, glossy, sitting on their own thick lower edge */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; padding: 0.62em 1.25em; border: var(--stroke) solid var(--ink); border-radius: 16px; background: linear-gradient(#7fdb4b, var(--grass) 55%, var(--grass-deep)); box-shadow: 0 6px 0 var(--ink), 0 12px 20px var(--shadow), inset 0 3px 0 rgba(255, 255, 255, 0.45); color: var(--white); font-weight: 900; text-decoration: none; text-shadow: 0 2px 0 rgba(16, 24, 48, 0.55); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink), 0 16px 24px var(--shadow), inset 0 3px 0 rgba(255, 255, 255, 0.45); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink), inset 0 3px 0 rgba(255, 255, 255, 0.3); }
.btn svg { width: 0.85em; height: 0.85em; fill: currentColor; }
.btn-big { font-size: clamp(22px, 2.6vw, 34px); padding: 0.55em 1.5em; border-radius: 22px; }
.btn-download { background: linear-gradient(#ffe68a, var(--gold) 55%, var(--gold-deep)); color: var(--ink); text-shadow: none; }
.btn-small { font-size: 16px; padding: 0.42em 1em; border-radius: 12px; box-shadow: 0 4px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.45); }
.soon { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0 0.9em; text-align: center; padding: 0.32em 0.85em; border-radius: 999px; background: var(--veil); color: var(--white); font-size: 15px; }

/* header floats over the painted scene */
.top { position: absolute; z-index: 3; inset: 0 0 auto; padding-block: 16px; }
.top .wrap { position: relative; display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }
.top img { width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--white); box-shadow: 0 3px 8px var(--shadow); }
.top nav { display: flex; gap: clamp(12px, 2vw, 26px); margin-inline-end: auto; }
.top a:not(.btn) { color: var(--white); font-weight: 900; text-decoration: none; text-shadow: 0 2px 4px rgba(16, 24, 48, 0.8); }
.top a:not(.btn):hover { color: var(--gold); }
.top .brand { line-height: 0; }

/* the language menu: a plain list of links, so it works with no script at all */
.langs summary { display: flex; align-items: center; gap: 7px; color: var(--white); font-weight: 900; text-shadow: 0 2px 4px rgba(16, 24, 48, 0.8); cursor: pointer; list-style: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover { color: var(--gold); }
.top .langs img { flex: none; width: 24px; height: 18px; border: 0; border-radius: 3px; box-shadow: 0 0 0 1px rgba(16, 24, 48, 0.28); }
.top .langs summary img { box-shadow: 0 0 0 2px var(--white), 0 2px 6px var(--shadow); }
.langs ul { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 8px; width: min(680px, 100%); max-height: min(70vh, 520px); padding: 12px; overflow-y: auto; border: var(--stroke) solid var(--ink); border-radius: var(--radius); background: var(--paper); box-shadow: 0 6px 0 var(--ink), 0 16px 30px var(--shadow); }
.top .langs a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 9px; color: var(--ink); font-size: 16px; line-height: 1.25; text-decoration: none; text-shadow: none; }
.top .langs a:hover { background: var(--paper-deep); color: var(--ink); }
.top .langs a[aria-current] { background: var(--gold); }

/* the first screen: the whole painted scene, a huge logo, one button */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; min-height: max(100svh, 640px); padding: clamp(78px, 11vh, 110px) 20px clamp(96px, 15vh, 150px); text-align: center; overflow: hidden; background: var(--sky); }
.hero-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 42% 100%; }
.hero-logo { width: min(80vw, max(40vh, 256px) * 2.02, 640px); filter: drop-shadow(0 12px 16px rgba(10, 20, 50, 0.45)); animation: drop 0.8s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.hero h1 { max-width: 34ch; margin-top: auto; padding: 0.4em 0.9em; border-radius: 16px; background: var(--veil); color: var(--white); font-weight: 900; font-size: clamp(16px, 1.7vw, 22px); line-height: 1.25; text-wrap: balance; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 18px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 20px; max-width: 100%; }
@keyframes drop { from { opacity: 0; transform: translateY(-40px) scale(0.86); } }

/* a soft row of white clouds where the blue sky meets the next section */
.birds { position: relative; }
.birds::before { content: ''; position: absolute; inset: -1px 0 auto; height: clamp(44px, 6vw, 84px); background: var(--paper); -webkit-mask: var(--clouds) center top / auto 100% repeat-x; mask: var(--clouds) center top / auto 100% repeat-x; pointer-events: none; }
.birds { padding-top: calc(clamp(64px, 9vw, 120px) + clamp(30px, 4vw, 60px)); }
.how { background: linear-gradient(#fff, var(--paper)); padding-top: clamp(84px, 11vw, 140px); }

/* the wooden sign of the game */
.sign { border: 22px solid transparent; border-image: url(img/panel.webp) 80 fill / 24px stretch; filter: drop-shadow(0 8px 10px var(--shadow)); }
.facts { position: relative; z-index: 2; margin-top: calc(clamp(44px, 6vw, 62px) * -1); }
.facts ul { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 6px 22px; }
.facts li { display: flex; align-items: baseline; gap: 0.35em; font-weight: 900; }
.facts b { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; color: var(--red); }

/* how it plays: text against one big screenshot */
.how .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.how .lead { margin-top: 18px; }
.steps { counter-reset: s; display: grid; gap: 14px; margin-top: 26px; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 62px; min-height: 46px; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 2px; display: grid; place-items: center; width: 46px; height: 46px; border: var(--stroke) solid var(--ink); border-radius: 50%; background: linear-gradient(#ffe36b, var(--gold) 55%, var(--gold-deep)); box-shadow: 0 3px 0 var(--ink); font-weight: 900; font-size: 22px; }
.steps h3 { font-weight: 900; font-size: 1.15em; line-height: 1.2; }
.steps p { color: var(--ink-soft); font-size: 0.94em; }
.note { margin-top: 22px; padding-inline-start: 14px; border-inline-start: 5px solid var(--gold); font-size: 0.94em; }
.shot { border: 5px solid var(--ink); border-radius: var(--radius); box-shadow: 0 10px 0 var(--ink), 0 22px 40px var(--shadow); overflow: hidden; background: var(--night); }
.how .shot { transform: rotate(1.2deg); }

/* birds: rows on the sky, not cards */
.birds { background: linear-gradient(var(--sky), var(--sky-deep)); color: var(--white); }
.birds .lead { margin-top: 12px; color: var(--white); }
.roster { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 40px) clamp(20px, 3vw, 44px); margin-top: clamp(30px, 4vw, 52px); }
.roster li { display: flex; align-items: center; gap: 14px; }
.roster img { flex: none; width: clamp(84px, 9vw, 116px); filter: drop-shadow(0 6px 5px rgba(10, 20, 50, 0.4)); transition: transform 0.2s cubic-bezier(0.2, 1.6, 0.4, 1); }
.roster li:hover img { transform: translateY(-8px) rotate(-4deg) scale(1.06); }
.roster h3 { font-weight: 900; font-size: 1.25em; line-height: 1.15; }
.roster p { font-size: 0.92em; line-height: 1.35; }

/* worlds: a strip you swipe through, its boss standing on each picture */
.worlds { background: var(--night); color: var(--white); padding-bottom: clamp(48px, 6vw, 80px); }
.worlds .lead { margin-top: 12px; color: var(--on-night); }
.strip { display: flex; gap: 18px; margin-top: clamp(30px, 4vw, 48px); padding: 18px max(20px, (100% - 1180px) / 2) 26px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-color: var(--gold) transparent; }
.strip li { position: relative; flex: 0 0 clamp(230px, 24vw, 300px); aspect-ratio: 3 / 4; scroll-snap-align: center; border: 4px solid var(--ink); border-radius: var(--radius); background: var(--ink); box-shadow: 0 8px 0 #0b1226; }
.strip .bg { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius) - 4px); }
.strip .boss { position: absolute; inset-inline-end: -6px; bottom: 54px; width: 58%; filter: drop-shadow(0 6px 5px rgba(0, 0, 0, 0.5)); }
.strip div { position: absolute; inset: auto 0 0; padding: 40px 14px 12px; border-radius: 0 0 calc(var(--radius) - 4px) calc(var(--radius) - 4px); background: linear-gradient(transparent, rgba(11, 18, 38, 0.92) 55%); }
.strip h3 { font-weight: 900; font-size: 1.15em; line-height: 1.15; }
.strip p { color: var(--on-night); font-size: 0.85em; }

/* gallery: one big picture and two beside it */
.gallery .grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 2vw, 24px); margin-top: clamp(26px, 4vw, 44px); }
.gallery .shot { box-shadow: 0 6px 0 var(--ink); border-width: 4px; }
.gallery .shot:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.gallery .shot:nth-child(2), .gallery .shot:nth-child(3) { grid-column: span 2; }
.gallery .shot img { width: 100%; height: 100%; object-fit: cover; }

/* goals and questions on the paper */
.goals { padding-block: 0 clamp(64px, 9vw, 110px); }
.goals .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 52px); align-items: center; }
.goals .sign { display: grid; grid-template-columns: auto 1fr; gap: 12px 22px; align-items: center; }
.goals .sign img { width: clamp(64px, 7vw, 100px); }
.goals .shot { transform: rotate(-1.2deg); }
.goals h2 { font-size: clamp(25px, 3.2vw, 38px); }
.goals p { margin-top: 8px; color: var(--ink-soft); }
.faq { background: var(--paper-deep); }
.faq .wrap { max-width: 860px; }
.faq details { margin-top: 12px; border: var(--stroke) solid var(--ink); border-radius: 14px; background: var(--paper); box-shadow: 0 4px 0 var(--ink); }
.faq h2 + details { margin-top: 28px; }
.faq summary { padding: 13px 18px; cursor: pointer; font-weight: 900; }
.faq summary::marker { color: var(--red); }
.faq details p { padding: 0 18px 14px; color: var(--ink-soft); }

/* the last screen: back to the fight */
.end { position: relative; isolation: isolate; padding-block: clamp(72px, 12vw, 140px); text-align: center; color: var(--white); background: var(--grass-deep); overflow: hidden; }
.end > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 80% 70%; filter: brightness(0.62); }
.end h2 { text-shadow: 0 3px 0 var(--ink), 0 4px 14px rgba(16, 24, 48, 0.8); margin-bottom: 26px; }
footer { padding-block: 24px; background: var(--night); color: var(--on-night); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--white); }

/* plain pages */
.plain { max-width: 780px; margin-inline: auto; padding: 56px 20px 80px; }
.plain h1 { font-weight: 900; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; margin-bottom: 12px; }
.plain h2 { font-size: 26px; margin-top: 34px; }
.plain ul { list-style: disc; padding-inline-start: 22px; }
.plain p, .plain ul { margin-top: 12px; }
.lost { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 20px; text-align: center; }
.lost img { width: 180px; }

@media (max-width: 900px) {
  .how .wrap, .goals .wrap { grid-template-columns: 1fr; }
  .hero-art { object-position: 28% 100%; }
  .roster { grid-template-columns: repeat(2, 1fr); }
  .top nav { display: none; }
  .langs ul { grid-template-columns: repeat(2, 1fr); }
  .top .wrap { justify-content: space-between; }
}
@media (max-width: 560px) {
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-row .btn-big { font-size: 21px; padding-inline: 0.5em; }
  .roster { grid-template-columns: 1fr; }
  .gallery .grid { grid-template-columns: 1fr; }
  .gallery .shot:nth-child(n) { grid-column: auto; grid-row: auto; }
  .goals .sign { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .facts li { flex-direction: column; align-items: center; gap: 0; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
