/* perk-center-theme.css - member page (perk-center.html) ONLY - 2026-10-12
   Follows PERK-CENTER-MIGRATION-PROTOCOL.txt. Linked LAST, after perk-theme.css.
   perk-theme.css is not edited, so the Perk Control console is unaffected.
   Undo: remove the one <link> line from perk-center.html. */

/* ---------- A. header nudge: tile 15px lower, animated title 40px higher and 15 percent larger ---------- */
html body .card-stack { margin-top: 15px !important; }
html body .card-stack .menu-rect-label {
  top: -50px !important;
  scale: 1.15;
  transform-origin: 50% 50%;
}

/* ---------- B. the four tabs as flat tiles (one row of four, two by two on phones). Minimal pass 2026-10-17: no glow, no gradient, no animation ---------- */
html body #lbSlider {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  margin-bottom: .9em !important;
}
html body #lbSlider .lb-slider-btn {
  flex: none !important;
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal !important;
  padding: .55em .5em !important;
  font-size: .92em !important;
  font-weight: 600 !important;
  letter-spacing: .01em !important;
  text-transform: none !important;
  color: #fff !important;
  background: #1b1530 !important;
  border: 1px solid rgba(186, 104, 255, .28) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  animation: none !important;
  transition: border-color .2s ease, background .2s ease, color .2s ease !important;
}
html body #lbSlider .lb-slider-btn:hover:not(.active) {
  border-color: #ba68ff !important;
  color: #ba68ff !important;
}
html body #lbSlider .lb-slider-btn.active {
  color: #fff !important;
  background: #8b4dff !important;
  border-color: #ba68ff !important;
  box-shadow: none !important;
}

/* ---------- C. ONE stacked tile: name row, one proportional row of three stats, countdown ---------- */
html body .nav-meta {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  column-gap: 0;
  align-items: stretch;
  gap: 0;
  padding: .35em 1em .6em 1.2em !important;
  margin-top: .2em;
  border: 0 !important;
  border-radius: 12px !important;
  background: #1b1530 !important;
  box-shadow: 0 0 0 1px rgba(186, 104, 255, .22) !important;
}
/* row 1: the name button takes two cells, Sync Points takes the third (when it is shown) */
html body .nav-meta .name-btn {
  grid-row: 1;
  grid-column: 1 / -1;
  width: auto;
  margin: .5em 0 !important;
  border-radius: 999px !important;
  min-height: 40px;
  font-size: .62rem !important;
  letter-spacing: .1em;
}
/* when Sync Points is shown (a name is saved) the name button gives it the third cell */
html body .nav-meta:has(.name-refresh-btn[style*="flex"]) .name-btn { grid-column: 1 / span 2; }
html body .nav-meta .name-refresh-btn {
  grid-row: 1;
  grid-column: 3;
  width: auto;
  margin: .5em 0 .5em .6em !important;
  border-radius: 999px !important;
  min-height: 40px;
  font-size: .56rem !important;
}
html body .nav-meta .name-entry {
  grid-row: 2;
  grid-column: 1 / -1;
  margin: 0 0 .5em !important;
}
html body .nav-meta .name-entry .name-input { border-radius: 999px !important; min-height: 38px; }
/* row 2: the three point cells share ONE row; label on top, value under it */
html body .nav-meta .meta-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "label" "value";
  row-gap: 6px;
  align-content: center;
  justify-items: start;
  min-height: 64px;
  padding: .7em .8em !important;
  font-size: .72rem !important;
  font-weight: 600;
  letter-spacing: .06em;
  color: #e9e4f5;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-right: 1px solid rgba(255, 255, 255, .06);
}
html body .nav-meta .meta-row > span:first-child { grid-area: label; }
html body .nav-meta .meta-row > .pill,
html body .nav-meta .meta-row > .clock { grid-area: value; }
html body .nav-meta .meta-week { grid-row: 3; grid-column: 1; }
html body .nav-meta .meta-build { grid-row: 3; grid-column: 2; }
html body .nav-meta .meta-life { grid-row: 3; grid-column: 3; border-right: 0; }
html body .nav-meta .meta-row .pill {
  font-size: 1.3rem !important;
  font-weight: 650 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: none !important;
  color: #ba68ff !important;
  border: 0 !important;
}
/* row 3: the countdown spans the full width, steady monospace digits */
html body .nav-meta .meta-cashout {
  grid-row: 4;
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr;
  grid-template-areas: "label value";
  align-items: center;
  column-gap: 12px;
  min-height: 48px;
  border-right: 0;
}
html body .nav-meta .meta-row .clock {
  font-family: 'Courier New', Consolas, monospace !important;
  font-size: 1.1rem !important;
  color: #ba68ff !important;
  letter-spacing: .06em;
  justify-self: end;
}

/* ---------- D. the stacked tile HANGS while the lists scroll under it ---------- */
/* body was overflow-x:hidden / overflow-y:auto, a scroll container that never scrolls, which blocks sticky */
html body { overflow-x: clip !important; overflow-y: visible !important; }
/* a sticky element only sticks inside its parent, so the left column dissolves into the screen */
html body .nav-col { display: contents !important; }
html body .nav-meta { position: sticky; top: 10px; z-index: 60; }

/* ---------- E. phones ---------- */
@media (max-width: 560px) {
  html body #lbSlider { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body .nav-meta { top: 6px; padding-left: 1em !important; }
  html body .nav-meta .meta-row { padding: .6em .55em !important; }
}
@media (pointer: coarse), (max-width: 560px) {
  html body #nameInput { font-size: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body #lbSlider .lb-slider-btn { animation: none !important; transition: none !important; }
}

/* ---------- badge and icon spots on Rewards and Store tiles ---------- */
html body .pk-icon {
  width: 34px;
  height: 34px;
  border-radius: 50% !important;
  object-fit: cover;
  flex: none;
  margin-right: .55em;
  vertical-align: middle;
  border: 1px solid rgba(186, 104, 255, .6);
  box-shadow: 0 0 10px -2px rgba(186, 104, 255, .45);
  background: #1b1530;
}
html body .pk-badge {
  display: inline-block;
  margin-left: .55em;
  padding: .12em .65em;
  border-radius: 999px !important;
  background: #8b4dff;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}
html body .chip-tag-store.has-badge {
  background: #8b4dff !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: .15em .7em !important;
  letter-spacing: .08em;
}
html body .default-rewards .chip-name,
html body .collab-rewards .chip-name,
html body #storeList .chip-name { display: flex; align-items: center; flex-wrap: wrap; }

/* ---------- F. points board fills the stacked tile (2x2 pills) 2026-10-27 ---------- */
html body .nav-meta { display: block !important; }
html body .nav-meta .pb-board { width: 100%; }
html body .nav-meta .pb-board .meta-week,
html body .nav-meta .pb-board .meta-build,
html body .nav-meta .pb-board .meta-life { grid-row: auto; grid-column: auto; border-right: 1px solid rgba(243,237,227,.22); }
html body .nav-meta .pb-board .meta-cashout { grid-row: auto; grid-column: 1 / -1; display: flex; flex-direction: row; grid-template-areas: none; }
html body .nav-meta .pb-board .meta-row .pill { border-radius: 0 !important; }

/* ---------- G. Week stack: fits its width, scrolls up and down only, no left-right slide 2026-10-27 ---------- */
html body .karaoke-tile.karaoke-tile .nav-col #earnRail { overflow-x: hidden !important; overflow-y: auto; box-sizing: border-box; }
html body #weekRows, html body #weekRows .day-row { max-width: 100%; box-sizing: border-box; min-width: 0; }
html body #weekRows .day-row { transform: none !important; transition: background .2s ease !important; animation: none !important; }
