:root {
  color-scheme: light;
  --ink: #191714;
  --muted: #756c61;
  --line: #d7cbbb;
  --paper: #fffaf0;
  --panel: #ffffff;
  --amber: #f0b840;
  --red: #ef4d43;
  --mint: #42a486;
  --blue: #356eb8;
  --table: #26211b;
  --felt: #155f50;
  --shadow: 0 16px 48px rgba(39, 26, 12, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(232, 80, 66, 0.12), transparent 32%),
    linear-gradient(315deg, rgba(63, 111, 181, 0.12), transparent 38%),
    #f7f1e8;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

.shell {
  min-height: 100vh;
  padding: 24px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 20px;
  max-width: 1480px;
  margin: 0 auto;
}

.controls,
.panel,
.sources {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.controls {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--red);
  color: white;
  font-weight: 900;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 1.4rem;
}

.page-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.page-nav a {
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff8ec;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.page-nav a.active {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

h2 {
  font-size: 1rem;
}

p,
.notice,
.field span,
.toggles,
.meta,
.source {
  color: var(--muted);
}

.field {
  display: grid;
  gap: 8px;
}

.player-stepper {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
}

.player-stepper strong {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  font-size: 1.15rem;
}

.player-stepper button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 1.35rem;
  font-weight: 900;
}

select,
input[type="search"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
}

input[type="range"] {
  accent-color: var(--red);
}

.pack-list,
.toggles {
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
}

.pack-list {
  margin: 0;
  border: 0;
  padding: 0;
}

.pack-list legend {
  padding: 0 0 8px;
  color: var(--muted);
}

.pack-list label,
.toggles label {
  display: flex;
  gap: 8px;
  align-items: start;
}

.pack-list label {
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 750;
}

.pack-list label span {
  min-width: 0;
}

.pack-count {
  flex: 0 0 auto;
  margin-left: auto;
  border: 1px solid rgba(117, 108, 97, 0.22);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.pack-list input,
.toggles input {
  width: 20px;
  height: 20px;
  accent-color: var(--red);
}

.notice {
  min-height: 0;
  border-left: 4px solid var(--amber);
  padding: 10px 12px;
  background: #fff7e1;
  border-radius: 6px;
  font-size: 0.92rem;
}

.output {
  display: grid;
  gap: 18px;
}

.reference-page {
  display: grid;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.reference-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
}

.stat {
  min-height: 88px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1.65rem;
}

.stat em {
  display: block;
  margin-top: 2px;
  color: var(--red);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.1;
}

.panel {
  padding: 16px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

button {
  min-width: 72px;
  min-height: 36px;
  border: 1px solid #c8bcae;
  border-radius: 6px;
  background: #fff8ec;
  color: var(--ink);
  cursor: pointer;
}

button:hover {
  border-color: var(--red);
}

.steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid rgba(217, 211, 202, 0.7);
}

.steps li:first-child {
  border-top: 0;
}

.steps li::before {
  counter-increment: steps;
  content: counter(steps);
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
}

.ingredients {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bucket {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
}

.bucket summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 900;
}

.bucket summary::-webkit-details-marker {
  display: none;
}

.bucket summary strong {
  display: grid;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
}

.bucket-body {
  padding: 0 12px 12px;
}

.bucket h3 {
  margin: 0;
  font-size: 0.98rem;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid rgba(217, 211, 202, 0.7);
}

.row:first-of-type {
  border-top: 0;
}

.count {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.card {
  display: grid;
  gap: 8px;
  min-height: 152px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
}

.card.starter {
  border-top-color: var(--mint);
}

.card.danger {
  border-top-color: var(--red);
}

.card h3 {
  margin: 0;
  font-size: 1rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  background: white;
  color: var(--muted);
  font-size: 0.78rem;
}

.effect {
  color: #34302c;
  font-size: 0.92rem;
  line-height: 1.42;
}

.detail-section {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.detail-section h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-section p {
  margin: 0;
  color: #34302c;
  font-size: 0.92rem;
  line-height: 1.42;
}

.image-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
}

.image-card.starter {
  border-top-color: var(--mint);
}

.image-card.danger {
  border-top-color: var(--red);
}

.image-card.party {
  border-top-color: var(--blue);
}

.image-card.zombie {
  border-top-color: #7c4cc2;
}

.image-card.streaking {
  border-top-color: #e5a51a;
}

.image-card:hover,
.image-card[aria-expanded="true"] {
  border-color: var(--red);
  box-shadow: 0 10px 28px rgba(56, 42, 26, 0.14);
  transform: translateY(-1px);
}

.image-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  image-rendering: auto;
}

.image-card span {
  font-weight: 800;
  font-size: 0.9rem;
}

.image-card em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.3;
}

.image-card small {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.card-detail {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7e1;
}

.card-detail.active {
  position: fixed;
  z-index: 50;
  top: 50%;
  left: 50%;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  margin: 0;
  transform: translate(-50%, -50%);
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  align-items: center;
  overflow: auto;
  box-shadow: 0 28px 80px rgba(20, 14, 8, 0.36);
}

.modal-close {
  position: sticky;
  z-index: 2;
  top: 0;
  justify-self: end;
  grid-column: 1 / -1;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  margin: -4px -4px -46px 0;
  border-radius: 999px;
  border-color: rgba(25, 23, 20, 0.18);
  background: rgba(255, 250, 241, 0.94);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(20, 14, 8, 0.18);
}

.detail-backdrop {
  display: none;
}

.card-detail.empty {
  display: block;
}

.card-detail img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.panel-heading.compact {
  margin-bottom: 8px;
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  padding: 14px 16px;
}

.sources h2 {
  width: 100%;
}

.sources a {
  color: #245ca8;
  font-size: 0.9rem;
}

.hidden {
  display: none;
}

@media (max-width: 980px) {
  .workspace,
  .ingredients {
    grid-template-columns: 1fr;
  }

  .controls {
    position: static;
  }

  .summary-grid,
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-header {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  body {
    background: #f6efe6;
  }

  body:has(.card-detail.active) {
    overflow: hidden;
  }

  .shell {
    padding: 10px 10px 80px;
  }

  .workspace {
    gap: 12px;
  }

  .controls,
  .panel,
  .sources,
  .reference-header {
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(56, 42, 26, 0.08);
  }

  .controls {
    gap: 12px;
    padding: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: 1.25rem;
  }

  .brand p {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .page-nav {
    position: fixed;
    z-index: 30;
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 250, 0.94);
    box-shadow: 0 10px 28px rgba(56, 42, 26, 0.2);
    backdrop-filter: blur(10px);
  }

  .page-nav a {
    min-height: 44px;
    font-size: 0.95rem;
  }

  .pack-list {
    grid-template-columns: 1fr;
  }

  .pack-list label {
    min-height: 44px;
    padding: 9px 10px;
    font-size: 0.94rem;
  }

  .pack-count {
    padding: 3px 7px;
    font-size: 0.68rem;
  }

  .toggles {
    font-size: 0.9rem;
  }

  .notice {
    max-height: 116px;
    overflow: auto;
    font-size: 0.86rem;
  }

  .summary-grid {
    position: sticky;
    z-index: 20;
    top: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 0;
    background: #f6efe6;
  }

  .stat {
    min-height: 64px;
    padding: 8px;
    border-radius: 8px;
  }

  .stat span {
    font-size: 0.66rem;
    line-height: 1.12;
  }

  .stat strong {
    margin-top: 5px;
    font-size: 1.3rem;
  }

  .stat em {
    font-size: 0.58rem;
  }

  .panel {
    padding: 14px;
  }

  .panel-heading {
    margin-bottom: 10px;
  }

  button {
    min-width: 64px;
    min-height: 40px;
  }

  .steps li {
    padding: 9px 0;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .ingredients {
    gap: 10px;
  }

  .bucket summary {
    min-height: 48px;
  }

  .row {
    padding: 8px 0;
    font-size: 0.95rem;
  }

  .reference-page {
    gap: 12px;
  }

  .reference-header {
    padding: 14px;
  }

  .reference-body .panel {
    padding: 12px;
  }

  .reference-body .panel-heading {
    position: sticky;
    z-index: 16;
    top: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 0 10px;
    background: white;
  }

  .reference-body .panel-heading h2 {
    display: none;
  }

  .reference-body input[type="search"] {
    min-height: 44px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .image-card {
    gap: 7px;
    padding: 6px;
  }

  .image-card img {
    height: auto;
    aspect-ratio: 0.72;
  }

  .image-card span {
    font-size: 0.82rem;
    line-height: 1.15;
  }

  .image-card em {
    display: none;
  }

  .image-card small {
    display: none;
  }

  .card-detail {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 36px);
    transform: translate(-50%, -50%);
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    overflow: auto;
    box-shadow: 0 24px 70px rgba(20, 14, 8, 0.38);
  }

  .card-detail.empty {
    display: none;
  }

  .detail-backdrop {
    position: fixed;
    z-index: 45;
    inset: 0;
    display: block;
    background: rgba(33, 31, 29, 0.42);
  }

  .card-detail img {
    max-height: 48vh;
  }

  .card-detail .panel-heading.compact {
    display: flex;
    position: static;
    grid-template-columns: none;
    padding: 0;
    background: transparent;
  }

  .card-detail .panel-heading.compact h2 {
    display: block;
  }

  .card-detail .effect {
    font-size: 0.9rem;
  }

  .detail-section {
    margin-top: 10px;
  }

  .detail-section p {
    font-size: 0.9rem;
  }

  .sources {
    padding: 14px;
    font-size: 0.9rem;
  }
}

/* Mobile-first card-table revamp */
body {
  background:
    linear-gradient(180deg, #1f1a17 0%, #30261e 36%, #efe4d4 36%, #efe4d4 100%);
}

.controls,
.reference-header {
  background: linear-gradient(180deg, #fffaf1, #fff7e8);
  border-color: #cdbda8;
}

.setup-body .controls {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(255, 247, 232, 0.98)),
    linear-gradient(135deg, var(--red), var(--felt));
}

.brand-mark {
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14);
}

.pack-list label {
  position: relative;
  overflow: hidden;
  border-color: #d1c0aa;
  background: linear-gradient(180deg, #fffef9, #fff7e7);
}

.pack-list input {
  appearance: none;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid #b9a893;
  border-radius: 7px;
  background: #fff;
}

.pack-list input:checked {
  border-color: var(--red);
  background: var(--red);
}

.pack-list input:checked::after {
  content: "";
  width: 10px;
  height: 16px;
  border: solid #fff;
  border-width: 0 4px 4px 0;
  transform: rotate(45deg) translateY(-1px);
}

.result-hero {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(21, 95, 80, 0.96), rgba(23, 31, 28, 0.98)),
    #155f50;
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 28px rgba(21, 95, 80, 0.22);
}

.result-hero .eyebrow {
  color: #f8d779;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.result-hero > strong {
  font-size: 3.1rem;
  line-height: 0.95;
}

.result-hero > span:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.result-metrics > span {
  display: grid;
  gap: 3px;
}

.result-metrics b,
.result-metrics small {
  display: block;
  min-width: 0;
}

.result-metrics b {
  font-size: 1.25rem;
  color: #fff;
}

.result-metrics small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  line-height: 1.15;
}

.notice {
  border-left-color: var(--felt);
  background: #eef8f2;
  color: #36534a;
}

.stat {
  background: linear-gradient(180deg, #ffffff, #fff8eb);
}

.stat strong {
  color: #101010;
}

.panel {
  background: linear-gradient(180deg, #ffffff, #fffaf3);
}

.steps li::before {
  background: var(--felt);
}

.bucket summary {
  background: linear-gradient(180deg, #fffdfa, #fff6e8);
}

.reference-body {
  background: #efe4d4;
}

.reference-body .reference-header {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(25, 23, 20, 0.96), rgba(61, 43, 31, 0.98)),
    #191714;
  border-color: rgba(255, 255, 255, 0.12);
}

.reference-body .reference-header p {
  color: rgba(255, 255, 255, 0.72);
}

.reference-body .panel {
  background: #fffaf1;
}

.filter-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 14px;
  overflow: visible;
  padding-bottom: 4px;
}

.filter-chip {
  flex: 0 0 auto;
  min-width: auto;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  font-weight: 850;
}

.filter-chip.danger {
  border-color: rgba(239, 77, 67, 0.55);
  color: #9f241f;
  background: #fff2ef;
}

.filter-chip.starter {
  border-color: rgba(66, 164, 134, 0.55);
  color: #166b57;
  background: #eef9f5;
}

.filter-chip.party {
  border-color: rgba(53, 110, 184, 0.5);
  color: #214f8d;
  background: #eff5ff;
}

.filter-chip.zombie {
  border-color: rgba(124, 76, 194, 0.5);
  color: #59309a;
  background: #f3efff;
}

.filter-chip.streaking {
  border-color: rgba(229, 165, 26, 0.6);
  color: #805400;
  background: #fff6d9;
}

.filter-chip.active {
  border-color: var(--felt);
  background: var(--felt);
  color: #fff;
}

.filter-chip.danger.active {
  border-color: var(--red);
  background: var(--red);
}

.filter-chip.starter.active {
  border-color: var(--mint);
  background: var(--mint);
}

.filter-chip.party.active {
  border-color: var(--blue);
  background: var(--blue);
}

.filter-chip.zombie.active {
  border-color: #7c4cc2;
  background: #7c4cc2;
}

.filter-chip.streaking.active {
  border-color: #e5a51a;
  background: #e5a51a;
  color: #191714;
}

.image-card {
  background: linear-gradient(180deg, #fffdf7, #fff8eb);
  box-shadow: 0 8px 18px rgba(39, 26, 12, 0.09);
}

.image-card img {
  border-radius: 5px;
}

.card-detail.active {
  background: linear-gradient(180deg, #fff7df, #fff2cf);
}

@media (max-width: 620px) {
  body {
    background:
      linear-gradient(180deg, #1c1916 0 170px, #efe4d4 170px 100%);
  }

  .reference-body {
    background: #efe4d4;
  }

  .setup-body .workspace,
  .reference-page {
    max-width: 430px;
  }

  .controls {
    border: 0;
  }

  .setup-body .controls {
    padding: 16px;
    background: linear-gradient(180deg, #fffaf1, #fff4e4);
  }

  .brand {
    align-items: center;
  }

  .brand h1 {
    letter-spacing: 0;
  }

  .pack-list {
    gap: 8px;
  }

  .pack-list label {
    min-height: 54px;
    box-shadow: inset 0 -2px 0 rgba(39, 26, 12, 0.04);
  }

  .player-stepper {
    grid-template-columns: 54px 1fr 54px;
  }

  .player-stepper strong,
  .player-stepper button {
    min-height: 54px;
  }

  .player-stepper button {
    border-color: var(--red);
    color: var(--ink);
    background: #fff8eb;
  }

  .notice {
    max-height: none;
    padding: 11px 12px;
  }

  .result-hero {
    order: -1;
    margin-bottom: 2px;
  }

  .summary-grid {
    top: -1px;
    gap: 7px;
  }

  .stat {
    border: 0;
    box-shadow: 0 8px 22px rgba(39, 26, 12, 0.12);
  }

  .panel {
    border: 0;
  }

  .reference-body .reference-header {
    border: 0;
  }

  .reference-body .panel-heading {
    background: #fffaf1;
  }

  .filter-rail {
    position: static;
    margin: -2px -12px 12px;
    padding: 0 12px 8px;
    background: #fffaf1;
  }

  .cards {
    align-items: start;
  }

  .image-card {
    border: 0;
    border-top: 5px solid var(--blue);
    box-shadow: 0 8px 18px rgba(39, 26, 12, 0.13);
  }

  .image-card:hover,
  .image-card[aria-expanded="true"] {
    transform: none;
  }

  .card-detail.active {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card-detail .badges {
    margin: 5px 0 7px;
  }

  .page-nav {
    background: rgba(255, 250, 241, 0.96);
  }
}
