:root {
  --c0: #ff3ddc; --c1: #7b5cff; --c2: #9dff3a; --c3: #ff9a2e; /* index, middle, ring, pinky */
  --bg: #080914; --panel: rgba(18, 17, 40, .92); --line: rgba(255, 255, 255, .12);
  --text: #f3f1ff; --dim: #a9a6c9; --gold: #ffd23f; --accent: #8a5cff;
  --font: "Outfit", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: var(--bg);
  font-family: var(--font); color: var(--text);
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
#game { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; }
.hidden { display: none !important; }
button { font-family: var(--font); color: var(--text); cursor: pointer; border: 0; background: none; }
button:focus-visible, input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.screen {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 16px; text-align: center;
}
.screen.dim { background: rgba(5, 5, 14, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 20; }

/* Home */
#home { background: radial-gradient(ellipse at center, rgba(8, 9, 20, .78) 0%, rgba(8, 9, 20, .25) 70%); gap: clamp(8px, 2vh, 18px); }
.logo {
  margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1;
  font-size: clamp(56px, 16vh, 150px);
  background: linear-gradient(90deg, var(--c0), var(--c1) 40%, var(--c2) 72%, var(--c3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(138, 92, 255, .45));
}
.tag { margin: 0; font-size: clamp(16px, 3vh, 24px); color: var(--dim); }
.play {
  margin-top: clamp(6px, 2vh, 18px);
  font-size: clamp(26px, 5.5vh, 44px); font-weight: 700; color: #fff;
  padding: .42em 2.1em; border-radius: 999px;
  background: linear-gradient(90deg, var(--c0), var(--c1));
  box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 10px 40px rgba(170, 70, 255, .5);
  transition: transform .12s ease, box-shadow .12s ease;
}
.play:hover { transform: scale(1.04); box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 0 12px 54px rgba(190, 80, 255, .7); }
.play:active { transform: scale(.97); }
.chip {
  font-size: clamp(15px, 2.6vh, 19px); padding: .5em 1.1em; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--text);
}
.chip:hover { background: rgba(255,255,255,.13); }
.link { font-size: clamp(15px, 2.5vh, 18px); color: var(--dim); text-decoration: underline; text-underline-offset: 4px; }

.soundHint { margin: 0; padding: .45em 1.1em; border-radius: 999px; font-size: clamp(15px, 2.5vh, 18px); font-weight: 600; color: #2a2100; background: var(--gold); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .soundHint { animation: none; } }

/* Cards */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  padding: clamp(18px, 3.4vh, 34px) clamp(18px, 3vw, 40px);
  width: min(600px, 94vw); max-height: 94dvh; overflow: auto;
}
h2 { margin: 0 0 10px; font-size: clamp(26px, 5vh, 40px); font-weight: 700; }
h2.big { font-size: clamp(36px, 9vh, 72px); letter-spacing: .04em; text-transform: uppercase; }
.body { margin: 8px auto; font-size: clamp(16px, 2.6vh, 20px); line-height: 1.4; color: var(--dim); max-width: 46ch; }
.fine { margin: 14px auto 0; font-size: clamp(12px, 2vh, 14px); color: var(--dim); opacity: .8; max-width: 52ch; }
.status { min-height: 1.3em; margin: 10px auto 0; font-size: clamp(15px, 2.4vh, 18px); color: #ff8a8a; max-width: 46ch; }
.steps { text-align: left; margin: 6px 0 14px; padding-left: 1.3em; font-size: clamp(16px, 2.7vh, 20px); line-height: 1.4; color: var(--dim); }
.steps li { margin: .45em 0; } .steps b { color: var(--text); }
.legend { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: clamp(15px, 2.5vh, 19px); }
.legend i { display: inline-block; width: 1em; height: 1em; border-radius: 50%; vertical-align: -.14em; margin-right: 6px; background: #0b0b16; border: .22em solid var(--c); box-shadow: 0 0 12px var(--c); }

.btns { display: flex; gap: 14px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.btn {
  font-size: clamp(18px, 3.2vh, 24px); font-weight: 600; padding: .5em 1.5em; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid var(--line);
}
.btn:hover { background: rgba(255,255,255,.15); }
.btn.primary { background: linear-gradient(90deg, var(--c0), var(--c1)); border-color: transparent; }
.btn.danger { background: #d92b3a; border-color: transparent; }
.btn:disabled { opacity: .6; cursor: progress; }

/* Top-right menu button */
.icon-btn {
  position: fixed; top: max(12px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right));
  width: 52px; height: 52px; border-radius: 16px; z-index: 15;
  background: rgba(255,255,255,.09); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.icon-btn:hover { background: rgba(255,255,255,.18); }
.icon-btn span { width: 22px; height: 3px; border-radius: 2px; background: #fff; }
.icon-btn.pause { flex-direction: row; gap: 7px; }
.icon-btn.pause span { width: 6px; height: 22px; }
.icon-btn.pause span:last-child { display: none; }

/* Drawer */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 30;
  background: var(--panel); border-left: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform: translateX(105%); transition: transform .22s ease; display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,.5);
}
.drawer.open { transform: none; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; background: rgba(255,255,255,.06); padding: 4px; border-radius: 999px; }
.tabs button { font-size: 17px; font-weight: 600; padding: 8px 18px; border-radius: 999px; color: var(--dim); }
.tabs button.on { background: #fff; color: #14122b; }
.x { width: 44px; height: 44px; border-radius: 12px; font-size: 20px; background: rgba(255,255,255,.08); }
.tab { overflow: auto; padding: 8px 18px 28px; flex: 1; }
.group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.group:last-child { border-bottom: 0; }
.group h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.group .hint { margin: 0 0 8px; font-size: 14px; color: var(--dim); line-height: 1.35; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.seg button {
  flex: 1 1 0; min-width: max-content; font-size: 16px; font-weight: 500; padding: 10px 10px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
}
.seg button.on { background: #fff; color: #14122b; border-color: #fff; font-weight: 700; }
.seg button.pal { border: 2px solid transparent; background: linear-gradient(#1b1a38, #1b1a38) padding-box, var(--g) border-box; display: flex; align-items: center; justify-content: center; gap: 8px; }
.seg button.pal.on { background: linear-gradient(#fff, #fff) padding-box, var(--g) border-box; border-width: 4px; }
.dots { display: inline-flex; gap: 3px; } .dots i { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 6px currentColor; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.modes button { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; border-radius: 16px; font-size: clamp(15px, 2.4vh, 18px); font-weight: 600; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--dim); }
.modes button span { font-size: 1.9em; line-height: 1.1; }
.modes button.on { background: #fff; color: #14122b; border-color: #fff; box-shadow: 0 0 30px rgba(138, 92, 255, .6); }
#modeBar { width: min(640px, 94vw); margin-top: clamp(4px, 1.5vh, 12px); }
.group .modes + .hint { margin: 10px 0 0; }
.songs { display: grid; gap: 8px; margin-top: 8px; }
.song {
  cursor: pointer; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 2px 10px; text-align: left;
  padding: 11px 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line);
}
.song b { font-size: 18px; font-weight: 600; } .song small { grid-column: 1; font-size: 13.5px; color: var(--dim); }
.song .st { grid-row: 1 / span 2; grid-column: 2; font-size: 20px; letter-spacing: 2px; color: rgba(255,255,255,.2); white-space: nowrap; }
.song .st em { font-style: normal; color: var(--gold); }
.song.on { border-color: #fff; background: rgba(255,255,255,.14); box-shadow: 0 0 0 1px #fff inset; }
.song.locked { opacity: .5; cursor: not-allowed; }
.song.file { border-style: dashed; cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--accent); margin-top: 10px; height: 28px; }

/* Progress */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.tile { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); text-align: left; }
.tile b { display: block; font-size: 28px; font-weight: 700; line-height: 1.1; } .tile span { font-size: 13.5px; color: var(--dim); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 84px; margin-top: 10px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.bars i { flex: 1; max-width: 22px; border-radius: 4px 4px 0 0; background: var(--accent); min-height: 2px; }
.bars i.s3 { background: var(--gold); }
.axis { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--dim); margin-top: 4px; }
.frow { display: grid; grid-template-columns: 4.2em 1fr 3em; gap: 10px; align-items: center; font-size: 15px; margin-top: 8px; }
.frow .track { height: 10px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.frow .track i { display: block; height: 100%; border-radius: 6px; background: var(--c); }
.frow span:last-child { text-align: right; color: var(--dim); }
table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14.5px; }
td { padding: 7px 4px; border-bottom: 1px solid var(--line); text-align: left; } td:last-child { text-align: right; white-space: nowrap; }
td small { color: var(--dim); display: block; } td .g { color: var(--gold); letter-spacing: 1px; }
.empty { color: var(--dim); font-size: 16px; padding: 22px 0; text-align: center; line-height: 1.4; }
.rowbtns { display: flex; gap: 8px; margin-top: 10px; }
.rowbtns button { flex: 1; font-size: 15px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.rowbtns button.warn { color: #ff8a8a; }

/* Ranking */
.field { width: min(100%, 360px); margin: 6px auto 0; display: block; padding: .6em .9em; border-radius: 14px; font: 600 clamp(18px, 3vh, 22px) var(--font); color: var(--text); background: rgba(255,255,255,.08); border: 1px solid var(--line); text-align: center; -webkit-user-select: text; user-select: text; }
.field::placeholder { color: var(--dim); font-weight: 400; }
.check { min-height: 70px; margin-top: 12px; display: flex; justify-content: center; }
.link.small { font-size: inherit; }
.keyrow { margin-top: 8px; display: grid; gap: 8px; justify-items: center; }
.rankline { margin: 8px auto 0; font-size: clamp(15px, 2.5vh, 19px); font-weight: 600; color: var(--gold); }
.mecard { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(90deg, rgba(255, 61, 220, .22), rgba(123, 92, 255, .22)); border: 1px solid var(--line); text-align: left; }
.mecard b { font-size: 34px; font-weight: 800; line-height: 1; } .mecard span { font-size: 14.5px; line-height: 1.35; color: var(--text); }
.cheer { margin: 8px 0 0; font-size: 15px; font-weight: 600; text-align: left; }
.promo { margin-top: 10px; text-align: left; font-size: 13.5px; color: var(--dim); }
.promo .track { margin-top: 4px; height: 8px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; } .promo .track i { display: block; height: 100%; border-radius: 6px; background: var(--gold); }
.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; align-items: end; margin-top: 14px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border-radius: 12px 12px 0 0; background: rgba(255,255,255,.07); border: 1px solid var(--line); border-bottom: 0; min-width: 0; }
.pod span { font-size: 26px; line-height: 1.1; } .pod b { font-size: 14.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pod small { font-size: 12.5px; color: var(--dim); }
.pod.p1 { padding-top: 22px; background: rgba(255, 210, 63, .16); } .pod.p2 { padding-top: 14px; } .pod.you { box-shadow: 0 0 0 2px #fff inset; }
.rank { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rank li { display: grid; grid-template-columns: 2.6em 1fr auto; gap: 8px; align-items: center; padding: 7px 6px; font-size: 14.5px; border-bottom: 1px solid var(--line); text-align: left; }
.rank li span { color: var(--dim); } .rank li b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rank li em { font-style: normal; color: var(--dim); }
.rank li.you { background: rgba(255,255,255,.12); border-radius: 8px; } .rank li.you b { font-weight: 700; } .rank li.gap { display: block; text-align: center; color: var(--dim); padding: 2px; }

/* Camera preview */
#pip {
  position: fixed; left: 50%; bottom: 7vh; transform: translateX(-50%);
  width: min(30vw, 42vh); aspect-ratio: 4 / 3; pointer-events: none;
  border: 2px solid rgba(255,255,255,.7); border-radius: 16px; overflow: hidden; background: #000;
  box-shadow: 0 10px 40px rgba(0,0,0,.6); z-index: 25;
}
/* keep the video decoding while invisible (display:none would stall it) */
#pip.hidden { display: block !important; opacity: 0; width: 2px; height: 2px; border: 0; }
#pip.paused { bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(52vw, 58vh); }
#pip .mirror { position: absolute; inset: 0; transform: scaleX(-1); }
#pip video, #pip canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#pipHint { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px; text-align: center; font-size: clamp(13px, 2.3vh, 17px); font-weight: 600; color: #fff; background: rgba(217, 43, 58, .88); }
#pipHint.ok { background: rgba(30, 150, 70, .88); }

.song .del { grid-row: 1 / span 2; grid-column: 3; width: 38px; height: 38px; border-radius: 10px; font-size: 16px; color: #ff8a8a; background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.song .del:hover { background: #d92b3a; color: #fff; }
.card.wide { width: min(760px, 96vw); text-align: left; }
.card.wide h2 { text-align: center; }
@media (min-width: 640px) { .card.wide .songs { grid-template-columns: 1fr 1fr; } }
#confirm { z-index: 40; }
#hold { justify-content: space-between; padding: 6vh 16px; }
#hold .body { color: var(--text); }
.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 45;
  padding: .7em 1.4em; border-radius: 999px; font-size: clamp(18px, 3vh, 24px); font-weight: 600;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 16px 60px rgba(0,0,0,.6);
}
#results { z-index: 10; }   /* keep the menu button reachable above the results card */
/* Floating camera view on the home and results screens */
#pip.float { left: auto; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); transform: none; pointer-events: auto; z-index: 12;
  width: clamp(170px, 22vw, 320px); border-radius: 20px; border-color: rgba(255,255,255,.35); transition: width .2s ease; }
#pip.float.max { width: min(48vw, 64vh); }
.pipBar { display: none; position: absolute; top: 8px; right: 8px; gap: 6px; }
#pip.float .pipBar { display: flex; }
.pipBar button, #pipShow { width: 36px; height: 36px; border-radius: 12px; font-size: 18px; line-height: 1; color: #fff; background: rgba(8, 9, 20, .7); border: 1px solid var(--line); }
.pipBar button { position: relative; }
.pipBar button.on { background: #fff; }
.pipBar button.on::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; border-top: 3px solid #e5202e; transform: rotate(-45deg); }
.touchPick { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; margin-top: 8px; }
.handFig { margin: 0; text-align: center; } .handFig figcaption { font-size: 13.5px; color: var(--dim); margin-top: 2px; }
.touchPick .hand { width: 150px; height: auto; display: block; }
.seg.col { flex-direction: column; margin-top: 0; }
.seg.col button { flex: none; width: 100%; }
.pipBar button:hover, #pipShow:hover { background: rgba(255,255,255,.25); }
#pipShow { font-weight: 700; position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 52px; height: 52px; border-radius: 16px; font-size: 24px; z-index: 12; }
#pipOn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; padding: .5em 1em; border-radius: 999px; font-size: clamp(14px, 2.2vh, 17px); font-weight: 600; background: linear-gradient(90deg, var(--c0), var(--c1)); }
#pause { justify-content: space-between; padding: 6vh 16px; }
.pause-space { flex: 1; }

/* Results */
.stars { font-size: clamp(54px, 13vh, 104px); line-height: 1; letter-spacing: 10px; color: rgba(255,255,255,.14); }
.stars .on { color: var(--gold); text-shadow: 0 0 28px rgba(255, 210, 63, .7); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.stars .on:nth-child(2) { animation-delay: .18s; } .stars .on:nth-child(3) { animation-delay: .36s; }
@keyframes pop { from { transform: scale(0) rotate(-30deg); opacity: 0; } }
.pct { margin: 8px 0 0; font-size: clamp(22px, 4.2vh, 32px); font-weight: 700; }
.badge { display: inline-block; margin: 10px 0 0; padding: .3em 1em; border-radius: 999px; font-size: clamp(15px, 2.5vh, 18px); font-weight: 700; background: var(--gold); color: #2a2100; }
.badge[data-next]:not([data-next=""]) { cursor: pointer; border: 0; font-family: var(--font); box-shadow: 0 0 24px rgba(255, 210, 63, .5); }
.badge[data-next]:not([data-next=""]):hover { transform: scale(1.04); }
.meta { margin: 12px 0 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.meta span { font-size: clamp(14px, 2.3vh, 17px); padding: .3em .8em; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.meta span b { color: var(--k, var(--text)); }
.seg button[style*="--k"] { border-color: color-mix(in srgb, var(--k) 65%, transparent); background: color-mix(in srgb, var(--k) 16%, transparent); }
.seg button.on[style*="--k"] { background: var(--k); border-color: var(--k); color: #14122b; }
.adapt { margin: 10px auto 0; font-size: clamp(15px, 2.5vh, 19px); font-weight: 600; color: var(--text); }
.fingers { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.fingers span { font-size: clamp(14px, 2.3vh, 17px); padding: .35em .8em; border-radius: 999px; border: 2px solid var(--c); }
@media (prefers-reduced-motion: reduce) { .stars .on { animation: none; } .drawer { transition: none; } }

/* How to play: the video is the tutorial; the ⓘ button opens the same steps in words */
.card.tutorial { width: min(1040px, 96vw); padding-bottom: 0; }
/* "Got it" stays in reach at the bottom of the card, even when the words make the card scroll */
.card.tutorial .btns {
  position: sticky; bottom: 0; margin-top: 4px; padding: 14px 0 clamp(18px, 3.4vh, 34px);
  background: linear-gradient(to top, #121128 76%, rgba(18, 17, 40, 0));
}
.howHead { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; margin-bottom: 12px; }
.howHead h2 { margin: 0; font-size: clamp(24px, min(5vh, 7.4vw), 40px); }
.infoBtn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid var(--line); transition: background .12s ease; }
.infoBtn svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.infoBtn .dot { fill: currentColor; stroke: none; }
.infoBtn:hover { background: rgba(255,255,255,.18); }
.infoBtn[aria-expanded="true"] { background: #fff; color: #14122b; border-color: #fff; }
.howBody { display: grid; gap: 14px 24px; align-items: center; justify-items: center; }
/* as big as the card allows, but never taller than the screen can show with the title and button */
.tut {
  position: relative; width: min(100%, max(280px, calc((100dvh - 290px) * 16 / 9))); aspect-ratio: 16 / 9;
  border-radius: 16px; overflow: hidden; background: #05050e; border: 1px solid var(--line); box-shadow: 0 0 44px rgba(138, 92, 255, .28);
}
.tut video { width: 100%; height: 100%; display: block; object-fit: cover; cursor: pointer; }
.tut video.flip { transform: scaleX(-1); }      /* Right hand setting: show the mirror pose */
.tutPlay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(54px, 15%, 100px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(8, 9, 20, .6); border: 2px solid rgba(255,255,255,.85);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.tutPlay:hover { background: rgba(8, 9, 20, .8); }
.tutPlay svg { width: 52%; height: 52%; }
.tutSound {
  position: absolute; right: 10px; bottom: 15px; height: 44px; min-width: 44px; padding: 0 11px; border-radius: 999px;
  display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: #fff;
  background: rgba(8, 9, 20, .6); border: 1px solid rgba(255,255,255,.4);
}
.tutSound svg { width: 22px; height: 22px; flex: none; }
.tutSound.off { background: var(--gold); color: #2a2100; border-color: transparent; }
.tutBar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.18); pointer-events: none; }
.tutBar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c0), var(--c1)); }
.howText { width: 100%; text-align: left; }
.howText .steps { margin-top: 0; font-size: clamp(15px, min(2.7vh, 4.3vw), 20px); }
.howText .legend { gap: 8px 14px; font-size: clamp(14px, min(2.5vh, 4vw), 19px); }
/* with the words open on a wide screen, they sit beside the video instead of under it */
@media (min-width: 640px) and (orientation: landscape) {
  .card.tutorial.info .howBody { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .card.tutorial.info .tut { width: 100%; }
}
