:root {
  color-scheme: light;
  --ink: #151923;
  --muted: #56616d;
  --paper: #f4f6f8;
  --panel: #ffffff;
  --line: #d8dee8;
  --gold: #f5c84b;
  --gold-deep: #a66c17;
  --red: #c7161d;
  --red-dark: #7d0f14;
  --teal: #0e7c76;
  --blue: #285f9f;
  --green: #237345;
  --shadow: 0 12px 34px rgba(21, 25, 35, 0.09);
  --soft-red: #fff4f4;
  --soft-teal: #eefaf7;
  --soft-gold: #fff8dd;
  --soft-blue: #eef5ff;
  --pink: #ff7aa9;
}

* {
  box-sizing: border-box;
}

.feature-photo {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family:
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    system-ui,
    sans-serif;
  background: var(--paper);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 20px 12px;
}

.app-header h1 {
  margin: 2px 0 0;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.1;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.gold {
  color: var(--gold);
}

.header-stat {
  min-width: 118px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: right;
  box-shadow: 0 8px 22px rgba(21, 25, 35, 0.06);
}

.header-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.header-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 16px;
  gap: 8px;
  background: linear-gradient(180deg, var(--paper) 78%, rgba(244, 246, 248, 0));
}

.tab {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.tab.is-active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.utility-tab {
  border-color: var(--teal);
  color: var(--teal);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.hero-grid,
.content-grid {
  display: grid;
  grid-template-columns: minmax(390px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}

.content-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.poster-panel,
.draw-panel,
.work-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.draw-panel {
  order: -1;
  border-top: 5px solid var(--red);
}

.poster-panel {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 16px;
  border-color: #6c4a1a;
  color: #fff;
  background:
    radial-gradient(circle at 20% 18%, rgba(245, 200, 75, 0.25), transparent 24%),
    radial-gradient(circle at 70% 52%, rgba(199, 22, 29, 0.2), transparent 26%),
    linear-gradient(145deg, #170f0c 0%, #352012 48%, #120d0a 100%);
}

.poster-panel::before,
.poster-panel::after {
  position: absolute;
  inset: 10px;
  content: "";
  pointer-events: none;
  border: 2px solid rgba(245, 200, 75, 0.72);
  border-radius: 8px;
}

.poster-panel::after {
  inset: 16px;
  border-color: rgba(255, 245, 184, 0.38);
}

.poster-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding: 14px 14px 8px;
}

.poster-top h2 {
  margin: 2px 0 0;
  color: #fff8e0;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1;
  text-shadow: 0 4px 0 rgba(125, 15, 20, 0.7), 0 0 18px rgba(245, 200, 75, 0.35);
}

.price-box {
  display: grid;
  min-width: 118px;
  padding: 10px 12px;
  border: 2px solid #ffd86a;
  border-radius: 8px;
  background: linear-gradient(180deg, #d71920, #8e1015);
  text-align: center;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.13);
}

.price-box span {
  font-weight: 900;
  line-height: 1;
}

.price-box strong {
  font-size: 42px;
  line-height: 0.95;
}

.sale-mode-note {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  margin: 12px 16px;
  padding: 12px;
  border: 1px solid rgba(245, 200, 75, 0.58);
  border-radius: 8px;
  background: rgba(255, 247, 214, 0.12);
  color: #fff7d6;
}

.radio-card,
.check-card,
.ticket-option {
  position: relative;
}

.radio-card input,
.check-card input,
.ticket-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sale-mode-note strong {
  color: #fff;
  font-weight: 900;
}

.sale-mode-note span {
  color: #fff7d6;
  font-size: 12px;
  font-weight: 800;
}

.lineup {
  position: relative;
  z-index: 1;
  margin: 14px 14px;
  padding: 14px;
  border: 1px solid rgba(245, 200, 75, 0.5);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.gacha-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, 0.86fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 12px 16px 6px;
  padding: 14px;
  border: 1px solid rgba(245, 200, 75, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.gacha-machine {
  position: relative;
  width: min(100%, 230px);
  min-height: 280px;
  margin: 0 auto;
}

.machine-dome {
  position: relative;
  overflow: hidden;
  width: 190px;
  height: 170px;
  margin: 0 auto;
  border: 8px solid rgba(255, 255, 255, 0.9);
  border-radius: 48% 48% 42% 42%;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.95), transparent 12%),
    radial-gradient(circle at 72% 80%, rgba(255, 255, 255, 0.36), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.18));
  box-shadow:
    inset 0 -24px 34px rgba(255, 255, 255, 0.3),
    inset 0 0 0 3px rgba(255, 255, 255, 0.2),
    0 12px 28px rgba(0, 0, 0, 0.24);
}

.machine-dome::after {
  position: absolute;
  inset: 14px 22px auto auto;
  width: 34px;
  height: 90px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), transparent);
  transform: rotate(-18deg);
}

.capsule-layer {
  position: absolute;
  inset: 12px 10px 8px;
}

.capsule-ball {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(31px * var(--s));
  height: calc(31px * var(--s));
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  transform: rotate(var(--r));
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.7), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56) 0 45%, rgba(255, 255, 255, 0.12) 46% 51%, rgba(0, 0, 0, 0.18) 52%),
    var(--capsule-color, #f5c84b);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.capsule-ball.is-red,
.falling-capsule.is-red,
.opening-capsule.is-red,
.mini-capsule-shell.is-red,
.closed-capsule.is-red {
  --capsule-color: #e83d46;
}

.capsule-ball.is-gold,
.falling-capsule.is-gold,
.opening-capsule.is-gold,
.mini-capsule-shell.is-gold,
.closed-capsule.is-gold {
  --capsule-color: #f5c84b;
}

.capsule-ball.is-teal,
.falling-capsule.is-teal,
.opening-capsule.is-teal,
.mini-capsule-shell.is-teal,
.closed-capsule.is-teal {
  --capsule-color: #2ab7a9;
}

.capsule-ball.is-blue,
.falling-capsule.is-blue,
.opening-capsule.is-blue,
.mini-capsule-shell.is-blue,
.closed-capsule.is-blue {
  --capsule-color: #528ddb;
}

.capsule-ball.is-pink,
.falling-capsule.is-pink,
.opening-capsule.is-pink,
.mini-capsule-shell.is-pink,
.closed-capsule.is-pink {
  --capsule-color: #ff7aa9;
}

.capsule-ball.is-white,
.falling-capsule.is-white,
.opening-capsule.is-white,
.mini-capsule-shell.is-white,
.closed-capsule.is-white {
  --capsule-color: #f7f1df;
}

.machine-neck {
  width: 84px;
  height: 24px;
  margin: -4px auto 0;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #f5c84b, #a66c17);
}

.machine-body {
  position: relative;
  width: 170px;
  height: 100px;
  margin: 0 auto;
  border: 4px solid #ffc947;
  border-radius: 8px 8px 18px 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 20% 80%, rgba(0, 0, 0, 0.16)),
    linear-gradient(180deg, #e71f28, #7d0f14);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.12),
    0 14px 24px rgba(0, 0, 0, 0.28);
}

.machine-body::before {
  position: absolute;
  left: 84px;
  top: 18px;
  width: 20px;
  height: 48px;
  content: "";
  border: 2px solid rgba(255, 247, 214, 0.72);
  border-radius: 6px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0 3px, transparent 3px 7px),
    linear-gradient(180deg, #353d49, #111722);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.46);
}

.machine-body::after {
  position: absolute;
  inset: 8px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px 8px 14px 14px;
  background:
    radial-gradient(circle at 8px 8px, rgba(255, 247, 214, 0.82) 0 3px, transparent 3px),
    radial-gradient(circle at calc(100% - 8px) 8px, rgba(255, 247, 214, 0.82) 0 3px, transparent 3px),
    radial-gradient(circle at 8px calc(100% - 8px), rgba(255, 247, 214, 0.82) 0 3px, transparent 3px),
    radial-gradient(circle at calc(100% - 8px) calc(100% - 8px), rgba(255, 247, 214, 0.82) 0 3px, transparent 3px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.machine-window {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 1;
  display: grid;
  width: 58px;
  height: 42px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: #151923;
  color: #fff;
  font-weight: 900;
}

.machine-handle {
  position: absolute;
  right: 22px;
  top: 23px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 7px solid #fff8df;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.76), transparent 17%),
    radial-gradient(circle at 52% 54%, #ffe070 0 32%, #c98214 33% 51%, #fff4d0 52% 62%, transparent 63%),
    linear-gradient(145deg, #f6c43c, #8f520d);
  box-shadow:
    inset -5px -7px 12px rgba(99, 49, 0, 0.32),
    inset 4px 4px 9px rgba(255, 255, 255, 0.34),
    0 0 0 5px rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.24);
}

.machine-handle::before {
  position: absolute;
  inset: -12px;
  z-index: -1;
  content: "";
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 248, 224, 0.96) 0 54%, rgba(255, 248, 224, 0) 56%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18), transparent 68%);
  box-shadow:
    inset 0 0 0 2px rgba(245, 200, 75, 0.2),
    0 10px 16px rgba(0, 0, 0, 0.18);
}

.machine-handle::after {
  position: absolute;
  left: 50%;
  top: -15px;
  z-index: 2;
  width: 10px;
  height: 74px;
  content: "";
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(166, 108, 23, 0.28), transparent 30% 70%, rgba(166, 108, 23, 0.3)),
    linear-gradient(180deg, #fff7db, #e7b94f);
  transform: translateX(-50%) rotate(45deg);
  box-shadow:
    0 0 0 3px rgba(166, 108, 23, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.18);
}

.machine-tray {
  width: 116px;
  height: 24px;
  margin: 8px auto 0;
  border: 2px solid rgba(255, 247, 214, 0.18);
  border-radius: 8px 8px 18px 18px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.16), transparent 54%),
    linear-gradient(180deg, #111722, #343b47);
  box-shadow: inset 0 8px 14px rgba(0, 0, 0, 0.42);
}

.capsule-status {
  display: grid;
  gap: 8px;
  color: #fff7d6;
}

.capsule-status span {
  font-size: 12px;
  font-weight: 900;
}

.capsule-status strong {
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.capsule-meter {
  overflow: hidden;
  height: 12px;
  border: 1px solid rgba(245, 200, 75, 0.4);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
}

.capsule-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--teal));
}

.remaining-ribbon {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 40px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(245, 200, 75, 0.6);
  border-radius: 8px;
  background: rgba(255, 247, 214, 0.12);
  color: #fff7d6;
  font-weight: 900;
}

.remaining-ribbon strong {
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.lineup h3 {
  margin: 0 0 10px;
  color: #fff0b0;
  font-size: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.chips:last-child {
  margin-bottom: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  word-break: keep-all;
}

.chips-hit .chip {
  border-color: rgba(245, 200, 75, 0.72);
  background: rgba(199, 22, 29, 0.42);
}

.poster-image-wrap {
  position: relative;
  z-index: 1;
  margin: 14px 14px 8px;
  overflow: hidden;
  max-height: 190px;
  border: 1px solid rgba(245, 200, 75, 0.54);
  border-radius: 8px;
  background: #120d0a;
}

.poster-image-wrap img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: top center;
  opacity: 0.85;
}

.draw-panel,
.work-panel {
  padding: 18px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.compact-head {
  margin: 18px 0 10px;
}

.compact-head h3 {
  margin: 2px 0 0;
  font-size: 18px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.section-head h2 {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.flow-steps span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.flow-steps b {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
}

.flow-steps span.is-current {
  border-color: var(--red);
  background: var(--soft-red);
  color: var(--red);
}

.flow-steps span.is-current b {
  background: var(--red);
}

.flow-steps span.is-done {
  border-color: rgba(14, 124, 118, 0.24);
  background: var(--soft-teal);
  color: var(--teal);
}

.flow-steps span.is-done b {
  background: var(--teal);
}

.flow-steps span.is-locked {
  opacity: 0.64;
}

.flow-steps.compact {
  margin: 14px 0 0;
}

.flow-steps.compact span {
  background: var(--soft-teal);
  color: var(--teal);
}

.form-section-title {
  margin: 16px 0 10px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.payment-link-editor {
  margin-top: 16px;
}

.payment-link-list {
  display: grid;
  gap: 10px;
}

.payment-link-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.payment-link-row > strong {
  align-self: center;
  color: var(--ink);
  font-size: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(14, 124, 118, 0.12);
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

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

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

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 124, 118, 0.16);
}

.choice-block {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.choice-block legend {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.radio-card span {
  display: grid;
  min-height: 78px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.radio-card strong {
  color: var(--ink);
  font-size: 14px;
}

.radio-card small {
  align-self: end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.radio-card input:checked + span {
  border-color: var(--red);
  box-shadow: inset 0 0 0 2px rgba(199, 22, 29, 0.12);
}

.check-card {
  display: block;
  margin-top: 14px;
}

.check-card span {
  display: grid;
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.check-card strong {
  color: var(--ink);
  font-size: 15px;
}

.check-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.check-card input:checked + span {
  border-color: var(--teal);
  background: rgba(14, 124, 118, 0.08);
  box-shadow: inset 0 0 0 2px rgba(14, 124, 118, 0.12);
}

.address-box {
  margin-top: 12px;
}

.checkout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #f7f9fc;
  border: 1px solid var(--line);
}

.checkout-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.checkout-row strong {
  display: block;
  font-size: 30px;
}

.checkout-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-weight: 900;
}

.primary-button {
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 10px 22px rgba(199, 22, 29, 0.22);
}

.secondary-button {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.ghost-button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.ghost-button.danger {
  color: var(--red);
}

.demo-payment-button {
  border-color: rgba(40, 95, 159, 0.24);
  background: var(--soft-blue);
  color: var(--blue);
}

.wide {
  width: 100%;
  margin-top: 16px;
}

.result-panel {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.result-card,
.task-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.result-card.hit {
  border-color: rgba(199, 22, 29, 0.4);
  background: var(--soft-red);
}

.payment-panel {
  border-color: rgba(14, 124, 118, 0.38);
  background: #f8fffb;
}

.payment-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 10px 0 4px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.payment-missing {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 10px 0 4px;
  padding: 8px 12px;
  border: 1px solid rgba(199, 22, 29, 0.24);
  border-radius: 8px;
  background: var(--soft-red);
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.payment-lock-note {
  margin-top: 8px;
}

.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.result-card h3,
.task-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.result-card p,
.task-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.ticket-code {
  display: inline-flex;
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #eef2f7;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.result-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}

.ticket-visual {
  display: grid;
  overflow: hidden;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0 44%, rgba(255, 255, 255, 0.08) 45% 50%, rgba(0, 0, 0, 0.12) 51%),
    var(--gold);
  color: var(--red-dark);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(21, 25, 35, 0.12);
}

.ticket-visual.has-image {
  border-radius: 8px;
  background: #fff;
}

.ticket-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.is-cinematic-open {
  overflow: hidden;
}

.cinematic-gacha {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(245, 200, 75, 0.22), transparent 28%),
    radial-gradient(circle at 15% 70%, rgba(199, 22, 29, 0.22), transparent 32%),
    radial-gradient(circle at 85% 72%, rgba(42, 183, 169, 0.16), transparent 30%),
    linear-gradient(180deg, #0b101a 0%, #251116 48%, #090d14 100%);
  color: #fff;
}

.cinematic-gacha::before,
.cinematic-gacha::after {
  position: absolute;
  inset: -20%;
  content: "";
  pointer-events: none;
}

.cinematic-gacha::before {
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 47%, transparent 54%),
    linear-gradient(65deg, transparent 0 54%, rgba(245, 200, 75, 0.1) 58%, transparent 64%);
  animation: cinematic-sweep 5200ms ease-in-out infinite;
}

.cinematic-gacha::after {
  background-image:
    radial-gradient(circle, rgba(255, 247, 214, 0.3) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 122, 169, 0.18) 0 1px, transparent 1px);
  background-position: 0 0, 28px 34px;
  background-size: 54px 54px, 70px 70px;
  opacity: 0.28;
}

.cinematic-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  width: min(100%, 980px);
  height: 100dvh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
}

.cinematic-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.cinematic-top div {
  display: grid;
  gap: 3px;
}

.cinematic-top span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.cinematic-top strong {
  color: #fff;
  font-size: clamp(24px, 6vw, 44px);
  line-height: 1.05;
  text-shadow: 0 4px 0 rgba(125, 15, 20, 0.68), 0 0 22px rgba(245, 200, 75, 0.24);
}

.cinematic-skip {
  min-height: 40px;
  border: 1px solid rgba(255, 247, 214, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff7d6;
  padding: 8px 12px;
  font-weight: 900;
}

.cinematic-scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.92fr) minmax(280px, 1.08fr);
  gap: clamp(12px, 2.5vw, 28px);
  align-items: center;
  min-height: 0;
  border: 1px solid rgba(255, 247, 214, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 48%, rgba(245, 200, 75, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 22px 80px rgba(0, 0, 0, 0.28);
}

.cinematic-machine,
.cinematic-focus {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  isolation: isolate;
}

.cinematic-machine {
  align-self: stretch;
  padding: 18px 0;
}

.machine-spotlight {
  position: absolute;
  inset: 6% 8%;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 247, 214, 0.28), transparent 60%);
  filter: blur(4px);
}

.gacha-machine.is-cinematic {
  width: min(100%, 310px);
  min-height: 380px;
}

.gacha-machine.is-cinematic .machine-dome {
  width: 252px;
  height: 220px;
  border-width: 10px;
}

.gacha-machine.is-cinematic .capsule-ball {
  width: calc(38px * var(--s));
  height: calc(38px * var(--s));
}

.gacha-machine.is-cinematic .machine-neck {
  width: 106px;
  height: 32px;
}

.gacha-machine.is-cinematic .machine-body {
  width: 224px;
  height: 128px;
  border-width: 5px;
}

.gacha-machine.is-cinematic .machine-window {
  left: 22px;
  top: 24px;
  width: 74px;
  height: 54px;
  font-size: 22px;
}

.gacha-machine.is-cinematic .machine-handle {
  right: 30px;
  top: 31px;
  width: 58px;
  height: 58px;
}

.gacha-machine.is-cinematic .machine-tray {
  width: 150px;
  height: 30px;
}

.cinematic-focus {
  min-height: 360px;
  overflow: hidden;
}

.cinematic-bottom {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.cinematic-result-button {
  justify-self: stretch;
}

.draw-animation-card {
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(199, 22, 29, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 200, 75, 0.36), transparent 22%),
    radial-gradient(circle at 72% 34%, rgba(255, 122, 169, 0.22), transparent 26%),
    radial-gradient(circle at 50% 82%, rgba(42, 183, 169, 0.18), transparent 30%),
    linear-gradient(145deg, #160e12 0%, #3b171a 46%, #10151f 100%);
  color: #fff;
}

.draw-animation-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.draw-animation-head span {
  color: #fff7d6;
  font-size: 13px;
  font-weight: 900;
}

.draw-animation-head strong {
  font-size: 26px;
}

.premium-gacha-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 0.86fr) minmax(230px, 1.14fr);
  gap: 12px;
  align-items: center;
  min-height: 334px;
  padding: 10px;
  border: 1px solid rgba(255, 247, 214, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 48%, rgba(245, 200, 75, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.06);
}

.stage-glow {
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border-radius: 8px;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 247, 214, 0.2), transparent 24%),
    linear-gradient(115deg, transparent 0 35%, rgba(255, 255, 255, 0.08) 42%, transparent 48% 100%);
  opacity: 0.8;
}

.capsule-runway {
  position: absolute;
  left: 28%;
  right: 12%;
  top: 58%;
  z-index: 1;
  height: 42px;
  pointer-events: none;
  transform: rotate(-4deg);
}

.capsule-runway span {
  display: block;
  height: 100%;
  border: 1px solid rgba(255, 247, 214, 0.26);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 247, 214, 0.16), rgba(255, 255, 255, 0.04)),
    linear-gradient(90deg, transparent, rgba(245, 200, 75, 0.2), transparent);
  box-shadow:
    inset 0 6px 12px rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.24);
  animation: runway-flash 1680ms ease-in-out infinite;
}

.gacha-machine.is-stage {
  min-height: 270px;
  transform-origin: 50% 82%;
}

.gacha-machine.is-stage .machine-dome {
  width: 172px;
  height: 150px;
}

.gacha-machine.is-stage .machine-body {
  width: 170px;
  height: 88px;
}

.gacha-machine.is-spinning {
  animation: machine-shake 760ms ease-in-out 3;
}

.gacha-machine.is-spinning .machine-handle {
  animation: handle-spin 760ms cubic-bezier(0.4, 0, 0.2, 1) 3;
}

.gacha-machine.is-spinning .capsule-ball {
  animation: capsule-jump 740ms ease-in-out 3;
}

.capsule-open-stage {
  position: relative;
  display: grid;
  min-height: 292px;
  place-items: center;
  isolation: isolate;
}

.capsule-shadow {
  position: absolute;
  left: 50%;
  top: 68%;
  z-index: 2;
  width: 78px;
  height: 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  filter: blur(5px);
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
  animation: capsule-shadow 1180ms ease 180ms both;
}

.capsule-shadow.is-closeup {
  width: 122px;
  height: 22px;
  top: 67%;
  animation: capsule-shadow-close 1450ms ease 140ms both;
}

.sequence-open-stage .spotlight {
  animation: spotlight-on 1350ms ease 420ms both;
}

.sequence-open-stage .falling-capsule {
  animation: capsule-drop 930ms cubic-bezier(0.17, 0.84, 0.26, 1.12) 80ms both;
}

.sequence-open-stage .falling-capsule.is-closeup {
  animation: capsule-drop-close 1080ms cubic-bezier(0.17, 0.84, 0.22, 1.04) 80ms both;
}

.sequence-open-stage .opening-capsule {
  animation: capsule-arrive 360ms ease 680ms both;
}

.sequence-open-stage .opening-capsule.is-closeup {
  animation: capsule-arrive-close 420ms ease 760ms both;
}

.sequence-open-stage .opening-capsule::before {
  animation: open-glow 900ms ease 930ms both;
}

.sequence-open-stage .capsule-top {
  animation: capsule-top-open 760ms cubic-bezier(0.2, 0.9, 0.12, 1) 940ms both;
}

.sequence-open-stage .capsule-bottom {
  animation: capsule-bottom-open 760ms cubic-bezier(0.2, 0.9, 0.12, 1) 940ms both;
}

.sequence-open-stage .capsule-seam {
  animation: seam-flash 560ms ease 880ms both;
}

.sequence-open-stage .capsule-spark.s1 {
  animation: spark-out 760ms ease 1000ms both;
}

.sequence-open-stage .capsule-spark.s2 {
  animation: spark-out-alt 760ms ease 1070ms both;
}

.sequence-open-stage .capsule-spark.s3 {
  animation: spark-up 760ms ease 1120ms both;
}

.sequence-open-stage .feature-prize {
  animation: prize-rise 760ms cubic-bezier(0.18, 0.9, 0.2, 1) 1070ms both;
}

.spotlight {
  position: absolute;
  inset: 10px 4px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 247, 214, 0.46), transparent 30%),
    conic-gradient(from 0deg, transparent, rgba(245, 200, 75, 0.18), transparent, rgba(42, 183, 169, 0.14), transparent);
  filter: blur(1px);
  opacity: 0;
  animation: spotlight-on 3600ms ease 1250ms both;
}

.falling-capsule {
  position: absolute;
  top: -24px;
  left: 46%;
  z-index: 3;
  width: 62px;
  height: 62px;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.72), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.54) 0 46%, rgba(255, 255, 255, 0.12) 47% 51%, rgba(0, 0, 0, 0.2) 52%),
    var(--capsule-color, #f5c84b);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.32),
    0 0 0 8px rgba(255, 255, 255, 0.05);
  transform: translateX(-50%);
  opacity: 0;
  animation: capsule-drop 2300ms cubic-bezier(0.17, 0.84, 0.26, 1.12) 1050ms both;
}

.falling-capsule::after {
  position: absolute;
  inset: 50% -24px auto auto;
  width: 54px;
  height: 5px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 247, 214, 0.54), transparent);
  transform: rotate(22deg);
}

.opening-capsule {
  position: relative;
  z-index: 4;
  width: 126px;
  height: 126px;
  opacity: 0;
  animation: capsule-arrive 900ms ease 2600ms both;
}

.opening-capsule::before {
  position: absolute;
  inset: -22px;
  content: "";
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 200, 75, 0.48), transparent 60%);
  opacity: 0;
  animation: open-glow 2200ms ease 3300ms both;
}

.capsule-half {
  position: absolute;
  left: 0;
  overflow: hidden;
  width: 126px;
  height: 63px;
  border: 4px solid rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(circle at 31% 22%, rgba(255, 255, 255, 0.7), transparent 20%),
    var(--capsule-color, #f5c84b);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.capsule-top {
  top: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px 999px 14px 14px;
  animation: capsule-top-open 1900ms cubic-bezier(0.2, 0.9, 0.12, 1) 3400ms both;
}

.capsule-bottom {
  bottom: 0;
  border-top: 2px solid rgba(0, 0, 0, 0.18);
  border-radius: 14px 14px 999px 999px;
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.48), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.16)),
    var(--capsule-color, #f5c84b);
  animation: capsule-bottom-open 1900ms cubic-bezier(0.2, 0.9, 0.12, 1) 3400ms both;
}

.capsule-seam {
  position: absolute;
  left: 7px;
  right: 7px;
  top: 59px;
  z-index: 5;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 0 14px rgba(255, 247, 214, 0.7);
  animation: seam-flash 1100ms ease 3200ms both;
}

.capsule-spark {
  position: absolute;
  z-index: 7;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fff7d6;
  box-shadow: 0 0 18px #f5c84b;
  opacity: 0;
}

.capsule-spark.s1 {
  left: 20px;
  top: 48px;
  animation: spark-out 1100ms ease 3700ms both;
}

.capsule-spark.s2 {
  right: 18px;
  top: 38px;
  animation: spark-out-alt 1100ms ease 3820ms both;
}

.capsule-spark.s3 {
  left: 56px;
  bottom: 30px;
  animation: spark-up 1100ms ease 3920ms both;
}

.feature-prize {
  position: absolute;
  z-index: 6;
  display: grid;
  gap: 6px;
  justify-items: center;
  width: min(88%, 240px);
  padding: 14px 12px 12px;
  border: 1px solid rgba(255, 247, 214, 0.36);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 200, 75, 0.16), transparent 36%),
    rgba(21, 25, 35, 0.84);
  text-align: center;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.36);
  opacity: 0;
  transform: translateY(24px) scale(0.88);
  animation: prize-rise 1600ms cubic-bezier(0.18, 0.9, 0.2, 1) 3900ms both;
}

.feature-prize::before {
  position: absolute;
  inset: -1px;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  opacity: 0;
  animation: card-shine 980ms ease 1220ms both;
}

.feature-prize .ticket-visual {
  width: 74px;
  height: 74px;
}

.feature-prize span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.feature-prize strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.draw-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.draw-timeline span {
  min-height: 34px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 247, 214, 0.78);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  animation: timeline-step 6200ms linear both;
}

.draw-timeline span:nth-child(2) {
  animation-delay: 900ms;
}

.draw-timeline span:nth-child(3) {
  animation-delay: 2200ms;
}

.draw-timeline span:nth-child(4) {
  animation-delay: 3600ms;
}

.sequence-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.sequence-progress > span {
  color: #fff7d6;
  font-size: 12px;
  font-weight: 900;
}

.sequence-progress > div {
  overflow: hidden;
  height: 10px;
  border: 1px solid rgba(255, 247, 214, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.sequence-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--teal));
  transition: width 420ms ease;
}

.sequence-queue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.sequence-result-item {
  display: grid;
  gap: 7px;
  justify-items: center;
  min-height: 126px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, opacity 220ms ease;
}

.sequence-result-item > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff7d6;
  font-size: 11px;
  font-weight: 900;
}

.sequence-result-item .ticket-visual,
.sequence-result-item .closed-capsule {
  width: 48px;
  height: 48px;
}

.sequence-result-item strong {
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
}

.sequence-result-item.is-current {
  border-color: rgba(245, 200, 75, 0.68);
  background: rgba(245, 200, 75, 0.16);
  transform: translateY(-3px);
}

.sequence-result-item.is-done,
.sequence-result-item.is-final {
  border-color: rgba(42, 183, 169, 0.42);
  background: rgba(42, 183, 169, 0.12);
}

.sequence-result-item.is-waiting {
  opacity: 0.58;
}

.closed-capsule {
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.72), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.54) 0 46%, rgba(255, 255, 255, 0.12) 47% 51%, rgba(0, 0, 0, 0.2) 52%),
    var(--capsule-color, #f5c84b);
}

.sequence-final {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 22px;
  border: 1px solid rgba(245, 200, 75, 0.46);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 45%, rgba(245, 200, 75, 0.24), transparent 42%),
    rgba(21, 25, 35, 0.72);
  text-align: center;
  animation: reveal-pop 520ms ease both;
}

.sequence-final span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.sequence-final strong {
  color: #fff;
  font-size: 22px;
}

.reveal-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(98px, 1fr));
  gap: 8px;
}

.mini-capsule-reveal {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 116px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
  opacity: 0;
  animation: reveal-pop 620ms ease both;
  animation-delay: var(--delay);
}

.mini-capsule-shell {
  position: absolute;
  top: 13px;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56) 0 45%, rgba(255, 255, 255, 0.08) 46% 50%, rgba(0, 0, 0, 0.18) 51%),
    var(--capsule-color, #f5c84b);
  animation: mini-shell-open 900ms ease calc(var(--delay) + 320ms) both;
}

.mini-capsule-reveal .ticket-visual {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  margin-top: 8px;
  opacity: 0;
  animation: mini-prize-pop 720ms ease calc(var(--delay) + 520ms) both;
}

.mini-capsule-reveal strong {
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0;
  animation: reveal-pop 620ms ease calc(var(--delay) + 700ms) both;
}

.reveal-skip {
  justify-self: end;
  border-color: rgba(255, 247, 214, 0.36);
  background: rgba(255, 255, 255, 0.1);
  color: #fff7d6;
}

@keyframes machine-shake {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
  20% {
    transform: rotate(-4deg) translateY(-3px);
  }
  45% {
    transform: rotate(4deg) translateY(2px);
  }
  70% {
    transform: rotate(-2deg) translateY(-2px);
  }
}

@keyframes handle-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes capsule-jump {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r));
  }
  50% {
    transform: translateY(-12px) rotate(calc(var(--r) + 22deg));
  }
}

@keyframes cinematic-sweep {
  0%,
  100% {
    transform: translateX(-8%) rotate(0deg);
    opacity: 0.4;
  }
  50% {
    transform: translateX(8%) rotate(4deg);
    opacity: 0.85;
  }
}

@keyframes runway-flash {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(0);
  }
  45% {
    opacity: 1;
    transform: translateX(5px);
  }
}

@keyframes capsule-shadow {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.3);
  }
  54% {
    opacity: 0.62;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 0.22;
    transform: translateX(-50%) scale(0.76);
  }
}

@keyframes capsule-shadow-close {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.24);
  }
  48% {
    opacity: 0.72;
    transform: translateX(-50%) scale(1.32);
  }
  100% {
    opacity: 0.3;
    transform: translateX(-50%) scale(0.86);
  }
}

@keyframes capsule-drop {
  0% {
    opacity: 0;
    transform: translate(-112px, -20px) scale(0.72) rotate(-28deg);
  }
  18% {
    opacity: 1;
  }
  42% {
    transform: translate(-30px, 112px) scale(0.96) rotate(240deg);
  }
  56% {
    transform: translate(-50%, 145px) scale(1) rotate(300deg);
  }
  72% {
    transform: translate(-50%, 118px) scale(0.96) rotate(384deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 145px) scale(0.8) rotate(430deg);
  }
}

@keyframes capsule-drop-close {
  0% {
    opacity: 0;
    transform: translate(-150px, -28px) scale(0.58) rotate(-26deg);
    filter: blur(1px);
  }
  18% {
    opacity: 1;
  }
  46% {
    transform: translate(-38px, 96px) scale(1.52) rotate(250deg);
    filter: blur(0);
  }
  64% {
    transform: translate(-50%, 128px) scale(1.84) rotate(326deg);
  }
  78% {
    transform: translate(-50%, 104px) scale(1.58) rotate(394deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 126px) scale(0.92) rotate(440deg);
  }
}

@keyframes capsule-arrive {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.72) rotate(-16deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes capsule-arrive-close {
  from {
    opacity: 0;
    transform: translateY(36px) scale(1.2) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1.18) rotate(0deg);
  }
}

@keyframes spotlight-on {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(0deg);
  }
  35%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(50deg);
  }
}

@keyframes open-glow {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  45%,
  100% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes capsule-top-open {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  42%,
  100% {
    transform: translate(-24px, -44px) rotate(-24deg);
  }
}

@keyframes capsule-bottom-open {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  42%,
  100% {
    transform: translate(24px, 38px) rotate(18deg);
  }
}

@keyframes seam-flash {
  0%,
  100% {
    opacity: 0;
  }
  42% {
    opacity: 1;
  }
}

@keyframes spark-out {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-58px, -62px) scale(1.2);
  }
}

@keyframes spark-out-alt {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(66px, -48px) scale(1.1);
  }
}

@keyframes spark-up {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(6px, -84px) scale(1.25);
  }
}

@keyframes prize-rise {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.84);
    filter: blur(4px);
  }
  46% {
    opacity: 1;
    transform: translateY(-10px) scale(1.04);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(-4px) scale(1);
    filter: blur(0);
  }
}

@keyframes card-shine {
  0% {
    opacity: 0;
    transform: translateX(-80%);
  }
  42% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateX(80%);
  }
}

@keyframes timeline-step {
  0%,
  42% {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 247, 214, 0.78);
  }
  46%,
  100% {
    border-color: rgba(245, 200, 75, 0.5);
    background: rgba(245, 200, 75, 0.18);
    color: #fff;
  }
}

@keyframes mini-shell-open {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.4) rotate(24deg);
  }
}

@keyframes mini-prize-pop {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.74);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes reveal-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.qr-block {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.qr-block summary {
  cursor: pointer;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.qr-block img {
  display: block;
  width: 180px;
  height: 180px;
  margin-top: 10px;
  border: 8px solid #fff;
  border-radius: 8px;
}

.qr-block small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.voice-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.voice-form h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.ticket-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.ticket-tier {
  display: grid;
  gap: 8px;
}

.ticket-tier h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.ticket-option {
  display: block;
}

.ticket-option span {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ticket-option strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
}

.ticket-option small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ticket-option .ticket-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 32px;
  border-radius: 8px;
  background: rgba(199, 22, 29, 0.1);
  color: var(--red);
  font-weight: 900;
  white-space: nowrap;
}

.ticket-option input:checked + span {
  border-color: var(--red);
  background: var(--soft-red);
  box-shadow: inset 0 0 0 2px rgba(199, 22, 29, 0.12);
}

.ticket-option.is-soldout {
  opacity: 0.48;
}

.ticket-option.is-soldout span {
  background: #eef2f7;
}

.photo-inventory {
  margin-top: 16px;
}

.policy-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  padding: 12px;
  border-radius: 8px;
  background: #f7f9fc;
  color: var(--muted);
  font-size: 13px;
}

.policy-strip strong {
  color: var(--ink);
}

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

.inventory-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(110px, 0.7fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.prize-editor-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 96px 90px minmax(142px, 0.85fr);
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.prize-editor-row label {
  min-width: 0;
}

.prize-editor-row input,
.prize-editor-row select {
  min-height: 40px;
}

.prize-editor-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 36px 36px 76px 52px;
  gap: 4px;
  justify-content: end;
}

.prize-editor-actions button {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}

.prize-editor-actions .remove {
  color: var(--red);
}

.prize-editor-actions .clear-image {
  color: var(--teal);
  font-size: 11px;
}

.prize-editor-actions .clear-image:disabled {
  opacity: 0.42;
}

.prize-image-cell {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 8px;
  align-items: end;
}

.prize-thumb {
  display: grid;
  overflow: hidden;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.prize-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-button {
  display: grid;
  min-height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.inventory-name {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.inventory-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.meter {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e9edf3;
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.stepper {
  display: grid;
  grid-template-columns: 36px 42px 36px;
  align-items: center;
  gap: 4px;
}

.stepper button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}

.stepper output {
  text-align: center;
  font-weight: 900;
}

.scan-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.scan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.qr-reader {
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10151f;
}

.qr-reader video {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.security-note,
.form-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.security-note {
  padding: 10px;
  border: 1px solid rgba(14, 124, 118, 0.2);
  border-radius: 8px;
  background: var(--soft-teal);
  color: var(--teal);
}

.scan-message {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.scan-preview {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.scan-order-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.scan-order-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.scan-order-head h3 {
  margin: 0;
  font-size: 18px;
}

.scan-order-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.scan-ticket-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scan-ticket-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
  font-size: 13px;
  font-weight: 800;
}

.scan-ticket-list small {
  color: var(--muted);
  font-weight: 800;
}

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

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

.summary-card {
  min-height: 78px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.summary-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.summary-card.is-line {
  background: var(--soft-teal);
  border-color: rgba(14, 124, 118, 0.22);
}

.summary-card.is-today {
  background: var(--soft-red);
  border-color: rgba(199, 22, 29, 0.18);
}

.summary-card.is-ship {
  background: var(--soft-gold);
  border-color: rgba(166, 108, 23, 0.2);
}

.task-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border-left: 5px solid var(--line);
}

.task-card.is-today {
  border-left-color: var(--red);
}

.task-card.is-line {
  border-left-color: var(--teal);
}

.task-card.is-ship {
  border-left-color: var(--gold-deep);
}

.task-card.is-photo {
  border-left-color: var(--blue);
}

.task-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: end;
}

.task-card.done {
  opacity: 0.58;
}

.task-card .status {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 7px;
  border-radius: 8px;
  background: rgba(35, 115, 69, 0.12);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.task-category {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.task-person {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.task-detail {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.export-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.export-actions span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.csv-preview {
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

@media (max-width: 960px) {
  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .poster-panel {
    min-height: 0;
  }

  .premium-gacha-stage {
    grid-template-columns: 1fr;
  }

  .cinematic-scene {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .app-header {
    align-items: stretch;
    padding-inline: 14px;
  }

  .app-header,
  .checkout-row,
  .section-head {
    flex-direction: column;
  }

  .header-stat {
    text-align: left;
  }

  .tabs {
    padding-inline: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  main {
    padding-inline: 14px;
  }

  .poster-top,
  .gacha-showcase,
  .form-grid,
  .choice-block,
  .flow-steps,
  .inventory-row,
  .payment-link-row,
  .prize-editor-row,
  .staff-summary,
  .task-card {
    grid-template-columns: 1fr;
  }

  .poster-top {
    display: grid;
  }

  .price-box {
    width: 100%;
  }

  .task-actions {
    justify-content: stretch;
  }

  .task-actions button,
  .checkout-row button,
  .checkout-actions {
    width: 100%;
  }

  .ticket-option span {
    grid-template-columns: 1fr;
  }

  .result-item {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .premium-gacha-stage {
    min-height: 0;
    padding: 8px;
  }

  .capsule-runway {
    left: 22%;
    right: 22%;
    top: 43%;
    transform: rotate(0deg);
  }

  .gacha-machine.is-stage {
    min-height: 238px;
  }

  .capsule-open-stage {
    min-height: 252px;
  }

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

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

  .sequence-result-item {
    min-height: 116px;
  }

  .sequence-final strong {
    font-size: 18px;
  }

  .cinematic-shell {
    height: 100dvh;
    gap: 8px;
    padding-inline: 10px;
  }

  .cinematic-top strong {
    font-size: 26px;
  }

  .cinematic-scene {
    gap: 0;
    align-content: center;
  }

  .cinematic-machine {
    padding: 6px 0 0;
  }

  .gacha-machine.is-cinematic {
    width: 210px;
    min-height: 258px;
  }

  .gacha-machine.is-cinematic .machine-dome {
    width: 178px;
    height: 154px;
    border-width: 8px;
  }

  .gacha-machine.is-cinematic .capsule-ball {
    width: calc(30px * var(--s));
    height: calc(30px * var(--s));
  }

  .gacha-machine.is-cinematic .machine-neck {
    width: 82px;
    height: 24px;
  }

  .gacha-machine.is-cinematic .machine-body {
    width: 164px;
    height: 94px;
  }

  .gacha-machine.is-cinematic .machine-window {
    left: 18px;
    top: 19px;
    width: 58px;
    height: 42px;
    font-size: 16px;
  }

  .gacha-machine.is-cinematic .machine-handle {
    right: 22px;
    top: 23px;
    width: 44px;
    height: 44px;
  }

  .gacha-machine.is-cinematic .machine-tray {
    width: 116px;
    height: 24px;
  }

  .cinematic-focus {
    min-height: 212px;
  }

  .cinematic-gacha .falling-capsule {
    width: 52px;
    height: 52px;
  }

  .cinematic-gacha .opening-capsule {
    width: 106px;
    height: 106px;
  }

  .cinematic-gacha .capsule-half {
    width: 106px;
    height: 53px;
  }

  .cinematic-gacha .capsule-seam {
    top: 50px;
  }

  .cinematic-gacha .feature-prize {
    width: min(86%, 210px);
    padding: 10px;
  }

  .cinematic-gacha .feature-prize .ticket-visual {
    width: 56px;
    height: 56px;
  }

  .cinematic-gacha .feature-prize strong {
    font-size: 15px;
  }

  .cinematic-gacha .sequence-queue {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 2px;
    scroll-snap-type: x mandatory;
  }

  .cinematic-gacha .sequence-result-item {
    flex: 0 0 104px;
    min-height: 108px;
    scroll-snap-align: start;
  }

  .ticket-option .ticket-price {
    justify-content: flex-start;
    width: 100%;
    padding-left: 10px;
  }
}

/* Mobile app style refresh */
body {
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.app-header,
.tabs,
main {
  max-width: 1040px;
}

.app-header {
  padding-top: 18px;
}

.app-header h1 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: 0;
}

.header-stat {
  border-color: #e4e9f1;
  background: #151923;
  color: #fff;
}

.header-stat span {
  color: rgba(255, 255, 255, 0.7);
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 1 0 118px;
  border-color: #e2e8f0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(21, 25, 35, 0.05);
}

.tab.is-active {
  border-color: var(--red);
  background: linear-gradient(180deg, #e21b24, #b81219);
}

.utility-tab {
  flex-grow: 0.8;
  background: #fff;
}

.draw-panel {
  order: 0;
}

.poster-panel {
  overflow: hidden;
  padding: 0;
  border-color: #e2e8f0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(245, 200, 75, 0.16), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(14, 124, 118, 0.12), transparent 24%),
    #fff;
  box-shadow: 0 18px 46px rgba(21, 25, 35, 0.1);
}

.poster-panel::before,
.poster-panel::after {
  display: none;
}

.poster-top {
  padding: 18px 18px 10px;
}

.poster-top h2 {
  color: var(--ink);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.05;
  text-shadow: none;
}

.price-box {
  min-width: 106px;
  border: 0;
  background: #151923;
  color: #fff;
  box-shadow: 0 10px 26px rgba(21, 25, 35, 0.18);
}

.price-box strong {
  color: #fff;
  font-size: 34px;
}

.sale-mode-note {
  margin: 8px 18px 12px;
  border-color: rgba(14, 124, 118, 0.18);
  background: #f1faf8;
  color: var(--teal);
}

.sale-mode-note strong,
.sale-mode-note span {
  color: var(--teal);
}

.gacha-showcase {
  grid-template-columns: minmax(230px, 0.95fr) minmax(160px, 0.7fr);
  margin: 12px 18px 0;
  padding: 18px;
  border-color: #e5eaf2;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.95), transparent 30%),
    radial-gradient(circle at 50% 40%, rgba(245, 200, 75, 0.22), transparent 38%),
    linear-gradient(180deg, #f8fafc, #eef2f7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.gacha-showcase::after {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 14px;
  height: 24px;
  content: "";
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(21, 25, 35, 0.16), transparent 72%);
  pointer-events: none;
}

.gacha-showcase .gacha-machine,
.gacha-showcase .capsule-status {
  position: relative;
  z-index: 1;
}

.capsule-status {
  align-self: center;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  box-shadow: 0 10px 28px rgba(21, 25, 35, 0.08);
}

.capsule-status strong {
  color: var(--red);
  font-size: 34px;
}

.capsule-meter {
  height: 8px;
  border: 0;
  background: #e5eaf2;
}

.lineup {
  margin: 0;
  padding: 18px;
  border: 0;
  border-top: 1px solid #e8edf4;
  background: #fff;
}

.remaining-ribbon {
  border-color: rgba(199, 22, 29, 0.16);
  background: linear-gradient(180deg, #fff5f5, #fff);
  color: var(--red);
}

.remaining-ribbon strong {
  color: var(--ink);
  font-size: 24px;
}

.gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 10px;
}

.gallery-head h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.gallery-head > span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 8px;
  background: #151923;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.prize-gallery-scroller {
  overflow-x: auto;
  margin: 0 -18px 20px;
  padding: 0 18px 6px;
  scroll-padding-inline: 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.prize-gallery-scroller::-webkit-scrollbar {
  display: none;
}

.prize-gallery-track {
  display: flex;
  width: max-content;
  gap: 10px;
}

.prize-gallery-card {
  position: relative;
  display: grid;
  flex: 0 0 154px;
  gap: 9px;
  min-height: 188px;
  padding: 8px;
  border: 1px solid #e3e8f0;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: 0 10px 24px rgba(21, 25, 35, 0.07);
  scroll-snap-align: start;
}

.prize-gallery-card.is-hit {
  border-color: rgba(245, 200, 75, 0.8);
  background:
    linear-gradient(180deg, #fff9df, #fff);
}

.prize-gallery-card.is-hit::after {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 9px;
  height: 9px;
  content: "";
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(199, 22, 29, 0.1);
}

.prize-gallery-art {
  display: grid;
  overflow: hidden;
  height: 112px;
  place-items: center;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 30%, rgba(245, 200, 75, 0.18), transparent 36%),
    #f6f8fb;
}

.prize-gallery-art.has-image {
  background: #fff;
}

.prize-gallery-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-capsule {
  width: 68px;
  height: 68px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.72), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0 45%, rgba(255, 255, 255, 0.14) 46% 51%, rgba(0, 0, 0, 0.18) 52%),
    var(--capsule-color, #f5c84b);
  box-shadow: 0 12px 24px rgba(21, 25, 35, 0.16);
}

.gallery-capsule.is-red {
  --capsule-color: #e83d46;
}

.gallery-capsule.is-gold {
  --capsule-color: #f5c84b;
}

.gallery-capsule.is-teal {
  --capsule-color: #2ab7a9;
}

.gallery-capsule.is-blue {
  --capsule-color: #528ddb;
}

.gallery-capsule.is-pink {
  --capsule-color: #ff7aa9;
}

.gallery-capsule.is-white {
  --capsule-color: #f7f1df;
}

.prize-gallery-copy {
  display: grid;
  gap: 4px;
  align-content: start;
}

.prize-gallery-copy span {
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
}

.prize-gallery-card.is-hit .prize-gallery-copy span {
  color: var(--red);
}

.prize-gallery-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lineup h3 {
  color: var(--ink);
}

.chip {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: var(--ink);
}

.chips-hit .chip {
  border-color: rgba(245, 200, 75, 0.7);
  background: #fff8dd;
  color: var(--red-dark);
}

.draw-panel,
.work-panel {
  border-color: #e2e8f0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(21, 25, 35, 0.08);
}

.draw-panel {
  border-top-color: var(--red);
}

@media (max-width: 960px) {
  .draw-panel {
    order: 0;
  }
}

@media (max-width: 680px) {
  body {
    background: #f6f8fb;
  }

  .app-header {
    display: grid;
    gap: 10px;
    padding: 14px 14px 8px;
  }

  .app-header h1 {
    font-size: 28px;
    line-height: 1.16;
  }

  .header-stat {
    display: none;
  }

  .tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 0 14px 10px;
    background: rgba(246, 248, 251, 0.92);
    backdrop-filter: blur(14px);
  }

  .tab {
    flex: 0 0 auto;
    min-width: 108px;
    min-height: 40px;
    padding-inline: 12px;
    box-shadow: none;
  }

  .utility-tab {
    min-width: 142px;
  }

  main {
    padding: 0 12px 36px;
  }

  .hero-grid {
    gap: 12px;
  }

  .poster-panel {
    border-radius: 8px;
  }

  .poster-top {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 16px 14px 8px;
  }

  .poster-top h2 {
    font-size: 26px;
  }

  .price-box {
    min-width: 88px;
    padding: 8px 9px;
  }

  .price-box strong {
    font-size: 28px;
  }

  .sale-mode-note {
    margin: 6px 14px 10px;
  }

  .gacha-showcase {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 10px 12px 0;
    padding: 14px 12px 16px;
  }

  .gacha-showcase .gacha-machine {
    width: min(100%, 248px);
    min-height: 308px;
  }

  .capsule-status {
    justify-items: center;
    text-align: center;
  }

  .capsule-status strong {
    font-size: 32px;
  }

  .lineup {
    padding: 14px;
  }

  .remaining-ribbon {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }

  .remaining-ribbon strong {
    font-size: 20px;
  }

  .gallery-head {
    margin-top: 14px;
  }

  .gallery-head h3 {
    font-size: 18px;
  }

  .prize-gallery-scroller {
    margin-inline: -14px;
    padding-inline: 14px;
    scroll-padding-inline: 14px;
  }

  .prize-gallery-card {
    flex-basis: 140px;
    min-height: 178px;
  }

  .prize-gallery-art {
    height: 104px;
  }

  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: 0 0 auto;
  }

  .draw-panel,
  .work-panel {
    padding: 14px;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .flow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flow-steps span {
    min-height: 42px;
    gap: 5px;
    font-size: 12px;
  }

  .flow-steps b {
    min-width: 22px;
    height: 22px;
  }

  input,
  select,
  textarea {
    min-height: 52px;
  }

  .checkout-row {
    gap: 14px;
    background: #fff;
  }
}

/* Live stage visual pass */
html {
  background: #09070f;
}

body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(245, 200, 75, 0.22), transparent 34%),
    linear-gradient(180deg, #14101d 0%, #241018 36%, #0a0d16 100%);
}

body::before,
body::after {
  position: fixed;
  inset: -18%;
  z-index: -2;
  content: "";
  pointer-events: none;
}

body::before {
  background:
    conic-gradient(from 210deg at 16% 10%, transparent 0 12%, rgba(245, 200, 75, 0.22) 15%, transparent 21% 100%),
    conic-gradient(from 145deg at 84% 4%, transparent 0 12%, rgba(255, 78, 124, 0.2) 17%, transparent 24% 100%),
    conic-gradient(from 170deg at 52% -2%, transparent 0 10%, rgba(46, 211, 190, 0.16) 14%, transparent 22% 100%);
  filter: blur(2px);
  animation: live-light-pan 7.2s ease-in-out infinite alternate;
}

body::after {
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(255, 247, 214, 0.42) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 78, 124, 0.24) 0 1px, transparent 1px);
  background-position: 0 0, 28px 36px;
  background-size: 70px 70px, 96px 96px;
  opacity: 0.24;
  animation: stage-stars 12s linear infinite;
}

.stage-video-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  pointer-events: none;
  filter: saturate(1.22) contrast(1.05);
}

@keyframes live-light-pan {
  0% {
    transform: translate3d(-3%, -1%, 0) rotate(-4deg) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate3d(4%, 2%, 0) rotate(5deg) scale(1.06);
    opacity: 1;
  }
}

@keyframes stage-stars {
  to {
    background-position: 70px 90px, -42px 126px;
  }
}

.app-header {
  color: #fff;
}

.app-header .eyebrow {
  color: rgba(255, 247, 214, 0.8);
}

.app-header h1 {
  color: #fff;
  text-shadow: 0 10px 34px rgba(245, 200, 75, 0.18);
}

.title-subline,
.poster-subline {
  margin: 6px 0 0;
  color: rgba(255, 247, 214, 0.82);
  font-size: 13px;
  font-weight: 900;
}

.poster-subline {
  color: #fff7d6;
}

.tabs {
  background: linear-gradient(180deg, rgba(20, 16, 29, 0.96) 72%, rgba(20, 16, 29, 0));
}

.tab {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
}

.tab:not(.is-active):hover {
  border-color: rgba(245, 200, 75, 0.4);
  color: #fff;
}

.utility-tab {
  border-color: rgba(46, 211, 190, 0.42);
  color: #9ff0e4;
}

.poster-panel {
  border-color: rgba(245, 200, 75, 0.38);
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 200, 75, 0.28), transparent 26%),
    radial-gradient(circle at 12% 12%, rgba(255, 78, 124, 0.22), transparent 24%),
    radial-gradient(circle at 92% 18%, rgba(46, 211, 190, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(26, 16, 24, 0.96), rgba(12, 14, 24, 0.96));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.poster-panel::before {
  position: absolute;
  inset: 0;
  display: block;
  content: "";
  pointer-events: none;
  border: 0;
  background:
    linear-gradient(110deg, transparent 12%, rgba(255, 255, 255, 0.08) 22%, transparent 32%),
    linear-gradient(70deg, transparent 54%, rgba(245, 200, 75, 0.12) 60%, transparent 67%);
  animation: panel-light-sweep 6.8s ease-in-out infinite;
}

@keyframes panel-light-sweep {
  0%,
  100% {
    transform: translateX(-20%);
    opacity: 0.45;
  }
  50% {
    transform: translateX(18%);
    opacity: 1;
  }
}

.poster-top,
.sale-mode-note,
.gacha-showcase,
.lineup {
  position: relative;
  z-index: 1;
}

.poster-top h2 {
  color: #fff;
  text-shadow:
    0 4px 0 rgba(125, 15, 20, 0.6),
    0 0 22px rgba(245, 200, 75, 0.28);
}

.price-box {
  background:
    linear-gradient(180deg, #f3414b, #9a0f16);
  box-shadow:
    0 12px 34px rgba(199, 22, 29, 0.36),
    inset 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.sale-mode-note {
  border-color: rgba(46, 211, 190, 0.28);
  background: rgba(8, 26, 28, 0.62);
}

.sale-mode-note strong,
.sale-mode-note span {
  color: #dcfff8;
}

.gacha-showcase {
  border-color: rgba(245, 200, 75, 0.28);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.92), transparent 22%),
    radial-gradient(circle at 50% 34%, rgba(245, 200, 75, 0.24), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
}

.lineup {
  border-top-color: rgba(245, 200, 75, 0.24);
  background: rgba(255, 255, 255, 0.94);
}

.draw-panel,
.work-panel {
  background: rgba(255, 255, 255, 0.96);
}

.delivery-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(14, 124, 118, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fffd, #fff);
}

.delivery-form[hidden] {
  display: none;
}

.delivery-form h4 {
  margin: 0;
  color: var(--teal);
  font-size: 15px;
}

/* More physical gacha and capsule treatment */
.gacha-machine {
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.24));
}

.machine-dome {
  border-color: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(238, 229, 210, 0.95);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.98), transparent 10%),
    radial-gradient(circle at 70% 78%, rgba(255, 255, 255, 0.44), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.22) 46%, rgba(210, 235, 255, 0.2));
  box-shadow:
    inset 0 -28px 38px rgba(255, 255, 255, 0.38),
    inset 0 0 0 4px rgba(255, 255, 255, 0.22),
    0 14px 34px rgba(0, 0, 0, 0.3);
}

.machine-dome::before {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  height: 30px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent);
  opacity: 0.62;
}

.machine-body {
  border-color: #ffd35c;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 18% 82%, rgba(0, 0, 0, 0.2)),
    radial-gradient(circle at 50% 0%, rgba(255, 102, 112, 0.8), transparent 36%),
    linear-gradient(180deg, #e81722, #801016);
}

.machine-window {
  border-color: rgba(255, 255, 255, 0.84);
  background:
    linear-gradient(180deg, #263142, #0d1119);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.42);
}

.machine-handle {
  border-color: #fff9e5;
  background:
    radial-gradient(circle at 35% 28%, #fff8d6, transparent 18%),
    linear-gradient(180deg, #f7d56c, #9e6817);
}

.capsule-ball,
.falling-capsule,
.closed-capsule,
.gallery-capsule {
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.82), transparent 17%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.64) 0 43%, rgba(255, 255, 255, 0.18) 44% 50%, rgba(0, 0, 0, 0.2) 51% 100%),
    linear-gradient(135deg, var(--capsule-color, #f5c84b), color-mix(in srgb, var(--capsule-color, #f5c84b) 72%, #000));
  box-shadow:
    inset -8px -10px 16px rgba(0, 0, 0, 0.18),
    inset 7px 7px 14px rgba(255, 255, 255, 0.28),
    0 8px 16px rgba(0, 0, 0, 0.22);
}

.capsule-ball {
  position: absolute;
  display: block;
}

.falling-capsule {
  position: absolute;
}

.closed-capsule,
.gallery-capsule {
  position: relative;
}

.capsule-ball::before,
.falling-capsule::before,
.closed-capsule::before,
.gallery-capsule::before {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 45%;
  height: 4px;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.capsule-ball::after,
.closed-capsule::after,
.gallery-capsule::after {
  position: absolute;
  left: 18%;
  top: 13%;
  width: 28%;
  height: 18%;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  filter: blur(0.5px);
  transform: rotate(-20deg);
}

/* Hit reveal upgrade */
.cinematic-gacha {
  background:
    radial-gradient(circle at 50% 10%, rgba(245, 200, 75, 0.28), transparent 28%),
    radial-gradient(circle at 14% 70%, rgba(255, 78, 124, 0.28), transparent 30%),
    radial-gradient(circle at 84% 72%, rgba(46, 211, 190, 0.2), transparent 30%),
    linear-gradient(180deg, #090713 0%, #27101b 48%, #060914 100%);
}

.cinematic-focus.is-hit-reveal {
  overflow: hidden;
}

.hit-aura {
  position: absolute;
  inset: 3%;
  z-index: 1;
  border-radius: 999px;
  background:
    conic-gradient(from 0deg, #ff3b55, #ffdd55, #55f5ff, #a46bff, #ff3b55);
  filter: blur(18px);
  opacity: 0;
  animation: hit-aura-spin 1400ms ease 520ms both;
}

.hit-confetti {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background-image:
    radial-gradient(circle, #fff7d6 0 3px, transparent 3px),
    radial-gradient(circle, #ff4e7c 0 3px, transparent 3px),
    radial-gradient(circle, #49f3df 0 2px, transparent 2px),
    radial-gradient(circle, #b977ff 0 2px, transparent 2px);
  background-position: 12% 12%, 84% 18%, 18% 76%, 76% 72%;
  background-size: 120px 120px, 150px 150px, 100px 100px, 136px 136px;
  opacity: 0;
  animation: hit-confetti-fall 1300ms ease 860ms both;
}

.is-hit-reveal .spotlight {
  background:
    radial-gradient(circle, rgba(255, 247, 214, 0.64), transparent 28%),
    conic-gradient(from 0deg, rgba(255, 59, 85, 0.28), rgba(255, 221, 85, 0.32), rgba(85, 245, 255, 0.28), rgba(164, 107, 255, 0.3), rgba(255, 59, 85, 0.28));
}

.feature-prize.is-hit-prize {
  border-color: rgba(255, 247, 214, 0.68);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 247, 214, 0.34), transparent 36%),
    linear-gradient(135deg, rgba(199, 22, 29, 0.92), rgba(21, 25, 35, 0.9));
  box-shadow:
    0 0 42px rgba(245, 200, 75, 0.32),
    0 24px 56px rgba(0, 0, 0, 0.42);
}

.feature-prize.is-hit-prize::after {
  position: absolute;
  inset: -2px;
  content: "";
  border-radius: inherit;
  background: linear-gradient(120deg, #ff3b55, #ffdd55, #55f5ff, #a46bff, #ff3b55);
  opacity: 0.6;
  z-index: -1;
  animation: rainbow-border 1100ms linear infinite;
}

.feature-prize.is-hit-prize span {
  color: #fff7d6;
}

.sequence-result-item.is-hit-final {
  border-color: rgba(245, 200, 75, 0.8);
  background:
    linear-gradient(135deg, rgba(199, 22, 29, 0.2), rgba(245, 200, 75, 0.16));
}

@keyframes hit-aura-spin {
  0% {
    opacity: 0;
    transform: scale(0.44) rotate(0deg);
  }
  45%,
  100% {
    opacity: 0.78;
    transform: scale(1) rotate(180deg);
  }
}

@keyframes hit-confetti-fall {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.7);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0.35;
    transform: translateY(28px) scale(1);
  }
}

@keyframes rainbow-border {
  to {
    filter: hue-rotate(360deg);
  }
}

@media (max-width: 680px) {
  body {
    background:
      radial-gradient(circle at 50% -10%, rgba(245, 200, 75, 0.24), transparent 32%),
      linear-gradient(180deg, #120d1b 0%, #241018 42%, #0a0d16 100%);
  }

  .tabs {
    background: rgba(16, 12, 24, 0.9);
  }

  .app-header h1 {
    font-size: 26px;
  }

  .app-header .eyebrow {
    font-size: 11px;
  }

  .draw-panel,
  .work-panel {
    background: rgba(255, 255, 255, 0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-video-bg {
    display: none;
  }

  body::before,
  body::after,
  .poster-panel::before {
    animation: none;
  }
}

.event-save-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-publish-toggle {
  display: flex;
  min-height: 42px;
  padding: 7px 11px;
  gap: 7px;
  align-items: center;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #fff;
  color: #596273;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.compact-preview-button {
  min-height: 42px;
  padding: 8px 13px;
  white-space: nowrap;
}

.header-publish-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #168b87;
}

.header-publish-toggle:has(input:checked) {
  border-color: rgba(22, 139, 135, 0.38);
  background: rgba(22, 139, 135, 0.08);
  color: #08736f;
}

.save-status {
  min-width: 64px;
  color: #16835b;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.cinematic-scene .feature-prize .ticket-visual.has-image {
  width: min(44vw, 184px);
  height: min(44vw, 184px);
  border: 5px solid rgba(255, 255, 255, 0.92);
  background: #fff;
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(242, 195, 91, 0.28);
}

.cinematic-scene .feature-prize .ticket-visual.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.unpublished-screen {
  display: none;
  min-height: 68vh;
  padding: 80px 24px;
  place-content: center;
  text-align: center;
  color: #fff;
}

.unpublished-screen span {
  color: var(--brand-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.unpublished-screen h2 {
  margin: 12px 0 8px;
  font-size: clamp(30px, 8vw, 54px);
}

.unpublished-screen p {
  color: rgba(255, 255, 255, 0.68);
}

body.is-event-unpublished:not(.is-staff-unlocked) .top-gacha-zone,
body.is-event-unpublished:not(.is-staff-unlocked) main,
body.is-event-unpublished:not(.is-staff-unlocked) .tabs {
  display: none;
}

body.is-event-unpublished:not(.is-staff-unlocked) .unpublished-screen {
  display: grid;
}

.publish-toggle span {
  display: flex;
  min-height: 46px;
  padding: 10px 12px;
  gap: 9px;
  align-items: center;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #fff;
}

.publish-toggle input {
  width: 20px;
  height: 20px;
}

.admin-preview-row {
  display: flex;
  margin-top: 14px;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-preview-row p {
  margin: 0;
}

.prize-image-cell {
  padding: 8px;
  border: 2px dashed transparent;
  border-radius: 12px;
  transition: border-color 160ms ease, background 160ms ease;
}

.prize-image-cell.is-dragging {
  border-color: #168b87;
  background: rgba(22, 139, 135, 0.1);
}

.purchase-history-list,
.purchase-entry-list {
  display: grid;
  gap: 10px;
}

.purchase-event-group {
  overflow: hidden;
  border: 1px solid #e2e7ef;
  border-radius: 14px;
  background: #f8fafc;
}

.purchase-event-group.is-current {
  border-color: rgba(22, 139, 135, 0.42);
}

.purchase-event-group > header {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e7ef;
  background: #fff;
}

.purchase-event-group > header span {
  color: #168b87;
  font-size: 10px;
  font-weight: 900;
}

.purchase-event-group > header h3,
.purchase-event-group > header p {
  margin: 3px 0 0;
}

.purchase-event-group > header p {
  color: #778091;
  font-size: 12px;
}

.purchase-entry-list {
  padding: 10px;
}

.purchase-entry-row {
  display: flex;
  padding: 12px;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e4e9f0;
  border-radius: 10px;
  background: #fff;
}

.purchase-entry-row div {
  display: grid;
  gap: 2px;
}

.purchase-entry-row span,
.purchase-entry-row small {
  color: #6e7788;
  font-size: 11px;
}

.server-order-list,
.server-order-cards {
  display: grid;
  gap: 14px;
}

.server-order-auth {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  background: #f5f6f8;
}

.server-order-auth label {
  display: grid;
  gap: 6px;
}

.server-order-auth .form-hint {
  grid-column: 1 / -1;
}

.server-order-group {
  border: 1px solid #d9dce3;
  background: #fff;
}

.server-order-group > header {
  padding: 16px 18px;
  background: #202024;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.server-order-group > header div,
.server-order-card-head div {
  display: grid;
  gap: 3px;
}

.server-order-group > header small {
  color: #aeb2ba;
}

.server-order-group > header > span {
  border: 1px solid #555962;
  padding: 7px 10px;
  color: #72e7a1;
  font-size: 12px;
}

.server-order-cards {
  padding: 14px;
}

.server-order-card {
  border: 1px solid #e0e2e8;
  padding: 16px;
}

.server-order-card-head,
.server-order-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.server-order-card-head small {
  color: #707580;
}

.order-status {
  padding: 6px 9px;
  border-radius: 999px;
  background: #fff3d6;
  color: #8b6200;
  font-size: 12px;
  font-weight: 800;
}

.order-status.is-consumed {
  background: #dcf9e7;
  color: #08733a;
}

.server-order-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.server-order-facts span {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #f6f7f9;
  font-weight: 700;
}

.server-order-facts small {
  color: #747985;
  font-weight: 500;
}

.server-prize-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.server-prize-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #e7e8ec;
}

.server-prize-list b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0d8883;
  color: #fff;
}

.server-prize-list span {
  display: grid;
}

.server-prize-list small {
  color: #747985;
}

@media (max-width: 720px) {
  .server-order-facts {
    grid-template-columns: 1fr 1fr;
  }
}

/* Unified management workspace */
#view-admin {
  padding: 0;
  max-width: none;
}

.admin-workspace {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 70px 1fr;
  grid-template-columns: 250px minmax(0, 1fr);
  background: #f0eee9;
  color: #171622;
}

.admin-global-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  padding: 8px 18px 8px 24px;
  color: #fff;
  background: #191822;
  border-bottom: 1px solid #34323d;
}

.admin-global-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-global-brand img {
  width: 68px;
  height: 52px;
  object-fit: contain;
}

.admin-global-brand div {
  display: grid;
  gap: 2px;
}

.admin-global-brand span {
  color: #97939f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
}

.admin-global-brand strong {
  font-size: 15px;
}

.admin-global-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-global-actions button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #4a4753;
  color: #eeeaf3;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.admin-global-actions button:first-child {
  border-color: transparent;
}

.admin-global-actions button:hover {
  border-color: #7054eb;
  color: #fff;
  background: #2c2938;
}

.admin-sidebar {
  grid-row: 2;
  background: #222127;
  color: #fff;
  padding: 30px 18px;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
}

.admin-brand {
  display: grid;
  gap: 4px;
  padding: 0 12px 28px;
  border-bottom: 1px solid #37373d;
}

.admin-brand span {
  color: #77727e;
  font-size: 10px;
  letter-spacing: .2em;
}

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

.admin-sidebar nav {
  display: grid;
  gap: 3px;
  margin-top: 22px;
}

.admin-sidebar nav button {
  border: 0;
  border-left: 3px solid transparent;
  padding: 14px 14px;
  background: transparent;
  color: #b7b7bd;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-sidebar nav button:hover,
.admin-sidebar nav button.is-active {
  background: #302e35;
  border-left-color: #7054eb;
  color: #fff;
}

.admin-main {
  grid-row: 2;
  min-width: 0;
  padding: 38px clamp(22px, 4vw, 68px) 80px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 28px;
  max-width: 1180px;
}

.admin-topbar small {
  display: block;
  margin-bottom: 8px;
  color: #7356df;
  font-weight: 800;
  letter-spacing: .18em;
}

.admin-topbar h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -.035em;
}

.admin-view-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid #dad6e2;
  background: #fff;
  color: #504c59;
  font-size: 12px;
  font-weight: 800;
}

.admin-view-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #06c755;
  box-shadow: 0 0 0 4px #ddf9e8;
}

.admin-pages {
  max-width: 1180px;
  margin: auto;
}

.admin-page {
  display: none;
  gap: 20px;
}

.admin-page.is-active {
  display: grid;
}

.admin-page > .work-panel {
  border: 1px solid #dcd8e5;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.admin-page > .work-panel::before {
  display: none;
}

.admin-page .section-head {
  border-bottom-color: #ece9ef;
}

.admin-page input:focus,
.admin-page select:focus,
.admin-page textarea:focus {
  border-color: #7054eb;
  box-shadow: 0 0 0 3px rgba(112, 84, 235, .12);
  outline: none;
}

.admin-page .primary-button,
.admin-page .save-button {
  border-color: #7054eb;
  background: linear-gradient(90deg, #7054eb, #8970ef);
  color: #fff;
}

.integration-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: #dcf9e7;
  color: #08733a;
  font-weight: 800;
  font-size: 12px;
}

.integration-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #19b663;
}

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

.integration-grid article {
  min-height: 130px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid #e1dfda;
  background: #faf9f6;
}

.integration-grid article > span,
.integration-grid article > small {
  color: #73737b;
}

.integration-grid article > strong {
  font-size: 17px;
}

@media (max-width: 850px) {
  .admin-workspace {
    display: block;
  }

  .admin-global-header {
    position: sticky;
    z-index: 20;
    top: 0;
    padding: 7px 12px;
  }

  .admin-global-brand {
    gap: 8px;
  }

  .admin-global-brand img {
    width: 52px;
    height: 42px;
  }

  .admin-global-brand span {
    display: none;
  }

  .admin-global-actions {
    gap: 5px;
  }

  .admin-global-actions button {
    min-height: 34px;
    padding: 0 8px;
    font-size: 10px;
  }

  .admin-sidebar {
    position: sticky;
    z-index: 15;
    top: 56px;
    height: auto;
    padding: 10px 10px 8px;
  }

  .admin-brand {
    display: none;
  }

  .admin-sidebar nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    margin-top: 0;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .admin-sidebar nav button {
    flex: 0 0 auto;
    border-left: 0;
    border-bottom: 3px solid transparent;
    padding: 11px 13px;
  }

  .admin-sidebar nav button.is-active {
    border-bottom-color: #8f78f4;
  }

  .admin-main {
    padding: 22px 14px 60px;
  }

  .admin-topbar {
    align-items: flex-start;
  }

  .integration-grid {
    grid-template-columns: 1fr;
  }
}

body.is-admin-view {
  background: #f0eee9;
}

body.is-admin-view > .app-header,
body.is-admin-view > .tabs,
body.is-admin-view > .top-gacha-zone,
body.is-admin-view > .staff-footer {
  display: none !important;
}

body.is-admin-view > main {
  max-width: none;
  padding: 0;
}

@media (max-width: 680px) {
  .event-save-actions,
  .admin-preview-row {
    width: auto;
  }

  .section-actions {
    flex-wrap: wrap;
  }

  .event-save-actions {
    gap: 6px;
  }

  .compact-preview-button,
  .header-publish-toggle {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 11px;
  }

  .save-status {
    display: none;
  }
}

/* CTA-first mobile flow */
.app-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
  max-width: 720px;
  padding: 18px 14px 10px;
}

.header-copy {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.header-copy h1 {
  margin: 0;
  font-size: clamp(28px, 7vw, 46px);
  line-height: 1.05;
  word-break: keep-all;
}

.header-sale-line {
  display: grid;
  grid-template-columns: auto minmax(88px, 1fr);
  gap: 9px;
  align-items: center;
  max-width: 430px;
}

.header-sale-line strong {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.header-meter {
  height: 9px;
  border: 1px solid rgba(245, 200, 75, 0.36);
  background: rgba(0, 0, 0, 0.26);
}

.header-price-box {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 94px;
  padding: 10px 12px;
  border: 2px solid rgba(255, 247, 214, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #f33a46, #970d15);
  color: #fff;
  box-shadow: 0 12px 34px rgba(199, 22, 29, 0.34);
}

.header-price-box span {
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.header-price-box strong {
  font-size: 26px;
  line-height: 1.05;
  white-space: nowrap;
}

.title-subline,
.poster-subline {
  display: none;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 720px;
  margin: 0 auto;
}

.poster-panel {
  padding-top: 0;
}

.poster-top {
  display: none;
}

.sale-mode-note {
  margin-top: 16px;
}

.main-cta-block {
  position: relative;
  z-index: 1;
  padding: 0 18px 18px;
}

.gacha-start-button {
  display: grid;
  width: 100%;
  min-height: 76px;
  place-items: center;
  border: 1px solid rgba(255, 247, 214, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 247, 214, 0.32), transparent 32%),
    linear-gradient(180deg, #ff2633, #ac0e17);
  color: #fff;
  box-shadow:
    0 18px 44px rgba(199, 22, 29, 0.34),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.gacha-start-button span {
  font-size: clamp(28px, 8vw, 42px);
  font-weight: 900;
  line-height: 1;
}

.gacha-start-button small {
  margin-top: 5px;
  color: rgba(255, 247, 214, 0.86);
  font-size: 12px;
  font-weight: 900;
}

.lineup {
  padding-top: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
}

.gallery-head {
  align-items: center;
  margin-top: 0;
}

.gallery-head > span {
  display: none;
}

.gallery-head h3 {
  font-size: 18px;
}

.prize-gallery-card {
  grid-template-columns: 132px minmax(0, 1fr);
  flex-basis: min(86vw, 430px);
  gap: 12px;
  align-items: center;
  min-height: 142px;
  padding: 12px;
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 200, 75, 0.16), transparent 28%),
    linear-gradient(135deg, #fff, #f7f9fc);
}

.prize-gallery-card.is-hit {
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 200, 75, 0.28), transparent 30%),
    linear-gradient(135deg, #fffdf2, #fff);
}

.prize-gallery-art {
  height: 116px;
}

.prize-gallery-copy span {
  font-size: 11px;
}

.prize-gallery-copy strong {
  -webkit-line-clamp: 3;
  font-size: 18px;
}

.draw-panel[hidden] {
  display: none;
}

.draw-panel.is-open {
  animation: order-panel-in 360ms ease both;
}

@keyframes order-panel-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 680px) {
  .app-header {
    grid-template-columns: minmax(0, 1fr) 88px;
    padding-top: 14px;
  }

  .header-copy h1 {
    font-size: 26px;
  }

  .header-price-box {
    min-width: 88px;
    padding: 8px 9px;
  }

  .header-price-box strong {
    font-size: 22px;
  }

  .header-sale-line {
    grid-template-columns: auto minmax(72px, 1fr);
  }

  .tabs {
    top: 0;
  }

  .gacha-showcase {
    margin-top: 12px;
  }

  .main-cta-block {
    padding: 0 14px 14px;
  }

  .gacha-start-button {
    min-height: 70px;
  }

  .prize-gallery-card {
    grid-template-columns: 112px minmax(0, 1fr);
    flex-basis: 82vw;
    min-height: 132px;
    padding: 10px;
  }

  .prize-gallery-art {
    height: 104px;
  }

  .prize-gallery-copy strong {
    font-size: 16px;
  }
}

/* Top summary and staff entry refinement */
.app-header {
  grid-template-columns: minmax(0, 1fr) minmax(94px, auto);
  gap: 14px;
}

.header-copy {
  align-content: center;
}

.header-copy h1 {
  font-size: clamp(30px, 7vw, 56px);
}

.title-subline {
  display: block;
  margin: 0;
  color: rgba(255, 247, 214, 0.84);
  font-size: clamp(15px, 3.8vw, 22px);
  font-weight: 900;
  line-height: 1.2;
}

.header-stock {
  display: grid;
  gap: 6px;
  max-width: min(100%, 470px);
  margin-top: 6px;
}

.header-stock-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.header-stock-label strong,
.header-stock-label span {
  color: #fff;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.header-stock-label strong {
  font-size: clamp(18px, 4.4vw, 28px);
}

.header-stock-label span {
  color: #fff7d6;
  font-size: clamp(12px, 3.4vw, 16px);
}

.header-sale-line {
  display: none;
}

.header-meter {
  height: 11px;
  border: 1px solid rgba(245, 200, 75, 0.42);
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.header-meter span {
  background: linear-gradient(90deg, var(--red), var(--gold), var(--teal));
  box-shadow: 0 0 12px rgba(245, 200, 75, 0.36);
}

.header-price-box {
  align-self: stretch;
  min-width: 104px;
}

.header-price-box span {
  font-size: 13px;
}

.header-price-box strong {
  font-size: 28px;
}

.staff-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 14px 34px;
  text-align: center;
}

.staff-login-link {
  min-height: 42px;
  border: 1px solid rgba(46, 211, 190, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(220, 255, 248, 0.88);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 680px) {
  .app-header {
    grid-template-columns: minmax(0, 1fr) 94px;
    gap: 10px;
    padding-top: 16px;
  }

  .header-copy h1 {
    font-size: 25px;
    line-height: 1.1;
  }

  .title-subline {
    font-size: 15px;
  }

  .header-price-box {
    min-width: 94px;
  }

  .header-price-box strong {
    font-size: 22px;
  }

  .header-stock {
    margin-top: 4px;
  }
}

/* Remaining gauge and hit-fire pass */
.app-header .header-stock {
  display: none;
}

.gacha-showcase {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.gacha-showcase::after {
  bottom: 104px;
}

.capsule-status {
  align-self: stretch;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 247, 214, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(235, 239, 245, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.86),
    0 14px 34px rgba(0, 0, 0, 0.18);
}

.capsule-status span {
  color: #576170;
  font-size: 12px;
  letter-spacing: 0;
}

.capsule-status strong {
  color: var(--red);
  font-size: clamp(22px, 6vw, 40px);
  line-height: 1;
}

.capsule-status .capsule-meter {
  justify-self: stretch;
  width: 100%;
  box-sizing: border-box;
  height: 30px;
  padding: 4px;
  border: 1px solid rgba(199, 22, 29, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18)),
    #d8dde6;
  box-shadow:
    inset 0 2px 6px rgba(21, 25, 35, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.6);
}

.capsule-status .capsule-meter span {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, #d1161d 0%, #f0622e 34%, #f6ce55 63%, #18a999 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.32),
    0 0 18px rgba(245, 200, 75, 0.36);
}

.capsule-status .capsule-meter span::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(110deg, transparent 0 30%, rgba(255, 255, 255, 0.5) 42%, transparent 54%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 8px, transparent 8px 16px);
  animation: stock-meter-shine 1700ms linear infinite;
}

.cinematic-focus.is-fire-hit {
  background:
    radial-gradient(circle at 50% 56%, rgba(255, 239, 180, 0.32), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(255, 64, 18, 0.22), transparent 46%),
    rgba(0, 0, 0, 0.1);
}

.hit-flame-field {
  position: absolute;
  inset: -12% -10% -4%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse at 30% 100%, rgba(255, 238, 124, 0.95) 0 7%, rgba(255, 100, 26, 0.62) 13%, transparent 31%),
    radial-gradient(ellipse at 52% 100%, rgba(255, 248, 192, 0.92) 0 8%, rgba(255, 54, 18, 0.62) 17%, transparent 38%),
    radial-gradient(ellipse at 72% 100%, rgba(255, 214, 92, 0.84) 0 6%, rgba(255, 87, 22, 0.56) 14%, transparent 33%),
    conic-gradient(from 190deg at 50% 84%, transparent, rgba(255, 61, 21, 0.5), rgba(255, 217, 87, 0.68), transparent);
  filter: blur(2px) saturate(1.25);
  mix-blend-mode: screen;
  animation: hit-fire-rise 1500ms ease 240ms both;
}

.hit-warning-ring {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 2;
  width: min(76vw, 300px);
  aspect-ratio: 1;
  border: 4px solid rgba(255, 232, 128, 0.8);
  border-radius: 999px;
  opacity: 0;
  box-shadow:
    0 0 28px rgba(255, 78, 24, 0.78),
    inset 0 0 28px rgba(255, 220, 90, 0.38);
  transform: translate(-50%, -50%) scale(0.35);
  animation: hit-warning-pulse 1000ms cubic-bezier(0.16, 0.9, 0.22, 1) 360ms both;
}

.falling-capsule.is-hit-capsule {
  border-color: rgba(255, 247, 214, 0.98);
  box-shadow:
    inset -8px -10px 16px rgba(0, 0, 0, 0.18),
    inset 7px 7px 14px rgba(255, 255, 255, 0.32),
    0 0 0 10px rgba(255, 236, 142, 0.12),
    0 0 34px rgba(255, 92, 22, 0.72),
    0 20px 34px rgba(0, 0, 0, 0.34);
  animation-name: capsule-drop-hit;
  animation-timing-function: cubic-bezier(0.1, 0.78, 0.2, 1.18);
}

.falling-capsule.is-hit-capsule::before {
  background: rgba(255, 248, 210, 0.9);
  box-shadow:
    0 0 16px rgba(255, 219, 85, 0.92),
    0 2px 0 rgba(0, 0, 0, 0.12);
}

.falling-capsule.is-hit-capsule::after {
  width: 82px;
  height: 12px;
  background:
    linear-gradient(90deg, rgba(255, 241, 159, 0.95), rgba(255, 70, 22, 0.58), transparent);
  filter: blur(1px);
  animation: hit-tail-flicker 340ms steps(2, end) infinite;
}

.opening-capsule.is-hit-capsule::before {
  inset: -38px;
  background:
    radial-gradient(circle, rgba(255, 248, 188, 0.8), rgba(255, 98, 31, 0.42) 36%, transparent 64%);
  animation-duration: 1600ms;
}

.opening-capsule.is-hit-capsule .capsule-spark {
  background: #fff3a4;
  box-shadow:
    0 0 18px #ffd34d,
    0 0 34px #ff4a1c;
}

.is-fire-hit .hit-aura {
  background:
    conic-gradient(from 12deg, #ff2a10, #ff8a1a, #fff0a0, #ff4b16, #9b0d0d, #ff2a10);
  filter: blur(22px) saturate(1.55);
  opacity: 0;
  animation: hit-fire-aura 1450ms ease 500ms both;
}

.is-fire-hit .hit-confetti {
  background-image:
    radial-gradient(circle, #fff3a4 0 3px, transparent 3px),
    radial-gradient(circle, #ff8a1a 0 3px, transparent 3px),
    radial-gradient(circle, #ff3118 0 2px, transparent 2px),
    radial-gradient(circle, #ffd34d 0 2px, transparent 2px);
  background-position: 10% 82%, 86% 78%, 22% 40%, 78% 34%;
  animation: hit-ember-rise 1400ms ease 760ms both;
}

.hit-flame-field::before,
.hit-flame-field::after {
  position: absolute;
  left: 50%;
  bottom: -8%;
  content: "";
  width: min(116vw, 520px);
  height: min(78vw, 360px);
  border-radius: 50% 50% 12% 12%;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  pointer-events: none;
}

.hit-flame-field::before {
  background:
    radial-gradient(ellipse at 22% 84%, rgba(255, 235, 130, 0.95) 0 8%, rgba(255, 103, 20, 0.78) 15%, transparent 34%),
    radial-gradient(ellipse at 38% 72%, rgba(255, 247, 186, 0.96) 0 9%, rgba(255, 80, 16, 0.78) 17%, transparent 38%),
    radial-gradient(ellipse at 56% 80%, rgba(255, 230, 96, 0.96) 0 8%, rgba(255, 50, 18, 0.78) 18%, transparent 41%),
    radial-gradient(ellipse at 76% 74%, rgba(255, 244, 166, 0.88) 0 7%, rgba(255, 112, 18, 0.72) 16%, transparent 35%);
  filter: blur(3px) saturate(1.3);
  animation: flame-tongues 620ms ease-in-out infinite alternate;
}

.hit-flame-field::after {
  width: min(86vw, 380px);
  height: min(58vw, 270px);
  background:
    radial-gradient(ellipse at 36% 86%, rgba(255, 252, 218, 0.96) 0 10%, rgba(255, 175, 42, 0.86) 18%, transparent 39%),
    radial-gradient(ellipse at 62% 78%, rgba(255, 246, 166, 0.9) 0 8%, rgba(255, 78, 18, 0.74) 18%, transparent 42%);
  filter: blur(1px);
  animation: flame-core 480ms ease-in-out infinite alternate;
}

.is-fire-hit .spotlight {
  background:
    radial-gradient(circle, rgba(255, 232, 128, 0.72), transparent 28%),
    conic-gradient(from 0deg, rgba(255, 42, 16, 0.4), rgba(255, 186, 42, 0.42), rgba(255, 72, 18, 0.32), rgba(255, 224, 98, 0.36), rgba(255, 42, 16, 0.4));
}

@keyframes stock-meter-shine {
  from {
    transform: translateX(-38%);
  }
  to {
    transform: translateX(38%);
  }
}

@keyframes hit-fire-rise {
  0% {
    opacity: 0;
    transform: translateY(26px) scaleY(0.66);
  }
  32% {
    opacity: 1;
  }
  100% {
    opacity: 0.82;
    transform: translateY(-16px) scaleY(1.08);
  }
}

@keyframes hit-warning-pulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35) rotate(-12deg);
  }
  42% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2) rotate(22deg);
  }
}

@keyframes capsule-drop-hit {
  0% {
    opacity: 0;
    transform: translate(-160px, -32px) scale(0.7) rotate(-46deg);
    filter: hue-rotate(0deg) saturate(1.2) blur(1px);
  }
  16% {
    opacity: 1;
  }
  34% {
    transform: translate(-82px, 74px) scale(1.22) rotate(210deg);
    filter: hue-rotate(24deg) saturate(1.6) blur(0);
  }
  48% {
    transform: translate(34px, 108px) scale(0.9) rotate(384deg);
  }
  62% {
    transform: translate(-50%, 136px) scale(1.24) rotate(510deg);
  }
  76% {
    transform: translate(-50%, 104px) scale(1.08) rotate(618deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 146px) scale(0.78) rotate(710deg);
    filter: hue-rotate(54deg) saturate(1.35);
  }
}

@keyframes hit-tail-flicker {
  0%,
  100% {
    opacity: 0.86;
    transform: rotate(22deg) scaleX(1);
  }
  50% {
    opacity: 0.48;
    transform: rotate(30deg) scaleX(0.78);
  }
}

@keyframes hit-fire-aura {
  0% {
    opacity: 0;
    transform: scale(0.32) rotate(0deg);
  }
  44%,
  100% {
    opacity: 0.82;
    transform: scale(1.04) rotate(130deg);
  }
}

@keyframes hit-ember-rise {
  0% {
    opacity: 0;
    transform: translateY(42px) scale(0.72);
  }
  32% {
    opacity: 1;
  }
  100% {
    opacity: 0.48;
    transform: translateY(-34px) scale(1.08);
  }
}

@keyframes flame-tongues {
  from {
    opacity: 0.7;
    transform: translateX(-50%) scaleX(0.96) scaleY(0.92) skewX(-3deg);
  }
  to {
    opacity: 0.96;
    transform: translateX(-50%) scaleX(1.04) scaleY(1.08) skewX(4deg);
  }
}

@keyframes flame-core {
  from {
    opacity: 0.72;
    transform: translateX(-50%) scaleX(1.08) scaleY(0.9) translateY(8px);
  }
  to {
    opacity: 0.98;
    transform: translateX(-50%) scaleX(0.94) scaleY(1.08) translateY(-8px);
  }
}

@media (max-width: 680px) {
  .gacha-showcase {
    gap: 10px;
    padding: 14px;
  }

  .gacha-showcase::after {
    bottom: 96px;
  }

  .capsule-status {
    padding: 14px;
  }

  .capsule-status .capsule-meter {
    height: 28px;
  }
}

/* App-like purchase page and handle-spin screen */
body.is-order-page,
body.is-spin-open {
  overflow: hidden;
}

.order-page-top {
  display: none;
}

.icon-text-button {
  min-height: 42px;
  border: 1px solid rgba(21, 25, 35, 0.12);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 900;
}

body.is-order-page #orderPanel {
  position: fixed;
  inset: 0;
  z-index: 920;
  display: block;
  overflow-y: auto;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  padding: max(14px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(245, 200, 75, 0.18), transparent 34%),
    linear-gradient(180deg, #10131d 0%, #1f1018 32%, #f5f7fb 32%, #f5f7fb 100%);
  box-shadow: none;
  animation: none;
}

body.is-order-page #orderPanel > * {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

body.is-order-page .order-page-top {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin: calc(max(14px, env(safe-area-inset-top)) * -1) -14px 14px;
  padding: max(12px, env(safe-area-inset-top)) 14px 12px;
  background: rgba(13, 12, 20, 0.92);
  color: #fff;
  backdrop-filter: blur(12px);
}

body.is-order-page .order-page-top > div {
  display: grid;
  gap: 2px;
}

body.is-order-page .order-page-top span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

body.is-order-page .order-page-top strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.1;
}

body.is-order-page .section-head,
body.is-order-page .flow-steps,
body.is-order-page .form-section-title,
body.is-order-page .form-grid,
body.is-order-page .choice-block,
body.is-order-page .address-box,
body.is-order-page .checkout-row,
body.is-order-page .result-panel {
  position: relative;
  z-index: 1;
}

body.is-order-page .section-head,
body.is-order-page .flow-steps,
body.is-order-page .form-grid,
body.is-order-page .choice-block,
body.is-order-page .address-box,
body.is-order-page .checkout-row,
body.is-order-page .result-panel {
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 36px rgba(21, 25, 35, 0.08);
}

body.is-order-page .form-grid {
  gap: 12px;
}

body.is-order-page .choice-block {
  margin-top: 10px;
}

body.is-order-page .checkout-row {
  position: sticky;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 4;
  align-items: stretch;
  margin-top: 14px;
}

.lets-play-button {
  min-width: 156px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 247, 214, 0.32), transparent 34%),
    linear-gradient(180deg, #ff2633, #ac0e17);
  border-color: rgba(255, 247, 214, 0.28);
  box-shadow:
    0 16px 34px rgba(199, 22, 29, 0.26),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  color: #fff;
  letter-spacing: 0;
}

.payment-return-screen {
  position: fixed;
  z-index: 990;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 101, 163, .18), transparent 35%),
    rgba(8, 7, 13, .78);
  -webkit-backdrop-filter: blur(12px) saturate(.78);
  backdrop-filter: blur(12px) saturate(.78);
}

.payment-return-card {
  display: grid;
  width: min(100%, 520px);
  gap: 13px;
  justify-items: center;
  padding: 42px 30px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 28px 80px rgba(0,0,0,.36);
  text-align: center;
  backdrop-filter: blur(18px);
}

.payment-return-spinner {
  width: 72px;
  height: 72px;
  border: 7px solid rgba(255,255,255,.13);
  border-top-color: #ff67a4;
  border-right-color: #ffd0e2;
  border-radius: 50%;
  animation: payment-return-spin 900ms linear infinite;
}

.payment-return-card > p {
  margin: 5px 0 0;
  color: #ff83b4;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
}

.payment-return-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 7vw, 38px);
}

.payment-return-card > span {
  max-width: 390px;
  color: #ddd3da;
  font-size: 13px;
  line-height: 1.75;
}

.payment-return-card > small {
  color: #c9bbc4;
  font-size: 11px;
}

.payment-return-progress {
  overflow: hidden;
  width: 100%;
  height: 10px;
  margin: 8px 0 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.payment-return-progress i {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff5598, #ffb0d0);
  box-shadow: 0 0 18px rgba(255, 91, 158, .6);
  transition: width 300ms ease;
}

.payment-return-screen.is-complete .payment-return-spinner {
  border: 0;
  background: #2ec77d;
  animation: none;
}

.payment-return-screen.is-complete .payment-return-spinner::after {
  display: grid;
  width: 100%;
  height: 100%;
  content: "✓";
  place-items: center;
  color: #fff;
  font-size: 38px;
  font-weight: 900;
}

.payment-return-screen.is-timeout .payment-return-spinner {
  animation-duration: 1.8s;
}

.payment-return-screen.is-stock-shortage .payment-return-spinner {
  display: grid;
  border: 0;
  background: linear-gradient(145deg, #ffb347, #ff5c5c);
  animation: none;
  place-items: center;
}

.payment-return-screen.is-stock-shortage .payment-return-spinner::after {
  content: "!";
  color: #fff;
  font-size: 42px;
  font-weight: 950;
}

.payment-return-screen.is-stock-shortage .payment-return-progress {
  display: none;
}

.payment-return-screen.is-stock-shortage .payment-return-card > p {
  color: #ffc36e;
}

.payment-return-screen.is-stock-shortage .payment-return-card > span {
  color: #fff;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 900;
}

.payment-return-actions {
  width: 100%;
  margin-top: 8px;
}

.payment-return-actions:not([hidden]) {
  display: grid;
  gap: 9px;
}

.payment-return-actions button {
  min-height: 54px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #f15899, #ff78ad);
  font-size: 15px;
  font-weight: 900;
}

.payment-return-actions button:last-child {
  background: rgba(255,255,255,.08);
}

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

.spin-gacha-screen {
  position: fixed;
  inset: 0;
  z-index: 980;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 10%, rgba(245, 200, 75, 0.26), transparent 30%),
    radial-gradient(circle at 18% 78%, rgba(199, 22, 29, 0.26), transparent 32%),
    radial-gradient(circle at 82% 76%, rgba(42, 183, 169, 0.18), transparent 30%),
    linear-gradient(180deg, #080915 0%, #241018 54%, #060914 100%);
  color: #fff;
}

.spin-gacha-screen::before {
  position: absolute;
  inset: -20%;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 47%, transparent 54%),
    radial-gradient(circle, rgba(255, 247, 214, 0.24) 0 1px, transparent 1px);
  background-size: auto, 48px 48px;
  animation: cinematic-sweep 5200ms ease-in-out infinite;
}

.spin-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  width: min(100%, 720px);
  height: 100dvh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
}

.spin-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spin-back {
  min-height: 40px;
  border: 1px solid rgba(255, 247, 214, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff7d6;
  padding: 8px 12px;
  font-weight: 900;
}

.spin-top div {
  display: grid;
  gap: 2px;
}

.spin-top span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.spin-top strong {
  color: #fff;
  font-size: clamp(26px, 7vw, 44px);
  line-height: 1.05;
  text-shadow: 0 4px 0 rgba(125, 15, 20, 0.68), 0 0 22px rgba(245, 200, 75, 0.24);
}

.spin-stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(255, 247, 214, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 38%, rgba(245, 200, 75, 0.18), transparent 38%),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 22px 80px rgba(0, 0, 0, 0.28);
}

.spin-machine {
  align-self: center;
  width: min(100%, 300px);
  min-height: 372px;
  margin: 0 auto;
}

.spin-machine .machine-dome {
  width: 248px;
  height: 214px;
  border-width: 10px;
}

.spin-machine .capsule-ball {
  width: calc(37px * var(--s));
  height: calc(37px * var(--s));
}

.spin-machine .machine-neck {
  width: 106px;
  height: 32px;
}

.spin-machine .machine-body {
  width: 224px;
  height: 128px;
  border-width: 5px;
}

.spin-machine .machine-window {
  left: 22px;
  top: 24px;
  width: 74px;
  height: 54px;
  font-size: 22px;
}

.spin-machine .machine-tray {
  width: 150px;
  height: 30px;
}

.spin-handle-target {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 5;
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  border-radius: 999px;
  touch-action: none;
  cursor: grab;
}

.spin-handle-target::before {
  position: absolute;
  inset: -8px;
  content: "";
  border: 2px dashed rgba(255, 247, 214, 0.5);
  border-radius: inherit;
  animation: spin-guide 1400ms linear infinite;
}

.spin-handle-target:active {
  cursor: grabbing;
}

.spin-handle-target .spin-handle {
  position: relative;
  inset: auto;
  right: auto;
  top: auto;
  width: 62px;
  height: 62px;
  transform: rotate(var(--spin-rotation, 0deg));
  transition: transform 80ms linear;
}

.spin-gacha-screen.is-spin-complete .spin-handle {
  animation: handle-final-spin 520ms ease both;
}

.spin-gacha-screen.is-spinning-now .capsule-ball {
  animation: capsule-jump 520ms ease-in-out infinite;
}

.spin-action-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 247, 214, 0.28);
  border-radius: 8px;
  background: rgba(10, 13, 22, 0.76);
}

.spin-action-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.spin-action-card strong {
  color: #fff;
  font-size: clamp(20px, 5vw, 30px);
  line-height: 1.1;
}

.spin-gacha-screen.is-draw-processing .spin-handle-target {
  pointer-events: none;
  opacity: .42;
}

.spin-gacha-screen.is-draw-processing .spin-action-card {
  grid-template-columns: 44px 1fr;
  align-items: center;
  min-height: 84px;
  text-align: left;
}

.spin-gacha-screen.is-draw-processing .spin-action-card > div {
  display: grid;
  gap: 5px;
}

.draw-processing-spinner {
  display: block;
  width: 38px;
  height: 38px;
  border: 4px solid rgba(255,255,255,.16);
  border-top-color: #f5c84b;
  border-right-color: #ff6ba4;
  border-radius: 50%;
  animation: payment-return-spin 850ms linear infinite;
}

.spin-gacha-screen.is-draw-processing .spin-back:disabled {
  opacity: .35;
}

.spin-progress {
  overflow: hidden;
  height: 16px;
  border: 1px solid rgba(255, 247, 214, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.spin-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--teal));
  box-shadow: 0 0 18px rgba(245, 200, 75, 0.38);
  transition: width 100ms linear;
}

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

@keyframes handle-final-spin {
  to {
    transform: rotate(calc(var(--spin-rotation, 0deg) + 720deg));
  }
}

@media (max-width: 680px) {
  body.is-order-page #orderPanel {
    padding-inline: 12px;
  }

  body.is-order-page .section-head {
    align-items: center;
  }

  body.is-order-page .section-head h2 {
    font-size: 22px;
  }

  body.is-order-page .form-grid,
  body.is-order-page .choice-block {
    grid-template-columns: 1fr;
  }

  body.is-order-page .flow-steps {
    gap: 6px;
    padding: 10px;
  }

  body.is-order-page .flow-steps span {
    min-height: 42px;
    font-size: 12px;
  }

  body.is-order-page .checkout-row {
    display: grid;
    gap: 12px;
  }

  body.is-order-page .checkout-actions,
  body.is-order-page .checkout-actions button {
    width: 100%;
  }

  .lets-play-button {
    width: 100%;
    min-height: 74px;
    border-radius: 999px;
    font-size: 23px;
  }

  .payment-return-card {
    padding: 36px 22px;
    border-radius: 20px;
  }

  .spin-shell {
    padding-inline: 10px;
  }

  .spin-stage {
    padding: 10px;
  }

  .spin-machine {
    width: 248px;
    min-height: 312px;
  }

  .spin-machine .machine-dome {
    width: 204px;
    height: 176px;
    border-width: 8px;
  }

  .spin-machine .capsule-ball {
    width: calc(30px * var(--s));
    height: calc(30px * var(--s));
  }

  .spin-machine .machine-neck {
    width: 88px;
    height: 26px;
  }

  .spin-machine .machine-body {
    width: 184px;
    height: 108px;
  }

  .spin-machine .machine-window {
    left: 18px;
    top: 22px;
    width: 62px;
    height: 46px;
    font-size: 18px;
  }

  .spin-machine .machine-tray {
    width: 128px;
    height: 26px;
  }

  .spin-handle-target {
    right: 8px;
    top: 7px;
    width: 92px;
    height: 92px;
  }

  .spin-handle-target .spin-handle {
    width: 58px;
    height: 58px;
  }
}

/* Reference pass: real capsule-toy machine proportions and anywhere spin */
.spin-gacha-screen {
  touch-action: none;
  cursor: grab;
}

.spin-gacha-screen.is-spinning-now {
  cursor: grabbing;
}

.spin-stage {
  position: relative;
  isolation: isolate;
}

.spin-machine,
.spin-action-card {
  position: relative;
  z-index: 1;
}

.spin-back {
  touch-action: auto;
}

.machine-dome {
  border-radius: 47% 47% 40% 40% / 53% 53% 42% 42%;
  background:
    radial-gradient(circle at 27% 18%, rgba(255, 255, 255, 0.98), transparent 10%),
    linear-gradient(105deg, rgba(255, 255, 255, 0.5) 0 12%, transparent 24% 100%),
    radial-gradient(ellipse at 50% 82%, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(235, 246, 255, 0.28) 48%, rgba(170, 196, 205, 0.22));
  box-shadow:
    inset 0 -34px 42px rgba(255, 255, 255, 0.42),
    inset 0 0 0 5px rgba(255, 255, 255, 0.22),
    0 16px 38px rgba(0, 0, 0, 0.32);
}

.machine-dome::after {
  inset: 18px 26px auto auto;
  width: 42px;
  height: 108px;
  opacity: 0.85;
}

.capsule-layer {
  inset: 16px 12px 12px;
}

.capsule-ball {
  z-index: var(--z, 1);
}

.gacha-showcase .gacha-machine {
  width: min(100%, 268px);
  min-height: 318px;
}

.gacha-showcase .machine-dome {
  width: 220px;
  height: 196px;
  border-width: 10px;
}

.gacha-showcase .capsule-ball {
  width: calc(40px * var(--s));
  height: calc(40px * var(--s));
  border-width: 3px;
}

.gacha-showcase .machine-neck {
  width: 98px;
  height: 30px;
}

.gacha-showcase .machine-body {
  width: 194px;
  height: 112px;
  border-width: 5px;
}

.gacha-showcase .machine-window {
  left: 21px;
  top: 22px;
  width: 66px;
  height: 48px;
  font-size: 19px;
}

.gacha-showcase .machine-handle {
  right: 26px;
  top: 27px;
  width: 52px;
  height: 52px;
}

.gacha-showcase .machine-tray {
  width: 132px;
  height: 28px;
}

.spin-machine {
  width: min(100%, 318px);
  min-height: 388px;
}

.spin-machine .machine-dome {
  width: 268px;
  height: 236px;
}

.spin-machine .capsule-ball {
  width: calc(42px * var(--s));
  height: calc(42px * var(--s));
  border-width: 3px;
}

.spin-handle-target::before {
  inset: -42vmax;
  border: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 48px, rgba(255, 247, 214, 0.14) 49px 50px, transparent 51px),
    conic-gradient(from 0deg, transparent, rgba(255, 247, 214, 0.12), transparent 36%, transparent);
  opacity: 0.7;
  animation: spin-guide 2200ms linear infinite;
}

.spin-gacha-screen.is-anywhere-spin .spin-handle-target::before {
  opacity: 0.95;
}

@media (max-width: 680px) {
  .gacha-showcase .gacha-machine {
    width: 258px;
    min-height: 306px;
  }

  .gacha-showcase .machine-dome {
    width: 210px;
    height: 186px;
  }

  .gacha-showcase .capsule-ball {
    width: calc(37px * var(--s));
    height: calc(37px * var(--s));
  }

  .gacha-showcase .machine-body {
    width: 188px;
    height: 108px;
  }

  .spin-stage {
    touch-action: none;
  }

  .spin-machine {
    width: 270px;
    min-height: 332px;
  }

  .spin-machine .machine-dome {
    width: 226px;
    height: 196px;
  }

  .spin-machine .capsule-ball {
    width: calc(34px * var(--s));
    height: calc(34px * var(--s));
  }

  .spin-handle-target {
    right: 4px;
    top: 4px;
    width: 106px;
    height: 106px;
  }
}

/* Simplified first screen and square-machine dispense scene */
.poster-panel > .gacha-showcase {
  display: none;
}

.poster-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.poster-panel .lineup {
  margin-top: 4px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.main-cta-block {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding-top: 4px;
}

.gacha-start-button {
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 84px;
  overflow: hidden;
}

.prize-gallery-scroller {
  min-width: 0;
  max-width: 100%;
}

.gacha-start-button span,
.gacha-start-button small {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff;
  opacity: 1;
  transform: none;
}

.spin-machine .machine-dome,
.gacha-machine.is-cinematic .machine-dome {
  width: 260px;
  height: 230px;
  border-width: 10px;
  border-radius: 18px 18px 12px 12px;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.96), transparent 10%),
    linear-gradient(105deg, rgba(255, 255, 255, 0.46) 0 13%, transparent 24%),
    radial-gradient(ellipse at 50% 92%, rgba(255, 255, 255, 0.5), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(207, 230, 240, 0.24));
  box-shadow:
    inset 0 -36px 42px rgba(255, 255, 255, 0.36),
    inset 0 0 0 5px rgba(255, 255, 255, 0.2),
    0 16px 38px rgba(0, 0, 0, 0.32);
}

.spin-machine .machine-dome::before,
.gacha-machine.is-cinematic .machine-dome::before {
  left: 18px;
  right: 18px;
  bottom: 14px;
  height: 38px;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.14), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent);
}

.spin-machine .machine-dome::after,
.gacha-machine.is-cinematic .machine-dome::after {
  right: 22px;
  top: 20px;
  width: 46px;
  height: 142px;
  border-radius: 999px;
  opacity: 0.78;
}

.spin-machine .capsule-layer,
.gacha-machine.is-cinematic .capsule-layer {
  inset: 20px 16px 14px;
}

.spin-machine .machine-neck,
.gacha-machine.is-cinematic .machine-neck {
  width: 124px;
  height: 28px;
  border-radius: 0 0 8px 8px;
}

.spin-machine .machine-body,
.gacha-machine.is-cinematic .machine-body {
  width: 232px;
  height: 130px;
  border-radius: 10px 10px 16px 16px;
}

.spin-machine .machine-tray,
.gacha-machine.is-cinematic .machine-tray {
  position: relative;
  z-index: 4;
  width: 150px;
  height: 34px;
  border-radius: 10px 10px 20px 20px;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(180deg, #0b1018, #2b3440);
}

.spin-dispense-capsule {
  position: absolute;
  left: 50%;
  bottom: 4px;
  z-index: 8;
  width: 54px;
  height: 54px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.86), transparent 17%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66) 0 43%, rgba(255, 255, 255, 0.18) 44% 50%, rgba(0, 0, 0, 0.22) 51% 100%),
    linear-gradient(135deg, var(--capsule-color, #f5c84b), color-mix(in srgb, var(--capsule-color, #f5c84b) 70%, #000));
  box-shadow:
    inset -8px -10px 16px rgba(0, 0, 0, 0.18),
    inset 7px 7px 14px rgba(255, 255, 255, 0.28),
    0 0 24px rgba(245, 200, 75, 0.34),
    0 14px 22px rgba(0, 0, 0, 0.28);
}

.spin-dispense-capsule::before {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 45%;
  height: 5px;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.spin-dispense-capsule::after {
  position: absolute;
  inset: 7px 12px auto;
  height: 18px;
  content: "";
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent);
  filter: blur(1px);
  transform: rotate(-24deg);
}

.spin-capsule-shadow {
  position: absolute;
  left: 50%;
  bottom: 7px;
  z-index: 7;
  width: 66px;
  height: 16px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.5);
  filter: blur(7px);
  transform: translateX(-50%) scale(0.45);
}

.spin-dispense-capsule.is-red {
  --capsule-color: #e83d46;
}

.spin-dispense-capsule.is-gold {
  --capsule-color: #f5c84b;
}

.spin-dispense-capsule.is-teal {
  --capsule-color: #2ab7a9;
}

.spin-dispense-capsule.is-blue {
  --capsule-color: #528ddb;
}

.spin-dispense-capsule.is-pink {
  --capsule-color: #ff7aa9;
}

.spin-dispense-capsule.is-white {
  --capsule-color: #f7f1df;
}

.spin-chute-flash {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 7;
  width: 124px;
  height: 44px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 247, 214, 0.72), transparent 64%);
  filter: blur(5px);
  transform: translateX(-50%);
}

.spin-stage::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  opacity: 0;
  background-image:
    radial-gradient(circle, rgba(255, 247, 214, 0.9) 0 2px, transparent 2px),
    radial-gradient(circle, rgba(245, 200, 75, 0.72) 0 2px, transparent 2px),
    radial-gradient(circle, rgba(42, 183, 169, 0.58) 0 1px, transparent 1px);
  background-position: 16% 18%, 78% 26%, 34% 78%;
  background-size: 110px 110px, 136px 136px, 92px 92px;
}

.spin-gacha-screen.is-spin-complete .capsule-ball {
  animation: capsule-drum-burst 760ms ease-in-out 2;
}

.spin-gacha-screen.is-spin-complete .machine-tray {
  animation: tray-flash 920ms ease both;
}

.spin-gacha-screen.is-spin-complete .spin-dispense-capsule {
  animation: capsule-dispense 1280ms cubic-bezier(0.15, 0.88, 0.2, 1.04) both;
}

.spin-gacha-screen.is-spin-complete .spin-chute-flash {
  animation: chute-flash 920ms ease 120ms both;
}

.spin-gacha-screen.is-spin-complete .spin-stage::after {
  animation: prize-sparkle 1150ms ease both;
}

@keyframes capsule-drum-burst {
  0%,
  100% {
    transform: translate(0, 0) rotate(var(--r));
  }
  28% {
    transform: translate(-7px, -9px) rotate(calc(var(--r) - 24deg));
  }
  58% {
    transform: translate(8px, 5px) rotate(calc(var(--r) + 34deg));
  }
}

@keyframes capsule-dispense {
  0% {
    opacity: 0;
    transform: translate(-50%, -72px) scale(0.46) rotate(-48deg);
  }
  24% {
    opacity: 1;
    transform: translate(-40%, -44px) scale(0.72) rotate(90deg);
  }
  52% {
    transform: translate(-62%, -18px) scale(0.98) rotate(230deg);
  }
  76% {
    transform: translate(-50%, 14px) scale(1.08) rotate(330deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 26px) scale(1) rotate(390deg);
  }
}

@keyframes tray-flash {
  0%,
  100% {
    box-shadow: inset 0 8px 14px rgba(0, 0, 0, 0.42);
  }
  42% {
    box-shadow:
      inset 0 8px 14px rgba(0, 0, 0, 0.42),
      0 0 26px rgba(245, 200, 75, 0.7);
  }
}

@keyframes chute-flash {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.62);
  }
  44% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.25);
  }
}

@keyframes prize-sparkle {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.8);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0.32;
    transform: translateY(-18px) scale(1);
  }
}

@media (max-width: 680px) {
  .poster-panel > .gacha-showcase {
    display: none;
  }

  .poster-panel .lineup {
    margin-top: 0;
  }

  .spin-machine .machine-dome,
  .gacha-machine.is-cinematic .machine-dome {
    width: 232px;
    height: 206px;
    border-radius: 16px 16px 10px 10px;
  }

  .spin-machine .machine-body,
  .gacha-machine.is-cinematic .machine-body {
    width: 206px;
    height: 118px;
  }

  .spin-dispense-capsule {
    width: 48px;
    height: 48px;
  }
}

/* Top app flow: title, tabs, animated gacha, sale progress, staff entry */
html {
  -webkit-text-size-adjust: 100%;
}

input,
select,
textarea {
  font-size: 16px !important;
  line-height: 1.35;
}

.top-gacha-zone {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 14px 8px;
}

.top-gacha-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(126px, 0.58fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(245, 200, 75, 0.38);
  border-radius: 10px;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 247, 214, 0.24), transparent 28%),
    radial-gradient(circle at 84% 84%, rgba(42, 183, 169, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(20, 16, 27, 0.94), rgba(55, 20, 25, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 18px 48px rgba(0, 0, 0, 0.22);
}

.top-gacha-showcase::before {
  position: absolute;
  inset: -35% -20%;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 42%, rgba(255, 255, 255, 0.13) 49%, transparent 58%),
    radial-gradient(circle, rgba(245, 200, 75, 0.22) 0 1px, transparent 1px);
  background-size: auto, 42px 42px;
  opacity: 0.74;
  animation: top-stage-sweep 4400ms ease-in-out infinite;
}

.top-gacha-showcase::after {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 8px;
  height: 1px;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(245, 200, 75, 0.54), transparent);
}

.top-gacha-showcase .gacha-machine,
.top-gacha-showcase .capsule-status {
  position: relative;
  z-index: 1;
}

.top-gacha-showcase .gacha-machine {
  justify-self: center;
  width: 132px;
  min-height: 178px;
  transform: translateY(2px);
}

.top-gacha-showcase .machine-dome {
  width: 124px;
  height: 104px;
  border-width: 6px;
  border-radius: 13px 13px 9px 9px;
}

.top-gacha-showcase .capsule-layer {
  inset: 9px 8px 8px;
}

.top-gacha-showcase .capsule-ball {
  width: calc(22px * var(--s));
  height: calc(22px * var(--s));
  border-width: 2px;
  animation: top-capsule-loop 1600ms ease-in-out infinite;
  animation-delay: calc(var(--z) * -170ms);
}

.top-gacha-showcase .machine-neck {
  width: 62px;
  height: 16px;
}

.top-gacha-showcase .machine-body {
  width: 116px;
  height: 66px;
  border-width: 4px;
  border-radius: 8px 8px 12px 12px;
}

.top-gacha-showcase .machine-window {
  left: 12px;
  top: 15px;
  width: 38px;
  height: 30px;
  border-radius: 7px;
  font-size: 14px;
}

.top-gacha-showcase .machine-handle {
  right: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  animation: top-handle-loop 2200ms cubic-bezier(0.55, 0, 0.25, 1) infinite;
}

.top-gacha-showcase .machine-handle::after {
  height: 42px;
}

.top-gacha-showcase .machine-tray {
  width: 82px;
  height: 17px;
  overflow: hidden;
}

.top-gacha-showcase .machine-tray::after {
  position: absolute;
  inset: 2px auto 2px -34px;
  width: 30px;
  content: "";
  border-radius: 999px;
  background: rgba(255, 247, 214, 0.44);
  filter: blur(5px);
  animation: top-tray-glint 2200ms ease-in-out infinite;
}

.top-gacha-showcase .capsule-status {
  display: grid;
  align-self: center;
  align-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 100px;
  padding: 12px;
  border-color: rgba(255, 247, 214, 0.26);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 247, 214, 0.14), transparent 28%),
    rgba(8, 11, 18, 0.7);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 30px rgba(0, 0, 0, 0.18);
}

.sale-status-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.sale-status-label strong {
  color: #fff7d6;
  font-size: clamp(18px, 5vw, 30px);
  line-height: 1;
  text-shadow: 0 0 18px rgba(245, 200, 75, 0.18);
}

.top-gacha-showcase .capsule-meter {
  height: 24px;
}

.top-gacha-showcase .capsule-meter span {
  min-width: 8px;
}

.poster-panel > .sale-mode-note {
  display: none;
}

.top-gacha-zone + .staff-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 4px 14px 12px;
}

.top-gacha-zone + .staff-footer .staff-login-link {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 12px;
}

@keyframes top-stage-sweep {
  0%,
  100% {
    transform: translateX(-9%) rotate(0deg);
    opacity: 0.46;
  }
  50% {
    transform: translateX(9%) rotate(3deg);
    opacity: 0.86;
  }
}

@keyframes top-capsule-loop {
  0%,
  100% {
    transform: translate(0, 0) rotate(var(--r));
  }
  36% {
    transform: translate(-3px, -5px) rotate(calc(var(--r) - 18deg));
  }
  68% {
    transform: translate(4px, 3px) rotate(calc(var(--r) + 22deg));
  }
}

@keyframes top-handle-loop {
  0%,
  42% {
    transform: rotate(0deg);
  }
  66%,
  100% {
    transform: rotate(360deg);
  }
}

@keyframes top-tray-glint {
  0%,
  42% {
    transform: translateX(0);
    opacity: 0;
  }
  62% {
    opacity: 1;
  }
  100% {
    transform: translateX(130px);
    opacity: 0;
  }
}

@media (max-width: 680px) {
  main {
    padding-inline: 14px;
  }

  .tabs {
    padding-inline: 14px;
    padding-bottom: 10px;
  }

  .top-gacha-zone {
    padding-bottom: 6px;
  }

  .top-gacha-showcase {
    grid-template-columns: 122px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .top-gacha-showcase .gacha-machine {
    width: 122px;
    min-height: 166px;
  }

  .top-gacha-showcase .machine-dome {
    width: 116px;
    height: 98px;
  }

  .top-gacha-showcase .machine-body {
    width: 108px;
    height: 62px;
  }

  .top-gacha-showcase .capsule-status {
    min-height: 94px;
    padding: 10px;
  }

  .sale-status-label strong {
    font-size: clamp(17px, 5.2vw, 24px);
  }

  .top-gacha-showcase .capsule-meter {
    height: 20px;
  }
}

@media (max-width: 380px) {
  .top-gacha-showcase {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .top-gacha-showcase .gacha-machine {
    width: 108px;
    min-height: 150px;
  }

  .top-gacha-showcase .machine-dome {
    width: 102px;
    height: 88px;
  }

  .top-gacha-showcase .capsule-ball {
    width: calc(19px * var(--s));
    height: calc(19px * var(--s));
  }

  .top-gacha-showcase .machine-neck {
    width: 54px;
    height: 14px;
  }

  .top-gacha-showcase .machine-body {
    width: 96px;
    height: 56px;
  }

  .top-gacha-showcase .machine-window {
    left: 10px;
    top: 13px;
    width: 32px;
    height: 26px;
    font-size: 12px;
  }

  .top-gacha-showcase .machine-handle {
    right: 12px;
    top: 13px;
    width: 28px;
    height: 28px;
  }
}

/* Refined gacha interaction and capsule reveal */
.spin-gacha-screen .spin-stage {
  grid-template-rows: minmax(0, 1fr) auto;
}

.spin-gacha-screen .spin-handle-target {
  cursor: grab;
  touch-action: none;
  border: 1px solid rgba(245, 200, 75, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 43%, rgba(245, 200, 75, 0.08) 44% 58%, transparent 59%),
    conic-gradient(from -40deg, rgba(245, 200, 75, 0.58), transparent 18% 100%);
  box-shadow: 0 0 0 7px rgba(245, 200, 75, 0.05);
}

.spin-gacha-screen .spin-handle-target:active {
  cursor: grabbing;
}

.spin-gacha-screen .spin-handle-target::before {
  inset: -7px;
  border: 2px dashed rgba(255, 238, 176, 0.5);
  border-radius: 50%;
  animation: refined-spin-guide 3.2s linear infinite;
}

.spin-gacha-screen.is-spinning-now .spin-handle-target::before {
  opacity: 0.2;
}

.spin-gacha-screen .spin-action-card {
  display: grid;
  justify-items: center;
  gap: 3px;
  width: min(92%, 360px);
  margin: -6px auto 10px;
  padding: 11px 16px;
  border: 1px solid rgba(245, 200, 75, 0.22);
  border-radius: 18px;
  background: rgba(11, 14, 23, 0.72);
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
  backdrop-filter: blur(10px);
}

.spin-gacha-screen .spin-action-card strong {
  color: #fff4c4;
  font-size: 15px;
}

.spin-gacha-screen .spin-action-card span {
  font-size: 12px;
}

.spin-gacha-screen.is-spin-complete .spin-action-card {
  opacity: 0;
  transform: translateY(6px);
  transition: 220ms ease;
}

.spin-gacha-screen.is-spin-complete .spin-dispense-capsule {
  animation: refined-capsule-dispense 1080ms linear both;
}

.spin-gacha-screen.is-spin-complete .spin-capsule-shadow {
  animation: refined-capsule-shadow 1080ms linear both;
}

.cinematic-scene.is-premium-reveal {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 78px minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(245, 200, 75, 0.14), transparent 30%),
    linear-gradient(180deg, #101522, #070a11);
}

.cinematic-scene.is-premium-reveal::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.05) 50%, transparent 58%);
  animation: reveal-light-sweep 2.4s ease-in-out infinite;
}

.reveal-chute {
  position: relative;
  z-index: 3;
  width: 150px;
  height: 70px;
  border: 5px solid #b98120;
  border-top: 0;
  border-radius: 0 0 30px 30px;
  background: linear-gradient(180deg, #3b2812, #15100a);
  box-shadow:
    inset 0 -10px 18px rgba(0, 0, 0, 0.5),
    0 10px 30px rgba(0, 0, 0, 0.45);
  color: rgba(255, 239, 184, 0.8);
  text-align: center;
}

.reveal-chute span {
  display: block;
  padding-top: 17px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.cinematic-scene.is-premium-reveal .cinematic-focus {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 0;
  height: 100%;
  margin: 0;
}

.reveal-platform {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 190px;
  height: 34px;
  border: 2px solid rgba(245, 200, 75, 0.32);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(245, 200, 75, 0.22), rgba(0, 0, 0, 0.54) 68%);
  filter: blur(0.2px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  animation: reveal-platform-in 520ms ease 360ms both;
}

.reveal-capsule {
  --capsule-color: #f5c84b;
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 4;
  width: 116px;
  height: 116px;
  transform: translate(-50%, -50%);
  animation: refined-capsule-arrive 720ms cubic-bezier(0.2, 0.85, 0.22, 1.12) both;
}

.reveal-capsule.is-red { --capsule-color: #e83d46; }
.reveal-capsule.is-gold { --capsule-color: #f5c84b; }
.reveal-capsule.is-teal { --capsule-color: #2ab7a9; }
.reveal-capsule.is-blue { --capsule-color: #528ddb; }
.reveal-capsule.is-pink { --capsule-color: #ff7aa9; }
.reveal-capsule.is-white { --capsule-color: #f7f1df; }

.reveal-capsule-top,
.reveal-capsule-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  border: 5px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 28% 25%, rgba(255, 255, 255, 0.8), transparent 18%),
    linear-gradient(145deg, color-mix(in srgb, var(--capsule-color) 74%, white), var(--capsule-color));
  box-shadow: inset -12px -14px 22px rgba(0, 0, 0, 0.18);
}

.reveal-capsule-top {
  top: 0;
  border-radius: 60px 60px 12px 12px;
  border-bottom-width: 2px;
  transform-origin: 50% 100%;
  animation: refined-capsule-top-open 560ms cubic-bezier(0.2, 0.9, 0.2, 1) 760ms both;
}

.reveal-capsule-bottom {
  bottom: 0;
  border-radius: 12px 12px 60px 60px;
  border-top-width: 2px;
  transform-origin: 50% 0;
  animation: refined-capsule-bottom-open 560ms cubic-bezier(0.2, 0.9, 0.2, 1) 760ms both;
}

.reveal-capsule-band {
  position: absolute;
  left: -3px;
  top: calc(50% - 7px);
  z-index: 3;
  width: calc(100% + 6px);
  height: 14px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.25);
  animation: refined-band-away 320ms ease 750ms both;
}

.reveal-capsule i {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff5c2;
  box-shadow: 0 0 18px #ffe588;
  animation: refined-spark 620ms ease 820ms both;
}

.reveal-capsule i:nth-of-type(2) { --spark-x: 58px; --spark-y: -42px; }
.reveal-capsule i:nth-of-type(3) { --spark-x: -52px; --spark-y: -48px; }

.cinematic-scene.is-premium-reveal .feature-prize {
  top: 44%;
  animation: refined-prize-reveal 560ms cubic-bezier(0.2, 0.9, 0.2, 1) 1040ms both;
}

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

@keyframes refined-capsule-dispense {
  0% {
    opacity: 0;
    filter: blur(2px);
    transform: translate(-50%, -96px) scale(0.7, 0.82) rotate(-18deg);
  }
  18% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-48%, -56px) scale(0.88, 1.04) rotate(32deg);
  }
  38% {
    transform: translate(-46%, 3px) scale(1.08, 0.9) rotate(104deg);
  }
  52% {
    transform: translate(-38%, -20px) scale(0.96, 1.04) rotate(152deg);
  }
  66% {
    transform: translate(-28%, 5px) scale(1.04, 0.94) rotate(214deg);
  }
  78% {
    transform: translate(-18%, -8px) scale(0.99, 1.01) rotate(254deg);
  }
  89% {
    transform: translate(-10%, 4px) scale(1.02, 0.97) rotate(292deg);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-6%, 3px) scale(1) rotate(306deg);
  }
}

@keyframes refined-capsule-shadow {
  0% { opacity: 0.08; transform: translateX(-50%) scale(0.35); }
  18% { opacity: 0.16; transform: translateX(-48%) scale(0.52); }
  38% { opacity: 0.55; transform: translateX(-46%) scale(1.06, 0.72); }
  52% { opacity: 0.26; transform: translateX(-38%) scale(0.62); }
  66% { opacity: 0.48; transform: translateX(-28%) scale(0.98, 0.78); }
  78% { opacity: 0.34; transform: translateX(-18%) scale(0.76); }
  89%, 100% { opacity: 0.46; transform: translateX(-6%) scale(0.92, 0.76); }
}

@keyframes refined-capsule-arrive {
  0% { opacity: 0; transform: translate(-50%, -118px) scale(0.72) rotate(-8deg); }
  58% { opacity: 1; transform: translate(-50%, -45%) scale(1) rotate(4deg); }
  78% { transform: translate(-50%, -55%) scale(1.02) rotate(-2deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
}

@keyframes refined-capsule-top-open {
  to { opacity: 0; transform: translate(-20px, -38px) rotate(-14deg) scale(0.86); }
}

@keyframes refined-capsule-bottom-open {
  to { opacity: 0; transform: translate(18px, 32px) rotate(11deg) scale(0.9); }
}

@keyframes refined-band-away {
  to { opacity: 0; transform: scaleX(1.22); }
}

@keyframes refined-spark {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--spark-x, 0px)), calc(-50% + var(--spark-y, -68px))) scale(1.4); }
}

@keyframes refined-prize-reveal {
  0% { opacity: 0; transform: translateY(18px) scale(0.88); filter: blur(3px); }
  60% { opacity: 1; transform: translateY(-8px) scale(1.04); filter: blur(0); }
  100% { opacity: 1; transform: translateY(-3px) scale(1); filter: blur(0); }
}

@keyframes reveal-platform-in {
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes reveal-light-sweep {
  0%, 100% { opacity: 0.25; transform: translateX(-35%); }
  50% { opacity: 0.8; transform: translateX(35%); }
}

@media (max-width: 680px) {
  .spin-gacha-screen .spin-action-card {
    margin-top: -3px;
  }

  .cinematic-scene.is-premium-reveal {
    grid-template-rows: 64px minmax(0, 1fr);
  }

  .reveal-chute {
    width: 132px;
    height: 58px;
  }

  .reveal-chute span {
    padding-top: 13px;
  }

  .reveal-capsule {
    width: 104px;
    height: 104px;
  }

  .cinematic-scene.is-premium-reveal .feature-prize {
    top: 46%;
  }
}

/* 2026 customer experience refresh */
:root {
  --brand-black: #0b0b0d;
  --brand-cream: #fffaf0;
  --brand-gold: #f2c35b;
  --brand-red: #d61f2c;
}

html {
  scroll-behavior: smooth;
  background: #f7f3ec;
}

body {
  background:
    linear-gradient(180deg, rgba(11, 11, 13, 0.96) 0 760px, #f7f3ec 760px);
}

.stage-video-bg {
  position: fixed;
  inset: 0 0 auto;
  z-index: -2;
  width: 100%;
  height: 760px;
  object-fit: cover;
  opacity: 0.26;
  filter: saturate(0.75) contrast(1.15);
}

body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 760px;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 25%, rgba(214, 31, 44, 0.28), transparent 28%),
    radial-gradient(circle at 30% 12%, rgba(242, 195, 91, 0.13), transparent 22%),
    linear-gradient(180deg, rgba(7, 7, 9, 0.38), #0b0b0d 92%);
}

.app-header {
  max-width: 1080px;
  padding: 24px 24px 12px;
  color: #fff;
}

.app-header h1 {
  font-size: clamp(20px, 2.5vw, 30px);
  letter-spacing: -0.03em;
}

.title-subline {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.header-price-box {
  min-width: 98px;
  padding: 9px 13px;
  border: 1px solid rgba(242, 195, 91, 0.6);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(12px);
}

.header-price-box span {
  display: block;
  color: var(--brand-gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.header-price-box strong {
  font-size: 18px;
}

.tabs {
  display: flex;
  max-width: 1080px;
  padding: 8px 24px 18px;
  gap: 6px;
  background: transparent;
}

.tab {
  min-width: 112px;
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.tab.is-active {
  border-color: #fff;
  background: #fff;
  color: var(--brand-black);
}

.top-gacha-zone {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  max-width: 1080px;
  min-height: 575px;
  margin: 0 auto;
  padding: 38px 24px 64px;
  gap: 54px;
  align-items: center;
}

.hero-intro {
  color: #fff;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--brand-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.hero-kicker span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero-intro h2 {
  margin: 0;
  font-size: clamp(42px, 5.8vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.hero-intro h2 em {
  color: var(--brand-gold);
  font-style: normal;
}

.hero-intro h2 span {
  color: #fff;
}

.hero-lead {
  max-width: 520px;
  margin: 22px 0 20px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 15px;
  line-height: 1.9;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 700;
}

.hero-points b {
  margin-right: 4px;
  color: var(--brand-gold);
  font-size: 10px;
}

.hero-start-button {
  display: flex;
  width: min(100%, 390px);
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 28px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #e02a36, #b6101b);
  color: #fff;
  box-shadow: 0 14px 36px rgba(214, 31, 44, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-start-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(214, 31, 44, 0.45);
}

.hero-start-button span {
  font-size: 19px;
  font-weight: 900;
}

.hero-start-button small {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.hero-support {
  display: flex;
  width: fit-content;
  margin: 12px 0 0;
  padding: 9px 12px;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  backdrop-filter: blur(8px);
}

.hero-support b {
  color: #fff;
}

.hero-support span::before {
  margin-right: 8px;
  color: var(--brand-gold);
  content: "●";
  font-size: 7px;
}

.password-settings-form {
  align-items: end;
}

.password-settings-action {
  display: grid;
  gap: 6px;
}

#staffPasscodeMessage {
  min-height: 18px;
  margin: 0;
}

#staffPasscodeMessage[data-status="error"] {
  color: #c9323f;
}

#staffPasscodeMessage[data-status="success"] {
  color: #16835b;
}

.top-gacha-showcase {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 26px 26px 20px;
  border: 1px solid rgba(242, 195, 91, 0.35);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 20%, rgba(242, 195, 91, 0.14), transparent 48%),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}

.machine-stage-label {
  position: absolute;
  top: 18px;
  left: 22px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-red);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.top-gacha-showcase .gacha-machine {
  transform: scale(0.94);
}

.capsule-status {
  width: 100%;
  padding-top: 12px;
}

.sale-status-label {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.sale-status-label span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
}

.sale-status-label strong {
  color: #fff;
  font-size: 13px;
}

.capsule-meter {
  overflow: hidden;
  height: 5px;
  margin-top: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.capsule-meter span {
  background: linear-gradient(90deg, var(--brand-red), var(--brand-gold));
}

main {
  max-width: 1080px;
  padding: 48px 24px 80px;
}

.hero-grid,
.content-grid {
  grid-template-columns: 1fr;
  max-width: 860px;
  margin: 0 auto;
}

.poster-panel,
.draw-panel,
.work-panel {
  border: 1px solid #e5ded2;
  border-radius: 20px;
  box-shadow: 0 16px 44px rgba(48, 35, 16, 0.08);
}

.poster-panel {
  padding: 24px;
  border: 0;
  background: #171719;
}

.poster-panel::before,
.poster-panel::after {
  display: none;
}

.sale-mode-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-color: rgba(242, 195, 91, 0.25);
  border-radius: 12px;
  background: rgba(242, 195, 91, 0.08);
}

.lineup {
  margin: 0;
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
}

.main-cta-block {
  margin-top: 18px;
}

.gacha-start-button,
.primary-button,
.secondary-button.lets-play-button {
  min-height: 62px;
  border-radius: 12px;
}

.gacha-start-button {
  background: linear-gradient(135deg, #e02a36, #b6101b);
  box-shadow: 0 12px 30px rgba(214, 31, 44, 0.28);
}

.draw-panel,
.work-panel {
  padding: clamp(20px, 4vw, 38px);
  background: #fff;
}

.draw-panel {
  border-top: 0;
}

.order-guidance {
  display: grid;
  gap: 3px;
  margin: 20px 0 24px;
  padding: 15px 17px;
  border-radius: 12px;
  background: #f7f3ec;
}

.order-guidance strong {
  font-size: 14px;
}

.order-guidance span {
  color: var(--muted);
  font-size: 11px;
}

.delivery-mode-notice {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #f7f3ec;
  color: #635c52;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
}

.delivery-mode-notice.is-online {
  background: #fff3df;
  color: #764c08;
}

[data-delivery-option][hidden] {
  display: none !important;
}

.flow-steps {
  position: relative;
  gap: 8px;
}

.flow-steps span {
  border-radius: 12px;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.form-section-title > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-black);
  color: #fff;
  font-size: 11px;
}

input,
select,
textarea {
  min-height: 50px;
  border-radius: 10px;
}

.radio-card,
.check-card,
.ticket-option {
  border-radius: 12px;
}

.checkout-row {
  position: sticky;
  bottom: 12px;
  z-index: 4;
  border-radius: 15px;
  box-shadow: 0 12px 35px rgba(11, 11, 13, 0.14);
}

.staff-footer {
  display: flex;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px 32px;
  align-items: center;
  justify-content: space-between;
  color: #847e75;
  font-size: 11px;
}

.staff-login-link {
  color: #847e75;
}

body.has-modal {
  overflow: hidden;
}

.staff-login-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(10px);
}

.staff-login-modal[hidden] {
  display: none;
}

.staff-login-card {
  position: relative;
  display: grid;
  width: min(100%, 420px);
  gap: 16px;
  padding: 30px;
  border: 1px solid rgba(242, 195, 91, 0.25);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.staff-login-card h2,
.staff-login-card p {
  margin: 0;
}

.staff-login-card > p:not(.eyebrow):not(.staff-login-error) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.staff-login-card label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
}

.staff-login-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f3efe9;
  color: #423d36;
  font-size: 22px;
}

.staff-login-error {
  min-height: 20px;
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 760px) {
  body {
    background: linear-gradient(180deg, rgba(11, 11, 13, 0.97) 0 930px, #f7f3ec 930px);
  }

  .stage-video-bg,
  body::before {
    height: 930px;
  }

  .app-header {
    padding: 18px 18px 10px;
  }

  .title-subline {
    display: none;
  }

  .tabs {
    overflow-x: auto;
    padding: 6px 18px 10px;
  }

  .tab {
    flex: 0 0 auto;
    min-width: 100px;
  }

  .top-gacha-zone {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 24px 18px 52px;
    gap: 28px;
  }

  .hero-intro {
    text-align: center;
  }

  .hero-kicker,
  .hero-points {
    justify-content: center;
  }

  .hero-intro h2 {
    font-size: clamp(36px, 11vw, 50px);
  }

  .hero-lead {
    margin: 16px auto 18px;
    font-size: 13px;
    line-height: 1.75;
  }

  .hero-start-button {
    margin: 0 auto;
  }

  .hero-support {
    width: 100%;
    justify-content: center;
    margin: 12px auto 0;
  }

  .top-gacha-showcase {
    width: min(100%, 390px);
    margin: 0 auto;
    padding: 22px 20px 17px;
  }

  .top-gacha-showcase .gacha-machine {
    min-height: 245px;
    transform: scale(0.8);
    margin-top: -20px;
    margin-bottom: -22px;
  }

  main {
    padding: 34px 14px 60px;
  }

  .poster-panel,
  .draw-panel,
  .work-panel {
    border-radius: 16px;
  }

  .poster-panel {
    padding: 15px;
  }

  .sale-mode-note {
    display: grid;
  }

  .draw-panel,
  .work-panel {
    padding: 20px 16px;
  }

  .checkout-row {
    bottom: 8px;
  }

  body.is-order-page .checkout-row {
    position: static;
  }
}

/* Direct LINE contact and always-visible capsule opening status. */
.line-contact-guide {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #bce8c9;
  border-radius: 12px;
  color: #274c35;
  background: #f1fff5;
}

.line-contact-kicker {
  color: #06a53b;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .16em;
}

.line-contact-guide h4,
.line-contact-guide p {
  margin: 0;
}

.line-contact-guide h4 {
  font-size: 16px;
}

.line-contact-deadline {
  padding: 10px 12px;
  border-radius: 8px;
  color: #a32f53;
  background: #fff0f5;
  font-size: 13px;
}

.line-contact-guide ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 12px 12px 12px 30px;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}

.line-cancel-warning {
  color: #bd294f;
  font-size: 11px;
  font-weight: 900;
}

.line-contact-guide .official-line-action {
  display: grid;
  min-height: 50px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #06c755;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}

.result-line-notice {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
  padding: 20px;
  border: 2px solid rgba(6, 199, 85, .42);
  border-radius: 16px;
  color: #27342c;
  background: linear-gradient(145deg, #f3fff7, #fff);
  box-shadow: 0 16px 36px rgba(6, 122, 53, .12);
}

.result-line-notice > span {
  color: #07863b;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .16em;
}

.result-line-notice h3,
.result-line-notice p {
  margin: 0;
}

.result-line-notice p {
  color: #526158;
  font-size: 13px;
  line-height: 1.75;
}

.result-line-notice a {
  display: flex;
  min-height: 54px;
  margin-top: 4px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: #06c755;
  font-size: 16px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(6, 199, 85, .2);
}

.reveal-live-status {
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 20;
  display: flex;
  min-width: min(88%, 360px);
  min-height: 48px;
  padding: 9px 14px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 11, 18, .86);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  transform: translateX(-50%);
}

.reveal-live-status .draw-processing-spinner {
  width: 22px;
  height: 22px;
  border-width: 3px;
}

.reveal-live-status strong {
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .line-contact-guide {
    padding: 14px;
  }

  .line-contact-guide h4 {
    font-size: 14px;
  }

  .reveal-live-status {
    top: 4px;
    min-height: 42px;
  }
}

/* Final mobile viewport alignment: purchase page and reveal screen. */
@media (max-width: 700px) {
  body.is-order-page #orderPanel {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    padding: 0 12px calc(28px + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
    scroll-behavior: auto;
  }

  body.is-order-page .order-page-top {
    top: 0;
    width: calc(100% + 24px);
    min-height: calc(74px + env(safe-area-inset-top));
    margin: 0 -12px 14px;
    padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
    box-sizing: border-box;
  }

  body.is-order-page #orderPanel input,
  body.is-order-page #orderPanel select,
  body.is-order-page #orderPanel textarea,
  body.is-order-page #nextPickupDate {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.is-order-page .address-box,
  body.is-order-page .choice-block,
  body.is-order-page .form-grid {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body.is-order-page .delivery-form .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.is-order-page .delivery-form .form-grid > label {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  body.is-order-page #nextPickupDate {
    inline-size: 100%;
    min-inline-size: 0;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 16px;
  }

  .cinematic-gacha .cinematic-shell {
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100dvh;
    max-height: 100dvh;
    padding: calc(8px + env(safe-area-inset-top)) 10px calc(6px + env(safe-area-inset-bottom));
    gap: 6px;
  }

  .cinematic-gacha .cinematic-top {
    min-height: 42px;
  }

  .cinematic-gacha .cinematic-top strong {
    font-size: 22px;
  }

  .cinematic-gacha .cinematic-scene.is-premium-reveal {
    grid-template-rows: 54px minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
  }

  .cinematic-gacha .reveal-chute {
    width: 112px;
    height: 48px;
  }

  .cinematic-gacha .cinematic-scene.is-premium-reveal .feature-prize {
    top: 38%;
    width: min(72vw, 238px);
    max-height: calc(100% - 58px);
    padding: 8px 9px 9px;
    gap: 4px;
  }

  .cinematic-gacha .cinematic-scene .feature-prize .ticket-visual.has-image {
    width: min(32vw, 126px);
    height: min(32vw, 126px);
  }

  .cinematic-gacha .feature-prize span {
    font-size: 10px;
  }

  .cinematic-gacha .feature-prize strong {
    font-size: 13px;
    line-height: 1.2;
  }

  .cinematic-gacha .reveal-live-status {
    top: 2px;
    min-width: min(82%, 300px);
    min-height: 36px;
    padding: 6px 10px;
  }

  .cinematic-gacha .cinematic-bottom {
    max-height: 34dvh;
    gap: 6px;
    overflow: hidden;
  }

  .cinematic-gacha .sequence-queue {
    min-height: 0;
  }

  .cinematic-gacha .sequence-result-item {
    flex-basis: 94px;
    min-height: 96px;
    padding: 7px 6px;
  }

  .cinematic-gacha .sequence-result-item .ticket-visual,
  .cinematic-gacha .sequence-result-item .closed-capsule {
    width: 42px;
    height: 42px;
  }

  .cinematic-gacha .sequence-result-item strong {
    font-size: 10px;
    line-height: 1.25;
  }
}

/* Sale period and digital-prize notices. */
.digital-prize-notice {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid #f1c9da;
  border-left: 5px solid #e84e91;
  border-radius: 10px;
  color: #5d4350;
  background: #fff5f9;
}

.digital-prize-notice strong {
  display: block;
  margin-bottom: 8px;
  color: #9e2f60;
  font-size: 13px;
}

.digital-prize-notice ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 20px;
  font-size: 12px;
  line-height: 1.65;
}

.digital-prize-notice.is-result-notice {
  display: block;
  margin: 0 0 18px;
  padding: 16px 18px;
  border-color: rgba(255, 130, 177, .38);
  color: #f3dce5;
  background: #35232d;
  box-shadow: 0 12px 30px rgba(66, 27, 47, .14);
}

.digital-prize-notice.is-result-notice strong {
  color: #ff8db8;
}

body.is-sale-period-closed .sale-mode-note {
  border-color: #d8d3d6;
  background: #f2eff1;
}

body.is-sale-period-closed .sale-mode-note strong {
  color: #786d73;
}

body.is-sale-period-closed .hero-start-button,
body.is-sale-period-closed .gacha-start-button {
  cursor: not-allowed;
  filter: grayscale(.75);
  opacity: .55;
}

.top-sale-period-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 15px 24px;
  border-top: 1px solid rgba(232, 78, 145, .22);
  border-bottom: 1px solid rgba(232, 78, 145, .22);
  color: #49333f;
  background: linear-gradient(90deg, #fff7fb, #ffeaf3 50%, #fff7fb);
}

.top-sale-period-banner[hidden] {
  display: none !important;
}

.top-sale-period-banner > span {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: #e84e91;
  font-size: 12px;
  font-weight: 900;
}

.top-sale-period-banner > .top-sale-period-content {
  display: grid;
  gap: 4px;
}

.top-sale-event-title,
.top-sale-period-content h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 950;
  line-height: 1.3;
}

.top-sale-period-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.top-sale-period-banner small {
  color: #9e2f60;
  font-size: 12px;
  font-weight: 900;
}

.top-sale-period-banner strong {
  font-size: 15px;
  line-height: 1.5;
}

body.is-sale-period-closed .top-sale-period-banner > span {
  background: #73656c;
}

@media (max-width: 760px) {
  .top-sale-period-banner {
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
  }

  .top-sale-period-banner > span {
    padding: 6px 9px;
    font-size: 10px;
  }

  .top-sale-period-banner > .top-sale-period-content {
    display: grid;
    gap: 2px;
  }

  .top-sale-event-title,
  .top-sale-period-content h2 {
    font-size: 17px;
  }

  .top-sale-period-row {
    display: grid;
    gap: 2px;
  }

  .top-sale-period-banner strong {
    font-size: 13px;
  }

  .digital-prize-notice {
    padding: 14px;
  }

  .digital-prize-notice ul {
    font-size: 11px;
  }
}

/* High-contrast sale period and secure checkout cue. */
.top-sale-period-banner {
  border-color: #17141d;
  color: #fff;
  background:
    radial-gradient(circle at 80% 0, rgba(232, 78, 145, .28), transparent 34%),
    linear-gradient(105deg, #17141d, #30212b);
  box-shadow: 0 8px 24px rgba(23, 20, 29, .14);
}

.top-sale-period-banner > span {
  border: 1px solid #ffbdd7;
  color: #54152f;
  background: #ffbdd7;
}

.top-sale-period-banner small {
  color: #ff9fc4;
}

.top-sale-period-banner strong {
  color: #fff;
}

body.is-sale-period-closed .top-sale-period-banner {
  background: #373238;
}

body.is-sale-period-closed .top-sale-period-banner > span {
  border-color: #d9d3d6;
  color: #373238;
  background: #d9d3d6;
}

.secure-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: inherit;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(64, 27, 47, .94), rgba(224, 55, 126, .94));
  font-size: clamp(17px, 3vw, 23px);
  font-weight: 1000;
  letter-spacing: .13em;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .65),
    0 12px 30px rgba(121, 32, 75, .24);
}

.secure-lock-overlay i {
  font-size: 1.15em;
  font-style: normal;
  letter-spacing: 0;
}

#view-main .gacha-start-button {
  position: relative;
  overflow: hidden;
}

/* Compact prize inventory list with expandable editing. */
.inventory-list-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 6px 0 14px;
  padding: 16px;
  border-radius: 12px;
  background: #f7f7f9;
}

.inventory-list-toolbar label {
  display: grid;
  width: min(100%, 520px);
  gap: 6px;
  color: #5c555b;
  font-size: 11px;
  font-weight: 900;
}

.inventory-list-toolbar input {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid #cfc8ce;
  border-radius: 999px;
  background: #fff;
}

.inventory-list-toolbar > strong {
  padding-bottom: 12px;
  color: #756b72;
  font-size: 12px;
}

.inventory-column-head {
  display: grid;
  grid-template-columns: 64px minmax(260px, 1fr) 110px 110px 90px 30px;
  gap: 12px;
  align-items: center;
  padding: 0 15px 9px;
  color: #857b82;
  font-size: 10px;
  font-weight: 850;
}

details.prize-editor-row {
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-top: 1px solid #e4dfe2;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

details.prize-editor-row:last-of-type {
  border-bottom: 1px solid #e4dfe2;
}

.prize-list-summary {
  display: grid;
  grid-template-columns: 64px minmax(260px, 1fr) 110px 110px 90px 30px;
  gap: 12px;
  align-items: center;
  min-height: 84px;
  padding: 10px 15px;
  cursor: pointer;
  list-style: none;
}

.prize-list-summary::-webkit-details-marker {
  display: none;
}

.prize-list-summary:hover {
  background: #fff9fc;
}

.prize-list-order,
.prize-list-identity,
.prize-list-name,
.prize-list-stock {
  min-width: 0;
}

.prize-list-order {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prize-list-order b {
  color: #6f656b;
  font-size: 13px;
}

.prize-list-summary .prize-drag-handle {
  width: 28px;
  min-height: 34px;
  padding: 0;
  border: 0;
  color: #81747c;
  background: transparent;
  font-size: 16px;
}

.prize-list-identity {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.prize-list-thumb {
  display: grid;
  width: 58px;
  height: 58px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #e1dce0;
  border-radius: 7px;
  color: #9b9197;
  background: #f4f2f3;
  font-size: 9px;
  font-weight: 850;
}

.prize-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prize-list-name {
  display: grid;
  gap: 5px;
}

.prize-list-name strong {
  overflow: hidden;
  color: #302b2e;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prize-list-name small {
  color: #8a7e85;
  font-size: 9px;
}

.prize-list-stock {
  display: grid;
  gap: 3px;
}

.prize-list-stock small {
  color: #857980;
  font-size: 9px;
  font-weight: 850;
}

.prize-list-stock strong {
  color: #5c5358;
  font-size: 22px;
  line-height: 1;
}

.prize-list-stock.is-current strong {
  color: #d83e83;
}

.prize-list-rarity {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  color: #3b7467;
  background: #e4f4f0;
  font-size: 10px;
  font-weight: 900;
}

.prize-list-rarity.is-hit {
  color: #9a416b;
  background: #ffe8f2;
}

.prize-list-open::before {
  content: "＋";
  color: #8b7c84;
  font-size: 18px;
}

.prize-editor-row[open] .prize-list-open::before {
  content: "−";
  color: #d83e83;
}

.prize-editor-row[open] .prize-list-summary {
  background: #fff5fa;
}

.prize-editor-detail {
  display: grid;
  gap: 14px;
  padding: 18px 22px 22px 91px;
  border-top: 1px solid #f0e8ec;
  background: #fffafb;
}

@media (max-width: 760px) {
  .inventory-list-toolbar {
    display: grid;
    gap: 5px;
    padding: 12px;
  }

  .inventory-list-toolbar > strong {
    padding: 0 4px;
    font-size: 10px;
  }

  .inventory-column-head {
    display: none;
  }

  .prize-list-summary {
    grid-template-columns: 32px 1fr 28px;
    gap: 8px;
    min-height: 136px;
    padding: 12px 8px;
  }

  .prize-list-order {
    align-self: start;
    display: grid;
    justify-items: center;
    gap: 1px;
  }

  .prize-list-summary .prize-drag-handle {
    width: 26px;
  }

  .prize-list-identity {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .prize-list-thumb {
    width: 64px;
    height: 64px;
  }

  .prize-list-name strong {
    font-size: 13px;
    white-space: normal;
  }

  .prize-list-stock {
    grid-row: 2;
    min-height: 48px;
    padding: 8px 11px;
    border-radius: 8px;
    background: #f4f1f3;
  }

  .prize-list-stock:nth-of-type(3) {
    grid-column: 1 / 3;
    margin-right: calc(50% - 14px);
  }

  .prize-list-stock:nth-of-type(4) {
    grid-column: 2 / 4;
    margin-left: calc(50% + 5px);
  }

  .prize-list-stock strong {
    font-size: 20px;
  }

  .prize-list-rarity {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0 0 0 76px;
    transform: translateY(8px);
  }

  .prize-list-open {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }

  .prize-editor-detail {
    padding: 15px 12px 18px;
  }
}

/* Mobile cleanup, deliberate reorder mode, switches and clearer draw states. */
.inventory-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inventory-toolbar-actions > strong {
  color: #756b72;
  font-size: 12px;
  white-space: nowrap;
}

#togglePrizeReorder {
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid #81738c;
  border-radius: 8px;
  color: #61526e;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

#togglePrizeReorder.is-active {
  border-color: #d44181;
  color: #fff;
  background: #d44181;
}

#mainInventory:not(.is-reorder-mode) .prize-drag-handle {
  visibility: hidden;
  pointer-events: none;
}

#mainInventory.is-reorder-mode .prize-editor-row {
  border: 1px dashed #c788a7;
  border-radius: 9px;
  margin-bottom: 7px;
  cursor: grab;
}

#mainInventory.is-reorder-mode .prize-drag-handle {
  visibility: visible;
  touch-action: none;
}

#mainInventory.is-reorder-mode .prize-list-summary {
  background: #fff8fc;
}

#mainInventory.is-reorder-mode .prize-list-open {
  visibility: hidden;
}

.prize-editor-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.header-publish-toggle {
  position: relative;
  min-width: 112px;
  justify-content: flex-end;
  padding-left: 50px;
  border: 0;
  background: #eef0f3;
}

.header-publish-toggle::before {
  position: absolute;
  left: 9px;
  width: 34px;
  height: 20px;
  content: "";
  border-radius: 999px;
  background: #b7bdc7;
  transition: background 180ms ease;
}

.header-publish-toggle::after {
  position: absolute;
  left: 12px;
  width: 14px;
  height: 14px;
  content: "";
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
  transition: transform 180ms ease;
}

.header-publish-toggle:has(input:checked)::before {
  background: #168b87;
}

.header-publish-toggle:has(input:checked)::after {
  transform: translateX(14px);
}

.header-publish-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.prize-followup-options label,
.official-line-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.prize-followup-options input[type="checkbox"],
.official-line-confirm input[type="checkbox"],
body.is-admin-view input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px !important;
  height: 18px !important;
  margin: 0;
  accent-color: #d44181;
}

.prize-gallery-card.is-hit::after {
  right: 7px;
  top: 7px;
  width: auto;
  height: auto;
  padding: 4px 8px;
  content: "★ 当たり";
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #d61f2c, #ed4f84);
  box-shadow: 0 4px 12px rgba(214, 31, 44, .28);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .04em;
}

.spin-gacha-screen.is-draw-processing .spin-stage {
  display: grid;
  place-items: center;
}

.spin-gacha-screen.is-draw-processing .spin-machine {
  display: none;
}

.spin-gacha-screen.is-draw-processing .spin-action-card {
  grid-template-columns: 1fr;
  width: min(92vw, 560px);
  min-height: 420px;
  padding: 34px 24px;
  place-items: center;
  align-content: center;
  gap: 24px;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 12%, rgba(232,78,145,.2), transparent 36%),
    rgba(20, 18, 28, .96);
}

.spin-gacha-screen.is-draw-processing .spin-action-card > div {
  justify-items: center;
  gap: 10px;
}

.spin-gacha-screen.is-draw-processing .spin-action-card > div > span {
  color: #ddd3da;
  font-size: 15px;
}

.spin-gacha-screen.is-draw-processing .spin-action-card small {
  color: #a99da5;
  font-size: 11px;
}

.draw-processing-ring {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#ff5599 var(--draw-progress), rgba(255,255,255,.12) 0);
  box-shadow: 0 0 30px rgba(255,85,153,.2);
}

.draw-processing-ring::before {
  position: absolute;
  inset: 9px;
  content: "";
  border-radius: inherit;
  background: #191721;
}

.draw-processing-ring i {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 20px;
  font-style: normal;
  font-weight: 950;
}

.draw-wait-overlay {
  position: fixed;
  z-index: 12;
  inset: 0;
  display: grid;
  padding: calc(76px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
  place-items: center;
  background: rgba(8, 9, 17, .58);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.draw-wait-card {
  display: grid;
  width: min(100%, 520px);
  min-height: 320px;
  padding: 32px 24px;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 24px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(232, 78, 145, .22), transparent 38%),
    rgba(20, 18, 28, .96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .38);
}

.draw-wait-card > strong {
  font-size: clamp(24px, 7vw, 36px);
}

.draw-wait-card > span:not(.draw-processing-ring) {
  color: #ddd3da;
  font-size: 15px;
}

.draw-wait-card > small {
  color: #a99da5;
  font-size: 11px;
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body.is-admin-view .admin-shell,
  body.is-admin-view .admin-content,
  body.is-admin-view .work-panel,
  body.is-admin-view .content-grid {
    min-width: 0;
    max-width: 100%;
  }

  body.is-admin-view input,
  body.is-admin-view select,
  body.is-admin-view textarea,
  body.is-admin-view button {
    max-width: 100%;
  }

  .event-save-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .event-save-actions .save-status {
    order: 4;
    width: 100%;
    text-align: left;
  }

  .header-publish-toggle {
    min-width: 104px;
  }

  .inventory-toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  #togglePrizeReorder {
    min-width: 132px;
  }

  .prize-followup-options {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .prize-followup-options label {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
    writing-mode: horizontal-tb;
  }

  .prize-editor-actions {
    grid-template-columns: 1fr;
  }

  .prize-editor-actions button {
    min-height: 44px;
    font-size: 13px;
  }

  .cinematic-gacha .cinematic-shell {
    overflow: hidden;
  }

  .cinematic-gacha .cinematic-scene.is-premium-reveal {
    min-height: 0;
  }

  .cinematic-scene.is-premium-reveal .feature-prize {
    top: 50%;
    width: min(76vw, 260px);
    max-height: calc(100% - 34px);
    padding: 10px;
  }

  .cinematic-scene .feature-prize .ticket-visual.has-image {
    width: min(38vw, 148px);
    height: min(38vw, 148px);
  }

  .cinematic-gacha .feature-prize strong {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.25;
  }

  .cinematic-gacha .cinematic-bottom {
    position: relative;
    z-index: 10;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    background: rgba(8, 11, 18, .97);
  }

  .spin-gacha-screen.is-draw-processing .spin-shell {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .spin-gacha-screen.is-draw-processing .spin-top > div {
    display: none;
  }

  .spin-gacha-screen.is-draw-processing .spin-action-card {
    min-height: min(62dvh, 520px);
  }
}

/* Event-first order management with fulfillment status. */
.server-order-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(150px, .7fr) minmax(190px, .8fr);
  gap: 12px;
  margin: 16px 0 18px;
  padding: 14px;
  border: 1px solid #e5e0e8;
  border-radius: 12px;
  background: #faf8fb;
}

.server-order-toolbar label {
  display: grid;
  gap: 6px;
}

.server-order-toolbar label > span {
  color: #645b63;
  font-size: 10px;
  font-weight: 900;
}

.server-order-bulk-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -6px 0 18px;
  padding: 11px 14px;
  border: 1px solid #eadde3;
  border-radius: 10px;
  background: #fff8fa;
}

.server-order-bulk-bar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}

.server-order-bulk-bar input,
.server-order-select {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  accent-color: #d93668;
}

.server-order-bulk-bar strong {
  color: #71666d;
  font-size: 12px;
}

.server-order-bulk-bar button {
  margin-left: auto;
}

.server-order-group {
  overflow: hidden;
  border-radius: 12px;
}

.server-order-group > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 17px 19px;
  color: #fff;
  background: #242126;
  cursor: pointer;
  list-style: none;
}

.server-order-group > summary::-webkit-details-marker {
  display: none;
}

.server-order-group > summary::after {
  content: "＋";
  font-size: 22px;
}

.server-order-group[open] > summary::after {
  content: "−";
}

.server-order-group > summary div {
  display: grid;
  gap: 3px;
}

.server-order-group > summary span,
.server-order-group > summary small {
  color: #bbb4be;
  font-size: 10px;
}

.server-order-group > summary strong {
  font-size: 16px;
}

.server-order-group > summary b {
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid #615965;
  color: #8af0b1;
  font-size: 11px;
}

.server-order-card {
  border-left-width: 5px;
  border-radius: 9px;
}

.server-order-card.is-pending {
  border-left-color: #e04c69;
  background: #fff9fa;
}

.server-order-card.is-fulfilled {
  border-left-color: #25a56d;
  background: #f7fcf9;
}

.fulfillment-status {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.fulfillment-status.is-pending {
  color: #b42243;
  background: #ffe5eb;
}

.fulfillment-status.is-completed {
  color: #087443;
  background: #dff7e9;
}

.server-order-compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin: 12px 0 8px;
  color: #777078;
  font-size: 10px;
}

.server-order-compact-meta b {
  margin-left: 4px;
  color: #373137;
}

.server-order-pickup {
  margin: 0 0 12px;
  padding: 9px 11px;
  border-radius: 7px;
  color: #544b52;
  background: #f1edf1;
  font-size: 11px;
  font-weight: 750;
}

.fulfillment-toggle {
  border-color: #12845a;
  color: #fff;
  background: #12845a;
}

.fulfillment-toggle.is-reopen {
  border-color: #c9c1ca;
  color: #645b63;
  background: #fff;
}

@media (max-width: 760px) {
  .server-order-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .server-order-toolbar .server-order-search {
    grid-column: 1 / -1;
  }

  .server-order-group > summary {
    align-items: flex-start;
    padding: 15px;
  }

  .server-order-group > summary b {
    max-width: 90px;
    text-align: center;
  }

  .server-order-card {
    padding: 13px;
  }

  .server-order-card-head {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .stage-video-bg {
    display: none;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Final navigation and CTA color tuning */
body:not(.is-staff-unlocked) .tabs {
  justify-content: center;
}

body:not(.is-staff-unlocked) .tabs .tab {
  flex: 0 1 min(42vw, 170px);
}

.gacha-start-button {
  border-color: rgba(255, 247, 214, 0.72);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(180deg, #ffe886 0%, #f6bd2f 45%, #d27a12 100%);
  color: #351800;
  box-shadow:
    0 18px 44px rgba(245, 200, 75, 0.3),
    0 0 0 1px rgba(82, 36, 0, 0.16),
    inset 0 2px 0 rgba(255, 255, 255, 0.48),
    inset 0 -5px 0 rgba(105, 46, 0, 0.18);
}

.gacha-start-button::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.45) 45%, transparent 56%),
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.5), transparent 18%);
  opacity: 0.62;
}

.gacha-start-button span {
  color: #351800;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.36);
}

.gacha-start-button small {
  color: rgba(53, 24, 0, 0.78);
}

@media (max-width: 680px) {
  body:not(.is-staff-unlocked) .tabs {
    justify-content: center;
  }

  body:not(.is-staff-unlocked) .tabs .tab {
    flex: 0 1 calc((100vw - 58px) / 2);
    max-width: 172px;
  }
}

/* Spin screen close-up framing */
.spin-gacha-screen .spin-stage {
  overflow: hidden;
  padding: 10px;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 247, 214, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.1));
}

.spin-gacha-screen .spin-machine {
  width: min(108vw, 430px);
  min-height: 500px;
  align-self: center;
  justify-self: center;
  transform: translate(-8px, -10px);
}

.spin-gacha-screen .spin-machine .machine-dome {
  width: min(104vw, 410px);
  height: 268px;
  border-width: 12px;
  border-radius: 18px 18px 12px 12px;
}

.spin-gacha-screen .spin-machine .capsule-layer {
  inset: 10px 8px 8px;
}

.spin-gacha-screen .spin-machine .capsule-ball {
  width: calc(58px * var(--s));
  height: calc(58px * var(--s));
  border-width: 4px;
  box-shadow:
    inset -8px -10px 16px rgba(0, 0, 0, 0.16),
    inset 8px 8px 14px rgba(255, 255, 255, 0.28),
    0 8px 18px rgba(0, 0, 0, 0.26);
}

.spin-gacha-screen .spin-machine .machine-neck {
  width: min(62vw, 250px);
  height: 34px;
  margin-top: -1px;
  border-radius: 0 0 14px 14px;
}

.spin-gacha-screen .spin-machine .machine-body {
  width: min(104vw, 410px);
  height: 178px;
  margin-top: -2px;
  border-width: 7px;
  border-radius: 18px 18px 24px 24px;
}

.spin-gacha-screen .spin-machine .machine-body::before {
  left: 50%;
  top: 34px;
  width: 34px;
  height: 82px;
  transform: translateX(-50%);
}

.spin-gacha-screen .spin-machine .machine-body::after {
  inset: 14px;
  border-radius: 14px 14px 20px 20px;
  background:
    radial-gradient(circle at 14px 14px, rgba(255, 247, 214, 0.9) 0 5px, transparent 5px),
    radial-gradient(circle at calc(100% - 14px) 14px, rgba(255, 247, 214, 0.9) 0 5px, transparent 5px),
    radial-gradient(circle at 14px calc(100% - 14px), rgba(255, 247, 214, 0.9) 0 5px, transparent 5px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), rgba(255, 247, 214, 0.9) 0 5px, transparent 5px);
}

.spin-gacha-screen .spin-machine .machine-window {
  left: 28px;
  top: 38px;
  width: 140px;
  height: 88px;
  border-width: 4px;
  border-radius: 18px;
  font-size: 16px;
}

.spin-gacha-screen .spin-lcd {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 10px;
  overflow: hidden;
  border-color: rgba(216, 245, 255, 0.86);
  background:
    linear-gradient(180deg, rgba(155, 213, 226, 0.12), rgba(14, 22, 34, 0.92)),
    #101923;
  box-shadow:
    inset 0 0 18px rgba(129, 216, 255, 0.12),
    0 0 18px rgba(255, 255, 255, 0.08);
  color: #d9fff6;
  text-align: left;
}

.spin-gacha-screen .spin-lcd::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.22) 46%, transparent 58%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px);
  opacity: 0.58;
}

.spin-gacha-screen .spin-lcd span,
.spin-gacha-screen .spin-lcd strong,
.spin-gacha-screen .spin-lcd .spin-progress {
  position: relative;
  z-index: 1;
}

.spin-gacha-screen .spin-lcd span {
  color: #69ffd8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.spin-gacha-screen .spin-lcd strong {
  color: #fff7d6;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 0 10px rgba(105, 255, 216, 0.22);
}

.spin-gacha-screen .spin-lcd .spin-progress {
  height: 8px;
  border-color: rgba(105, 255, 216, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.spin-gacha-screen .spin-handle-target {
  right: 22px;
  top: 24px;
  width: 140px;
  height: 140px;
}

.spin-gacha-screen .spin-handle-target .spin-handle {
  width: 96px;
  height: 96px;
  border-width: 13px;
}

.spin-gacha-screen .spin-handle-target .spin-handle::after {
  top: -28px;
  width: 14px;
  height: 152px;
  box-shadow:
    0 0 0 5px rgba(166, 108, 23, 0.24),
    0 6px 16px rgba(0, 0, 0, 0.2);
}

.spin-gacha-screen .spin-machine .machine-tray {
  width: min(58vw, 230px);
  height: 44px;
  margin-top: 14px;
}

.spin-gacha-screen .spin-dispense-capsule {
  bottom: 18px;
  width: 68px;
  height: 68px;
}

.spin-gacha-screen .spin-action-card {
  display: none;
}

@media (max-width: 680px) {
  .spin-gacha-screen .spin-stage {
    padding: 8px;
  }

  .spin-gacha-screen .spin-machine {
    width: 354px;
    min-height: 404px;
    transform: translate(-4px, -6px);
  }

  .spin-gacha-screen .spin-machine .machine-dome {
    width: 342px;
    height: 216px;
  }

  .spin-gacha-screen .spin-machine .capsule-ball {
    width: calc(47px * var(--s));
    height: calc(47px * var(--s));
  }

  .spin-gacha-screen .spin-machine .machine-neck {
    width: 210px;
    height: 30px;
  }

  .spin-gacha-screen .spin-machine .machine-body {
    width: 342px;
    height: 152px;
  }

  .spin-gacha-screen .spin-machine .machine-window {
    left: 24px;
    top: 32px;
    width: 118px;
    height: 74px;
  }

  .spin-gacha-screen .spin-lcd {
    padding: 8px;
  }

  .spin-gacha-screen .spin-lcd strong {
    font-size: 17px;
  }

  .spin-gacha-screen .spin-handle-target {
    right: 14px;
    top: 15px;
    width: 126px;
    height: 126px;
  }

  .spin-gacha-screen .spin-handle-target .spin-handle {
    width: 86px;
    height: 86px;
  }

  .spin-gacha-screen .spin-dispense-capsule {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 380px) {
  .spin-gacha-screen .spin-machine {
    width: 330px;
    min-height: 388px;
  }

  .spin-gacha-screen .spin-machine .machine-dome {
    width: 318px;
    height: 202px;
  }

  .spin-gacha-screen .spin-machine .capsule-ball {
    width: calc(43px * var(--s));
    height: calc(43px * var(--s));
  }

  .spin-gacha-screen .spin-machine .machine-body {
    width: 318px;
    height: 144px;
  }

  .spin-gacha-screen .spin-machine .machine-window {
    left: 20px;
    width: 108px;
    height: 70px;
  }

  .spin-gacha-screen .spin-handle-target {
    right: 10px;
    width: 118px;
    height: 118px;
  }
}

/* Result animation outlet-focused framing */
.cinematic-gacha .cinematic-scene {
  overflow: hidden;
}

.cinematic-gacha .cinematic-machine {
  overflow: hidden;
}

.cinematic-gacha .gacha-machine.is-cinematic {
  transform: translateY(-10px) scale(1.08);
  transform-origin: 50% 82%;
}

.cinematic-gacha .gacha-machine.is-cinematic .machine-neck {
  margin-top: -2px;
}

.cinematic-gacha .gacha-machine.is-cinematic .machine-body {
  margin-top: -2px;
}

.cinematic-gacha .gacha-machine.is-cinematic .machine-tray {
  margin-top: 8px;
}

.cinematic-gacha .sequence-final {
  max-width: min(94%, 320px);
  margin: 0 auto;
  backdrop-filter: blur(6px);
}

@media (max-width: 680px) {
  .cinematic-gacha .cinematic-scene {
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: stretch;
  }

  .cinematic-gacha .cinematic-machine {
    min-height: 292px;
    padding: 0;
    place-items: start center;
  }

  .cinematic-gacha .gacha-machine.is-cinematic {
    width: 294px;
    min-height: 360px;
    transform: translateY(-58px) scale(1.18);
    transform-origin: 50% 84%;
  }

  .cinematic-gacha .gacha-machine.is-cinematic .machine-dome {
    width: 258px;
    height: 212px;
    border-width: 10px;
  }

  .cinematic-gacha .gacha-machine.is-cinematic .capsule-ball {
    width: calc(42px * var(--s));
    height: calc(42px * var(--s));
  }

  .cinematic-gacha .gacha-machine.is-cinematic .machine-neck {
    width: 154px;
    height: 34px;
    margin-top: -2px;
  }

  .cinematic-gacha .gacha-machine.is-cinematic .machine-body {
    width: 258px;
    height: 120px;
    margin-top: -2px;
  }

  .cinematic-gacha .gacha-machine.is-cinematic .machine-window {
    left: 20px;
    top: 23px;
    width: 82px;
    height: 56px;
    font-size: 23px;
  }

  .cinematic-gacha .gacha-machine.is-cinematic .machine-handle {
    right: 30px;
    top: 25px;
    width: 58px;
    height: 58px;
  }

  .cinematic-gacha .gacha-machine.is-cinematic .machine-tray {
    width: 168px;
    height: 30px;
    margin-top: 10px;
  }

  .cinematic-gacha .cinematic-focus {
    min-height: 98px;
    margin-top: -84px;
    pointer-events: none;
  }

  .cinematic-gacha .sequence-final {
    position: relative;
    z-index: 5;
    padding: 14px 16px;
    background:
      radial-gradient(circle at 50% 45%, rgba(245, 200, 75, 0.22), transparent 42%),
      rgba(21, 25, 35, 0.8);
  }
}

@media (max-width: 380px) {
  .cinematic-gacha .gacha-machine.is-cinematic {
    width: 274px;
    transform: translateY(-56px) scale(1.14);
  }

  .cinematic-gacha .gacha-machine.is-cinematic .machine-dome {
    width: 240px;
    height: 200px;
  }

  .cinematic-gacha .gacha-machine.is-cinematic .machine-body {
    width: 240px;
    height: 114px;
  }

  .cinematic-gacha .gacha-machine.is-cinematic .machine-handle {
    right: 26px;
  }
}

/* Final cascade for the refined mobile draw experience */
.spin-gacha-screen .spin-stage {
  grid-template-rows: minmax(0, 1fr) auto;
}

.spin-gacha-screen .spin-action-card {
  display: grid;
}

.cinematic-gacha .cinematic-scene.is-premium-reveal {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 78px minmax(0, 1fr);
  align-items: center;
}

.cinematic-gacha .cinematic-scene.is-premium-reveal .cinematic-focus {
  min-height: 0;
  height: 100%;
  margin: 0;
}

@media (max-width: 680px) {
  .cinematic-gacha .cinematic-scene.is-premium-reveal {
    grid-template-rows: 64px minmax(0, 1fr);
    align-items: center;
  }

.cinematic-gacha .cinematic-scene.is-premium-reveal .cinematic-focus {
    min-height: 0;
    margin: 0;
  }
}

/* Management starts at the dashboard — never show the customer sales hero here. */
.is-hidden-in-admin,
body.is-admin-view .app-header,
body.is-admin-view .tabs,
body.is-admin-view .top-gacha-zone,
body.is-admin-view .staff-footer,
body:has(#view-admin.is-active) .app-header,
body:has(#view-admin.is-active) .tabs,
body:has(#view-admin.is-active) .top-gacha-zone,
body:has(#view-admin.is-active) .staff-footer {
  display: none !important;
}

/* Pink ONLINE GACHA campaign hero supplied for the customer TOP page. */
body:not(.is-staff-unlocked):not(.is-admin-view) > .app-header {
  display: none;
}

/* The customer page uses the visual navigation above; the app tab bar is staff-only. */
body:not(.is-staff-unlocked):not(.is-admin-view) > .tabs {
  display: none !important;
}

body:not(.is-admin-view) .top-gacha-zone {
  position: relative;
  display: block;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #8f2359;
}

.online-gacha-reference-frame {
  width: 100%;
  aspect-ratio: 1536 / 905;
  overflow: hidden;
  background: #8f2359;
}

.online-gacha-reference-image {
  display: block;
  width: 100%;
  height: auto;
}

.mobile-online-copy {
  display: none;
}

body:not(.is-admin-view) .top-gacha-zone .top-gacha-showcase {
  display: none;
}

.public-stock-strip {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 14px 20px;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 17px max(28px, calc((100vw - 1320px) / 2 + 28px));
  color: #5f3950;
  background: #fff7fb;
}

.public-stock-copy {
  display: flex;
  gap: 12px;
  align-items: baseline;
  white-space: nowrap;
}

.public-stock-copy span {
  font-size: 12px;
  font-weight: 800;
}

.public-stock-copy strong {
  color: #e54789;
  font-size: 24px;
  font-weight: 950;
}

.public-stock-strip .capsule-meter {
  height: 13px;
  padding: 2px;
  border: 1px solid #f1b9d1;
  border-radius: 999px;
  background: #fff;
}

.public-stock-strip .capsule-meter span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff4e96, #ff91bd);
  transition: width 280ms ease;
}

.public-stock-strip small {
  color: #8d7582;
  font-size: 10px;
  white-space: nowrap;
}

body.is-admin-view .public-stock-strip {
  display: none;
}

@media (max-width: 700px) {
  .public-stock-strip {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 18px 16px;
  }

  .public-stock-copy {
    justify-content: space-between;
  }

  .public-stock-copy strong {
    font-size: 23px;
  }

  .public-stock-strip small {
    white-space: normal;
  }
}

/* Compact customer-first rows in each event. */
details.server-order-card {
  padding: 0;
  overflow: hidden;
}

.server-order-row {
  display: grid;
  grid-template-columns: 20px auto 54px minmax(180px, 1fr) minmax(120px, .55fr) minmax(140px, .7fr) 22px;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 12px 15px;
  cursor: pointer;
  list-style: none;
}

.server-order-row::-webkit-details-marker {
  display: none;
}

.server-order-thumb {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e0d9df;
  border-radius: 6px;
  color: #fff;
  background: #2b272b;
}

.server-order-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-order-thumb b {
  font-size: 12px;
  letter-spacing: .08em;
}

.server-order-person,
.server-order-row-pickup {
  display: grid;
  gap: 4px;
}

.server-order-person strong {
  color: #302b30;
  font-size: 14px;
}

.server-order-person small,
.server-order-row-pickup small,
.server-order-row time {
  color: #817981;
  font-size: 10px;
}

.server-order-row-pickup b {
  color: #494149;
  font-size: 11px;
}

.server-order-row time {
  justify-self: end;
}

.server-order-row > i {
  color: #807780;
  font-size: 18px;
  font-style: normal;
  text-align: center;
}

details.server-order-card[open] .server-order-row > i {
  transform: rotate(45deg);
}

.server-order-detail {
  padding: 2px 15px 15px 83px;
  border-top: 1px solid #ece7eb;
}

@media (max-width: 760px) {
  .server-order-bulk-bar {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .server-order-bulk-bar button {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
  }

  .server-order-row {
    grid-template-columns: 20px auto 46px minmax(0, 1fr) 18px;
    gap: 9px;
    padding: 11px;
  }

  .server-order-thumb {
    width: 46px;
    height: 46px;
  }

  .server-order-row-pickup {
    grid-column: 4;
  }

  .server-order-row time {
    grid-column: 4;
    justify-self: start;
  }

  .server-order-row > i {
    grid-column: 5;
    grid-row: 1 / 4;
  }

  .server-order-detail {
    padding: 4px 11px 13px;
  }
}

body:not(.is-admin-view) .top-gacha-zone .hero-intro {
  position: absolute;
  z-index: 4;
  inset: 0;
  max-width: none;
  padding: 0;
  pointer-events: none;
}

body:not(.is-admin-view) .top-gacha-zone .hero-intro > :not(#heroStartButton):not(#heroHowToButton):not(.mobile-online-copy) {
  display: none;
}

body:not(.is-admin-view) #heroStartButton {
  position: absolute;
  right: 5.2%;
  bottom: 8.6%;
  display: block;
  width: 23.8%;
  height: 9.2%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  opacity: 0;
  pointer-events: auto;
}

body:not(.is-admin-view) #heroStartButton:focus-visible {
  opacity: .18;
  outline: 4px solid #fff;
  outline-offset: 3px;
}

.hero-howto-button {
  position: absolute;
  z-index: 5;
  top: 82%;
  left: 17%;
  display: block;
  width: 18%;
  height: 6%;
  overflow: hidden;
  opacity: 0;
  pointer-events: auto;
}

.hero-howto-button:focus-visible {
  opacity: .18;
  outline: 4px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .online-gacha-reference-frame {
    position: relative;
    aspect-ratio: 4 / 4.7;
  }

  .online-gacha-reference-frame::after {
    position: absolute;
    inset: auto 0 0;
    height: 35%;
    content: "";
    background: linear-gradient(transparent, #8e2558);
    pointer-events: none;
  }

  .online-gacha-reference-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 73% center;
  }

  body:not(.is-admin-view) .top-gacha-zone {
    overflow: visible;
    background:
      radial-gradient(circle at 80% 0, rgba(255, 214, 233, .46), transparent 36%),
      linear-gradient(145deg, #7d1e50, #dc4e87);
  }

  body:not(.is-admin-view) .top-gacha-zone .hero-intro {
    position: static;
    display: block;
    margin-top: -44px;
    padding: 0 16px 22px;
    pointer-events: auto;
  }

  .mobile-online-copy {
    position: relative;
    z-index: 2;
    display: block;
    margin-bottom: 18px;
    color: #fff;
    text-align: center;
  }

  .mobile-online-copy > p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
  }

  .mobile-online-copy > p b {
    font-size: 24px;
    font-style: italic;
    letter-spacing: -.08em;
  }

  .mobile-online-copy > span {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    letter-spacing: .18em;
  }

  .mobile-online-copy h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(46px, 15vw, 68px);
    font-style: italic;
    font-weight: 900;
    letter-spacing: -.06em;
    line-height: .86;
    text-shadow: 0 8px 24px rgba(63, 0, 34, .28);
  }

  .mobile-online-copy > strong {
    display: inline-block;
    margin-top: 14px;
    padding: 7px 18px;
    background: rgba(255, 115, 171, .8);
    font-size: 11px;
    letter-spacing: .08em;
    transform: skew(-9deg);
  }

  .mobile-online-copy > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 18px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 10px;
    overflow: hidden;
  }

  .mobile-online-copy > div small {
    padding: 9px 4px;
    background: rgba(82, 10, 49, .24);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
  }

  body:not(.is-admin-view) #heroStartButton {
    position: static;
    display: flex;
    width: 100%;
    height: auto;
    min-height: 58px;
    padding: 12px 18px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 999px;
    opacity: 1;
    color: #fff;
    background: linear-gradient(90deg, #ff4f91, #ff76aa);
    box-shadow: 0 12px 28px rgba(96, 7, 53, .3);
  }

  body:not(.is-admin-view) #heroStartButton span {
    font-size: 17px;
    letter-spacing: .04em;
  }

  body:not(.is-admin-view) #heroStartButton small {
    display: block;
    color: #fff;
    opacity: .9;
  }
}

/* Clear inventory cards and separated order/onsite responsibilities. */
.inventory-total-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.inventory-total-summary > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  min-height: 82px;
  padding: 15px 18px;
  border: 1px solid #ded7f8;
  border-radius: 12px;
  color: #554a7a;
  background: #f4f1ff;
}

.inventory-total-summary > div.is-current {
  border-color: #f3cddd;
  color: #893f61;
  background: #fff1f6;
}

.inventory-total-summary span {
  font-size: 12px;
  font-weight: 900;
}

.inventory-total-summary strong {
  grid-row: 1 / 3;
  grid-column: 2;
  font-size: 30px;
  line-height: 1;
}

.inventory-total-summary small {
  font-size: 10px;
  opacity: .72;
}

.prize-editor-row {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 14px;
  padding: 18px;
  border-color: #ddd7e1;
  border-radius: 14px;
  box-shadow: 0 7px 22px rgba(63, 45, 57, .05);
}

.prize-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee8ec;
}

.prize-editor-header > div:first-child {
  display: grid;
  gap: 4px;
}

.prize-editor-header > div:first-child span {
  color: #be447a;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .18em;
}

.prize-editor-header > div:first-child strong {
  color: #322c30;
  font-size: 18px;
}

.prize-stock-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 8px;
}

.prize-stock-summary span {
  min-height: 52px;
  background: #f3f0ff;
  color: #5e5580;
}

.prize-stock-summary span.is-current-stock {
  background: #fff0f6;
  color: #8b3d61;
}

.prize-editor-fields {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) minmax(120px, .55fr) minmax(120px, .55fr) minmax(150px, .8fr);
  gap: 12px;
  align-items: end;
}

.prize-editor-fields label {
  display: grid;
  gap: 6px;
  color: #625761;
  font-size: 11px;
  font-weight: 850;
}

.prize-image-cell {
  grid-column: 1 / -1;
  grid-template-columns: 64px minmax(180px, 360px);
  align-items: center;
}

.prize-image-cell .prize-thumb {
  width: 64px;
  height: 64px;
}

.prize-editor-actions {
  padding-top: 12px;
  border-top: 1px solid #eee8ec;
}

.admin-page-guide {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 12px;
}

.admin-page-guide strong {
  font-size: 14px;
}

.admin-page-guide span {
  line-height: 1.65;
}

.admin-page-guide.is-orders {
  border-left: 5px solid #7054eb;
  color: #4d4275;
  background: #f1edff;
}

.admin-page-guide.is-operations {
  border-left: 5px solid #0a9e67;
  color: #275f4c;
  background: #eafaf4;
}

.server-order-actions .danger {
  margin-left: auto;
  border-color: #efb7c7;
  color: #b62452;
  background: #fff6f8;
}

@media (max-width: 760px) {
  .inventory-total-summary {
    gap: 8px;
  }

  .inventory-total-summary > div {
    grid-template-columns: 1fr;
    min-height: 112px;
    padding: 13px;
  }

  .inventory-total-summary strong {
    grid-row: auto;
    grid-column: auto;
    font-size: 32px;
  }

  .prize-editor-row {
    padding: 14px;
  }

  .prize-editor-header {
    align-items: stretch;
    flex-direction: column;
  }

  .prize-stock-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prize-stock-summary span {
    display: grid;
    min-height: 70px;
    gap: 2px;
    justify-items: start;
  }

  .prize-stock-summary strong {
    font-size: 26px;
  }

  .prize-editor-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prize-editor-fields .prize-name-field,
  .prize-editor-fields label:last-child {
    grid-column: 1 / -1;
  }

  .prize-image-cell {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .prize-followup-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prize-followup-settings legend {
    margin-bottom: 6px;
  }

  .prize-followup-settings label {
    min-height: 42px;
    padding: 7px;
    border-radius: 7px;
    background: #faf7f9;
  }

  .prize-editor-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prize-editor-actions button {
    width: 100%;
  }

  .server-order-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .server-order-actions .danger {
    margin-left: 0;
  }
}

/* Feedback round: clearer navigation, fees, inventory and standalone results. */
.system-fee-note {
  width: fit-content;
  margin: 10px 0 0;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 8px;
  color: #fff;
  background: rgba(74, 21, 52, .42);
  font-size: 11px;
  font-weight: 850;
}

.prize-gallery-copy em {
  display: block;
  margin-top: 5px;
  color: #d84582;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.prize-stock-summary {
  display: flex;
  grid-column: 1 / -1;
  gap: 10px;
}

.prize-stock-summary span {
  display: flex;
  flex: 1 1 0;
  min-height: 48px;
  padding: 9px 12px;
  align-items: center;
  justify-content: space-between;
  border-radius: 9px;
  color: #6a5863;
  background: #fff1f7;
  font-size: 11px;
  font-weight: 800;
}

.prize-stock-summary strong {
  color: #d74485;
  font-size: 20px;
}

.prize-followup-settings {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 12px;
  border: 1px solid #eadce4;
  border-radius: 9px;
}

.prize-followup-settings legend {
  padding: 0 6px;
  color: #695760;
  font-size: 11px;
  font-weight: 900;
}

.prize-followup-settings label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 750;
}

.prize-followup-settings input {
  min-height: 0;
}

.line-required-notice {
  padding: 12px 14px;
  border-left: 4px solid #06c755;
  border-radius: 8px;
  color: #264532;
  background: #ecfff3;
  font-size: 12px;
  line-height: 1.7;
}

.line-required-notice strong {
  color: #03963e;
}

.official-line-action {
  display: inline-flex;
  min-height: 44px;
  margin: 0 0 13px;
  padding: 10px 16px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: #06c755;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.official-line-confirm {
  display: flex;
  min-height: 48px;
  margin: 12px 0;
  padding: 10px 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid #a9e8bf;
  border-radius: 8px;
  background: #f4fff8;
  font-size: 12px;
  font-weight: 850;
}

.official-line-confirm input {
  min-height: 0;
}

.gacha-result-page {
  min-height: 100vh;
  padding: clamp(22px, 5vw, 58px) 16px;
  color: #3f3540;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 128, 179, .22), transparent 34%),
    #fff1f7;
}

.gacha-result-page[hidden] {
  display: none;
}

.gacha-result-shell {
  width: min(100%, 760px);
  margin: 0 auto;
}

.gacha-result-header {
  margin-bottom: 20px;
  text-align: center;
}

.gacha-result-header p {
  margin: 0 0 8px;
  color: #dc4b8b;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .18em;
}

.gacha-result-header h2 {
  margin: 0 0 7px;
  font-size: clamp(28px, 7vw, 44px);
}

.gacha-result-header span {
  color: #796a73;
  font-size: 12px;
}

.result-to-top-button {
  display: flex;
  width: min(100%, 460px);
  min-height: 64px;
  margin: 26px auto 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 17px;
}

body.is-result-page > .public-global-nav,
body.is-result-page > .app-header,
body.is-result-page > .tabs,
body.is-result-page > .top-gacha-zone,
body.is-result-page > main > .view,
body.is-result-page > #howToPlay,
body.is-result-page > .official-link-hub,
body.is-result-page > .staff-footer {
  display: none !important;
}

@media (min-width: 701px) {
  .public-global-nav nav > a:not(.public-line-link) {
    padding-right: 14px;
    padding-left: 14px;
    border-radius: 8px;
  }

  .public-global-nav nav > a:nth-child(1) {
    color: #b92d70;
    background: #ffe1ef;
  }

  .public-global-nav nav > a:nth-child(2) {
    color: #6045a8;
    background: #eee9ff;
  }

  .public-global-nav nav > a:nth-child(3) {
    color: #276887;
    background: #e6f6ff;
  }
}

@media (max-width: 700px) {
  .public-global-nav nav > a:nth-child(1) {
    color: #c93176;
    background: #ffe0ee;
  }

  .public-global-nav nav > a:nth-child(2) {
    color: #5d45a1;
    background: #eee9ff;
  }

  .public-global-nav nav > a:nth-child(3) {
    color: #236680;
    background: #e5f6fb;
  }

  .public-global-nav nav > a.is-current {
    color: #fff;
    background: linear-gradient(90deg, #e84e91, #f875ab);
  }

  .system-fee-note {
    margin: 8px auto 0;
  }

  .prize-stock-summary {
    flex-direction: column;
  }

  .gacha-result-page {
    padding-top: 28px;
  }
}


@media (min-width: 701px) {
  .public-global-nav {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 8px 5%;
    color: #40353f;
    background: rgba(255, 242, 248, .96);
    border-bottom: 1px solid rgba(124, 74, 104, .16);
    box-shadow: 0 8px 24px rgba(118, 44, 86, .08);
  }

  .public-global-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: #8b285d;
    text-decoration: none;
  }

  .public-global-brand span {
    font-size: 28px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: -.12em;
  }

  .public-global-brand strong {
    font-size: 13px;
    letter-spacing: .14em;
  }

  .public-global-brand img {
    display: block;
    width: auto;
    height: 54px;
    mix-blend-mode: multiply;
  }

  .public-global-nav nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(10px, 2vw, 26px);
  }

  .public-global-nav nav > a:not(.public-line-link),
  .public-global-nav nav > button {
    position: relative;
    min-height: 38px;
    padding: 8px 2px;
    border: 0;
    color: #5d515b;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
  }

  .public-global-nav nav > a:not(.public-line-link)::after,
  .public-global-nav nav > button::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    content: "";
    background: #ef5f9d;
    transform: scaleX(0);
    transition: transform 180ms ease;
  }

  .public-global-nav nav > a:hover::after,
  .public-global-nav nav > a.is-current::after,
  .public-global-nav nav > button:hover::after {
    transform: scaleX(1);
  }

  .public-line-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
  }

  .public-line-link img {
    display: block;
    width: auto;
    height: 34px;
    border: 0;
  }

  body.is-admin-view .public-global-nav {
    display: none;
  }

  .online-gacha-reference-frame {
    aspect-ratio: 1536 / 760;
    background: #fff0f6;
  }

  .online-gacha-reference-frame picture {
    display: block;
    width: 100%;
  }

  body:not(.is-admin-view) #heroStartButton {
    top: 71.5%;
    right: auto;
    bottom: auto;
    left: 14.5%;
    width: 19.4%;
    height: 8.5%;
  }

  body:not(.is-admin-view) > main {
    max-width: none;
    padding: 0;
    background:
      radial-gradient(circle at 50% 0, rgba(255,255,255,.96), transparent 38%),
      #fff0f6;
  }

  #view-main .hero-grid {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  #view-main .poster-panel {
    max-width: none;
    min-height: 0;
    padding: 30px 7% 42px;
    border: 0;
    border-radius: 0;
    color: #323039;
    background: transparent;
    box-shadow: none;
  }

  #view-main .poster-panel::before,
  #view-main .poster-panel::after,
  #view-main .sale-mode-note,
  #view-main .main-cta-block {
    display: none;
  }

  #view-main .lineup {
    margin: 0;
    padding: 0;
    background: transparent;
  }

  #view-main .gallery-head {
    display: none;
  }

  #view-main .prize-gallery-scroller {
    margin: 0;
    padding: 0 0 10px;
    scroll-padding-inline: 0;
  }

  #view-main .prize-gallery-track {
    gap: 18px;
  }

  #view-main .prize-gallery-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(108px, auto);
    flex: 0 0 clamp(140px, calc((86vw - 72px) / 5), 282px);
    min-width: 140px;
    gap: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(104, 68, 89, .14);
    border-radius: 12px;
    background: rgba(255,255,255,.84);
    box-shadow: 0 12px 28px rgba(136, 59, 102, .09);
  }

  #view-main .prize-gallery-card.is-hit {
    border-color: rgba(238, 105, 163, .46);
    background: rgba(255,255,255,.9);
  }

  #view-main .prize-gallery-art {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #e9b2cd;
  }

  #view-main .prize-gallery-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 108px;
    padding: 17px 15px 15px;
    border-top: 1px solid rgba(119, 75, 99, .12);
    background: #fff;
  }

  #view-main .prize-gallery-copy span {
    order: 2;
    color: #726872;
    font-size: 11px;
  }

  #view-main .prize-gallery-copy strong {
    order: 1;
    color: #36313a;
    font-size: 15px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
  }

  #view-main .prize-gallery-card.is-hit .prize-gallery-copy span {
    color: #d1467f;
  }
}

@media (max-width: 700px) {
  .public-global-nav {
    display: none;
  }
}

.official-link-hub {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: 34px;
  align-items: center;
  padding: 44px max(22px, 7%);
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(242, 91, 157, .22), transparent 32%),
    linear-gradient(130deg, #21151e, #3a1c2d);
}

.official-link-hub > div p {
  margin: 0 0 8px;
  color: #f073a9;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
}

.official-link-hub h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 38px);
}

.official-link-hub > div > span {
  color: #c6bac3;
  font-size: 12px;
}

.official-link-hub nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.official-link-hub nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.06);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.official-link-hub nav a:hover {
  background: rgba(240, 89, 156, .18);
  transform: translateY(-2px);
}

.official-link-hub nav b {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #311526;
  background: #f7b3d1;
  font-size: 11px;
  font-weight: 900;
}

.official-link-hub nav span {
  font-size: 11px;
  font-weight: 800;
}

body.is-admin-view .official-link-hub {
  display: none;
}

@media (max-width: 700px) {
  .official-link-hub {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 34px 18px;
  }

  .official-link-hub nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Supplied mobile ONLINE GACHA art + the same customer features as desktop. */
@media (max-width: 700px) {
  .public-global-nav {
    position: relative;
    z-index: 30;
    display: block;
    padding: 7px 8px;
    overflow: hidden;
    background: rgba(255, 240, 247, .98);
    border-bottom: 1px solid rgba(148, 73, 112, .14);
    box-shadow: 0 5px 18px rgba(116, 38, 80, .08);
  }

  .public-global-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 42px;
    overflow: hidden;
    border-radius: 7px;
    background: rgba(255,255,255,.58);
  }

  .public-global-brand img {
    display: block;
    width: 63px;
    height: auto;
    mix-blend-mode: multiply;
  }

  .public-global-nav nav {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .public-global-nav nav::-webkit-scrollbar {
    display: none;
  }

  .public-global-nav nav > a:not(.public-line-link),
  .public-global-nav nav > button {
    flex: 0 0 auto;
    min-height: 35px;
    padding: 8px 10px;
    border: 1px solid rgba(151, 69, 112, .13);
    border-radius: 999px;
    color: #614353;
    background: rgba(255,255,255,.74);
    font-size: 10px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
  }

  .public-global-nav nav > a.is-current {
    color: #fff;
    background: linear-gradient(90deg, #ef5d9e, #ff81b3);
    border-color: transparent;
  }

  .public-line-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
  }

  .public-line-link img {
    display: block;
    width: auto;
    height: 31px;
  }

  body.is-admin-view .public-global-nav {
    display: none;
  }

  body:not(.is-admin-view) .top-gacha-zone {
    overflow: hidden;
    background: #ffedf5;
  }

  .online-gacha-reference-frame {
    position: relative;
    aspect-ratio: 1125 / 500;
    background: #ffedf5;
  }

  .online-gacha-reference-frame::after {
    display: none;
  }

  .online-gacha-reference-frame picture {
    display: block;
    width: 100%;
  }

  .online-gacha-reference-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: initial;
    object-position: initial;
    transform: translateY(-10.65vw);
  }

  body:not(.is-admin-view) .top-gacha-zone .hero-intro {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
    padding: 0;
    pointer-events: none;
  }

  .mobile-online-copy {
    display: none;
  }

  body:not(.is-admin-view) #heroStartButton {
    position: absolute;
    top: 63%;
    left: 14%;
    display: block;
    width: 20%;
    height: 14%;
    min-height: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: auto;
  }

  body:not(.is-admin-view) #heroHowToButton {
    top: 77%;
    left: 17%;
    width: 18%;
    height: 10%;
  }

  body:not(.is-admin-view) > main {
    max-width: none;
    padding: 0;
    background: #ffedf5;
  }

  #view-main .hero-grid {
    display: block;
  }

  #view-main .poster-panel {
    max-width: none;
    min-height: 0;
    padding: 8px 18px 32px;
    border: 0;
    border-radius: 0;
    color: #39323a;
    background: transparent;
    box-shadow: none;
  }

  #view-main .poster-panel::before,
  #view-main .poster-panel::after,
  #view-main .sale-mode-note,
  #view-main .gallery-head {
    display: none;
  }

  #view-main .lineup {
    margin: 0;
    padding: 0;
    background: transparent;
  }

  #view-main .prize-gallery-scroller {
    margin: 0;
    padding: 4px 0 14px;
    scroll-padding-inline: 0;
  }

  #view-main .prize-gallery-track {
    gap: 10px;
  }

  #view-main .prize-gallery-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(112px, auto);
    flex: 0 0 min(72vw, 270px);
    gap: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(124, 69, 99, .14);
    border-radius: 12px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 10px 24px rgba(145, 61, 107, .09);
  }

  #view-main .prize-gallery-card.is-hit {
    border-color: rgba(239, 93, 157, .4);
    background: #fff;
  }

  #view-main .prize-gallery-art {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border: 0;
    border-radius: 0;
    background: #edbed3;
  }

  #view-main .prize-gallery-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 112px;
    padding: 15px 14px 14px;
  }

  #view-main .prize-gallery-copy span {
    order: 2;
    color: #766872;
    font-size: 12px;
    font-weight: 800;
  }

  #view-main .prize-gallery-copy strong {
    order: 1;
    color: #393139;
    font-size: 17px;
    line-height: 1.4;
  }

  #view-main .main-cta-block {
    display: block;
    margin-top: 18px;
    padding-top: 24px;
    border-top: 1px solid rgba(73, 63, 69, .65);
  }

  #view-main .gacha-start-button {
    width: min(86%, 410px);
    min-height: 68px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, #ff6aaa, #ff5593);
    box-shadow: 0 10px 26px rgba(235, 77, 145, .34), inset 0 1px rgba(255,255,255,.35);
  }

  #view-main .gacha-start-button::before {
    content: "◯";
    margin-right: 10px;
    color: rgba(255,255,255,.92);
    font-size: 22px;
  }

  #view-main .gacha-start-button span {
    color: #fff;
    font-size: clamp(19px, 5.8vw, 24px);
    letter-spacing: .04em;
  }

  #view-main .gacha-start-button small {
    display: none;
  }
}

/* Customer guidance and clearer navigation actions. */
#adminNavLogin {
  padding-right: 15px;
  padding-left: 15px;
  border: 1px solid #8e436b;
  border-radius: 7px;
  color: #713451;
  background: rgba(255,255,255,.76);
}

#adminNavLogin::before {
  margin-right: 6px;
  content: "🔒";
  font-size: 11px;
}

#savePrizeSettingsButton {
  min-height: 48px;
  padding-right: 20px;
  padding-left: 20px;
  color: #fff;
  background: linear-gradient(90deg, #e94f91, #ff73aa);
  border-color: transparent;
  box-shadow: 0 9px 22px rgba(221, 67, 136, .24);
}

body.is-order-page .order-back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.12);
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
}

body.is-order-page .order-back-button span {
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.how-to-play {
  scroll-margin-top: 22px;
  padding: 58px max(22px, 7%) 62px;
  color: #3f3039;
  background:
    radial-gradient(circle at 14% 0, rgba(255,255,255,.96), transparent 34%),
    #fff7fa;
}

.how-to-heading {
  text-align: center;
}

.how-to-heading p {
  margin: 0 0 8px;
  color: #e55595;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
}

.how-to-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 40px);
}

.how-to-heading > span {
  color: #786874;
  font-size: 13px;
}

.how-to-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1160px;
  margin: 34px auto 0;
  padding: 0;
  list-style: none;
}

.how-to-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 150px;
  padding: 24px 18px 20px;
  overflow: hidden;
  border: 1px solid rgba(186, 92, 141, .18);
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 30px rgba(141, 61, 104, .08);
}

.how-to-steps li > b {
  position: absolute;
  top: 10px;
  right: 13px;
  color: rgba(224, 76, 140, .25);
  font-size: 27px;
}

.how-to-steps li > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, #ee5f9e, #ff94bd);
  font-size: 20px;
}

.how-to-steps div {
  display: grid;
  gap: 6px;
}

.how-to-steps strong {
  font-size: 16px;
}

.how-to-steps small {
  color: #756872;
  font-size: 11px;
  line-height: 1.7;
}

.how-to-note {
  max-width: 760px;
  margin: 22px auto 0;
  padding: 12px 18px;
  border-radius: 999px;
  color: #804362;
  background: #ffe4ef;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

body.is-admin-view .how-to-play {
  display: none;
}

@media (max-width: 700px) {
  #adminNavLogin {
    border-color: #91506f;
    color: #6e3651;
    background: #fff;
  }

  body.is-order-page .order-page-top {
    justify-content: space-between;
  }

  body.is-order-page .order-page-top > div {
    text-align: right;
  }

  body.is-order-page .order-back-button {
    flex: 0 0 auto;
    padding: 9px 13px;
    font-size: 12px;
  }

  .how-to-play {
    padding: 42px 18px 46px;
  }

  .how-to-steps {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 25px;
  }

  .how-to-steps li {
    grid-template-columns: 48px 1fr;
    min-height: 104px;
    padding: 17px 18px;
  }

  .how-to-note {
    border-radius: 12px;
    line-height: 1.7;
  }
}

/* Compact customer layout for phones. */
@media (max-width: 700px) {
  .public-global-nav {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 52px;
    padding: 5px 7px;
  }

  .public-global-brand {
    width: 43px;
    height: 40px;
    border-radius: 6px;
  }

  .public-global-brand img {
    width: 48px;
  }

  .public-global-nav nav {
    flex: 1 1 auto;
    gap: 4px;
    min-width: 0;
  }

  .public-global-nav nav > a:not(.public-line-link),
  .public-global-nav nav > button {
    min-height: 32px;
    padding: 7px 9px;
    font-size: 9px;
  }

  .public-line-link img {
    height: 27px;
  }

  #adminNavLogin {
    padding-right: 9px;
    padding-left: 9px;
  }

  #adminNavLogin::before {
    margin-right: 3px;
    font-size: 9px;
  }

  #view-main .poster-panel {
    padding: 4px 12px 24px;
  }

  #view-main .prize-gallery-scroller {
    padding: 3px 0 9px;
  }

  #view-main .prize-gallery-track {
    gap: 8px;
  }

  #view-main .prize-gallery-card {
    grid-template-rows: auto minmax(84px, auto);
    flex-basis: min(42vw, 180px);
    border-radius: 10px;
    box-shadow: 0 7px 18px rgba(145, 61, 107, .08);
  }

  #view-main .prize-gallery-copy {
    min-height: 84px;
    padding: 11px 10px 10px;
  }

  #view-main .prize-gallery-copy strong {
    font-size: 14px;
    line-height: 1.35;
  }

  #view-main .prize-gallery-copy span {
    font-size: 10px;
  }

  #view-main .main-cta-block {
    margin-top: 11px;
    padding-top: 17px;
  }

  #view-main .gacha-start-button {
    width: min(88%, 350px);
    min-height: 58px;
  }

  #view-main .gacha-start-button::before {
    font-size: 18px;
  }

  #view-main .gacha-start-button span {
    font-size: 19px;
  }

  .how-to-play {
    padding-top: 34px;
  }

  .online-gacha-reference-frame {
    aspect-ratio: 1125 / 400;
  }

  body:not(.is-admin-view) #heroStartButton {
    top: 55%;
  }

  body:not(.is-admin-view) #heroHowToButton {
    top: 68%;
  }

  #view-main .gallery-head {
    display: flex;
    align-items: center;
    min-height: 54px;
    margin: 0 0 13px;
    padding: 0 3px 10px;
    border-bottom: 2px solid rgba(71, 60, 67, .7);
  }

  #view-main .gallery-head .eyebrow,
  #view-main .gallery-head > span {
    display: none;
  }

  #view-main .gallery-head h3 {
    margin: 0;
    color: #433940;
    font-size: clamp(20px, 5.8vw, 25px);
    font-weight: 900;
    letter-spacing: .06em;
  }
}

/* Desktop: keep the primary action clearly visible below the prize list. */
@media (min-width: 701px) {
  #view-main .main-cta-block {
    display: block;
    margin: 30px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(75, 58, 68, .55);
    text-align: center;
  }

  #view-main .main-cta-block .gacha-start-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 520px);
    min-height: 82px;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, #ff64a3, #ff4c8d);
    box-shadow: 0 16px 38px rgba(226, 65, 136, .3), inset 0 1px rgba(255, 255, 255, .38);
  }

  #view-main .main-cta-block .gacha-start-button::before {
    margin-right: 14px;
    content: "◯";
    color: #fff;
    font-size: 28px;
  }

  #view-main .main-cta-block .gacha-start-button span {
    color: #fff;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: .06em;
  }

  #view-main .main-cta-block .gacha-start-button small {
    display: none;
  }
}

/* Final customer navigation cascade. */
.public-global-brand,
.public-global-brand img {
  background: transparent;
  mix-blend-mode: normal;
}

.staff-footer {
  border-top: 1px solid rgba(100, 72, 88, .16);
}

/* Customer flow: live stock, primary action, then prizes. */
#view-main .poster-panel > .main-cta-block {
  margin: 0 auto 28px;
  padding-top: 0;
  border-top: 0;
}

#view-main .poster-panel > .public-stock-strip {
  width: 100%;
  margin: 0 0 18px;
  border-radius: 14px;
}

@media (max-width: 700px) {
  #view-main .poster-panel > .main-cta-block {
    margin-bottom: 24px;
  }

  #view-main .poster-panel > .public-stock-strip {
    margin-bottom: 14px;
    border-radius: 12px;
  }
}

.staff-footer .staff-login-link {
  display: inline-grid;
  min-height: 46px;
  padding: 8px 18px;
  place-items: center;
  border: 1px solid rgba(81, 65, 75, .38);
  border-radius: 8px;
  color: #51434c;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.staff-footer .staff-login-link span {
  color: #c75286;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
}

@media (max-width: 700px) {
  body:not(.is-admin-view) .public-global-nav {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100px;
    gap: 3px;
    padding: 7px 12px 0;
    overflow: visible;
    background: rgba(255, 244, 249, .98);
  }

  .public-global-brand {
    display: flex;
    width: 66px;
    height: 48px;
    margin: 0;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border-radius: 0;
  }

  .public-global-brand img {
    width: auto;
    max-width: 66px;
    height: 48px;
    object-fit: contain;
  }

  .public-global-nav nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0;
    overflow: visible;
    border-top: 1px solid rgba(112, 72, 94, .12);
  }

  .public-global-nav nav > a:not(.public-line-link),
  .public-global-nav nav > button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 42px;
    padding: 10px 3px 9px;
    border: 0;
    border-radius: 0;
    color: #5a4652;
    background: transparent;
    font-size: 11px;
    letter-spacing: 0;
    text-align: center;
  }

  .public-global-nav nav > a:not(.public-line-link) + a:not(.public-line-link) {
    border-left: 1px solid rgba(112, 72, 94, .12);
  }

  .public-global-nav nav > a.is-current {
    position: relative;
    color: #d74786;
    background: transparent;
  }

  .public-global-nav nav > a.is-current::after {
    position: absolute;
    right: 18%;
    bottom: 0;
    left: 18%;
    height: 3px;
    border-radius: 999px;
    content: "";
    background: #ef5f9d;
  }

  .public-line-link {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .public-line-link img {
    width: auto;
    height: 30px;
    border-radius: 4px;
  }

  #adminNavLogin {
    display: none;
  }

  .staff-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
    max-width: none;
    padding: 24px 18px calc(26px + env(safe-area-inset-bottom));
    text-align: center;
  }

  .staff-footer .staff-login-link {
    width: min(100%, 310px);
    min-height: 54px;
    margin: 0 auto;
    border-color: rgba(82, 62, 74, .45);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(99, 49, 78, .08);
  }
}

/* Keep the three customer destinations visually distinct. */
@media (min-width: 701px) {
  .public-global-nav nav > a:not(.public-line-link) {
    padding-right: 14px;
    padding-left: 14px;
    border-radius: 8px;
  }

  .public-global-nav nav > a:nth-child(1) {
    color: #b92d70;
    background: #ffe1ef;
  }

  .public-global-nav nav > a:nth-child(2) {
    color: #6045a8;
    background: #eee9ff;
  }

  .public-global-nav nav > a:nth-child(3) {
    color: #276887;
    background: #e6f6ff;
  }
}

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

.mail-settings-grid label {
  display: grid;
  align-content: start;
  gap: 7px;
  color: #433b40;
  font-size: 12px;
  font-weight: 850;
}

.mail-settings-grid label:has(#customerEmailMessage),
.mail-settings-grid label:has(#customerEmailSubject) {
  grid-column: 1 / -1;
}

.mail-settings-grid small {
  color: #8a7e85;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.55;
}

.spreadsheet-open-link {
  align-self: end;
  justify-self: start;
  text-decoration: none;
}

.mail-settings-actions {
  display: flex;
  margin-top: 18px;
  align-items: center;
  gap: 14px;
}

@media (max-width: 760px) {
  .mail-settings-grid {
    grid-template-columns: 1fr;
  }

  .mail-settings-grid label:has(#customerEmailMessage),
  .mail-settings-grid label:has(#customerEmailSubject) {
    grid-column: auto;
  }

  .mail-settings-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .public-global-nav nav > a:nth-child(1) {
    color: #c93176;
    background: #ffe0ee;
  }

  .public-global-nav nav > a:nth-child(2) {
    color: #5d45a1;
    background: #eee9ff;
  }

  .public-global-nav nav > a:nth-child(3) {
    color: #236680;
    background: #e5f6fb;
  }

  .public-global-nav nav > a.is-current {
    color: #fff;
    background: linear-gradient(90deg, #e84e91, #f875ab);
  }
}

/* Prize editing: duplicate, reorder, and optional follow-up fields. */
.prize-drag-handle {
  min-height: 38px;
  padding: 7px 11px;
  border: 1px dashed #c8b8c1;
  border-radius: 8px;
  color: #705f68;
  background: #fff;
  font-size: 10px;
  font-weight: 900;
  cursor: grab;
}

.prize-drag-handle:active {
  cursor: grabbing;
}

.prize-editor-row.is-prize-dragging {
  opacity: .45;
}

.prize-editor-row.is-prize-drop-target {
  border-color: #df4d8d;
  box-shadow: 0 0 0 3px rgba(223, 77, 141, .14);
}

details.prize-followup-settings {
  display: block;
  padding: 0;
  overflow: hidden;
}

.prize-followup-settings > summary {
  display: flex;
  min-height: 48px;
  padding: 12px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #695760;
  background: #fff8fb;
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 900;
}

.prize-followup-settings > summary::-webkit-details-marker {
  display: none;
}

.prize-followup-settings > summary::after {
  content: "＋";
  color: #c23f79;
  font-size: 18px;
}

.prize-followup-settings[open] > summary::after {
  content: "−";
}

.prize-followup-settings > summary small {
  margin-left: auto;
  color: #9a8490;
  font-size: 10px;
}

.prize-followup-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 13px 14px;
  border-top: 1px solid #f0e5eb;
}

.prize-followup-options label {
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 7px;
  background: #faf7f9;
}

.inventory-bottom-action {
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
  padding: 10px 0 4px;
}

.inventory-bottom-action button {
  width: min(100%, 420px);
  min-height: 50px;
}

.prize-editor-actions .copy-prize {
  border-color: #b8a8df;
  color: #6650a4;
  background: #f8f5ff;
}

@media (max-width: 760px) {
  .prize-editor-header {
    position: relative;
  }

  .prize-drag-handle {
    align-self: flex-start;
  }

  .prize-followup-settings > summary {
    align-items: flex-start;
  }

  .prize-followup-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Latest supplied mobile campaign visual. */
@media (max-width: 700px) {
  .online-gacha-reference-frame {
    aspect-ratio: 1125 / 670;
  }

  .online-gacha-reference-image {
    transform: translateY(-6.31vw);
  }

  body:not(.is-admin-view) #heroStartButton {
    top: 75%;
    left: 18.5%;
    width: 26%;
    height: 12%;
  }

  body:not(.is-admin-view) #heroHowToButton {
    top: 91%;
    left: 22%;
    width: 22%;
    height: 8%;
  }
}

.scan-actions-top {
  margin: 0 0 16px;
}

.qr-scan-primary {
  width: min(100%, 420px);
  min-height: 58px;
  border-color: #0d8b83;
  color: #fff;
  background: #0d8b83;
  font-size: 16px;
  font-weight: 950;
}
