/* ── Lynk Beat v4 — style.css ─────────────────────────────────────────────────
   Học từ "game game" design system. Emerald/Teal theme.
   Chỉ thay đổi: Home, Select, Diff panel, Result.
   Game canvas / HUD / hit-zone giữ nguyên logic, chỉ refine style nhẹ.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Design tokens ────────────────────────────────────────────────────────── */
.lb2-shell {
  --emerald:   #34d399;
  --teal:      #2dd4bf;
  --cyan:      #22d3ee;
  --fever:     #fbbf24;
  --lane-1:    #38bdf8;
  --lane-2:    #4ade80;
  --lane-3:    #facc15;
  --lane-4:    #f472b6;
  --bg-1:      #050d08;
  --bg-2:      #04000d;
  --bg-glass:  rgba(8,18,14,.6);
  --line:      rgba(52,211,153,.14);
  --line-hi:   rgba(52,211,153,.32);
  --t-hi:      #ecfdf5;
  --t-mid:     rgba(236,253,245,.74);
  --t-lo:      rgba(236,253,245,.42);
  --t-em:      #6ee7b7;
}

/* ── Reset — triệt để chống theme override ────────────────────────────────── */
.lb2-shell *, .lb2-shell *::before, .lb2-shell *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  line-height: normal;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Reset button hoàn toàn — chống hello-elementor reset.css */
.lb2-shell button {
  all: unset;
  box-sizing: border-box;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: normal;
}

/* Reset canvas — chống theme set height: auto */
.lb2-shell canvas {
  display: block;
  height: auto;
  max-width: none;
}

/* Reset img nếu có */
.lb2-shell img {
  max-width: none;
  height: auto;
}

/* Reset list */
.lb2-shell ul, .lb2-shell ol, .lb2-shell li {
  list-style: none;
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
}

/* Reset table */
.lb2-shell table { border-collapse: collapse; font-size: inherit; margin: 0; width: auto; }
.lb2-shell td, .lb2-shell th { border: 0; padding: 0; line-height: inherit; background: transparent; }

/* ── Shell ────────────────────────────────────────────────────────────────── */
.lb2-shell {
  position: relative;
  width: 100%; max-width: 860px;
  height: min(82vh, 720px); min-height: 460px;
  margin: 0 auto; display: block;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border-radius: 0; overflow: hidden;
  font-family: Quicksand, system-ui, sans-serif;
  color: var(--t-hi);
  -webkit-font-smoothing: antialiased;
  box-shadow:
    0 0 0 1px rgba(52,211,153,.08),
    0 30px 80px rgba(0,0,0,.65),
    0 0 120px rgba(52,211,153,.08);
}

/* ── Layer ────────────────────────────────────────────────────────────────── */
.lb2-layer {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
}
.lb2-layer.is-active  { display: flex; }
.lb2-layer.is-hidden  { opacity: 0; pointer-events: none; }

/* Shared screen enter animation */
.lb2-layer:not(.is-hidden) {
  animation: lb2ScrnIn .38s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes lb2ScrnIn {
  from { opacity: 0; transform: translateY(8px) scale(.994); }
  to   { opacity: 1; transform: none; }
}

/* ── Aurora canvas BG (shared) ────────────────────────────────────────────── */
.lb2-home-canvas {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  z-index: 0; pointer-events: none;
}

/* Faint grid overlay (reused on home + select) */
.lb2-grid-lines {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    linear-gradient(rgba(52,211,153,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52,211,153,.055) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(120% 80% at 50% 40%, #000 30%, transparent 80%);
}

/* ════════════════════════════════════════════════════════════════════════════
   HOME SCREEN
════════════════════════════════════════════════════════════════════════════ */
.lb2-home {
  z-index: 10;
  flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 40px 80px;
  text-align: center;
  background: transparent;
}

.lb2-home-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 0;
  background: transparent !important;
}

/* Logo icon — animated waveform bars */
.lb2-logo { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 5; background: transparent !important; }

.lb2-logo-icon {
  display: flex; align-items: flex-end; gap: 5px;
  height: 56px; margin-bottom: 14px;
  background: transparent !important;
}
.lb2-logo-icon i {
  display: block; width: 9px; border-radius: 4px;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--emerald) 100%);
  box-shadow: 0 0 14px rgba(52,211,153,.7), 0 0 4px rgba(34,211,238,.9);
  animation: lb2Bar 1.3s cubic-bezier(.5,0,.5,1) infinite alternate;
  transform-origin: bottom;
}
.lb2-logo-icon i:nth-child(1) { height: 28px; animation-delay:  0.0s; }
.lb2-logo-icon i:nth-child(2) { height: 48px; animation-delay: -0.3s; }
.lb2-logo-icon i:nth-child(3) { height: 36px; animation-delay: -0.6s; }
.lb2-logo-icon i:nth-child(4) { height: 54px; animation-delay: -0.9s; }
@keyframes lb2Bar {
  from { transform: scaleY(.5);  }
  to   { transform: scaleY(1.1); }
}

.lb2-logo-title {
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 900; letter-spacing: -.01em; line-height: .95;
  margin: 0; padding: 0;
  background: linear-gradient(95deg, var(--emerald) 0%, var(--teal) 45%, var(--cyan) 100%) !important;
  -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: drop-shadow(0 0 30px rgba(52,211,153,.2));
  border: none !important; box-shadow: none !important;
}
.lb2-logo-sub {
  font-size: 11px; font-weight: 700; letter-spacing: .45em;
  color: rgba(236,253,245,.5) !important; margin-top: 14px; text-transform: uppercase;
  background: transparent !important; border: none !important;
}

/* Divider line under logo */
.lb2-logo::after {
  content: '';
  display: block; width: 220px; height: 1px; margin-top: 18px;
  background: linear-gradient(90deg, transparent, var(--emerald) 30%, var(--cyan) 70%, transparent);
  box-shadow: 0 0 10px rgba(52,211,153,.55);
}

/* Play button */
.lb2-play-btn {
  all: unset;
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  margin-top: 36px; margin-bottom: 0;
  padding: 26px 90px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #34d399 0%, #22d3ee 100%) !important;
  color: #022c22 !important;
  font-size: 48px; font-weight: 900; letter-spacing: .14em;
  -webkit-text-stroke: 0.5px rgba(0,0,0,.15);
  box-shadow:
    0 0 0 1px rgba(52,211,153,.25),
    0 8px 32px rgba(45,212,191,.5),
    0 0 60px rgba(52,211,153,.35),
    0 0 100px rgba(34,211,238,.2),
    inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .22s;
  border: none !important;
  text-align: center; cursor: pointer;
  white-space: nowrap;
}
.lb2-play-btn::before {
  content: '▶  PLAY';
  font-size: inherit; font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.lb2-play-btn::after {
  content: none;
}
.lb2-play-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 0 0 1px rgba(52,211,153,.4),
    0 12px 40px rgba(45,212,191,.65),
    0 0 80px rgba(52,211,153,.55),
    0 0 130px rgba(34,211,238,.3),
    inset 0 1px 0 rgba(255,255,255,.55);
}
.lb2-play-btn:active { transform: translateY(0) scale(.97); }

/* Waveform bottom decoration */
.lb2-home-wave {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 5px;
  height: 80px; pointer-events: none; z-index: 2;
}
.lb2-home-wave i {
  display: block; width: 7px; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--emerald) 100%);
  box-shadow: 0 0 10px rgba(52,211,153,.5);
  animation: lb2WaveBar 1.2s cubic-bezier(.5,0,.5,1) infinite alternate;
  transform-origin: bottom; opacity: .8;
}
/* 16 bars với heights và delays đa dạng như ảnh mẫu */
.lb2-home-wave i:nth-child(1)  { height: 28px; animation-delay: 0.0s;  animation-duration: 1.1s; }
.lb2-home-wave i:nth-child(2)  { height: 42px; animation-delay: -0.15s; animation-duration: 0.9s; }
.lb2-home-wave i:nth-child(3)  { height: 55px; animation-delay: -0.3s;  animation-duration: 1.3s; }
.lb2-home-wave i:nth-child(4)  { height: 36px; animation-delay: -0.45s; animation-duration: 1.0s; }
.lb2-home-wave i:nth-child(5)  { height: 64px; animation-delay: -0.6s;  animation-duration: 1.2s; }
.lb2-home-wave i:nth-child(6)  { height: 48px; animation-delay: -0.75s; animation-duration: 0.85s; }
.lb2-home-wave i:nth-child(7)  { height: 70px; animation-delay: -0.9s;  animation-duration: 1.15s; }
.lb2-home-wave i:nth-child(8)  { height: 56px; animation-delay: -1.05s; animation-duration: 1.05s; }
.lb2-home-wave i:nth-child(9)  { height: 62px; animation-delay: -1.2s;  animation-duration: 0.95s; }
.lb2-home-wave i:nth-child(10) { height: 44px; animation-delay: -1.35s; animation-duration: 1.25s; }
.lb2-home-wave i:nth-child(11) { height: 72px; animation-delay: -1.5s;  animation-duration: 1.1s; }
.lb2-home-wave i:nth-child(12) { height: 50px; animation-delay: -1.65s; animation-duration: 0.9s; }
.lb2-home-wave i:nth-child(13) { height: 38px; animation-delay: -1.8s;  animation-duration: 1.3s; }
.lb2-home-wave i:nth-child(14) { height: 58px; animation-delay: -1.95s; animation-duration: 1.0s; }
.lb2-home-wave i:nth-child(15) { height: 30px; animation-delay: -2.1s;  animation-duration: 0.8s; }
.lb2-home-wave i:nth-child(16) { height: 20px; animation-delay: -2.25s; animation-duration: 1.15s; }
@keyframes lb2WaveBar {
  from { transform: scaleY(.2); opacity: .5; }
  to   { transform: scaleY(1);  opacity: .9; }
}

/* Hint text — nằm dưới waveform, absolute bottom */
.lb2-home-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 600; letter-spacing: .2em;
  color: rgba(236,253,245,.4); text-transform: uppercase; white-space: nowrap; z-index: 3;
  display: flex; align-items: center; gap: 5px;
  margin: 0;
}
.lb2-hint-keyboard kbd {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 9px; margin: 0 1px;
  border-radius: 6px;
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3);
  color: var(--emerald); font-family: inherit; font-size: 11px; font-weight: 800;
  letter-spacing: .05em;
  box-shadow: 0 0 8px rgba(52,211,153,.15);
}
/* Desktop: hide touch hint */
.lb2-hint-touch { display: none !important; }
@media (hover: none) and (pointer: coarse) {
  .lb2-hint-touch    { display: flex !important; }
  .lb2-hint-keyboard { display: none !important; }
}

/* Nốt Nhạc coin chip — top left (shared home + game) */
.lb2-coin-chip {
  position: absolute; top: 14px; left: 14px;
  display: flex; align-items: center; gap: 7px;
  padding: 7px 13px 7px 10px;
  border-radius: 999px;
  background: var(--bg-glass);
  border: 1px solid rgba(251,191,36,.35);
  color: var(--fever);
  font-weight: 700; font-size: 13px; letter-spacing: .03em;
  z-index: 30; backdrop-filter: blur(8px);
  box-shadow: 0 0 16px rgba(251,191,36,.1);
}

/* ════════════════════════════════════════════════════════════════════════════
   SELECT SCREEN
════════════════════════════════════════════════════════════════════════════ */
.lb2-select {
  z-index: 15;
  flex-direction: column; align-items: stretch; justify-content: flex-start;
  background: linear-gradient(180deg, rgba(5,15,10,.98) 0%, rgba(4,8,14,.99) 100%);
}

/* BG grid overlay on select */
.lb2-select::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(52,211,153,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52,211,153,.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(120% 60% at 50% 0%, #000 25%, transparent 75%);
}

.lb2-select-header {
  flex-shrink: 0; position: relative; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px 13px;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid var(--line);
}
.lb2-select-title {
  flex: 1; text-align: center;
  font-size: 18px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Sort bar ──────────────────────────────────────────────────────────────── */
.lb2-sort-bar {
  flex-shrink: 0; position: relative; z-index: 5;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px 16px 11px;
  background: rgba(0,0,0,.2);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
/* Separator between text sort and BPM group */
.lb2-sort-sep { flex: 1; }

/* BPM badge-group */
.lb2-sort-group--bpm {
  display: flex; flex-wrap: nowrap; gap: 4px; align-items: center;
  padding: 3px 5px;
  background: rgba(8,14,22,.55);
  border: 1px solid rgba(251,191,36,.18);
  border-radius: 999px;
}
.lb2-shell .lb2-sort-group--bpm .lb2-sort-btn {
  border: none !important; background: transparent !important; padding: 5px 10px !important;
  box-shadow: none !important;
}
.lb2-shell .lb2-sort-group--bpm .lb2-sort-btn.is-active {
  background: rgba(251,191,36,.18) !important; color: #fbbf24 !important;
  border: none !important; box-shadow: 0 0 10px rgba(251,191,36,.2) !important;
}
.lb2-shell .lb2-sort-btn {
  padding: 7px 16px !important; border-radius: 999px !important;
  border: 1.5px solid rgba(52,211,153,.35) !important;
  background: rgba(8,18,14,.6) !important;
  color: rgba(236,253,245,.74) !important;
  font-family: inherit !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .04em !important;
  transition: all .15s !important; cursor: pointer !important;
  box-shadow: none !important;
  outline: none !important;
  display: inline-flex !important; align-items: center !important;
}
.lb2-shell .lb2-sort-btn:hover {
  color: #6ee7b7 !important;
  border-color: rgba(52,211,153,.65) !important;
  background: rgba(8,24,16,.85) !important;
}
.lb2-shell .lb2-sort-btn.is-active {
  background: linear-gradient(135deg, rgba(52,211,153,.22), rgba(34,211,238,.15)) !important;
  border-color: #34d399 !important;
  color: #34d399 !important;
  box-shadow: 0 0 16px rgba(52,211,153,.3) !important;
}
.lb2-shell .lb2-sort-bpm { font-size: 15px !important; padding: 5px 10px !important; }
.lb2-shell .lb2-sort-bpm.is-active {
  background: rgba(251,191,36,.14) !important;
  color: #fbbf24 !important;
  border-color: rgba(251,191,36,.5) !important;
  box-shadow: 0 0 12px rgba(251,191,36,.2) !important;
}

/* ── Song list ─────────────────────────────────────────────────────────────── */
.lb2-song-list {
  flex: 1; overflow-y: auto; position: relative; z-index: 5;
  padding: 10px 18px 18px;
  display: flex; flex-direction: column; gap: 7px;
  scrollbar-width: thin; scrollbar-color: rgba(52,211,153,.28) transparent;
}
.lb2-song-list::-webkit-scrollbar { width: 5px; }
.lb2-song-list::-webkit-scrollbar-thumb { background: rgba(52,211,153,.28); border-radius: 3px; }

/* Song card */
.lb2-song-card {
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: grid !important;
  grid-template-columns: 48px 1fr 64px 44px;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 11px 16px 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(52,211,153,.09) !important;
  background: linear-gradient(90deg, rgba(8,22,18,.72) 0%, rgba(4,12,16,.72) 100%) !important;
  cursor: pointer;
  overflow: hidden;
  color: #ecfdf5 !important;
  width: 100%;
  line-height: normal;
  transition: transform .18s cubic-bezier(.2,.7,.2,1), background .15s, border-color .15s;
}
/* Left accent bar — slides in on hover */
.lb2-song-card::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(52,211,153,.6);
  transform: translateX(-6px);
  transition: transform .2s cubic-bezier(.2,.7,.2,1);
}
.lb2-song-card:hover {
  transform: translateX(4px);
  border-color: rgba(52,211,153,.26);
  background: linear-gradient(90deg, rgba(12,36,28,.88) 0%, rgba(6,16,22,.88) 100%);
}
.lb2-song-card:hover::before { transform: translateX(0); }
.lb2-song-card.is-locked { opacity: .28; cursor: default; pointer-events: none; }

/* Album art canvas */
.lb2-song-cover-canvas {
  width: 48px !important; height: 48px !important;
  min-width: 48px; min-height: 48px;
  max-width: 48px; max-height: 48px;
  flex-shrink: 0; border-radius: 10px; display: block !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 4px 12px rgba(0,0,0,.35);
}

.lb2-song-info { min-width: 0; overflow: hidden; }
.lb2-song-title {
  font-size: 14px; font-weight: 700; color: #ecfdf5 !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25;
}
.lb2-song-artist {
  font-size: 11px; font-weight: 600; color: #6ee7b7 !important;
  opacity: 1; margin-top: 3px; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Stars column (E/N/H pips) */
.lb2-song-diff-stars {
  display: flex; flex-direction: column; gap: 4px;
  flex-shrink: 0; align-self: center;
  border-left: 1px solid rgba(52,211,153,.14); padding-left: 8px;
  overflow: hidden;
}
.lb2-diff-stars-row { display: flex; align-items: center; gap: 5px; }
.lb2-dsr-label {
  font-size: 9px; font-weight: 900; letter-spacing: .08em;
  width: 12px; text-align: center; flex-shrink: 0;
}
.lb2-dsr-is-easy   .lb2-dsr-label { color: #4ade80 !important; }
.lb2-dsr-is-normal .lb2-dsr-label { color: #38bdf8 !important; }
.lb2-dsr-is-hard   .lb2-dsr-label { color: #f472b6 !important; }

/* Pip-style stars (squares instead of unicode) */
.lb2-diff-stars-row .pips { display: flex; gap: 2px; }
.lb2-diff-stars-row .pips i {
  display: block; width: 6px; height: 6px; border-radius: 2px;
  background: rgba(236,253,245,.08);
}
.lb2-diff-stars-row .pips i.on {
  background: var(--fever);
  box-shadow: 0 0 5px rgba(251,191,36,.7);
}

/* BPM column */
.lb2-song-bpm {
  flex-shrink: 0; align-self: center; text-align: right;
  color: #fbbf24 !important; font-weight: 800; letter-spacing: .02em;
  overflow: hidden;
}
.lb2-song-bpm .n { font-size: 15px; line-height: 1; display: block; color: #fbbf24 !important; }
.lb2-song-bpm-label, .lb2-song-bpm .u {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  color: rgba(251,191,36,.55) !important; text-transform: uppercase; display: block;
}
.lb2-song-badge {
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px; padding: 3px 6px; flex-shrink: 0;
  grid-column: 4; align-self: center; /* cột BPM, không tạo col mới */
}

/* ── Diff picker overlay ──────────────────────────────────────────────────── */
.lb2-diff-panel {
  position: absolute; inset: 0; z-index: 60;
  display: grid !important; place-items: center;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  animation: lb2ScrnIn .25s cubic-bezier(.2,.7,.2,1) both;
}
.lb2-diff-panel.is-hidden { opacity: 0 !important; pointer-events: none; animation: none; }

.lb2-diff-inner {
  width: min(500px, 94%); padding: 36px 32px 28px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(6,20,14,.97), rgba(4,10,20,.99));
  border: 1px solid rgba(52,211,153,.28);
  box-shadow: 0 40px 100px rgba(0,0,0,.75), 0 0 80px rgba(52,211,153,.12), 0 0 0 1px rgba(52,211,153,.06);
  display: flex !important; flex-direction: column; align-items: center; gap: 0;
  text-align: center; position: relative; overflow: hidden;
}
.lb2-diff-inner::before {
  content: ''; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald), var(--cyan), transparent);
  box-shadow: 0 0 12px rgba(52,211,153,.7);
}

/* Header label */
.lb2-diff-panel-label {
  font-size: 10px; font-weight: 700; letter-spacing: .4em;
  color: rgba(236,253,245,.38); margin-bottom: 12px; text-transform: uppercase;
}

/* Song name */
.lb2-diff-song-name {
  font-size: 28px; font-weight: 900; color: #ecfdf5 !important; line-height: 1.2;
  margin-bottom: 6px; padding: 0 8px;
}

/* Artist + BPM under song name */
.lb2-diff-song-meta {
  font-size: 12px; font-weight: 700; letter-spacing: .2em;
  color: #6ee7b7; opacity: .7; margin-bottom: 28px; text-transform: uppercase;
}

/* Diff rows — click để chơi luôn */
.lb2-diff-btns { display: flex !important; flex-direction: column; gap: 12px; width: 100%; margin-bottom: 22px; }

.lb2-diff-btn {
  all: unset;
  box-sizing: border-box !important;
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 20px 24px !important;
  min-height: 72px !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.025) !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: transform .15s, box-shadow .18s, background .15s !important;
}
/* Specificity cao hơn .lb2-shell button (0,2,0 > 0,1,1) */
.lb2-shell .lb2-diff-btns .lb2-diff-btn {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 20px 24px !important;
  min-height: 72px !important;
  border-radius: 18px !important;
  width: 100% !important;
  background: rgba(255,255,255,.025) !important;
}
.lb2-diff-btn:hover { transform: translateX(4px) !important; }

/* Label tên độ khó — bên trái */
.lb2-diff-btn .lb2-diff-label {
  font-size: 22px !important; font-weight: 900 !important; letter-spacing: .06em !important;
  flex: 1 !important; text-align: left !important;
}

.lb2-diff-btn[data-diff="1"] { border: 1px solid rgba(74,222,128,.4) !important; }
.lb2-diff-btn[data-diff="1"] .lb2-diff-label { color: #4ade80 !important; }
.lb2-diff-btn[data-diff="1"]:hover { background: rgba(74,222,128,.1); box-shadow: 0 0 28px rgba(74,222,128,.25); }

.lb2-diff-btn[data-diff="2"] { border: 1px solid rgba(56,189,248,.4) !important; }
.lb2-diff-btn[data-diff="2"] .lb2-diff-label { color: #38bdf8 !important; }
.lb2-diff-btn[data-diff="2"]:hover { background: rgba(56,189,248,.1); box-shadow: 0 0 28px rgba(56,189,248,.25); }

.lb2-diff-btn[data-diff="3"] { border: 1px solid rgba(244,114,182,.4) !important; }
.lb2-diff-btn[data-diff="3"] .lb2-diff-label { color: #f472b6 !important; }
.lb2-diff-btn[data-diff="3"]:hover { background: rgba(244,114,182,.1); box-shadow: 0 0 28px rgba(244,114,182,.25); }

/* Phần bên phải: pips + BEST·★ cùng 1 hàng */
.lb2-diff-right {
  display: flex !important; flex-direction: row !important; align-items: center !important;
  gap: 10px !important; flex-shrink: 0 !important;
}

/* Pips */
.lb2-diff-btn .diff-pips { display: flex !important; gap: 4px; align-items: center; }
.lb2-diff-btn .diff-pips i { display: block; width: 10px; height: 28px; border-radius: 4px; background: rgba(236,253,245,.08); }
.lb2-diff-btn[data-diff="1"] .diff-pips i.on { background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,.8); }
.lb2-diff-btn[data-diff="2"] .diff-pips i.on { background: #38bdf8; box-shadow: 0 0 8px rgba(56,189,248,.8); }
.lb2-diff-btn[data-diff="3"] .diff-pips i.on { background: #f472b6; box-shadow: 0 0 8px rgba(244,114,182,.8); }

/* BEST · ★★★ */
.lb2-diff-best {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  color: rgba(236,253,245,.45); white-space: nowrap; text-transform: uppercase;
}
.lb2-diff-best .lb2-best-stars { font-size: 14px; letter-spacing: 2px; color: rgba(251,191,36,.25); }
.lb2-diff-best .lb2-best-stars.has-stars { color: #fbbf24; text-shadow: 0 0 8px rgba(251,191,36,.6); }
.lb2-diff-unplayed {
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  color: rgba(236,253,245,.28); white-space: nowrap; text-transform: uppercase;
}

/* Nút Huỷ */
.lb2-diff-actions { display: flex !important; justify-content: center; width: 100%; margin-top: 8px; }
.lb2-diff-start { display: none !important; }
.lb2-shell .lb2-diff-actions .lb2-diff-cancel {
  padding: 14px 56px !important; border-radius: 999px !important;
  background: transparent !important; color: #6ee7b7 !important;
  font-family: inherit !important; font-size: 15px !important; font-weight: 700 !important;
  letter-spacing: .08em !important;
  border: 1.5px solid rgba(52,211,153,.38) !important;
  transition: all .2s !important; cursor: pointer !important;
  box-shadow: 0 0 0 0 rgba(52,211,153,0) !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
}
.lb2-shell .lb2-diff-actions .lb2-diff-cancel:hover {
  background: rgba(52,211,153,.08) !important;
  border-color: rgba(52,211,153,.75) !important;
  box-shadow: 0 0 22px rgba(52,211,153,.22) !important;
  color: #34d399 !important;
}

/* ── Back / icon button (shared) ──────────────────────────────────────────── */
.lb2-back-btn {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px;
  background: var(--bg-glass); color: var(--t-em);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(52,211,153,.22); font-size: 14px;
  backdrop-filter: blur(8px); transition: all .15s;
}
.lb2-back-btn:hover {
  border-color: var(--emerald); color: var(--emerald);
  box-shadow: 0 0 18px rgba(52,211,153,.3);
}

/* ════════════════════════════════════════════════════════════════════════════
   GAME SCREEN  — canvas fills shell, HUD floats on top
   (Keep this section minimal — canvas handles the visual heavy-lifting)
════════════════════════════════════════════════════════════════════════════ */
.lb2-game { z-index: 20; padding: 0; }

.lb2-game-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block; touch-action: none;
}

/* HUD top */
.lb2-hud-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 4;
  pointer-events: none;
  padding: 12px 56px 0 16px;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto auto;
  gap: 12px; align-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 100%);
}
.lb2-hud-top .lb2-back-btn,
.lb2-hud-top .lb2-fullscreen-hud { pointer-events: auto; }

.lb2-hud-progress {
  height: 8px; border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(52,211,153,.12);
  overflow: hidden;
}
.lb2-hud-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(52,211,153,.65), 0 0 4px rgba(34,211,238,.9);
  transition: width .08s linear;
}

.lb2-hud-score {
  font-size: clamp(1.1rem,3.5vw,1.6rem); font-weight: 900;
  color: #fff; text-shadow: 0 0 14px rgba(52,211,153,.7);
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.lb2-hud-time {
  font-size: clamp(.75rem,2vw,.95rem); font-weight: 700;
  color: var(--t-em); letter-spacing: .06em;
  font-variant-numeric: tabular-nums; pointer-events: none; flex-shrink: 0;
}
.lb2-hud-acc {
  font-size: clamp(.7rem,2vw,.88rem); font-weight: 800;
  color: var(--emerald); letter-spacing: .04em;
  pointer-events: none; flex-shrink: 0;
  text-shadow: 0 0 10px rgba(52,211,153,.5);
}
.lb2-hud-notes {
  display: flex; align-items: center; gap: 4px;
  font-size: clamp(.68rem,2vw,.82rem); font-weight: 800;
  color: var(--fever); text-shadow: 0 0 10px rgba(251,191,36,.5);
  letter-spacing: .02em; font-variant-numeric: tabular-nums;
  pointer-events: none; flex-shrink: 0;
  background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.25);
  border-radius: 999px; padding: 3px 8px;
  backdrop-filter: blur(6px);
}

/* Combo + judge centre */
.lb2-hud-centre {
  position: absolute; top: 30%; left: 50%;
  transform: translateX(-50%) translateY(-50%);
  text-align: center; pointer-events: none; z-index: 4;
}
.lb2-combo-number {
  font-size: clamp(3rem,10vw,6.25rem); font-weight: 900; line-height: .9;
  background: linear-gradient(180deg, #fff 0%, #6ee7b7 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(52,211,153,.6));
  display: block; min-width: 3ch; text-align: center;
  font-variant-numeric: tabular-nums;
  transition: transform .12s cubic-bezier(.34,1.56,.64,1);
}
.lb2-combo-number.fever {
  background: linear-gradient(180deg, #fff8e1 0%, #fbbf24 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 28px rgba(251,191,36,.7));
}
.lb2-judge {
  font-size: clamp(.9rem,3vw,1.4rem); font-weight: 900;
  letter-spacing: .15em; text-transform: uppercase;
  text-shadow: 0 0 16px currentColor;
  animation: lb2JudgePop .4s cubic-bezier(.2,.7,.2,1) both;
  white-space: nowrap; margin-top: 4px; pointer-events: none;
}
@keyframes lb2JudgePop {
  0%   { opacity: 0; transform: translateY(6px) scale(.7); }
  40%  { opacity: 1; transform: scale(1.06); }
  100% { opacity: 0; transform: translateY(-6px) scale(1); }
}
.lb2-judge.is-perfect { color: #4ade80; }
.lb2-judge.is-great   { color: #22d3ee; }
.lb2-judge.is-good    { color: #facc15; }
.lb2-judge.is-miss    { color: #64748b; }

/* Hit zone (invisible tap targets over canvas) */
.lb2-hit-zone {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 22%; display: flex; z-index: 5;
  pointer-events: auto; touch-action: none;
}
.lb2-hit-key {
  flex: 1; position: relative; background: transparent; border: 0;
  -webkit-tap-highlight-color: transparent; user-select: none; outline: none;
  touch-action: none; cursor: pointer;
  /* Lane separator */
  border-right: 1px solid rgba(255,255,255,.04);
  /* Lane glow from bottom — màu tương ứng từng lane */
  background: linear-gradient(to top, var(--_lane-glow, rgba(56,189,248,.08)) 0%, transparent 70%);
  transition: background .1s;
}
.lb2-hit-key:last-child { border-right: 0; }
/* Lane màu sắc từng key */
.lb2-hit-key[data-lane="0"] { --_lane-glow: rgba(56,189,248,.12); }   /* cyan */
.lb2-hit-key[data-lane="1"] { --_lane-glow: rgba(74,222,128,.12); }   /* green */
.lb2-hit-key[data-lane="2"] { --_lane-glow: rgba(250,204,21,.10); }   /* yellow */
.lb2-hit-key[data-lane="3"] { --_lane-glow: rgba(244,114,182,.12); }  /* pink */
/* Active/tap flash */
.lb2-hit-key[data-lane="0"]:active { background: rgba(56,189,248,.22); box-shadow: 0 0 24px rgba(56,189,248,.35) inset; }
.lb2-hit-key[data-lane="1"]:active { background: rgba(74,222,128,.20); box-shadow: 0 0 24px rgba(74,222,128,.32) inset; }
.lb2-hit-key[data-lane="2"]:active { background: rgba(250,204,21,.18); box-shadow: 0 0 24px rgba(250,204,21,.28) inset; }
.lb2-hit-key[data-lane="3"]:active { background: rgba(244,114,182,.20); box-shadow: 0 0 24px rgba(244,114,182,.32) inset; }

/* Fever vignette */
.lb2-fever-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 6;
  box-shadow:
    inset 0 0 40px rgba(251,191,36,.45),
    inset 0 0 120px rgba(251,191,36,.22);
  animation: lb2FeverPulse 1.1s ease-in-out infinite alternate;
  opacity: 0; transition: opacity .35s;
}
.lb2-fever-vignette.on { opacity: 1; }
@keyframes lb2FeverPulse {
  from { box-shadow: inset 0 0 40px rgba(251,191,36,.38), inset 0 0 120px rgba(251,191,36,.15); }
  to   { box-shadow: inset 0 0 60px rgba(251,191,36,.58), inset 0 0 180px rgba(251,191,36,.3); }
}

/* Fade-out overlay end of song */
.lb2-game-canvas + .lb2-fade-overlay {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: var(--bg-1); opacity: 0; transition: opacity .05s linear;
}

/* ════════════════════════════════════════════════════════════════════════════
   RESULT SCREEN
════════════════════════════════════════════════════════════════════════════ */
.lb2-result {
  z-index: 30; padding: 24px;
  background: radial-gradient(ellipse at 50% 0%, rgba(16,185,129,.1) 0%, rgba(4,10,8,.97) 55%);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}

.lb2-result-card {
  position: relative;
  width: min(500px, 100%); max-height: 100%;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(8,22,18,.9), rgba(4,12,22,.95));
  border: 1px solid rgba(52,211,153,.18);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 80px rgba(52,211,153,.12);
  padding: 26px 28px 22px;
  overflow: hidden; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
  animation: lb2CardIn .5s cubic-bezier(.2,.7,.2,1) both;
  scrollbar-width: thin; scrollbar-color: rgba(52,211,153,.2) transparent;
}
@keyframes lb2CardIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
/* Top shimmer line */
.lb2-result-card::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--emerald), var(--cyan), transparent);
  box-shadow: 0 0 14px rgba(52,211,153,.7);
}
/* Radial glow behind card */
.lb2-result-card::after {
  content: ''; position: absolute; inset: -50% -50% 55% -50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(52,211,153,.16), transparent 70%);
  pointer-events: none;
}
.lb2-result-card > * { position: relative; z-index: 1; }

.lb2-result-title {
  font-size: 28px; font-weight: 900; letter-spacing: .07em; margin: 4px 0 0;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(52,211,153,.4));
}
.lb2-result-song { font-size: 14px; font-weight: 700; color: var(--t-hi); }
.lb2-result-song-meta { font-size: 11px; color: var(--t-em); opacity: .6; letter-spacing: .14em; margin-top: 2px; }

/* Stars */
.lb2-result-stars { display: flex; justify-content: center; gap: 14px; }
.lb2-result-star {
  font-size: 2.6rem; color: rgba(255,255,255,.06);
  transition: color .35s, filter .35s;
  filter: drop-shadow(0 0 0px transparent);
}
.lb2-result-star.is-lit {
  color: var(--fever);
  filter: drop-shadow(0 0 10px rgba(251,191,36,.7)) drop-shadow(0 0 24px rgba(251,191,36,.45));
  animation: lb2StarPop .5s cubic-bezier(.2,.7,.2,1) both;
}
.lb2-result-star.is-lit:nth-child(1) { animation-delay: .12s; }
.lb2-result-star.is-lit:nth-child(2) { animation-delay: .32s; }
.lb2-result-star.is-lit:nth-child(3) { animation-delay: .52s; }
@keyframes lb2StarPop {
  0%   { opacity: 0; transform: scale(.25) rotate(-18deg); }
  50%  { opacity: 1; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

/* Score headline */
.lb2-result-score-wrap { line-height: 1; }
.lb2-result-score-num {
  font-size: clamp(2.4rem,8vw,3.5rem); font-weight: 900;
  color: #fff; text-shadow: 0 0 28px rgba(52,211,153,.5);
  letter-spacing: -.01em; font-variant-numeric: tabular-nums; display: block;
}
.lb2-result-score-lbl {
  font-size: 10px; font-weight: 800; letter-spacing: .28em;
  color: var(--t-em); opacity: .7; margin-top: 3px; display: block;
}

/* Stats grid */
.lb2-result-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 7px; width: 100%;
}
.lb2-result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 13px; border-radius: 10px;
  background: rgba(255,255,255,.028); border: 1px solid rgba(255,255,255,.055);
}
.lb2-result-row.full { grid-column: 1 / -1; background: rgba(52,211,153,.07); border-color: rgba(52,211,153,.2); }
.lb2-stat-label {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--t-lo);
}
.lb2-stat-score, .lb2-stat-max-combo, .lb2-stat-acc,
.lb2-stat-perfect, .lb2-stat-great, .lb2-stat-good, .lb2-stat-miss {
  font-size: 17px; font-weight: 800; color: var(--t-hi);
  font-variant-numeric: tabular-nums;
}
.lb2-stat-row-acc .lb2-stat-label { color: rgba(52,211,153,.6); }
.lb2-stat-acc { color: var(--emerald); text-shadow: 0 0 10px rgba(52,211,153,.5); }
.lb2-stat-row-perfect .lb2-stat-perfect { color: #4ade80; }
.lb2-stat-row-great   .lb2-stat-great   { color: #22d3ee; }
.lb2-stat-row-good    .lb2-stat-good    { color: #facc15; }
.lb2-stat-row-miss    .lb2-stat-miss    { color: #64748b; }

/* Nốt Nhạc coin row */
.lb2-coin-row {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 13px 16px;
  border-radius: 13px;
  background: linear-gradient(90deg, rgba(251,191,36,.1), rgba(251,191,36,.04));
  border: 1px solid rgba(251,191,36,.32);
}
.lb2-coin-row-lhs { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.lb2-coin-row-label {
  font-size: 10px; font-weight: 800; letter-spacing: .18em;
  color: var(--fever); text-transform: uppercase;
}
.lb2-stat-notes-total { font-size: 11px; font-weight: 700; color: rgba(251,191,36,.55); letter-spacing: .12em; }
.lb2-stat-notes-earned {
  font-size: 28px; font-weight: 900; color: var(--fever);
  text-shadow: 0 0 14px rgba(251,191,36,.65);
  font-variant-numeric: tabular-nums;
}
@keyframes lb2NotesPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5); color: #fff; text-shadow: 0 0 24px #fbbf24; }
  100% { transform: scale(1); }
}
.lb2-notes-pop { animation: lb2NotesPop .5s ease; }

/* Result action buttons */
.lb2-result-actions {
  display: flex; gap: 10px; width: 100%;
  justify-content: center; align-items: center;
}
.lb2-shell .lb2-retry-btn {
  flex: 0 1 auto !important; min-width: 150px !important;
  padding: 14px 30px !important; border-radius: 999px !important;
  background: linear-gradient(90deg, #34d399 0%, #22d3ee 100%) !important;
  color: #022c22 !important; font-family: inherit !important;
  font-size: 15px !important; font-weight: 900 !important; letter-spacing: .06em !important;
  display: inline-flex !important; align-items: center !important;
  justify-content: center !important; gap: 8px !important;
  text-align: center !important;
  border: 2px solid rgba(255,255,255,.35) !important;
  box-shadow:
    0 0 0 1px rgba(52,211,153,.3),
    0 6px 24px rgba(34,211,238,.5),
    0 0 50px rgba(52,211,153,.3),
    inset 0 1px 0 rgba(255,255,255,.4) !important;
  transition: transform .15s, box-shadow .2s !important;
  cursor: pointer !important;
}
.lb2-shell .lb2-retry-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 0 0 1px rgba(52,211,153,.5),
    0 10px 30px rgba(34,211,238,.65),
    0 0 70px rgba(52,211,153,.4),
    inset 0 1px 0 rgba(255,255,255,.5) !important;
}
.lb2-retry-icon { font-size: 18px; line-height: 1; }
.lb2-shell .lb2-result-actions .lb2-back-btn {
  flex: 0 1 auto !important; min-width: 110px !important;
  padding: 14px 22px !important; width: auto !important; height: auto !important;
  border-radius: 999px !important;
  font-size: 14px !important; font-weight: 700 !important; letter-spacing: .04em !important;
  text-align: center !important;
  background: rgba(8,22,14,.7) !important;
  color: #ecfdf5 !important;
  border: 1.5px solid rgba(255,255,255,.18) !important;
  transition: background .15s, border-color .15s, box-shadow .15s !important;
  cursor: pointer !important;
}
.lb2-shell .lb2-result-actions .lb2-back-btn:hover {
  background: rgba(52,211,153,.08) !important;
  border-color: rgba(52,211,153,.45) !important;
  box-shadow: 0 0 20px rgba(52,211,153,.2) !important;
}

/* ── Wrap ────────────────────────────────────────────────────────────────── */
.lb2-wrap {
  position: relative;
  width: 100%; max-width: 860px;
  margin: 0 auto;
}

/* ── Fullscreen button — 1 nút, nằm trong shell, luôn visible ──────────── */
.lb2-shell .lb2-fs-btn {
  all: unset !important;
  box-sizing: border-box !important;
  position: absolute !important;
  top: 12px !important; right: 12px !important;
  z-index: 9999 !important;
  width: 34px !important; height: 34px !important;
  border-radius: 9px !important;
  background: rgba(6,18,12,.82) !important;
  color: #34d399 !important;
  border: 1.5px solid rgba(52,211,153,.45) !important;
  cursor: pointer !important;
  display: grid !important; place-items: center !important;
  pointer-events: auto !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.45) !important;
  transition: background .15s, border-color .15s, box-shadow .15s !important;
}
.lb2-shell .lb2-fs-btn:hover {
  background: rgba(12,32,22,.95) !important;
  border-color: #34d399 !important;
  box-shadow: 0 0 16px rgba(52,211,153,.45), 0 2px 10px rgba(0,0,0,.4) !important;
}
.lb2-shell .lb2-fs-btn svg {
  width: 16px !important; height: 16px !important;
  display: block !important; pointer-events: none !important;
}
.lb2-shell .lb2-fs-btn .lb2-fs-compress { display: none !important; }

/* Fullscreen — fill viewport when browser enters fullscreen */
.lb2-shell.is-fullscreen,
.lb2-shell.is-pseudo-fullscreen,
:fullscreen .lb2-shell,
:-webkit-full-screen .lb2-shell,
:-moz-full-screen .lb2-shell {
  position: fixed !important; inset: 0 !important;
  width: 100vw !important; max-width: 100vw !important;
  height: 100dvh !important; min-height: unset !important;
  border-radius: 0 !important; z-index: 99999 !important;
}

/* Pseudo-fullscreen: scroll lock utility */
html.lynk-no-scroll, body.lynk-no-scroll {
  overflow: hidden !important; touch-action: none;
}

/* ════════════════════════════════════════════════════════════════════════════
   MOBILE
════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .lb2-shell { border-radius: 0; height: 100dvh; max-width: 100%; min-height: unset; }
  .lb2-logo-title { font-size: clamp(2.2rem, 13vw, 3.2rem); }
  .lb2-play-btn   { padding: 20px 60px !important; font-size: 32px; border-radius: 999px; }
  .lb2-hint-keyboard { display: none !important; }
  .lb2-hud-score  { font-size: 1.1rem; }
  .lb2-hud-notes  { display: none; }
  .lb2-combo-number { font-size: clamp(2.2rem,8vw,4rem); }
  .lb2-hit-zone   { height: clamp(90px, 26%, 130px); }
  .lb2-result-grid { grid-template-columns: 1fr; }
  .lb2-result-card { padding: 20px 16px 16px; gap: 11px; }
  .lb2-result-title { font-size: 22px; }
  .lb2-result-star  { font-size: 2rem; }
  .lb2-hud-top { padding: 8px 10px 0; gap: 7px; }
  .lb2-hud-time, .lb2-hud-acc { font-size: .68rem; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .lb2-shell { height: min(86vh, 680px); border-radius: 14px; }
}

