/* Sticker Claw (Lottery page) and the Sticker Book. */
.lsx-claw-modal .modal-content { background: #0b1026; color: #fff; }
.lsx-claw-modal .modal-header { border-color: #2a3263; }
.lsx-claw-modal .btn-close { filter: invert(1); }

.lsx-claw__stage { position: relative; }
.lsx-claw canvas { display: block; width: 100%; height: auto; border-radius: 12px; cursor: pointer; touch-action: manipulation; }
.lsx-claw__meters {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  gap: 4px;
  width: 170px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.75rem;
  font-weight: 800;
}
.lsx-claw__meters[hidden] { display: none; }
.lsx-claw__meters div { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 6px; }
.lsx-claw__meters i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.lsx-claw__meters b { display: block; height: 100%; background: #3ed9a4; transition: width 0.1s; }
.lsx-claw__meters b.mid { background: #facc15; }
.lsx-claw__meters b.bad { background: #f43f5e; }
.lsx-claw__meters b.heavy { background: #a78bfa; }

.lsx-claw__say { min-height: 1.5em; margin: 0.75rem 0 0.5rem; font-weight: 700; text-align: center; }
.lsx-claw__pad { display: flex; justify-content: center; gap: 0.75rem; }
.lsx-claw__pad .btn { min-width: 64px; padding: 0.75rem 1rem; font-size: 1.1rem; user-select: none; touch-action: none; }
.lsx-claw .lsx-claw__act {
  --bs-btn-bg: #22d3ee;
  --bs-btn-color: #0b1026;
  --bs-btn-hover-bg: #67e8f9;
  --bs-btn-hover-color: #0b1026;
  --bs-btn-active-bg: #22d3ee;
  min-width: 160px;
  font-weight: 800;
}
.lsx-claw__keys { margin: 0.75rem 0 0; color: #aab3d6; text-align: center; }
.lsx-claw__keys kbd { background: #2a3263; }

.lsx-sticker-book { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.75rem; }
.lsx-sticker { padding: 0.75rem 0.5rem; border-radius: 14px; background: var(--lsx-navy, #0b1026); color: #fff; text-align: center; }
.lsx-sticker__face {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 0.5rem;
  border: 4px solid var(--frame);
  border-radius: 50%;
  outline: 4px solid #fff;
  background: #fff;
  color: var(--ink);
  font-size: 2.6rem;
}
.lsx-sticker__name { font-weight: 800; font-size: 0.9rem; }
.lsx-sticker__tier { color: var(--frame); font-size: 0.75rem; font-weight: 800; }
.lsx-sticker.is-missing .lsx-sticker__face { background: #1e2547; outline-color: #2a3263; border-color: #2a3263; color: #0b1026; }
.lsx-sticker.is-missing .lsx-sticker__name { color: #64748b; }

/* Unopened packs and opening one. */
.lsx-pack-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.75rem; }
.lsx-pack {
  position: relative;
  padding: 0.9rem 0.5rem 0.75rem;
  border: 2px solid #fff;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--pack), #0b1026);
  color: #fff;
  text-align: center;
}
.lsx-pack > .lsx { font-size: 2.4rem; }
.lsx-pack__name { margin-top: 0.25rem; font-weight: 800; font-size: 0.85rem; }
.lsx-pack__times { position: absolute; top: 6px; right: 6px; padding: 0 6px; border-radius: 6px; background: #facc15; color: #0b1026; font-weight: 800; font-size: 0.8rem; }
.lsx-pack-reveal { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; min-height: 180px; }
.lsx-pack-reveal .lsx-sticker { width: 140px; }
.lsx-sticker--reveal { animation: lsx-sticker-in 0.5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes lsx-sticker-in { from { transform: scale(0) rotate(-20deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lsx-sticker--reveal { animation: none; } }

/* The Claw Machine page. */
.lsx-claw-box { padding: 1rem; border-radius: 16px; background: #0b1026; color: #fff; }
.lsx-claw-side { border: 2px solid #22d3ee; }
.lsx-token-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.lsx-claw-side .lsx-machine__list li { border-color: rgba(0, 0, 0, 0.08); }
.lsx-pack--new { animation: lsx-sticker-in 0.5s cubic-bezier(.2, 1.4, .4, 1) both; }

/* The Sticker Book, pack by pack. */
.lsx-sticker-book__pack { grid-column: 1 / -1; margin: 1rem 0 0; font-size: 1.1rem; font-weight: 800; }
.lsx-sticker__tier { text-shadow: 0 0 1px rgba(0, 0, 0, 0.6); }

/* Pets. */
.lsx-pet-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.75rem; }
.lsx-pet { padding: 0.9rem 0.5rem 0.75rem; border: 2px solid var(--pet-ring); border-radius: 16px; background: #0b1026; color: #fff; text-align: center; }
.lsx-pet.is-equipped { outline: 3px solid #22d3ee; outline-offset: 2px; }
.lsx-pet.is-mutated .lsx-pet__face { animation: lsx-pet-glow 1.6s ease-in-out infinite; }
.lsx-pet__face {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 0.5rem;
  border: 4px solid var(--pet-ring);
  border-radius: 50%;
  background: #fff;
  color: var(--pet-color);
  font-size: 2.6rem;
}
.lsx-pet__name { font-weight: 800; }
.lsx-pet__tier { color: var(--pet-ring); font-size: 0.75rem; font-weight: 800; }
.lsx-sticker--pet { outline: 3px solid #22d3ee; outline-offset: 2px; }
@keyframes lsx-pet-glow { 50% { box-shadow: 0 0 14px 4px var(--pet-glow, #ffd700); } }
@media (prefers-reduced-motion: reduce) { .lsx-pet.is-mutated .lsx-pet__face { animation: none; } }

/* Daily / every 5 minutes: tabs above the glass. */
.lsx-claw__tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.lsx-claw__tabs button { flex: 1; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #e2e8f0; border-radius: 12px 12px 4px 4px; padding: 8px 10px; font-weight: 800; }
.lsx-claw__tabs button:hover { background: rgba(255, 255, 255, .12); }
.lsx-claw__tabs button.is-on { background: linear-gradient(180deg, #312e81, #1e1b4b); border-color: #22d3ee; color: #fff; }
.lsx-claw__tabs button[data-kind="daily"].is-on { background: linear-gradient(180deg, #f59e0b, #b45309); border-color: #fde68a; }
.lsx-claw__free { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px; background: #fde68a; color: #422006; font-size: .75em; }
.lsx-claw__free:empty { display: none; }
.lsx-claw.is-daily canvas { box-shadow: 0 0 0 3px #f59e0b, 0 0 30px rgba(245, 158, 11, .35); }
.lsx-claw-side--daily { border-color: #f59e0b; }

/* The Daylight mutation's name, wherever it is written. */
.lsx-daylight { font-weight: 800; background: linear-gradient(90deg, #fde68a, #f59e0b, #fb7185, #fde68a); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: lsx-daylight 4s linear infinite; }
@keyframes lsx-daylight { to { background-position: 300% 0; } }

/* Odds lists (also in lottery.css, which this page does not load). */
.lsx-claw-side .lsx-machine__list { list-style: none; padding: 0; margin: 0 0 1rem; text-align: left; }
.lsx-claw-side .lsx-machine__list li { display: flex; justify-content: space-between; gap: 8px; padding: 0.2rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); font-weight: 700; }
