/* Ellie's Band (Cleo's Studio, games for two, 2026-11-07): shells on one side, sea friends' instruments on the other. */
.band { background: #4FA9C6; }
.side-glow { display: none; }

/* Ellie leads the band from the top middle */
.ellie { position: absolute; z-index: 4; left: 50%; top: max(70px, 9vh); width: clamp(180px, 34vmin, 460px); transform: translateX(-50%); pointer-events: none; }
.ellie img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(10, 50, 80, .3)); animation: ellieswim 4.5s ease-in-out infinite; }
@keyframes ellieswim { 50% { transform: translateY(-5%) rotate(-2deg); } }

/* the two sides */
.band-sides { position: absolute; z-index: 6; left: 0; right: 0; top: calc(max(70px, 9vh) + clamp(70px, 13vmin, 170px)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; }
.room.is-swapped .band-sides { flex-direction: row-reverse; }
.band-side { flex: 1 1 50%; min-width: 0; margin: 0 6px; border-radius: 40px; border: 3px solid rgba(255,255,255,.55); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(8px, 2.4vmin, 30px); padding: 0 clamp(12px, 3vw, 48px); box-sizing: border-box; }
/* each player's own area, in her color (pink on the left, blue on the right; it follows the swap) */
.band-side.is-pink { background: linear-gradient(180deg, rgba(250, 170, 200, .30), rgba(247, 150, 186, .62)); border-color: rgba(255, 220, 232, .85); }
.band-side.is-blue { background: linear-gradient(180deg, rgba(150, 225, 245, .30), rgba(86, 196, 228, .62)); border-color: rgba(215, 245, 252, .85); }
.shellrow { display: flex; justify-content: center; gap: clamp(6px, 2vmin, 26px); }
.band-side--friends { display: grid; grid-template-columns: repeat(2, auto); place-content: center; }
.room.in-frame .band-sides { left: 70px; }

/* the shells: low C on the left up to B, each with its letter */
.shellbtn { position: relative; width: clamp(60px, 15vmin, 200px); aspect-ratio: 1; border: 0; padding: 0; background: none; cursor: pointer; transform-origin: 50% 80%; }
.shellbtn img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(80, 50, 30, .3)); pointer-events: none; }
.shellbtn b { position: absolute; left: 50%; top: 57%; transform: translate(-50%, -50%); font: 600 clamp(1.1rem, 4vmin, 2.6rem)/1 "Fredoka", system-ui, sans-serif; color: var(--navy); text-shadow: 0 1px 0 rgba(255,255,255,.8); pointer-events: none; }
.shellbtn.is-lit img { filter: drop-shadow(0 0 14px rgba(255, 236, 160, .95)) drop-shadow(0 6px 8px rgba(80, 50, 30, .3)) brightness(1.12); }

/* the sea friends' instruments: big, for the littlest hands */
.instbtn { position: relative; width: clamp(92px, 21vmin, 300px); aspect-ratio: 1; border: 4px solid rgba(255,255,255,.85); border-radius: 50%; padding: 4%; box-sizing: border-box; background: radial-gradient(circle at 45% 38%, rgba(255,255,255,.55), rgba(255,255,255,.18)); cursor: pointer; box-shadow: 0 8px 22px rgba(10, 50, 80, .22); transform-origin: 50% 70%; }
.instbtn img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.18); filter: drop-shadow(0 5px 8px rgba(10, 50, 80, .28)); pointer-events: none; }
.instbtn.is-lit { box-shadow: 0 0 0 6px rgba(255, 236, 160, .6), 0 8px 22px rgba(10, 50, 80, .22); }
.shellbtn:focus-visible, .instbtn:focus-visible { outline: 4px solid var(--navy); outline-offset: 4px; border-radius: 30%; }

/* swap the sides */
.swap { position: absolute; z-index: 12; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: 54px; height: 54px; border-radius: 50%; border: 3px solid #fff; background: rgba(255, 249, 238, .92); box-shadow: 0 4px 14px rgba(46, 50, 83, .2); cursor: pointer; padding: 0; display: grid; place-items: center; }
.swap svg { width: 70%; height: 70%; fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.swap:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

.fx { position: absolute; inset: 0; z-index: 14; pointer-events: none; overflow: hidden; }
.mnote { position: absolute; font-style: normal; font-size: clamp(22px, 5vmin, 48px); text-shadow: 0 2px 8px rgba(10, 60, 90, .35); transform: translate(-50%, -50%); }

/* a phone or iPad held upright: Ellie a little smaller, the sides start under her */
/* a phone or iPad held upright: the two areas one above the other */
@media (max-aspect-ratio: 1/1) {
  .ellie { width: clamp(150px, 46vw, 360px); }
  .band-sides { top: calc(max(70px, 9vh) + clamp(60px, 16vw, 150px)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 66px); flex-direction: column; gap: 10px; }
  .room.is-swapped .band-sides { flex-direction: column-reverse; }
  .band-side { margin: 0 10px; }
  .shellbtn { width: clamp(52px, 19vw, 150px); }
  .instbtn { width: clamp(72px, min(30vw, 14vh), 200px); }
}
@media (min-width: 1400px) and (min-height: 800px) { .swap { width: 70px; height: 70px; } }
@media (prefers-reduced-motion: reduce) { .ellie img { animation: none; } }
.miss { position: absolute; width: 56px; height: 56px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .85); transform: translate(-50%, -50%); }
