.public-body { background: #f5f4ed; }
.redeem-shell { width: min(640px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0 48px; }
.public-head { margin-bottom: 28px; text-align: center; }
.public-head h1 { margin: 0; font-size: 38px; line-height: 1.1; }
.public-head .public-subtitle { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.access-card, .result-card { border: 1px solid var(--line); border-radius: 8px; background: #faf9f5; box-shadow: 0 4px 24px rgb(0 0 0 / .05); overflow: hidden; }
.access-card { padding: 24px; }
.maintenance-card { display: grid; min-height: 210px; place-items: center; align-content: center; gap: 9px; text-align: center; }
.maintenance-card svg { color: var(--accent); }
.maintenance-card h2, .maintenance-card p { margin: 0; }
.maintenance-card h2 { font-size: 20px; }
.maintenance-card p { color: var(--muted); font-size: 13px; }
.access-card label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.access-card input { display: block; width: 100%; height: 50px; padding: 0 15px; border: 1px solid var(--line); border-radius: 7px; background: #fffdfa; font: 13px/1 var(--mono); text-transform: uppercase; }
.access-card .primary { width: 100%; margin-top: 14px; }
.public-message { margin: 0 0 14px; padding: 10px 12px; border: 1px solid #dbc69d; border-radius: 7px; background: #fffaf0; color: var(--yellow); font-size: 13px; }
.public-message.error { border-color: #ddb4b4; background: #fff7f5; color: var(--red); }
.result-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 18px; border-bottom: 1px solid var(--line); }
.result-title { display: flex; min-width: 0; flex: 1 1 auto; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; }
.result-title h2 { margin: 0; font-size: 17px; }
.result-head > .point-badge { padding: 3px 8px; border: 1px solid #b8d2c3; border-radius: 5px; color: var(--green); font-size: 11px; font-weight: 700; }
.point-badge b { margin-left: 5px; color: var(--red); }
.merge-notice { margin: 0; padding: 10px 18px; border-bottom: 1px solid var(--line); background: #f1f6f3; color: var(--muted); font-size: 11px; line-height: 1.6; }
.email-list { background: #fffdfa; }
.email-item { padding: 16px 18px; border-bottom: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--meta); }
.email-item:last-child { border-bottom: 0; }
.email-item.active { box-shadow: inset 3px 0 0 var(--blue); }
.email-item.completed { box-shadow: inset 3px 0 0 var(--green); }
.email-item.blocked, .email-item.failed, .email-item.destroyed { box-shadow: inset 3px 0 0 var(--red); }
.email-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.email-line code { min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 700; user-select: all; }
.email-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.copy-icon { display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--accent); cursor: pointer; }
.copy-icon:hover { background: #f3eee8; }
.repurchase-button { min-height: 36px; padding: 0 10px; font-size: 12px; }
.copy-toast { position: fixed; top: 24px; left: 50%; z-index: 20; padding: 9px 14px; transform: translateX(-50%); border: 1px solid #9fc6af; border-radius: 8px; background: #f7fff9; color: var(--green); box-shadow: 0 12px 30px rgb(23 24 20 / .12); font-size: 12px; }
.copy-toast.error { border-color: #ddb4b4; background: #fff7f5; color: var(--red); }
.status-reason { margin: 9px 0 0; color: var(--red); font-size: 12px; text-align: right; }
.completion-time { display: block; margin: 7px 54px 0 0; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }
.public-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.public-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--meta); }
.public-status.active { color: var(--blue); }
.public-status.active i { background: var(--blue); animation: status-pulse 1.2s ease-in-out infinite alternate; }
.public-status.completed { color: var(--green); }
.public-status.completed i { background: var(--green); }
.public-status.blocked, .public-status.failed, .public-status.destroyed { color: var(--red); }
.public-status.blocked i, .public-status.failed i, .public-status.destroyed i { background: var(--red); }
.processing-notice { margin: 0; padding: 13px 18px; border-top: 1px solid var(--line); background: #eef5f7; color: #52636a; font-size: 12px; line-height: 1.7; }
.processing-notice strong { color: var(--blue); font-weight: 800; }
.reward-guide { padding: 18px; border-top: 1px solid var(--line); background: #faf9f5; }
.reward-guide p { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.reward-guide strong { display: inline-block; margin: 0 2px; padding: 0 4px; border-radius: 4px; background: #fff0eb; color: var(--accent-dark); font-weight: 800; }
.reward-guide-switch { margin: 0 0 16px; padding: 0; border: 0; }
.reward-guide-switch legend { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.reward-guide-switch legend small { color: var(--meta); font-size: 11px; font-weight: 500; text-align: right; }
.reward-guide-switch-title { display: grid; flex: 0 0 auto; gap: 3px; color: var(--ink); font-size: 16px; font-weight: 800; line-height: 1.35; }
.reward-guide-switch legend .reward-guide-switch-title small { text-align: left; }
.reward-guide-switch legend b { color: var(--accent-dark); font-weight: 800; }
.reward-guide-segments { display: grid; width: 220px; padding: 3px; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: 7px; background: #efeee8; }
.reward-guide-segments input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.reward-guide-segments label { display: grid; min-height: 34px; place-items: center; border-radius: 5px; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.reward-guide-segments input:checked + label { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgb(23 24 20 / .1); }
.reward-guide-segments input:focus-visible + label { box-shadow: 0 0 0 3px rgb(201 93 60 / .16); }
.reward-guide .reward-guide-note { padding: 11px 13px; border-left: 4px solid var(--yellow); background: #fff8e8; color: #765716; }
.reward-guide-note b { color: var(--yellow); }
.reward-guide-aftercare { display: block; margin-top: 7px; color: var(--red); font-weight: 800; }
.reward-guide-shot { display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: zoom-in; }
.reward-guide-shot img { display: block; width: 100%; height: auto; }
.reward-guide .invite-problem-notice { margin: 0; padding: 12px 14px; border-left: 4px solid var(--red); background: #f8e9e5; color: var(--red); font-weight: 800; }
[data-reward-guide-content]:not([hidden]) + .invite-problem-notice { margin-top: 14px; }
.store-notice { width: min(420px, calc(100% - 32px)); max-width: none; padding: 26px; overflow: visible; border: 1px solid #dfd7d0; border-radius: 8px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px rgb(0 0 0 / .26); }
.store-notice[open] { animation: store-notice-in .18s ease-out; }
.store-notice:focus { outline: none; }
.store-notice::backdrop { background: rgb(23 24 20 / .62); backdrop-filter: blur(3px); }
.store-notice-heading { margin: 0 28px 22px 0; }
.store-notice-heading small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.store-notice h2 { margin: 0; font-size: 21px; line-height: 1.35; }
.store-notice h2 strong { color: var(--accent-dark); }
.store-notice-close { position: absolute; top: 12px; right: 12px; display: grid; width: 32px; height: 32px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--meta); cursor: pointer; }
.store-notice-close:hover { background: #f3eee8; color: var(--ink); }
.store-notice-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.store-notice-action { display: grid; min-height: 56px; padding: 9px 11px; grid-template-columns: minmax(0, 1fr) 16px; grid-template-rows: auto auto; align-items: center; gap: 1px 8px; border: 0; border-radius: 7px; background: var(--accent); color: #fff; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.store-notice-action small { grid-column: 1; opacity: .72; font-size: 10px; font-weight: 700; }
.store-notice-action span { grid-column: 1; font-size: 12px; font-weight: 800; }
.store-notice-action svg { grid-column: 2; grid-row: 1 / 3; }
.store-notice-action:hover { background: var(--accent-dark); }
.store-notice-action.pc { border: 1px solid #e5b5a6; background: #fff8f5; color: var(--accent-dark); }
.store-notice-action.pc:hover { background: #fff0eb; }
.store-notice-tip { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: center; }
.store-notice-guide { display: grid; margin: 14px 0 0; padding: 11px 13px; gap: 2px; border: 1px solid #b8d2c3; border-radius: 7px; background: #f1f7f3; color: var(--green); font-size: 12px; line-height: 1.6; }
.store-notice-guide[hidden] { display: none; }
.store-notice-guide span { color: var(--muted); }
.store-notice-buy { width: 100%; }
.payment-success-dialog { text-align: center; }
.payment-success-dialog .purchase-result-mark { margin: 0 auto 15px; }
.payment-success-dialog .store-notice-heading { margin: 0 28px 18px; }
.payment-success-dialog .store-notice-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.payment-success-confirm { width: 100%; }
.image-preview { width: min(1100px, calc(100% - 32px)); max-width: none; padding: 0; overflow: visible; border: 0; border-radius: 8px; background: transparent; }
.image-preview::backdrop { background: rgb(23 24 20 / .76); backdrop-filter: blur(3px); }
.image-preview img { display: block; width: 100%; max-height: 86vh; object-fit: contain; border-radius: 8px; background: #fff; box-shadow: 0 24px 80px rgb(0 0 0 / .32); }
.image-preview > button { position: absolute; top: -13px; right: -13px; z-index: 1; display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid rgb(255 255 255 / .4); border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 8px 24px rgb(0 0 0 / .22); cursor: pointer; }
@keyframes status-pulse { to { opacity: .35; } }
@keyframes store-notice-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .store-notice[open] { animation: none; } }
@media (max-width: 480px) {
  .redeem-shell { width: min(100% - 24px, 640px); padding-top: 34px; }
  .public-head h1 { font-size: 32px; }
  .access-card { padding: 18px; }
  .status-reason { text-align: left; }
  .completion-time { margin-right: 54px; }
  .email-item.completed .email-line, .email-item.blocked .email-line { flex-wrap: wrap; }
  .email-item.completed .email-tools, .email-item.blocked .email-tools { width: 100%; justify-content: flex-end; }
  .email-item.completed .completion-time { margin-right: 0; }
  .reward-guide { padding: 16px; }
  .reward-guide p { font-size: 12px; }
  .reward-guide-switch legend { align-items: flex-start; flex-direction: column; gap: 4px; }
  .reward-guide-switch legend small { text-align: left; }
  .reward-guide-segments { width: 100%; }
  .store-notice { width: calc(100% - 24px); padding: 22px; }
  .store-notice-heading { margin-bottom: 20px; }
  .store-notice h2 { font-size: 19px; }
  .image-preview { width: calc(100% - 20px); }
  .image-preview > button { top: 8px; right: 8px; }
}
