

:root,
:where(.modal, .shell.customization-mode .fileshelf) {
  --pixel-context: panel;
  --pixel-idle: url("../assets/ui/buttons/panel-normal.svg");
  --pixel-hover: url("../assets/ui/buttons/panel-hover.svg");
  --pixel-pressed: url("../assets/ui/buttons/panel-pressed.svg");
  --pixel-wear-top: url("../assets/ui/buttons/panel-wear-top.svg");
  --pixel-wear-bottom: url("../assets/ui/buttons/panel-wear-bottom.svg");
  --pixel-ink: #eeecd9;
  --pixel-letter-shadow: #152011;
  --pixel-focus: #c5cdb0;
}

:where(.shell.home-mode:not(.customization-mode) .fileshelf,
       .home-panel, .customization-preview-block, .camera-toggle,
       .shell.park-mode .dialogue) {
  --pixel-context: slate;
  --pixel-idle: url("../assets/ui/buttons/slate-normal.svg");
  --pixel-hover: url("../assets/ui/buttons/slate-hover.svg");
  --pixel-pressed: url("../assets/ui/buttons/slate-pressed.svg");
  --pixel-wear-top: url("../assets/ui/buttons/slate-wear-top.svg");
  --pixel-wear-bottom: url("../assets/ui/buttons/slate-wear-bottom.svg");
  --pixel-ink: #e6e8dd;
  --pixel-letter-shadow: #122122;
  --pixel-focus: #b8cec5;
}

:where(.discipline-card, .boss-quote, .sanction-banner, .food-expense-note) {
  --pixel-context: earth;
  --pixel-idle: url("../assets/ui/buttons/earth-normal.svg");
  --pixel-hover: url("../assets/ui/buttons/earth-hover.svg");
  --pixel-pressed: url("../assets/ui/buttons/earth-pressed.svg");
  --pixel-wear-top: url("../assets/ui/buttons/earth-wear-top.svg");
  --pixel-wear-bottom: url("../assets/ui/buttons/earth-wear-bottom.svg");
  --pixel-ink: #eeead6;
  --pixel-letter-shadow: #232116;
  --pixel-focus: #cfc5a2;
}

:where(.modal.handbook-modal, .hb, .hb-book) {
  --pixel-context: wood;
  --pixel-idle: url("../assets/ui/buttons/wood-normal.svg");
  --pixel-hover: url("../assets/ui/buttons/wood-hover.svg");
  --pixel-pressed: url("../assets/ui/buttons/wood-pressed.svg");
  --pixel-wear-top: url("../assets/ui/buttons/wood-wear-top.svg");
  --pixel-wear-bottom: url("../assets/ui/buttons/wood-wear-bottom.svg");
  --pixel-ink: #f0e5ce;
  --pixel-letter-shadow: #251b12;
  --pixel-focus: #d6be94;
}

:where(.paper, .memo-sheet, .lc-sheet, .candidate-sheet,
       .wake-composure-paper, .weekend-intro-sheet, .calendar-detail,
       .boss-paper, .nb-page, .hb-page) {
  --pixel-context: paper;
  --pixel-idle: url("../assets/ui/buttons/paper-normal.svg");
  --pixel-hover: url("../assets/ui/buttons/paper-hover.svg");
  --pixel-pressed: url("../assets/ui/buttons/paper-pressed.svg");
  --pixel-wear-top: url("../assets/ui/buttons/paper-wear-top.svg");
  --pixel-wear-bottom: url("../assets/ui/buttons/paper-wear-bottom.svg");
  --pixel-ink: #333b2d;
  --pixel-letter-shadow: #f7efd8;
  --pixel-focus: #606c50;
}

button:where(:not(.room-hotspot, .paper-row, .spine, .cal-day, .shop-preview-button, .custom-card, .avatar-choice, .accessory-swatch, .hair-swatch, .custom-card-swatch, .keycap, .action, .stamp:not(#bribeBtn), .stamp-tool, .stamp-tab, .nb *, .paper-tabs > *, #parkSheet *, .wake-composure-paper *, .memo-sheet *, .hb *, .lc-sheet *, .candidate-sheet *, .tutorial-card *, .calendar-detail *)) {
  --pixel-skin: var(--pixel-idle);
  --pixel-button: 1;
  position: relative;
  isolation: isolate;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  appearance: none;
  color: var(--pixel-ink) !important;
  background: transparent !important;
  border: 3px solid transparent !important;
  border-image-source: var(--pixel-skin) !important;
  border-image-slice: 14 fill !important;
  border-image-width: 14px !important;
  border-image-outset: 0 !important;
  border-image-repeat: stretch !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  clip-path: none !important;
  text-shadow: 0 1px 0 var(--pixel-letter-shadow) !important;
  font-weight: 700;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  filter: none !important;
  transition: transform 70ms steps(2, end) !important;
}

button:where(:not(.room-hotspot, .paper-row, .spine, .cal-day, .shop-preview-button, .custom-card, .avatar-choice, .accessory-swatch, .hair-swatch, .custom-card-swatch, .keycap, .action, .stamp:not(#bribeBtn), .stamp-tool, .stamp-tab, .nb *, .paper-tabs > *, #parkSheet *, .wake-composure-paper *, .memo-sheet *, .hb *, .lc-sheet *, .candidate-sheet *, .tutorial-card *, .calendar-detail *))::before {
  content: "";
  position: absolute;
  inset: 8px 8px 13px;
  z-index: -1;
  pointer-events: none;
  background: url("../assets/ui/buttons/worn-grain.svg") repeat;
  background-size: 24px 24px;
  opacity: 0.18;
}
button:where(:not(.room-hotspot, .paper-row, .spine, .cal-day, .shop-preview-button, .custom-card, .avatar-choice, .accessory-swatch, .hair-swatch, .custom-card-swatch, .keycap, .action, .stamp:not(#bribeBtn), .stamp-tool, .stamp-tab, .nb *, .paper-tabs > *, #parkSheet *, .wake-composure-paper *, .memo-sheet *, .hb *, .lc-sheet *, .candidate-sheet *, .tutorial-card *, .calendar-detail *))::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--pixel-wear-top), var(--pixel-wear-bottom);
  background-repeat: no-repeat;
  background-size: var(--pixel-wear-size, 48px 12px);
  background-position: var(--pixel-chip-x, 34%) 0, var(--pixel-scuff-x, 74%) calc(100% - 5px);
}
button:where(:not(.room-hotspot, .paper-row, .spine, .cal-day, .shop-preview-button, .custom-card, .avatar-choice, .accessory-swatch, .hair-swatch, .custom-card-swatch, .keycap, .action, .stamp:not(#bribeBtn), .stamp-tool, .stamp-tab, .nb *, .paper-tabs > *, #parkSheet *, .wake-composure-paper *, .memo-sheet *, .hb *, .lc-sheet *, .candidate-sheet *, .tutorial-card *, .calendar-detail *)):nth-of-type(3n + 2) {
  --pixel-chip-x: 67%;
  --pixel-scuff-x: 19%;
}
button:where(:not(.room-hotspot, .paper-row, .spine, .cal-day, .shop-preview-button, .custom-card, .avatar-choice, .accessory-swatch, .hair-swatch, .custom-card-swatch, .keycap, .action, .stamp:not(#bribeBtn), .stamp-tool, .stamp-tab, .nb *, .paper-tabs > *, #parkSheet *, .wake-composure-paper *, .memo-sheet *, .hb *, .lc-sheet *, .candidate-sheet *, .tutorial-card *, .calendar-detail *)):nth-of-type(3n) {
  --pixel-chip-x: 24%;
  --pixel-scuff-x: 58%;
}

button:where(:not(.room-hotspot, .paper-row, .spine, .cal-day, .shop-preview-button, .custom-card, .avatar-choice, .accessory-swatch, .hair-swatch, .custom-card-swatch, .keycap, .action, .stamp:not(#bribeBtn), .stamp-tool, .stamp-tab, .nb *, .paper-tabs > *, #parkSheet *, .wake-composure-paper *, .memo-sheet *, .hb *, .lc-sheet *, .candidate-sheet *, .tutorial-card *, .calendar-detail *)) :is(small, b, strong, span, em, i, p, div) {
  color: inherit !important;
}
button:where(:not(.room-hotspot, .paper-row, .spine, .cal-day, .shop-preview-button, .custom-card, .avatar-choice, .accessory-swatch, .hair-swatch, .custom-card-swatch, .keycap, .action, .stamp:not(#bribeBtn), .stamp-tool, .stamp-tab, .nb *, .paper-tabs > *, #parkSheet *, .wake-composure-paper *, .memo-sheet *, .hb *, .lc-sheet *, .candidate-sheet *, .tutorial-card *, .calendar-detail *)) small {
  opacity: .9;
  font-weight: 600;
}

button:where(:not(.room-hotspot, .paper-row, .spine, .cal-day, .shop-preview-button, .custom-card, .avatar-choice, .accessory-swatch, .hair-swatch, .custom-card-swatch, .keycap, .action, .stamp:not(#bribeBtn), .stamp-tool, .stamp-tab, .nb *, .paper-tabs > *, #parkSheet *, .wake-composure-paper *, .memo-sheet *, .hb *, .lc-sheet *, .candidate-sheet *, .tutorial-card *, .calendar-detail *)).primary {
  font-weight: 800;
}
button:where(:not(.room-hotspot, .paper-row, .spine, .cal-day, .shop-preview-button, .custom-card, .avatar-choice, .accessory-swatch, .hair-swatch, .custom-card-swatch, .keycap, .action, .stamp:not(#bribeBtn), .stamp-tool, .stamp-tab, .nb *, .paper-tabs > *, #parkSheet *, .wake-composure-paper *, .memo-sheet *, .hb *, .lc-sheet *, .candidate-sheet *, .tutorial-card *, .calendar-detail *)):is(.active, .selected, .open, [aria-pressed="true"], [data-current="true"]):where(:not(:disabled)) {
  outline: 2px solid var(--pixel-focus) !important;
  outline-offset: -8px;
  font-weight: 800;
}

@media (hover: hover) {
  button:where(:not(.room-hotspot, .paper-row, .spine, .cal-day, .shop-preview-button, .custom-card, .avatar-choice, .accessory-swatch, .hair-swatch, .custom-card-swatch, .keycap, .action, .stamp:not(#bribeBtn), .stamp-tool, .stamp-tab, .nb *, .paper-tabs > *, #parkSheet *, .wake-composure-paper *, .memo-sheet *, .hb *, .lc-sheet *, .candidate-sheet *, .tutorial-card *, .calendar-detail *)):hover:not(:disabled) {
    --pixel-skin: var(--pixel-hover);
  }
}
button:where(:not(.room-hotspot, .paper-row, .spine, .cal-day, .shop-preview-button, .custom-card, .avatar-choice, .accessory-swatch, .hair-swatch, .custom-card-swatch, .keycap, .action, .stamp:not(#bribeBtn), .stamp-tool, .stamp-tab, .nb *, .paper-tabs > *, #parkSheet *, .wake-composure-paper *, .memo-sheet *, .hb *, .lc-sheet *, .candidate-sheet *, .tutorial-card *, .calendar-detail *)):focus-visible {
  outline: 2px solid var(--pixel-focus) !important;
  outline-offset: 3px;
}
button:where(:not(.room-hotspot, .paper-row, .spine, .cal-day, .shop-preview-button, .custom-card, .avatar-choice, .accessory-swatch, .hair-swatch, .custom-card-swatch, .keycap, .action, .stamp:not(#bribeBtn), .stamp-tool, .stamp-tab, .nb *, .paper-tabs > *, #parkSheet *, .wake-composure-paper *, .memo-sheet *, .hb *, .lc-sheet *, .candidate-sheet *, .tutorial-card *, .calendar-detail *)):active:not(:disabled) {
  --pixel-skin: var(--pixel-pressed);
  transform: translateY(2px) !important;
}
button:where(:not(.room-hotspot, .paper-row, .spine, .cal-day, .shop-preview-button, .custom-card, .avatar-choice, .accessory-swatch, .hair-swatch, .custom-card-swatch, .keycap, .action, .stamp:not(#bribeBtn), .stamp-tool, .stamp-tab, .nb *, .paper-tabs > *, #parkSheet *, .wake-composure-paper *, .memo-sheet *, .hb *, .lc-sheet *, .candidate-sheet *, .tutorial-card *, .calendar-detail *)):disabled {
  --pixel-skin: var(--pixel-idle);
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
}

.decision-buttons {
  min-width: 0;
  max-width: 100%;
}
#bribeBtn {
  flex: 0 1 auto;
  width: 236px;
  max-width: 100%;
  min-width: 0;
  min-height: 76px;
  padding: 14px 22px 18px;
  font-family: inherit;
  font-size: calc(14px * var(--text-scale, 1));
  line-height: 1.55;
  letter-spacing: normal;
  text-align: center;
}
#bribeBtn small {
  display: block;
  margin-top: 4px;
  font-family: inherit;
  font-size: calc(11px * var(--text-scale, 1));
  line-height: 1.55;
  letter-spacing: normal;
}
@media (max-width: 900px) {
  #bribeBtn { flex: 1 1 0; width: 100%; }
}

.modal-actions > button {
  min-height: 60px;
  padding: 15px 20px 19px;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
}
.modal-actions {
  gap: 12px;
}
.modal-actions .keycap {
  display: inline-block;
  vertical-align: middle;
  padding: 1px 5px;
  border: 1px solid currentColor;
  color: inherit;
  opacity: .75;
  text-shadow: none;
  box-shadow: 0 1px 0 var(--pixel-letter-shadow);
}
button.hud-btn {
  border-width: 2px !important;
  --pixel-wear-size: 24px 8px;
  border-image-width: 10px !important;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding-bottom: 3px;
}
button.text-scale-option {
  min-height: 94px;
  padding-top: 13px;
  padding-bottom: 17px;
}

button[data-pixel-size-group] {
  height: var(--pixel-equal-height, auto) !important;
}
[data-pixel-group-flex] > button[data-pixel-size-group] {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
}
:where(.text-scale-options, .restaurant-question-grid,
       .restaurant-toast-buttons, .camera-toggle, .rejection-reasons) {
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.store-camera {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.store-camera > .eyebrow:not([hidden]) { grid-column: 1 / -1; }
.store-camera > button,
.camera-toggle > button {
  width: 100%;
  min-width: 0;
  min-height: 48px;
}

.store-back-button.home-action {
  flex: 0 0 auto;
  min-height: 76px;
  padding: 14px 18px 18px;
  grid-template-columns: 32px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.store-back-button .home-action-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  margin: 0;
  align-self: center;
  font-size: 20px;
  line-height: 1;
}
.store-back-button > span:not(.home-action-icon) { min-width: 0; }
.store-back-button > i { align-self: center; line-height: 1; }

.shop-item {
  grid-template-columns: minmax(0, 1fr) minmax(96px, .4fr);
}
.shop-buy-button {
  width: auto;
  min-width: 0;
  min-height: 48px;
  justify-self: stretch;
  align-self: center;
  margin: 8px 12px 8px 0;
  padding: 10px 8px 14px;
}

@media (prefers-reduced-motion: reduce) {
  button:where(:not(.room-hotspot, .paper-row, .spine, .cal-day, .shop-preview-button, .custom-card, .avatar-choice, .accessory-swatch, .hair-swatch, .custom-card-swatch, .keycap, .action, .stamp:not(#bribeBtn), .stamp-tool, .stamp-tab, .nb *, .paper-tabs > *, #parkSheet *, .wake-composure-paper *, .memo-sheet *, .hb *, .lc-sheet *, .candidate-sheet *, .tutorial-card *, .calendar-detail *)) { transition: none !important; }
}
@media (max-width: 720px) {
  .modal-actions .keycap { display: none; }
}
@media (forced-colors: active) {
  button:where(:not(.room-hotspot, .paper-row, .spine, .cal-day, .shop-preview-button, .custom-card, .avatar-choice, .accessory-swatch, .hair-swatch, .custom-card-swatch, .keycap, .action, .stamp:not(#bribeBtn), .stamp-tool, .stamp-tab, .nb *, .paper-tabs > *, #parkSheet *, .wake-composure-paper *, .memo-sheet *, .hb *, .lc-sheet *, .candidate-sheet *, .tutorial-card *, .calendar-detail *)) {
    border-image: none !important;
    border: 2px solid ButtonText !important;
    background: ButtonFace !important;
    color: ButtonText !important;
    text-shadow: none !important;
  }
  button:where(:not(.room-hotspot, .paper-row, .spine, .cal-day, .shop-preview-button, .custom-card, .avatar-choice, .accessory-swatch, .hair-swatch, .custom-card-swatch, .keycap, .action, .stamp:not(#bribeBtn), .stamp-tool, .stamp-tab, .nb *, .paper-tabs > *, #parkSheet *, .wake-composure-paper *, .memo-sheet *, .hb *, .lc-sheet *, .candidate-sheet *, .tutorial-card *, .calendar-detail *)):focus-visible,
  button:where(:not(.room-hotspot, .paper-row, .spine, .cal-day, .shop-preview-button, .custom-card, .avatar-choice, .accessory-swatch, .hair-swatch, .custom-card-swatch, .keycap, .action, .stamp:not(#bribeBtn), .stamp-tool, .stamp-tab, .nb *, .paper-tabs > *, #parkSheet *, .wake-composure-paper *, .memo-sheet *, .hb *, .lc-sheet *, .candidate-sheet *, .tutorial-card *, .calendar-detail *)):is(.active, .selected, [aria-pressed="true"]) {
    outline-color: Highlight !important;
  }
  button:where(:not(.room-hotspot, .paper-row, .spine, .cal-day, .shop-preview-button, .custom-card, .avatar-choice, .accessory-swatch, .hair-swatch, .custom-card-swatch, .keycap, .action, .stamp:not(#bribeBtn), .stamp-tool, .stamp-tab, .nb *, .paper-tabs > *, #parkSheet *, .wake-composure-paper *, .memo-sheet *, .hb *, .lc-sheet *, .candidate-sheet *, .tutorial-card *, .calendar-detail *)):disabled { color: GrayText !important; }
  button:where(:not(.room-hotspot, .paper-row, .spine, .cal-day, .shop-preview-button, .custom-card, .avatar-choice, .accessory-swatch, .hair-swatch, .custom-card-swatch, .keycap, .action, .stamp:not(#bribeBtn), .stamp-tool, .stamp-tab, .nb *, .paper-tabs > *, #parkSheet *, .wake-composure-paper *, .memo-sheet *, .hb *, .lc-sheet *, .candidate-sheet *, .tutorial-card *, .calendar-detail *))::before, button:where(:not(.room-hotspot, .paper-row, .spine, .cal-day, .shop-preview-button, .custom-card, .avatar-choice, .accessory-swatch, .hair-swatch, .custom-card-swatch, .keycap, .action, .stamp:not(#bribeBtn), .stamp-tool, .stamp-tab, .nb *, .paper-tabs > *, #parkSheet *, .wake-composure-paper *, .memo-sheet *, .hb *, .lc-sheet *, .candidate-sheet *, .tutorial-card *, .calendar-detail *))::after { display: none !important; }
}
