/* Name-picker overlay for lb-kit.js. Scoped under .lb-picker so it can't
   clash with a game's own styles. Matches mytrickortreat.com's glowing neon
   cards (cyan / violet / pink on deep indigo). Needs the Google Fonts
   "Luckiest Guy" + "Nunito" link on the page (falls back gracefully without). */
.lb-picker {
  --cyan: #6ee7f9;  --cyan-glow: rgba(110, 231, 249, .55);
  --violet: #c77dff; --violet-glow: rgba(199, 125, 255, .55);
  --pink: #ff7ad9;  --pink-glow: rgba(255, 122, 217, .5);
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; box-sizing: border-box;
  background: rgba(8, 5, 30, .78);
  font-family: 'Nunito', system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.lb-picker * { box-sizing: border-box; }
.lb-picker .lb-card {
  width: 100%; max-width: 380px; padding: 24px 20px 14px; text-align: center; color: #f4efff;
  border-radius: 26px; border: 3px solid var(--violet);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(120, 90, 255, .35), transparent 70%),
    linear-gradient(to bottom, #2a2166, #16103d);
  box-shadow: 0 0 14px var(--violet-glow), 0 0 40px rgba(140, 90, 255, .35),
              inset 0 0 22px rgba(199, 125, 255, .25);
}
.lb-picker h2 {
  margin: 0 0 6px; font-family: 'Luckiest Guy', cursive; font-weight: 400;
  font-size: 26px; letter-spacing: 1px; line-height: 1.1;
  background: linear-gradient(to bottom, #fff 10%, var(--cyan) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 8px var(--cyan-glow));
}
.lb-picker .lb-sub { margin: 0 0 16px; font-size: 14px; font-weight: 700; color: #a99fd6; }
.lb-picker .lb-name {
  min-height: 56px; display: flex; align-items: center; justify-content: center;
  padding: 10px; margin-bottom: 6px; border-radius: 16px;
  background: rgba(10, 6, 40, .5); border: 2px solid var(--pink);
  box-shadow: 0 0 12px var(--pink-glow), inset 0 0 14px rgba(255, 122, 217, .15);
  font-family: 'Luckiest Guy', cursive; font-weight: 400; letter-spacing: 1px;
  font-size: 24px; line-height: 1.15;
  color: #ffe3f7; text-shadow: 0 0 6px var(--pink), 0 0 16px var(--pink-glow);
}
.lb-picker .lb-pop { animation: lb-pop .3s ease-out; }
@keyframes lb-pop { from { transform: scale(.82); opacity: .3; } to { transform: scale(1); opacity: 1; } }
.lb-picker .lb-status { min-height: 20px; margin: 2px 0 10px; font-size: 13px; font-weight: 800; color: #a99fd6; }
.lb-picker .lb-status.ok { color: #a6ff4d; }
.lb-picker .lb-status.bad { color: #ff9ad0; }

/* Slot-machine reels */
.lb-picker .lb-reels { display: flex; gap: 8px; margin-bottom: 14px; }
.lb-picker .lb-reel { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: stretch; }
.lb-picker .lb-arrow {
  height: 28px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .07);
  color: var(--violet); font-size: 13px; line-height: 1;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.lb-picker .lb-arrow:active { background: rgba(255, 255, 255, .16); }
.lb-picker .lb-reel-view {
  position: relative; height: 120px; /* 3 rows of 40px */ margin: 4px 0;
  overflow-y: scroll; overscroll-behavior: contain; touch-action: pan-y;
  scroll-snap-type: y mandatory; scrollbar-width: none;
  border-radius: 12px; background: rgba(10, 6, 40, .55);
  /* fade the rows above/below the middle one */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 70%, transparent 100%);
}
.lb-picker .lb-reel-view::-webkit-scrollbar { display: none; }
.lb-picker .lb-reel-view:focus-visible { outline: 2px solid var(--cyan); }
.lb-picker .lb-reel-item {
  height: 40px; line-height: 40px; scroll-snap-align: center;
  font-family: 'Luckiest Guy', cursive; font-size: 15px; letter-spacing: .5px;
  white-space: nowrap; overflow: hidden; text-overflow: clip;
  color: rgba(244, 239, 255, .45); user-select: none; -webkit-user-select: none;
}
.lb-picker .lb-reel-item.on { color: #fff; text-shadow: 0 0 8px var(--pink), 0 0 16px var(--pink-glow); }
/* the "payline" band behind the middle row */
.lb-picker .lb-reel { position: relative; }
.lb-picker .lb-reel::after {
  content: ''; position: absolute; left: 0; right: 0; top: calc(28px + 4px + 40px); height: 40px;
  border-radius: 10px; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14), 0 0 12px var(--pink-glow);
}
.lb-picker .lb-btns { display: flex; gap: 12px; }
.lb-picker button { font: inherit; cursor: pointer; touch-action: manipulation; }
.lb-picker .lb-later, .lb-picker .lb-keep {
  flex: 1; min-height: 54px; border-radius: 16px; background: rgba(10, 6, 40, .55);
  font-family: 'Luckiest Guy', cursive; font-weight: 400; font-size: 20px; letter-spacing: 1px;
  transition: transform .1s, box-shadow .2s;
}
.lb-picker .lb-later { color: var(--violet); border: 2px solid var(--violet);
  box-shadow: 0 0 10px var(--violet-glow); text-shadow: 0 0 8px var(--violet-glow); }
.lb-picker .lb-keep { color: var(--cyan); border: 2px solid var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow); text-shadow: 0 0 8px var(--cyan-glow); }
.lb-picker .lb-later:active, .lb-picker .lb-keep:active { transform: scale(.96); }
.lb-picker button:disabled { opacity: .45; cursor: default; }
/* Per-game picker colors (same palettes as leaderboard.html) */
.lb-picker.lb-theme-potion {
  --cyan: #ff5fa8;  --cyan-glow: rgba(255, 95, 168, .55);   /* title + Keep it */
  --violet: #77a3fc; --violet-glow: rgba(119, 163, 252, .5); /* Spin */
  --pink: #bd10e0;  --pink-glow: rgba(189, 16, 224, .55);   /* name box */
}
.lb-picker.lb-theme-potion .lb-card {
  border: 0;
  background: radial-gradient(120% 60% at 50% 0%, rgba(189, 16, 224, .35), transparent 70%),
              linear-gradient(to bottom, #26092f, #0a0410);
  box-shadow: 0 0 18px rgba(255, 95, 168, .5), 0 0 44px rgba(255, 95, 168, .28);
}
.lb-picker.lb-theme-potion .lb-name { color: #ffe0f0; }
.lb-picker.lb-theme-monster h2 {
  background: none; color: #a6ff4d; filter: none;
  text-shadow: 0 0 8px rgba(166, 255, 77, .7), 0 0 22px rgba(166, 255, 77, .4);
}
.lb-picker.lb-theme-monster .lb-card {
  border: 0;
  background: linear-gradient(to bottom, #340d5d, #260c47);
  box-shadow: 0 0 18px rgba(199, 125, 255, .45), 0 0 44px rgba(140, 90, 255, .25);
}

/* In-game leaderboard pop-over (LB.showBoard) */
.lb-board {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  padding: 12px; background: rgba(8, 3, 18, .8);
}
.lb-board .lb-board-box { position: relative; width: 100%; max-width: 440px; height: min(92vh, 760px); }
.lb-board iframe { width: 100%; height: 100%; border: 0; background: transparent; }
.lb-board .lb-close {
  position: absolute; top: 4px; right: 4px; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer; font-size: 20px; font-weight: 900; color: #fff;
  background: rgba(255, 255, 255, .14); box-shadow: 0 0 12px rgba(255, 255, 255, .25);
}

/* Monster Smash: the line monster-hook.js adds to the game's "Time's Up!" box */
.lb-modal-line {
  margin: -0.6em 0 1.2em; font-size: 13px; font-weight: 700; color: #cfc4f2; text-align: center;
}
.lb-modal-line b { color: #a6ff4d; }
.lb-modal-line .lb-change {
  font: inherit; font-size: 12px; color: #6ee7f9; background: none; border: 0;
  text-decoration: underline; cursor: pointer; padding: 0 2px;
}
