:root {
  color-scheme: light;
  --ink: #263d32;
  --quiet: #526154;
  --paper: #f8eedb;
  --white: #fff9ec;
  --line: #dfcfab;
  --red: #af3d2d;
  --red-dark: #813025;
  --green: #365844;
  --serif: "PingFang HK", "Noto Serif CJK TC", "Microsoft JhengHei", sans-serif;
  font-family: "PingFang HK", "Noto Sans CJK HK", "Noto Sans CJK TC", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 94% -12%, #f0d8a9aa, transparent 52%),
    radial-gradient(#9b76571b .8px, transparent .8px) 0 0 / 9px 9px,
    var(--paper);
}
h1, h2, p, figure { margin: 0; }
button { color: inherit; font: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
button:focus-visible { outline: 3px solid #1f638f; outline-offset: 4px; }
[hidden] { display: none !important; }
img { display: block; width: 100%; height: auto; }
.shell { width: min(100%, 1296px); margin: auto; padding: 0 clamp(14px, 4vw, 54px); }
.top { min-height: 71px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #d8c7a5; }
.brand, .tools, .quiet { display: inline-flex; align-items: center; gap: 9px; }
.brand { font-size: clamp(15px, 2vw, 19px); font-weight: 950; padding: 4px 0; border: 0; background: none; white-space: nowrap; }
.brand-book {
  width: 35px; height: 27px; border-radius: 6px 6px 7px 7px; position: relative;
  background: linear-gradient(90deg,#ac3f30 0 47%,#863023 47% 52%,#c96046 52%);
  border: 2px solid #813025; box-shadow: 0 3px 0 #c3a886; transform: rotate(-9deg);
}
.brand-book::after { content: "✦"; position: absolute; color: #fae0a4; inset: 0 2px 0 auto; line-height: 21px; font-size: 14px; }
.tools { gap: 6px; }
.quiet {
  padding: 7px 10px; min-height: 40px; border: 1px solid #d2c3a2; border-radius: 12px; gap: 5px;
  background: #fff9eb; font-size: 13px; font-weight: 850; white-space: nowrap;
}
.quiet:hover { border-color: var(--green); background: #fffef4; }
.quiet span[aria-hidden] { font: 19px/1 system-ui, sans-serif; }
main { padding: clamp(17px,4vw,43px) 0 24px; }
.book {
  display: grid; grid-template-columns: 43% 57%; min-height: 482px;
  border: 1px solid #d9c5a0; border-radius: 30px; overflow: hidden;
  box-shadow: 0 7px 0 #dfcbae, 0 14px 27px #77553219;
  background: var(--white);
}
.cover-copy {
  padding: clamp(24px,5vw,69px); align-content: center; z-index: 1;
  background: repeating-linear-gradient(92deg,#b7936b0a 0 1px,transparent 1px 5px), linear-gradient(90deg,#fffaf0 95%,#faefdb);
}
.kicker { display: inline-flex; align-items:center; gap: 8px; font-size: clamp(12px,2vw,15px); font-weight: 900; color: var(--green); letter-spacing: .06em; }
.kicker span { width: 17px; height: 12px; display: inline-block; border-radius: 90% 9% 90% 9%; background: #859a50; transform: rotate(-13deg); }
.cover-copy h1 {
  font-family: var(--serif); font-size: clamp(56px,8.6vw,105px); font-weight: 1000;
  line-height: .99; letter-spacing: -.045em; margin: 11px 0 20px;
}
.cover-copy h1 span { display: block; margin: 3px 0 0; color: var(--red); }
.intro { color: var(--quiet); font-size: clamp(16px,2.1vw,22px); line-height: 1.62; font-weight: 650; }
.primary {
  min-height: 55px; border: 1px solid var(--red-dark); padding: 9px 22px; border-radius: 16px;
  background: var(--red); color: #fffaf0; box-shadow: 0 4px 0 var(--red-dark);
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  font-size: clamp(17px,2.1vw,22px); font-weight: 950; transition: transform .18s, background .18s;
}
.primary:hover { background: #9c3426; transform: translateY(-2px); }
.primary:active { transform: translateY(2px); }
.cover-copy .primary { margin-top: 22px; }
.start-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.start-actions .primary { margin-top: 0; }
.solo { min-height: 46px; padding-inline: 15px; font-size: 15px; }
.primary span { font-family: system-ui, sans-serif; font-weight: 700; }
.cover-art {
  position: relative; min-width: 0; isolation: isolate; overflow: hidden;
  background-color: #a6cdd3;
  background-image: radial-gradient(#f7f6df88 1.1px,transparent 1.1px),linear-gradient(155deg,#b3d7db,#7cb7c7);
  background-size: 16px 16px,100%;
  box-shadow: inset 13px 0 19px -16px #605c42;
}
.cover-photo {
  position: absolute; inset: 0; background: url("assets/dinner.webp") center bottom / cover;
  opacity: .25; mix-blend-mode: multiply;
  mask-image: linear-gradient(0deg,#000 0 60%,transparent);
}
.sun { position: absolute; left: 29%; top: 10%; width: 49%; aspect-ratio: 1; border-radius: 50%; background: #f7dc89; border: 2px dashed #edca67; opacity: .9; }
.cover-hill {
  position: absolute; inset: auto -12% -29%; height: 69%; border-radius: 52% 56% 0 0; transform: rotate(-5deg);
  background:
    repeating-linear-gradient(90deg,#e8e4a44c 0 15px,transparent 15px 30px),
    repeating-linear-gradient(0deg,#e8e4a44c 0 15px,transparent 15px 30px), #9ab46b;
  border-top: 2px solid #789453;
}
.sticker {
  filter: drop-shadow(2px 0 #fff9e7) drop-shadow(-2px 0 #fff9e7) drop-shadow(0 -2px #fff9e7) drop-shadow(0 3px #fff9e7) drop-shadow(2px 6px 2px #3c472c48);
}
.cover-pipi { position: absolute; left: 50%; bottom: 11%; width: auto; max-width: 59%; height: 77%; transform: translateX(-48%) rotate(-3deg); animation: pipi-sway 5.5s ease-in-out infinite; }
.cover-cat { position: absolute; left: 9%; bottom: 9%; width: 29%; transform: rotate(-12deg); animation: cat-sway 4.5s ease-in-out infinite; }
@keyframes pipi-sway { 0%,100% { transform: translateX(-48%) rotate(-3deg); } 50% { transform: translateX(-48%) translateY(-3px) rotate(0deg); } }
@keyframes cat-sway { 0%,100% { transform: rotate(-12deg); } 50% { transform: translateY(-5px) rotate(-7deg); } }
.spark { position: absolute; color: #fff5cd; font: clamp(18px,4vw,46px)/1 system-ui; animation: glow 3s ease-in-out infinite alternate; }
.spark-one { left: 9%; top: 12%; }
.spark-two { left: 28%; top: 15%; font-size: clamp(16px, 3vw, 32px); animation-delay: -.9s; }
.spark-three { right: 11%; bottom: 33%; animation-delay: -1.7s; }
@keyframes glow { 0% { opacity: .5; transform: scale(.87); } 100% { opacity: 1; transform: scale(1.11); } }
.food-sticker {
  position: absolute; width: 17%; aspect-ratio: 1; padding: 2%; border: 4px solid #fff9e7; border-radius: 31%;
  display: grid; place-items: center; box-shadow: 2px 5px 0 #4c79515f;
}
.food-sticker img { height: 100%; object-fit: contain; }
.cover-peas { right: 8%; top: 13%; transform: rotate(12deg); background: #ebefd0; }
.cover-cherries { right: 9%; bottom: 11%; transform: rotate(-13deg); background: #f7c5ae; }
.chapter-menu { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 25px; }
.chapter {
  --chapter: #dfe9c7;
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 85px;
  border: 1px solid #d9c7a5; border-radius: 20px; background: var(--white); box-shadow: 0 4px 0 #e3d0ac; text-align: left;
  transition: transform .18s, border-color .18s;
}
.chapter:hover { border-color: #719159; transform: translateY(-3px); }
.chapter.hide { --chapter: #d1e5ec; }
.chapter.table { --chapter: #f9d3be; }
.chapter-image { width: 58px; height: 58px; flex: 0 0 58px; padding: 6px; border-radius: 16px; background: var(--chapter); }
.chapter-image img { width: 100%; height: 100%; object-fit: contain; }
.chapter-name { display: block; font-size: clamp(15px, 2.2vw, 21px); font-weight: 900; }
.chapter-sub { display: block; color: var(--quiet); font-size: 13px; line-height: 1.4; margin-top: 3px; font-weight: 650; }
.chapter-check { color: #35612d; margin-left: auto; font-size: 21px; font-weight: 950; }
.credit { color: var(--quiet); font-size: 12px; text-align: center; margin: 19px 0 0; }
.game { max-width: 1090px; margin: auto; }
.game-top { display: grid; grid-template-columns: minmax(85px,1fr) auto minmax(85px,1fr); align-items: center; gap: 12px; margin-bottom: 14px; }
.back { justify-self: start; }
.progress { display: flex; align-items: center; list-style: none; gap: 7px; padding: 0; margin: 0; }
.progress li {
  height: 35px; min-width: 34px; padding: 4px 9px; display: grid; place-content: center; border-radius: 20px;
  background: #eadbbd; color: #5a5947; font-size: 14px; line-height: 1.1; font-weight: 850; white-space: nowrap;
}
.progress .current { background: #3f624e; color: #fff8e9; }
.progress .done { background: #d7e7ca; color: #2f5b35; }
.team-turn {
  display: flex; align-items: center; justify-content: center; gap: 15px;
  padding: 8px 12px; margin-bottom: 12px; border: 1px solid #dcc8a0;
  border-radius: 16px; background: #fff8e6; box-shadow: 0 3px 0 #e9d8b4;
}
.turn-label { width: 8em; text-align: right; font-size: clamp(14px,2.2vw,22px); font-weight: 700; }
.turn-label strong { color: #2d5b36; font-weight: 950; }
.team-turn ol { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.teammate, .chest-key { --team-fill: #e1ead0; --team-edge: #718a57; }
.teammate.peas, .chest-key.peas { --team-fill: #d4eaf0; --team-edge: #5c8899; }
.teammate.cherries, .chest-key.cherries { --team-fill: #f5d5c4; --team-edge: #ad6a55; }
.teammate {
  display: inline-flex; align-items: center; gap: 4px; min-height: 34px;
  padding: 3px 9px 3px 6px; border: 2px solid transparent; border-radius: 18px;
  background: #f5ecd8; color: var(--quiet); font-weight: 800; font-size: clamp(11px,1.65vw,15px); white-space: nowrap;
}
.teammate img { width: 25px; height: 25px; object-fit: contain; }
.teammate.active { background: var(--team-fill); border-color: var(--team-edge); color: var(--ink); box-shadow: 0 2px 0 var(--team-edge); }
.board {
  --board-tint: #e6eccd;
  --board-dark: #618051;
  border-radius: 29px; border: 1px solid #d9c8a5; background: var(--white);
  box-shadow: 0 6px 0 #e1cda7; overflow: hidden;
}
.board[data-screen="1"] { --board-tint: #d9edf1; --board-dark: #6198a6; }
.board[data-screen="2"] { --board-tint: #f4d5bf; --board-dark: #b47665; }
.mission { padding: 20px 23px 17px; text-align: center; }
.mission h1, .end-copy h1 { font-size: clamp(27px,4.2vw,49px); line-height: 1.23; letter-spacing: -.037em; font-weight: 950; }
.mission p { color: var(--quiet); font-size: clamp(14px,1.9vw,17px); font-weight: 700; margin-top: 6px; }
.trail-clue {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 7px; padding: 4px 11px 4px 5px; border: 1px dashed #6091a0; background: #e8f2ed; border-radius: 13px;
}
.trail-clue img { width: 63px; height: 44px; object-fit: cover; border: 2px solid #fff9e9; border-radius: 8px; }
.trail-clue .clue-door { object-fit: contain; background: #d7e8ed; }
.trail-clue p { margin: 0; }
.trail-clue strong { margin-left: .5em; color: #345943; white-space: nowrap; }
.prompt-line { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.target {
  display: grid; place-items: center; width: clamp(36px,6vw,64px); aspect-ratio: 1;
  padding: 5px; border: 1px solid #d5dfb9; background: #e9efd7; border-radius: 31%;
}
.target img { height: 100%; object-fit: contain; }
.scene {
  position: relative; isolation: isolate; margin: 0 clamp(10px,3vw,27px); border: 1px solid color-mix(in srgb,var(--board-dark) 51%,#fff);
  border-radius: 21px; overflow: hidden; background: var(--board-tint);
}
.kitchen {
  padding: clamp(17px,3vw,33px) clamp(9px,4vw,45px);
  background-image:
    repeating-linear-gradient(90deg,#fff9e533 0 18px,transparent 18px 36px),
    repeating-linear-gradient(0deg,#fff9e533 0 18px,transparent 18px 36px);
}
.trays, .spots { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(7px,2vw,21px); }
.tray, .hide-spot {
  --card-light: #fff6de; --card-shadow: #d5bf8c;
  position: relative; display: grid; place-items: center; grid-template-rows: 1fr auto; gap: 9px; width: 100%;
  background: var(--card-light); border: 2px solid var(--card-shadow); border-radius: 21px; box-shadow: 0 4px 0 var(--card-shadow);
  padding: 10px 7px; font-size: clamp(13px,2.3vw,22px); font-weight: 950;
  transition: transform .18s, border-color .18s, background .18s;
}
.tray:nth-child(2) { --card-light:#f7e7d7; --card-shadow:#dabb9e; }
.tray:nth-child(3) { --card-light:#e9eecf; --card-shadow:#bbc89d; }
.tray:hover:not(:disabled), .hide-spot:hover:not(:disabled), .bite:hover:not(:disabled) { transform: translateY(-3px); }
.tray-visual { display: grid; place-items: end center; height: clamp(67px,13.8vw,159px); width: min(100%, 197px); position: relative; }
.saucer {
  position: absolute; inset: auto 8% 4% 8%; height: 22%; border-radius: 50%; border: 2px solid #af9a76;
  background: radial-gradient(ellipse,#faf1de 0 50%,#eadcc5 51% 63%,#fff8e8 64%); box-shadow: 0 3px 0 #8d71423b;
}
.cloche { position: absolute; width: 78%; height: 62%; left: 11%; bottom: 16%; transition: transform .4s, opacity .34s; z-index: 2; }
.cloche::before {
  position: absolute; content: ""; top: -9%; left: 42%; width: 16%; height: 23%; border-radius: 50%;
  background: #e5aa56; border: 2px solid #ad7440;
}
.cloche::after {
  position: absolute; content: ""; inset: 10% 0 0; border: 2px solid #78899a; border-bottom: 4px solid #78899a;
  border-radius: 55% 55% 12% 12% / 100% 100% 12% 12%;
  background: radial-gradient(ellipse at 35% 30%,#fffdfa 0 10%,transparent 50%),linear-gradient(155deg,#e9f3ec 10%,#c5d7db 44%,#93aab4 79%,#8198a3);
  box-shadow: inset 5px 0 8px #f9fff975,0 3px 2px #685a4b48;
}
.tray-food { width: 82%; height: 88%; object-fit: contain; position: absolute; inset: 1% 9% auto; opacity: 0; transform: scale(.6); transition: opacity .22s .1s, transform .35s .06s; }
.turned .cloche { transform: translateY(-53%) rotate(-11deg); opacity: 0; }
.turned .tray-food { opacity: 1; transform: scale(1); }
.tray.yes, .hide-spot.yes { border-color: #638c53; background: #ecf1d4; box-shadow: 0 4px 0 #80a167; }
.check { color: #376631; font-weight: 950; }
.hide-room {
  padding: clamp(14px,3vw,30px);
  background: repeating-linear-gradient(90deg,#fff7 0 1px,transparent 1px 16px),linear-gradient(0deg,#dbb99b 0 25%,#c8e1ea 25%);
}
.hide-spot { --card-shadow: #8bb2b9; --card-light: #fff7e4; padding: 7px 7px 10px; }
.spot-window {
  width: 100%; height: clamp(78px,16vw,190px); position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(#f3f7df,#cfe4ce); border: 1px solid #d7c4a4; border-radius: 13px; perspective: 340px;
}
.spot-cover, .spot-answer { width: 100%; height: 100%; position: absolute; inset: 0; }
.spot-cover { z-index: 2; border: 2px solid #f0dfc1; border-radius: 12px; object-fit: cover; transition: opacity .42s, transform .43s; transform-origin: left; }
.hide-spot[data-place="door"] .spot-cover { object-fit: contain; background: #d7e8ed; }
.hide-spot[data-place="drawer"] .spot-cover { object-position: 48% 71%; }
.turned .spot-cover { opacity: 0; transform: rotateY(-84deg); }
.spot-answer { display: grid; place-items: center; opacity: 0; }
.turned .spot-answer { animation: peek .43s .1s both; }
.spot-answer img { width: 80%; height: 89%; object-fit: contain; }
.paw-clue { color: #577659; font: 800 clamp(34px,7vw,72px)/1 system-ui; transform: rotate(-14deg); }
@keyframes peek { from { transform: scale(.43) translateY(24%); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tasting-room { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1fr); }
.pipi-room {
  position: relative; display: grid; place-items: end center; min-height: clamp(178px,28vw,300px); overflow: hidden;
  background: repeating-linear-gradient(90deg,#fffc 0 1px,transparent 1px 18px),linear-gradient(#aed3d8 0 69%,#cad9a4 69%);
  border-right: 1px solid #cbad97;
}
.measure {
  pointer-events: none; position: absolute; top: 9%; bottom: 10%; left: 15%; width: 12%;
  border-inline-start: 2px solid #5b797184;
  background: repeating-linear-gradient(0deg,#5b797184 0 2px, transparent 2px 17.5%) left center / 52% 100% no-repeat;
}
.tasting-pipi {
  position: absolute; left: 51%; bottom: 10%; height: 78%; width: auto;
  transform-origin: center bottom; transform: translateX(-50%) scale(var(--size,.45)); transition: transform .55s cubic-bezier(.18,1.52,.46,1);
}
.bite-burst { position: absolute; left: 18%; top: 11%; opacity: 0; color: #fff9d6; font: 950 clamp(28px,5vw,70px)/1 system-ui; }
.bite-burst.pop { animation: burst .54s ease-out; }
@keyframes burst { 0% { opacity: 0; transform: scale(.45) rotate(-21deg); } 37% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0; transform: translateY(-20px) scale(.75); } }
.serving {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: clamp(8px,2vw,20px);
  background:
    repeating-linear-gradient(90deg,#fff6e647 0 13px,transparent 13px 26px),
    repeating-linear-gradient(0deg,#fff6e647 0 13px,transparent 13px 26px), #efc1ac;
}
.plate {
  display: grid; place-items: center; width: min(78%,260px); min-height: 52px; aspect-ratio: 2.58; padding: 5px;
  border: 2px solid #ac947a; border-radius: 50%; color: #664a3b;
  background: radial-gradient(ellipse,#fff6dd 0 54%,#e8dcc5 55% 64%,#fff9ec 65%);
  box-shadow: 0 5px 0 #ad6c5c54; font-size: clamp(13px,1.8vw,17px); font-weight: 900;
  transition: background-color .2s, box-shadow .2s;
}
.plate.ready { box-shadow: 0 0 0 4px #6a9b65,0 5px 0 #ad6c5c54; }
.bites { width: 100%; max-width: 405px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(5px,1vw,9px); }
.bite {
  border: 2px solid #d7b393; border-radius: 14px; background: #fff8e6; box-shadow: 0 3px 0 #c49074;
  padding: 5px 3px; display: grid; place-items: center; gap: 4px; font-size: clamp(12px,1.7vw,18px); line-height: 1.2;
  font-weight: 900; transition: transform .18s; touch-action: none;
}
.bite img { height: clamp(32px,6vw,69px); object-fit: contain; pointer-events: none; }
.bite.used { background: #e0ecd1; border-color: #a2b38b; box-shadow: 0 2px 0 #a2b38b; }
.bite.dragging img { opacity: .35; }
.food-fly, .food-ghost {
  position: fixed; z-index: 50; width: 74px; height: 69px; pointer-events: none; object-fit: contain;
  filter: drop-shadow(0 4px 3px #53372555);
}
.bite-meter { display: flex; justify-content: center; gap: 5px; }
.bite-meter span {
  width: 22px; aspect-ratio: 1; border-radius: 50%; border: 1px solid #a76753; display: grid; place-items: center;
  color: #41673c; font: 900 14px/1 system-ui; background: #fae3d1;
}
.bite-meter .filled { background: #e0edc9; border-color: #80996b; }
.board-bottom {
  padding: clamp(11px,2.5vw,20px) clamp(10px,3vw,25px); min-height: 81px; display: flex; align-items: center; justify-content: center;
  text-align: center; gap: 13px; flex-wrap: wrap;
}
.feedback { min-width: 0; color: var(--ink); font-size: clamp(15px,2.1vw,21px); font-weight: 900; }
.board-bottom .primary { min-height: 43px; padding: 6px 17px; border-radius: 12px; font-size: 16px; }
.end { min-height: 365px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0,1.15fr); align-items: stretch; }
.end-art { min-height: 100%; position: relative; overflow: hidden; background: repeating-linear-gradient(90deg,#fff3 0 13px,transparent 13px 26px),repeating-linear-gradient(0deg,#fff3 0 13px,transparent 13px 26px),#d7e4ac; }
.end-art img { position: absolute; width: auto; height: 78%; bottom: 8%; left: 50%; transform: translateX(-50%) rotate(-4deg); }
.end-copy { align-content: center; padding: clamp(16px,5vw,45px); }
.end-copy h1 { margin-bottom: 9px; }
.end-copy p { color: var(--quiet); font-weight: 700; font-size: clamp(14px,2vw,18px); line-height: 1.6; }
.stamps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 14px 0 19px; }
.stamps li { width: clamp(36px,6.5vw,62px); aspect-ratio: 1; border: 2px dashed #7e9b66; border-radius: 50%; padding: 4px; background: #e5ecd0; }
.stamps img { height: 100%; object-fit: contain; }
.end-copy .primary { min-height: 45px; font-size: clamp(15px,2vw,18px); }
.chest-stage {
  position: relative; display: grid; place-items: center; gap: 13px; margin: 0 20px 18px; padding: 17px 12px 20px;
  border: 1px solid #ddc59b; border-radius: 20px; overflow: hidden;
  background: radial-gradient(#fff6ce 1.4px,transparent 1.4px) 0 0 / 15px 15px, linear-gradient(143deg,#eac89a,#f6deb2 50%,#efcb9e);
}
.chest { position: relative; width: clamp(144px,24vw,251px); aspect-ratio: 1.8; perspective: 500px; }
.chest-base, .chest-lid { position: absolute; left: 3%; width: 94%; border: 2px solid #815139; }
.chest-base {
  inset-block: 45% 4%; border-radius: 10% 10% 16% 16%;
  background: repeating-linear-gradient(4deg,#7d482926 0 2px,transparent 2px 15px),linear-gradient(#c37d56,#a76142);
  box-shadow: inset 0 -6px #874e3b4f,0 5px 0 #915c453d;
}
.chest-lid {
  inset-block: 6% 49%; z-index: 2; transform-origin: center bottom; transition: transform .55s cubic-bezier(.19,.7,.29,1.3);
  border-radius: 28% 28% 8% 8% / 61% 61% 10% 10%; box-shadow: inset 0 7px 0 #f2ab77a3;
  background: linear-gradient(90deg,transparent 10%,#efc169 10% 19%,transparent 19% 81%,#efc169 81% 90%, transparent 90%),linear-gradient(#d79160,#ae6845);
}
.chest-lid::after {
  content: '✦'; position: absolute; top: 70%; left: 42%; width: 16%; aspect-ratio: 1;
  display: grid; place-items: center; color: #754637; background: #f8d385; border: 2px solid #885535; border-radius: 27%; font: 19px/1 system-ui;
}
.chest-glow { position: absolute; inset: 5% 0 auto; text-align: center; opacity: 0; color: #a8533b; font: 900 clamp(22px,4vw,43px)/1 system-ui; }
.chest.open .chest-lid { transform: translateY(-44%) rotateX(48deg) rotate(-10deg); }
.chest.open .chest-glow { animation: chest-glow .65s ease-out both; }
@keyframes chest-glow { 0% { opacity: 0; transform: translateY(28px) scale(.5); } 48% { opacity: 1; transform: translateY(-10px) scale(1.12); } 100% { opacity: 1; transform: translateY(-19px); } }
.chest-keys { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; width: min(100%,570px); }
.chest-key {
  display: grid; place-items: center; gap: 5px; position: relative;
  min-height: 75px; border: 2px solid var(--team-edge); padding: 6px 3px; border-radius: 15px;
  background: var(--team-fill); font-size: clamp(12px,2vw,19px); font-weight: 950; box-shadow: 0 4px 0 var(--team-edge);
}
.chest-key:disabled { opacity: .64; box-shadow: none; }
.chest-key.used { background: #e1edd1; opacity: 1; }
.chest-key:not(:disabled):hover { transform: translateY(-2px); }
.chest-key img { width: clamp(34px,6vw,63px); height: clamp(31px,5vw,49px); object-fit: contain; }
.end-art .end-cat { width: 29%; height: auto; left: 14%; bottom: 11%; transform: rotate(-13deg); }
.team-finale .end-art > img:first-child { left: 58%; }
.finale-sparks { position: absolute; top: 8%; left: 9%; color: #986240; font: clamp(17px,3.5vw,40px)/1 system-ui; animation: chest-glow .65s ease-out both; }
.surprise-sticker { display: flex; align-items: center; gap: 8px; margin: 9px 0; color: #68483a; font-size: clamp(13px,2vw,18px); font-weight: 750; }
.surprise-sticker img { width: clamp(32px,5vw,57px); aspect-ratio: 1; object-fit: contain; padding: 4px; border: 2px solid #fff9e9; border-radius: 12px; background: #f5d9bf; transform: rotate(-8deg); }
.surprise-sticker strong { color: var(--red); }
@media (max-width: 770px) {
  .book { min-height: 368px; }
  .cover-copy { padding: 23px; }
  .chapter { gap: 7px; }
  .chapter-image { flex-basis: 44px; width: 44px; height: 44px; border-radius: 12px; }
  .chapter-sub { display: none; }
  .chapter-check { position: absolute; top: 3px; right: 7px; font-size: 15px; }
}
@media (max-width: 570px) {
  .top { min-height: 57px; }
  .shell { padding-inline: 13px; }
  .brand-book { width: 29px; height: 23px; }
  .brand-book::after { line-height: 17px; }
  .brand, .tools { gap: 5px; }
  .quiet { padding: 6px 7px; }
  .book { grid-template-columns: 1fr; min-height: 0; border-radius: 23px; }
  .cover-copy { padding: 19px 20px 21px; }
  .cover-copy h1 { font-size: clamp(45px,11vw,70px); margin: 7px 0 9px; }
  .cover-copy h1 span { display: inline; margin-left: .075em; }
  .cover-copy .primary { margin-top: 12px; min-height: 45px; }
  .start-actions { margin-top: 13px; }
  .start-actions .primary { margin-top: 0; }
  .solo { min-height: 43px; }
  .cover-art { min-height: 204px; height: clamp(204px,49vw,254px); }
  .cover-pipi { height: 84%; }
  .cover-cat { width: 24%; }
  .food-sticker { width: 16%; }
  .sun { width: 37%; left: 34%; top: 7%; }
  .chapter-menu { gap: 7px; margin-top: 16px; }
  .chapter { flex-direction: column; justify-content: center; text-align: center; min-height: 77px; border-radius: 14px; padding: 7px 2px; gap: 5px; }
  .chapter-image { flex-basis: 37px; width: 37px; height: 37px; padding: 4px; }
  .credit { margin-top: 15px; }
  .game-top { grid-template-columns: 1fr auto 1fr; gap: 6px; margin-bottom: 9px; }
  .progress { gap: 4px; }
  .progress li { height: 29px; min-width: 26px; font-size: 12px; padding-inline: 6px; }
  .team-turn { gap: 6px; margin-bottom: 9px; padding: 6px; }
  .turn-label { width: auto; font-size: 12px; white-space: nowrap; }
  .team-turn ol { gap: 3px; }
  .teammate { min-height: 25px; padding: 2px 4px; gap: 2px; }
  .teammate img { width: 18px; height: 18px; }
  .board { border-radius: 21px; }
  .mission { padding: 13px 7px 11px; }
  .board-bottom { min-height: 62px; gap: 8px; }
  .scene { border-radius: 15px; }
  .tray, .hide-spot { border-radius: 13px; }
  .tasting-room { grid-template-columns: 1fr; }
  .pipi-room { min-height: 132px; border-right: 0; border-bottom: 1px solid #cbad97; }
  .serving { display: grid; grid-template-columns: 1fr 2.45fr; gap: 6px; align-items: center; }
  .plate { width: 100%; min-height: 43px; font-size: 11px; }
  .bite { min-height: 55px; }
  .bite-meter { grid-column: 1 / -1; }
  .end { min-height: 240px; grid-template-columns: 33% 67%; }
  .end-art img { height: auto; width: min(85%,122px); bottom: 20%; }
  .end-copy { padding: 17px 12px; }
  .chest-stage { margin-inline: 9px; padding: 11px 7px 15px; }
}
@media (max-height: 490px) and (orientation: landscape) {
  .top { min-height: 47px; }
  main { padding-top: 9px; }
  .book { grid-template-columns: 43% 57%; min-height: 0; }
  .cover-copy { padding: 13px 20px; }
  .cover-copy h1 { font-size: clamp(42px,7vw,64px); margin: 7px 0; }
  .cover-copy .primary { min-height: 39px; margin-top: 8px; padding: 5px 14px; }
  .start-actions { margin-top: 9px; }
  .start-actions .primary { margin-top: 0; }
  .solo { min-height: 38px; }
  .cover-art { height: auto; }
  .chapter-menu { margin-top: 12px; }
  .chapter { min-height: 53px; padding: 5px 9px; }
  .game-top { margin-bottom: 7px; }
  .team-turn { margin-bottom: 7px; padding-block: 3px; }
  .mission { padding: 7px; }
  .mission h1 { font-size: 27px; }
  .mission p { margin-top: 3px; }
  .target { width: 34px; }
  .tray-visual, .spot-window { height: min(21vh,110px); }
  .kitchen, .hide-room { padding: 10px; }
  .board-bottom { min-height: 46px; padding: 6px 10px; }
  .pipi-room { min-height: 148px; }
  .chest-stage { padding-block: 8px 12px; gap: 6px; }
  .chest { width: 136px; }
  .chest-key { min-height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
