.c31-public-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: calc(24px + env(safe-area-inset-top)) 22px calc(32px + env(safe-area-inset-bottom));
}

.c31-public-header {
  min-height: 72px;
  padding-bottom: 19px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.c31-public-header .c31-header-rule {
  width: 1px;
  height: 42px;
  margin-left: auto;
  background: var(--c31-line);
}

#c31-app { min-height: calc(100dvh - 190px); }

.c31-loading {
  min-height: 58dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--c31-muted);
}

.c31-loading p { margin: 0; font-size: 13px; }

.c31-public-footer {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--c31-faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.c31-public-footer img { width: 15px; height: 26px; opacity: 0.52; }

.c31-lot-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  padding: 22px 4px 14px;
}

.c31-lot-title {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: clamp(36px, 10vw, 66px);
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.c31-lot-title .c31-door-name {
  display: block;
  color: var(--c31-cyan);
  font-size: 0.58em;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.c31-lot-timer { text-align: right; min-width: 102px; padding-bottom: 4px; }
.c31-lot-timer span { display: block; color: var(--c31-muted); font-size: 9px; font-weight: 800; letter-spacing: 0.1em; }
.c31-lot-timer strong {
  display: block;
  margin-top: 2px;
  font-family: 'Sora', sans-serif;
  font-size: clamp(25px, 7vw, 40px);
  line-height: 1;
  letter-spacing: -0.055em;
  color: transparent;
  background: var(--c31-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  font-variant-numeric: tabular-nums;
}

.c31-lot-intro { margin: 0 4px 18px; color: var(--c31-muted); font-size: 13px; line-height: 1.5; }

.c31-products { display: grid; gap: 12px; }

.c31-product {
  position: relative;
  min-height: 154px;
  display: grid;
  grid-template-columns: minmax(118px, 36%) 1fr;
  overflow: hidden;
  border: 1px solid var(--c31-line-strong);
  border-radius: 18px;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  box-shadow: 0 14px 40px -28px rgba(0, 0, 0, 0.9);
}

.c31-product[data-unavailable='true'] { opacity: 0.58; }

.c31-product__media {
  min-height: 154px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-right: 1px solid var(--c31-line);
  background:
    radial-gradient(circle at 50% 70%, rgba(255, 138, 244, 0.13), transparent 58%),
    rgba(255, 255, 255, 0.018);
}

.c31-product__media img { width: 100%; height: 130px; object-fit: contain; }
.c31-product__media img[data-fallback='true'] { width: 42px; height: 76px; opacity: 0.62; }

.c31-product__content {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
  padding: 16px;
}

.c31-product__content h2 {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: clamp(16px, 4vw, 21px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.c31-product__meta { display: grid; gap: 4px; margin-top: 8px; }
.c31-product__meta p { margin: 0; color: var(--c31-muted); font-size: 11px; line-height: 1.42; }
.c31-product__meta b { color: var(--c31-cyan); font-weight: 800; }
.c31-product__meta .c31-stock-last { color: var(--c31-magenta); }
.c31-product__condition { color: var(--c31-white) !important; font-weight: 700; font-size: 13px !important; }
.c31-product .c31-btn { width: 100%; min-height: 38px; padding: 0 12px; font-size: 11px; }

.c31-door-state {
  min-height: calc(100dvh - 210px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 46px 4px;
}

.c31-door-art {
  position: relative;
  width: min(270px, 76vw);
  height: min(290px, 78vw);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.c31-door-art__frame,
.c31-door-art__frame::before,
.c31-door-art__frame::after {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 136px;
  height: 198px;
  border: 1px solid rgba(110, 247, 255, 0.24);
  border-bottom: 0;
  clip-path: polygon(50% 0, 100% 25%, 100% 100%, 0 100%, 0 25%);
  transform: translateX(-50%);
  content: '';
}

.c31-door-art__frame::before { left: 50%; bottom: -1px; width: 102px; height: 158px; border-color: rgba(255, 199, 251, 0.2); }
.c31-door-art__frame::after { left: 50%; bottom: -1px; width: 70px; height: 118px; border-color: rgba(255, 138, 244, 0.18); }
.c31-door-art::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 140px;
  height: 54px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 138, 244, 0.34), transparent 70%);
  filter: blur(10px);
}

.c31-door-art img { position: relative; z-index: 2; width: 48px; filter: drop-shadow(0 0 18px rgba(110, 247, 255, 0.28)); }
.c31-door-state h1 {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: clamp(34px, 10vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.c31-door-state p { max-width: 440px; margin: 14px 0 0; color: var(--c31-muted); line-height: 1.6; }
.c31-door-state .c31-door-kicker { margin: 0 0 12px; color: var(--c31-cyan); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.c31-door-state .c31-next-time { margin-top: 24px; color: var(--c31-white); font-size: 13px; font-weight: 800; }
.c31-door-state .c31-btn { margin-top: 24px; }

.c31-reservation {
  min-height: calc(100dvh - 210px);
  display: grid;
  align-content: center;
  justify-items: stretch;
  padding: 28px 0 18px;
  text-align: center;
}

.c31-reservation__symbol { width: 86px; height: 138px; margin: 0 auto 7px; filter: drop-shadow(0 0 18px rgba(255, 138, 244, 0.18)); }
.c31-reservation h1 {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: clamp(35px, 9vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.c31-code-box {
  width: min(100%, 430px);
  min-height: 72px;
  margin: 18px auto 0;
  padding: 11px 13px 11px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--c31-line-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.c31-code-box strong {
  font-family: 'Sora', sans-serif;
  font-size: clamp(23px, 7vw, 40px);
  letter-spacing: 0.025em;
  line-height: 1;
  white-space: nowrap;
}

.c31-copy-btn { width: 39px; height: 39px; border: 0; border-radius: 9px; color: var(--c31-muted); background: transparent; cursor: pointer; display: grid; place-items: center; }
.c31-reservation__time-label { margin-top: 12px; color: var(--c31-muted); font-size: 9px; font-weight: 800; letter-spacing: 0.12em; }
.c31-reservation__timer {
  margin-top: 2px;
  font-family: 'Sora', sans-serif;
  font-size: clamp(46px, 13vw, 74px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

.c31-reservation__product {
  width: min(100%, 520px);
  margin: 14px auto 0;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  border: 1px solid var(--c31-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.028);
}

.c31-reservation__product img { width: 60px; height: 56px; flex: none; object-fit: contain; }
.c31-reservation__product h2 { margin: 0; font-family: 'Sora', sans-serif; font-size: 15px; letter-spacing: -0.025em; }
.c31-reservation__product p { margin: 4px 0 0; color: var(--c31-muted); font-size: 10px; }
.c31-reservation__seller { margin: 14px 0 0; color: var(--c31-muted); font-size: 12px; }
.c31-reservation__actions { width: min(100%, 520px); margin: 16px auto 0; display: grid; gap: 10px; }
.c31-reservation__actions .c31-btn { width: 100%; }
.c31-reservation__note { margin: 14px auto 0; max-width: 520px; color: var(--c31-faint); font-size: 11px; line-height: 1.5; }

.c31-dialog-label { margin: 0 0 6px; color: var(--c31-cyan); font-size: 9px; font-weight: 800; letter-spacing: 0.12em; }
.c31-reserve-product { padding: 12px; border: 1px solid var(--c31-line); border-radius: 11px; background: var(--c31-surface); }
.c31-reserve-product strong { display: block; font-family: 'Sora', sans-serif; font-size: 14px; }
.c31-reserve-product span { display: block; margin-top: 4px; color: var(--c31-muted); font-size: 11px; }
.c31-form-note { margin: -2px 0 0; color: var(--c31-faint); font-size: 11px; line-height: 1.55; }
.c31-form-error { min-height: 0; margin: -4px 0; color: var(--c31-pink); font-size: 12px; }
.c31-form-error:empty { display: none; }

@media (max-width: 520px) {
  .c31-public-shell { padding-left: 14px; padding-right: 14px; }
  .c31-public-header { min-height: 58px; }
  .c31-public-header .c31-header-rule { height: 35px; }
  .c31-lot-head { gap: 10px; padding-top: 18px; }
  .c31-product { grid-template-columns: 112px 1fr; min-height: 146px; }
  .c31-product__media { min-height: 146px; padding: 8px; }
  .c31-product__media img { height: 120px; }
  .c31-product__content { padding: 13px 12px; }
}

@media (max-width: 370px) {
  .c31-gm span { display: none; }
  .c31-product { grid-template-columns: 96px 1fr; }
  .c31-product__content { padding-left: 10px; padding-right: 10px; }
}
