/* Lootivo v29 — clear navigation, the existing plum / warm-gold identity. */
body:not([data-view="cases"]) .game-switch,
body:not([data-view="cases"]) .drop-strip { display: none; }
body:not([data-view="cases"]) .demo-notice { margin-top: 20px; }
body[data-catalog-scope="all"] #cases .feature-row { display: none; }
.scope-control select {
  font: inherit; font-size: .875rem; color: #e5d8ef; background: #211929;
  border: 1px solid #654b72; border-radius: 8px; min-height: 44px;
  padding: 10px 30px 10px 12px; max-width: 100%;
}
.catalog-tools { flex-wrap: wrap; }
.catalog-tools .search { flex: 1 1 230px; min-width: 0; }
.catalog-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0 4px; min-height: 44px; }
.catalog-status p { font-size: .875rem; color: #c3afcf; margin: 0; }
.catalog-status .ghost { font-size: .875rem; min-height: 44px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.filter-chip { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; max-width: 100%; padding: 8px 12px; border: 1px solid #78568a; border-radius: 7px; background: #312039; color: #e9d7f2; font-size: .875rem; line-height: 1.4; text-align: left; }
.filter-chip > span:first-child { overflow-wrap: anywhere; }
.filter-chip > span:last-child { color: #f1c483; font-size: 1.1rem; }
.filter-chip:hover { border-color: #dbb375; background: #3e2b38; }
.range-error { color: #ffc1ac; font-size: .875rem; line-height: 1.5; margin: 12px 0; }
.price-range input[aria-invalid="true"] { border-color: #ef9d86; }
.case-game-label { display: block; color: #cbb1db; font-size: .75rem; margin-bottom: 6px; }
.recent-cases { margin: 6px 0 36px; }
.recent-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.recent-heading .eyebrow { font-size: .6875rem; letter-spacing: .15em; color: #b89bc6; }
.recent-heading h2 { margin: 6px 0 0; font-size: 1.25rem; letter-spacing: -.02em; }
.recent-heading .ghost { font-size: .8125rem; color: #c3a9cf; min-height: 44px; }
.recent-cases-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.recent-case { display: flex; gap: 12px; align-items: center; padding: 12px; min-width: 0; width: 100%; color: #f3e9f8; text-align: left; background: linear-gradient(120deg,#291d30,#1b1622); border: 1px solid #55405f; border-radius: 10px; transition: border-color .18s, background .18s; }
.recent-case:hover { border-color: var(--case-color,#e3b778); background: #2e2236; }
.recent-cover { display: block; width: 74px; height: 74px; flex: 0 0 74px; border-radius: 7px; mix-blend-mode: lighten; }
.recent-copy { display: grid; gap: 5px; min-width: 0; flex: 1; }
.recent-copy small { font-size: .75rem; color: #bca3c9; }
.recent-copy strong { font-size: .9375rem; line-height: 1.3; overflow-wrap: anywhere; }
.recent-copy > span { font-size: .875rem; color: #efd0a0; font-variant-numeric: tabular-nums; }
.recent-case > svg { width: 18px; height: 18px; flex: 0 0 18px; color: #bda1cd; }
.detail-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.detail-toolbar { flex-wrap: wrap; gap: 12px; }
.detail-section-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 12px 0 22px; }
.detail-section-links button { border: 1px solid #594365; border-radius: 7px; padding: 10px 16px; font-size: .875rem; min-height: 44px; color: #d4bdde; background: #241a2c; }
.detail-section-links button:hover { color: #f3d39d; border-color: #aa8052; }
#opening-panel,#case-contents,#odds-info-button { scroll-margin-top: 110px; }
.share-dialog { width: min(540px,calc(100vw - 32px)); max-height: 85dvh; padding: 28px; border: 1px solid #785387; border-radius: 16px; background: #251b2e; color: #f5edf9; }
.share-dialog::backdrop { background: #0e0919cc; }
.share-dialog h2 { font-size: 1.5rem; margin: 0 0 14px; }
.share-dialog p { line-height: 1.65; color: #c9b6d4; font-size: .9375rem; }
.share-dialog label { display: block; margin-top: 22px; font-size: .875rem; }
.share-dialog input { display: block; font: inherit; font-size: 16px; width: 100%; border: 1px solid #795788; border-radius: 8px; padding: 13px; margin: 8px 0 18px; background: #17111e; color: #f4d8a7; }
.recent-case:focus-visible,.filter-chip:focus-visible,.scope-control select:focus-visible,.detail-section-links button:focus-visible,.share-dialog :focus-visible { outline: 2px solid #f5c786; outline-offset: 3px; }
@media (max-width: 1050px) {
  .recent-cases-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .side-nav { padding-bottom: env(safe-area-inset-bottom,0px); height: calc(67px + env(safe-area-inset-bottom,0px)); }
  .container { padding-bottom: calc(95px + env(safe-area-inset-bottom,0px)); }
  #feedback { bottom: calc(82px + env(safe-area-inset-bottom,0px)); }
  .sidebar #admin-link { bottom: calc(80px + env(safe-area-inset-bottom,0px)); }
}
@media (max-width: 600px) {
  .catalog-tools { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .catalog-tools .search,.catalog-tools .price-range { grid-column: 1/-1; }
  .catalog-tools .scope-control { grid-column: 1/-1; }
  .scope-control select,.catalog-tools .sort-control select { width: 100%; font-size: 16px; }
  .catalog-tools .sort-control { min-width: 0; }
  .catalog-tools .price-range { display: flex; }
  .catalog-tools .price-range label { flex: 1; min-width: 0; }
  .catalog-tools .price-range input { width: 100%; min-width: 0; }
  .catalog-status { gap: 8px; }
  .catalog-status p,.catalog-status .ghost { font-size: .8125rem; }
  .catalog-status .ghost { padding: 8px; }
  .recent-cases { margin-bottom: 28px; }
  .recent-heading { gap: 8px; }
  .recent-heading h2 { font-size: 1.0625rem; }
  .recent-heading .ghost { padding: 6px; font-size: .75rem; max-width: 100px; white-space: normal; }
  .recent-cases-list { gap: 8px; }
  .recent-case { padding: 10px; gap: 8px; flex-wrap: wrap; align-content: start; }
  .recent-cover { width: 48px; height: 48px; flex-basis: 48px; }
  .recent-copy { flex-basis: 90px; }
  .recent-copy strong { font-size: .875rem; }
  .recent-case > svg { display: none; }
  .detail-toolbar { align-items: center; gap: 8px; }
  .detail-shortcuts { gap: 4px; }
  .detail-shortcuts .ghost,#back { padding: 9px 6px; min-height: 44px; }
  .detail-shortcuts .ghost svg { width: 15px; height: 15px; }
  .detail-section-links { gap: 6px; margin-bottom: 18px; }
  .detail-section-links button { font-size: .8125rem; padding: 9px 11px; }
  .share-dialog { padding: 22px; }
  #opening-panel,#case-contents,#odds-info-button { scroll-margin-top: 130px; }
}
@media (prefers-reduced-motion: reduce) { .recent-case { transition: none; } }
