/* Full-bleed phone table; the desktop surface keeps its compact width. */
body.pk-tool-standalone { --sans: "ChenAO Poker Sans", "ChenAO Poker Sans Common", sans-serif; margin: 0; min-width: 320px; background: var(--paper, #f3f0e7); }
.pk-tool-standalone .pk-tool-bar { position: relative; z-index: 100; display: flex; align-items: center; justify-content: space-between; width: min(390px,100%); min-height: 48px; margin: 16px auto 0; padding: env(safe-area-inset-top,0px) 16px 0; color: var(--blue,#1714e8); font: 13px/1.5 var(--sans,system-ui,sans-serif); }
.pk-tool-bar > a, .pk-tool-help > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; }
.pk-tool-help > summary { list-style: none; }
.pk-tool-help > summary::-webkit-details-marker { display: none; }
.pk-tool-help[open] > summary { text-decoration: underline; text-underline-offset: 4px; }
.pk-tool-help > div { position: absolute; top: 100%; right: 12px; left: 12px; padding: 20px; border: 1px solid var(--line-dark); background: var(--paper-bright,#fbfaf5); box-shadow: 0 12px 32px rgb(17 17 15 / 12%); color: var(--ink,#11110f); }
.pk-tool-help p { margin: 12px 0 0; line-height: 1.7; }
.pk-tool-standalone #main { width: 100%; margin: 0; padding: 0 0 max(20px,env(safe-area-inset-bottom,0px)); }
.pk-tool-standalone .chenao-poker.pk-phone { margin: 0 auto; }
.pk-tool-bar :is(a,summary):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.pk-tool-standalone.pk-tool-entry .pk-tool-bar {
  min-height: 60px;
  margin-top: 0;
  padding: calc(12px + env(safe-area-inset-top,0px)) 20px 0;
  color: var(--ink,#11110f);
  background: var(--paper-bright,#fbfaf5);
  font-size: 16px;
  font-weight: 600;
}
.pk-tool-entry .pk-tool-help { display: none; }
.pk-tool-standalone.pk-tool-pool .pk-tool-bar { display: none; }
body.pk-tool-standalone.pk-tool-pool { min-height: 100vh; min-height: 100svh; background: var(--blue,#1714e8); }
.pk-tool-standalone.pk-tool-pool #main { padding: env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) 0 env(safe-area-inset-left,0px); background: var(--blue,#1714e8); filter: none; }
.pk-tool-standalone.pk-tool-pool .chenao-poker.pk-phone { border: 0; margin: 0 auto; background: var(--blue,#1714e8); }
.pk-tool-standalone.pk-tool-pool .pk-pool-room { display: flex; flex-direction: column; height: calc(var(--pk-viewport-height,100vh) - env(safe-area-inset-top,0px)); height: calc(var(--pk-viewport-height,100svh) - env(safe-area-inset-top,0px)); min-height: 0; }
.pk-tool-standalone.pk-tool-pool .pk-pool-head { flex: 0 0 136px; }
.pk-tool-standalone.pk-tool-pool .pk-pool-main { flex: 1 1 0; min-height: 0; overflow: hidden; }
.pk-tool-standalone.pk-tool-pool .pk-pool-table { transform: scale(var(--table-fit,1)); transform-origin: 50% 0; }
.pk-tool-standalone.pk-tool-pool .pk-pool-dock { flex: 0 0 auto; }
.pk-tool-standalone.pk-tool-entry #main { padding-bottom: 0; }
.pk-tool-standalone.pk-tool-entry .chenao-poker.pk-phone {
  min-height: calc(100svh - 60px - env(safe-area-inset-top,0px));
}
@media (max-width: 430px) {
  .pk-tool-standalone .pk-tool-bar { margin-top: 0; }
  .pk-tool-standalone .chenao-poker.pk-phone { border-inline: 0; }
}
@media (max-width: 620px) {
  .pk-tool-standalone.pk-tool-pool .chenao-poker.pk-phone { max-width: none; }
}
