.home-game-preview { min-width: 0; max-width: 470px; }
.home-game-preview-scene { position: relative; overflow: hidden; }
.home-game-preview-scene img { display: block; }
.home-game-preview-scene canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  pointer-events: none;
  border: 1px solid #8f795b;
}
.home-game-preview-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 14px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.home-game-preview-toggle {
  min-height: 44px;
  padding: 4px 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--wine);
  font: 700 14px/1.4 var(--sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.home-game-preview-toggle:hover { color: var(--wine-dark); border-color: var(--line); }
.home-game-preview-toggle:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
[data-game-preview] [hidden] { display: none !important; }
.current-card .home-game-preview-scene canvas {
  top: 50%;
  bottom: auto;
  height: auto;
  aspect-ratio: 16 / 9;
  transform: translateY(-50%);
  border: 0;
}
.current-card .home-game-preview-controls { margin-bottom: 12px; padding-top: 0; }
.toaletak-preview-media { min-width: 0; background: #173f4b; }
.toaletak-preview-media .current-image { aspect-ratio: 16 / 9; min-height: 0; border-right: 0; }
.toaletak-preview-bubbles {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  transform: translateY(-50%);
  pointer-events: none;
}
.toaletak-preview-bubble {
  position: absolute;
  top: 7%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 29%;
  padding: 5px 6px;
  border: 2px solid #173f4b;
  border-radius: 9px;
  background: #fff3d5;
  color: #173f4b;
  font: 800 12px/1.2 var(--sans);
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: 2px 3px 0 #173f4b66;
}
.toaletak-preview-bubble::after {
  content: "";
  position: absolute;
  left: 56%;
  bottom: -8px;
  width: 10px;
  height: 10px;
  background: inherit;
  border-right: 2px solid #173f4b;
  border-bottom: 2px solid #173f4b;
  transform: skewY(30deg);
}
[data-toaletak-bubble="wc1"] { left: 20%; }
[data-toaletak-bubble="wc2"] { left: 50%; }
[data-toaletak-bubble="wc3"] { left: 80%; }
.toaletak-preview-bubble:is([data-kind="urgent"], [data-kind="complaint"]) { background: #ffbc9d; color: #652c22; }
.toaletak-preview-bubble:is([data-kind="success"], [data-kind="enough"]) { background: #c8ead1; }
.toaletak-preview-dialogue {
  min-height: 150px;
  padding: 12px 14px;
  display: grid;
  gap: 5px;
  align-content: center;
  background: #fff0cb;
  color: #173f4b;
  border-top: 2px solid #173f4b;
  border-left: 5px solid #edbf4f;
  font-family: var(--sans);
}
.toaletak-preview-speaker { font-size: 10px; font-weight: 800; letter-spacing: .05em; color: #775822; }
.toaletak-preview-dialogue p { margin: 0; line-height: 1.4; }
.toaletak-preview-line { font-size: 14px; font-weight: 800; }
.toaletak-preview-reply { font-size: 13px; color: #3e6167; }
.toaletak-preview-dialogue:is([data-kind="urgent"], [data-kind="complaint"]) { background: #ffdec6; border-left-color: #be4635; }
.toaletak-preview-dialogue:is([data-kind="success"], [data-kind="enough"]) { border-left-color: #36806a; }
[data-game-preview]:not([data-preview-state="ready"]) .toaletak-preview-bubbles { display: none; }
@media (max-width: 759px) { .home-game-preview { max-width: none; } }
@media (min-width: 481px) and (max-width: 800px) {
  .toaletak-preview-media { align-self: start; border-right: 1px solid var(--line); }
  .toaletak-preview-dialogue { min-height: 180px; }
}
