:root {
  color-scheme: dark;
  --page: #171427;
  --panel: #221d34;
  --well: #1b182b;
  --border: #493e62;
  --line: #504467;
  --ink: #f7f0ff;
  --muted: #c9bedb;
  --paper: #fbf8f3;
  --paper-ink: #21192e;
  --paper-muted: #64556e;
  --lavender: #dbc6ff;
  --lime: #e2fa86;
  --lime-ink: #272b13;
  --coral: #ffabac;
  --error-ink: #fcd3da;
  --error-bg: #372036;
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 84% -12%, #6545a14d, transparent 46%),
    radial-gradient(ellipse at 4% 81%, #4c2c7029, transparent 44%),
    radial-gradient(circle at center, #cbb4ff24 .8px, transparent 1px) 0 0 / 24px 24px,
    var(--page);
}
button {
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button:disabled { cursor: default; }
button:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
[hidden] { display: none !important; }
.pixel, .brand img { image-rendering: pixelated; object-fit: contain; }
h1, h2, h3, p, ol { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; }

main { width: min(100%, 1168px); margin-inline: auto; padding: 0 28px 34px; }
.mast, .brand, .mast nav, .section-head, .vase-head, .ticket-line,
.guide-head, .shift-progress, .tools, .feedback { display: flex; align-items: center; }
.mast, .section-head, .vase-head, .ticket-line, .guide-head { justify-content: space-between; }
.mast { gap: 12px; padding-block: 18px 16px; }
.brand { gap: 11px; }
.brand-mark {
  width: 43px;
  height: 43px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #f4ffcb;
  border-radius: 13px;
  background: var(--lime);
  box-shadow: 0 3px 0 #82923f;
}
.brand-mark img { width: 28px; height: 28px; }
.mast h1 {
  font-size: clamp(29px, 3.2vw, 43px);
  font-weight: 765;
  letter-spacing: -.052em;
  word-spacing: .035em;
  text-wrap: nowrap;
}
.mast nav, .tools { gap: 7px; }
.plain, .tool, .close, #shift-tabs button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #29223e;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
}
.plain:hover, .tool:hover:not(:disabled), .close:hover, #shift-tabs button:hover { background: #3c3056; }
.help-symbol {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 5px;
  border: 1px solid #9985b5;
  border-radius: 50%;
  font: 750 11px/1 var(--mono);
}

.shift {
  --cover: #dac9ff;
  --cover-ink: #26163d;
  display: flex;
  align-items: stretch;
  min-height: 152px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #ffffff4d;
  border-radius: 22px;
  background: var(--cover);
  color: var(--cover-ink);
  box-shadow: 0 4px 0 #08061270;
}
.shift[data-shift="1"] { --cover: #ffd2cf; --cover-ink: #492034; }
.shift[data-shift="2"] { --cover: #c9dffc; --cover-ink: #152d4d; }
.shift[data-shift="3"] { --cover: #dff5bc; --cover-ink: #213422; }
.shift[data-shift="4"] { --cover: #ffd4aa; --cover-ink: #472339; }
.shift[data-shift="5"] { --cover: #d9cef9; --cover-ink: #33204d; }
.shift::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .48;
  background: repeating-linear-gradient(116deg, #ffffff35 0 1px, transparent 1px 13px);
  mask-image: linear-gradient(90deg, transparent 30%, #000);
  pointer-events: none;
}
.shift-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: auto;
  height: 100%;
  aspect-ratio: 400 / 130;
  object-fit: fill;
  pointer-events: none;
}
.shift-copy {
  position: relative;
  z-index: 1;
  max-width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 26px 18px;
}
.shift h2 {
  margin: 2px 0 10px;
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 785;
  letter-spacing: -.051em;
  line-height: .99;
}
.eyebrow {
  color: var(--lavender);
  font: 700 11px/1.35 var(--mono);
  letter-spacing: .10em;
  text-transform: uppercase;
}
.shift .eyebrow { color: inherit; opacity: .83; }
.shift-progress { gap: 12px; font-size: 13px; font-weight: 750; }
#progress { display: flex; gap: 4px; }
#progress i { width: 12px; height: 4px; border-radius: 2px; background: #26163d32; }
#progress .past { background: var(--cover-ink); }
#progress .current { background: var(--cover-ink); outline: 1px solid var(--cover-ink); outline-offset: 2px; }
#shift-count { white-space: nowrap; }

.ticket {
  margin-top: 13px;
  display: grid;
  grid-template-columns: minmax(190px, 25%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #e9ddf7;
  border-radius: 17px;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 0 3px 0 #12102070;
}
.ticket-head {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 20px;
  border-right: 1px dashed #a99bb6;
  background: #f0e6f8;
}
.ticket-head::before, .ticket-head::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: -7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--page);
}
.ticket-head::before { top: -7px; }
.ticket-head::after { bottom: -7px; }
.ticket .eyebrow { color: #594663; }
.ticket-head h2 {
  margin-top: 5px;
  font-size: clamp(21px, 2.7vw, 31px);
  font-weight: 780;
  letter-spacing: -.045em;
}
.ticket-body { align-self: center; min-width: 0; padding: 12px 17px 13px; }
.ticket-line { min-height: 23px; gap: 7px; margin-bottom: 6px; }
.ticket-line strong { font-size: 15px; color: var(--paper-ink); }
.ticket-line span { font-size: 12px; font-weight: 750; color: var(--paper-muted); }
#order {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
  list-style: none;
}
#order li {
  position: relative;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: stretch;
  border-radius: 9px;
  background: #eee8f0;
}
#order button {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid #d0c3d7;
  border-radius: inherit;
  background: transparent;
}
#order button:hover, #order button[aria-pressed=true] { background: #e6d5fb; border-color: #6b528b; }
#order button:focus-visible { outline: 3px solid #583787; outline-offset: 1px; z-index: 2; }
#order img { width: 31px; height: 31px; }
#order .current button { background: var(--lime); border: 2px solid #3f5125; box-shadow: 0 2px 0 #98a47a; }
#order .needed button { background: #ffd3d7; border-color: #953548; box-shadow: 0 2px 0 #cc8493; }
#order button[aria-pressed=true] { box-shadow: inset 0 0 0 2px #8161a2; }
#order .done img { opacity: .67; }
#order .done::after {
  content: "✓";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  border-radius: 4px 0 8px 0;
  background: #534175;
  color: white;
  font: 750 10px/13px var(--sans);
  text-align: center;
  pointer-events: none;
}
#ticket-inspect { font-weight: 850; color: #57377d; text-align: right; }
#ticket-inspect:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }

.work-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 23%);
  gap: 12px;
  margin-top: 13px;
}
.bench, .vase-card, .bouquet-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 3px 0 #100b1d62;
}
.bench {
  padding: 14px 15px 15px;
  background: radial-gradient(ellipse at 4% 0, #8062ab25, transparent 62%), var(--panel);
}
.section-head, .vase-head { gap: 8px; margin-bottom: 10px; }
.section-head h2, .vase-head h2, .bouquet-card h2 {
  font-size: 23px;
  letter-spacing: -.042em;
  font-weight: 750;
}
.direction {
  color: var(--muted);
  font-size: 12px;
  font-weight: 670;
  text-align: right;
}
.trays { display: grid; gap: 8px; }
.tray {
  position: relative;
  display: flex;
  min-height: 85px;
  overflow: visible;
  border: 1px solid #403757;
  border-radius: 12px;
  background:
    repeating-linear-gradient(130deg, transparent 0 7px, #8772ae24 7px 8px) right 12px center / 21px 38% no-repeat,
    var(--well);
}
.row-letter {
  display: grid;
  place-items: center;
  flex: 0 0 41px;
  border-radius: 11px 0 0 11px;
  border-right: 1px solid #45395e;
  background: #2d2442;
  color: #dacaf7;
  font: 750 17px var(--mono);
}
.sprigs { display: flex; align-items: center; flex: 1; min-width: 0; gap: 8px; padding: 6px 9px; }
.piece {
  --flower-glow: #b9a0f64a;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(22%, 128px);
  min-width: 0;
  min-height: 70px;
  gap: 2px;
  padding: 2px 3px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: radial-gradient(ellipse at 50% 39%, var(--flower-glow), transparent 47%);
  color: #e7def3;
  font: 700 12px/1.2 var(--sans);
}
.piece[data-flower="D"] { --flower-glow: #ecd6ac4f; }
.piece[data-flower="S"] { --flower-glow: #f4b65c56; }
.piece[data-flower="T"], .piece[data-flower="P"] { --flower-glow: #f295ac54; }
.piece[data-flower="B"] { --flower-glow: #7cc5ff50; }
.piece img { width: 47px; height: 48px; }
button.piece {
  border-color: #efe1ff;
  background: #decaff;
  box-shadow: 0 3px 0 #7a5aa6;
  color: #2d1c43;
  font-weight: 850;
}
button.piece:hover:not(:disabled) { background: #eedfff; }
button.piece:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #7a5aa6; }
button.piece:disabled, button.blocked {
  border: 1px dashed #8a76a7;
  background: #2e2545;
  color: #e4d7ef;
  box-shadow: none;
}
button.blocked:hover:not(:disabled) { background: #382d50; }
.pick-mark {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2.5px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
}
button.blocked .pick-mark, .piece:disabled .pick-mark { border: none; transform: none; color: #d4b8dd; }
button.blocked .pick-mark::before, .piece:disabled .pick-mark::before { content: "×"; position: absolute; top: -5px; left: 0; }
button.suggested { outline: 2px dashed var(--lime); outline-offset: 2px; }
.pick-tip {
  position: absolute;
  z-index: 1;
  inset-block-start: -6px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  padding: 2px 4px;
  border-radius: 4px;
  background: var(--lime);
  color: var(--lime-ink);
  font: 850 9px/1.1 var(--sans);
  white-space: nowrap;
  pointer-events: none;
}
button.piece.rejected { border-color: var(--coral); }
button.piece.rejected .pick-tip { background: var(--coral); color: #3d1830; }
button.piece.shown-end { outline: 2px solid var(--lime); outline-offset: 1px; }
.empty-row { padding: 13px 7px; font-size: 13px; color: var(--muted); }

.work-stations { display: grid; grid-template-rows: 1fr auto; min-width: 0; gap: 9px; }
.vase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 13px 13px 12px;
  background: radial-gradient(ellipse at 52% 49%, #7554ad5e, transparent 69%), #2e2247;
  text-align: center;
}
.vase-head { margin: 0; text-align: left; }
.vase-head h2, .bouquet-card h2 { font-size: 20px; }
.capacity {
  flex: none;
  padding: 3px 7px;
  border: 1px solid #876eb0;
  border-radius: 999px;
  background: #261c3c;
  color: #f1e7ff;
  font: 700 10px/1.4 var(--mono);
  white-space: nowrap;
}
.vase-card[data-filled="true"] .capacity { background: #e0cdfd; color: #3b235e; border-color: #e0cdfd; }
.vase-well { display: grid; place-items: center; flex: 1; min-width: 0; }
.vase-well img { height: 103px; width: auto; }
.vase-caption strong { color: #fff4ff; font: 770 17px/1.08 var(--display); }
.vase-caption p, .bouquet-card p {
  max-width: 28ch;
  margin: 3px auto 0;
  color: #d6caec;
  font-size: 12px;
  line-height: 1.34;
}
.bouquet-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 5px 13px;
  background: radial-gradient(ellipse at 88% 47%, #ffe1be77, transparent 52%), #e9ccdf;
  color: #33203d;
  border-color: #f9ddeb;
}
.bouquet-card p { margin-left: 0; color: #624561; font-weight: 750; white-space: nowrap; }
.bouquet-frame { position: relative; overflow: hidden; flex: none; width: 91px; aspect-ratio: 133 / 111; }
.bouquet-frame img { position: absolute; top: 0; left: 0; display: block; height: 100%; max-width: none; object-fit: fill; }
.occupied-blockage { border-color: #a45c80; background: #4a2946; }
.occupied-blockage .vase-caption p { color: #ffceda; }
.tray.vase-source { outline: 1px dashed #e6be80; outline-offset: -2px; }
.vase-source .row-letter { background: #57384c; color: #ffe1b5; }
.tray.needs-flower { border-color: #b16d8d; }
.piece.buried-flower { border: 1px dashed #f097a8; background: #55334f; color: #ffe2eb; }

.parcel {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 185px;
  overflow: hidden;
  border: 1px solid #665389;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at center, #a774f581, #39245744 57%, transparent 73%),
    repeating-linear-gradient(-36deg, #d4b5fa14 0 1px, transparent 1px 15px),
    #2b2041;
}
.parcel::before {
  content: "";
  position: absolute;
  width: 184px;
  aspect-ratio: 1;
  border: 1px solid #f5deea55;
  border-radius: 50%;
  background: radial-gradient(circle at center, #e7abec76, #a983f520 57%, transparent);
  pointer-events: none;
}
.bench:has(.parcel) { display: flex; flex-direction: column; }
.bench:has(.parcel) .trays { flex: 1; }
.parcel img { position: relative; width: auto; height: 178px; }

.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #211c32;
}
.feedback { gap: 10px; min-width: 0; }
.feedback img {
  flex: none;
  width: 39px;
  height: 39px;
  padding: 3px;
  border: 1px solid #6e5692;
  border-radius: 10px;
  background: #392950;
}
.feedback strong { font: 760 17px/1.12 var(--display); color: #fff3ff; }
.feedback p, .book-note, .shortcuts { color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 3px; }
.action-bar[data-mode="won"] { border-color: #829655; background: #34412b; }
.action-bar[data-mode="won"] .feedback strong { color: #ebffc0; }
.action-bar[data-mode="won"] .feedback p { color: #ebf3db; }
.action-bar[data-mode="won"] .feedback img { border-color: #a2ae66; background: #ddecaa; }
.action-bar[data-mode="stuck"] { border-color: #a25b82; background: var(--error-bg); }
.action-bar[data-mode="stuck"] .feedback strong { color: var(--error-ink); }
.tools { flex: none; flex-wrap: wrap; }
.tool { font-size: 13px; padding: 7px 11px; }
.tool:disabled { opacity: .55; }
#hint { border-color: #9277bc; background: #392b52; }
#hint:hover { background: #503971; }
.primary {
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid #f6ffd3;
  border-radius: 11px;
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 3px 0 #82954a;
  font-size: 14px;
  font-weight: 850;
}
.primary:hover { background: #f0ffa6; }
.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 #82954a; }

.flight, .petal, .arrival-ring { position: fixed; pointer-events: none; z-index: 5; }
.flight { width: 32px; height: 32px; filter: drop-shadow(0 0 7px #f1d8ffb3) drop-shadow(1px 3px 1px #160b27a0); }
.petal { opacity: 0; border-radius: 80% 15% 80% 15%; }
.arrival-ring { opacity: 0; aspect-ratio: 1; border: 2px solid; border-radius: 50%; }

dialog {
  width: min(460px, 94vw);
  max-width: 94vw;
  max-height: min(90vh, 90dvh);
  overflow-y: auto;
  padding: 23px;
  border: 1px solid #8a73ae;
  border-radius: 18px;
  background: #28203b;
  color: var(--ink);
  box-shadow: 0 22px 65px #0c071cad;
}
dialog::backdrop { background: #100920bf; backdrop-filter: blur(4px); }
.guide-head { gap: 12px; }
.guide-head h2 { font-size: 33px; font-weight: 780; letter-spacing: -.048em; }
.close { min-width: 44px; padding: 5px 12px; font-size: 23px; line-height: 1; }
.rules { margin: 15px 0; padding-left: 22px; color: #e5daf3; line-height: 1.48; font-size: 15px; }
.rules li + li { margin-top: 8px; }
.rules strong { color: #fff5ff; }
.shortcuts { margin: 14px 0; }
.sound-setting { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-block: 1px solid var(--line); font-size: 14px; font-weight: 700; }
#sound { min-width: 55px; }
#sound[aria-pressed=true], #shift-tabs button[aria-pressed=true] { background: var(--lavender); color: #2f1c45; border-color: var(--lavender); }

#book { width: min(650px, 94vw); }
#shift-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin: 15px 0; }
#shift-tabs button { padding: 6px 11px; font-size: 13px; }
#book-shift { font-size: 25px; margin: 8px 0; }
#order-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
#order-list button {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 45px;
  padding: 8px;
  border: 1px solid #57466e;
  border-radius: 9px;
  background: #2e2443;
  color: #faf2ff;
  text-align: left;
}
#order-list .number { color: #cdb3e7; font: 700 12px/1.2 var(--mono); }
#order-list strong { font-weight: 650; font-size: 13px; }
#order-list button:hover, #order-list button[aria-current=true] { background: #45345e; border-color: #8f73af; }
.book-mark { margin-left: auto; color: var(--lime); font-size: 11px; font-weight: 750; }
.filled .book-mark { font-size: 16px; }
.book-note { margin-top: 12px; }

@media (max-width: 870px) {
  .work-area { grid-template-columns: minmax(0, 1fr) 185px; }
  .vase-head h2, .bouquet-card h2 { font-size: 18px; }
  .ticket-head { padding-inline: 16px; }
}
@media (max-width: 720px) {
  main { padding: 0 11px 20px; }
  .mast { gap: 6px; padding: 9px 0 10px; }
  .mast h1 { font-size: clamp(24px, 7vw, 29px); }
  .brand { gap: 7px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 10px; }
  .brand-mark img { width: 23px; height: 23px; }
  .mast nav { gap: 4px; }
  .plain { padding: 7px 9px; font-size: 13px; }
  .help-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #help { min-width: 44px; }
  .help-symbol { margin: 0; }
  .shift { min-height: 89px; border-radius: 14px; }
  .shift-copy { max-width: 65%; padding: 9px 11px 10px; }
  .shift h2 { margin: 3px 0 5px; font-size: clamp(23px, 6.8vw, 40px); }
  .shift-art { right: -28px; height: 100%; }
  .shift-progress { gap: 7px; font-size: 11px; }
  #progress { gap: 3px; }
  #progress i { width: 6px; height: 3px; }
  .eyebrow { font-size: 10px; letter-spacing: .07em; }
  .ticket { grid-template-columns: minmax(0,1fr); margin-top: 9px; border-radius: 13px; }
  .ticket-head { padding: 7px 10px; flex-direction: row; align-items: center; justify-content: space-between; gap: 9px; border-right: 0; border-bottom: 1px dashed #a99bb6; }
  .ticket-head::before, .ticket-head::after { display: none; }
  .ticket-head .eyebrow { flex: none; }
  .ticket-head h2 { font-size: 18px; margin: 0; text-align: right; }
  .ticket-body { padding: 6px 9px 9px; }
  .ticket-line { min-height: 20px; margin-bottom: 4px; }
  .ticket-line strong { font-size: 14px; }
  #order { gap: 3px; }
  #order li { width: 44px; height: 44px; }
  #order img { width: 28px; height: 28px; }
  .work-area { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 8px; }
  .work-stations { grid-row: 1; grid-template: 1fr / minmax(0, 1.55fr) minmax(0, 1fr); gap: 6px; }
  .vase-card { display: grid; grid-template-columns: 31px 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 4px; padding: 6px; text-align: left; border-radius: 11px; }
  .vase-head { display: contents; }
  .vase-head h2 { grid-column: 2; grid-row: 1; font-size: 16px; }
  .capacity { grid-column: 3; grid-row: 1; font-size: 9px; padding: 2px 5px; }
  .vase-well { grid-column: 1; grid-row: 1 / span 2; }
  .vase-well img { height: 42px; }
  .vase-caption { grid-column: 2 / span 2; grid-row: 2; }
  .vase-caption strong { font-size: 13px; }
  .vase-caption p { font-size: 10.5px; margin: 2px 0 0; max-width: none; }
  .bouquet-card { padding: 5px 6px 5px 8px; border-radius: 11px; }
  .bouquet-card h2 { font-size: 15px; }
  .bouquet-card p { font-size: 11px; }
  .bouquet-frame { width: clamp(42px, 13.7vw, 76px); }
  .bench { grid-row: 2; padding: 8px 8px 10px; border-radius: 14px; }
  .section-head { margin-bottom: 7px; }
  .section-head h2 { font-size: 20px; }
  .direction { font-size: 11px; }
  .trays { gap: 5px; }
  .tray { min-height: 62px; border-radius: 10px; background-size: 12px 36%; background-position: right 5px center; }
  .row-letter { flex-basis: 27px; font-size: 15px; border-radius: 9px 0 0 9px; }
  .sprigs { gap: 4px; padding: 4px 4px 5px; }
  .piece { width: 23%; min-width: 49px; min-height: 51px; font-size: 11px; border-radius: 8px; }
  .piece img { width: 34px; height: 34px; }
  .pick-mark { top: 5px; left: 5px; padding: 1.7px; }
  .action-bar { flex-direction: column; align-items: flex-start; gap: 8px; padding: 8px 9px; margin-top: 9px; }
  .feedback { gap: 7px; }
  .feedback img { width: 31px; height: 31px; }
  .feedback strong { font-size: 15px; }
  .feedback p { font-size: 12.5px; }
  .tools { gap: 5px; }
  .tool, .primary { font-size: 13px; }
  .tool { padding-inline: 9px; }
  .parcel { min-height: 134px; }
  .parcel::before { width: 126px; }
  .parcel img { height: 128px; }
  #order-list { grid-template-columns: 1fr; }
  dialog { padding: 16px; }
  #shift-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 370px) {
  .mast h1 { font-size: 24px; }
  .brand { gap: 5px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-mark img { width: 20px; height: 20px; }
  #progress i { width: 5px; }
  .bouquet-card p { font-size: 10px; }
  .bouquet-frame { width: 39px; }
}
@media (max-width: 720px) and (max-height: 740px) {
  .shift { min-height: 72px; }
  .shift-copy { padding-block: 6px; }
  .shift h2 { font-size: clamp(24px, 6.8vw, 35px); }
}
@media (prefers-reduced-motion: no-preference) {
  button { transition: background .12s ease, border-color .12s ease, box-shadow .12s ease; }
}
@media (prefers-reduced-motion: reduce) {
  button.piece:active:not(:disabled), .primary:active { transform: none; }
}
body { color: #f7f0ff; background-color: #171427; font-family: "DM Sans", system-ui, sans-serif; }
a { color: #e9d6ff; text-underline-offset: .19em; }
a:hover { color: #e2fa86; }
a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #e2fa86; outline-offset: 3px; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 8; transform: translateY(-150%); padding: .7rem 1rem; background: #171427; border-radius: .55rem; }
.skip-link:focus { transform: none; }
.brand-type {
  display: block;
  margin-top: .26rem;
  color: #d9c4ef;
  font: 700 .74rem/1 "DM Sans", sans-serif;
  letter-spacing: .01em;
}
.site-guide, .reading-page {
  --article-muted: #d7cbe7;
  --article-line: #493e62;
  --article-surface: #221d34;
  color: #fff7ff;
}
.site-guide {
  margin-top: clamp(2.25rem, 7vw, 4rem);
  padding-top: clamp(1.25rem, 4vw, 2rem);
  border-top: 1px solid var(--article-line);
}
.site-guide h2, .reading-page h1, .reading-page h2 { font-family: "Bricolage Grotesque", "DM Sans", sans-serif; letter-spacing: -.04em; }
.guide-intro { max-width: 70ch; margin-bottom: 1.15rem; }
.guide-intro h2 { max-width: 20ch; font-size: clamp(1.8rem, 4vw, 2.65rem); }
.site-guide p, .reading-page p, .reading-page li { color: var(--article-muted); line-height: 1.63; margin: .6rem 0; }
.instruction-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .75rem; }
.instruction-cards article { padding: 1rem; background: var(--article-surface); border: 1px solid var(--article-line); border-radius: .95rem; }
.instruction-cards h3 { color: #e5caff; letter-spacing: -.035em; }
.instruction-cards p:last-child { margin-bottom: 0; }
.guide-block { max-width: 75ch; margin-top: 2rem; }
.guide-block h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
.guide-block h3 { margin-top: 1rem; color: #e5caff; letter-spacing: -.02em; }
.site-guide details { border-bottom: 1px solid var(--article-line); padding-block: .6rem; }
.site-guide summary { min-height: 44px; display: list-item; cursor: pointer; padding-block: .55rem; font-weight: 730; }
.site-guide summary:focus-visible { outline: 2px solid #e2fa86; outline-offset: 2px; }
.site-form, .practice-form { display: grid; gap: .55rem; max-width: 38rem; padding: 1rem; border: 1px solid var(--article-line); border-radius: .9rem; background: var(--article-surface); }
.practice-form { grid-template-columns: minmax(0,1fr) auto; align-items: end; }
.practice-form label { grid-column: 1 / -1; }
.site-form label, .practice-form label { font-weight: 750; }
.site-form label span, .site-form .form-description, .practice-form label span { color: var(--article-muted); font-weight: 500; font-size: .92rem; }
.site-form input:not([hidden]), .site-form textarea, .site-form select, .practice-form input {
  display: block;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: .65rem;
  border: 1px solid #75638f;
  border-radius: .55rem;
  background: #181425;
  color: #fff7ff;
  font: inherit;
}
.site-form textarea { resize: vertical; margin-bottom: .15rem; }
.site-form button { justify-self: start; }
.site-footer, .reading-header { width: min(calc(100% - 2rem), 1112px); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; }
.site-footer { margin-bottom: .9rem; padding: 1rem 0; border-top: 1px solid #493e62; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 1.15rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: .91rem; }
.footer-brand { font-family: "Bricolage Grotesque", "DM Sans", sans-serif; color: #fff7ff; font-weight: 780; text-decoration: none; }
.reading-header { padding: 1rem 0 .7rem; }
.reading-header .footer-brand { font-size: 1.45rem; }
.reading-page { max-width: 52rem; min-height: 61vh; padding: 1.9rem 1rem 3rem; }
.reading-page h1 { margin: 0 0 .8rem; font-size: clamp(2.5rem, 7vw, 3.9rem); }
.reading-page h2 { margin-top: 1.5rem; font-size: 1.65rem; }
.reading-page p { max-width: 65ch; }
.inline-action { display: inline-flex; align-items: center; padding: .6rem .9rem; text-decoration: none; }
@media(max-width: 640px) {
  .instruction-cards { grid-template-columns: 1fr; }
  .site-guide { padding-inline: .1rem; }
  .site-footer { gap: 0 .7rem; }
  .site-footer nav { gap: 0 .9rem; }
}
@media(max-width: 370px) {
  .practice-form { grid-template-columns: minmax(0,1fr); }
  .practice-form button { justify-self: start; }
  .brand-type { font-size: .65rem; }
}
.reading-page pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.site-form [data-gf-comment-msg]:empty { display: none; }
