.founder-receipt {
  --founder-gold: #dab36c;
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--founder-gold);
  border-radius: var(--ui-radius);
  background: var(--ui-color-surface-raised);
  color: var(--ui-color-text);
  box-shadow: 0 20px 80px #0009;
  font-family: var(--ui-font-body);
}
.founder-receipt::backdrop { background: #030712d9; }
.founder-receipt__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 0;
}
.founder-receipt__eyebrow {
  margin: 0 0 8px;
  color: var(--founder-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.founder-receipt__title {
  margin: 0;
  font: 400 clamp(30px, 6vw, 42px)/1 var(--ui-font-display);
  text-wrap: balance;
}
.founder-receipt__title:focus { outline: none; }
.founder-receipt__subtitle { margin: 10px 0 0; color: var(--ui-color-text-muted); font-size: 14px; }
.founder-receipt__close { flex: none; min-width: 44px; min-height: 44px; font-size: 24px; }
.founder-receipt__stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 208px;
  margin: 8px 24px 0;
  overflow: hidden;
}
.founder-receipt__stage[hidden], .founder-receipt__contents[hidden] { display: none; }
.founder-receipt__glow {
  position: absolute;
  width: 248px;
  height: 184px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #dab36c2e, #ef5b6310 46%, transparent 72%);
  pointer-events: none;
}
.founder-receipt__chest {
  position: relative;
  width: 128px;
  height: 128px;
  image-rendering: pixelated;
  transform-origin: center;
}
.founder-receipt[data-phase="revealing"] .founder-receipt__chest {
  animation: founder-chest-open .85s steps(1, end) both;
}
.founder-receipt[data-phase="revealing"] .founder-receipt__glow {
  animation: founder-chest-light 1.1s ease-out both;
}
.founder-receipt__contents { padding: 24px 24px 0; }
.founder-receipt__rewards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.founder-receipt__reward {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--ui-color-border);
  border-radius: var(--ui-radius);
  background: var(--ui-color-surface);
}
.founder-receipt[data-motion="animate"] .founder-receipt__reward {
  animation: founder-reward-arrive .22s ease-out both;
  animation-delay: calc(min(var(--founder-reward-index, 0), 6) * 25ms);
}
.founder-receipt__reward--outfit { min-height: 88px; }
.founder-receipt__reward--founder-ball { border-color: #ef5b6380; }
.founder-receipt__reward--tag { border-color: #dab36c80; }
.founder-receipt__art { display: grid; flex: none; place-items: center; min-width: 36px; min-height: 36px; }
.founder-receipt__art--outfit { width: 64px; height: 64px; }
.founder-receipt__art--outfit img { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; }
.founder-receipt__reward .trainer-tag { flex: none; margin-inline: 4px; }
.founder-receipt__reward-label { display: grid; gap: 4px; min-width: 0; }
.founder-receipt__reward-label strong { font-size: 14px; line-height: 1.2; }
.founder-receipt__reward-label small { font-size: 12px; line-height: 1.35; color: var(--ui-color-text-muted); }
.founder-receipt__feedback { min-height: 36px; margin: 16px 24px; color: var(--ui-color-text-muted); font-size: 14px; line-height: 1.4; }
.founder-receipt__actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--ui-color-border);
  background: var(--ui-color-surface-raised);
}
.founder-receipt__actions .ui-button { min-height: 44px; }
@keyframes founder-chest-open {
  0%, 18% { transform: translate(0, 0); }
  30% { transform: translate(-4px, -4px); }
  44% { transform: translate(4px, -4px); }
  60% { transform: translate(0, -8px); opacity: 1; }
  82%, 100% { transform: translate(0, -24px); opacity: 0; }
}
@keyframes founder-chest-light {
  0% { opacity: .5; transform: scale(.8); }
  60% { opacity: 1; transform: scale(1.35); }
  100% { opacity: 0; transform: scale(1.7); }
}
@keyframes founder-reward-arrive { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) {
  .founder-receipt { max-height: calc(100dvh - 16px); }
  .founder-receipt__header { padding: 20px 16px 0; }
  .founder-receipt__contents { padding: 16px 16px 0; }
  .founder-receipt__feedback { margin: 12px 16px; }
  .founder-receipt__rewards { grid-template-columns: minmax(0, 1fr); }
  .founder-receipt__actions { padding: 12px 16px; }
  .founder-receipt__actions .ui-button { flex: 1 1 44%; }
}
@media (prefers-reduced-motion: reduce) {
  .founder-receipt *, .founder-receipt *::before, .founder-receipt *::after {
    animation: none !important;
    transition: none !important;
  }
}
