.mobile-home[hidden], .mobile-song-options:not([open]) { display:none; }
.result-personal-best { color:#b7efd9;font-size:13px;line-height:1.4; }
.mobile-home, .mobile-song-options { --mobile-mint:#b7efd9; --mobile-ink:#0b1419; --mobile-muted:#a9b9bc; color:#f9f6ec; }
.mobile-home button,.mobile-song-options button { touch-action:manipulation; }
.mobile-song-options { box-sizing:border-box; position:fixed; inset:auto 0 0; width:min(100%,540px); max-width:100%; max-height:90dvh; margin:0 auto; padding:22px 22px max(22px,env(safe-area-inset-bottom)); overflow-y:auto; border:1px solid #d7f4ec30; border-radius:24px 24px 0 0; background:#111f26; color:#f9f6ec; box-shadow:0 -24px 80px #0007; }
.mobile-song-options::backdrop { background:#02080cb8; backdrop-filter:blur(6px); }
.mobile-song-options[open] { display:flex;flex-direction:column;overflow:hidden; }
.mobile-song-options-body { min-height:0;overflow-y:auto;overscroll-behavior:contain; }
.mobile-song-options>header,.mobile-song-options>.mobile-primary { flex:none; }
.mobile-song-options header { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.mobile-song-options h2 { font-size:27px;line-height:1.15;letter-spacing:-.045em;margin:20px 0 7px;overflow-wrap:anywhere; }
.mobile-song-options button { min-height:44px;font:inherit;cursor:pointer; }
.mobile-song-options header button { border:1px solid #b9d8d342;border-radius:24px;padding:8px 16px;background:transparent;color:inherit; }
.mobile-song-artist,.mobile-mic-note,.mobile-challenge-note { font-size:14px;line-height:1.5;color:var(--mobile-muted); }
.mobile-challenge-note { border-left:2px solid var(--mobile-mint);padding:8px 12px;color:#d9f7e8; }
.mobile-primary { display:block;width:100%;margin-top:18px;min-height:54px!important;border:0;border-radius:14px;background:var(--mobile-mint);color:var(--mobile-ink);font-weight:750!important;font-size:17px!important; }
.mobile-song-settings .song-setup{width:100%;margin:18px 0 0}
body[data-phase=catalogue] .mobile-song-settings .song-setup .selection-actions{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);width:100%;margin:0;padding:0;gap:6px;background:none;box-shadow:none;backdrop-filter:none}
body[data-phase=catalogue] .mobile-song-settings .song-setup .selection-actions:has(#practice-toolbar[hidden]){grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
.mobile-song-settings .song-setup .practice-toolbar{display:contents}
.mobile-song-settings .song-setup :is(.record-take-choice,.practice-register select,#practice-history-open,#practice-details-toggle,#party-round){width:100%;min-width:0;height:44px;padding-inline:8px;font-size:13px;background:#ffffff05}
.mobile-song-settings .song-setup #practice-range,.mobile-song-settings .song-setup #party-round{font-size:16px}
.mobile-song-settings .song-setup #party-round{padding-inline:27px}
.mobile-song-settings .song-setup .practice-register{min-width:0}
.mobile-song-settings .selection-actions label { font-size:14px;min-height:44px; }
.mobile-song-settings select,.mobile-song-settings input:not([type=checkbox]) { font-size:16px;min-height:44px;max-width:100%; }
.mobile-song-settings .record-take-choice { display:flex;align-items:center;gap:7px; }
.mobile-song-settings input[type=checkbox] { width:16px;height:16px;accent-color:var(--mobile-mint); }
.mobile-song-settings .record-take-note { max-width:none;font-size:12px;text-align:left;line-height:1.4;color:var(--mobile-muted); }
.mobile-song-settings .practice-panel { width:auto;max-width:none;padding:16px 0;margin:0;border:0;border-top:1px solid #cfe8e126;border-radius:0;text-align:left;background:none;backdrop-filter:none; }
.mobile-song-settings .practice-options { display:grid;grid-template-columns:1fr 1fr;gap:12px; }
.mobile-song-settings .practice-options label { min-width:0;display:flex;flex-direction:column;gap:6px; }
.mobile-song-settings .practice-options a { display:flex;align-items:center;min-height:44px;align-self:center;font-size:13px; }
.mobile-song-settings #practice-hint { line-height:1.5;font-size:15px; }
.mobile-song-settings .small { font-size:12px;line-height:1.45; }
.mobile-song-settings .song-setup #song-length { display:flex;position:relative;width:100%;min-width:0; }
.mobile-song-settings .song-setup .song-length select { min-width:0; }
.mobile-song-options :focus-visible,.mobile-home :focus-visible { outline:2px solid #b7efd9;outline-offset:3px; }
@media (max-width:760px), (max-width:1024px) and (pointer:coarse) {
  html:has(body.standalone-player[data-mobile-ui=true]) { font-size:16px; }
  /* The desktop practice panel normally expands the document. On phones it
     lives in a dialog: only the catalogue list and sheet body should scroll. */
  body.standalone-player[data-mobile-ui=true][data-phase=catalogue] { height:100dvh!important;overflow:hidden!important;background:#0a1117; }
  body.standalone-player[data-mobile-ui=true][data-phase=catalogue] #player-shell { display:flex;flex-direction:column;height:100dvh!important;min-height:0!important;padding:0;overflow:hidden!important;max-width:none;background:radial-gradient(ellipse at 90% 0,#24514738,transparent 50%),#0a1117; }
  body[data-mobile-ui=true][data-phase=catalogue] #browse-backdrop,body[data-mobile-ui=true][data-phase=catalogue] #song-selection,body[data-mobile-ui=true][data-phase=catalogue] .player-footer,body[data-mobile-ui=true] .browse-navigation-hint { display:none!important; }
  body[data-mobile-ui=true] .player-header { flex:none!important;flex-wrap:nowrap!important;height:auto!important;min-height:64px!important;padding:calc(10px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left))!important;gap:10px!important;border-bottom:1px solid #d7efe712;background:transparent; }
  body[data-mobile-ui=true] .player-header .player-brand { margin-right:auto;font-size:22px!important;gap:8px;flex-shrink:0; }
  body[data-mobile-ui=true] .player-brand .inza-symbol { width:24px;height:24px; }
  body[data-mobile-ui=true] .player-header :is(#room-toggle,#open-rewards,#menu-event-collection,#menu-music-deck,#lobby-mic-two-toggle) { display:none!important; }
  body[data-mobile-ui=true] .header-audio-controls { margin:0; }
  body[data-mobile-ui=true] .player-header .header-audio-controls { display:none; }
  body[data-mobile-ui=true] .cloud-account-link:not([hidden]) { display:flex;align-items:center;justify-content:center;min-height:44px;max-width:64px;padding:6px 8px;box-sizing:border-box;flex:none;font-size:11px;line-height:1.25;white-space:normal;text-align:center; }
  body[data-mobile-ui=true] #browse-panel>#lobby-mic-toggle { display:inline-grid;margin-bottom:18px;min-width:110px; }
  body[data-mobile-ui=true] #lobby-mic-toggle { min-width:46px;min-height:44px;height:44px;padding:4px 8px;border-radius:12px;background:#17302d; }
  body[data-mobile-ui=true] #lobby-mic-toggle .header-mic-label { display:block;font-size:11px; }
  body[data-mobile-ui=true] #lobby-mic-toggle svg { display:none; }
  body[data-mobile-ui=true] #browse-settings { margin:0; }
  body[data-mobile-ui=true] .browse-settings-toggle { min-height:44px!important;padding:8px 12px!important;border-radius:12px;font-size:13px!important;background:#ffffff06; }
  body[data-mobile-ui=true] #browse-settings>#browse-panel { position:fixed;inset:auto 0 0;width:100%;max-width:none;max-height:85dvh;overflow-y:auto;grid-template-columns:minmax(0,1fr);border-radius:22px 22px 0 0;padding:22px 20px max(24px,env(safe-area-inset-bottom));box-sizing:border-box;z-index:120; }
  body[data-mobile-ui=true] #browse-panel>*,body[data-mobile-ui=true] #browse-panel :is(select,input) { min-width:0;max-width:100%;box-sizing:border-box; }
  body[data-mobile-ui=true] #browse-panel :is(button,select,input:not([type=checkbox])) { min-height:44px;font-size:16px; }
  body[data-mobile-ui=true] #gesture-main { display:none; }
  body[data-mobile-ui=true] :is(.ambient-corner-controls,.ambient-wallpaper-corner,#lobby-mic-two-meter) { display:none!important; }
  .mobile-home { display:flex;flex:1;min-height:0;flex-direction:column;position:relative;width:100%;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
  .mobile-home-scroll { flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;padding:6px max(16px,env(safe-area-inset-right)) 20px max(16px,env(safe-area-inset-left));scrollbar-width:thin; }
  .mobile-intro { padding:16px 0 18px; }
  .mobile-eyebrow { font-size:10px;font-weight:750;letter-spacing:.18em;color:#b7efd9;margin:0; }
  .mobile-intro h1 { font-size:34px;line-height:1.1;font-weight:650;letter-spacing:-.055em;margin:10px 0; }
  .mobile-subtitle { font-size:14px;color:var(--mobile-muted);line-height:1.5;margin:0;max-width:320px; }
  .mobile-search-wrap { position:relative;margin:0 0 15px; }
  .mobile-search-label { display:block;font-size:12px;color:var(--mobile-muted);margin-bottom:7px; }
  #mobile-search { width:100%;box-sizing:border-box;min-height:48px;border-radius:14px;padding:12px 15px;color:#f9f6ec;border:1px solid #c5ead824;background:#a8d8c607;font:inherit;font-size:16px; }
  #mobile-search::placeholder { color:#879c9f; }
  .mobile-collections { display:flex;gap:8px;overflow-x:auto;padding:2px 2px 10px;scrollbar-width:none; }
  .mobile-collections button { flex:none;min-height:44px;max-width:220px;border:1px solid #c5ead829;border-radius:24px;padding:9px 15px;background:#112026;color:#adbec1;font:inherit;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
  .mobile-collections button[aria-pressed=true] { background:#f7f3e8;color:#132329;border-color:#f7f3e8;font-weight:650; }
  .mobile-list-count { margin:7px 0 10px;font-size:12px;color:#93aaa9;line-height:1.5; }
  .mobile-song-list { list-style:none;margin:0;padding:0; }
  .mobile-song-row { display:flex;align-items:center;gap:4px;border-bottom:1px solid #d0e9df13;padding:6px 0; }
  .mobile-song-play { display:flex;flex:1;align-items:center;gap:12px;min-width:0;min-height:80px;padding:4px 0;border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer; }
  .mobile-song-art { position:relative;flex:0 0 56px;width:56px;height:64px;display:grid;place-items:center;border:1px solid #c7e6d82b;border-radius:9px;background:linear-gradient(145deg,#395953,#1e263c);font-size:20px;font-weight:750;color:#c7e4dc;overflow:hidden; }
  .mobile-song-art img { position:absolute;inset:0;width:100%;height:100%;object-fit:cover; }
  .mobile-song-row:nth-child(3n+2) .mobile-song-art { background:linear-gradient(145deg,#504261,#292030); }
  .mobile-song-row:nth-child(3n+3) .mobile-song-art { background:linear-gradient(145deg,#685643,#30282b); }
  .mobile-song-words { display:flex;flex:1;flex-direction:column;min-width:0;gap:3px; }
  .mobile-song-words strong { font-size:15px;font-weight:650;line-height:1.3;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
  .mobile-song-words>span { font-size:12px;line-height:1.4;color:#a4b9bc;overflow:hidden;white-space:nowrap;text-overflow:ellipsis; }
  .mobile-song-words small { font-size:11px;line-height:1.4;color:#7f999b;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
  .mobile-row-play { color:#b7efd9;font-size:12px;padding:4px; }
  .mobile-song-favourite { flex:none;width:44px;min-height:48px;border:0;background:transparent;color:#7a9694;font-size:25px;cursor:pointer; }
  .mobile-song-favourite[aria-pressed=true] { color:#d5b3d8; }
  .mobile-song-play:active { opacity:.7; }
  .mobile-tabbar { display:grid;grid-template-columns:repeat(3,1fr);flex:none;padding:7px max(16px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));border-top:1px solid #d9f0e523;background:#0f1b21f5; }
  .mobile-tabbar button { display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-height:53px;padding:4px;border:0;background:transparent;border-radius:12px;font:inherit;font-size:11px;color:#789595; }
  .mobile-tabbar button[aria-current=page] { color:#c4f3df;background:#c2ead509; }
  .mobile-tab-icon { font-size:23px;line-height:24px; }
  .mobile-quick-actions { display:flex;flex-wrap:wrap;gap:8px;margin:-2px 0 17px; }
  .mobile-quick-actions[hidden] { display:none; }
  .mobile-quick-actions button,.mobile-more { min-height:44px;padding:9px 13px;border:1px solid #cde8de29;background:#14272c;border-radius:12px;color:#b7efd9;font:inherit;font-size:12px; }
  .mobile-more { width:100%;margin-top:16px; }
  .mobile-status { color:#b7c4cb;font-size:13px;line-height:1.5; }
  .mobile-empty { padding:30px 12px;text-align:center;border:1px dashed #c0e2d528;border-radius:16px;color:#b2c1c0; }
  .mobile-empty h2 { font-size:18px;color:#f3f1e9; }
  .mobile-empty p { font-size:14px;line-height:1.5; }
  body[data-mobile-ui=true] #player-loading { padding:40px 24px!important; }
  body[data-mobile-ui=true] #player-loading h1 { font-size:28px;overflow-wrap:anywhere; }
  body[data-mobile-ui=true] #player-message:not([hidden]) { position:fixed;bottom:90px;left:16px;right:16px;z-index:150;padding:12px 16px;background:#f7f3e8;color:#15282d;border-radius:12px;font-size:13px; }
}
@media (max-height:500px) and (orientation:landscape) {
  body[data-mobile-ui=true] .player-header { min-height:52px!important;padding-block:4px!important; }
  .mobile-intro { padding:8px 0 12px; }
  .mobile-intro h1 { font-size:27px;margin:5px 0; }
  .mobile-tabbar button { min-height:44px;flex-direction:row;gap:8px; }
}
/* The same running film as the songbook tile, sized for a 44px row. */
.mobile-song-art[data-clip=true]{position:relative;overflow:hidden}
.mobile-song-art[data-clip=true]::after{content:'';position:absolute;left:0;right:0;bottom:0;height:4px;background:repeating-linear-gradient(90deg,#40d4ffcc 0 3px,transparent 3px 7px);animation:mobile-clip-run 850ms linear infinite}
@keyframes mobile-clip-run{from{transform:translateX(0)}to{transform:translateX(-7px)}}
@media(prefers-reduced-motion:reduce){.mobile-song-art[data-clip=true]::after{animation:none}}
.mobile-song-options>.mobile-song-actions,.mobile-song-options>.mobile-share-note { flex:none; }
.mobile-song-actions { display:flex;gap:10px;align-items:stretch;margin-top:18px; }
.mobile-song-actions .mobile-primary { width:auto;flex:1 1 auto;margin-top:0; }
.mobile-secondary { flex:0 0 auto;min-height:54px!important;padding-inline:20px;border:1px solid #b9d8d342;border-radius:14px;background:#ffffff05;color:inherit;font-weight:650!important;font-size:16px!important; }
.mobile-share-note { margin:12px 0 0;font-size:14px;line-height:1.5;color:var(--mobile-mint);overflow-wrap:anywhere; }
.mobile-share-note:empty { display:none; }
.mobile-song-options>.mobile-song-link { flex:none; }
.mobile-song-link .song-link-row { margin:14px 0 0; }
.mobile-song-link .song-link-row label { font-size:13px;color:var(--mobile-muted); }
.mobile-song-link .song-link-row input { background:#ffffff08;border-color:#b9d8d342;color:#f9f6ec; }
