/* MimiKrew pool page — visual layer only. The on-chain controls keep their existing IDs. */
body {
  background: radial-gradient(circle at 82% 6%, rgba(177, 41, 255, 0.12), transparent 30rem), var(--color-bg);
}
.top-actions {
  margin-left: auto;
  justify-content: flex-end;
}
.top-actions > button:not(.quiet),
.header-create {
  min-height: 44px;
  padding: 0 17px;
  font-weight: 800;
}
.header-create,
.header-create:visited {
  color: #fff;
  text-decoration: none;
}
.quiet {
  white-space: nowrap;
}
main {
  max-width: 1280px;
  padding: 28px 24px 52px;
}
.intro-jump {
  min-height: 52px;
  padding: 0 25px;
  border-radius: 10px;
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: 0 5px 0 var(--color-accent-shadow);
}
.intro-jump:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 5px 0 var(--color-accent-shadow);
}
.message {
  margin: 0 0 24px;
  border-radius: 12px;
  padding: 14px 18px;
}
.panel {
  border-radius: 22px;
  background: #10051e;
  border-color: var(--color-border-subtle);
}
.status {
  padding: 8px 13px;
  background: #2a1048;
  border-color: var(--color-border);
  color: #d7c2f4;
}
.progress-text {
  margin: 43px 0 12px;
}
.progress-text strong {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(25px, 3vw, 39px);
  color: var(--color-accent);
  letter-spacing: -0.04em;
}
.track {
  height: 9px;
  border: 0;
  background: var(--color-bg);
}
.track > div {
  background: linear-gradient(90deg, var(--color-violet), var(--color-accent));
}
.facts {
  gap: 10px;
  margin: 23px 0;
}
.facts > div {
  padding: 16px;
  border-radius: 12px;
  background: #0a0214;
}
.facts strong,
.facts a {
  font-family: "JetBrains Mono", monospace;
  font-size: 19px;
}
.facts span {
  font-size: 11px;
}
.steps {
  gap: 0;
  padding: 5px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 13px;
  background: #080212;
}
.steps > div {
  position: relative;
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding: 11px 5px;
  color: #756585;
}
.steps .active {
  background: var(--color-border-subtle);
  border: 0;
}
.steps .done {
  border: 0;
  color: #d7c2f4;
}
.join {
  position: sticky;
  top: 106px;
  padding: 34px;
  border-color: var(--color-border);
  background: linear-gradient(160deg, var(--color-surface), #10051e);
}
.join-title {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(97, 56, 162, 0.45);
}
.join h2 {
  font-size: 42px;
  margin: 10px 0 11px;
}
.join-title p {
  color: #b7a4c8;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.receipt {
  margin: 22px 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.receipt > div {
  padding: 8px 0;
  border-bottom: 1px solid rgba(97, 56, 162, 0.24);
}
.receipt > div:last-child {
  border: 0;
}
.receipt span {
  font-size: 12px;
}
.receipt strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}
.join label {
  margin: 0 0 10px;
  font-size: 12px;
}
.amount-presets {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 7px;
  margin-bottom: 9px;
}
.amount-presets button {
  padding: 9px 3px;
  border-radius: 8px;
  background: #080212;
  border-color: var(--color-border-subtle);
  color: #a994bc;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}
.amount-presets button.selected {
  background: var(--color-border-subtle);
  border-color: var(--color-violet);
  color: #fff;
}
.field {
  height: 55px;
  border-radius: 10px;
  background: #080212;
  border-color: var(--color-border);
}
.field input {
  font-family: "JetBrains Mono", monospace;
  font-size: 19px;
}
.join .primary {
  height: 56px;
  border-radius: 10px;
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: 0 5px 0 var(--color-accent-shadow);
}
.join .primary:hover:not(:disabled) {
  background: var(--color-accent-hover);
}
.helper strong {
  color: #d7c2f4;
}
.reveal-section {
  margin-top: 20px;
  padding: 42px 38px;
}
.reveal-heading h2 {
  font-size: clamp(38px, 5vw, 62px);
  margin-top: 10px;
}
.simulation-badge {
  background: var(--color-surface);
}
.actual-reveal {
  position: relative;
  overflow: hidden;
  border-color: var(--color-border);
  background:
    radial-gradient(circle at 85% 15%, rgba(177, 41, 255, 0.22), transparent 28rem),
    linear-gradient(145deg, #180632, #0b0315);
}
.actual-reveal::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -180px;
  top: -210px;
  border: 1px solid rgba(177, 41, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
}
.actual-reveal > * {
  position: relative;
  z-index: 1;
}
.reveal-grid {
  margin-top: 34px;
}
.pack-slot {
  border-color: rgba(97, 56, 162, 0.58);
  background: linear-gradient(155deg, #16072c, #080212);
}
.pack-slot-art {
  --pack-rx: 0deg;
  --pack-ry: 0deg;
  --holo-x: 50%;
  --holo-y: 50%;
  min-height: 330px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, rgba(177, 41, 255, 0.28), transparent 58%);
  transform: perspective(800px) rotateX(var(--pack-rx)) rotateY(var(--pack-ry));
  transition:
    transform 0.18s ease-out,
    border-color 0.2s;
  transform-style: preserve-3d;
}
.pack-slot-art::before {
  content: "";
  position: absolute;
  inset: 9%;
  z-index: 2;
  border-radius: 18px;
  background: linear-gradient(
    115deg,
    transparent 15%,
    rgba(76, 220, 255, 0.14) 30%,
    rgba(255, 114, 231, 0.2) 43%,
    rgba(255, 225, 116, 0.18) 55%,
    rgba(116, 255, 214, 0.14) 68%,
    transparent 84%
  );
  background-size: 220% 220%;
  background-position: var(--holo-x) var(--holo-y);
  mix-blend-mode: screen;
  opacity: 0.5;
  transition:
    opacity 0.2s,
    background-position 0.08s;
  pointer-events: none;
}
.pack-slot-art::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(177, 41, 255, 0.22);
  border-radius: 13px;
  pointer-events: none;
}
.pack-slot-art:hover::before {
  opacity: 1;
}
.pack-slot-art img {
  height: 285px;
  transform: rotate(2deg);
  filter: var(--pack-tint, hue-rotate(0deg)) drop-shadow(0 20px 22px rgba(0, 0, 0, 0.82))
    drop-shadow(0 0 18px rgba(177, 41, 255, 0.3));
  animation: packFloat 4.2s ease-in-out infinite;
  will-change: transform;
}
.pack-slot:nth-child(even) .pack-slot-art img {
  animation-delay: -2.1s;
}
.pack-slot:nth-child(3n) .pack-slot-art img {
  animation-delay: -1.2s;
}
.pack-slot-art:hover img {
  filter: var(--pack-tint, hue-rotate(0deg)) drop-shadow(0 27px 28px rgba(0, 0, 0, 0.86))
    drop-shadow(0 0 24px rgba(177, 41, 255, 0.48));
  animation-play-state: paused;
}
.pack-slot-body {
  padding-top: 13px;
}
.pack-slot-body h3 {
  color: var(--color-text);
  font-size: 15px;
}
.pack-slot-body .pack-value {
  margin: var(--space-1) 0 0;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}
.actual-reveal .collector-crypt-note {
  background: rgba(255, 186, 0, 0.05);
  border-color: rgba(255, 186, 0, 0.24);
}
.opening-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.opening-choice button {
  min-width: 0;
  margin: 0;
}
.opening-choice .primary {
  box-shadow: 0 4px 0 var(--color-accent-shadow);
}
@keyframes packFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(1.5deg);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotate(-1.5deg);
  }
}
.opening-active {
  overflow: hidden;
}
.opening-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 22px;
}
.opening-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 1, 10, 0.88);
  backdrop-filter: blur(15px);
}
.opening-stage {
  position: relative;
  z-index: 1;
  width: min(1040px, 94vw);
  max-height: 92vh;
  overflow: auto;
  text-align: center;
  padding: 36px 44px 30px;
  border: 1px solid var(--color-border);
  border-radius: 26px;
  background: radial-gradient(circle at 50% 38%, rgba(177, 41, 255, 0.28), transparent 28rem), #10051e;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.72);
}
.opening-close {
  position: absolute;
  right: 18px;
  top: 15px;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: var(--color-surface);
  color: #fff;
  font-size: 27px;
  line-height: 1;
}
.opening-stage h2 {
  font-size: clamp(35px, 5vw, 64px);
  line-height: 0.95;
  margin: 12px 0 8px;
}
.opening-visual {
  position: relative;
  height: min(54vh, 500px);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.opening-visual::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(177, 41, 255, 0.38);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(177, 41, 255, 0.04),
    0 0 70px rgba(177, 41, 255, 0.22);
}
.opening-pack {
  position: relative;
  z-index: 2;
  height: min(49vh, 445px);
  width: auto;
  filter: var(--pack-tint, hue-rotate(0deg)) drop-shadow(0 30px 35px rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 24px rgba(177, 41, 255, 0.4));
}
.opening-pack.is-opening {
  animation: openingPack 1.25s ease-in-out infinite;
}
.opening-card {
  position: relative;
  z-index: 2;
  max-width: min(340px, 80vw);
  height: min(51vh, 470px);
  object-fit: contain;
  border-radius: 15px;
  filter: drop-shadow(0 30px 36px rgba(0, 0, 0, 0.9));
}
.opening-card.card-arrives {
  animation: cardArrival 0.75s cubic-bezier(0.18, 0.8, 0.2, 1) both;
}
.opening-card-name {
  min-height: 24px;
  margin: 3px 0 18px;
  color: #c9b6db;
}
.card-rarity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 6px 0;
  padding: 5px 10px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  vertical-align: middle;
}
.opening-summary .card-rarity {
  justify-self: center;
}
.card-rarity-common {
  background: #242634;
  border-color: #626677;
  color: #d1d5db;
}
.card-rarity-uncommon {
  background: #123521;
  border-color: #397e54;
  color: #a8f0c3;
}
.card-rarity-rare {
  background: #102e51;
  border-color: #417cae;
  color: #a9d5ff;
}
.card-rarity-epic {
  background: #35134f;
  border-color: #a05bd0;
  color: #e5bdff;
}
.opening-next {
  min-width: 220px;
}
.opening-summary {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 30px 0 24px;
  overflow: hidden;
  padding: 20px;
}
.opening-summary figure {
  flex: 0 1 205px;
  margin: 0;
  animation: summarySweep 0.85s cubic-bezier(0.17, 0.84, 0.27, 1) both;
  animation-delay: calc(var(--summary-index) * 0.13s);
}
.opening-summary img {
  display: block;
  width: 100%;
  height: 285px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.75));
}
.opening-summary figcaption {
  margin-top: 9px;
  font-weight: 800;
  color: #d7c2f4;
}
@keyframes openingPack {
  0%,
  100% {
    transform: translateY(3px) rotate(-1deg);
    filter: drop-shadow(0 30px 35px rgba(0, 0, 0, 0.9)) var(--pack-tint, hue-rotate(0deg));
  }
  45% {
    transform: translateY(-12px) rotate(2deg) scale(1.025);
    filter: drop-shadow(0 34px 38px rgba(0, 0, 0, 0.9)) var(--pack-tint, hue-rotate(0deg)) hue-rotate(24deg)
      saturate(1.2);
  }
  55% {
    transform: translateY(-10px) rotate(-2deg) scale(1.03);
  }
}
@keyframes cardArrival {
  0% {
    opacity: 0;
    transform: translateX(45vw) rotateY(-45deg) scale(0.82);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotateY(0) scale(1);
  }
}
@keyframes summarySweep {
  0% {
    opacity: 0;
    transform: translateX(80vw) rotate(7deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}
footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  padding: 36px 0 5px;
  border-top: 1px solid rgba(97, 56, 162, 0.42);
}
footer img {
  width: 145px;
}
footer span {
  color: #756585;
}
footer a {
  color: #fff;
  font-weight: 800;
}
footer a:hover {
  color: var(--color-accent);
}
@media (max-width: 1080px) {
  .wallet-address {
    display: none;
  }
}
@media (max-width: 1000px) {
  .join {
    position: static;
  }
}
@media (max-width: 680px) {
  .top-actions {
    gap: 6px;
  }
  .mode-toggle span:first-child {
    display: none;
  }
  .header-create {
    /* biome-ignore lint/complexity/noImportantStyles: hiding utility, must win over any component display rule */
    display: none !important;
  }
  main {
    padding: 14px 12px 36px;
  }
  .join,
  .reveal-section {
    padding: 25px 20px;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .steps span {
    display: none;
  }
  .join h2 {
    font-size: 35px;
  }
  .reveal-heading {
    display: block;
  }
  .simulation-badge {
    display: inline-block;
    margin-top: 16px;
  }
  footer {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 680px) {
  .opening-choice {
    grid-template-columns: 1fr;
  }
  .opening-stage {
    padding: 30px 18px 22px;
    border-radius: 20px;
  }
  .opening-visual {
    height: 48vh;
  }
  .opening-pack {
    height: 42vh;
  }
  .opening-card {
    height: 44vh;
  }
  .opening-summary {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 12px;
    margin-inline: -8px;
  }
  .opening-summary figure {
    flex: 0 0 165px;
  }
  .opening-summary img {
    height: 225px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pack-slot-art img,
  .opening-pack.is-opening,
  .opening-card.card-arrives,
  .opening-summary figure {
    /* biome-ignore lint/complexity/noImportantStyles: reduced motion, accessibility override of every animation */
    animation: none !important;
  }
}
.opening-summary figcaption {
  display: grid;
  gap: 4px;
  margin-top: 11px;
  color: #d7c2f4;
}
.opening-summary figcaption strong {
  font-size: 14px;
  line-height: 1.25;
}
.opening-summary figcaption .card-prices {
  color: var(--color-accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}
#opening-status {
  max-width: 680px;
  margin: 10px auto 18px;
  color: #d7c2f4;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#opening-status.error {
  color: #ffb4c3;
}
.opening-next:disabled {
  opacity: 0.55;
  cursor: wait;
}
.opening-stage h2 {
  font-size: clamp(27px, 3.3vw, 44px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.opening-visual {
  height: min(46vh, 430px);
}
.opening-card {
  height: min(43vh, 400px);
  max-width: 80vw;
}

#custom-cover {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 24px;
}
#pool-rules {
  color: #c1b1d4;
  line-height: 1.6;
}
#share-pool,
#calendar-link {
  margin: 8px;
}
@media (max-width: 700px) {
  #custom-cover {
    aspect-ratio: 4 / 3;
    height: auto;
  }
}

/* Keep the summary action in view; long collections scroll inside the gallery. */
.opening-modal {
  padding: 16px;
}
.opening-stage {
  box-sizing: border-box;
  max-width: 100%;
  max-height: calc(100dvh - 32px);
}
.opening-stage:has(.opening-summary:not(.hidden)) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 28px 32px 22px;
  gap: 8px;
}
.opening-stage:has(.opening-summary:not(.hidden)) > h2 {
  margin: 4px 40px;
  font-size: clamp(25px, 3.3vw, 42px);
}
.opening-stage:has(.opening-summary:not(.hidden)) > .eyebrow {
  padding-inline: 40px;
  flex-shrink: 0;
}
.opening-stage:has(.opening-summary:not(.hidden)) .opening-card-name {
  min-height: 0;
  margin: 0;
}
.opening-stage #opening-card-price:empty,
.opening-stage #opening-status:empty {
  display: none;
}
.opening-stage .opening-summary:not(.hidden) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 205px));
  justify-content: center;
  align-items: start;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  margin: 6px 0 0;
  padding: 10px;
  gap: 18px;
  scrollbar-width: thin;
}
.opening-summary figure {
  min-width: 0;
}
.opening-summary img {
  height: clamp(120px, 30dvh, 260px);
}
.top-actions .header-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 18px;
  line-height: 1.1;
  border: 1px solid #9854e2;
  border-radius: 13px;
  background: linear-gradient(135deg, #7434bc, #462079);
  box-shadow:
    inset 0 1px 0 #ffffff24,
    0 4px 14px #0003;
  transition:
    background 0.18s,
    border-color 0.18s;
}
#create-page-link::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #ffffff18;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}
.top-actions .header-create:hover {
  background: linear-gradient(135deg, #8845cf, #58278d);
  border-color: #c18cf5;
}
.top-actions .header-create:focus-visible {
  outline: 2px solid #ffbe00;
  outline-offset: 4px;
}
.top-actions .header-create.hidden {
  display: none;
}
@media (max-width: 680px) {
  .opening-stage:has(.opening-summary:not(.hidden)) {
    padding: 24px 14px 16px;
    gap: 6px;
  }
  .opening-stage .opening-summary:not(.hidden) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 6px;
  }
  .opening-summary img {
    height: clamp(100px, 25dvh, 210px);
  }
  .opening-summary figcaption strong {
    font-size: 12px;
  }
  .opening-summary figcaption .card-prices {
    font-size: 10px;
    overflow-wrap: anywhere;
  }
  #create-page-link:not(.hidden) {
    /* biome-ignore lint/complexity/noImportantStyles: shown create link, must win over the hidden header link rule */
    display: inline-flex !important;
    min-height: 38px;
    padding: 8px 11px;
    font-size: 12px;
  }
}
.card-prices,
#opening-card-price {
  white-space: pre-line;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .opening-summary figcaption strong {
    font-size: 14px;
  }
  .opening-summary figcaption .card-prices {
    font-size: 12px;
    line-height: 1.5;
  }
}
@media (max-width: 680px) {
  .opening-summary figure {
    animation-name: summaryMobile;
  }
}
@keyframes summaryMobile {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* A passive progress timeline rather than a row of tab-like buttons. */
.steps {
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: default;
}
.steps > div {
  border: 0;
  border-bottom: 2px solid #352047;
  border-radius: 0;
  background: transparent;
  padding: 12px 4px;
  text-align: left;
  white-space: normal;
  color: #8e7b9d;
  cursor: default;
}
.steps > div span {
  display: block;
  margin: 0 0 5px;
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 1;
  color: #8e7b9d;
}
.steps > div.active {
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--color-accent);
  color: #fff;
}
.steps > div.active span {
  color: var(--color-accent);
}
.steps > div.done {
  background: transparent;
  border: 0;
  border-bottom: 2px solid #9551db;
  color: #d8c6ea;
}
@media (max-width: 620px) {
  .steps {
    gap: 9px;
  }
  .steps > div {
    font-size: 10px;
    line-height: 1.4;
    padding: 10px 2px;
  }
  .steps > div span {
    font-size: 10px;
  }
}

/* Compact card details and shared footer. */
.card .card-body .collector-link {
  color: #d8c6ea;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
  display: inline-block;
  margin-top: 8px;
}
.card .collector-link:hover {
  color: #fff;
  text-decoration: underline;
}
.card-prices {
  margin: 10px 0 8px;
}
#join-hint:empty {
  display: none;
}
.site-footer {
  width: calc(100% - 48px);
  max-width: 1120px;
  margin: 80px auto 0;
  padding: 52px 0 24px;
  border-top: 1px solid var(--color-border-subtle);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  font-family: Poppins, sans-serif;
  box-sizing: border-box;
}
.site-footer > div {
  padding-right: 30px;
}
.site-footer strong,
.site-footer a {
  display: block;
}
.site-footer strong {
  margin-bottom: 14px;
  color: #fff;
  font-size: 16px;
}
.site-footer a {
  color: #9f91ad;
  margin: 8px 0;
  font-size: 14px;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--color-accent);
}
.site-footer .disclaimer {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid #241138;
  color: #766c80;
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 620px) {
  .site-footer {
    width: calc(100% - 32px);
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .site-footer > div {
    padding-right: 0;
  }
  .site-footer > div:last-of-type {
    grid-column: 1 / -1;
  }
}

/* Readable footer links with comfortable touch targets. */
.site-footer a {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  color: #c1b1d4;
  line-height: 1.5;
}
.site-footer .disclaimer {
  color: #b5a7c2;
  font-size: 14px;
  line-height: 1.7;
}
.site-footer a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Mobile reading and actions retain the existing palette and layout. */
.opening-close {
  width: 48px;
  height: 48px;
}
.card .mini-cta,
.opening-next {
  min-height: 48px;
}
.amount-presets button {
  min-height: 44px;
}
.card .card-body .collector-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14px;
}
@media (max-width: 620px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .card-body {
    padding: 20px;
  }
  .card-prices,
  .card-body p {
    font-size: 14px;
    line-height: 1.6;
  }
  .card-art img {
    height: 300px;
    max-width: 100%;
    object-fit: contain;
  }
  .pack-slot-art img {
    height: 285px;
  }
  .join-title p,
  .receipt span,
  .join label {
    font-size: 14px;
    line-height: 1.6;
  }
  .helper {
    /* biome-ignore lint/complexity/noImportantStyles: helper text, must win over the label and paragraph rules of each panel */
    font-size: 14px !important;
    line-height: 1.6;
  }
  .receipt > div {
    gap: 12px;
  }
  .opening-stage {
    padding-top: 68px;
  }
  .opening-stage:has(.opening-summary:not(.hidden)) {
    padding-top: 68px;
  }
  .opening-stage h2 {
    line-height: 1.15;
  }
}

/* Keep footer groups aligned independently of their link count. */
.site-footer {
  align-items: start;
  justify-content: stretch;
  text-align: left;
}
.site-footer > div {
  min-width: 0;
  align-self: start;
}
.site-footer strong {
  line-height: 1.5;
  text-align: left;
}
@media (max-width: 620px) {
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 28px;
  }
  .site-footer > div {
    padding-right: 0;
  }
  .site-footer > div:last-of-type {
    grid-column: 1 / -1;
  }
  .site-footer strong {
    margin: 0 0 12px;
  }
  .site-footer a {
    justify-content: flex-start;
    overflow-wrap: anywhere;
  }
  .site-footer .disclaimer {
    text-align: left;
  }
}

.operation-feedback {
  margin: 0 0 24px;
  padding: 20px 24px;
  color: #d8c6ea;
  line-height: 1.6;
}
.operation-feedback p:empty {
  display: none;
}
.operation-feedback button {
  min-height: 48px;
  margin: 4px 12px 4px 0;
}
.operation-feedback pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: #d8c6ea;
}

.card-purchase-error {
  color: #ffb5b5;
  font-size: 14px;
  line-height: 1.5;
  margin: 12px 0 0;
}

#joined-share {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#joined-share.hidden {
  display: none;
}
.pool-details {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #2a1740;
}
.pool-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c9b2df;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pool-details summary::-webkit-details-marker {
  display: none;
}
.pool-details summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.18s;
}
.pool-details[open] summary::before {
  transform: rotate(45deg);
}
.pool-details summary:hover {
  color: #fff;
}
.pool-details p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
}
.opening-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.opening-actions > button {
  flex: 1 1 0;
  max-width: 300px;
  min-width: 0;
  height: 52px;
  min-height: 0;
  margin: 0;
  box-sizing: border-box;
}
@media (max-width: 420px) {
  .opening-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .opening-actions > button {
    flex: none;
    max-width: none;
  }
}
.deposit-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
/* The .join prefix outranks ".join .primary" (margin-top) without forcing it. */
.join .deposit-actions button {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  height: 56px;
}
.deposit-actions #cancel-add {
  border-radius: 10px;
}
.deposit-actions .hidden {
  display: none;
}
.opening-pack {
  height: min(calc(46vh - 64px), 366px);
}
#pool-rules {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 24px;
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.5;
}
#pool-rules dt {
  color: #8e7b9d;
}
#pool-rules dd {
  margin: 0;
  color: #e6d8f2;
  text-align: right;
  white-space: pre-line;
}
@media (max-width: 420px) {
  #pool-rules {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  #pool-rules dd {
    text-align: left;
    margin-bottom: 8px;
  }
}
.pool-details #calendar-link {
  margin: 14px 0 0;
}
/* The participant's status sits under Invite your Krew on X and Add USDC. */
#joined-share + .notice {
  margin-top: var(--space-4);
}
#participant-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
#participant-card-actions.hidden {
  display: none;
}
@media (max-width: 620px) {
  #participant-card-actions button {
    width: 100%;
  }
}

/* Write-off buttons join the row of recovery actions. */
#writeoff-list {
  display: contents;
}

/* Phones: the funding amount gets its own line and the percentage sits under it instead of squeezing it. */
@media (max-width: 620px) {
  .progress-text {
    flex-wrap: wrap;
    align-items: baseline;
  }
  .progress-text strong {
    flex: 1 1 100%;
  }
  #percent {
    white-space: nowrap;
  }
}

/* The join panel sticks just below the fixed header, whatever its current height. */
.join {
  top: calc(var(--mk-header-height, 100px) + var(--space-4));
}

/* Pool page top: what the pool is on the left, the way to invest on the right, all on the first screen. */
.pool-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  grid-template-areas: "main join";
  grid-template-rows: auto;
  gap: var(--space-5);
  align-items: start;
  margin-bottom: var(--space-6);
}
.pool-summary,
.pool-info {
  padding: var(--space-6) var(--space-8);
}
.pool-summary {
  grid-area: summary;
}
.pool-info {
  grid-area: info;
}
.pool-head {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
}
.pool-art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 38%, rgba(177, 41, 255, 0.38), transparent 68%), var(--color-surface-sunken);
}
.pool-art #custom-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pool-art.has-custom-cover .pool-art-default {
  display: none;
}
/* Desktop custom covers stay fully visible beside the copy, keeping funding near the top. */
@media (min-width: 901px) {
  .pool-head:has(.pool-art.has-custom-cover) {
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    grid-template-areas:
      "art status"
      "art copy";
    column-gap: var(--space-5);
    row-gap: var(--space-2);
  }
  .pool-head .pool-art.has-custom-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    align-self: start;
  }
  .pool-head .pool-art.has-custom-cover #custom-cover {
    max-height: none;
    object-fit: contain;
    object-position: center;
  }
  .pool-head:has(.pool-art.has-custom-cover) .pool-head-copy {
    min-width: 0;
  }
  .pool-head:has(.pool-art.has-custom-cover) .pool-head-copy h1 {
    margin: 0 0 var(--space-3);
    font-size: clamp(26px, 2.2vw, 34px);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }
  .pool-head:has(.pool-art.has-custom-cover) .pool-head-copy p {
    font-size: 14px;
    line-height: 1.45;
  }
  .pool-head:has(.pool-art.has-custom-cover) .pool-head-actions {
    margin-top: var(--space-3);
  }
  .pool-summary:has(.pool-art.has-custom-cover) .progress-text {
    margin-top: var(--space-5);
  }
}
.pool-art-default {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.pool-art-pack {
  width: auto;
  height: 78%;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 14px rgba(177, 41, 255, 0.4));
}
.pool-art-mark {
  position: absolute;
  left: 8%;
  bottom: 6%;
  width: 84%;
  height: auto;
}
/* Wide screens: the status sits above the title, next to the picture. */
.pool-head {
  grid-template-areas:
    "art status"
    "art copy";
  row-gap: 0;
}
.pool-head-side {
  display: contents;
}
.pool-art {
  grid-area: art;
}
#pool-status {
  grid-area: status;
  align-self: end;
  justify-self: start;
}
.pool-head-copy {
  grid-area: copy;
  align-self: start;
}
/* Phones: the status goes above the picture, so the title starts at the top. */
@media (max-width: 620px) {
  .pool-head {
    grid-template-areas: "side copy";
  }
  .pool-head-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    grid-area: side;
    min-width: 0;
  }
  .pool-head-side .pool-art {
    width: 100%;
  }
  #pool-status {
    align-self: flex-start;
    max-width: 100%;
    white-space: normal;
  }
  .pool-head .pool-head-copy h1 {
    margin-top: 0;
  }
}
.pool-head h1 {
  margin: var(--space-2) 0;
  font-family: var(--font-body);
  font-size: clamp(34px, 3.4vw, 50px);
  font-style: italic;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.pool-head h1 em {
  color: var(--color-accent);
}
.pool-head p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.5;
}
.pool-head-actions {
  margin-top: var(--space-4);
}
.pool-summary .progress-text {
  margin: var(--space-6) 0 var(--space-3);
}
.pool-info .steps {
  margin-top: var(--space-5);
}
/* The invest panel, compact enough to show the whole form without scrolling. */
.pool-top .join {
  grid-area: join;
  padding: var(--space-6);
}
.pool-top .join-title {
  padding-bottom: var(--space-4);
}
.pool-top .join h2 {
  margin: var(--space-2) 0;
  font-size: 30px;
}
.pool-top .receipt {
  margin: var(--space-3) 0;
  padding: 0;
}
.pool-top .receipt > div {
  padding: 6px 0;
}
.pool-top .field {
  height: 48px;
}
.pool-top .join label.check {
  margin-top: var(--space-3);
  font-size: 13px;
}
.pool-top .join .primary {
  height: 52px;
}
.pool-top #join-hint {
  margin: var(--space-3) 0 0;
}
/* The panel is right there on wide screens: no "Join the Pool" jump link. */
@media (min-width: 901px) {
  .pool-head-actions #pool-hero-action {
    display: none;
  }
}
@media (max-width: 900px) {
  .pool-top {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "summary"
      "join"
      "info"
      "odds"
      "participants";
  }
  .pool-top .join {
    position: static;
  }
}
@media (max-width: 620px) {
  .pool-summary,
  .pool-info {
    padding: var(--space-5);
  }
  .pool-head {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: var(--space-4);
    align-items: start;
  }
  .pool-head h1 {
    font-size: 30px;
  }
  .pool-head p {
    font-size: 14px;
  }
  .pool-head-actions #pool-hero-action {
    display: none;
  }
}
/* Tighter invest panel: receipt on two columns, smaller agreement text, shorter controls. */
.pool-top .join-title {
  padding-bottom: var(--space-3);
}
.pool-top .join h2 {
  margin: var(--space-1) 0 var(--space-2);
}
.pool-top .receipt {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-4);
}
.pool-top .receipt > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  border-bottom: 1px solid rgba(97, 56, 162, 0.24);
}
.pool-top .receipt > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.pool-top .receipt strong {
  align-self: stretch;
  text-align: left;
}
.pool-top .amount-presets button {
  padding: 7px 3px;
}
.pool-top .field {
  height: 44px;
}
.pool-top .join label.check {
  font-size: 12px;
  line-height: 1.45;
}
.pool-top .join .primary {
  height: 50px;
}
.pool-art .pool-art-pack {
  width: auto;
  height: 74%;
  max-width: none;
}
.pool-head-actions #share-pool {
  margin: 0;
}
/* Less space above the first screen; a tighter panel heading. */
main:has(> .pool-top) {
  padding-top: var(--space-4);
}
.pool-top .join {
  padding: var(--space-5) var(--space-6) var(--space-6);
}
.pool-top .join h2 {
  font-size: 26px;
}
.pool-top .join-title p {
  line-height: 1.45;
}
/* Flex (not grid) so the pack's percentage height resolves against the square. */
.pool-art-default {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pool-info .facts {
  margin-top: 0;
}
/* Phones: a shorter summary so the invest panel comes sooner. */
@media (max-width: 620px) {
  .pool-head .eyebrow {
    display: none;
  }
  .pool-top .progress-text {
    flex-wrap: nowrap;
    align-items: baseline;
  }
  .pool-top .progress-text strong {
    flex: 0 1 auto;
    font-size: 30px;
  }
  .pool-summary .progress-text {
    margin-top: var(--space-5);
  }
}
.pool-top .amount-presets {
  margin-bottom: var(--space-3);
}
.pool-top .join .deposit-actions button {
  height: 50px;
}

/* Right column: the invest panel, then who is in the Pool. */
.pool-side {
  grid-area: join;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}
.pool-side .join {
  position: static;
}
#join-hint:empty {
  display: none;
}
.pool-info .facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pool-participants {
  padding: var(--space-5) var(--space-6);
}
.participants-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.participants-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.participants-list {
  display: grid;
  max-height: 264px;
  margin: var(--space-3) 0 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}
.participants-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 56px;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(97, 56, 162, 0.24);
  font-size: 13px;
}
.participants-list li:last-child {
  border-bottom: 0;
}
.participant-rank {
  color: var(--color-text-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
}
.participant-wallet {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.participant-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.participant-wallet:hover {
  text-decoration: underline;
}
.participant-you {
  display: inline-flex;
  align-items: center;
  flex: none;
  line-height: 1.4;
  margin-left: var(--space-1);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
}
.terms-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.pool-consent {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pool-top .join .pool-consent {
  margin-block: 16px 20px;
}
.pool-consent > input {
  width: 20px;
  height: 20px;
  flex: none;
  margin: 0;
  accent-color: var(--color-accent);
}
.pool-consent label,
.pool-consent .terms-link {
  display: inline;
  width: auto;
  margin: 0;
  min-height: 0;
  font: inherit;
}
.join .helper a {
  color: var(--color-text-subtle);
}
.is-confirming::after {
  display: inline-block;
  overflow: hidden;
  width: 0;
  content: "...";
  vertical-align: bottom;
  animation: confirming-dots 1.4s steps(4, end) infinite;
}
@keyframes confirming-dots {
  to {
    width: 1.1em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-confirming::after {
    animation: none;
    width: 1.1em;
  }
}
.participant-amount {
  font-family: var(--font-mono);
  font-weight: 600;
}
.participant-share {
  color: var(--color-text-subtle);
  font-family: var(--font-mono);
  text-align: right;
}

/* Funding bar: same colours, with a thin metallic glint crossing it now and then. */
.pool-top .track > div {
  position: relative;
  overflow: hidden;
}
.pool-top .track > div::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30px;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 25%,
    rgba(240, 244, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 100%
  );
  transform: translateX(-44px) skewX(-20deg);
  animation: track-glint 4s ease-in infinite;
}
@keyframes track-glint {
  0%,
  85% {
    left: 0;
    transform: translateX(-44px) skewX(-20deg);
  }
  100% {
    left: 100%;
    transform: translateX(12px) skewX(-20deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pool-top .track > div::after {
    display: none;
  }
}

/* Phones: back-to-invest bar, readable facts, compact cards, less dead space at the end. */
.mobile-join {
  display: none;
}
@media (max-width: 900px) {
  .mobile-join.is-away:not(.hidden) {
    position: fixed;
    right: var(--space-3);
    bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    left: var(--space-3);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    min-height: 56px;
    padding: 0 var(--space-3) 0 var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(24, 6, 50, 0.96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    color: var(--color-text);
    text-decoration: none;
  }
  .mobile-join span {
    color: var(--color-accent);
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
  }
  .mobile-join strong {
    padding: 10px 16px;
    border-radius: var(--radius-control);
    background: var(--color-accent);
    box-shadow: 0 3px 0 var(--color-accent-shadow);
    color: var(--color-on-accent);
    font-size: 15px;
  }
  body:has(.mobile-join.is-away:not(.hidden)) {
    padding-bottom: 84px;
  }
}
@media (max-width: 620px) {
  .pool-info .facts strong {
    overflow: visible;
    font-size: 17px;
    text-overflow: clip;
    white-space: normal;
  }
  #cards {
    gap: var(--space-3);
  }
  #cards .card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: stretch;
  }
  #cards .card-art {
    min-height: 0;
    padding: var(--space-2);
  }
  #cards .card-art img {
    width: 100%;
    height: auto;
    max-height: 160px;
  }
  #cards .card-body {
    padding: var(--space-3) var(--space-4);
  }
  #cards .card h3 {
    margin: 0 0 var(--space-1);
    font-size: 15px;
  }
  #cards .card-body p {
    margin: var(--space-1) 0;
    font-size: 13px;
    line-height: 1.45;
  }
  #cards .card .card-body .collector-link {
    min-height: 32px;
    margin-top: 0;
    font-size: 13px;
  }
  #cards .card .mini-cta {
    min-height: 40px;
  }
  .site-footer {
    margin-top: var(--space-8);
  }
}
/* No receipt (no wallet yet): keep the form clear of the heading's divider. */
.pool-top .receipt.hidden + #deposit-controls {
  margin-top: var(--space-4);
}
@media (max-width: 620px) {
  /* Compact card text, but a notice keeps its space below the buttons. */
  #cards .card-body p.notice {
    margin-top: var(--space-3);
  }
}

/* Transaction progress uses the real client stages; a restored payment stays in Checking. */
.contribution-progress {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.contribution-progress li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9d87b3;
  font-size: 0.9rem;
}
.contribution-progress li > span {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid #5b3c79;
  border-radius: 50%;
}
.contribution-progress li[data-state="active"] {
  color: #fff;
}
.contribution-progress li[data-state="active"] > span {
  border-color: #5b3c79;
  border-top-color: #ffbf00;
  animation: payment-spin 0.9s linear infinite;
}
.contribution-progress li[data-state="done"] > span {
  background: #ffbf00;
  border-color: #ffbf00;
}
@keyframes payment-spin {
  to {
    transform: rotate(360deg);
  }
}
.pool-top .join .pool-consent {
  margin: 16px 0 0;
  font-size: 0.82rem;
}
.pack-odds {
  margin: 28px 0;
  min-width: 0;
}
.pack-odds-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pack-odds-heading h2 {
  margin: 0;
}
#pack-odds-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
  margin-top: 20px;
}
.pack-odds-machine {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid #40205c;
  border-radius: 16px;
  padding: 20px;
  background: #12091f;
}
.pack-odds-machine h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}
.pack-odds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.pack-odds-table caption {
  text-align: left;
  color: #b9a7ca;
  padding-bottom: 12px;
}
.pack-odds-table th,
.pack-odds-table td {
  padding: 12px 6px;
  text-align: right;
  border-bottom: 1px solid #342044;
  font-weight: 400;
}
.pack-odds-table th:first-child {
  text-align: left;
  font-weight: 600;
}
.pack-odds-table thead th {
  color: #b9a7ca;
  font-size: 0.75rem;
}
.pack-odds-table td:nth-child(2) {
  color: #ffbf00;
  font-variant-numeric: tabular-nums;
}
.pack-odds-table .odds-epic {
  color: #d7a4ff;
}
.pack-odds > .helper {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .pack-odds-machine {
    padding: 12px;
  }
  .pack-odds-table {
    font-size: 0.72rem;
  }
  .pack-odds-table th,
  .pack-odds-table td {
    padding: 10px 3px;
  }
  .pack-odds-table thead th {
    font-size: 0.65rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .contribution-progress li[data-state="active"] > span {
    animation: none;
  }
}

.pack-odds-machine > button {
  margin-top: 16px;
  font-size: 0.8rem;
}
.pack-odds-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.pack-odds-card {
  margin: 0;
  min-width: 0;
}
.pack-odds-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 7;
  object-fit: contain;
}
.pack-odds-card figcaption {
  font-size: 0.7rem;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.pack-odds-card > span {
  font-size: 0.75rem;
  color: #ffbf00;
}
.pack-odds-caption {
  grid-column: 1 / -1;
}

/* Independent columns keep odds beside participants without stretching the left panels. */
.pool-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}
.pool-top .pack-odds {
  margin: 0;
  padding: var(--space-5) var(--space-6);
}
.pool-top #pack-odds-content {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.pool-top .pack-odds-machine {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.pool-top .pack-odds-machine + .pack-odds-machine {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 20px;
}
.pool-top .pack-odds-table th,
.pool-top .pack-odds-table td {
  padding-block: 9px;
}
.pool-top .pack-odds > .helper {
  font-size: 0.75rem;
  line-height: 1.5;
  margin-top: 16px;
}
@media (max-width: 900px) {
  .pool-main,
  .pool-side {
    display: contents;
  }
  .pool-top .join {
    grid-area: join;
  }
  .pool-top .pack-odds {
    grid-area: odds;
  }
  .pool-top .pool-participants {
    grid-area: participants;
  }
}
