:root {
  --cream: #fffaf4;
  --paper: #fffefb;
  --orange: #ff9866;
  --orange-dark: #b96849;
  --pink: #ffb5c8;
  --mint: #9cded5;
  --yellow: #ffe9b8;
  --lavender: #c9c0ff;
  --text: #2f2a28;
  --muted: #8b817a;
  --line: #d8b58a;
  --shadow: 0 12px 30px rgba(145, 108, 74, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(156, 222, 213, 0.25), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(255, 181, 200, 0.22), transparent 28%),
    linear-gradient(180deg, #fff7e7 0%, var(--cream) 30%, #fffdfa 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.shell {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 16px 144px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.app-head,
.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.brand-mark {
  display: grid;
  width: 50px;
  height: 42px;
  place-items: center;
  transform: rotate(-4deg);
  border: 2px dashed var(--line);
  border-radius: 16px 18px 12px 20px;
  background: linear-gradient(135deg, #fff6d8, #fff);
  color: var(--orange-dark);
  font-weight: 900;
  box-shadow: var(--shadow);
}

.brand strong {
  font-size: 23px;
}

.soft-icon,
.circle-btn,
.search-row button,
.panel-actions button,
.draw-bar button,
.bottom-bar button,
.modal-action,
.filter-tabs button,
.brand-strip button,
.inner-tabs button {
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 4px 10px rgba(176, 130, 82, 0.12);
}

.soft-icon {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--orange-dark);
  font-weight: 800;
}

.circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 30px;
}

.ticker {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 185, 91, 0.7);
  color: #fff;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 78px;
  gap: 10px;
  margin-top: 18px;
}

.search-row input {
  min-width: 0;
  height: 48px;
  border: 1.5px solid #c9bcae;
  border-radius: 999px;
  padding: 0 18px;
  background: #fff;
  outline: none;
}

.search-row button,
.panel-actions button,
.draw-bar button,
.modal-action {
  min-height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff3ce, #ffe5ae);
  color: var(--orange-dark);
  font-weight: 900;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.home-banner {
  position: relative;
  margin-top: 18px;
}

.banner-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 138px;
  overflow: hidden;
  border: 1.5px solid #e6c99f;
  border-radius: 26px;
  padding: 0;
  background: #fff2c8;
  box-shadow: var(--shadow);
  text-align: left;
}

.banner-card.image-fallback {
  background:
    radial-gradient(circle at 18% 26%, rgba(255, 255, 255, 0.86), transparent 28%),
    linear-gradient(135deg, rgba(156, 222, 213, 0.42), rgba(255, 181, 200, 0.28) 52%, rgba(255, 233, 184, 0.78));
}

.banner-card::before,
.banner-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: -9px;
  width: 44px;
  height: 18px;
  border-radius: 999px;
  background: rgba(156, 222, 213, 0.65);
  border: 1px solid rgba(92, 164, 153, 0.35);
}

.banner-card::before {
  left: 34px;
}

.banner-card::after {
  right: 34px;
}

.banner-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-fallback-mark {
  position: absolute;
  right: 20px;
  bottom: 22px;
  z-index: 1;
  border: 2px dashed rgba(185, 134, 83, 0.48);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

.banner-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(49, 39, 35, 0.72), rgba(49, 39, 35, 0.28) 58%, rgba(49, 39, 35, 0.08)),
    linear-gradient(180deg, transparent 54%, rgba(49, 39, 35, 0.34));
}

.banner-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  max-width: 76%;
  padding: 22px 18px 34px;
  color: #fff;
}

.banner-copy strong {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 950;
}

.banner-copy small {
  line-height: 1.5;
  font-size: 13px;
  font-weight: 750;
}

.banner-dots {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 14px;
  display: flex;
  gap: 6px;
}

.banner-dots i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.banner-dots i.active {
  width: 20px;
  background: #fff;
}

.brand-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-top: 18px;
  scrollbar-width: none;
}

.brand-strip::-webkit-scrollbar {
  display: none;
}

.brand-strip button {
  display: grid;
  flex: 0 0 86px;
  gap: 2px;
  min-height: 74px;
  align-content: center;
  justify-items: center;
  border-radius: 18px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.brand-strip button.active {
  border-color: var(--orange);
  background: #fff1c8;
  color: var(--orange-dark);
}

.brand-strip button.has-avatar {
  min-height: 92px;
  padding: 8px 6px;
}

.brand-strip button img {
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  border: 1px solid rgba(216, 181, 138, 0.8);
  border-radius: 50%;
  object-fit: cover;
  background: #fff7ea;
}

.brand-strip button strong,
.brand-strip button span {
  display: block;
  line-height: 1.1;
}

.brand-strip button span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 14px;
}

.filter-tabs button,
.inner-tabs button {
  height: 42px;
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
}

.filter-tabs button.active,
.inner-tabs button.active {
  background: linear-gradient(180deg, var(--orange), #f07d55);
  color: #fff;
}

.detail-rule-card {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  border: 1.5px solid #cddfd8;
  border-radius: 22px;
  padding: 13px;
  background: #f9fffc;
  box-shadow: var(--shadow);
}

.detail-rule-card span {
  color: #4f8e84;
  font-size: 11px;
  font-weight: 900;
}

.detail-rule-card strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
}

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

.pool-card,
.prize-card,
.record-row,
.backpack-row {
  border: 1.5px solid #b7a594;
  border-radius: 20px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pool-card {
  text-align: left;
}

.pool-thumb,
.sticker-art {
  position: relative;
  min-height: 136px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 34%, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(135deg, rgba(255, 181, 200, 0.36), transparent 44%),
    linear-gradient(45deg, #dff7f4, #fff0c5);
}

.pool-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pool-thumb.has-image::before {
  display: none;
}

.pool-thumb.has-image::after {
  background: rgba(98, 82, 68, 0.54);
}

.pool-thumb b {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 52%;
  width: 82px;
  min-height: 58px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) rotate(-6deg);
  border: 2px dashed rgba(185, 134, 83, 0.5);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--orange-dark);
  font-size: 13px;
  text-align: center;
}

.pool-thumb::before,
.sticker-art::before {
  content: "";
  position: absolute;
  inset: 24px 18px;
  border-radius: 20px;
  background:
    linear-gradient(90deg, transparent 10px, rgba(255, 255, 255, 0.82) 10px, rgba(255, 255, 255, 0.82) 18px, transparent 18px),
    rgba(255, 255, 255, 0.48);
  border: 2px dashed rgba(185, 134, 83, 0.35);
}

.pool-thumb::after,
.sticker-art::after {
  content: "PARCEL";
  position: absolute;
  left: 20px;
  bottom: 18px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(98, 82, 68, 0.64);
  color: #fff;
  font-weight: 900;
}

.tag,
.price-tag {
  position: absolute;
  z-index: 2;
  top: 8px;
  border: 2px solid var(--orange-dark);
  background: var(--orange);
  color: #fff;
  font-weight: 900;
}

.tag {
  left: 0;
  border-left: 0;
  border-radius: 0 14px 14px 0;
  padding: 6px 12px;
}

.price-tag {
  right: 8px;
  border-radius: 8px;
  padding: 5px 8px;
  background: #fff8ce;
  color: var(--text);
}

.pool-status {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 9px;
  max-width: calc(100% - 78px);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.pool-status.presale {
  background: rgba(255, 245, 250, 0.92);
  color: #b85678;
}

.pool-status.sold-out,
.pool-status.paused {
  background: rgba(47, 42, 40, 0.72);
  color: #fff;
}

.pool-body {
  padding: 10px;
}

.pool-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.pool-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pool-card h3,
.pool-card p {
  margin: 0;
}

.pool-card h3 {
  min-height: 48px;
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.25;
}

.pool-card p {
  color: var(--mint);
  font-weight: 900;
}

.pool-stock {
  margin-top: 6px !important;
}

.pool-key {
  margin-top: 4px !important;
  color: var(--muted) !important;
  font-size: 12px;
}

.pool-panel,
.detail-card {
  margin-top: 16px;
  border: 1.5px solid #eccb98;
  border-radius: 26px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: var(--shadow);
}

.pool-panel {
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 14px;
  padding: 16px;
}

.draw-machine-panel {
  position: relative;
  gap: 10px;
  border-color: #e8bd75;
  border-radius: 20px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 247, 231, 0.94)),
    var(--paper);
}

.draw-machine-panel::before {
  display: none;
}

.pool-cover {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  border-radius: 20px;
  border: 1.5px solid #ccb68f;
  background:
    radial-gradient(circle at 28% 34%, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(135deg, rgba(255, 181, 200, 0.36), transparent 44%),
    linear-gradient(45deg, #dff7f4, #fff0c5);
}

.pool-cover.has-image::before {
  display: none;
}

.pool-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pool-cover span {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  border-radius: 8px;
  padding: 4px 6px;
  background: #fff8ce;
  border: 2px solid #857761;
  font-weight: 900;
}

.pool-cover b {
  position: absolute;
  left: 20px;
  bottom: 14px;
  color: #fff;
  z-index: 2;
}

.draw-machine-cover {
  aspect-ratio: 1 / 1;
  min-height: 104px;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.34);
}

.pool-copy h1 {
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.18;
}

.pool-copy p {
  margin: 5px 0;
  font-weight: 750;
}

#detailMeta,
#detailBoxMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.draw-machine-meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 3px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #fffaf2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.draw-machine-meta strong {
  color: var(--text);
}

.detail-chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff5df;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
}

.detail-chip.status.in-stock {
  background: #eefaf7;
  color: #4f8e84;
}

.detail-chip.status.presale {
  background: #fff0f6;
  color: #b85678;
}

.detail-chip.status.sold-out,
.detail-chip.status.paused {
  background: #5b4c40;
  color: #fff;
}

.detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 0;
}

.detail-summary span {
  display: grid;
  min-width: 0;
  min-height: 46px;
  align-content: center;
  border-radius: 12px;
  padding: 6px;
  background: #fffaf2;
  box-shadow: inset 0 0 0 1px #f2dfc4;
}

.detail-summary strong,
.detail-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-summary strong {
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 950;
}

.detail-summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.detail-main-line {
  margin: 8px 0 0 !important;
  border-radius: 16px;
  padding: 9px 11px;
  background: #eefaf7;
  color: #4f8e84;
  font-size: 13px;
  font-weight: 950 !important;
  line-height: 1.38;
  box-shadow: inset 0 0 0 1px rgba(79, 142, 132, 0.18);
}

.detail-main-line.sold-out,
.detail-main-line.paused {
  background: #fff6ef;
  color: #b96849;
  box-shadow: inset 0 0 0 1px rgba(255, 152, 102, 0.2);
}

.panel-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.draw-machine-actions button {
  min-width: 0;
  min-height: 44px;
  border-radius: 14px;
  padding: 7px 4px;
  font-size: 12px;
  font-weight: 950;
}

.detail-card {
  padding: 14px;
}

.inner-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.backpack-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.backpack-tabs button {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 40px;
  align-content: center;
  justify-items: center;
  padding: 7px 8px;
  border: 1.5px solid #d8b58a;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
}

.backpack-tabs button span,
.backpack-tabs button small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backpack-tabs button small {
  opacity: 0.72;
  font-size: 11px;
  line-height: 1.1;
}

.backpack-tabs button.active {
  background: linear-gradient(180deg, #ffad80, #f1845d);
  color: #fff;
}

.progress-wrap {
  margin-top: 12px;
  color: var(--orange-dark);
  text-align: center;
  font-weight: 800;
}

.progress-wrap i {
  display: block;
  height: 14px;
  margin-top: 8px;
  border: 2px solid #f0dda7;
  border-radius: 999px;
  background: #fffbed;
}

.progress-wrap b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--mint);
}

.detail-content {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mall-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.box-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.box-card {
  display: grid;
  gap: 6px;
  min-height: 150px;
  border: 1.5px solid #e8d3b4;
  border-radius: 18px;
  padding: 12px;
  background: #fffaf2;
  text-align: left;
}

.box-card.active {
  border-color: #ff9866;
  background: #fff0df;
}

.box-card strong {
  font-size: 20px;
}

.box-card span,
.box-card small {
  color: var(--muted);
}

.box-card em {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eefaf7;
  color: #4f8e84;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.mall-card {
  display: grid;
  gap: 7px;
  border: 1.5px solid #e8d3b4;
  border-radius: 18px;
  padding: 10px;
  background: #fffaf2;
}

.mall-card strong {
  min-height: 38px;
}

.mall-card span {
  color: var(--muted);
  font-size: 13px;
}

.mall-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.mall-note.strong-note {
  margin: 0;
  border-radius: 12px;
  padding: 7px 8px;
  background: #eefaf7;
  color: #4f8e84;
  font-weight: 900;
}

.points-pill {
  display: inline-block;
  margin: 0 0 12px;
  border-radius: 999px;
  padding: 8px 12px;
  background: #eefaf7;
  color: #4f8e84;
  font-weight: 900;
}

.shipping-preview-line,
.shipping-preview-card,
.flow-note,
.selection-toolbar,
.next-step-card,
.mine-next-card {
  margin: 0 0 12px;
  border-radius: 16px;
  padding: 10px 12px;
  background: #eefaf7;
  color: #4f8e84;
  font-weight: 900;
}

.shipping-preview-card,
.flow-note,
.next-step-card,
.mine-next-card {
  display: grid;
  gap: 4px;
  color: var(--text);
}

.shipping-preview-card p,
.flow-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.shipping-preview-card span,
.next-step-card span,
.mine-next-card span {
  color: #4f8e84;
  font-size: 12px;
  font-weight: 950;
}

.next-step-card strong,
.mine-next-card strong {
  color: #455163;
  line-height: 1.45;
}

.shipping-preview-card.free {
  background: #eefaf7;
}

.shipping-preview-card.fee,
.flow-note {
  background: #fff7e8;
}

.shipping-confirm-card {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  border-radius: 18px;
  padding: 12px;
  background: #eefaf7;
  box-shadow: inset 0 0 0 1px rgba(79, 142, 132, 0.18);
}

.shipping-confirm-card.fee {
  background: #fff7e8;
  box-shadow: inset 0 0 0 1px #f2dfc4;
}

.shipping-confirm-card > span {
  color: #4f8e84;
  font-size: 12px;
  font-weight: 950;
}

.shipping-confirm-card.fee > span {
  color: var(--orange-dark);
}

.shipping-confirm-card > strong {
  color: #455163;
  font-size: 18px;
  line-height: 1.3;
}

.shipping-confirm-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.shipping-confirm-grid article {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 58px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.shipping-confirm-grid b,
.shipping-confirm-grid small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shipping-confirm-grid b {
  color: var(--text);
  font-size: 18px;
}

.shipping-confirm-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.simple-help {
  margin-bottom: 10px;
}

.selection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff7e8;
  color: var(--orange-dark);
}

.selection-toolbar .text-link {
  border: 0;
  background: transparent;
  color: var(--orange-dark);
  font: inherit;
  font-weight: 900;
}

.receiver-form {
  display: grid;
  gap: 10px;
}

.receiver-section-title {
  display: grid;
  gap: 2px;
  margin: 4px 0 8px;
}

.receiver-section-title strong {
  color: var(--text);
  font-size: 15px;
}

.receiver-section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.receiver-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.receiver-form input,
.receiver-form textarea {
  width: 100%;
  min-width: 0;
  border: 1.5px solid #d8b58a;
  border-radius: 16px;
  padding: 11px 12px;
  background: #fffefb;
  color: var(--text);
  outline: none;
  font: inherit;
}

.receiver-form textarea {
  min-height: 86px;
  resize: vertical;
  line-height: 1.45;
}

.mine-guest-card,
.mine-card {
  display: grid;
  gap: 10px;
  border-radius: 20px;
  padding: 14px;
  background: #fffaf2;
  box-shadow: inset 0 0 0 1px #f2dfc4;
}

.mine-guest-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.mine-overview-card {
  gap: 8px;
  background: #eefaf7;
  color: #455163;
  box-shadow: inset 0 0 0 1px rgba(79, 142, 132, 0.18);
}

.mine-overview-card > span {
  color: #4f8e84;
  font-size: 12px;
  font-weight: 950;
}

.mine-overview-card > strong {
  font-size: 24px;
  line-height: 1.2;
}

.mine-overview-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.mine-primary-actions,
.mine-secondary-actions {
  display: grid;
  gap: 10px;
}

.mine-primary-actions {
  grid-template-columns: 1fr 1fr;
  margin-top: 4px;
}

.mine-secondary-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.mine-tab-card {
  gap: 10px;
  padding: 10px;
}

.mine-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border-radius: 18px;
  padding: 5px;
  background: #f7ead7;
}

.mine-tabs button {
  display: grid;
  min-width: 0;
  min-height: 54px;
  align-content: center;
  gap: 3px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 6px 4px;
  background: transparent;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.mine-tabs button.active,
.mine-tabs button[aria-selected="true"] {
  border-color: rgba(216, 181, 138, 0.9);
  background: #fffefb;
  color: var(--text);
  box-shadow: 0 8px 18px rgba(139, 96, 50, 0.1);
}

.mine-tabs span,
.mine-tabs strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-tabs span {
  font-size: 12px;
  font-weight: 950;
}

.mine-tabs strong {
  color: inherit;
  font-size: 11px;
  font-weight: 850;
}

.mine-tab-panel {
  display: grid;
  gap: 8px;
  min-height: 96px;
}

.mine-profile {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.mine-profile span,
.mine-profile p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mine-profile strong {
  display: block;
  margin: 3px 0;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.mine-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mine-fold-card {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.mine-fold-card details {
  min-width: 0;
}

.mine-fold-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 20px;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.mine-fold-card summary::-webkit-details-marker {
  display: none;
}

.mine-fold-card summary::before {
  content: "+";
  grid-row: 1;
  grid-column: 3;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  color: var(--orange-dark);
  text-align: center;
  font-weight: 950;
  line-height: 20px;
}

.mine-fold-card details[open] summary::before {
  content: "-";
}

.mine-fold-card summary span {
  color: var(--text);
  font-weight: 950;
}

.mine-fold-card summary strong {
  grid-row: 1;
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.mine-fold-body {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.mine-profile-compact {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.mine-profile-compact p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.text-link {
  min-height: 30px;
  border: 1.5px solid #d8b58a;
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
}

.mine-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-radius: 16px;
  padding: 10px;
  background: #fffefb;
  text-align: left;
}

.mine-row strong,
.mine-row p {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.mine-action {
  width: 100%;
}

.mini-empty {
  border-radius: 16px;
  padding: 14px;
  background: #fffefb;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.mine-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.mine-actions button:first-child {
  grid-column: 1 / -1;
}

.prize-card {
  position: relative;
  min-height: 156px;
  padding: 7px;
  font-size: 13px;
}

.prize-art {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1;
  min-height: 74px;
  overflow: hidden;
  place-items: center;
  border-radius: 12px;
  background: #fff0f5;
  color: var(--orange-dark);
  font-weight: 900;
}

.prize-art b {
  font-size: 24px;
}

.prize-art.has-image,
.record-icon.has-image {
  background: #fff8e8;
}

.prize-art img,
.record-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prize-grade-badge,
.prize-stock-badge,
.prize-soldout-mask {
  position: absolute;
  z-index: 2;
}

.prize-grade-badge {
  top: 6px;
  left: 6px;
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--orange-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.prize-stock-badge {
  right: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  overflow: hidden;
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(47, 42, 40, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prize-soldout-mask {
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(47, 42, 40, 0.54);
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0;
}

.prize-card.is-soldout {
  opacity: 0.82;
}

.prize-card strong {
  display: block;
  margin-top: 6px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.prize-card span {
  color: var(--muted);
}

.prize-probability-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  align-items: center;
  margin-top: 6px;
  border-radius: 999px;
  padding: 2px 7px;
  background: #fff2df;
  color: var(--orange-dark) !important;
  font-size: 11px;
  font-weight: 950;
}

.prize-card .status-pill {
  display: inline-flex;
  margin-top: 6px;
  align-items: center;
}

.stock-row.is-soldout {
  opacity: 0.76;
}

.prize-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.record-row,
.backpack-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-color: #efe0c8;
}

.backpack-row {
  margin-top: 10px;
}

.record-row > div:not(.record-icon),
.backpack-row > div:not(.record-icon) {
  min-width: 0;
}

.record-icon {
  display: grid;
  width: 54px;
  height: 54px;
  overflow: hidden;
  place-items: center;
  border-radius: 14px;
  background: #fff0b6;
  color: var(--orange-dark);
  font-weight: 900;
}

.backpack-item {
  grid-template-columns: auto 54px 1fr;
  align-items: start;
  gap: 10px;
}

.backpack-action {
  width: 100%;
  padding: 10px;
  border: 1.5px solid #efe0c8;
  border-radius: 20px;
  background: var(--paper);
  text-align: left;
}

.shipping-order-row {
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: start;
}

.shipping-order-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.shipping-order-title {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.shipping-order-title strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.shipping-order-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.backpack-copy {
  min-width: 0;
}

.backpack-copy strong,
.backpack-copy p {
  display: block;
  min-width: 0;
}

.backpack-copy strong {
  line-height: 1.3;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.backpack-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff5df;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.neutral {
  background: #f0f3f8;
  color: #607089;
}

.status-pill.in-backpack,
.status-pill.ready {
  background: #eefaf7;
  color: #4f8e84;
}

.status-pill.presale,
.status-pill.aftersale {
  background: #fff0f6;
  color: #b85678;
}

.status-pill.locked {
  background: #66594f;
  color: #fff;
}

.status-pill.shipped,
.status-pill.signed {
  background: #eaf5ff;
  color: #3d6d9b;
}

.status-pill.decomposed {
  background: #f2f2f2;
  color: #6a6a6a;
}

.record-row p,
.backpack-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.bottom-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 430px;
  margin: 0 auto;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #eed5aa;
  border-radius: 26px 26px 0 0;
  background: rgba(255, 250, 238, 0.96);
  box-shadow: 0 -8px 22px rgba(176, 111, 48, 0.16);
}

.bottom-bar.detail-mode {
  padding-top: 7px;
  padding-bottom: calc(7px + env(safe-area-inset-bottom));
  border-top-color: rgba(238, 213, 170, 0.52);
  background: rgba(255, 250, 238, 0.82);
  box-shadow: 0 -4px 12px rgba(176, 111, 48, 0.06);
}

.bottom-bar button {
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #5b4c40;
  font-size: 12px;
  font-weight: 900;
}

.bottom-bar.detail-mode button {
  color: rgba(91, 76, 64, 0.68);
  font-size: 11px;
  font-weight: 850;
}

.draw-bar {
  position: fixed;
  right: 0;
  bottom: calc(68px + env(safe-area-inset-bottom));
  left: 0;
  z-index: 11;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 430px;
  margin: 0 auto;
  padding: 10px 10px 9px;
  border-top: 1px solid rgba(232, 189, 117, 0.5);
  background: rgba(255, 250, 238, 0.97);
  box-shadow: 0 -10px 20px rgba(176, 111, 48, 0.12);
}

.bottom-bar.detail-mode + .draw-bar {
  bottom: calc(54px + env(safe-area-inset-bottom));
}

.draw-bar button.disabled {
  background: #eee5db;
  color: #8d8177;
  border-color: #d8c7b0;
  cursor: not-allowed;
  opacity: 0.72;
}

.draw-bar button {
  display: grid;
  min-height: 48px;
  place-items: center;
  gap: 2px;
  border-radius: 14px;
  padding: 8px 6px;
  background: #fffefb;
  font-weight: 950;
}

.draw-command-primary {
  border-color: #f08c55 !important;
  background: linear-gradient(180deg, #ffad80, #f1845d) !important;
  color: #fff !important;
}

.draw-command-full:not(.disabled) {
  border-color: #ad8f48 !important;
  background: linear-gradient(180deg, #3e342d, #5a463a) !important;
  color: #fff !important;
}

.draw-bar button small {
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(25, 21, 18, 0.58);
}

.modal-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 390px);
  max-height: min(88vh, 720px);
  overflow: hidden;
  border: 1.5px solid #e9c690;
  border-radius: 30px;
  padding: 0;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-card::before {
  display: none;
}

.modal-card > * {
  position: relative;
  z-index: 1;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 18px 18px 14px;
  border-bottom: 1.5px solid #efd5a6;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #fff0cf, #fff8ea);
}

.modal-title-wrap {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.modal-card h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--orange);
  overflow-wrap: anywhere;
  text-align: left;
  font-size: 22px;
  line-height: 1.25;
}

.modal-title-meta {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 128px;
  min-height: 28px;
  overflow: hidden;
  border: 1.5px solid rgba(216, 181, 138, 0.72);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.modal-title-meta[hidden] {
  display: none;
}

.modal-close {
  position: static;
  flex: 0 0 auto;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff9f73, #ee7d52);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

#modalBody {
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 18px;
  scrollbar-gutter: stable;
}

.option-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  border-radius: 18px;
  padding: 14px;
  background: #fffaf2;
  box-shadow: inset 0 0 0 1px #f2dfc4;
}

.option-row strong {
  display: block;
  font-size: 18px;
}

.option-row span,
.muted {
  color: var(--muted);
}

.purchase-head {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  border-radius: 18px;
  padding: 12px;
  background: #eefaf7;
  color: #4f8e84;
  box-shadow: inset 0 0 0 1px rgba(79, 142, 132, 0.18);
}

.purchase-head-alert {
  background: #fff5ec;
  color: #b96849;
  box-shadow: inset 0 0 0 1px rgba(255, 152, 102, 0.24);
}

.purchase-head span {
  font-size: 12px;
  font-weight: 950;
}

.purchase-head strong {
  color: #455163;
  line-height: 1.35;
}

.purchase-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.purchase-native-note,
.purchase-sync-note {
  display: grid;
  gap: 4px;
  margin: 10px 0;
  border-radius: 16px;
  padding: 12px;
  background: #fffaf2;
  box-shadow: inset 0 0 0 1px #f2dfc4;
}

.purchase-native-note strong,
.purchase-sync-note strong {
  color: var(--orange-dark);
  font-size: 13px;
}

.purchase-native-note p,
.purchase-sync-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.purchase-option {
  grid-template-columns: 52px minmax(0, 1fr) auto;
}

.purchase-option-list {
  display: grid;
  gap: 10px;
}

.sku-thumb,
.native-sku-cover {
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1.5px solid #e8bd75;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 185, 91, 0.92), rgba(255, 145, 79, 0.85)),
    #fff1c7;
  color: #fff;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(185, 104, 73, 0.18);
}

.sku-thumb.has-image,
.native-sku-cover.has-image {
  background: #fff8e8;
}

.sku-thumb img,
.native-sku-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sku-thumb {
  width: 52px;
  height: 52px;
  font-size: 22px;
}

.purchase-option small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.native-sku-sheet {
  display: grid;
  gap: 12px;
  margin: -4px -2px 0;
}

.native-sku-topline {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid #f1dfc6;
  padding-bottom: 10px;
}

.native-sku-topline strong {
  color: var(--orange-dark);
  font-size: 13px;
  line-height: 1.4;
}

.native-sku-topline span {
  color: var(--muted);
  font-size: 12px;
}

.native-sku-main {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.native-sku-product {
  border-bottom: 1px solid #f1dfc6;
  padding-bottom: 12px;
}

.native-sku-cover {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  font-size: 30px;
}

.native-sku-main span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.native-sku-main strong {
  display: block;
  margin: 3px 0;
  color: #f15f2c;
  font-size: 28px;
  line-height: 1.1;
}

.native-sku-main p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.native-sku-list {
  display: grid;
  gap: 7px;
  max-height: 146px;
  overflow: auto;
  overscroll-behavior: contain;
}

.native-sku-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: 13px;
}

.native-sku-section-title strong {
  font-size: 15px;
}

.native-sku-section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.native-sku-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 9px 12px;
  background: #f8f4ed;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.native-sku-choice.active {
  border-color: rgba(255, 152, 102, 0.56);
  background: #fff0d8;
  box-shadow: none;
}

.native-sku-choice span {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.native-sku-choice strong {
  flex: 0 0 auto;
  color: #f15f2c;
}

.native-sku-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fffaf2;
  box-shadow: inset 0 0 0 1px #f2dfc4;
}

.native-sku-stepper > span {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.native-sku-stepper > div {
  display: grid;
  grid-template-columns: 34px 38px 34px;
  overflow: hidden;
  border: 1px solid #e6d6bf;
  border-radius: 999px;
  background: #fff;
}

.native-sku-stepper button,
.native-sku-stepper strong {
  display: grid;
  min-height: 32px;
  place-items: center;
  color: var(--text);
  font-weight: 950;
}

.native-sku-stepper button {
  background: #f7efe4;
}

.native-sku-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding-top: 8px;
  background: var(--paper);
}

.native-sku-bottom {
  padding-bottom: max(0px, env(safe-area-inset-bottom));
}

.native-sku-actions .modal-action {
  border-radius: 0;
}

.native-sku-actions .modal-action:first-child {
  border-radius: 14px 0 0 14px;
  background: #ff9900;
  color: #fff;
}

.native-sku-actions .modal-action:last-child {
  border-radius: 0 14px 14px 0;
  background: #ff4f1f;
}

.purchase-waiting {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px 10px;
  text-align: center;
}

.purchase-spinner {
  width: 52px;
  height: 52px;
  border: 5px solid #ffe2b8;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: purchase-spin 0.88s linear infinite;
}

.purchase-waiting strong {
  color: var(--orange-dark);
  font-size: 18px;
}

.purchase-waiting p {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@keyframes purchase-spin {
  to {
    transform: rotate(360deg);
  }
}

.buyer-summary-card {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  border-radius: 18px;
  padding: 12px;
  background: #eefaf7;
  color: #4f8e84;
  box-shadow: inset 0 0 0 1px rgba(79, 142, 132, 0.18);
}

.buyer-summary-card span {
  font-size: 12px;
  font-weight: 950;
}

.buyer-summary-card strong {
  color: #455163;
  font-size: 28px;
  line-height: 1.1;
}

.buyer-summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.mall-summary-card {
  background: #fff7e8;
  color: var(--orange-dark);
  box-shadow: inset 0 0 0 1px #f2dfc4;
}

.summary-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.option-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.task-stack {
  display: grid;
  gap: 10px;
}

.task-row {
  align-items: start;
}

.task-row-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 6px;
}

.task-meta small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.modal-hint {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 850;
}

.rule-content {
  display: grid;
  gap: 10px;
}

.rule-content p {
  margin: 0;
  color: #455163;
  font-size: 13px;
  line-height: 1.7;
}

.modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.modal-action.secondary {
  background: #fff;
  color: var(--text);
}

.check-row {
  display: grid;
  grid-template-columns: auto 54px 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border-radius: 14px;
}

.empty-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  border-radius: 18px;
  padding: 24px;
  background: #fffaf2;
  color: var(--muted);
  text-align: center;
  box-shadow: inset 0 0 0 1px #f2dfc4;
}

.empty-state strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.empty-state p {
  margin: 8px 0 0;
}

.user-id-row {
  margin-top: 14px;
  overflow-wrap: anywhere;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.draw-summary {
  margin-bottom: 12px;
  border-radius: 14px;
  padding: 10px 12px;
  background: #eefaf7;
  color: #4f8e84;
  font-weight: 900;
}

.draw-result-head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  border-radius: 18px;
  padding: 12px;
  background: #eefaf7;
  box-shadow: inset 0 0 0 1px rgba(79, 142, 132, 0.18);
}

.draw-result-head span {
  color: #4f8e84;
  font-size: 12px;
  font-weight: 950;
}

.draw-result-head strong {
  color: #455163;
  font-size: 20px;
  line-height: 1.25;
}

.draw-result-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.draw-result-card {
  min-width: 0;
  min-height: 176px;
  text-align: left;
}

.draw-result-card .prize-art {
  height: 86px;
}

.draw-result-card .status-pill,
.draw-result-card .prize-note {
  max-width: 100%;
}

.draw-animation {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 12px 4px 8px;
  text-align: center;
}

.draw-animation strong {
  color: var(--text);
  font-size: 18px;
}

.draw-animation p {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.draw-roller {
  position: relative;
  width: min(100%, 314px);
  max-width: 100%;
  overflow: hidden;
  padding: 10px 0;
  contain: layout paint;
}

.draw-roller-window {
  position: relative;
  width: 100%;
  height: 144px;
  overflow: hidden;
  contain: layout paint;
  border: 1.5px solid rgba(216, 181, 138, 0.88);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(255, 250, 244, 0.98), rgba(255, 250, 244, 0) 18%, rgba(255, 250, 244, 0) 82%, rgba(255, 250, 244, 0.98)),
    linear-gradient(180deg, #fffaf2, #fff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 14px 26px rgba(176, 130, 82, 0.14);
}

.draw-roller-track {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px;
  animation: draw-roller-scroll 1.08s linear infinite;
  will-change: transform;
}

.draw-roller-item {
  display: grid;
  flex: 0 0 92px;
  min-width: 0;
  height: 122px;
  align-content: start;
  gap: 5px;
  border: 1.5px solid rgba(216, 181, 138, 0.72);
  border-radius: 16px;
  padding: 7px;
  background: var(--paper);
  box-shadow: 0 8px 16px rgba(176, 130, 82, 0.12);
  text-align: center;
}

.draw-roller-art {
  display: grid;
  width: 100%;
  height: 70px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.78), transparent 34%),
    linear-gradient(135deg, rgba(255, 181, 200, 0.36), transparent 48%),
    linear-gradient(45deg, #dff7f4, #fff0c5);
  color: var(--orange-dark);
}

.draw-roller-art.has-image {
  background: #fff;
}

.draw-roller-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.draw-roller-art b {
  font-size: 24px;
  font-weight: 950;
}

.draw-roller-item strong,
.draw-roller-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draw-roller-item strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.15;
}

.draw-roller-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.draw-roller-target {
  position: absolute;
  z-index: 3;
  top: 2px;
  bottom: 2px;
  left: 50%;
  width: 98px;
  transform: translateX(-50%);
  border: 2px solid var(--orange);
  border-radius: 22px;
  box-shadow: 0 0 0 4px rgba(255, 152, 102, 0.16);
  pointer-events: none;
}

.draw-roller-target::before,
.draw-roller-target::after {
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
  content: "";
}

.draw-roller-target::before {
  top: -2px;
  border-top: 10px solid var(--orange);
}

.draw-roller-target::after {
  bottom: -2px;
  border-bottom: 10px solid var(--orange);
}

.draw-roller-settled .draw-roller-track {
  animation: none;
  transform: translate3d(-204px, 0, 0);
}

.draw-roller-settled .draw-roller-track.draw-roller-reel {
  transition: transform 1.05s cubic-bezier(0.12, 0.82, 0.12, 1);
  transform: translate3d(var(--draw-roller-stop-offset), 0, 0);
}

.draw-roller-settled .draw-roller-item {
  opacity: 0.62;
}

.draw-roller-settled .draw-roller-item.is-target {
  border-color: var(--orange);
  opacity: 1;
  box-shadow: 0 10px 22px rgba(240, 125, 85, 0.22);
}

.draw-progress {
  display: flex;
  gap: 7px;
  justify-content: center;
}

.draw-progress i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--orange);
  animation: draw-dot 0.9s ease-in-out infinite;
}

.draw-progress i:nth-child(2) {
  animation-delay: 0.15s;
}

.draw-progress i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes draw-dot {
  0%,
  100% {
    opacity: 0.35;
    scale: 0.84;
  }

  50% {
    opacity: 1;
    scale: 1;
  }
}

@keyframes draw-roller-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-408px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .draw-roller-track,
  .draw-progress i {
    animation: none;
  }

  .draw-roller-settled .draw-roller-track.draw-roller-reel {
    transition: none;
  }
}

.shipping-detail-head,
.shipping-detail-list {
  display: grid;
  gap: 10px;
}

.shipping-detail-grid {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 18px;
  background: #fffaf2;
  box-shadow: inset 0 0 0 1px #f2dfc4;
}

.shipping-detail-grid p,
.shipping-detail-list > strong {
  margin: 0;
}

.shipping-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.shipping-timeline span {
  border-radius: 999px;
  padding: 6px 10px;
  background: #f0f3f8;
  color: #607089;
  font-size: 12px;
  font-weight: 900;
}

.shipping-timeline span.done {
  background: #eefaf7;
  color: #4f8e84;
}

.shipping-source-row,
.shipping-item-row {
  margin-top: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 150px;
  z-index: 30;
  max-width: 320px;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(47, 42, 40, 0.88);
  color: #fff;
  font-weight: 800;
}

@media (max-width: 360px) {
  .shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand strong {
    font-size: 20px;
  }

  .pool-copy h1 {
    font-size: 19px;
  }

  .draw-bar button {
    font-size: 13px;
  }

  .pool-panel {
    grid-template-columns: 1fr;
  }

  .pool-cover {
    min-height: 150px;
  }

  .detail-summary,
  .draw-result-grid,
  .prize-grid {
    grid-template-columns: 1fr;
  }

  .shipping-order-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .shipping-order-row > .status-pill {
    grid-column: 2;
    justify-self: start;
  }

  .mine-primary-actions,
  .mine-secondary-actions,
  .shipping-confirm-grid {
    grid-template-columns: 1fr;
  }
}
