/* The parent owns navigation; the active iframe owns every game gesture. */
.pf-shell {
  --pf-ink: #493b31;
  --pf-muted: #aa9481;
  --pf-line: #e8dece;
  display: flex;
  flex-direction: column;
  width: min(100%, 520px);
  height: var(
    --play-feed-height,
    calc(100dvh - 154px - env(safe-area-inset-bottom))
  );
  min-height: 390px;
  margin: 0 auto;
  color: var(--pf-ink);
  font-family: inherit;
  background: #faf6ed;
  overflow: hidden;
}
.pf-shell * {
  box-sizing: border-box;
}
.pf-shell button {
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.pf-shell button:disabled {
  opacity: 0.35;
  cursor: default;
}
.pf-shell button:focus-visible,
.pf-swipe:focus-visible {
  outline: 3px solid #a78db9;
  outline-offset: 3px;
}
.pf-header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 16px 8px;
  flex-shrink: 0;
}
.pf-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--pf-line);
  border-radius: 50%;
  background: #fffaf1;
  color: #8c7562;
  box-shadow: 0 2px 0 #e4d7c6;
}
.pf-icon svg {
  width: 20px;
  height: 20px;
}
.pf-icon:active {
  transform: translateY(2px);
  box-shadow: none;
}
.pf-heading {
  flex: 1;
  min-width: 0;
}
.pf-heading > span {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: var(--pf-muted);
  font-weight: 900;
}
.pf-heading h1 {
  font-size: 23px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.6px;
  margin: 2px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-categories {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 16px 11px;
  flex-shrink: 0;
}
.pf-categories::-webkit-scrollbar {
  display: none;
}
.pf-categories button {
  white-space: nowrap;
  min-height: 36px;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 7px 13px;
  background: transparent;
  color: #a18c79;
  font-size: 11px;
  font-weight: 800;
}
.pf-categories button[aria-pressed="true"] {
  background: #ede2f1;
  color: #78578b;
  border-color: #ddcce5;
}
.pf-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  isolation: isolate;
  overflow: hidden;
  background: #faf6ed;
}
.pf-game-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #faf6ed;
}
.pf-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: #faf6ed;
  color: var(--pf-muted);
  font-size: 13px;
  text-align: center;
  padding: 24px;
  pointer-events: none;
}
.pf-loading p {
  margin: 0;
}
.pf-loading button {
  pointer-events: auto;
}
.pf-loading-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #d7c2e2;
  box-shadow: 0 4px 0 #b297c1;
  animation: pf-hop 0.8s ease-in-out infinite;
}
.pf-retry {
  border: 1px solid #e1cfaa;
  border-radius: 14px;
  min-height: 44px;
  padding: 9px 20px;
  background: #f6d27e;
  color: #715433;
  font-size: 13px;
  font-weight: 800;
}
.pf-controls {
  display: grid;
  grid-template-columns: 44px 1fr 100px;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 10px 16px 12px;
  border-top: 1px solid #e9dfd2;
  background: #faf6ed;
  position: relative;
  z-index: 3;
}
.pf-swipe {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  border-radius: 13px;
  color: #a58e7a;
  font-size: 10px;
  letter-spacing: 0.1px;
}
.pf-grip {
  width: 35px;
  height: 4px;
  background: #d9cbbb;
  border-radius: 6px;
  transition:
    width 0.15s,
    background 0.15s;
}
.pf-swipe.is-dragging {
  cursor: grabbing;
  background: #f0e7da;
}
.pf-swipe.is-dragging .pf-grip {
  width: 50px;
  background: #b49cbe;
}
.pf-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 45px;
  padding: 10px 15px;
  border-radius: 16px;
  border: 1px solid #ffe4a4;
  background: #f6cd74;
  color: #634829;
  box-shadow:
    0 3px 0 #cba04e,
    inset 0 2px 0 #fff1cb;
  font-size: 14px;
  font-weight: 900 !important;
}
.pf-next svg {
  width: 15px;
  height: 15px;
}
.pf-next:active {
  transform: translateY(3px);
  box-shadow: none;
}
.pf-announcement {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0;
}
.pf-empty {
  display: grid;
  align-content: center;
  height: 100%;
  text-align: center;
  padding: 25px;
  color: var(--pf-muted);
}
.pf-empty h2 {
  font-size: 25px;
  color: var(--pf-ink);
  margin: 0 0 10px;
}
.pf-empty p {
  font-size: 13px;
  line-height: 1.5;
}
@keyframes pf-hop {
  50% {
    transform: translateY(-8px);
    box-shadow: 0 9px 0 #b297c135;
  }
}
@media (min-width: 700px) {
  .pf-shell {
    height: var(--play-feed-height, calc(100dvh - 130px));
    max-height: 900px;
    min-height: 480px;
    border: 1px solid #e8ddcd;
    border-radius: 24px;
    box-shadow: 0 12px 40px #8c715514;
  }
  .pf-header {
    padding-top: 14px;
  }
  .pf-controls {
    padding-bottom: 15px;
  }
}
@media (max-width: 350px) {
  .pf-header {
    padding-left: 12px;
    padding-right: 12px;
    gap: 9px;
  }
  .pf-heading h1 {
    font-size: 20px;
  }
  .pf-categories {
    padding-left: 12px;
    padding-right: 12px;
  }
  .pf-controls {
    padding-left: 12px;
    padding-right: 12px;
    gap: 7px;
    grid-template-columns: 44px 1fr 85px;
  }
  .pf-next {
    font-size: 13px;
  }
  .pf-swipe {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pf-shell * {
    animation: none !important;
    transition: none !important;
  }
}
.pf-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pf-help {
  font-size: 17px !important;
  font-weight: 800 !important;
}
.pf-header-actions .pf-icon {
  width: 40px;
  height: 40px;
}
@media (max-width: 350px) {
  .pf-header {
    gap: 8px;
  }
  .pf-heading h1 {
    font-size: 19px;
  }
  .pf-header-actions {
    gap: 4px;
  }
  .pf-header-actions .pf-icon {
    width: 38px;
    height: 38px;
  }
  .pf-header > .pf-icon {
    width: 40px;
    height: 40px;
  }
}
