* { box-sizing: border-box; }

body {
  --world-image: url("assets/stages/01.jpg");
  --table-image: url("assets/stages/table-01.jpg");
  --accent: #106c68;
  --ink: #26352f;
  --muted: #616c62;
  --page: #f8f4e6;
  --page-light: #fffcf2;
  --edge: #895323;
  --surface: #d8a765;
  --grain: #eaca88;
  --board-radius: 42px / 28px;
  --wood: repeating-linear-gradient(178deg, transparent 0 14px, #784a1c13 15px, transparent 16px 34px);
  --cloth: repeating-linear-gradient(42deg, #81532316 0 2px, transparent 2px 11px);
  --marquetry: repeating-linear-gradient(55deg, #145e55 0 7px, #e8b963 7px 10px, #713e23 10px 13px, #e8b963 13px 16px);
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(ellipse at 50% 19%, var(--page-light), var(--page) 68%);
  font-family: "Nunito", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body[data-world="1"] {
  --world-image: url("assets/stages/02.jpg");
  --table-image: url("assets/stages/table-02.jpg");
  --accent: #584777;
  --edge: #573a2b; --surface: #a96d45; --grain: #c89561;
  --board-radius: 28px 28px 38px 38px;
  --wood: repeating-linear-gradient(1deg,#40282032 0 1px,transparent 2px 10px, #f9bf7e20 12px, transparent 13px 26px);
  --cloth: repeating-linear-gradient(0deg,transparent 0 50px,#56342288 51px 53px, #f3b98560 54px 55px);
  --marquetry: repeating-linear-gradient(90deg,#b18b67 0 13px,#5c483d 13px 15px,#b18b67 15px 17px);
}

body[data-world="2"] {
  --world-image: url("assets/stages/03.jpg");
  --table-image: url("assets/stages/table-03.jpg");
  --accent: #943622;
  --edge: #6d302a; --surface: #ad493a; --grain: #c96648;
  --board-radius: 26px 26px 14px 14px;
  --wood: repeating-linear-gradient(135deg,#f8c86522 0 1px,transparent 1px 20px);
  --cloth: repeating-linear-gradient(45deg,#f8c86520 0 1px,transparent 1px 20px);
  --marquetry: repeating-linear-gradient(90deg,#dfb66a 0 4px,#9c513a 4px 6px,#eed088 6px 17px,#a66340 17px 20px);
}

body[data-world="3"] {
  --world-image: url("assets/stages/04.jpg");
  --table-image: url("assets/stages/table-04.jpg");
  --accent: #387069;
  --edge: #5a837c; --surface: #9bcaba; --grain: #bdd9c9;
  --board-radius: 47px;
  --wood: repeating-linear-gradient(90deg,transparent 0 30px,#3875672b 31px,#fff5 32px);
  --cloth: repeating-linear-gradient(0deg,transparent 0 30px,#3875672b 31px,#fff5 32px);
  --marquetry: repeating-linear-gradient(90deg,#bbd4c8 0 8px,#a4c7b9 8px 16px);
}

body[data-world="4"] {
  --world-image: url("assets/stages/05.jpg");
  --table-image: url("assets/stages/table-05.jpg");
  --accent: #1b7174;
  --edge: #427f81; --surface: #8ac7c4; --grain: #b9e0d0;
  --board-radius: 45% 45% 32px 32px / 24px 24px 35px 35px;
  --wood: repeating-radial-gradient(ellipse at 50% 140%,transparent 0 31px,#fff8 32px,#ffffff10 34px 49px);
  --cloth: repeating-conic-gradient(at 50% 115%,transparent 0deg 14deg,#fff3 14.3deg 14.6deg);
  --marquetry: repeating-linear-gradient(45deg,#dba8a0 0 6px,#ffdcc4 6px 10px,#6ba9a3 10px 15px);
}

body[data-world="5"] {
  --world-image: url("assets/stages/06.jpg");
  --table-image: url("assets/stages/table-06.jpg");
  --accent: #55743c;
  --edge: #735436; --surface: #c7ac71; --grain: #d6c48d;
  --board-radius: 46% 39% 38% 42% / 30px 35px 32px 34px;
  --wood: repeating-radial-gradient(ellipse at 40% 48%, transparent 0 16px,#7d613d38 17px 19px,#e7d6aa44 20px 22px);
  --cloth: linear-gradient(20deg,#b18c5855,transparent 62%);
  --marquetry: repeating-linear-gradient(67deg,#4d6947 0 9px,#99a76e 9px 12px,#6d7348 12px 18px);
}

body[data-world="6"] {
  --world-image: url("assets/stages/07.jpg");
  --table-image: url("assets/stages/table-07.jpg");
  --accent: #29718e;
  --edge: #5086a5; --surface: #b4dce4; --grain: #d2edf1;
  --board-radius: 22px 42px 22px 42px;
  --wood: repeating-linear-gradient(57deg,transparent 0 70px,#efffff8c 72px,transparent 75px 120px);
  --cloth: repeating-linear-gradient(-38deg,transparent 0 42px,#7eabc644 43px 45px,transparent 46px 92px);
  --marquetry: repeating-linear-gradient(115deg,#81b2c7 0 10px,#d3f2f1 11px 18px,#a0d3de 18px 25px);
}

body[data-world="7"] {
  --world-image: url("assets/stages/08.jpg");
  --table-image: url("assets/stages/table-08.jpg");
  --accent: #78532f;
  --edge: #84603d; --surface: #c39765; --grain: #d2af7e;
  --board-radius: 46% / 40px;
  --wood: repeating-linear-gradient(90deg,transparent 0 55px,#5d422966 56px 58px,#e9c690aa 59px 60px);
  --cloth: repeating-linear-gradient(88deg,transparent 0 18px,#75553620 19px 20px,transparent 22px 34px);
  --marquetry: repeating-linear-gradient(55deg,#ccb184 0 3px,#f3d399 4px 7px,#a77e56 8px 11px);
}

body[data-world="8"] {
  --world-image: url("assets/stages/09.jpg");
  --table-image: url("assets/stages/table-09.jpg");
  --accent: #744325;
  --edge: #75563c; --surface: #c19468; --grain: #e0b583;
  --board-radius: 24px;
  --wood: repeating-radial-gradient(circle at 98% 0%,transparent 0 44px,#815d3555 45px 46px,transparent 48px 56px);
  --cloth: repeating-linear-gradient(90deg,transparent 0 47px,#f1cf9a38 48px 49px,transparent 50px);
  --marquetry: repeating-linear-gradient(90deg,#846444 0 6px,#d3a869 6px 12px,#ab8053 12px 17px);
}

body[data-world="9"] {
  --world-image: url("assets/stages/10.jpg");
  --table-image: url("assets/stages/table-10.jpg");
  --accent: #395b87;
  --edge: #495e82; --surface: #859bbe; --grain: #a6b9d2;
  --board-radius: 34px 19px 34px 19px;
  --wood: repeating-linear-gradient(135deg,transparent 0 52px,#dae3f555 54px,#64799c44 56px,transparent 58px 96px);
  --cloth: radial-gradient(circle,#daf2f166 1px,transparent 2px) 0 0/15px 15px;
  --marquetry: repeating-linear-gradient(110deg,#425674 0 15px,#92e0da 15px 21px,#6681a0 21px 24px);
}

button { color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
button:focus-visible { outline: 3px solid #c34109; outline-offset: 4px; }
header { max-width: 1132px; min-height: 64px; padding: 8px 24px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
header b { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 900; letter-spacing: .06em; }
.logo { display: inline-grid; place-items: center; width: 35px; height: 35px; border-radius: 12px 12px 15px 15px; border: 2px solid #304c40; color: #ffe19a; background: linear-gradient(145deg,#448379,#265a50); box-shadow: inset 0 2px #fff4, 0 2px #b7a779; font: normal 24px/1 sans-serif; }
header button, .route button, button.route, #routeButton { border: 1px solid #9aab99; background: #fffbef; border-radius: 99px; padding: 8px 16px; font-weight: 750; box-shadow: 0 2px #d5d6bf; }
header button:hover, .route button:hover { background: #e9efe1; }
main { max-width: 1132px; margin: 0 auto; padding: 0 22px 25px; }
.panorama { position: relative; isolation: isolate; overflow: hidden; height: clamp(188px,21vw,260px); border-radius: 30px 30px 14px 14px; border: 1px solid #806c462f; background: #d9efe3; box-shadow: 0 2px 0 #d7c9a0; }
#scene { width: 100%; height: 100%; display: block; }
#patient { position: absolute; bottom: -1%; left: 61%; transform: translateX(-50%); width: min(29%,215px); height: 88%; object-fit: contain; pointer-events: none; }
.caption { position: absolute; left: 5%; top: 50%; transform: translateY(-50%); max-width: 42%; color: #263c35; text-shadow: 0 1px 2px #fff; }
.caption span { font-size: 15px; font-weight: 760; }
#chapter { display: inline-block; padding: 5px 12px; border: 1px solid #375d50; border-radius: 16px; background: #315b50; color: #fff8dc; text-shadow: none; font-size: 12px; letter-spacing: .1em; }
h1 { margin: 9px 0 4px; font-size: clamp(30px,4.7vw,58px); letter-spacing: .035em; font-weight: 900; line-height: 1.13; }
.play { max-width: 992px; margin: auto; }
.players { display: flex; align-items: center; justify-content: center; gap: clamp(20px,3.5vw,44px); min-height: 78px; padding: 12px 0 11px; }
.person { display: grid; grid-template-columns: 43px auto; gap: 4px 10px; align-items: center; }
.avatar { display: grid; place-items: center; grid-row: span 2; width: 43px; height: 43px; border-radius: 15px; border: 1px solid #aa9d7a; background: linear-gradient(145deg,#fff0c2,#f3cf85); font-size: 29px; overflow: hidden; }
#p1 .avatar { border-color: #a4baad; background: linear-gradient(145deg,#e0f4e9,#bcd9c9); }
.mini-patient, .avatar canvas { display: block; width: 37px; height: 37px; }
.name { font-size: 16px; font-weight: 850; white-space: nowrap; }
.name small { display: inline-block; vertical-align: 1px; padding: 1px 7px; margin-left: 6px; border-radius: 15px; background: #e4eadb; color: #435346; font-size: 12px; }
.hearts { font: 18px/1 sans-serif; letter-spacing: 2px; color: #bd4245; }
.empty { color: #aeb5a7; }
.middle { color: #998059; font-size: 20px; }

.table {
  position: relative; isolation: isolate; border: 6px solid var(--edge); border-radius: var(--board-radius);
  background: linear-gradient(120deg,#fff4,transparent 25% 73%,#493a3233), var(--cloth), var(--wood), linear-gradient(var(--grain),var(--surface));
  box-shadow: inset 0 2px 0 #fff8, inset 0 -4px 0 #432b262e, 0 3px 0 var(--edge), 0 8px 0 color-mix(in srgb,var(--edge),#2c2720 25%), 0 15px 13px -8px #4b39276b;
  padding: 17px clamp(15px,4vw,56px) 22px;
}
.table::before, .table::after { content: ""; position: absolute; border-radius: inherit; pointer-events: none; z-index: -1; }
.table::before { inset: 3px; padding: 5px; background: var(--marquetry); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.table::after { inset: 9px; border: 1px solid #fff5; box-shadow: 0 0 0 1px #5a402c33; }
.turn { display: flex; align-items: center; justify-content: space-between; min-height: 32px; gap: 7px; }
.turn strong, .turn small { background: #fffae9f5; color: #344237; border: 1px solid #6c604229; border-radius: 14px; padding: 5px 11px; box-shadow: 0 1px 0 #6f52352b; }
.turn strong { font-size: 15px; }
.turn small { white-space: nowrap; font-size: 12px; }
.boxes { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px clamp(4px,2vw,25px); padding: 8px 0 3px; }
.box { position: relative; isolation: isolate; width: 100%; height: clamp(74px,7.5vw,97px); border: 0; border-radius: 13px; padding: 0; background: transparent; }
.box::before { content: ""; position: absolute; inset: 72% 7% -5%; border-radius: 50%; background: radial-gradient(ellipse,#4730217a,transparent 70%); pointer-events: none; }
.chest {
  position: absolute; bottom: 0; left: 50%; height: 96%; width: auto; aspect-ratio: 572/476;
  max-width: 96%; transform: translateX(-50%); transition: transform .16s ease;
}
.lid {
  position: absolute; inset: 0; background: url("assets/chests/closed.png") center bottom/contain no-repeat;
  filter: drop-shadow(0 3px 2px #51371d55);
}
.number {
  position: absolute; left: 47%; top: 59%; transform: translate(-50%,-50%);
  color: #623414; font: 900 clamp(18px,2.1vw,26px)/1 "Nunito",sans-serif;
  text-shadow: 0 1px #ffe393; font-variant-numeric: tabular-nums;
}
@media (hover:hover) {
  .box:enabled:hover .chest { transform: translate(-50%,-5px) rotate(-2deg); }
}
.box:enabled:active .chest { transform: translate(-50%,1px) scale(.97); }
.box:focus-visible .chest { transform: translate(-50%,-3px); }
.opened .chest { height: 107%; aspect-ratio: 576/684; }
.opened .lid { background-image: url("assets/chests/open.png"); transform-origin: center bottom; animation: lift-lid .26s ease-out both; }
.token {
  position: absolute; inset: 45% auto auto 49%; width: 52%; height: 20%;
  display: grid; place-items: center; transform: translateX(-50%) rotate(-13deg); border-radius: 35px;
  border: 1.5px solid #fff5e2; color: white; box-shadow: inset 0 -3px #1a1c282e,inset 8px 3px #ffffff2f,0 3px 3px #1d282754;
  text-shadow: 0 1px 1px #42293870; font: 800 clamp(10px,1.3vw,15px)/1 sans-serif;
  animation: pill-pop .33s cubic-bezier(.16,.72,.3,1.35) both;
}
@keyframes lift-lid { from { transform: scaleY(.77); } to { transform: scaleY(1); } }
@keyframes pill-pop { from { opacity: 0; transform: translate(-50%,25%) scale(.5) rotate(-13deg); } to { opacity: 1; transform: translateX(-50%) scale(1) rotate(-13deg); } }
.pink { background-color: #bb3977; }
.blue { background-color: #316aa3; }
.red { background-color: #bf4539; }
.owner { position: absolute; left: 50%; bottom: 11%; transform: translateX(-50%); white-space: nowrap; border-radius: 10px; padding: 1px 5px; background: #274237; color: #fffaf0; font-size: 11px; line-height: 1.25; font-weight: 750; }
.person.active .avatar { outline: 2px solid #287d66; outline-offset: 2px; }
.legend, .route { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; }
.legend { margin: 24px auto 8px; gap: clamp(12px,3vw,40px); color: #415047; font-size: 14px; font-weight: 650; }
.legend span { display: flex; align-items: center; gap: 8px; }
.pip { display: inline-block; width: 21px; height: 11px; border: 1px solid #45434055; border-radius: 10px; box-shadow: inset 8px 0 #fff7,inset 0 2px #fff4; transform: rotate(-32deg); }
.route { gap: 10px; color: #506053; font-size: 13px; padding: 10px 0 0; }
dialog { width: min(410px,90vw); max-height: 86vh; padding: 25px; color: #2a463c; background: radial-gradient(ellipse at 50% 0,#fffdf2,#f9efd7); border: 3px solid #49756a; border-radius: 25px; text-align: center; box-shadow: inset 0 0 0 3px #fff9,0 7px 0 #254c47,0 13px 35px #272a2044; }
dialog::backdrop { background: #22342dcc; }
dialog h2 { margin: 8px 0 10px; font-size: 25px; }
dialog p { white-space: pre-line; line-height: 1.75; margin: 0 0 18px; }
.seal { color: #966d2e; font-size: 34px; }
dialog button { border: 1px solid #21574f; padding: 11px 24px; border-radius: 15px; background: linear-gradient(#30776b,#24635b); box-shadow: inset 0 1px #fff4,0 3px #164b44; color: white; font-weight: 800; }

@media(max-width:650px) {
  header { min-height: 53px; padding: 7px 14px; }
  header b { font-size: 18px; }
  header button { font-size: 13px; }
  .logo { width: 30px; height: 30px; font-size: 20px; }
  main { padding: 0 8px 18px; }
  .panorama { height: clamp(163px,37vw,196px); border-radius: 19px 19px 10px 10px; }
  #patient { left: 67%; width: 33%; height: 83%; }
  .caption { left: 4%; max-width: 45%; }
  .caption span { font-size: 12px; }
  #chapter { font-size: 11px; padding: 4px 8px; }
  h1 { margin: 7px 0 5px; font-size: clamp(25px,6.5vw,38px); }
  .players { min-height: 68px; gap: clamp(10px,4vw,26px); padding: 10px 0; }
  .person { grid-template-columns: 32px auto; gap: 3px 5px; }
  .avatar { width: 32px; height: 34px; border-radius: 12px; font-size: 23px; }
  .mini-patient, .avatar canvas { width: 31px; height: 32px; }
  .name { font-size: 13px; }
  .name small { font-size: 11px; padding: 1px 5px; margin-left: 3px; }
  .hearts { font-size: 15px; letter-spacing: 1px; }
  .middle { font-size: 13px; }
  .table { padding: 12px 8px 14px; border-width: 4px; }
  .table::before { inset: 2px; padding: 3px; }
  .table::after { inset: 5px; }
  .turn { min-height: 27px; }
  .turn strong, .turn small { padding: 4px 7px; }
  .turn strong { font-size: 13px; }
  .turn small { font-size: 11px; }
  .boxes { gap: 12px 2px; padding: 8px 0 3px; }
  .box { height: clamp(55px,13vw,72px); }
  .owner { font-size: 9px; bottom: 8%; }
  .legend { font-size: 11px; gap: 11px; margin-top: 19px; }
  .legend span { gap: 4px; }
  .pip { width: 16px; height: 9px; }
  .route { padding-top: 6px; }
}
@media(max-width:370px) {
  .players { gap: 8px; }
  .legend { gap: 7px; }
  .person { grid-template-columns: 28px auto; }
  .avatar { width: 28px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: .01ms !important; }
}

/* The scene and playing surface share a rear edge. The score plaques sit on the table. */
.play { position: relative; margin-top: -8px; }
.players { position: absolute; z-index: 1; top: 14px; left: 3.6%; right: 3.6%; min-height: auto; padding: 0; justify-content: space-between; pointer-events: none; }
.person { padding: 5px 10px 5px 6px; gap: 3px 8px; grid-template-columns: 36px auto; border-radius: 13px; border: 1px solid #977f5d; background: linear-gradient(155deg,#fff8e7,#f6e8cc); box-shadow: inset 0 1px 1px #fff,0 2px 1px #58432b4d; }
.person.active { border-color: #457b68; }
.avatar { width: 36px; height: 37px; }
.middle { display: none; }
.turn { flex-direction: column; justify-content: center; margin: 0 auto; width: calc(100% - 330px); min-height: 50px; gap: 2px; }
.turn strong { text-align: center; padding: 4px 12px; }
.turn small { background: #fff0d299; font-size: 10px; padding: 0 8px; box-shadow: none; }
#patient { bottom: -2%; }
@media(max-width:750px) {
  .play { margin-top: -6px; }
  .players { top: 11px; left: 5%; right: 5%; }
  .person { padding: 3px 7px 3px 4px; grid-template-columns: 30px auto; gap: 3px 5px; border-radius: 11px; }
  .avatar { width: 30px; height: 31px; }
  .table { padding-top: 59px; }
  .turn { flex-direction: row; width: auto; min-height: 42px; justify-content: space-between; margin-inline: 3%; }
  .turn small { font-size: 11px; padding: 3px 7px; background: #fff7e6; }
  .turn strong { text-align: left; padding: 4px 7px; }
}

header button, .route button { min-height: 44px; }

/* The world continues above, around and below the physical table. */
html { background:#343e43; }
body { position:relative; isolation:isolate; background:transparent; }
#stageBackdrop {
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background-color:var(--edge);
  background-image:linear-gradient(0deg,#120f2036,transparent 35%,transparent 80%,#130e1e33),var(--world-image);
  background-position:center,center 50%; background-size:cover; background-repeat:no-repeat;
}
header { max-width:1160px; padding-top:12px; }
header b { color:#fff6dc; background:linear-gradient(145deg,color-mix(in srgb,var(--accent),black 18%),var(--accent)); border:1px solid #fff5; border-radius:18px; padding:4px 15px 4px 5px; box-shadow:0 3px 8px #2217244d; text-shadow:0 1px #332e244d; }
.logo { background:#fff0b9; color:var(--accent); border-color:#fff0b9; }
header button,.route button { background:#fffae9f5; color:#303a31; border:1px solid #ffffff85; box-shadow:0 2px 0 #342b2b75,0 4px 12px #21152238; }
main { max-width:1160px; }
.panorama { height:clamp(190px,31vh,330px); overflow:visible; border:0; border-radius:0; box-shadow:none; background:none; }
#scene { visibility:hidden; }
.caption { left:3.5%; top:52%; color:white; text-shadow:0 2px 2px #171710,0 3px 12px #171710,0 0 4px #171710; }
.caption h1 { line-height:1.06; text-shadow:0 2px 0 #262a27,0 3px 4px #242b26,0 0 15px #0e1515b3; }
#chapter { background:var(--accent); border-color:#fff9; box-shadow:0 2px 8px #29202a85; }
#tableName { display:inline-block; font-weight:800; padding:3px 10px; background:#231d22a3; border-radius:14px; }
#patient { left:55%; bottom:-5px; width:clamp(175px,23vw,285px); height:96%; filter:drop-shadow(2px 4px 6px #291a2440); }
.play { width:min(100%,1010px); max-width:none; }
.table {
  background:var(--table-image) center/100% 100% no-repeat,var(--surface);
  border:3px solid color-mix(in srgb,var(--edge),black 15%);
  box-shadow:inset 0 2px 4px #fff5,0 3px 0 var(--edge),0 8px 0 color-mix(in srgb,var(--edge),black 28%),0 13px 14px #1e171b70;
  padding:clamp(26px,3vw,39px) clamp(24px,6vw,83px) clamp(23px,2.6vw,38px);
}
.table::before,.table::after { display:none; }
.players { top:24px; left:6.3%; right:6.3%; }
.person { box-shadow:inset 0 1px 1px #fff,0 3px 7px #372a2859; }
.person.active { border:2px solid var(--accent); padding:4px 9px 4px 5px; }
.person.active .avatar { outline-color:var(--accent); }
.boxes { gap:9px clamp(4px,1.4vw,18px); padding-top:4px; }
.legend { width:fit-content; max-width:100%; margin:23px auto 0; padding:7px 18px; border-radius:25px; background:#242426d9; color:#fff9e7; border:1px solid #ffffff57; box-shadow:0 2px 7px #1f20213d; }
.route { padding-top:9px; }
dialog { border-color:var(--accent); }
dialog::backdrop { background:#142028b8; backdrop-filter:blur(3px); }
@media(max-width:750px) {
  header { padding:7px 12px; }
  header b {font-size:16px; padding:3px 9px 3px 3px;}
  .panorama { height:clamp(153px,25svh,226px); }
  .caption { left:3%; max-width:51%; top:46%; }
  #patient { left:67%; width:36%; height:96%; }
  .table { padding:58px clamp(10px,3.4vw,26px) 20px; }
  .players {top:10px;left:6.5%;right:6.5%;}
  .person.active {padding:2px 6px 2px 3px;}
  .boxes {gap:8px 1px;}
  .legend {gap:10px;padding:6px 10px;font-size:11px;}
  #tableName {padding:3px 7px;}
}
@media(max-width:385px) {header {padding:6px 8px;} header b{font-size:15px;} header button{padding:7px 11px;} .legend {gap:6px;padding:6px 8px;} }
@media(max-height:600px) and (min-width:751px) { .panorama {height:148px;} .box{height:68px;} .table{padding-block:20px;} }
.box .lid {filter:drop-shadow(0 1px 1px #372b2470) drop-shadow(0 3px 2px #2d2226a6);}
.box::before {inset:72% 9% -2%; background:radial-gradient(ellipse,#29232b8f,transparent 69%);}
@media(min-width:751px) {
  .box:not(.opened) .lid { transform:scale(1.07); transform-origin:50% 94%; }
}
