/* ════════════════════════════════════════════════════════
   CHORD DICTIONARY — phone front door
   Card-is-king: the grip owns the screen; root dial + quality
   are SUMMONED, not resident. No patent costume — Fifths through
   the materials (the app's own palette vars → skin-aware for free).
   Isolated + reversible: delete this file, src/chord-dict.js, and
   the #chord-dict markup → the old teaser returns.
════════════════════════════════════════════════════════ */

#chord-dict {
  display: none;
  position: fixed; inset: 0; z-index: 901;
  flex-direction: column;
  background-color: var(--bg); color: var(--text);
  overflow: hidden; -webkit-tap-highlight-color: transparent;
}
/* Background grid — the EXACT desktop #app grid (styles.css:13739): faint blue
   lines at 30px. Paper has no grid on desktop, so neither here. */
html[data-skin="blueprint"] #chord-dict,
html[data-skin="blueprint"] .cd-splash {
  background-image:
    linear-gradient(rgba(123,160,181,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,160,181,0.045) 1px, transparent 1px);
  background-size: 30px 30px;
}
/* The double-brass frame — the SAME values the desktop #app / #mobile-landing use:
   outer inset 18/14 + 1.5px gold2, inner inset 24/20 + 1px gold2 @0.45, sharp
   corners (no radius). Borders only, so the grid reads through the plate. */
#chord-dict::before {
  content: ''; position: absolute; inset: 18px 14px; z-index: 0; pointer-events: none;
  border: 1.5px solid var(--gold2);
}
#chord-dict::after {
  content: ''; position: absolute; inset: 24px 20px; z-index: 0; pointer-events: none;
  border: 1px solid var(--gold2); opacity: 0.45;
}
#chord-dict > .cd-head, #chord-dict > .cd-instline, #chord-dict > .cd-stage { position: relative; z-index: 1; }

/* ── Header (slim) ───────────────────────────────────── */
/* Padding clears the double frame (inner line at 24/20) so the brand + SHARE sit
   INSIDE the plate, not crashing into the corners (Scott: the top-bar collision). */
.cd-head {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: 32px 32px 12px;
}
.cd-brandwrap { display: flex; flex-direction: column; line-height: 1; }
.cd-brandline { display: flex; align-items: center; gap: 8px; }
.cd-logo { width: 24px; height: 24px; flex: 0 0 auto; display: block; }
/* Match the real header lockup (.rn-brand-name): gold, upright, 4px tracking. */
.cd-brand { font-family: 'Playfair Display', serif; font-size: 22px; letter-spacing: 4px; color: var(--gold-ink); line-height: 1; }
/* Instrument lifted out of the header to its own quiet line, so the top is just
   the brand lockup (left) + SHARE (right) — the real app's header pattern. */
.cd-instline {
  flex: 0 0 auto; align-self: center; background: transparent; border: none; cursor: pointer;
  font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--dim2); padding: 0 8px 8px; transition: color .15s, transform .12s;
}
.cd-instline:active { color: var(--gold); transform: scale(0.96); }
.cd-sub { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 2px; color: var(--dim2); margin-top: 4px; }
.cd-head-right { display: flex; align-items: center; gap: 8px; }
.cd-share, .cd-inst {
  background: transparent; border: 1px solid var(--border); border-radius: 7px;
  padding: 7px 11px; min-height: 36px;
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 11px; letter-spacing: 0.3px;
  text-transform: uppercase; color: var(--dim2); cursor: pointer;
}
.cd-share { color: var(--gold); border-color: var(--gold2); }
/* Instrument reads as a light text affordance, not a heavy box; SHARE is the one CTA. */
.cd-inst { border: none; background: transparent; padding: 7px 4px; min-height: 32px; color: var(--dim2); }

/* Position ladder — the desktop's "anchor along the neck", reused: a fret rail
   marking every position this chord occupies, the shared brass ball on the
   active one. Tap a node to ride there. */
/* Board — the altimeter column sits to the LEFT of the neck, same height. */
.cd-board { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 0; width: 100%; padding: 0 8px; }
.cd-ladder { flex: 0 0 auto; height: 46vh; max-height: 100%; }
.cd-ladder-svg { height: 100%; width: auto; max-width: 40px; display: block; overflow: visible; }
.cd-rail { stroke: var(--gold2); stroke-width: 1.4; opacity: 0.7; }
.cd-rail-nut { stroke: var(--gold-ink, var(--gold3)); stroke-width: 2.4; }
.cd-rail-inlay { fill: var(--gold2); opacity: 0.65; }
.cd-rail-num { font-family: 'Space Mono', monospace; font-size: 9px; fill: var(--dim2); }
.cd-ladder-node { cursor: pointer; }
.cd-node { fill: none; stroke: var(--gold2); stroke-width: 1.4; opacity: 0.8; transition: opacity .15s, r .15s; }
.cd-ladder-node:active .cd-node, .cd-ladder-node:focus-visible .cd-node { opacity: 1; }
.cd-ball { fill: var(--gold); stroke: var(--gold3); stroke-width: 1.2; }

/* ── Stage — the grip is the hero ────────────────────── */
.cd-stage {
  flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  /* bottom padding clears the frame's inner line (24px) so BEST ON DESKTOP stops
     colliding with the bottom border the way SHARE did with the top corner. */
  padding: 6px 14px 28px; min-height: 0; gap: 12px;
}

/* Name line — the two tappable controls (root · quality) */
.cd-name { flex: 0 0 auto; display: flex; align-items: baseline; gap: 16px; padding: 6px 0 2px; }
.cd-name-btn {
  background: transparent; border: none; cursor: pointer; padding: 2px 2px 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.cd-name-main {
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 36px; line-height: 1;
  color: var(--text); border-bottom: 1.5px dotted var(--gold2); padding-bottom: 3px;
}
.cd-name-q { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 32px; color: var(--gold-ink, var(--gold3)); border-bottom-style: solid; }
.cd-name-sub { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 1.5px; color: var(--dim2); }

/* The chord CARD — name + tones (header) over the framed fretboard, on a vellum
   ground with a brass border, tilted on a 3D hinge like the desktop cards. */
/* The phone shows one card, and it's always the CHOSEN one — so it wears the
   desktop .pia-card.active treatment (gold border + glow), per skin. */
.cd-card {
  flex: 0 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 18px 18px; border: 1.5px solid var(--gold); border-radius: 4px;
  background: var(--vellum); transform-origin: 50% 0%;
}
html[data-skin="blueprint"] .cd-card {
  background: #1c3046; box-shadow: 0 0 0 2px var(--gold), 0 0 16px rgba(232,199,106,0.25);
}
html[data-skin="paper"] .cd-card {
  background: #faf3dd; box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}
/* The hinge — the card swings down on its top edge and settles FLAT (no
   permanent lean; the MOTION is the hinge). Re-fires on each chord change. */
@keyframes cd-hinge-in {
  0%   { transform: perspective(1400px) rotateX(42deg); opacity: 0.3; }
  72%  { transform: perspective(1400px) rotateX(-3deg); }
  100% { transform: perspective(1400px) rotateX(0deg); opacity: 1; }
}
.cd-card.cd-hinging { animation: cd-hinge-in 0.5s cubic-bezier(0.2, 0.85, 0.3, 1.05); }
@media (prefers-reduced-motion: reduce) { .cd-card.cd-hinging { animation: none; } }

/* Engraved register — sharp corners, not generic rounded rects; SHARE is a
   filled-brass CTA. Plus tactile tap-feedback on every control, like the cards. */
.cd-share, .cd-inst, .cd-capo-btn { border-radius: 2px; }
.cd-seg, .cd-qchip, .cd-instcard, .cd-dotmode { border-radius: 3px; }
.cd-share { background: transparent; color: var(--gold); border-color: var(--gold2); font-family: 'Space Mono', monospace; font-weight: 700; letter-spacing: 1.5px; }
.cd-walk, .cd-share, .cd-inst, .cd-seg, .cd-name-btn, .cd-qchip,
.cd-instcard, .cd-capo-btn {
  transition: transform .1s ease, background .12s, border-color .12s, color .12s, opacity .15s;
}
.cd-walk:active, .cd-share:active, .cd-inst:active, .cd-seg:active,
.cd-name-btn:active, .cd-qchip:active, .cd-instcard:active, .cd-capo-btn:active { transform: scale(0.94); }
.cd-neck:active { transform: scale(0.99); }
.cd-tones { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 12px; letter-spacing: 0.6px; color: var(--gold-ink, var(--gold3)); min-height: 14px; }

/* The neck — takes all remaining height */
.cd-neck {
  flex: 0 1 auto; min-height: 0; width: 100%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .12s ease;
}
/* dvh (visible area), NOT vh — vh measures the full screen incl. the phone's URL
   bar, so the neck came out oversized and the card spilled over the header. The
   card's min-height:0 + overflow:hidden let the neck shrink to fit as a backstop. */
.cd-neck svg { height: 40vh; height: 40dvh; max-height: 100%; width: auto; display: block; }

/* Position walk — the desktop tool's voicing ◀ ▶ (styles.css .pia-altnav-btn:
   transparent, gold2 border, gold-ink glyph, 1px radius), sized for touch. */
/* The runner — the desktop's cable + brass carriage + framed stepper, under the
   card. Reuses --brass-ball (the one ball casting) and the gold hairline cable. */
.cd-runner { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; padding: 6px 0 2px; width: 100%; }
.cd-cable { position: relative; width: min(72%, 300px); height: 0; border-top: 1.25px solid var(--gold2); opacity: 0.75; }
.cd-cable::before, .cd-cable::after { content: ''; position: absolute; top: -2.5px; width: 5px; height: 5px; background: var(--gold2); opacity: 0.9; }
.cd-cable::before { left: -3px; }
.cd-cable::after { right: -3px; }
.cd-carriage { position: relative; width: 17px; height: 17px; border-radius: 50%; margin-top: -8.5px; z-index: 1; background: var(--brass-ball); box-shadow: 1px 1.5px 2px rgba(0,0,0,0.45); }
.cd-carriage::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: 1px; height: 11px; background: var(--gold2); opacity: 0.55; }
.cd-stepper { display: flex; align-items: center; gap: 6px; margin-top: 11px; border: 1px solid var(--gold2); border-radius: 2px; padding: 4px 6px; }
.cd-walk {
  background: transparent; border: 1px solid var(--gold2); color: var(--gold-ink, var(--gold3));
  border-radius: 1px; padding: 6px 12px; min-height: 38px; min-width: 42px;
  font-size: 13px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 120ms ease, opacity .15s;
}
.cd-walk:active { background: rgba(154,100,32,0.12); }
.cd-walk:disabled { opacity: 0.26; cursor: default; }
.cd-neck.cd-strum { animation: cd-strum-pulse .26s ease; }
@keyframes cd-strum-pulse { 0% { transform: scale(1); } 35% { transform: scale(1.02); } 100% { transform: scale(1); } }
.cd-empty { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 1px; color: var(--dim2); padding: 40px 0; }

.cd-pos-label { flex: 0 0 auto; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.6px; color: var(--dim2); text-align: center; text-transform: uppercase; padding: 2px 0; }

/* Fingers / degrees toggle */
/* The segmented control — the app's .ps-seg style (OFF · CHORD · ARPEGGIO). */
.cd-dotmode { flex: 0 0 auto; display: inline-flex; border: 1px solid var(--gold2); border-radius: 3px; overflow: hidden; }
.cd-seg {
  min-height: 34px; padding: 0 16px; border: none; background: transparent; color: var(--dim2); opacity: 0.62;
  cursor: pointer; font-family: 'Space Mono', monospace; font-weight: 700; font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  transition: background .15s, color .15s, opacity .15s;
}
.cd-seg + .cd-seg { border-left: 1px solid var(--gold2); }
.cd-seg.on { background: var(--gold-dim); color: var(--gold3); opacity: 1; }
/* The desktop tease — quiet footer, the landing's "Best on a desktop" register. */
.cd-deskfoot {
  flex: 0 0 auto; background: transparent; border: none; cursor: pointer; margin-top: 6px;
  font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 1.5px; color: var(--dim2);
  padding: 6px 4px 2px; transition: color .15s;
}
.cd-deskfoot:active { color: var(--gold); }

/* First-visit splash — full-cover greeting on the same draughting paper, the
   desktop welcome's greet-then-enter. Hidden once #chord-dict has data-entered. */
.cd-splash {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 22px; text-align: center;
  background-color: var(--bg);
}
/* The greeting sits in a card on the draughting paper — the welcome-card surface
   (--vellum, the lighter navy the chord card uses), a double brass frame. */
.cd-splash-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: 100%; max-width: 380px; padding: 36px 24px 30px;
  background: var(--vellum); border: 1.5px solid var(--gold2); border-radius: 5px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.42);
}
.cd-splash-card::before {
  content: ''; position: absolute; inset: 5px; border: 1px solid var(--gold2);
  opacity: 0.45; border-radius: 3px; pointer-events: none;
}
#chord-dict[data-entered] .cd-splash { display: none; }
/* Brand = the WELCOME treatment (welcome-card-brand): cream italic + big, NOT the
   header's gold. The "for fifths" identity is SHOWN via the instrument family. */
.cd-splash-brand { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; font-size: clamp(44px, 13vw, 60px); letter-spacing: 0.5px; color: var(--text); line-height: 1; }
.cd-splash-rule { width: min(80%, 340px); height: 1px; background: var(--gold2); opacity: 0.55; margin: 6px 0 4px; }
/* The instrument family REUSES the desktop .welcome-card-family CSS (framed row,
   continuous rail, selection tick). Only the phone-width adaptation lives here:
   the 7 won't fit 375px, so the framed row scrolls instead of cramming. */
.cd-splash-family.welcome-card-family { width: 100%; max-width: 100%; margin: 6px 0 2px; padding: 12px 16px; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cd-splash-family.welcome-card-family::-webkit-scrollbar { display: none; }
.cd-splash-family .wcf-cell { flex: 0 0 auto; min-width: 64px; background: transparent; border: none; padding: 0 4px; -webkit-appearance: none; appearance: none; }
.cd-splash-family .wcf-cell:active { transform: scale(0.94); }
/* CTA = the desktop welcome buttons' register: bordered, Space Mono, not filled. */
.cd-splash-go {
  margin-top: 18px; background: transparent; color: var(--gold); border: 1px solid var(--gold2); border-radius: 3px;
  padding: 14px 30px; min-height: 50px; cursor: pointer;
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase;
  transition: transform .12s, background .15s;
}
.cd-splash-go:active { transform: scale(0.96); background: var(--gold-dim); }
/* Subtle subset hint — the desktop splash's own doors, quietened, so the phone
   reads as a slice of the studio. Tapping shares the link to open on desktop. */
.cd-splash-more {
  margin-top: 16px; background: transparent; border: none; cursor: pointer;
  font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--dim2); max-width: 20em; line-height: 1.6; padding: 6px 8px; transition: color .15s;
}
.cd-splash-more:active { color: var(--gold); }

/* ── Summon: scrim + panels ──────────────────────────── */
.cd-scrim {
  position: absolute; inset: 0; z-index: 5; background: rgba(0,0,0,0.14);
  -webkit-backdrop-filter: blur(2px) brightness(0.5); backdrop-filter: blur(2px) brightness(0.5);
  opacity: 0; pointer-events: none; transition: opacity .24s cubic-bezier(0.4,0,0.2,1);
}
.cd-summon { position: absolute; z-index: 6; pointer-events: none; opacity: 0; }

/* Root dial — rises from centre, scale 0.72 → 1 (320ms) */
.cd-summon-dial {
  left: 50%; top: 46%; transform: translate(-50%, -50%) scale(0.72);
  width: min(86vw, 340px);
  background: var(--vellum); border: 1px solid var(--gold2); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  padding: 18px 18px 14px; text-align: center;
  transition: opacity .26s ease, transform .32s cubic-bezier(0.34,1.56,0.64,1);
}
.cd-dialwrap { width: 100%; max-width: 264px; aspect-ratio: 1/1; margin: 0 auto; }
.cd-dial { display: block; width: 100%; height: 100%; }
.cd-dial-caplabel { font-family: 'Space Mono', monospace; font-size: 8px; letter-spacing: 2px; fill: var(--dim2); }
.cd-dial-center { font-family: 'Playfair Display', serif; font-style: italic; font-size: 22px; fill: var(--text); }
.cd-summon-foot { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
/* PAT. 1923 — static engraving (patent-drawing furniture), NOT a button.
   The Harwood deep-view stays on desktop; here it's just part of the drawing. */
.cd-dial-stamp { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 2px; color: var(--gold); opacity: 0.7; text-align: left; margin: 0 0 2px 2px; }

/* Quality sheet — rises from the bottom (300ms) */
.cd-summon-qual {
  left: 0; right: 0; bottom: 0; transform: translateY(102%);
  background: var(--vellum); border-top: 1px solid var(--gold2); border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 36px rgba(0,0,0,0.4);
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  transition: opacity .3s ease, transform .3s cubic-bezier(0.34,1.56,0.64,1);
}
.cd-summon-cap { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 2px; color: var(--dim2); text-align: center; margin-bottom: 10px; }
.cd-qgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cd-qchip {
  min-height: 48px; border: 1px solid var(--border); border-radius: 8px; background: transparent;
  color: var(--text); cursor: pointer; font-family: 'Space Mono', monospace; font-size: 15px; letter-spacing: 0.3px;
  display: flex; align-items: center; justify-content: center; transition: background .12s, border-color .12s, color .12s;
}
.cd-qchip.on { background: var(--gold); border-color: var(--gold); color: var(--ivory); font-weight: 700; }
.cd-qrule { height: 1px; background: var(--border); margin: 10px 2px; }
.cd-qgrid-more .cd-qchip { min-height: 40px; font-size: 13px; color: var(--dim2); }

/* Setup + Share — bottom sheets (same rise as the quality sheet) */
.cd-summon-setup, .cd-summon-share {
  left: 0; right: 0; bottom: 0; transform: translateY(102%);
  background: var(--vellum); border-top: 1px solid var(--gold2); border-radius: 16px 16px 0 0;
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 36px rgba(0,0,0,0.4);
  transition: opacity .3s ease, transform .3s cubic-bezier(0.34,1.56,0.64,1);
}
.cd-setup-q { font-family: 'Playfair Display', serif; font-style: italic; font-size: 19px; color: var(--text); text-align: center; margin-bottom: 12px; }
.cd-setup-label { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 2px; color: var(--dim2); margin-bottom: 6px; }
.cd-instgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cd-instcard {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  min-height: 56px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: transparent; cursor: pointer; text-align: left;
}
.cd-instcard-name { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 13px; color: var(--text); }
.cd-instcard-tune { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 1px; color: var(--dim2); }
.cd-instcard.on { border-color: var(--gold); background: rgba(154,100,32,0.10); }
.cd-instcard.on .cd-instcard-name { color: var(--gold-ink, var(--gold3)); font-weight: 700; }
.cd-setup-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-top: 14px; }
.cd-setup-tune { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--text); }
.cd-capo { display: flex; align-items: center; gap: 10px; }
.cd-capo-btn { width: 40px; height: 40px; border: 1px solid var(--gold2); background: transparent; color: var(--gold); font-size: 20px; border-radius: 8px; cursor: pointer; }
.cd-capo-val { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 14px; letter-spacing: 0.5px; color: var(--text); min-width: 48px; text-align: center; }
.cd-setup-note { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 0.5px; color: var(--dim2); margin-top: 4px; }
.cd-share-opt {
  display: block; text-align: center; padding: 14px; margin-top: 8px;
  border: 1px solid var(--gold2); border-radius: 8px; background: transparent;
  font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: 0.5px; color: var(--gold); cursor: pointer;
  text-decoration: none; width: 100%;
}

/* Open states */
#chord-dict[data-summon] .cd-scrim { opacity: 1; pointer-events: auto; }
#chord-dict[data-summon="dial"] .cd-summon-dial { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
#chord-dict[data-summon="qual"] .cd-summon-qual { opacity: 1; pointer-events: auto; transform: translateY(0); }
#chord-dict[data-summon="setup"] .cd-summon-setup { opacity: 1; pointer-events: auto; transform: translateY(0); }
#chord-dict[data-summon="share"] .cd-summon-share { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Busy (worker calculating) */
#chord-dict.cd-busy .cd-neck { opacity: 0.45; }
#chord-dict.cd-busy .cd-name { opacity: 0.55; }

@media (prefers-reduced-motion: reduce) {
  .cd-scrim, .cd-summon { transition: opacity .15s ease; }
  .cd-summon-dial { transform: translate(-50%, -50%) scale(1); }
  .cd-summon-qual, .cd-summon-setup, .cd-summon-share { transform: translateY(0); }
  #chord-dict:not([data-summon]) .cd-summon { display: none; }
}

/* ── Show on touch-primary phones / when forced ──────── */
@media (hover: none) and (pointer: coarse) and (max-width: 599px) {
  #chord-dict     { display: flex; }
  #app            { display: none !important; }
  #mobile-landing { display: none !important; }
}
html[data-cd-force] #chord-dict     { display: flex; }
html[data-cd-force] #app            { display: none !important; }
html[data-cd-force] #mobile-landing { display: none !important; }
