.draw-status,
.inventory-status {
  padding: 10px 16px;
  border-radius: 6px;
  color: #742644;
  background: #fff5f9;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
}
.draw-status {
  position: fixed;
  z-index: 50;
  left: 50%;
  top: max(16px, env(safe-area-inset-top));
  transform: translateX(-50%);
  width: min(90%, 440px);
  margin: 0;
  box-sizing: border-box;
}
.inventory-status { margin: 8px 5%; }
.draw-status[hidden], .inventory-status[hidden] { display: none; }
.gacha-ended {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  color: #742644;
  background: rgb(255 245 249 / 90%);
  backdrop-filter: blur(8px);
}
.gacha-ended h1 { margin: 0; font-size: 24px; line-height: 1.4; }
.gacha-ended p { margin: 0; font-size: 15px; }
.gacha-ended a { width: min(100%, 360px); margin-top: 12px; }
.gacha-ended[hidden] { display: none; }
.top-gacha-button[aria-disabled="true"] { opacity: 0.65; cursor: default; }
.top-gacha-button[hidden], .entry-message[hidden] { display: none; }
.entry-message {
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  color: #742644;
  background: #fff5f9;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.top-entry-actions { display: grid; gap: 8px; min-width: 0; flex-shrink: 0; }
.top-entry-actions .top-gacha-button { position: static; width: 100%; translate: none; }
.reception-number {
  margin: 0;
  color: #742644;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}
.reception-number strong { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reception-number[hidden], .receipt-link[hidden], .recent-entries[hidden],
.receipt-confirmed[hidden], [data-entry-resume][hidden] { display: none; }
.receipt-link { color: #742644; text-align: center; font-size: 14px; padding: 10px; text-underline-offset: 3px; }
.reception-panel {
  align-self: start;
  min-width: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: auto;
  color: #513e47;
  background: #fffafc;
  border: 1px solid #efcedb;
  border-radius: 8px;
}
.reception-panel h2 { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 700; }
.reception-current { padding: 24px; border-top: 4px solid #ed86a9; }
.reception-current h2 { color: #806874; font-size: 12px; }
.reception-panel .reception-number { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; text-align: left; }
.reception-panel .reception-number[hidden] { display: none; }
.reception-panel .reception-number strong { min-width: 0; color: #963653; font-size: 42px; line-height: 1.2; font-weight: 800; white-space: normal; overflow-wrap: anywhere; }
.reception-panel .reception-number strong[data-pending="true"] { font-size: 16px; }
.reception-panel .entry-message { margin-top: 16px; padding: 0; border-radius: 0; background: none; text-align: left; font-size: 12px; color: #806874; }
.reception-panel .receipt-link { display: block; padding: 12px 0 0; text-align: left; font-size: 13px; font-weight: 700; }
.reception-panel .receipt-link[hidden] { display: none; }
.reception-history { min-height: 0; overflow: auto; }
.reception-history-heading { display: list-item; margin: 0 24px; padding: 20px 0; border-top: 1px solid #eadde3; font-size: 14px; line-height: 1.5; font-weight: 700; cursor: pointer; }
.reception-history-heading::marker { color: #a93867; }
.reception-history-heading:focus-visible { outline: 2px solid #a93867; outline-offset: 2px; }
.reception-history-count { float: right; margin-left: 12px; color: #8c7781; font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.recent-entries { min-height: 0; overflow: auto; padding: 0 24px 12px; scrollbar-width: thin; }
.recent-entries ul { list-style: none; padding: 0; margin: 0; }
.recent-entries li + li { border-top: 1px solid #f1e6eb; }
.receipt-history-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; color: inherit; text-decoration: none; }
.receipt-history-main { display: grid; min-width: 0; gap: 5px; }
.receipt-history-main strong { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.receipt-history-main time { font-size: 11px; color: #8c7781; }
.receipt-history-state { color: #806874; font-size: 12px; font-weight: 600; }
.receipt-history-state[data-drawn="true"] { color: #963653; }
.receipt-history-action { flex-shrink: 0; color: #a93867; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.receipt-history-link:focus-visible, .reception-panel .receipt-link:focus-visible { outline: 2px solid #a93867; outline-offset: 2px; border-radius: 2px; }
.reception-history-empty { margin: 0; padding: 16px 24px 28px; color: #8c7781; font-size: 12px; line-height: 1.6; }
.reception-history-empty[hidden] { display: none; }
@media (max-width: 899px) {
  .reception-panel { max-height: none; }
  .recent-entries { max-height: 320px; }
  .reception-current { padding: 20px; }
  .reception-history-heading { margin-inline: 20px; }
  .recent-entries { padding-inline: 20px; }
  .reception-history-empty { padding-inline: 20px; }
}
.receipt-confirmed { margin: 0; text-align: center; font-size: 12px; color: #742644; }
[data-receipt-panel] p { max-width: 440px; line-height: 1.7; }
[data-receipt-panel] { overflow-y: auto; }
[data-receipt-panel] .receipt-reference { color: #806874; font-size: 14px; font-variant-numeric: tabular-nums; }
[data-receipt-panel] .receipt-reference[hidden] { display: none; }
[data-receipt-panel] .receipt-resume-link,
[data-receipt-panel] .receipt-retry-button {
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  color: #742644;
  background: none;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  cursor: pointer;
}
[data-receipt-panel] .receipt-retry-button { color: #806874; font-size: 12px; }
[data-receipt-panel] .receipt-retry-button:disabled { opacity: 0.6; cursor: wait; }
[data-receipt-panel] a:focus-visible,
[data-receipt-panel] button:focus-visible { outline: 2px solid #a93867; outline-offset: 2px; }
