.bird-strike { max-width: 750px; padding-block: 24px 48px; }
.bird-strike [hidden] { display: none; }
.bird-strike :is(h1,h2,h3) { font-family: "Playfair Display", Georgia, serif; }
.bird-strike, .bird-strike button { font-family: Inter, system-ui, sans-serif; }
.bird-back { display: inline-block; margin-bottom: 12px; color: #4f46e5; font-weight: 700; }
.bird-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bird-header h1 { font-size: clamp(32px, 6vw, 58px); }
.bird-header p, .bird-help { color: var(--muted); font-size: .9rem; }
.bird-hud { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 14px; margin-top: 16px; background: #eeedfb; color: #211a4d; border-radius: 12px 12px 0 0; font-size: .83rem; }
.bird-hud strong { margin-inline-start: 4px; }
.bird-stage { position: relative; border-radius: 0 0 12px 12px; overflow: hidden; background: #172341; }
.bird-stage canvas { display: block; width: 100%; height: auto; aspect-ratio: 540 / 500; touch-action: none; }
.bird-overlay { position: absolute; inset: 0; display: grid; place-items: safe center; overflow: auto; padding: clamp(8px, 2vw, 24px); background: #131b39a8; }
.bird-panel { width: min(100%, 460px); background: #fcfbff; color: #171535; padding: clamp(10px, 3vw, 24px); border-radius: 14px; box-shadow: 0 10px 40px #15122c44; }
.bird-panel h2 { font-size: clamp(20px, 4vw, 31px); margin-bottom: 8px; }
.bird-panel h3 { margin: 12px 0 6px; font-size: 17px; }
.bird-panel h3 span { font: 600 12px Inter, sans-serif; color: #514681; }
.bird-levels { display: grid; gap: 4px; }
.bird-strike button { border: 1px solid #ddd9f5; border-radius: 8px; background: #f5f3ff; color: #231b57; cursor: pointer; font-weight: 650; padding: 7px 10px; min-height: 36px; }
.bird-strike button:hover:not(:disabled) { background: #e8e4fd; }
.bird-strike button:disabled { opacity: .65; cursor: default; }
.bird-levels button { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; font-size: .78rem; }
.bird-levels small { flex: none; }
.bird-skins, .bird-result-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.bird-skins button { font-size: .72rem; }
.bird-strike :is([data-retry],[data-next],[aria-pressed="true"]):not(:disabled) { background: #4f46e5; color: white; }
.bird-banner { position: absolute; z-index: 1; top: 12px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 95%; padding: 6px 12px; border-radius: 8px; background: #1a194ce8; color: #fff; pointer-events: none; font-weight: 700; font-size: .85rem; }
.bird-stars { color: #805000; margin-block: 8px; font-size: 1.15rem; }
.bird-help { margin-top: 10px; }
@media (max-width: 540px) {
  .bird-strike { padding-inline: 12px; }
  .bird-stage canvas { aspect-ratio: 3 / 4; }
  .bird-hud { padding-inline: 8px; font-size: .75rem; }
  .bird-hud strong { margin-inline-start: 1px; }
}

/* Flight selector */
.bird-panel:has([data-menu]:not([hidden])) {
  color: #fff8f1;
  background: radial-gradient(ellipse at top right, #713a91 0%, transparent 61%),
    linear-gradient(145deg, #312367, #181932 75%);
  border: 1px solid #e4caff55;
  box-shadow: 0 18px 60px #12102490, inset 0 1px #ffffff24;
}
.bird-panel [data-menu] h2 { color: #fff4dc; margin-bottom: 12px; }
.bird-panel [data-menu] h3 { color: #f4eaff; }
.bird-panel [data-menu] h3 span { color: #ffd38b; }
.bird-levels button {
  --flight-start: #874121;
  --flight-end: #5b2444;
  --flight-highlight: #ffc47e;
  border-color: #ffffff38;
  border-inline-start: 3px solid var(--flight-highlight);
  background: linear-gradient(105deg, var(--flight-start), var(--flight-end));
  color: #fff;
}
.bird-levels button:nth-child(2) { --flight-start: #853044; --flight-end: #532a59; --flight-highlight: #ff9a9e; }
.bird-levels button:nth-child(3) { --flight-start: #235f76; --flight-end: #273f70; --flight-highlight: #9ceafa; }
.bird-levels button:nth-child(4) { --flight-start: #3c4c82; --flight-end: #463468; --flight-highlight: #aebeff; }
.bird-levels button:nth-child(5) { --flight-start: #654391; --flight-end: #392a62; --flight-highlight: #d7b2ff; }
.bird-levels button:hover:not(:disabled) {
  background: linear-gradient(105deg, var(--flight-start), var(--flight-end));
  filter: brightness(1.2);
}
.bird-levels button:disabled { opacity: 1; color: #e5daf4; border-inline-start-color: #b8a8cc; }
.bird-levels small { color: var(--flight-highlight); }
.bird-levels button:disabled small { color: #e5daf4; }
.bird-skins button { background: #ffffff14; color: #f5edff; border-color: #ffffff38; }
.bird-skins button:hover:not(:disabled) { background: #ffffff26; }
.bird-skins button[aria-pressed="true"]:not(:disabled) { border-color: #c0adff; }

.bird-hud [data-expand] { font-size: .75rem; min-height: 32px; }
.bird-play:is(:fullscreen, .bird-expanded) {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: #172341;
}
.bird-play:is(:fullscreen, .bird-expanded) .bird-hud { margin-top: 0; border-radius: 0; }
.bird-play:is(:fullscreen, .bird-expanded) .bird-stage { flex: 1; min-height: 0; border-radius: 0; }
.bird-play:is(:fullscreen, .bird-expanded) canvas { width: 100%; height: 100%; aspect-ratio: auto; }
body:has(.bird-expanded) { overflow: hidden; }
