.experience-section {
  padding: clamp(38px, 7vw, 96px) 0;
  background:
    radial-gradient(ellipse at 86% 12%, #fff0d9 0, transparent 48%),
    linear-gradient(120deg, #e7f4ed, #f6fbf5 54%, #f7f7ec);
  border-block: 1px solid #e3eee4;
}
.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr);
  grid-template-areas: "intro board" "recipes board";
  column-gap: clamp(26px, 6vw, 92px);
  row-gap: 22px;
  align-items: start;
}
.experience-copy { grid-area: intro; align-self: end; min-width: 0; }
.demo-kicker {
  margin: 0 0 7px;
  color: #377568;
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .05em;
}
.experience-copy h2 {
  color: #204e48;
  font-size: clamp(2.2rem, 4.3vw, 3.8rem);
  line-height: 1.18;
  margin: 0 0 24px;
}
.chapters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.chapter-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  gap: 7px;
  padding: 7px;
  border: 1px solid #d7e7de;
  border-radius: 13px;
  background: #fffdf9;
  color: #465f57;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
}
.chapter-button:hover { border-color: #7fbca6; }
.chapter-button[aria-selected="true"] {
  border-color: #77b39f;
  background: #dceddf;
  color: #185b50;
  box-shadow: inset 0 1px 0 #fff9;
}
.chapter-icon { width: 19px; height: 19px; }

.experience-details { grid-area: recipes; min-width: 0; }
.recipe-card {
  padding: 16px 17px 14px;
  border: 1px solid #dce9e0;
  border-radius: 19px;
  background: #fffdf9;
  box-shadow: 0 8px 22px #3b6a5310;
}
.recipe-card h3 { font-size: 1rem; color: #315c52; }
.recipe-card p { margin: 10px 0 0; color: #577067; font-size: .875rem; line-height: 1.6; }
.recipe-chain {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}
.recipe-chain li {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 4px 1px;
  border: 1px solid #ebeee4;
  border-radius: 8px;
  background: #f7faf4;
  color: #4e675c;
  font-size: .75rem;
  font-weight: 750;
  line-height: 1.25;
}
.recipe-chain li:last-child { background: #fff2d9; border-color: #f0e1bf; }
.recipe-drink { width: 100%; max-width: 51px; object-fit: contain; }

.game-preview {
  grid-area: board;
  width: min(100%, 495px);
  justify-self: center;
  padding: clamp(15px, 2.2vw, 26px);
  border: 1px solid #e0eae1;
  border-radius: 26px;
  background: #fffcf7;
  box-shadow: 0 19px 48px #325d4b19, 0 3px 7px #325d4b0b;
}
.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.demo-title { display: flex; align-items: center; min-width: 0; gap: 10px; }
.demo-title h3, .demo-heading { color: #31584e; font-size: 1.15rem; }
.demo-title-drink {
  width: 43px;
  height: 43px;
  padding: 4px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 1px solid #f2e3c2;
  border-radius: 13px;
  background: #fff1d5;
}
.demo-reset {
  min-height: 44px;
  padding: 6px 13px;
  border: 1px solid #dbe7df;
  border-radius: 12px;
  background: #f2f8f1;
  color: #3e6257;
  font-size: .875rem;
  font-weight: 650;
}
.demo-reset:hover { background: #e5f1e7; }

.demo-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(5px, 1.5vw, 9px);
  padding: clamp(7px, 1.65vw, 12px);
  border: 1px solid #b6d0c4;
  border-radius: 19px;
  background: linear-gradient(145deg, #dcebe0, #cddfd6);
  box-shadow: inset 0 2px 7px #38594c16;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.board-cell {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid #d7e3d7;
  border-radius: clamp(9px, 1.2vw, 14px);
  background: linear-gradient(#fffefa, #faf6ed);
  box-shadow: 0 2px 0 #6a907629;
  cursor: grab;
  touch-action: none;
  transition: background .14s, border-color .14s, box-shadow .14s;
}
.board-cell.empty {
  background: #e4efe6;
  border-color: #cddfd1;
  box-shadow: inset 0 2px 4px #46685215;
  cursor: default;
  touch-action: pan-y;
}
.board-cell.signature { background: #fff1d3; border-color: #e8c879; }
.board-cell:focus-visible { outline: 3px solid #205e53; outline-offset: 1px; z-index: 1; }
.drink-piece {
  width: 91%;
  height: 91%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}
.piece-level {
  position: absolute;
  right: 4px;
  bottom: 4px;
  min-width: 19px;
  padding: 2px 4px;
  border: 1px solid #d9e7dc;
  border-radius: 7px;
  background: #f3faf3;
  color: #405f52;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.15;
  pointer-events: none;
}
.signature .piece-level { border-color: #ead092; background: #fff2ca; color: #755211; }
.board-cell.active { border-color: #75a687; box-shadow: inset 0 0 0 1px #97bda3, 0 2px 0 #6a907629; }
.board-cell.selected, .board-cell.match-candidate { border-color: #4b9677; box-shadow: inset 0 0 0 1px #4b9677; }
.board-cell.selected { background: #e1f0d9; }
.demo-board.is-dragging, .demo-board.is-dragging .board-cell { cursor: grabbing; }
.demo-board.is-dragging .active:not(.match-candidate):not(.drag-origin) { border-color: #d7e3d7; box-shadow: 0 2px 0 #6a907629; }
.board-cell.drag-origin > * { opacity: .18; }
.board-cell.drop-merge { border-color: #438e65; background: #d6edc5; box-shadow: inset 0 0 0 2px #4c9872; }
.board-cell.drop-move { border: 1px dashed #428a82; background: #d5f0e7; box-shadow: inset 0 0 0 2px #fff9; }
.board-cell.drop-blocked { border-color: #c48f7c; background: #fae4da; }

.merge-drag-ghost {
  position: fixed;
  z-index: 100;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform: translate(-50%, -54%) scale(1.13);
  filter: drop-shadow(0 8px 6px #244b3b55);
  will-change: left, top;
}
.merge-drag-ghost.touch-ghost { transform: translate(-50%, -67%) scale(1.13); }
.board-cell.merged > .drink-piece { animation: drink-pop .38s ease-out; }
.board-cell.merged::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid #76ba70;
  border-radius: inherit;
  pointer-events: none;
  animation: merge-ring .5s ease-out both;
}
.board-cell.placed > .drink-piece, .board-cell.returned > .drink-piece { animation: drink-settle .19s ease-out; }
@keyframes drink-pop {
  0% { transform: scale(.69); }
  58% { transform: scale(1.13); }
  100% { transform: scale(1); }
}
@keyframes merge-ring {
  from { transform: scale(.72); opacity: .95; }
  to { transform: scale(1); opacity: 0; }
}
@keyframes drink-settle {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
.demo-status {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin: 11px 0;
  padding: 7px 10px;
  border-radius: 10px;
  background: #edf4ed;
  color: #425f54;
  font-size: .875rem;
  line-height: 1.5;
}
.demo-status.success { background: #e1f0de; color: #21593f; font-weight: 650; }
.merge-button { width: 100%; min-height: 45px; white-space: normal; }
.merge-action-icon { width: 19px; height: 19px; }

.demo-heading { margin: 4px 0 15px; }
.concept-scene, .story-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(150deg, #e1f3f3, #fff0d6);
}
.concept-scene img { width: 100%; height: 100%; object-fit: cover; }
.scene-open {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 9px 12px;
  border-radius: 16px;
  background: #fffef5f2;
  color: #3b5d52;
  font-size: .875rem;
}
.story-compass { width: 68%; height: 68%; transform: rotate(-8deg); }
.scene-description, .noscript-note {
  margin: 15px 0 0;
  color: #52675d;
  font-size: .9rem;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .experience-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "board" "recipes";
    width: min(100%, 540px);
    gap: 15px;
  }
  .experience-copy h2 { margin-bottom: 15px; }
  .recipe-card { padding-inline: 12px; }
}
@media (max-width: 380px) {
  .chapter-button { padding-inline: 5px; }
  .chapter-icon { display: none; }
  .piece-level { right: 3px; bottom: 3px; }
}
