[data-wyr-desk="classic"] { --wyr-art: url("/assets/wyr/classic.webp"); --wyr-art-height: 28%; }
[data-wyr-desk="kids"] { --wyr-art: url("/assets/wyr/kids.webp"); }
[data-wyr-desk="icebreakers"] { --wyr-art: url("/assets/wyr/icebreakers.webp"); }
[data-wyr-desk="book-club"] { --wyr-art: url("/assets/wyr/book-club.webp"); }
body[data-wyr-desk] .game-shell {
  padding-block-start: clamp(18px, 3vw, 42px);
  background: url("/assets/riddle-desk-paper.webp") center top / 670px auto, #f9eddb;
}
[data-wyr-desk] .game-layout { grid-template-columns: minmax(0, 1fr); }
[data-wyr-desk] .game-aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.wyr-panel { border: 0; background: transparent; box-shadow: none; }
.wyr-panel::before { display: none; }
.wyr-title {
  max-width: 22ch;
  margin: 0 auto clamp(14px, 2vw, 26px);
  text-align: center;
  color: #142032;
  font: 700 clamp(2.65rem, 6.2vw, 6rem)/.94 var(--font-editorial);
  letter-spacing: -.055em;
  text-wrap: balance;
}
.wyr-title::after, .wyr-card-label::after {
  display: block;
  width: min(70%, 380px);
  height: 13px;
  margin: .15em auto 0;
  border-top: 5px solid #677345;
  border-radius: 50%;
  transform: rotate(-2deg);
  content: "";
}
.wyr-panel .game-toolbar { padding: 0; border: 0; background: transparent; }
.wyr-panel .game-toolbar .wyr-settings { justify-content: center; width: 100%; border: 0; }
.wyr-panel .wyr-settings .tool-btn, .wyr-panel .wyr-utilities .tool-btn { width: auto; }
.wyr-settings :is(.tool-btn, .btn) { min-height: 44px; height: auto; border-color: #7d754e; color: #293d32; background: #fff9ed; }
.wyr-settings .tool-btn[aria-pressed="true"] { border-color: #657746; background: #e7ead2; }
.wyr-settings svg { width: 1em; height: 1em; flex: 0 0 auto; }
.wyr-panel .game-board-wrap { padding: 0; overflow: visible; background: transparent; }
.wyr-stage { width: min(100%, 1000px); margin: auto; scroll-margin-top: 78px; }
.wyr-stage [hidden] { display: none; }
.wyr-count { margin: 10px 0; text-align: center; color: #566148; font-weight: 700; }
.wyr-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2.5vw, 26px); }
.wyr-card {
  display: grid;
  grid-template-rows: auto 1fr;
  position: relative;
  min-width: 0;
  padding: clamp(7px, 1.1vw, 14px);
  border: 2px solid #b09d78;
  border-radius: 22px 15px 23px 16px;
  background: #fff0d5 url("/assets/riddle-desk-paper.webp") center / 670px auto;
  color: #172538;
  box-shadow: 2px 5px 0 #b39b6855;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.wyr-card:active { transform: scale(.975); }
.wyr-card[aria-pressed="true"] { border-color: #586633; box-shadow: 0 0 0 2px #768249, 2px 5px 0 #b39b6855; }
.wyr-card-art {
  display: block;
  width: 100%;
  aspect-ratio: 1.62;
  background-image: var(--wyr-art);
  background-repeat: no-repeat;
  background-size: 200% auto;
  background-position: left var(--wyr-art-height, 50%);
  border-radius: 13px 10px 9px 13px;
  clip-path: polygon(1% 2%,14% 0,27% 1%,41% 0,64% 1%,76% 0,98% 2%,100% 12%,99% 45%,100% 71%,98% 98%,81% 99%,69% 97%,56% 100%,44% 98%,23% 100%,1% 98%,0 72%,1% 53%,0 31%);
}
.wyr-card[data-pick="b"] .wyr-card-art { background-position: right var(--wyr-art-height, 50%); }
.wyr-stage-later .wyr-card-art { aspect-ratio: 4.25; }
.wyr-card-label {
  align-self: center;
  display: block;
  padding: clamp(8px, 1.8vw, 20px) 4px 2px;
  font: 700 clamp(1.38rem, 3.2vw, 2.8rem)/1.04 var(--font-editorial);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.wyr-card-label::after { width: min(56%, 205px); height: 8px; border-top-width: 3px; }
.wyr-choice-stamp {
  display: none;
  position: absolute;
  top: 9px;
  right: 9px;
  width: 45px;
  aspect-ratio: 1;
  place-items: center;
  border: 4px solid #f9efd1;
  border-radius: 50%;
  background: #566631;
  color: white;
  font-weight: 800;
}
.wyr-card[aria-pressed="true"] .wyr-choice-stamp { display: grid; animation: wyr-stamp-in .25s ease-out both; }
.wyr-response { margin: 14px auto 0; text-align: center; }
.wyr-response[hidden] { display: none; }
.wyr-response p { margin: 0 0 10px; padding: 9px 14px; background: #f1e3be; border-radius: 12px 5px 14px 7px; color: #344028; font: 700 clamp(1.08rem, 2.3vw, 1.5rem)/1.2 var(--font-editorial); }
.wyr-response.is-revealed { animation: wyr-stamp-in .25s ease-out both; }
.wyr-finish { text-align: center; padding: 10px 12px; }
.wyr-panel .completion-drawer {
  display: none;
  position: relative;
  inset: auto;
  width: min(100%, 650px);
  margin: 10px auto;
  padding: 16px 44px 17px 18px;
  border: 1px solid #a68f5c;
  background: #fff2ce;
  transform: none;
  box-shadow: none;
}
.wyr-panel .completion-drawer.is-visible { display: block; }
.wyr-panel .completion-drawer h2 { color: #43502d; }
.wyr-utilities { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; margin: 15px auto 0; }
@keyframes wyr-stamp-in { from { opacity: .2; transform: translateY(4px) scale(.93); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .wyr-choices { grid-template-columns: minmax(0, 1fr); }
  .wyr-title { max-width: 15ch; }
  .wyr-panel .game-toolbar .wyr-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wyr-panel .wyr-settings .tool-btn { width: 100%; }
  .wyr-settings .btn { justify-self: center; grid-column: 1 / -1; }
  .wyr-card-art { aspect-ratio: 2.25; }
}
@media (prefers-reduced-motion: reduce) {
  .wyr-card, .wyr-card[aria-pressed="true"] .wyr-choice-stamp, .wyr-response.is-revealed { animation: none; transition: none; }
  .wyr-card:active { transform: none; }
}
