/* ==========================================================================
   Little Play — components.css
   Buttons · save control · five card variants · mood tiles · chips ·
   search · drawer · saved panel · advertising container.
   Card variants are deliberately not one component: each has its own
   proportions, padding and hierarchy.
   ========================================================================== */

/* ----------------------------------------------------------------- buttons */

.lp-btn {
  --btn-bg: var(--lp-card);
  --btn-ink: var(--lp-ink);
  --btn-line: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid var(--btn-line);
  border-radius: var(--lp-r-pill);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--lp-font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--lp-t) var(--lp-ease),
    background-color var(--lp-t) var(--lp-ease),
    box-shadow var(--lp-t) var(--lp-ease),
    color var(--lp-t) var(--lp-ease);
}

.lp-btn:hover { text-decoration: none; }
.lp-btn:active { transform: translateY(1px); }

.lp-btn--primary {
  --btn-bg: var(--lp-ink);
  --btn-ink: #faf7f2;
  box-shadow: 0 2px 4px rgba(38, 36, 31, 0.12), 0 10px 22px rgba(38, 36, 31, 0.16);
}

.lp-btn--primary:hover {
  --btn-bg: var(--lp-ink-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(38, 36, 31, 0.14), 0 18px 34px rgba(38, 36, 31, 0.2);
}

.lp-btn--secondary {
  --btn-bg: transparent;
  --btn-line: var(--lp-line-strong);
  --btn-ink: var(--lp-ink);
}

.lp-btn--secondary:hover {
  --btn-bg: rgba(51, 49, 46, 0.04);
  --btn-line: var(--lp-ink-soft);
}

.lp-btn--quiet {
  --btn-bg: var(--lp-card);
  --btn-line: var(--lp-line);
  --btn-ink: var(--lp-ink);
  box-shadow: var(--lp-shadow-1);
  min-height: 44px;
  padding: 11px 18px;
}

.lp-btn--quiet:hover {
  --btn-line: var(--lp-line-strong);
  transform: translateY(-1px);
}

.lp-btn--sm {
  min-height: 40px;
  padding: 9px 17px;
  font-size: 13.5px;
  gap: 7px;
}

.lp-btn__icon { width: 17px; height: 17px; flex: 0 0 17px; }

.lp-btn__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.16);
}

.lp-btn__play svg { width: 13px; height: 13px; }

/* ------------------------------------------------------------------ saves */

.lp-save {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--lp-ink-soft);
  box-shadow: 0 1px 2px rgba(51, 49, 46, 0.08), 0 4px 10px rgba(51, 49, 46, 0.1);
  backdrop-filter: blur(6px);
  transition:
    transform var(--lp-t-fast) var(--lp-ease),
    color var(--lp-t-fast) var(--lp-ease),
    background-color var(--lp-t-fast) var(--lp-ease);
}

.lp-save svg { width: 16px; height: 16px; }

.lp-save:hover { transform: scale(1.08); color: var(--lp-ink); }

.lp-save[aria-pressed="true"] { color: #b4485f; }

.lp-save--sm { width: 30px; height: 30px; top: 8px; right: 8px; }
.lp-save--sm svg { width: 14px; height: 14px; }

.lp-save--onArt {
  position: static;
  background: rgba(255, 255, 255, 0.9);
}

/* ====================================================== VARIANT A — featured
   Asymmetric 2:1 composition: artwork left, copy right. Used once per page as
   the lead pick, which is why it carries the play button and the largest type.
   ========================================================================== */

.lp-card-a {
  /* Mobile-first: art plate stacked above the copy. The two-column editorial
     composition is the desktop treatment (layout.css, 900px block). */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 208px auto;
  align-items: stretch;
  min-height: 0;
  border-radius: var(--lp-r-xl);
  background: var(--lp-card);
  box-shadow: var(--lp-shadow-2);
  overflow: hidden;
  transition: transform var(--lp-t) var(--lp-ease), box-shadow var(--lp-t) var(--lp-ease);
}

.lp-card-a:hover {
  transform: translateY(-3px);
  box-shadow: var(--lp-shadow-3);
}

.lp-card-a__art {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--lp-mint-soft);
}

.lp-card-a--cream .lp-card-a__art { background: var(--lp-cream-soft); }
.lp-card-a--pink .lp-card-a__art { background: var(--lp-pink-soft); }
.lp-card-a--blue .lp-card-a__art { background: var(--lp-blue-soft); }

.lp-card-a__art {
  display: grid;
  place-items: center;
}

/* A soft disc behind the cover, so the panel reads as a stage not a gap. */
.lp-card-a__art::before {
  content: '';
  position: absolute;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

/* Catalogue covers are small (median ~106px). Containing them on a pastel stage
   keeps them at their own resolution instead of stretching one to fill 500px. */
.lp-card-a__img {
  position: relative;
  width: auto;
  height: auto;
  max-width: 74%;
  max-height: 82%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 5px 14px rgba(51, 49, 46, 0.14), 0 18px 38px rgba(51, 49, 46, 0.12);
  transition: transform 600ms var(--lp-ease);
}

.lp-card-a:hover .lp-card-a__img { transform: scale(1.045); }

.lp-card-a__scrim {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(51, 49, 46, 0.05);
  pointer-events: none;
}

.lp-card-a__body {
  display: flex;
  flex-direction: column;
  /* Top-aligned with a generous top margin rather than centred: the plate is
     taller than the copy, and centring leaves a void above and below. */
  justify-content: flex-start;
  gap: 12px;
  padding: clamp(24px, 3.2vw, 40px);
  padding-top: clamp(28px, 3.6vw, 52px);
}

.lp-card-a__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--lp-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lp-ink-soft);
}

.lp-card-a__title {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  letter-spacing: -0.025em;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.lp-card-a__title a { color: inherit; }
.lp-card-a__title a:hover { text-decoration: none; }

.lp-card-a__title a::after {
  /* Whole card is not a link (the play button is), so the title carries the
     stretch target for pointer users while the CTA stays a real link. */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.lp-card-a__body { position: relative; }

.lp-card-a__lede {
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--lp-ink-soft);
}

.lp-card-a__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  position: relative;
  z-index: 2;
}

/* ======================================================== VARIANT B — square
   1:1 artwork on a pastel plate inside a white card. Name and collection sit
   beneath the art. Workhorse of every grid.
   ========================================================================== */

.lp-card-b {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px 8px 12px;
  border-radius: var(--lp-r-lg);
  background: var(--lp-card);
  box-shadow: var(--lp-shadow-1);
  transition: transform var(--lp-t) var(--lp-ease), box-shadow var(--lp-t) var(--lp-ease);
}

.lp-card-b:hover {
  transform: translateY(-3px);
  box-shadow: var(--lp-shadow-2);
}

.lp-card-b__link {
  display: flex;
  flex-direction: column;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.lp-card-b__link:hover { text-decoration: none; }

.lp-card-b__art {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--lp-r-sm);
  overflow: hidden;
  background: var(--lp-mint-soft);
}

.lp-card-b--cream .lp-card-b__art { background: var(--lp-cream-soft); }
.lp-card-b--pink .lp-card-b__art { background: var(--lp-pink-soft); }
.lp-card-b--blue .lp-card-b__art { background: var(--lp-blue-soft); }

.lp-card-b__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--lp-ease);
}

.lp-card-b:hover .lp-card-b__img { transform: scale(1.05); }

.lp-card-b__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(38, 36, 31, 0.22);
  opacity: 0;
  transition: opacity var(--lp-t) var(--lp-ease);
}

.lp-card-b__hover svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 50%;
  background: var(--lp-bg);
  color: var(--lp-ink);
  box-shadow: var(--lp-shadow-1);
}

.lp-card-b:hover .lp-card-b__hover { opacity: 1; }

.lp-card-b__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 5px;
  min-width: 0;
}

.lp-card-b__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.72em;
  font-family: var(--lp-font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: -0.008em;
  color: var(--lp-ink);
  overflow-wrap: anywhere;
}

.lp-card-b__cat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lp-ink-soft);
}

/* ================================================= VARIANT C — compact row
   40px-ish thumbnail, name and collection right, arrow last. Sits in a stacked
   list — never in a grid. Optional rank numeral for the Popular shelf.
   ========================================================================== */

.lp-card-c {
  list-style: none;
  border-radius: var(--lp-r-md);
  transition: background-color var(--lp-t-fast) var(--lp-ease);
}

.lp-card-c:hover { background: rgba(51, 49, 46, 0.032); }

.lp-card-c__link {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.lp-card-c__link:hover { text-decoration: none; }

.lp-card-c__rank {
  font-family: var(--lp-font-display);
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--lp-ink-faint);
  width: 20px;
  text-align: right;
}

.lp-card-c__art {
  display: block;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--lp-bg-alt);
}

.lp-card-c__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--lp-ease);
}

.lp-card-c:hover .lp-card-c__img { transform: scale(1.07); }

.lp-card-c__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.lp-card-c__title {
  font-family: var(--lp-font-display);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-card-c__cat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--lp-ink-soft);
}

.lp-card-c__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--lp-ink-soft);
  background: transparent;
  transition:
    background-color var(--lp-t-fast) var(--lp-ease),
    color var(--lp-t-fast) var(--lp-ease),
    transform var(--lp-t-fast) var(--lp-ease);
}

.lp-card-c__go svg { width: 16px; height: 16px; }

.lp-card-c:hover .lp-card-c__go {
  background: var(--lp-bg-alt);
  color: var(--lp-ink);
  transform: translateX(2px);
}

/* ====================================================== VARIANT D — masonry
   No white surface: image-led, caption printed over the art. Size comes from
   the section's grid spans (wide / tall / std), so the composition is genuinely
   uneven rather than six identical tiles.
   ========================================================================== */

.lp-card-d {
  position: relative;
  border-radius: var(--lp-r-lg);
  overflow: hidden;
  background: var(--lp-bg-alt);
  box-shadow: var(--lp-shadow-1);
  transition: transform var(--lp-t) var(--lp-ease), box-shadow var(--lp-t) var(--lp-ease);
}

.lp-card-d:hover {
  transform: translateY(-3px);
  box-shadow: var(--lp-shadow-2);
}

.lp-card-d__link {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  color: var(--lp-ink);
  text-decoration: none;
}

/* The art occupies the card minus the caption band. */
/* Each plate is tinted by its collection, so the masonry reads as a set of
   designed plates rather than six white boxes. */
.lp-card-d--mint .lp-card-d__stage { background: radial-gradient(110% 100% at 26% 0%, #fff 0%, rgba(255,255,255,0) 64%), var(--lp-mint-soft); }
.lp-card-d--cream .lp-card-d__stage { background: radial-gradient(110% 100% at 26% 0%, #fff 0%, rgba(255,255,255,0) 64%), var(--lp-cream-soft); }
.lp-card-d--pink .lp-card-d__stage { background: radial-gradient(110% 100% at 26% 0%, #fff 0%, rgba(255,255,255,0) 64%), var(--lp-pink-soft); }
.lp-card-d--blue .lp-card-d__stage { background: radial-gradient(110% 100% at 26% 0%, #fff 0%, rgba(255,255,255,0) 64%), var(--lp-blue-soft); }

.lp-card-d__link:hover { text-decoration: none; }

.lp-card-d__link {
  display: flex;
  flex-direction: column;
  border-radius: var(--lp-r-lg);
  overflow: hidden;
  background: var(--lp-card);
}

/* Cover stage: the art is absolutely centred inside its own stage element,
   which flexes to fill the card above the caption band. Keeping it in its own
   box means larger art can never bleed over the title. */
.lp-card-d__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.lp-card-d__img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 76%;
  max-height: 82%;
  padding: 7px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(51, 49, 46, 0.12), 0 14px 30px rgba(51, 49, 46, 0.11);
  transition: transform 620ms var(--lp-ease);
}

.lp-card-d:hover .lp-card-d__img {
  transform: translate(-50%, -50%) scale(1.045);
}

.lp-card-d__scrim { display: none; }

.lp-card-d__caption {
  position: relative;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 14px 12px;
  background: var(--lp-card);
}

.lp-card-d__title {
  font-family: var(--lp-font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: var(--lp-ink);
  overflow-wrap: anywhere;
}

.lp-card-d__cat {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--lp-ink-soft);
}

/* Sizes: the section grid assigns spans; these set minimum heights. */
.lp-card-d--tall { min-height: 340px; }
.lp-card-d--wide { min-height: 260px; }
.lp-card-d--std { min-height: 260px; }

.lp-card-d--wide .lp-card-d__title { font-size: 19px; }
.lp-card-d--wide .lp-card-d__caption { padding: 13px 18px 14px; }

/* ================================================== VARIANT E — category tile
   Colour fill, glyph, name, real count, one-line note. Explicitly not a game
   card: no artwork, no play affordance, no save control.
   ========================================================================== */

.lp-card-e {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 178px;
  padding: 20px 20px 16px;
  border-radius: var(--lp-r-lg);
  background: var(--lp-mint-soft);
  color: var(--lp-ink);
  text-decoration: none;
  overflow: hidden;
  position: relative;
  transition:
    transform var(--lp-t) var(--lp-ease),
    box-shadow var(--lp-t) var(--lp-ease),
    background-color var(--lp-t) var(--lp-ease);
}

.lp-card-e:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--lp-shadow-2);
}

.lp-card-e--mint { background: var(--lp-mint-soft); }
.lp-card-e--cream { background: var(--lp-cream-soft); }
.lp-card-e--pink { background: var(--lp-pink-soft); }
.lp-card-e--blue { background: var(--lp-blue-soft); }

.lp-card-e:hover.lp-card-e--mint { background: #dcefe7; }
.lp-card-e:hover.lp-card-e--cream { background: #f8ecd0; }
.lp-card-e:hover.lp-card-e--pink { background: #f8e1e6; }
.lp-card-e:hover.lp-card-e--blue { background: #e0edf7; }

.lp-card-e__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--lp-accent-ink);
}

.lp-card-e--cream .lp-card-e__glyph { color: #7a5f13; }
.lp-card-e--pink .lp-card-e__glyph { color: #8c4451; }
.lp-card-e--blue .lp-card-e__glyph { color: #345f7a; }

.lp-card-e__glyph svg { width: 21px; height: 21px; }

.lp-card-e__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lp-card-e__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.014em;
  line-height: 1.2;
  color: var(--lp-ink-deep);
  overflow-wrap: anywhere;
}

.lp-card-e__note {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--lp-ink-soft);
}

.lp-card-e__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.lp-card-e__count {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lp-ink-soft);
}

.lp-card-e__arrow {
  font-size: 15px;
  line-height: 1;
  color: var(--lp-ink-soft);
  transition: transform var(--lp-t) var(--lp-ease);
}

.lp-card-e:hover .lp-card-e__arrow { transform: translateX(4px); }

/* --------------------------------------------------------------- mood tile */

.lp-mood {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 210px;
  padding: 22px;
  border-radius: var(--lp-r-xl);
  color: var(--lp-ink);
  text-decoration: none;
  background: var(--lp-mint);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--lp-t) var(--lp-ease),
    box-shadow var(--lp-t) var(--lp-ease);
}

.lp-mood::after {
  /* A soft oversized disc keeps the tile from reading as a flat swatch. */
  content: '';
  position: absolute;
  right: -52px;
  top: -62px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  pointer-events: none;
}

.lp-mood:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--lp-shadow-2);
}

.lp-mood--mint { background: var(--lp-mint); }
.lp-mood--blue { background: var(--lp-blue); }
.lp-mood--pink { background: var(--lp-pink); }
.lp-mood--cream { background: var(--lp-cream); }

.lp-mood.is-active {
  box-shadow: 0 0 0 2px var(--lp-ink), var(--lp-shadow-2);
}

.lp-mood__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--lp-ink-deep);
  position: relative;
  z-index: 1;
}

.lp-mood__glyph svg { width: 22px; height: 22px; }

.lp-mood__name {
  margin-top: 6px;
  font-family: var(--lp-font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.026em;
  line-height: 1;
  color: var(--lp-ink-deep);
  position: relative;
  z-index: 1;
}

.lp-mood__tag {
  font-size: 13px;
  line-height: 1.42;
  color: rgba(38, 36, 31, 0.7);
  max-width: 26ch;
  position: relative;
  z-index: 1;
}

.lp-mood__foot {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
  padding-top: 12px;
  position: relative;
  z-index: 1;
}

.lp-mood__count {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lp-ink-deep);
}

.lp-mood__cols {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(38, 36, 31, 0.62);
}

/* ------------------------------------------------------------------- chips */

.lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-pill);
  background: var(--lp-card);
  color: var(--lp-ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color var(--lp-t-fast) var(--lp-ease),
    background-color var(--lp-t-fast) var(--lp-ease);
}

.lp-chip:hover { text-decoration: none; border-color: var(--lp-line-strong); }

.lp-chip.is-active {
  background: var(--lp-ink);
  border-color: var(--lp-ink);
  color: var(--lp-bg);
}

.lp-chip__n {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--lp-ink-soft);
}

.lp-chip.is-active .lp-chip__n { color: rgba(250, 247, 242, 0.62); }

/* -------------------------------------------------------------- search UI */

.lp-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: clamp(16px, 5vw, 80px) var(--lp-gutter);
  background: rgba(38, 36, 31, 0.34);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lp-search-overlay[hidden] { display: none; }

.lp-search-box {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  border-radius: var(--lp-r-xl);
  background: var(--lp-bg);
  box-shadow: var(--lp-shadow-3);
  overflow: hidden;
}

.lp-search-box__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--lp-line);
}

.lp-search-box__icon { color: var(--lp-ink-soft); flex: 0 0 20px; }
.lp-search-box__icon svg { width: 20px; height: 20px; }

.lp-search-box__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  color: var(--lp-ink);
}

.lp-search-box__input:focus { outline: none; }

.lp-search-box__close {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-pill);
  background: var(--lp-card);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--lp-ink-soft);
}

.lp-search-box__close:hover { color: var(--lp-ink); }

.lp-search-box__body {
  max-height: min(58vh, 520px);
  overflow-y: auto;
  padding: 12px;
}

.lp-search-hint {
  padding: 22px 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--lp-ink-soft);
  text-align: center;
}

.lp-search-count {
  padding: 4px 10px 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-ink-faint);
}

.lp-search-list { list-style: none; }

.lp-search-list__item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 10px;
  border-radius: var(--lp-r-sm);
  color: inherit;
  text-decoration: none;
}

.lp-search-list__item:hover {
  text-decoration: none;
  background: var(--lp-card);
}

.lp-search-list__art {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 11px;
  object-fit: cover;
}

.lp-search-list__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.lp-search-list__name {
  font-family: var(--lp-font-display);
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-search-list__cat {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lp-ink-soft);
}

.lp-search-list__go { margin-left: auto; color: var(--lp-ink-faint); font-size: 15px; }

/* ------------------------------------------------------------------ drawer */

.lp-drawer-backdrop,
.lp-saved-backdrop {
  position: fixed;
  inset: 0;
  z-index: 84;
  background: rgba(38, 36, 31, 0.36);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--lp-t) var(--lp-ease), visibility var(--lp-t) var(--lp-ease);
}

.lp-drawer-backdrop.is-visible,
.lp-saved-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.lp-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 86;
  display: flex;
  flex-direction: column;
  width: min(88vw, 360px);
  padding: 20px;
  background: var(--lp-bg);
  box-shadow: -20px 0 60px rgba(38, 36, 31, 0.16);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 320ms var(--lp-ease), visibility 320ms var(--lp-ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lp-drawer.is-open { transform: none; visibility: visible; }

.lp-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--lp-line);
}

.lp-drawer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--lp-font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lp-drawer__group { padding-top: 20px; }

.lp-drawer__label {
  margin-bottom: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--lp-ink-faint);
}

.lp-drawer__link {
  display: block;
  width: 100%;
  padding: 11px 12px;
  margin-bottom: 2px;
  border: 0;
  border-radius: var(--lp-r-xs);
  background: transparent;
  font-family: var(--lp-font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.014em;
  text-align: left;
  color: var(--lp-ink);
  text-decoration: none;
  transition: background-color var(--lp-t-fast) var(--lp-ease);
}

.lp-drawer__link:hover {
  background: var(--lp-bg-alt);
  text-decoration: none;
}

.lp-drawer__link--button { cursor: pointer; }

.lp-drawer__foot {
  margin-top: auto;
  padding-top: 26px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--lp-ink-faint);
}

/* ------------------------------------------------------------- saved panel */

.lp-saved {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 86;
  display: flex;
  flex-direction: column;
  width: min(92vw, 400px);
  padding: 20px;
  background: var(--lp-bg);
  box-shadow: -20px 0 60px rgba(38, 36, 31, 0.16);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 320ms var(--lp-ease), visibility 320ms var(--lp-ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lp-saved.is-open { transform: none; visibility: visible; }

.lp-saved__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--lp-line);
}

.lp-saved__title {
  font-family: var(--lp-font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lp-saved__body { padding-top: 14px; }

.lp-saved__empty {
  padding: 26px 8px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--lp-ink-soft);
  text-align: center;
}

.lp-saved__list { list-style: none; display: flex; flex-direction: column; gap: 4px; }

.lp-saved__row { display: flex; align-items: center; gap: 6px; }

.lp-saved__link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px;
  border-radius: var(--lp-r-sm);
  color: inherit;
  text-decoration: none;
}

.lp-saved__link:hover { text-decoration: none; background: var(--lp-card); }

.lp-saved__art {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 11px;
  object-fit: cover;
}

.lp-saved__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.lp-saved__name {
  font-family: var(--lp-font-display);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-saved__cat {
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lp-ink-soft);
}

.lp-saved__remove {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--lp-ink-faint);
  font-size: 18px;
  line-height: 1;
}

.lp-saved__remove:hover { background: var(--lp-bg-alt); color: var(--lp-ink); }

.lp-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--lp-ink);
  transition:
    background-color var(--lp-t-fast) var(--lp-ease),
    border-color var(--lp-t-fast) var(--lp-ease);
}

.lp-icon-btn:hover {
  background: var(--lp-bg-alt);
  border-color: var(--lp-line);
}

.lp-icon-btn svg { width: 19px; height: 19px; }

/* ------------------------------------------------------------ advertising
   Reserved container. Visually separated from content: its own tinted plate,
   a hairline dashed edge, a labelled header, and no card-like affordance —
   never a rounded white surface that could be mistaken for a game.
   ========================================================================== */

.lp-ad {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-block: clamp(30px, 4.5vw, 52px);
  padding: 12px;
  border: 1px dashed var(--lp-line-strong);
  border-radius: var(--lp-r-md);
  background: var(--lp-bg-alt);
}

.lp-ad__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lp-ink-faint);
}

.lp-ad__label::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: var(--lp-line);
}

.lp-ad__slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  border-radius: var(--lp-r-xs);
  background: rgba(255, 255, 255, 0.55);
  font-size: 11.5px;
  color: var(--lp-ink-faint);
  text-align: center;
  padding: 16px;
}

.lp-ad__slot--rect { min-height: 250px; }

/* A placeholder note is visible in preview; real inventory simply fills it. */
.lp-ad__slot p { max-width: 44ch; line-height: 1.5; }

/* --------------------------------------------------------------- feedback */

.lp-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--lp-ink-soft);
  font-size: 14px;
}
