/*
  Bells picker landing — choose an instrument.
*/

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #eef1f5;
  color: #1b233e;
  font-family: "Nunito", "Avenir Next Rounded", "Trebuchet MS", Verdana, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body { overflow-x: hidden; }



.bells-picker {
  width: min(100%, 1200px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 18px calc(26px + env(safe-area-inset-bottom));
  display: grid;
  align-content: start;
  gap: 18px;
}

.bells-picker-header {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding-top: 4px;
}

.brand-mark {
  width: clamp(46px, 11vw, 72px);
  height: auto;
}

.bells-picker-header h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 1;
  font-weight: 900;
}

/* Portrait: 2x2 grid of tiles */
.bells-picker-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.picker-tile {
  min-height: 180px;
  border-radius: 22px;
  padding: 14px 12px 12px;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  gap: 8px;
  color: #1b233e;
  background: #ffffff;
  border: 3px solid rgba(214, 226, 246, 0.86);
  box-shadow: 0 10px 22px rgba(27, 73, 122, 0.12);
  text-decoration: none;
  transition: transform 0.08s ease;
}

.picker-tile:active { transform: translateY(2px); }

.picker-tile-art {
  width: 100%;
  height: 100%;
  min-height: 96px;
  display: grid;
  place-items: center;
}

/* Real gameplay screenshots on the picker tiles (Andrea: the CSS-drawn bells
   "look weird"). 16:10 crops of each instrument page, cover-fit so every card
   is the same shape regardless of the instrument's own proportions. */
.picker-tile-shot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(27, 35, 62, 0.08);
}

.picker-tile-label {
  font-size: clamp(1rem, 4.6vw, 1.3rem);
  line-height: 1.1;
  font-weight: 900;
}

/* ---- mini bell artwork (CSS only) ---- */
.art-bell {
  width: 26px;
  height: 28px;
  border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%;
  background: var(--c);
  box-shadow: inset 0 -5px 0 rgba(20, 38, 65, 0.18), 0 3px 5px rgba(20, 38, 65, 0.18);
  position: relative;
}
.art-bell::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2b343f;
  transform: translateX(-50%);
}
.art-bell-sharp::after { background: #2b343f; }

.art-arch {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: center;
  gap: 4px 6px;
}
.art-arch .art-bell:nth-child(1) { transform: translateY(28px); }
.art-arch .art-bell:nth-child(2) { transform: translateY(20px); }
.art-arch .art-bell:nth-child(3) { transform: translateY(12px); }
.art-arch .art-bell:nth-child(4) { transform: translateY(0); }
.art-arch .art-bell:nth-child(5) { transform: translateY(0); }
.art-arch .art-bell:nth-child(6) { transform: translateY(12px); }
.art-arch .art-bell:nth-child(7) { transform: translateY(20px); }
.art-arch .art-bell:nth-child(8) { transform: translateY(28px); }

.art-chromatic {
  display: grid;
  gap: 4px;
  justify-items: center;
}
.art-row {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
}
.art-row:first-child { margin-left: 16px; }
.art-chromatic .art-bell { width: 20px; height: 22px; }
.art-chromatic .art-bell::after { width: 7px; height: 7px; top: -4px; }
.art-chromatic .art-bell-sharp { background: var(--c); filter: brightness(0.85); }

.art-triangle {
  position: relative;
  width: 100px;
  height: 90px;
}
.art-tri-line {
  position: absolute;
  height: 4px;
  width: 64px;
  border-radius: 999px;
  background: #c8d2e5;
}
.art-tri-line:nth-child(1) { top: 22px; left: 18px; }
.art-tri-line-l { transform: rotate(60deg); transform-origin: left center; top: 26px; left: 24px; width: 56px; }
.art-tri-line-r { transform: rotate(-60deg); transform-origin: right center; top: 26px; right: 24px; width: 56px; }
.art-tri-bubble {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 2px 4px rgba(20, 38, 65, 0.22);
}
.art-tri-c { left: 50%; bottom: 4px; transform: translateX(-50%); background: #e72829; }
.art-tri-e { left: 6px; top: 6px; background: #f1e606; color: #512d1b; }
.art-tri-g { right: 6px; top: 6px; background: #099695; }

.art-bars {
  display: grid;
  gap: 4px;
  width: 90%;
  max-width: 130px;
}
.art-bar {
  height: 12px;
  border-radius: 6px;
  background: var(--c);
  box-shadow: inset 0 -3px 0 rgba(20, 38, 65, 0.16);
}

.art-hex-grid {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  gap: 4px;
  justify-content: center;
}
.art-hex {
  width: 30px;
  height: 32px;
  background: var(--c);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 2px 4px rgba(20, 38, 65, 0.16);
}
.art-hex-offset { transform: translateY(-10px); }

/* Landscape — row of 5 tiles, fits across */
@media (orientation: landscape) {
  .bells-picker {
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .bells-picker-header h1 {
    font-size: clamp(2rem, 5.4vw, 3rem);
  }
  .bells-picker-tiles {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }
  .picker-tile {
    min-height: 180px;
  }
}

@media (min-width: 700px) and (orientation: portrait) {
  .bells-picker-tiles { gap: 18px; }
  .picker-tile { min-height: 220px; }
}
