:root {
  --cocoa-950: #160904;
  --cocoa-900: #211008;
  --cocoa-800: #35190a;
  --cream: #fff0ca;
  --honey: #ffb20f;
  --honey-light: #ffd15b;
  --orange: #f27d16;
  --pink: #ff4664;
  --pink-dark: #be1735;
  --ink: #1b0d06;
  --good: #28a664;
  --bad: #d83737;
  --white: #fffaf0;
  --common: #7f8792;
  --uncommon: #2ca867;
  --rare: #2589c8;
  --epic: #883ed0;
  --legendary: #e89f00;
  --pixel: polygon(0 10px, 10px 10px, 10px 0, calc(100% - 10px) 0, calc(100% - 10px) 10px, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 10px calc(100% - 10px), 0 calc(100% - 10px));
  --pixel-small: polygon(0 6px, 6px 6px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px));
  --display: "Press Start 2P", ui-monospace, monospace;
  --body: "VT323", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(255, 177, 15, 0.025) 50%, transparent 50%) 0 0 / 100% 4px,
    radial-gradient(circle at 18% 12%, rgba(255, 178, 15, 0.14), transparent 24%),
    radial-gradient(circle at 82% 48%, rgba(255, 70, 100, 0.08), transparent 26%),
    var(--cocoa-950);
  color: var(--cream);
  font-family: var(--body);
  font-size: 20px;
  line-height: 1.45;
  image-rendering: pixelated;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 209, 91, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  z-index: -1;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .eyebrow { font-family: var(--display); }
h1 { font-size: clamp(1.55rem, 3.1vw, 2.65rem); line-height: 1.38; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.2rem, 2.2vw, 1.85rem); line-height: 1.35; }
a { color: inherit; }
button { font: inherit; }

button:focus-visible,
a:focus-visible { outline: 4px solid var(--honey-light); outline-offset: 4px; }

.network-banner {
  position: relative;
  z-index: 50;
  background: var(--bad);
  color: white;
  border-bottom: 3px solid var(--ink);
  padding: 10px 20px;
  text-align: center;
  font-family: var(--display);
  font-size: 0.68rem;
  line-height: 1.6;
}
.network-banner--hidden { display: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px max(24px, calc((100vw - 1240px) / 2));
  background: rgba(22, 9, 4, 0.94);
  border-bottom: 3px solid #5a2b0e;
  backdrop-filter: blur(10px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; width: max-content; }
.brand__mark { width: 42px; height: 42px; object-fit: contain; }
.brand__wordmark { font-family: var(--display); font-size: 0.72rem; line-height: 1.4; color: var(--white); }
.brand__wordmark b { color: var(--honey); }

.topnav { display: flex; align-items: center; gap: 28px; }
.topnav a { color: #dfb87c; text-decoration: none; font-family: var(--display); font-size: 0.58rem; text-transform: uppercase; }
.topnav a:hover { color: var(--honey-light); }

.wallet-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.chain-pill,
.wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 12px;
  border: 2px solid #6b3514;
  background: #291308;
  color: #ffd899;
  font-size: 0.92rem;
  white-space: nowrap;
}
.chain-pill i,
.live-chip i { width: 8px; height: 8px; background: var(--good); box-shadow: 2px 2px 0 #0c542e; }
.wallet-pill { border-color: var(--honey); color: white; }
.wallet-pill--hidden { display: none; }

.royalty-strip {
  position: relative;
  z-index: 30;
  color: var(--cream);
  background:
    linear-gradient(90deg, rgba(255, 178, 15, 0.11), transparent 30%, transparent 70%, rgba(255, 70, 100, 0.09)),
    #2b1408;
  border-bottom: 3px solid #6e3513;
  box-shadow: 0 7px 0 rgba(8, 2, 0, 0.35);
}
.royalty-strip__inner {
  width: min(100%, 1240px);
  min-height: 104px;
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.75fr 1.05fr auto auto;
  align-items: center;
  gap: clamp(16px, 2.5vw, 34px);
}
.royalty-strip__title { display: flex; flex-direction: column; gap: 7px; }
.royalty-strip__kicker { color: var(--honey); font-family: var(--display); font-size: 0.5rem; line-height: 1.5; }
.royalty-strip__title strong { color: var(--white); font-family: var(--display); font-size: 0.78rem; line-height: 1.5; }
.royalty-metric { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.royalty-metric span { color: #bd8d58; font-size: 0.92rem; line-height: 1; }
.royalty-metric strong { overflow-wrap: anywhere; color: var(--honey-light); font-family: var(--display); font-size: 0.66rem; line-height: 1.55; }
.royalty-strip__split { color: #d5aa77; font-size: 0.95rem; white-space: nowrap; }
.royalty-strip__split b { color: var(--white); }
.royalty-strip__split i { padding: 0 4px; color: var(--pink); font-style: normal; }
.btn--royalty { --button-bg: var(--honey); --button-shadow: #a44f0e; min-width: 220px; font-size: 0.56rem; }

.brand-banner {
  position: relative;
  width: min(100%, 2048px);
  margin-inline: auto;
  overflow: hidden;
  border-bottom: 5px solid #5a2b0e;
  background: #8e4314;
}
.brand-banner img { width: 100%; height: auto; display: block; }
.brand-banner__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 9, 4, 0.18), transparent 22%, transparent 78%, rgba(22, 9, 4, 0.18)),
    linear-gradient(transparent 72%, rgba(22, 9, 4, 0.72));
  pointer-events: none;
}
.brand-banner__copy {
  position: absolute;
  top: 7.5%;
  left: 50%;
  display: flex;
  align-items: baseline;
  gap: clamp(8px, 1vw, 18px);
  transform: translateX(-50%);
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(0.66rem, 2vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  text-shadow:
    0 0 0 var(--ink),
    3px 3px 0 var(--ink),
    6px 6px 0 rgba(64, 22, 3, 0.8);
}
.brand-banner__copy strong { color: var(--pink); }

main { max-width: 1240px; margin: 0 auto; padding: 58px 24px 100px; }

.command-deck {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: 30px;
  align-items: stretch;
  margin-bottom: 88px;
}

.command-deck__intro {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(145deg, rgba(255, 178, 15, 0.16), transparent 48%), var(--cocoa-900);
  border: 3px solid #6e3513;
  clip-path: var(--pixel);
  box-shadow: inset 0 0 0 5px #2a1308, 10px 10px 0 #0d0502;
}
.command-deck__intro::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -100px;
  top: -120px;
  border: 20px solid rgba(255, 70, 100, 0.12);
  transform: rotate(45deg);
}

.eyebrow { margin: 0 0 18px; color: var(--honey); font-size: 0.62rem; line-height: 1.6; letter-spacing: 0.08em; }
.eyebrow--dark { color: #8a3a15; }
.lead { max-width: 38ch; color: #e6bf83; font-size: 1.35rem; line-height: 1.4; }
.lead strong { color: var(--white); }
.command-deck__actions { display: flex; align-items: center; gap: 18px; margin: 28px 0 20px; }
.microcopy { max-width: 18ch; color: #a77a4c; font-size: 0.92rem; line-height: 1.2; }
.command-deck__jars { display: block; width: min(100%, 410px); margin: 30px auto 0; filter: drop-shadow(0 14px 0 rgba(0, 0, 0, 0.22)); }

.btn {
  --button-bg: var(--cream);
  --button-shadow: #7c3d12;
  appearance: none;
  border: 3px solid var(--ink);
  clip-path: var(--pixel-small);
  min-height: 48px;
  padding: 12px 18px;
  background: var(--button-bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.65rem;
  line-height: 1.55;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--button-shadow);
  transition: transform 80ms steps(1), box-shadow 80ms steps(1), filter 150ms ease;
}
.btn:hover:not(:disabled) { filter: brightness(1.08) saturate(1.08); }
.btn:active:not(:disabled) { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--button-shadow); }
.btn:disabled { cursor: not-allowed; opacity: 0.42; filter: grayscale(0.35); box-shadow: 3px 3px 0 rgba(27, 13, 6, 0.45); }
.btn--primary { --button-bg: var(--pink); --button-shadow: var(--pink-dark); color: white; text-shadow: 2px 2px 0 #8c1028; }
.btn--cream { --button-bg: var(--cream); --button-shadow: #9b6423; }
.btn--dark { --button-bg: var(--ink); --button-shadow: #9a4216; color: var(--honey-light); border-color: #53250d; }
.btn--opensea { --button-bg: #2081e2; --button-shadow: #0b477f; display: grid; place-items: center; color: white; border-color: #0b365e; text-decoration: none; }
.btn--topbar { min-height: 42px; padding: 8px 13px; font-size: 0.52rem; box-shadow: 3px 3px 0 var(--button-shadow); white-space: nowrap; }
.btn--large { min-height: 58px; padding: 15px 22px; font-size: 0.7rem; }
.btn--wide { width: 100%; }
.btn--connect { min-width: 116px; }
.btn--small { width: 100%; margin-top: auto; font-size: 0.58rem; min-height: 46px; padding: 10px 12px; }

.pool {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  color: var(--ink);
  background: linear-gradient(rgba(126, 61, 18, 0.045) 50%, transparent 50%) 0 0 / 100% 4px, var(--cream);
  border: 4px solid var(--ink);
  clip-path: var(--pixel);
  box-shadow: inset 0 0 0 6px var(--honey-light), 10px 10px 0 #0d0502;
}
.pool::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px; background: repeating-linear-gradient(90deg, var(--pink) 0 26px, var(--honey) 26px 52px); }
.pool__topline { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.pool__topline h2 { margin-bottom: 0; font-size: clamp(1rem, 1.8vw, 1.45rem); }
.live-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 2px solid var(--ink); background: #fff8e7; font-family: var(--display); font-size: 0.52rem; white-space: nowrap; }
.pool__value { margin: 35px 0 26px; font-family: var(--display); font-size: clamp(1.8rem, 5vw, 3.5rem); line-height: 1; letter-spacing: -0.06em; }
.pool__split-bar { height: 25px; border: 3px solid var(--ink); background: #fff8e8; overflow: hidden; }
.pool__split-fill { display: block; width: 80%; height: 100%; border-right: 3px solid var(--ink); background: repeating-linear-gradient(90deg, var(--honey) 0 13px, var(--orange) 13px 26px); }
.pool__split-labels { display: flex; justify-content: space-between; gap: 20px; margin: 8px 0 22px; color: #6f4c28; font-size: 1rem; }
.pool__split-labels strong { color: var(--ink); font-family: var(--display); font-size: 0.62rem; }
.pool__hint { margin: 18px 0 24px; color: #704b28; line-height: 1.25; }
.pool__stats { display: grid; grid-template-columns: 1fr 1fr; border: 3px solid var(--ink); background: #f6d998; }
.pool__stats div { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; }
.pool__stats div + div { border-left: 3px solid var(--ink); }
.pool__stats span { color: #79542b; font-size: 0.9rem; }
.pool__stats strong { font-family: var(--display); font-size: 0.58rem; }

.panel { margin-bottom: 92px; }
.panel__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 3px solid #6a3212; }
.panel__head .eyebrow { margin-bottom: 10px; }
.panel__head h2 { margin-bottom: 0; color: var(--white); }
.panel__meta { text-align: right; }
.panel__meta span { display: block; margin-bottom: 5px; color: var(--honey); font-family: var(--display); font-size: 0.62rem; }
.panel__meta p { margin: 0; color: #b88956; font-size: 1rem; }

.grid { display: grid; gap: 22px; }
.grid--cookies { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid--jars { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.empty-state { grid-column: 1 / -1; min-height: 145px; display: grid; place-items: center; margin: 0; padding: 30px; border: 3px dashed #804217; background: rgba(53, 25, 10, 0.72); color: #bf8d59; text-align: center; font-size: 1.15rem; }
.empty-state--loading { animation: pulse 1.1s steps(2, end) infinite; }

.cookie-card,
.jar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 13px;
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--ink);
  clip-path: var(--pixel-small);
  box-shadow: inset 0 0 0 3px var(--honey-light), 7px 7px 0 #0c0401;
  transition: transform 120ms steps(2, end), box-shadow 120ms steps(2, end);
}
.cookie-card:hover,
.jar-card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 3px var(--honey-light), 8px 12px 0 #0c0401; }
.cookie-card::before,
.jar-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: var(--honey); z-index: 2; }
.cookie-card img,
.jar-card img { width: 100%; display: block; object-fit: contain; background: #f4dba8; border: 3px solid var(--ink); image-rendering: pixelated; }
.cookie-card img { aspect-ratio: 1; }
.jar-card img { aspect-ratio: 1; }
.cookie-card__name,
.jar-card__name { font-family: var(--display); font-size: 0.66rem; line-height: 1.5; }
.cookie-card__status { margin-top: auto; min-height: 46px; display: flex; align-items: center; color: #167447; font-size: 1rem; }
.cookie-card__status::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; background: var(--good); color: white; font-family: var(--display); font-size: 0.55rem; }
.jar-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.jar-card__claimable { padding: 9px 10px; background: #f5d68e; border: 2px solid #a36b25; color: #785027; font-size: 0.95rem; }
.jar-card__claimable strong { display: block; color: var(--ink); font-family: var(--display); font-size: 0.57rem; line-height: 1.6; overflow-wrap: anywhere; }

.rarity-badge { display: inline-block; padding: 5px 7px; color: white; border: 2px solid var(--ink); font-family: var(--display); font-size: 0.45rem; white-space: nowrap; text-shadow: 1px 1px 0 rgba(0,0,0,.55); }
.rarity-badge--common { background: var(--common); }
.rarity-badge--uncommon { background: var(--uncommon); }
.rarity-badge--rare { background: var(--rare); }
.rarity-badge--epic { background: var(--epic); }
.rarity-badge--legendary { background: var(--legendary); }
.jars-toolbar { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.jars-toolbar__total { color: #d4a66f; }

.rarity-key {
  display: grid;
  grid-template-columns: 0.75fr 1.75fr;
  gap: 32px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--honey-light);
  color: var(--ink);
  border: 4px solid var(--ink);
  clip-path: var(--pixel);
  box-shadow: 10px 10px 0 #0b0301;
}
.rarity-key__copy h2 { margin-bottom: 14px; }
.rarity-key__copy p:last-child { color: #815124; }
.rarity-key__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.rarity-chip { min-width: 0; padding: 13px 10px; background: var(--white); border: 3px solid var(--ink); text-align: center; box-shadow: 4px 4px 0 rgba(63, 30, 7, 0.35); }
.rarity-chip span { display: block; min-height: 32px; font-family: var(--display); font-size: 0.45rem; line-height: 1.55; }
.rarity-chip strong { display: block; margin: 10px 0 5px; font-family: var(--display); font-size: 1rem; }
.rarity-chip em { color: #704921; font-size: 0.9rem; font-style: normal; }
.rarity-chip--common { border-top: 9px solid var(--common); }
.rarity-chip--uncommon { border-top: 9px solid var(--uncommon); }
.rarity-chip--rare { border-top: 9px solid var(--rare); }
.rarity-chip--epic { border-top: 9px solid var(--epic); }
.rarity-chip--legendary { border-top: 9px solid var(--legendary); }

.footer { max-width: 1240px; margin: 0 auto; padding: 42px 24px 58px; border-top: 3px solid #5d2d10; display: flex; justify-content: space-between; align-items: center; gap: 30px; color: #b98954; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { width: 46px; height: 46px; }
.footer__brand strong { display: block; color: var(--white); font-family: var(--display); font-size: 0.6rem; }
.footer__brand span { display: block; margin-top: 5px; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--honey); text-decoration: none; border-bottom: 2px solid transparent; }
.footer__links a:hover { border-color: var(--honey); }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; width: min(430px, calc(100vw - 48px)); padding: 16px 18px; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); clip-path: var(--pixel-small); box-shadow: 7px 7px 0 #080200; font-size: 1rem; }
.toast--success { background: #9fe0b9; }
.toast--error { background: #ff8a8a; }
.toast--hidden { display: none; }

body.modal-open { overflow: hidden; }
.wallet-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; background: rgba(17, 6, 2, 0.82); backdrop-filter: blur(3px); }
.wallet-modal--hidden { display: none; }
.wallet-dialog { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 36px); overflow: auto; padding: 34px; color: var(--ink); background: var(--cream); border: 4px solid var(--ink); clip-path: var(--pixel); box-shadow: inset 0 0 0 6px var(--honey-light), 10px 10px 0 #080200; }
.wallet-dialog h2 { margin: 8px 44px 14px 0; font-size: clamp(1.25rem, 5vw, 2rem); }
.wallet-dialog__close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; color: var(--cream); background: var(--ink); border: 0; font: 32px/1 var(--body); cursor: pointer; }
.wallet-dialog__lead { margin: 0 0 22px; color: #704b28; line-height: 1.3; }
.wallet-dialog__choices { display: grid; gap: 10px; margin-bottom: 18px; }
.wallet-choice { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; padding: 12px 15px; color: var(--ink); background: #fff8e7; border: 3px solid var(--ink); box-shadow: 4px 4px 0 #9b571d; font-family: var(--display); font-size: 0.62rem; line-height: 1.5; text-decoration: none; }
.wallet-choice span { font-family: var(--body); font-size: 1rem; white-space: nowrap; }
.wallet-choice--metamask { border-left: 12px solid #f6851b; }
.wallet-choice--coinbase { border-left: 12px solid #1652f0; }
.wallet-choice--trust { border-left: 12px solid #3375bb; }
.wallet-choice:hover, .wallet-choice:focus-visible { transform: translateY(-2px); background: #fff0c7; }
.wallet-dialog__note { margin: 16px 0 0; color: #825d34; font-size: 0.9rem; text-align: center; }

@keyframes pulse { 50% { opacity: 0.5; } }

@media (max-width: 1020px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topnav { display: none; }
  .royalty-strip__inner { grid-template-columns: 1fr 0.7fr 1fr; }
  .royalty-strip__split { grid-column: 1 / 2; }
  .btn--royalty { grid-column: 2 / 4; width: 100%; }
  .command-deck { grid-template-columns: 1fr; }
  .command-deck__intro { min-height: auto; }
  .rarity-key { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 18px; }
  .topbar { min-height: 70px; padding: 10px 14px; gap: 12px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__wordmark { font-size: 0.55rem; }
  .chain-pill { display: none; }
  .wallet-pill { padding: 6px 8px; font-size: 0.82rem; }
  .btn--topbar { min-height: 44px; padding-inline: 10px; font-size: 0.46rem; }
  .btn--connect { min-width: auto; padding-inline: 12px; }
  .royalty-strip__inner { padding: 16px 14px; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .royalty-strip__title { grid-column: 1 / -1; }
  .royalty-strip__split { grid-column: 1 / -1; }
  .btn--royalty { grid-column: 1 / -1; min-width: 0; }
  .brand-banner__copy {
    top: 6%;
    text-shadow: 2px 2px 0 var(--ink), 4px 4px 0 rgba(64, 22, 3, 0.75);
  }
  main { padding: 34px 14px 70px; }
  .command-deck { gap: 18px; margin-bottom: 68px; }
  .command-deck__intro,
  .pool { padding: 25px 20px; box-shadow: 6px 6px 0 #0d0502; }
  .command-deck__actions { align-items: flex-start; flex-direction: column; }
  .microcopy { max-width: none; }
  .pool__topline { flex-direction: column; }
  .pool__value { margin-top: 26px; }
  .panel { margin-bottom: 70px; }
  .panel__head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .panel__meta { text-align: left; }
  .grid--cookies,
  .grid--jars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cookie-card,
  .jar-card { padding: 10px; box-shadow: 4px 4px 0 #0c0401; }
  .jar-card__head { align-items: flex-start; flex-direction: column; }
  .rarity-key { padding: 24px 18px; box-shadow: 6px 6px 0 #0b0301; }
  .rarity-key__grid { grid-template-columns: repeat(2, 1fr); }
  .rarity-chip:last-child { grid-column: 1 / -1; }
  .jars-toolbar { align-items: flex-start; flex-direction: column; }
  .footer { align-items: flex-start; flex-direction: column; padding-inline: 18px; }
  .footer__links { flex-direction: column; gap: 8px; }
}

@media (max-width: 430px) {
  .brand__wordmark { display: none; }
  .grid--cookies,
  .grid--jars { grid-template-columns: 1fr; }
  .pool__stats { grid-template-columns: 1fr; }
  .pool__stats div + div { border-left: 0; border-top: 3px solid var(--ink); }
  .pool__split-labels { font-size: 0.88rem; }
  .wallet-dialog { padding: 28px 18px 22px; }
  .wallet-choice { font-size: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
