

@font-face { font-family: "Orbitron"; src: url("/fonts/Orbitron-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Orbitron"; src: url("/fonts/Orbitron-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Orbitron"; src: url("/fonts/Orbitron-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --green-light: #99B080;
  --green: #618264;
  --green-dark: #4f6b52;
  --mint: #D0E7D2;
  --tint: #f1f7ee;
  --peach: #F9B572;
  --ink: #26332a;
  --muted: #4d5a50;
  --line: #D6D6D6;
  --card: rgba(255, 255, 255, 0.9);
  --display: "Orbitron", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}


html { background: #f7fbf3; }
body { background: transparent; color: var(--ink); }
body::before { content: ""; position: fixed; z-index: -1; left: 0; top: 0; width: 100%; height: 100%; background: #f7fbf3 url("/theme/background.jpg") center top / cover no-repeat; }
.page { max-width: 640px; padding-top: 12px; }


.head { margin: 0 0 12px; text-align: left; }
.brandbar { display: flex; align-items: center; gap: 10px; padding: 2px 2px 8px; }
.brand-logo { flex: none; display: block; width: 40px; height: 40px; }
.brand-text { min-width: 0; }
.brandbar h1, .brandbar .brand-name, .brandbar .subtitle { margin: 0; text-align: left; font-family: var(--display); }
.brandbar .brand-name, .brandbar h1#title:not(.subtitle) { font-size: 1.05rem; font-weight: 600; line-height: 1.2; color: var(--green-dark); }
.brandbar .subtitle { font-size: 0.74rem; font-weight: 500; line-height: 1.5; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-dark); }
.intro { margin: 0 auto 4px; max-width: 520px; padding: 8px 14px; border-radius: 18px; background: var(--card); color: var(--muted); font-size: 0.9rem; text-align: center; }


h2, h3, .shop-title, .sub-head, .off-head, .crop-head, .key-name { font-family: var(--display); font-weight: 600; color: var(--green-dark); }
h2 { font-size: 0.98rem; }
.row-main, .card-title, .line-title, .pic-name, .pic-title, .choice-name, .qty-label, .cal-page-name, .key-label { font-family: var(--display); font-weight: 600; font-size: 0.88rem; }
.row-price, .line-total, .line-end .row-price, .chip-price, .card.prod .card-from, .choice-price, .totals .total { font-family: var(--display); font-weight: 600; font-size: 0.9rem; font-variant-numeric: tabular-nums; color: var(--green-dark); }
.totals .total { font-weight: 700; font-size: 0.98rem; }
.row-price.pending, dd.pending { font-family: inherit; color: var(--muted); }
.small, .row-note, .card-note, .card-from, .line-detail, .line-each, .opt-line, .opt-when, .pic-line, .choice-words, .choice-meaning, .choice-hint, .crop-line, .off-hint, .cal-which, .key-note, .key-frame-caption, .qty-out, .qty-word, .legend { color: var(--muted); }
.note.member, .totals .saving { color: var(--green-dark); }


.frame img { border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 4px 14px rgba(60, 80, 60, 0.18); }
.note:not(:empty) { padding: 8px 14px; border-radius: 18px; background: var(--card); }


.step, .step.first, #step-picture + .step, .pay, .done, .shop { margin: 14px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 26px; background: var(--card); }
.off-group { border-top-color: var(--line); }
.line { border-bottom-color: var(--line); }


.row, .card, .pic-card { border: 2px solid var(--line); border-radius: 18px; background: #fff; }
.chip { border: 2px solid var(--line); border-radius: 999px; background: #fff; font-family: var(--display); font-weight: 500; font-size: 0.8rem; }
.row[aria-pressed="true"], .card[aria-pressed="true"], .chip[aria-pressed="true"], .pic-card[aria-pressed="true"], .cal-thumb[aria-pressed="true"] { border-color: var(--green); background: var(--tint); box-shadow: none; }
.chip[aria-pressed="true"] { color: var(--green-dark); font-weight: 600; }
.off-row, .off-card { border-radius: 18px; }
.card.off, .card:disabled, .chip:disabled, .chip.off { border-radius: 18px; }
.chip:disabled, .chip.off, span.chip.off { border-radius: 999px; }
.card .mini, .card .mini-pic, .opt-pic, .pic-img { border-radius: 12px; }
.badge { font-family: inherit; }
.badge.sharp { background: var(--mint); color: var(--green-dark); }
select, .choice-text, .qty-input { border-color: var(--line); border-radius: 14px; color: var(--ink); }
.color-key { border-color: var(--line); border-radius: 18px; background: #fff; }


.primary { min-height: 52px; border-radius: 60px; background: linear-gradient(90deg, var(--green-light), var(--green)); color: #fff; font-family: var(--display); font-weight: 700; font-size: 0.95rem; box-shadow: 0 4px 10px rgba(97, 130, 100, 0.3); }
.primary:disabled { background: #8a8a8a; box-shadow: none; }
.secondary { border: 1px solid var(--green); border-radius: 60px; background: #fff; color: var(--green-dark); font-family: var(--display); font-weight: 600; font-size: 0.88rem; }
.remove { color: var(--green-dark); }
.zoom-btn, .step-btn, .qty button { border: 1px solid var(--green); background: #fff; color: var(--green-dark); font-weight: 700; }
.zoom-btn:disabled, .step-btn:disabled, .qty button:disabled { border-color: var(--line); color: #767676; }
.zoom input { accent-color: var(--green); }
button:focus-visible, input:focus-visible, select:focus-visible, .stage:focus-visible, .crop-box:focus-visible, .cal-page:focus-visible, .color-key summary:focus-visible, .choice-text:focus-visible { outline-color: var(--ink); }


.edge-callout { background: var(--green-dark); font-family: var(--display); font-weight: 600; font-size: 0.72rem; }
.edge-callout::after, .stage .edge-arrow { background: var(--green-dark); }
.stage .edge-arrow::after { border-top-color: var(--green-dark); }
.stage { border-radius: 10px; }


.crop { margin: 0 -14px 8px; padding: 10px 14px; border-radius: 18px; background: #fbfdf8; box-shadow: 0 8px 8px -10px rgba(60, 80, 60, 0.45); }
.cal-page { border-color: var(--line); }


.done p { font-family: var(--display); font-size: 1rem; color: var(--green-dark); }
.done p.small { font-family: inherit; color: var(--muted); }


@media (min-width: 900px) {
  .page { max-width: 720px; }
  html[data-page] .page:has(> .frame > #picture:not([hidden])) { display: grid; max-width: 980px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 20px; align-items: start; }
  html[data-page] .page:has(> .frame > #picture:not([hidden])) > * { grid-column: 2; }
  html[data-page] .page:has(> .frame > #picture:not([hidden])) > .head { grid-column: 1 / -1; }
  html[data-page] .page:has(> .frame > #picture:not([hidden])) > .frame { grid-column: 1; grid-row: 2 / span 12; position: sticky; top: 16px; margin: 14px 0 0; }
  html[data-page] .page:has(> .frame > #picture:not([hidden])) > .frame img { max-height: 70vh; }
}
@media (max-height: 520px) and (min-width: 560px) {
  #step-size.with-crop > .crop { margin: 0; padding: 0 0 8px; background: none; }
}
