#focus-open[data-glyph="squishy"] {
  background: #684c3c;
  color: #fff1db;
}

#squishy-view {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 0;
  color: #f6edd8;
  background: #202b25;
  background-image: radial-gradient(ellipse at 51% 58%, #4e5945 0, #303d31 48%, #202b25 82%);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

#squishy-view::backdrop { background: #202b25; }

.squishy-room {
  width: min(100%, 1024px);
  min-height: 100%;
  box-sizing: border-box;
  margin: auto;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    max(21px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.squishy-toolbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.squishy-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e6d6b74d;
  border-radius: 100px;
  padding: 8px 13px;
  min-height: 44px;
  background: #26342bc4;
  color: inherit;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.squishy-toolbar button:hover { background: #3b493b; }
.squishy-toolbar button[hidden] { display: none; }
.squishy-toolbar svg { width: 20px; height: 20px; display: block; }

.squishy-copy {
  margin: clamp(11px, 4dvh, 40px) auto 0;
  text-align: center;
}

.squishy-copy p {
  margin: 0 0 5px;
  color: #e6c4a0;
  font-size: .87rem;
  letter-spacing: .08em;
}

.squishy-copy h1 {
  margin: 0;
  font-size: clamp(2.15rem, 6vw, 3.75rem);
  line-height: 1.15;
  letter-spacing: -.06em;
  font-weight: 600;
}

.squishy-picker {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: clamp(10px, 2dvh, 20px) 0 0;
  border: 1px solid #e6d6b74d;
  border-radius: 100px;
  background: #25332bc9;
}

.squishy-picker button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px clamp(9px, 2.6vw, 16px);
  border: 1px solid transparent;
  border-radius: 100px;
  background: transparent;
  color: #eee7d2;
  font: inherit;
  font-size: .84rem;
  white-space: nowrap;
  cursor: pointer;
}

.squishy-picker button[aria-pressed="true"] {
  border-color: #ebd8b691;
  background: #e5cda526;
  color: #fff2da;
}
.squishy-picker button:hover { background: #e5cda532; }
.squishy-picker button::before {
  content: "";
  width: .62rem;
  height: .62rem;
  border-radius: 50%;
  background: #eca96e;
}
.squishy-picker [data-squishy="apple"]::before { background: #b6d56c; }
.squishy-picker [data-squishy="cheese"]::before {
  background: #f5cf74;
  border-radius: 1px;
  clip-path: polygon(66% 0, 100% 100%, 0 100%);
}

.squishy-stage {
  position: relative;
  width: 100%;
  height: clamp(215px, 45dvh, 480px);
  margin: auto;
  touch-action: none;
  overscroll-behavior: contain;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
  border-radius: 18px;
}

.squishy-stage:not([data-gesture="idle"]) { cursor: grabbing; }
.squishy-stage:focus-visible, .squishy-toolbar button:focus-visible, .squishy-picker button:focus-visible {
  outline: 2px solid #ffcf9b;
  outline-offset: 4px;
}

.squishy-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.squishy-help {
  text-align: center;
  color: #e1dbc4;
  font-size: clamp(.82rem, 2.6vw, .95rem);
  line-height: 1.7;
}
.squishy-help p { margin: 0; }
.squishy-help strong { color: #fcf1d9; font-size: 1.02rem; font-weight: 600; }
.squishy-help .squishy-keys { margin-top: .6rem; font-size: .78rem; color: #d3d1bb; }
.squishy-keys kbd { font: inherit; color: #f5ddba; }
@media (pointer: coarse) {
  .squishy-help .squishy-keys:not(:focus-within) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

@media (max-height: 490px) and (orientation: landscape) {
  .squishy-room { padding-block: 10px; }
  .squishy-copy { margin-top: 0; }
  .squishy-copy h1 { font-size: 1.85rem; }
  .squishy-picker { margin-top: 7px; }
  .squishy-stage { height: max(144px, 39dvh); }
  .squishy-help .squishy-keys { margin-top: 0; }
}
