/* Whisker Café’s surrounding controls use the palette of the playable counter. */
[data-demo-stage-panel="whisker-cafe"],
.bd-app[data-studio-world="whisker-cafe"] {
  --cafe-cream: #fff6e6;
  --cafe-paper: #f5e4cb;
  --cafe-ink: #412b20;
  --cafe-line: #c8a886;
  --cafe-coral: #a84331;
  --cafe-coral-dark: #823221;
  --cafe-jade: #285447;
  --cafe-jade-dark: #1c392f;
  --cafe-jade-paper: #dceae0;
  --cafe-gold: #dfb678;
  --cafe-font: Commissioner, system-ui, sans-serif;
  --cafe-art: var(--studio-art, url("/_releases/au-20261125-r6-home-play/assets/atlas-cafe.webp"));
}

.bd-app [data-demo-stage-panel="whisker-cafe"] {
  background: #2e4d40;
  border-color: #ac8056;
}

.bd-app [data-demo-stage-panel="whisker-cafe"] .is-cafe {
  color: var(--cafe-ink);
  font-family: var(--cafe-font);
}

.bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .is-cafe .tr-stage-bar {
  color: var(--cafe-ink);
  background: linear-gradient(110deg, var(--cafe-cream), var(--cafe-paper) 70%, #efc9a2);
  border-bottom: 1px solid #996a43;
  box-shadow: inset 0 -2px 0 #f8d9a6;
  padding-block: 8px 9px;
}

.bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .is-cafe .tr-stage-bar .tr-stage-bar-top {
  gap: 6px 12px;
}

.bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .is-cafe .tr-stage-bar .tr-bar-title-row {
  gap: 5px 8px;
}

.bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .is-cafe .tr-stage-bar [data-wc-level-badge] {
  background: #f3d6b5;
  border: 1px solid #d2a77f;
  color: #683927;
  border-radius: 5px;
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 720;
}

.bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .is-cafe .tr-stage-bar [data-wc-turn-badge] {
  background: var(--cafe-jade-paper);
  border: 1px solid #9fb8a4;
  color: #244739;
  font-weight: 750;
}

.bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .is-cafe .tr-stage-bar [data-wc-turn-badge][data-turn-state="director"] {
  background: #e8dccb;
  color: #644b38;
  border-color: #c2ab91;
}

/* A served order: the board stays and the practitioner brings the next guest. */
.bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .is-cafe .tr-stage-bar [data-wc-turn-badge][data-turn-state="served"] {
  background: #f8dfaf;
  color: #573921;
  border-color: #996a35;
}

.bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .is-cafe .tr-stage-bar [data-wc-hint] {
  color: #5b402e;
  font-size: 12px;
  line-height: 1.35;
}

.bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .is-cafe .tr-stage-bar [data-wc-star-box] {
  border: 1px solid #996a35;
  background: #f8dfaf;
  color: #573921;
}

.bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .is-cafe .tr-stage-bar .tr-stage-btn:not([hidden]) {
  min-height: 35px;
  border: 1px solid var(--cafe-line);
  border-radius: 7px;
  color: var(--cafe-ink);
  background: var(--cafe-cream);
  box-shadow: 0 1px 0 rgb(109 77 56 / 16%);
  font-family: var(--cafe-font);
  font-weight: 720;
}

.bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .is-cafe .tr-stage-bar .tr-stage-btn:hover:enabled {
  color: var(--cafe-ink);
  background: #f6dfc0;
  border-color: #9c6c4d;
}

.bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .is-cafe .tr-stage-bar .tr-stage-btn:disabled {
  opacity: 0.58;
  box-shadow: none;
}

.bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .is-cafe .tr-stage-bar :is([data-wc-serve], [data-wc-next]):not([hidden]) {
  color: #fff8ee;
  background: var(--cafe-coral);
  border-color: var(--cafe-coral-dark);
  box-shadow: 0 1px 0 var(--cafe-coral-dark), inset 0 1px 0 rgb(255 244 220 / 25%);
}

.bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .is-cafe .tr-stage-bar :is([data-wc-serve], [data-wc-next]):hover:enabled {
  color: #fff8ee;
  background: var(--cafe-coral-dark);
}

.bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .is-cafe .tr-stage-bar [data-wc-shop-btn]:not([hidden]) {
  color: #fff6e5;
  background: var(--cafe-jade);
  border-color: #203d32;
}

.bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .is-cafe .tr-stage-bar [data-wc-shop-btn]:hover {
  color: #fff6e5;
  background: var(--cafe-jade-dark);
}

.bd-app [data-demo-stage-panel="whisker-cafe"] :is(.tr-stage-btn, .wc-canvas, .wc-shop-dialog button, .bs-dp-star):focus-visible,
.bd-app[data-studio-world="whisker-cafe"] :is(.bd-child-chef-btn, .bd-kid-mood-btn, [data-board-idx]):focus-visible {
  outline: 2px solid #0b503f;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #ffe5bd;
}

.bd-app [data-demo-stage-panel="whisker-cafe"] .wc-canvas:focus-visible {
  outline-offset: -4px;
}

.bd-app [data-demo-stage-panel="whisker-cafe"] .wc-canvas[aria-busy="true"] {
  cursor: wait;
}

.bd-app [data-demo-stage-panel="whisker-cafe"] .tr-stage-wrap {
  background: #325b4c;
}

.bd-app[data-studio-world="whisker-cafe"] .bd-stage-head {
  background-color: var(--cafe-jade-dark);
  border-color: #967254;
}

.bd-app[data-studio-world="whisker-cafe"] [data-demo-game-tab="whisker-cafe"][aria-selected="true"] {
  color: var(--cafe-cream);
  background: var(--cafe-jade);
  border-color: #b28661;
}

.bd-app[data-studio-world="whisker-cafe"] [data-cd-panel="coplay"] :is([aria-pressed="true"], [data-wc-status-pill]),
.bd-app[data-studio-world="whisker-cafe"] [data-cd-panel="boards"] [data-board-idx][aria-pressed="true"] {
  color: #fff6e5;
  background: var(--cafe-jade);
  border-color: #bd8b58;
}

.bd-app[data-studio-world="whisker-cafe"][data-demo-role="clinician"] [data-cd-panel="boards"] {
  background-image: linear-gradient(110deg, rgb(28 52 43 / 97%) 50%, rgb(28 52 43 / 86%)), var(--cafe-art);
  background-size: cover;
  background-position: center;
  border-color: #80644b;
}

.bd-app[data-studio-world="whisker-cafe"] .bd-child-strip {
  background: var(--cafe-jade-dark);
  color: #fff1dd;
}

.bd-app[data-studio-world="whisker-cafe"] .bd-kid-mood-btn {
  border-color: #789184;
  background: #294d40;
  color: #f9ead7;
}

.bd-app[data-demo-root][data-studio-world="whisker-cafe"] .bd-kid-mood-btn[aria-pressed="true"] {
  background: #f0d3ae;
  border-color: #e6b789;
  color: #452b1f;
}

.bd-app[data-studio-world="whisker-cafe"] .bd-child-chef-btn {
  border-color: #d1a57a;
  background: #f5dfb9;
  color: #513721;
}

.bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .bs-diegetic-prompt.is-whisker-cafe {
  background: #fff6e7;
  border-color: #a86844;
  color: #432d23;
  box-shadow: 0 5px 16px rgb(43 32 22 / 26%), inset 0 0 0 2px #f3ddba;
}

.bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .bs-diegetic-prompt.is-whisker-cafe:is(.is-completing, .is-completed) {
  border-color: #32684f;
  box-shadow: 0 0 0 3px rgb(50 104 79 / 30%);
}

.bd-app [data-demo-stage-panel="whisker-cafe"] .bs-diegetic-prompt.is-whisker-cafe .bs-dp-skin-badge {
  color: #f9e7c8;
  background: var(--cafe-jade);
  border-color: #477464;
  border-radius: 3px;
  padding-inline: 5px;
}

.bd-app [data-demo-stage-panel="whisker-cafe"] .bs-diegetic-prompt.is-whisker-cafe .bs-dp-title {
  color: #46281f;
  font-family: var(--cafe-font);
}

.bd-app [data-demo-stage-panel="whisker-cafe"] .bs-diegetic-prompt.is-whisker-cafe .bs-dp-cue {
  color: #604333;
}

.bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .bs-diegetic-prompt.is-whisker-cafe :is(.bs-dp-toggle, .bs-dp-star, .bs-dp-speak) {
  color: #573721;
  background: #fff9ec;
  border-color: #ab805f;
}

.bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .bs-diegetic-prompt.is-whisker-cafe .bs-dp-star[aria-pressed="true"] {
  background: #efd1a0;
  border-color: #825234;
}

.bd-app [data-demo-stage-panel="whisker-cafe"] .wc-shop-dialog {
  border-color: #bd8e68;
  font-family: var(--cafe-font);
}

.bd-app [data-demo-stage-panel="whisker-cafe"] .wc-shop-shell {
  background: #f6e5cc;
}

html[data-theme="dark"] .bd-app [data-demo-stage-panel="whisker-cafe"] .wc-shop-shell {
  background: var(--cafe-jade-dark);
}

html[data-theme="dark"] .bd-app [data-demo-stage-panel="whisker-cafe"] :is(.wc-shop-header, .wc-shop-footer) {
  background: #284b3e;
  border-color: #87684c;
}

@media (pointer: coarse) {
  .bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .is-cafe .tr-stage-bar .tr-stage-btn:not([hidden]) {
    min-block-size: 44px;
    min-inline-size: 44px;
  }
}

@media (max-width: 480px) {
  .bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .is-cafe .tr-stage-bar {
    padding-block: 5px 7px;
  }

  .bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .is-cafe .tr-stage-bar .tr-toolbar-group {
    gap: 4px;
  }
}

@media (max-width: 480px) and (min-height: 730px) {
  .bd-app[data-demo-root] [data-demo-stage-panel="whisker-cafe"] .bs-diegetic-prompt.is-whisker-cafe {
    inset-block-start: 24%;
  }
}

@media (forced-colors: active) {
  .bd-app [data-demo-stage-panel="whisker-cafe"] :is(.tr-stage-btn, .wc-canvas, .wc-shop-dialog button):focus-visible {
    outline-color: Highlight;
  }
}
