:root {
  --night: #100814;
  --neon: #ff3b7a;
  --bulb: #e7a322;
  --paper: #f3e6cf;
  --ink: #1a120c;
  --slip: #fffaf0;
  --muted: #5c4a36;
  --soft: #e6d3b0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--paper);
  background:
    radial-gradient(ellipse 55% 42% at 0% 0%, rgba(255, 59, 122, 0.22), transparent 68%),
    radial-gradient(ellipse 42% 36% at 100% 100%, rgba(231, 163, 34, 0.14), transparent 70%),
    var(--night);
}

.rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    102deg,
    transparent 0 26px,
    rgba(243, 230, 207, 0.04) 26px 27px
  );
  animation: rain 22s linear infinite;
}

@keyframes rain {
  from { background-position: 0 0; }
  to { background-position: -80px 220px; }
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 3;
  background: var(--bulb);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
}

.skip:focus { top: 1rem; }

.shop {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.2rem 0 3rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2.4rem;
  align-items: start;
}

.mast {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  position: sticky;
  top: 1.5rem;
  text-align: center;
}

.sign { margin: 0; }

.sign-plate {
  position: relative;
  display: inline-block;
  padding: 0.06em 0.55em 0.1em 0.16em;
  background: var(--neon);
  color: var(--paper);
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 800;
  font-size: clamp(3.6rem, 7vw, 5rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  clip-path: polygon(0 0, calc(100% - 0.38em) 0, 100% 0.38em, 100% 100%, 0 100%);
}

.sign-plate::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0.38em;
  height: 0.38em;
  background: linear-gradient(to top right, #9a1244 50%, transparent 50%);
}

.mast-en {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--bulb);
}

.intro { text-align: center; }

.eyebrow {
  margin: 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bulb);
}

.hours { white-space: nowrap; }

h1 {
  margin: 0.25rem 0 0.7rem;
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 800;
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  line-height: 0.84;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.lead {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.3rem;
  margin: 0 auto 1.4rem;
  max-width: 36rem;
  color: var(--soft);
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.92rem;
  text-decoration: none;
}

.social svg { width: 1.2rem; height: 1.2rem; flex: none; }

.social:hover { color: var(--neon); }

.social:focus-visible {
  outline: 2px solid var(--bulb);
  outline-offset: 3px;
}

.slip {
  background: var(--paper);
  color: var(--ink);
  padding: 1.15rem 1.15rem 1.2rem;
  border-left: 2px dashed rgba(26, 18, 12, 0.35);
}

.ticket {
  margin: 0 0 0.2rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(26, 18, 12, 0.18);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.slip h2 {
  margin: 0 0 0.65rem;
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.block { margin-top: 1.15rem; }

.cuts {
  display: grid;
  gap: 0.5rem;
}

.cut,
.slot { cursor: pointer; }

.cut {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 0.8rem;
  align-items: center;
  min-height: 3.4rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(26, 18, 12, 0.22);
  background: var(--slip);
}

.cut-name {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}

.cut-detail {
  grid-column: 1;
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.78rem;
}

.cut-price {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 1rem;
}

.cut input,
.slot input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
}

.cut:has(input:checked),
.slot:has(input:checked) {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.cut:has(input:checked) .cut-detail { color: var(--soft); }
.cut:has(input:checked) .cut-price { color: var(--bulb); }

.cut:has(input:focus-visible),
.slot:has(input:focus-visible),
.field input:focus-visible,
.field textarea:focus-visible,
.send:focus-visible {
  outline: 2px solid var(--bulb);
  outline-offset: 3px;
}

.field { display: block; margin-top: 0.75rem; }

.field span {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(26, 18, 12, 0.28);
  border-radius: 0;
  background: var(--slip);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 0.72rem 0.75rem;
}

.field textarea { resize: vertical; }

::placeholder { color: rgba(26, 18, 12, 0.45); }

.hint,
.status {
  min-height: 1.3em;
  margin: 0.55rem 0;
  color: #8a3b2a;
  font-size: 0.95rem;
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr));
  gap: 0.45rem;
}

.slot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid rgba(26, 18, 12, 0.25);
  background: var(--slip);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.95rem;
}

.slot:has(input:disabled) {
  opacity: 0.32;
  cursor: not-allowed;
}

.fields { display: grid; gap: 0.15rem; }

.send {
  width: 100%;
  min-height: 52px;
  border: 0;
  background: var(--bulb);
  color: var(--ink);
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.send:hover { background: var(--neon); color: white; }

.send:disabled { opacity: 0.55; cursor: wait; }

.pay {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--soft);
  font-size: 0.92rem;
}

.qr {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin: 0.2rem auto 1rem;
}

#done { text-align: center; }

#done p { margin: 0.4rem 0 1rem; }

#done .send { margin-top: 0.4rem; }

::selection { background: var(--neon); color: white; }

@media (min-width: 760px) {
  .cuts { grid-template-columns: 1fr 1fr; }
  .cut:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .fields { grid-template-columns: 1fr 1fr; column-gap: 0.75rem; }
  .field-wide { grid-column: 1 / -1; }
}

@media (max-width: 740px) {
  .shop {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 1.2rem;
  }

  .mast { position: static; }

  .sign-plate { font-size: 3.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rain { animation: none; }
  .send:hover { background: var(--bulb); color: var(--ink); }
}
