.lkr-dialog {
  --lkr-ink: #33264b;
  --lkr-purple: #6651a5;
  --lkr-mint: #b9efd8;
  --lkr-gold: #f8d374;
  box-sizing: border-box;
  width: min(950px, calc(100vw - 36px));
  max-width: 950px;
  max-height: calc(100dvh - 36px);
  margin: auto;
  padding: 0;
  border: 1px solid #c4b6e5;
  border-radius: 28px;
  overflow: hidden;
  background: #f9f6ff;
  color: var(--lkr-ink);
  box-shadow: 0 26px 100px #130a3a70;
  font: 500 15px/1.45 "DM Sans", system-ui, sans-serif;
}
.lkr-dialog[open] { display: flex; flex-direction: column; }
.lkr-dialog::backdrop { background: #17102aca; }
.lkr-dialog *, .lkr-toast * { box-sizing: border-box; }
.lkr-dialog [hidden], .lkr-toast[hidden] { display: none !important; }
.lkr-header {
  position: relative; inset: auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: 20px; align-items: center;
  padding: 30px 34px 26px;
  background: radial-gradient(ellipse at 75% -20%, #d7caf4 0, transparent 60%), #eee7fa;
  border-bottom: 1px solid #dcd2ed;
}
.lkr-eyebrow { margin: 0 0 8px; color: #786390; font-size: 10px; font-weight: 800; letter-spacing: .16em; line-height: 1.4; }
.lkr-title { margin: 0; color: #38264f; font: 800 clamp(28px, 4vw, 42px)/1.1 "Manrope", system-ui, sans-serif; letter-spacing: -.045em; }
.lkr-description { max-width: 490px; margin: 12px 0 0; color: #786989; font-size: 14px; }
.lkr-wallet {
  display: flex; align-items: center; gap: 10px;
  margin-right: 32px; padding: 13px 18px;
  border: 1px solid #e1c477; border-radius: 20px;
  background: #ffedb8; box-shadow: 0 4px 0 #dcc08a44;
}
.lkr-wallet svg { width: 34px; height: 34px; color: #a97620; }
.lkr-wallet strong { display: block; color: #765020; font: 800 26px/1.1 "Manrope", sans-serif; }
.lkr-wallet span { color: #936c36; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.lkr-dialog button, .lkr-toast button { min-height: 44px; border: 0; font: 800 12px/1.2 "DM Sans", system-ui, sans-serif; cursor: pointer; touch-action: manipulation; }
.lkr-dialog button:focus-visible, .lkr-toast button:focus-visible { outline: 3px solid #56ac8c; outline-offset: 3px; }
.lkr-dialog button:disabled { opacity: .55; cursor: default; box-shadow: none; }
.lkr-close { position: absolute; top: 12px; right: 12px; width: 44px; min-width: 44px; padding: 0; border-radius: 50%; background: #ffffff80; color: #725681; font-size: 27px !important; }
.lkr-tabs { flex: 0 0 auto; display: flex; gap: 7px; padding: 16px 30px 13px; background: #f9f6ff; }
.lkr-tab { flex: 1; padding: 12px 15px; border-radius: 14px; color: #78638b; background: transparent; }
.lkr-tab[aria-selected="true"] { background: #6651a5; color: #fff9ff; box-shadow: 0 3px 0 #493777; }
.lkr-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 30px 18px; scrollbar-color: #c8b7df transparent; }
.lkr-panel-note { margin: 8px 0 18px; color: #847091; font-size: 13px; }
.lkr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lkr-card { display: flex; flex-direction: column; min-width: 0; padding: 12px; border: 1px solid #e2d9ed; border-radius: 20px; background: #fffdfc; transition: border-color .15s; }
.lkr-card[data-earned="true"] { border-color: #b3dbcb; }
.lkr-card[data-equipped="true"] { box-shadow: 0 0 0 2px #a8dbc7; }
.lkr-art { position: relative; display: grid; place-items: center; height: 125px; margin: -1px -1px 12px; border-radius: 13px; background: radial-gradient(ellipse at 40% 20%, #ece5fa, #dad2ed); color: #8f76b2; }
.lkr-art::before { content: ""; position: absolute; width: 94px; height: 94px; border: 1px solid #ffffffb0; border-radius: 50%; }
.lkr-art svg { position: relative; z-index: 1; width: 76px; height: 76px; filter: drop-shadow(0 4px 0 #78619715); }
.lkr-card[data-earned="false"] .lkr-art svg { opacity: .62; }
.lkr-card[data-earned="true"] .lkr-art { background: radial-gradient(ellipse at 40% 20%, #effbf3, #cdebdc); color: #507d69; }
.lkr-card[data-rarity="epic"] .lkr-art { background: radial-gradient(ellipse at 40% 20%, #f0dcfa, #d8bfe9); color: #9360b7; }
.lkr-card[data-rarity="legendary"] .lkr-art { background: radial-gradient(ellipse at 40% 20%, #fff6d7, #f3d48f); color: #ad8334; }
.lkr-stamp { position: absolute; z-index: 2; right: 7px; bottom: 7px; color: #406951; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.lkr-rarity { margin: 0 0 4px; color: #9a81ac; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.lkr-swatches { display: flex; gap: 4px; margin: 0 0 7px; }
.lkr-swatches i { display: block; width: 9px; height: 9px; border: 1px solid #84709530; border-radius: 50%; }
.lkr-card h3 { min-height: 32px; margin: 0 0 6px; color: #443053; font: 800 14px/1.18 "Manrope", sans-serif; }
.lkr-card-description { flex: 1; margin: 0 0 12px; color: #8b7a94; font-size: 11px; line-height: 1.4; }
.lkr-progress { overflow: hidden; height: 5px; border-radius: 4px; background: #ece5f3; }
.lkr-progress i { display: block; width: 100%; height: 100%; transform-origin: left; border-radius: inherit; background: #b59ddb; transition: transform .25s; }
.lkr-progress-copy { display: block; margin: 6px 0 12px; color: #967da8; font-size: 10px; font-weight: 800; }
.lkr-equip { width: 100%; border-radius: 11px; background: #d3eddf; color: #456c58; }
.lkr-card[data-earned="false"] .lkr-equip { background: #f0eaf5; color: #927c9d; font-size: 10px; }
.lkr-card[data-equipped="true"] .lkr-equip { background: #b9e0cc; color: #37634d; }
.lkr-next { display: flex; align-items: center; gap: 20px; padding: 20px; margin: 8px 0 20px; border: 1px solid #deca99; border-radius: 20px; background: #fff0c8; }
.lkr-next-art { display: grid; place-items: center; flex: 0 0 85px; width: 85px; height: 85px; border: 1px solid #e7cb84; border-radius: 20px; background: #fffae8; color: #a27a2c; }
.lkr-next-art svg { width: 65px; height: 65px; }
.lkr-next .lkr-eyebrow { color: #a28048; }
.lkr-next h3 { margin: 0 0 5px; color: #705029; font: 800 21px/1.15 "Manrope", sans-serif; }
.lkr-next-copy > p:not(.lkr-eyebrow) { margin: 0 0 6px; color: #977449; font-size: 12px; }
.lkr-next-progress { color: #a27c39; font-size: 11px; font-weight: 800; }
.lkr-challenge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lkr-challenge { display: flex; gap: 14px; padding: 18px; border: 1px solid #e1d8eb; border-radius: 17px; background: #fffdfc; }
.lkr-challenge-icon { flex: 0 0 42px; width: 42px; height: 42px; padding: 5px; color: #967ab4; background: #f1eaf8; border-radius: 13px; }
.lkr-challenge-icon svg { width: 100%; height: 100%; }
.lkr-challenge-copy { min-width: 0; flex: 1; }
.lkr-challenge h3 { margin: 0 0 5px; font: 800 14px/1.2 "Manrope", sans-serif; }
.lkr-challenge-copy > p { margin: 0 0 12px; font-size: 12px; color: #8d7a99; }
.lkr-goal-stamp { font-size: 9px; font-weight: 800; letter-spacing: .05em; color: #a28caf; }
.lkr-challenge[data-earned="true"] .lkr-goal-stamp { color: #518768; }
.lkr-go { display: block; margin-top: 10px; padding-inline: 14px; border-radius: 10px; color: #655088; background: #f0e7f9; }
.lkr-boost-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lkr-boost { display: flex; flex-direction: column; min-width: 0; padding: 18px; border: 1px solid #e3d9ed; border-radius: 22px; background: #fffdfc; }
.lkr-boost-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 135px; margin: -4px -4px 18px; border-radius: 16px; background: #dff4e9; color: #60947c; }
.lkr-boost[data-boost="radar"] .lkr-boost-art { background: #eee3f8; color: #9572b5; }
.lkr-boost[data-boost="sparkle"] .lkr-boost-art { background: #fff0c8; color: #aa8039; }
.lkr-boost-art svg { width: 72px; height: 72px; }
.lkr-boost-length { font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.lkr-boost h3 { margin: 0 0 8px; font: 800 20px/1.2 "Manrope", sans-serif; }
.lkr-boost-description { flex: 1; margin: 0 0 14px; color: #8b7995; font-size: 12px; }
.lkr-boost-inventory { margin: 0 0 6px; color: #806596; font-weight: 800; font-size: 12px; }
.lkr-boost-remaining { margin: 0 0 16px; color: #a18aae; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.lkr-boost[data-active="true"] .lkr-boost-remaining { color: #419270; }
.lkr-boost-actions { display: grid; gap: 8px; }
.lkr-activate { width: 100%; border-radius: 12px; color: #fff9ff; background: #7660af; box-shadow: 0 3px 0 #56408b; }
.lkr-buy { width: 100%; padding: 10px; border-radius: 12px; color: #936d33; background: #ffefc5; font-size: 10px !important; }
.lkr-boost-note { min-height: 36px; margin: 12px 0 0; color: #947d9f; font-size: 11px; line-height: 1.35; }
.lkr-status { flex: 0 0 auto; min-height: 36px; margin: 0; padding: 9px 30px 12px; color: #547e68; background: #f2ecfa; font-size: 12px; }
.lkr-status[data-tone="bad"] { color: #a45070; }
.lkr-toast { position: fixed; z-index: 260; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px; width: min(390px, calc(100vw - 28px)); padding: 14px 52px 14px 14px; transform: translateX(-50%); color: #453150; background: #fff8ec; border: 1px solid #e5c582; border-radius: 20px; box-shadow: 0 12px 36px #21102c40; pointer-events: auto; font: 500 14px/1.4 "DM Sans", system-ui, sans-serif; animation: lkr-toast-in .2s ease-out both; }
.lkr-toast-art { display: grid; place-items: center; width: 60px; height: 60px; flex: 0 0 60px; border-radius: 15px; color: #a17b41; background: #fff0bf; }
.lkr-toast-art svg { width: 46px; height: 46px; }
.lkr-toast .lkr-eyebrow { color: #a68a5c; font-size: 8px; margin-bottom: 4px; }
.lkr-toast-copy strong { display: block; font-weight: 800; font-size: 15px; }
.lkr-toast-open { padding: 0; color: #8661a8; background: transparent; font-size: 10px !important; text-align: left; }
.lkr-toast-close { position: absolute; right: 5px; top: 5px; width: 44px; border-radius: 50%; color: #9c82a7; background: transparent; font-size: 23px !important; }
body.mobile .lkr-toast { top: max(76px, calc(env(safe-area-inset-top) + 64px)); bottom: auto; }
@keyframes lkr-toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 760px) {
  .lkr-header { padding: 24px; }
  .lkr-title { font-size: 31px; }
  .lkr-wallet { margin-right: 24px; padding: 10px 12px; }
  .lkr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lkr-tabs { padding-inline: 20px; }
  .lkr-body { padding-inline: 20px; }
  .lkr-boost-grid { gap: 10px; }
  .lkr-boost { padding: 12px; }
  .lkr-boost h3 { font-size: 17px; }
}
@media (max-width: 580px) {
  .lkr-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px); border-radius: 22px; }
  .lkr-header { grid-template-columns: 1fr; gap: 14px; padding: 24px 18px 18px; }
  .lkr-heading { padding-right: 28px; }
  .lkr-eyebrow { font-size: 8px; letter-spacing: .13em; }
  .lkr-title { font-size: 30px; }
  .lkr-description { margin-top: 9px; font-size: 12px; }
  .lkr-wallet { justify-self: start; margin: 0; padding: 8px 14px; gap: 9px; border-radius: 14px; }
  .lkr-wallet svg { width: 26px; height: 26px; }
  .lkr-wallet > div { display: flex; align-items: baseline; gap: 8px; }
  .lkr-wallet strong { font-size: 22px; }
  .lkr-tabs { gap: 4px; padding: 12px 12px 10px; }
  .lkr-tab { padding-inline: 5px; font-size: 11px !important; border-radius: 11px; }
  .lkr-body { padding: 0 12px 14px; }
  .lkr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lkr-card { padding: 10px; border-radius: 16px; }
  .lkr-art { height: 110px; }
  .lkr-card h3 { font-size: 13px; }
  .lkr-panel-note { font-size: 11px; }
  .lkr-next { padding: 14px; gap: 12px; }
  .lkr-next-art { flex-basis: 60px; width: 60px; height: 60px; border-radius: 15px; }
  .lkr-next-art svg { width: 46px; height: 46px; }
  .lkr-next h3 { font-size: 17px; }
  .lkr-next-copy > p:not(.lkr-eyebrow) { font-size: 11px; }
  .lkr-challenge-grid { grid-template-columns: 1fr; }
  .lkr-challenge { padding: 15px; }
  .lkr-boost-grid { grid-template-columns: 1fr; gap: 12px; }
  .lkr-boost { display: grid; grid-template-columns: 66px 1fr; column-gap: 14px; padding: 16px; }
  .lkr-boost-art { grid-column: 1; grid-row: 1 / 6; width: 66px; height: 110px; margin: 0; padding: 9px; }
  .lkr-boost-art svg { width: 48px; height: 48px; }
  .lkr-boost-length { font-size: 7px; text-align: center; }
  .lkr-boost > :not(.lkr-boost-art) { grid-column: 2; }
  .lkr-boost-description { margin-bottom: 9px; font-size: 11px; }
  .lkr-boost-inventory { font-size: 11px; }
  .lkr-boost-remaining { margin-bottom: 10px; font-size: 8px; }
  .lkr-boost-actions { grid-template-columns: 1fr 1fr; gap: 7px; }
  .lkr-boost-actions button { font-size: 10px !important; }
  .lkr-boost-note { min-height: 0; margin-top: 10px; font-size: 10px; }
  .lkr-status { min-height: 34px; padding-inline: 16px; font-size: 11px; }
  body.mobile .lkr-toast { top: max(76px, calc(env(safe-area-inset-top) + 64px)); bottom: auto; }
}
@media (max-height: 500px) and (min-width: 581px) {
  .lkr-header { padding-block: 17px; }
  .lkr-description { display: none; }
  .lkr-title { font-size: 28px; }
  .lkr-tabs { padding-block: 9px; }
  body.mobile .lkr-toast { left: max(12px, env(safe-area-inset-left)); width: min(320px, 40vw); transform: none; animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lkr-toast { animation: none; }
  .lkr-progress i, .lkr-card { transition: none; }
}

/* R18 (readability): small pastel text in the swag panel measured 3.0-4.2:1 on its own background (WCAG AA wants 4.5:1 for body text).
   Same hues, a few steps darker, so the lilac/gold look stays; and the 7-9px labels get a 10px floor (9px on the one 66px boost chip). */
.lkr-eyebrow { color: #74608b; }
.lkr-description { color: #706280; }
.lkr-wallet span { color: #886432; }
.lkr-panel-note { color: #7c6989; }
.lkr-rarity { color: #86689c; font-size: 10px; }
.lkr-card-description { color: #7e6d87; }
.lkr-progress-copy { color: #85689a; }
.lkr-next .lkr-eyebrow { color: #84683b; }
.lkr-next-copy > p:not(.lkr-eyebrow) { color: #866741; }
.lkr-next-progress { color: #86662f; }
.lkr-challenge-copy > p { color: #806c8d; }
.lkr-goal-stamp { color: #866997; font-size: 10px; }
.lkr-boost-description { color: #806d8a; }
.lkr-boost-remaining { color: #866997; font-size: 10px; }
.lkr-boost[data-active="true"] .lkr-boost-remaining { color: #398062; }
.lkr-boost-note { color: #846b90; }
.lkr-buy { color: #88652f; }
.lkr-status { color: #4d735f; }
.lkr-toast .lkr-eyebrow { color: #846e48; font-size: 10px; }
.lkr-toast-close { color: #846690; }
.lkr-stamp { font-size: 10px; }
.lkr-challenge[data-earned="true"] .lkr-goal-stamp { color: #4b7d61; }
.lkr-boost-length { color: #4a725f; } /* inherited the icon colour (3.0:1 on its tint) */
.lkr-boost[data-boost="radar"] .lkr-boost-length { color: #7c54a0; }
.lkr-boost[data-boost="sparkle"] .lkr-boost-length { color: #88662d; }
@media (max-width: 580px) {
  .lkr-eyebrow, .lkr-boost-remaining { font-size: 10px; }
  .lkr-boost-length { font-size: 9px; }
}
/* R18: the focus ring (#56ac8c) was 2.6:1 on the pale panel; WCAG wants 3:1 for focus indicators. */
.lkr-dialog button:focus-visible, .lkr-toast button:focus-visible { outline-color: #2f7d63; }
