/* ===================================================================
   Vùng Đất Linh Thú — bộ nền dùng chung cho mọi trang
   Nhận diện lấy từ UI trong game: gỗ nâu đồng, giấy dó, hoa văn trống đồng Đông Sơn,
   chữ tròn dày viền nâu, nút vàng đồng / xanh ngọc.
   =================================================================== */

:root {
  --bronze-950: #140c06;
  --bronze-900: #1d120a;
  --bronze-850: #24170c;
  --bronze-800: #2c1c0f;
  --bronze-700: #3d2613;
  --bronze-600: #57361a;
  --bronze-500: #7a4f27;
  --bronze-400: #a3723c;

  --parch-50: #fcf7ec;
  --parch-100: #f5e9d1;
  --parch-200: #ebd7b3;
  --parch-300: #dcc196;
  --parch-400: #c29d6b;

  --gold: #f5b83d;
  --gold-hi: #ffd97a;
  --gold-deep: #c9831c;
  --jade: #86c63f;
  --jade-deep: #4f8a1f;
  --river: #35c6ee;
  --river-deep: #1a7fc4;
  --lacquer: #d24a2e;

  --el-fire: #f0512f;
  --el-grass: #45b246;
  --el-ground: #c08a45;
  --el-electric: #f2c418;
  --el-water: #2f90e4;
  --el-ice: #4fcad8;
  --el-flying: #8aa8f0;
  --el-steel: #99a4b0;

  /* tên biến cũ — các trang đăng nhập / nạp / tài khoản vẫn dùng */
  --bg: var(--bronze-900);
  --bg-2: #170e07;
  --surface: #2e1d10;
  --surface-2: #26180c;
  --ink: #120903;
  --text: #f7ecd8;
  --muted: #cdb38c;
  --line: rgba(245, 214, 160, 0.14);
  --grass: var(--jade);
  --fire: var(--lacquer);
  --accent: var(--gold);
  --accent-2: var(--gold-hi);
  --grad: linear-gradient(115deg, #ffe39a 0%, #f5b83d 45%, #e07a26 100%);

  --ol: 2px solid var(--ink);
  --shadow-cel: 0 5px 0 rgba(0, 0, 0, 0.35), 0 14px 28px rgba(0, 0, 0, 0.32);
  --shadow-cel-hover: 0 7px 0 rgba(0, 0, 0, 0.35), 0 18px 34px rgba(0, 0, 0, 0.4);

  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-head: "Baloo 2", "Be Vietnam Pro", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  --band-zigzag: url("../assets/brand/band-zigzag.svg?v=202610061208");
  --band-spiral: url("../assets/brand/band-spiral.svg?v=202610061208");
  --page-bg:
    radial-gradient(900px 520px at 85% -10%, rgba(245, 184, 61, 0.16), transparent 60%),
    radial-gradient(760px 520px at 0% 110%, rgba(53, 198, 238, 0.12), transparent 60%),
    url("../assets/brand/drum-faint.svg?v=202610061208") center 42% / min(1100px, 150vw) no-repeat,
    var(--bronze-900);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

a, button, [role="button"], input, label { -webkit-tap-highlight-color: transparent; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.grad-text {
  background: linear-gradient(180deg, #fff3c4 0%, var(--gold-hi) 38%, var(--gold) 70%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
  filter: drop-shadow(0 2px 0 rgba(58, 30, 8, 0.85));
}

/* ---------- Nút (theo nút trong game: viền nâu, mặt bóng, gờ dày phía dưới) ---------- */
.btn {
  --btn-edge: #6b3c12;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), filter 0.2s;
}
.btn-sm { padding: 9px 18px 7px; font-size: 14px; }
.btn-lg { padding: 15px 34px 13px; font-size: 18px; }

.btn-primary {
  background: linear-gradient(180deg, #ffe7a3 0%, #f7bf45 48%, #e58f22 100%);
  color: #3a1f08;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), inset 0 -3px 0 rgba(160, 80, 10, 0.35), 0 4px 0 var(--btn-edge), 0 10px 20px rgba(0, 0, 0, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), inset 0 -3px 0 rgba(160, 80, 10, 0.35), 0 6px 0 var(--btn-edge), 0 16px 26px rgba(0, 0, 0, 0.35); }
.btn-primary:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 1px 0 var(--btn-edge), 0 4px 8px rgba(0, 0, 0, 0.3); }

.btn-jade {
  --btn-edge: #2e5a0e;
  background: linear-gradient(180deg, #d2f28e 0%, #8fd045 50%, #5da426 100%);
  color: #183206;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.65), inset 0 -3px 0 rgba(30, 80, 10, 0.3), 0 4px 0 var(--btn-edge), 0 10px 20px rgba(0, 0, 0, 0.3);
}
.btn-jade:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.65), inset 0 -3px 0 rgba(30, 80, 10, 0.3), 0 6px 0 var(--btn-edge), 0 16px 26px rgba(0, 0, 0, 0.35); }
.btn-jade:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-edge), 0 4px 8px rgba(0, 0, 0, 0.3); }

.btn-ghost {
  --btn-edge: #7c5a33;
  background: linear-gradient(180deg, #fffaf0 0%, #f1e2c4 100%);
  color: #3d2613;
  box-shadow: inset 0 2px 0 #fff, 0 3px 0 var(--btn-edge), 0 8px 16px rgba(0, 0, 0, 0.22);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: inset 0 2px 0 #fff, 0 5px 0 var(--btn-edge), 0 12px 22px rgba(0, 0, 0, 0.28); }
.btn-ghost:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--btn-edge); }

.btn-shine {
  isolation: isolate;
  background: linear-gradient(115deg, #ffe7a3 0%, #ffd053 22%, #f5a524 45%, #ffe38a 62%, #f7b73a 80%, #ffe7a3 100%);
}
.btn-shine > span, .btn-shine > svg { position: relative; z-index: 2; }
.btn-shine .shine-clip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: 1; pointer-events: none; }
.btn-shine .shine-clip::before {
  content: "";
  position: absolute;
  top: -30%; bottom: -30%;
  left: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.95) 50%, transparent);
  transform: translateX(-155%) skewX(-22deg);
  animation: shineSweep 2.6s ease-in-out infinite;
}
.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 26px rgba(255, 200, 70, 0.85);
  opacity: 0;
  animation: shineGlow 2.2s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}
.btn-shine .spark {
  position: absolute;
  z-index: 3;
  width: 12px; height: 12px;
  background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 3px #fff6c0);
  opacity: 0;
  animation: twinkle 1.9s ease-in-out infinite;
  pointer-events: none;
}
.btn-shine .s1 { left: 14%; top: 14%; }
.btn-shine .s2 { right: 12%; top: 22%; width: 9px; height: 9px; animation-delay: 0.7s; }
.btn-shine .s3 { left: 58%; bottom: 14%; width: 8px; height: 8px; animation-delay: 1.25s; }
.coin-ico { width: 24px; height: 24px; margin: -3px 0 -3px -4px; filter: drop-shadow(0 1px 0 rgba(120, 60, 10, 0.6)); animation: coinSpin 2.6s ease-in-out infinite; }
.btn-sm .coin-ico { width: 20px; height: 20px; }
@keyframes shineGlow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes shineSweep { 0%, 50% { transform: translateX(-155%) skewX(-22deg); } 100% { transform: translateX(311%) skewX(-22deg); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); } 45% { opacity: 1; transform: scale(1.15) rotate(45deg); } 60% { opacity: 0.8; transform: scale(0.9) rotate(60deg); } }
@keyframes coinSpin { 0%, 70%, 100% { transform: rotateY(0deg); } 85% { transform: rotateY(180deg); } }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; filter: grayscale(0.3); }

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s, transform 0.35s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -9px;
  height: 9px;
  background: var(--band-zigzag) repeat-x left center / auto 100%;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.site-header.scrolled {
  background: linear-gradient(180deg, rgba(44, 28, 15, 0.97), rgba(29, 18, 10, 0.97));
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}
.site-header.scrolled::after { opacity: 1; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 74px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-logo {
  height: 58px;
  width: auto;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s var(--ease-back);
}
.brand:hover .brand-logo { transform: scale(1.06) rotate(-2deg); }
.brand-logo--footer { height: 96px; }

.main-nav { display: flex; gap: 2px; align-items: center; }
.main-nav a {
  position: relative;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  color: #fff8e8;
  text-shadow: 0 2px 0 rgba(40, 20, 6, 0.8), 0 0 10px rgba(0, 0, 0, 0.35);
  padding: 8px 12px 6px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 18px; height: 6px;
  margin-left: -9px;
  background: radial-gradient(circle, var(--gold-hi) 0 2.5px, transparent 3px) 0 0 / 6px 6px repeat-x;
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-back);
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-hi); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.main-nav .nav-mobile-only { display: none; }

/* ===================== AUTH NAV WIDGET ===================== */
.auth-slot { display: flex; align-items: center; }
.auth-links { display: flex; align-items: center; gap: 8px; }
.user-menu { position: relative; }
.user-menu-btn { gap: 6px; max-width: 210px; }
.user-menu-btn .user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; text-transform: none; }
.user-menu-btn .user-caret { font-size: 11px; }
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 220px;
  background: linear-gradient(180deg, var(--parch-50), var(--parch-100));
  border: 2px solid var(--bronze-700);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
  padding: 6px;
  display: none;
  z-index: 200;
}
.user-menu-dropdown::before {
  content: "";
  position: absolute;
  top: -8px; right: 26px;
  width: 14px; height: 14px;
  background: var(--parch-50);
  border-left: 2px solid var(--bronze-700);
  border-top: 2px solid var(--bronze-700);
  transform: rotate(45deg);
}
.user-menu-dropdown.open { display: block; animation: menuPop 0.22s var(--ease-back); }
@keyframes menuPop { from { opacity: 0; transform: translateY(-6px) scale(0.97); } to { opacity: 1; transform: none; } }
.user-menu-dropdown a,
.user-menu-dropdown button {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: none;
  color: var(--bronze-700);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.user-menu-dropdown a:hover,
.user-menu-dropdown button:hover { background: rgba(122, 79, 39, 0.14); color: var(--bronze-800); }
.user-menu-dropdown .menu-sep { height: 1px; background: rgba(61, 38, 19, 0.18); margin: 6px 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: rgba(29, 18, 10, 0.55);
  border: 2px solid rgba(255, 217, 122, 0.4);
  border-radius: 12px;
  cursor: pointer;
  padding: 0 9px;
}
.nav-toggle span {
  width: 100%; height: 3px;
  background: var(--gold-hi);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===================== NÚT KHO ỨNG DỤNG ===================== */
.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #3a2413 0%, #24160b 100%);
  border: 2px solid rgba(255, 217, 122, 0.35);
  min-width: 190px;
  box-shadow: inset 0 1px 0 rgba(255, 230, 170, 0.18), 0 4px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}
.store-btn:hover { transform: translateY(-3px); border-color: var(--gold-hi); box-shadow: inset 0 1px 0 rgba(255, 230, 170, 0.25), 0 6px 0 rgba(0, 0, 0, 0.35), 0 0 22px rgba(245, 184, 61, 0.35); }
.store-ico { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; }
.store-ico svg { width: 100%; height: 100%; display: block; }
.store-txt { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.store-txt small { font-size: 11px; color: #cdb38c; letter-spacing: 0.02em; }
.store-txt b { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: #fff4dc; letter-spacing: 0.01em; }

/* ===================== FOOTER ===================== */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--bronze-800), var(--bronze-950));
  color: var(--parch-200);
  padding-top: 72px;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 22px;
  background: var(--band-spiral) repeat-x left center / auto 100%, var(--bronze-700);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand p { color: #bfa47d; font-size: 14px; max-width: 340px; margin-top: 14px; }
.footer-col h4 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-hi);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: #d7c09c;
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.2s, transform 0.2s;
}
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom { border-top: 1px solid rgba(255, 217, 122, 0.14); padding: 22px 0 26px; }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: #a88e69; text-align: center; margin: 0; }
.company-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.company-logo { display: block; object-fit: contain; }
.company-logo--mark { height: 34px; }
.company-logo--word { height: 20px; }

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1120px) {
  .main-nav {
    position: fixed;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(180deg, rgba(44, 28, 15, 0.99), rgba(24, 15, 8, 0.99));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    padding: 14px 20px 22px;
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0s 0.4s;
    z-index: 90;
  }
  .main-nav.open { transform: translateY(0); visibility: visible; transition: transform 0.4s var(--ease); }
  .main-nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px dashed rgba(255, 217, 122, 0.2); font-size: 17px; }
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .nav-home { display: none; }
}
@media (max-width: 380px) {
  .nav-actions { gap: 6px; }
  .nav-actions .btn-sm { padding: 8px 11px 6px; font-size: 12.5px; }
  .brand-logo { height: 42px; }
  .nav-toggle { width: 40px; height: 40px; }
}
@media (max-width: 350px) {
  .nav-inner { gap: 8px; }
  .nav-actions { gap: 4px; }
  .nav-actions .btn-sm { padding: 7px 8px 5px; font-size: 11.5px; letter-spacing: 0; }
  .brand-logo { height: 38px; }
  .nav-toggle { width: 36px; height: 36px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .nav-inner { height: 66px; }
  .main-nav { top: 66px; }
  .brand-logo { height: 40px; }
  .btn-lg { padding: 14px 26px 12px; font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom-inner { flex-direction: column; gap: 14px; }
}

/* Tích xanh animation dùng chung (trang pay khi thanh toán thành công) */
.ok-check { display: inline-block; vertical-align: middle; line-height: 0; }
.ok-check .oc-circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.ok-check .oc-check { stroke-dasharray: 42; stroke-dashoffset: 42; }
.ok-check.animate .oc-circle { animation: ocCircle 0.5s ease forwards; }
.ok-check.animate .oc-check { animation: ocCheck 0.4s 0.45s ease forwards; }
@keyframes ocCircle { to { stroke-dashoffset: 0; } }
@keyframes ocCheck { to { stroke-dashoffset: 0; } }


/* ===================== NHẠC NỀN ===================== */
.bgm-btn {
  position: fixed;
  left: 18px; bottom: 18px;
  z-index: 500;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2.5px solid #2a190c;
  background: radial-gradient(circle at 35% 28%, #ffe7a3, #f2b23c 55%, #b86c14);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 4px 0 #6b3c12, 0 10px 22px rgba(0, 0, 0, 0.4);
  color: #3a1f08;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease-back), filter 0.2s;
}
.bgm-btn::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: url("../assets/brand/drum.svg?v=202610061208") center / contain no-repeat;
  opacity: 0.55;
  animation: spin 14s linear infinite;
  animation-play-state: paused;
  pointer-events: none;
}
.bgm-btn:hover { transform: translateY(-3px) scale(1.05); filter: brightness(1.06); }
.bgm-btn:active { transform: translateY(1px) scale(0.97); }
.bgm-ico { position: relative; width: 26px; height: 26px; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.bgm-ico .bgm-wave, .bgm-ico .bgm-x { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.bgm-ico .bgm-wave { display: none; }
.bgm-btn.is-on .bgm-ico .bgm-wave { display: inline; }
.bgm-btn.is-on .bgm-ico .bgm-x { display: none; }
.bgm-btn.is-on::before { animation-play-state: running; }
.bgm-bars { position: absolute; left: 50%; bottom: -16px; translate: -50% 0; display: flex; align-items: flex-end; gap: 3px; height: 12px; opacity: 0; transition: opacity 0.3s; }
.bgm-bars i { width: 4px; height: 12px; border-radius: 2px; background: var(--gold-hi); box-shadow: 0 0 6px rgba(255, 210, 90, 0.8); transform: scaleY(0.33); transform-origin: 50% 100%; }
.bgm-btn.is-on .bgm-bars { opacity: 1; }
.bgm-btn.is-on .bgm-bars i { animation: bgmBar 0.9s ease-in-out infinite; }
.bgm-btn.is-on .bgm-bars i:nth-child(2) { animation-delay: 0.15s; }
.bgm-btn.is-on .bgm-bars i:nth-child(3) { animation-delay: 0.3s; }
.bgm-btn.is-on .bgm-bars i:nth-child(4) { animation-delay: 0.45s; }
@keyframes bgmBar { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
.bgm-btn.is-waiting::after { content: ""; position: absolute; inset: -2.5px; border-radius: 50%; border: 3px solid rgba(255, 210, 90, 0.6); animation: bgmPulse 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes bgmPulse { 0% { transform: scale(1); opacity: 1; } 60%, 100% { transform: scale(1.45); opacity: 0; } }
.bgm-tip {
  position: absolute;
  left: calc(100% + 12px); top: 50%;
  translate: 0 -50%;
  padding: 6px 12px 5px;
  border-radius: 10px;
  background: #fffaf0;
  border: 2px solid #2a190c;
  box-shadow: 0 3px 0 #2a190c;
  font: 700 13px var(--font-body);
  color: var(--bronze-700);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
  transform: translateX(-6px);
}
.bgm-btn:hover .bgm-tip, .bgm-btn.is-waiting:not(.quiet) .bgm-tip { opacity: 1; transform: none; }
@media (max-width: 560px) {
  .bgm-btn { left: 12px; bottom: 12px; width: 48px; height: 48px; }
  .bgm-ico { width: 22px; height: 22px; }
}
