.welcome {
  align-self: start;
  border-radius: 24px;
  padding: clamp(16px, 4vw, 28px);
  background: #fff8ed;
  color: #341c47;
}
.welcome h2 { margin: 0; }
.welcome p { margin: .5rem 0 1rem; }
.naya-preview {
  width: min(56%, 170px);
  margin: 0 auto 1rem;
}
.naya-art { position: relative; }
.naya-preview img { display: block; width: 100%; height: auto; border-radius: 16px; }
.accessory-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.accessory-preview g { display: none; }
[data-gift="bracelet"] .bracelet,
[data-gift="laces"] .laces { display: inline; }
.gift-options { min-inline-size: 0; border: 0; margin: 0 0 1rem; }
.welcome .gift-heading { margin: 0 0 .35rem; font-weight: 700; }
.gift-options label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .3rem .5rem;
  border-radius: .6rem;
  cursor: pointer;
}
.gift-options input { margin: 0; accent-color: #6a3991; }
.gift-options label:has(input:checked) { background: #eadbf7; }
.gift-options small { font-weight: 700; white-space: nowrap; }
.starting-gift { color: #624077; font-size: .9rem; }

.naya-preview .glasses-preview { display: none; position: absolute; inset: 0; }
[data-gift="glasses"] .glasses-preview { display: block; }

.keep-star { display: block; margin: .65rem auto 0; min-height: 44px; }

.order-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(64px, 19vw, 96px);
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.order-guide .naya-preview { width: 100%; margin: 0; }
.order-guide .speech-bubble {
  --speech-border: #d7bce7;
  grid-row: 2;
  margin-top: 0;
}
.order-guide .speech-bubble::before {
  left: auto;
  right: clamp(26px, 8vw, 42px);
}
#ao-line { margin-top: 12px; }

.welcome,
#chocolate-game[data-phase="fix"] {
  background: #e1ad77 url("chocolate-stall.jpg") center / cover;
  color: #391e14;
}
.welcome > h2,
.welcome > p,
.welcome .gift-options,
#chocolate-game[data-phase="fix"] .order-guide {
  background: #fff0d7;
  border-radius: 15px;
  padding: .55rem .75rem;
}
.welcome .naya-preview { width: min(68%, 230px); }
.welcome .primary,
#chocolate-game[data-phase="fix"] .primary {
  background: #a1e4bd;
  color: #133e31;
  box-shadow: 0 4px 0 #327d60;
}
.welcome .keep-star { background: #fff0d7; border-radius: 12px; padding-inline: 12px; }
#chocolate-game[data-phase="fix"] .track,
#chocolate-game[data-phase="fix"] .hint-wrap,
#chocolate-game[data-phase="fix"] .feedback:not(:empty) {
  background: #fff0d7;
  border-radius: 12px;
  padding: .35rem;
}
#chocolate-game[data-phase="fix"] .playarea {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) minmax(0, 3fr);
  align-items: end;
  gap: 6px;
}
.ao-helper { width: 100%; height: auto; filter: drop-shadow(0 4px 4px #5125146a); }
.chocolate-board { min-width: 0; }
#chocolate-game[data-phase="fix"] .tray { background: #ffdb9e; border-color: #ffedce; }
#chocolate-game[data-phase="fix"] .box { background: #d2f1de; }
#chocolate-game[data-phase="fix"] .order-guide { grid-template-columns: 1fr; }
#chocolate-game[data-phase="fix"] .order-guide .naya-preview { display: none; }
#chocolate-game[data-phase="fix"] .box-pieces .box-tile {
  flex: 1 1 44px;
  padding-inline: 0;
}

.accessory-badge {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 4px 0 0 auto;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #fff0d7;
  box-shadow: 0 2px 5px #391e1440;
}
.welcome .accessory-badge { display: none; }
.order-slip .order-math { font-size: clamp(1.55rem, 7vw, 2.15rem); line-height: 1.1; }
#chocolate-game .result-title { margin: 0 0 .45rem; font-size: 1.1rem; }
#chocolate-game #recap-request { margin-bottom: .5rem; color: inherit; font-weight: 700; }
#chocolate-game #recap-math { margin: .65rem 0 0; }
@media (max-width: 620px) {
  .order-slip { align-items: flex-start; flex-direction: column; gap: .5rem; }
}
