/* Heard It? — a diner jukebox: teal and chrome, cherry-red trim, a spinning record per song, a selection panel of 100 at the end. */
.hd-page { --ink: #06252d; --teal: #11606f; --teal-2: #0b3b47; --cherry: #e63946; --gold: #ffcf5a; --cream: #fff6e0; --glass: #0a1d22; }
.hd-page [hidden] { display: none !important; }
.hd-title { font-family: 'Shrikhand', Georgia, serif; font-weight: 400; color: var(--cherry); letter-spacing: .01em; }

/* the card: a jukebox front, an arch of light along the top, chrome edges */
.cbx-card.hd-card { --cbx-full-pad: 6px; position: relative; padding: 30px 14px 14px; color: #fff; overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 0, rgba(255, 207, 90, .22), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, var(--teal), var(--teal-2));
  box-shadow: 0 30px 60px -28px rgba(6, 37, 45, .8), inset 0 0 0 4px #cfd8dc, inset 0 0 0 8px var(--cherry); }
.cbx-card.hd-card::before { content: ''; position: absolute; left: 14px; right: 14px; top: 12px; height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, #ff5e7e, var(--gold), #5ef0c8, #6fb6ff, #c78bff, #ff5e7e) 0 0 / 200% 100%;
  box-shadow: 0 0 12px rgba(255, 207, 90, .7); animation: hd-glow 4s linear infinite; }
@keyframes hd-glow { to { background-position: 200% 0; } }
.cbx-card.hd-card p { color: inherit; }
.hd-banner, .cbx-card .hd-banner { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; font: 800 14px/1.45 var(--cbx-body); color: var(--ink); background: var(--gold); }
.hd-banner b { color: var(--cherry); }

/* ---- playing ---- */
.hd-top { display: flex; align-items: center; gap: 8px; margin: 0 auto 8px; max-width: 460px; font: 900 13px var(--cbx-body); }
.hd-count { padding: 5px 11px; border-radius: 999px; background: var(--gold); color: var(--ink); }
.hd-count b { font-size: 16px; }
.hd-rank { padding: 5px 11px; border-radius: 999px; background: rgba(0, 0, 0, .25); color: #fff; }
.hd-rank.up { animation: hd-up .7s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes hd-up { 40% { transform: scale(1.18); background: var(--gold); color: var(--ink); } }
.hd-prog { margin-left: auto; color: rgba(255, 255, 255, .78); font-variant-numeric: tabular-nums; }
.hd-prog.ms { color: var(--gold); }
/* the progress strip: a row of jukebox selector buttons behind glass */
.hd-mini { display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; max-width: 460px; margin: 0 auto 12px; padding: 6px; border-radius: 10px; background: var(--glass); box-shadow: inset 0 0 0 2px #cfd8dc; }
.hd-cell { aspect-ratio: 1; border: 0; padding: 0; border-radius: 3px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; overflow: hidden; pointer-events: none; }
.hd-cell span { font-size: 11px; line-height: 1; opacity: 0; transition: opacity .2s; }
.hd-cell.yes { background: color-mix(in srgb, var(--rc) 55%, #fff6e0); }
.hd-cell.yes span { opacity: 1; }
.hd-cell.no { background: rgba(255, 255, 255, .03); }
.hd-cell.cur { box-shadow: 0 0 0 2px var(--gold); animation: hd-pulse 1s ease-in-out infinite; }
@keyframes hd-pulse { 50% { background: var(--gold); } }

.hd-deck { position: relative; max-width: 390px; margin: 0 auto; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .45)); }
/* the sleeve: a cream record sleeve, a record sliding out of the top */
.hd-sleeve { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 18px 18px 22px; border-radius: 14px; color: var(--ink); text-align: center; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
  background: linear-gradient(180deg, var(--rc) 0 92px, var(--cream) 92px); transition: transform .22s cubic-bezier(.3, .7, .4, 1), opacity .22s; }
.hd-sleeve.drag { transition: none; cursor: grabbing; }
.hd-sleeve.fly-r { transform: translateX(130%) rotate(16deg); opacity: 0; }
.hd-sleeve.fly-l { transform: translateX(-130%) rotate(-16deg); opacity: 0; }
.hd-sleeve.enter { transform: scale(.94) translateY(10px); opacity: 0; transition: none; }
.hd-sleeve[data-lean="yes"] { box-shadow: inset 0 0 0 4px var(--gold); }
.hd-sleeve[data-lean="no"] { box-shadow: inset 0 0 0 4px rgba(6, 37, 45, .3); }
.hd-vinyl { position: relative; width: 132px; height: 132px; border-radius: 50%; margin-bottom: 10px;
  background: radial-gradient(circle, transparent 0 30%, rgba(255, 255, 255, .07) 31%, transparent 32% 40%, rgba(255, 255, 255, .06) 41%, transparent 42% 52%, rgba(255, 255, 255, .06) 53%, transparent 54% 64%, rgba(255, 255, 255, .07) 65%, transparent 66%),
    conic-gradient(from 30deg, #111 0 12%, #2a2a2a 18%, #111 26% 62%, #2c2c2c 68%, #111 76%);
  box-shadow: 0 0 0 3px #000, 0 8px 18px -6px rgba(0, 0, 0, .6); animation: hd-spin 6s linear infinite; }
@keyframes hd-spin { to { transform: rotate(360deg); } }
.hd-label { position: absolute; inset: 33%; border-radius: 50%; background: radial-gradient(circle, #111 0 6%, var(--cream) 7% 100%); box-shadow: inset 0 0 0 3px var(--rc); display: grid; place-items: center; }
.hd-label span { font-size: 26px; line-height: 1; transform: translateY(-3px); }
.hd-label i { position: absolute; bottom: 4px; font: 900 8px var(--cbx-body); font-style: normal; color: var(--ink); letter-spacing: .06em; }
.hd-face { display: flex; flex-direction: column; align-items: center; min-height: 128px; justify-content: center; }
.cbx-card .hd-kick { margin: 0 0 4px; font: 900 11px var(--cbx-body); letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--rc) 70%, #06252d); }
.hd-sleeve h2 { margin: 0; font: 400 clamp(23px, 6.6vw, 31px)/1.12 'Shrikhand', Georgia, serif; color: var(--ink); }
.cbx-card .hd-artist { margin: 4px 0 0; font: 900 15px var(--cbx-body); color: var(--cherry); }
.cbx-card .hd-line { margin: 6px 0 0; font: 800 14px/1.4 var(--cbx-body); color: #4a6268; max-width: 290px; }
.hd-sleeve.start h2 { font-size: clamp(21px, 6vw, 27px); }
.hd-stamp { position: absolute; right: 14px; top: 104px; opacity: 0; transform: rotate(-12deg) scale(2.2); pointer-events: none; }
.hd-stamp span { display: block; padding: 4px 12px; border: 4px double var(--cherry); border-radius: 10px; color: var(--cherry); font: 400 20px 'Shrikhand', Georgia, serif; background: rgba(255, 246, 224, .75); }
.hd-sleeve.stamped .hd-stamp { animation: hd-stamp .24s cubic-bezier(.2, 1.4, .5, 1) forwards; }
@keyframes hd-stamp { to { opacity: .94; transform: rotate(-12deg) scale(1); } }

.hd-choose { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; max-width: 390px; margin: 18px auto 0; }
.hd-choose button { min-height: 56px; border-radius: 14px; border: 0; cursor: pointer; font: 900 18px var(--cbx-body); }
.hd-no { background: rgba(0, 0, 0, .22); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3); }
.hd-yes { background: linear-gradient(180deg, #ffe08f, var(--gold)); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 0 #a8801a; }
.hd-yes:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 0 #a8801a; }
.hd-choose .hd-no[hidden] + .hd-yes { grid-column: 1 / -1; }
.hd-choose button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hd-tools { display: flex; justify-content: center; gap: 22px; margin-top: 10px; min-height: 30px; }
.hd-link { border: 0; background: none; color: rgba(255, 255, 255, .85); font: 800 14px var(--cbx-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px; }

/* ---- finished ---- */
.hd-greet { text-align: center; margin: 4px 0 4px; }
.cbx-card .hd-greet-k { margin: 0; font: 900 13px var(--cbx-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.cbx-card .hd-greet-n { margin: 0; font: 400 clamp(58px, 18vw, 92px)/1.05 'Shrikhand', Georgia, serif; color: var(--cream); text-shadow: 4px 4px 0 var(--cherry); }
.hd-greet-n small { font: 900 26px var(--cbx-body); text-shadow: none; margin-left: 4px; }
.cbx-card .hd-greet-r { margin: 4px 0 0; font: 800 16px var(--cbx-body); }
.hd-greet-r b { color: var(--gold); }
.hd-greet-r small { color: rgba(255, 255, 255, .75); font-size: 14px; }
.cbx-card .hd-crowd { margin: 6px auto 0; max-width: 520px; text-align: center; font: 800 15px/1.4 var(--cbx-body); }
.hd-crowd b { color: var(--gold); }
.hd-wall-wrap { position: relative; max-width: 520px; margin: 12px auto 0; }
.hd-wall-wrap:has(.hd-deep:not([hidden])) { margin-bottom: 76px; }
/* the jukebox selection panel: dark glass in a chrome and cherry frame */
.hd-wall { position: relative; display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; padding: 12px; border-radius: 16px; background: var(--glass); box-shadow: inset 0 0 0 3px #cfd8dc, 0 0 0 5px var(--cherry), 0 14px 28px -10px rgba(0, 0, 0, .6); }
.hd-tile { aspect-ratio: 1; border: 0; padding: 0; border-radius: 6px; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .04); }
.hd-tile span { font-size: clamp(17px, 5.2vw, 29px); line-height: 1; }
.hd-tile.no span { opacity: .22; filter: grayscale(1); }
.hd-tile:not(.no) { background: color-mix(in srgb, var(--rc) 55%, #fff6e0); }
.hd-tile.both, .hd-tile.me, .hd-tile.them { background: color-mix(in srgb, var(--rc) 75%, #fff6e0); }
.hd-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.cbx-card .hd-hint { margin: 10px 0 0; text-align: center; font: 800 13px var(--cbx-body); color: rgba(255, 255, 255, .8); min-height: 18px; }
.hd-deep { position: absolute; right: -4px; bottom: -50px; z-index: 2; display: grid; justify-items: center; gap: 1px; padding: 8px 12px 9px; transform: rotate(-7deg); pointer-events: none;
  border: 4px double var(--cherry); border-radius: 12px; color: var(--cherry); background: var(--cream); text-align: center; text-transform: uppercase; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4);
  animation: hd-deep-in .4s cubic-bezier(.2, 1.5, .45, 1) .3s both; }
.hd-deep .k { font: 900 10px var(--cbx-body); letter-spacing: .2em; }
.hd-deep { max-width: min(250px, 70%); }
.hd-deep b { font: 400 clamp(14px, 4.2vw, 18px)/1.15 'Shrikhand', Georgia, serif; text-transform: none; }
.hd-deep span:last-child { font: 900 10px/1.2 var(--cbx-body); letter-spacing: .06em; }
@keyframes hd-deep-in { from { opacity: 0; transform: rotate(-7deg) scale(1.8); } to { opacity: 1; transform: rotate(-7deg) scale(1); } }
.hd-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 8px 0 0; font: 800 13px var(--cbx-body); }
.hd-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .6); }
.hd-compare { max-width: 520px; margin: 10px auto 0; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .25); text-align: center; font: 800 16px/1.45 var(--cbx-body); }
.hd-compare p { margin: 0; } .hd-compare b { color: var(--gold); }
.cbx-card .hd-compare .hd-teach { margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, .9); }
.hd-eras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 520px; margin: 12px auto 0; padding: 0; list-style: none; }
.hd-eras li { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 7px 10px; border-radius: 10px; background: rgba(0, 0, 0, .25); border-left: 5px solid var(--rc); font: 800 12px var(--cbx-body); }
.hd-eras li, .hd-eras span { color: #fff; }
.hd-eras b { font-size: 15px; }
.cbx-card .hd-next { max-width: 520px; margin: 12px auto 0; text-align: center; font: 800 15px/1.5 var(--cbx-body); }
.hd-next b { color: var(--gold); }
.hd-next small { color: rgba(255, 255, 255, .75); }
/* a cream jukebox title strip */
.hd-night { max-width: 520px; margin: 12px auto 0; padding: 12px 14px; border-radius: 12px; background: var(--cream); color: var(--ink); box-shadow: inset 0 6px 0 var(--cherry); }
.cbx-card .hd-night p { margin: 0; font: 800 15px/1.45 var(--cbx-body); color: var(--ink); }
.cbx-card .hd-night .hd-night-k { margin: 4px 0 4px; font: 900 13px var(--cbx-body); letter-spacing: .08em; text-transform: uppercase; color: var(--cherry); }
.hd-night b { color: var(--teal); }
.hd-acts { display: grid; gap: 8px; max-width: 420px; margin: 14px auto 0; }
.hd-card .cbx-btn { border-radius: 14px; font-weight: 900; min-height: 48px; }
.hd-card .cbx-btn:not(.alt) { background: linear-gradient(180deg, #ffe08f, var(--gold)); color: var(--ink); border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 0 #a8801a; }
.hd-card .cbx-btn.hd-img { background: linear-gradient(180deg, #ff5a66, var(--cherry)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 0 #8f1d26; }
.hd-card .cbx-btn.alt { background: rgba(0, 0, 0, .22); color: #fff; border: 0; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3); }

@media (max-width: 560px) {
  .cbx-card.hd-card { --cbx-full-pad: 4px; padding: 28px 10px 14px; }
  .hd-page .cbx-hero { margin-bottom: 10px; }
  .hd-sleeve { padding: 16px 14px 20px; background: linear-gradient(180deg, var(--rc) 0 84px, var(--cream) 84px); }
  .hd-vinyl { width: 120px; height: 120px; }
  .hd-stamp { top: 96px; }
  .hd-eras { grid-template-columns: repeat(2, 1fr); }
  .hd-wall { padding: 9px; gap: 2px; }
}
@media (max-width: 560px) and (max-height: 760px) { .hd-page .cbx-sub { display: none; } }
@media (prefers-reduced-motion: reduce) { .hd-sleeve { transition: none; } .hd-vinyl, .cbx-card.hd-card::before { animation: none; } .hd-cell.cur { animation: none; background: var(--gold); } .hd-sleeve.stamped .hd-stamp { animation: none; opacity: .94; transform: rotate(-12deg); } .hd-deep, .hd-rank.up { animation: none; } }

/* the iMessage app, for iPhone and iPad players not already in it */
.cb-appcard { display: flex; align-items: center; gap: 12px; max-width: 420px; margin: 14px auto 0; padding: 12px 14px; border-radius: 16px; background: #fff; color: #1d1d1f; text-decoration: none; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5); }
.cb-appcard img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.cb-appcard b { display: block; font: 900 15px/1.25 Nunito, system-ui, sans-serif; }
.cb-appcard span { display: block; font: 700 13px/1.35 Nunito, system-ui, sans-serif; color: #5a5a60; }
.cb-appcard i { margin-left: auto; flex: none; font-style: normal; padding: 8px 12px; border-radius: 999px; background: #0a84ff; color: #fff; font: 900 13px Nunito, system-ui, sans-serif; }
