/* The Hearts entry and PocketPlay table material, without altering game geometry. */
body[data-table="v2"].is-setup #view { width: min(100%, 1000px); margin: 0 auto; padding: 22px 20px; }
.ct-entry { display: grid; gap: 18px; }
.ct-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ct-head h1 { margin: 0; color: var(--ink); font-size: clamp(26px, 4vw, 32px); font-weight: 700; letter-spacing: -.03em; }
.ct-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; max-width: 680px; }
.ct-back { justify-self: center; color: var(--ink-3); font-size: 13px; padding: 12px; }
body[data-table="v2"].is-setup .ba-sub { display: none; }
body[data-table="v2"] #scores { display: flex; flex: 1; flex-wrap: nowrap; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
body[data-table="v2"] #scores .ppt-plate { flex: none; padding: 4px 8px; gap: 6px; border-radius: var(--r-m); background: var(--surface); }
body[data-table="v2"] #scores .ppt-face { --size: 28px; }
body[data-table="v2"] #scores .ppt-plate__text b { font-size: 12px; }
body[data-table="v2"] #scores .ppt-plate__text small:empty { display: none; }
body[data-table="v2"] #scores .ppt-plate__end { font-size: 12px; }
body[data-table="v2"] .hud { min-height: 46px; }
body[data-table="v2"] .stage-main > .rail { order: 1; }
body[data-table="v2"] .stage-main > .hint { order: 2; justify-content: center; text-align: center; color: var(--ink); font-size: 14px; font-weight: 600; min-height: 32px; }
body[data-table="v2"] .hint-ico { display: none; }
body[data-table="v2"] .felt {
  background: radial-gradient(120% 95% at 50% 38%, color-mix(in srgb, var(--accent) 92%, #fff 8%), color-mix(in srgb, var(--accent) 72%, #04150c));
  box-shadow: inset 0 0 0 1px #0003, inset 0 2px 16px #0003, var(--shadow-2);
  border-color: transparent;
}
body[data-table="v2"] .felt .help, body[data-table="v2"] .felt .label, body[data-table="v2"] .felt .seat-label,
body[data-table="v2"] .felt .who, body[data-table="v2"] .felt .big-msg, body[data-table="v2"] .felt .empty-hint { color: #f3f7f0; }
body[data-table="v2"] .seat .ppt-plate { width: fit-content; margin: auto; }
body[data-table="v2"] .seat .ppt-face { --size: 32px; }
body[data-table="v2"] .seat .ppt-plate__text b { font-size: 13px; }
body[data-table="v2"] .game-head h1 { letter-spacing: -.03em; }
body[data-table="v2"] .table-label { display: none; }
.ct-result-seats { display: grid; gap: 8px; margin: 18px 0; }
body.pp-v2 dialog.sheet {
  position: fixed; inset: 0; margin: auto; display: block; padding: 0;
  width: min(480px, calc(100vw - 32px)); height: fit-content; max-height: calc(100svh - 32px);
  overflow: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-3); backdrop-filter: none;
}
body.pp-v2 dialog.sheet[hidden] { display: none; }
body.pp-v2 dialog.sheet::backdrop { background: rgba(17,16,13,.36); backdrop-filter: blur(3px); }
body.pp-v2 dialog.sheet .panel { position: relative; width: 100%; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; border-radius: 0; box-shadow: none; }
body.pp-v2 dialog.sheet .panel h2 { padding-right: 36px; font-size: 21px; margin-top: 0; }
.ct-sheet-close { position: absolute; top: 20px; right: 20px; }
@media (max-width: 640px) {
  body[data-table="v2"].is-setup #view { padding: 16px 14px; }
  .ct-head p { font-size: 14px; }
  body[data-table="v2"] #scores .ppt-plate { padding: 3px 6px; }
  body[data-table="v2"] #scores .ppt-face { --size: 24px; }
  body[data-table="v2"] .hud { gap: 5px; }
  body[data-table="v2"] .seat.pos-left .ppt-plate, body[data-table="v2"] .seat.pos-right .ppt-plate { flex-direction: column; padding: 6px; text-align: center; }
}
/* Single-player entry is also a bounded one-screen surface. */
body.pp-v2.is-setup[data-table=v2]:not([data-room-table]) { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
body.pp-v2.is-setup[data-table=v2]:not([data-room-table]) .pp-header { height: 48px; flex: 0 0 48px; }
body.pp-v2.is-setup[data-table=v2]:not([data-room-table]) .pp-header__inner { height: 47px; }
body.pp-v2.is-setup[data-table=v2]:not([data-room-table]) #view { flex: 1; min-height: 0; padding: 8px 14px; display: flex; }
body.pp-v2.is-setup[data-table=v2] #foot,body.pp-v2.is-setup[data-table=v2] .pp-footer { display: none; }
.ct-entry { flex: 1; min-height: 0; grid-template-rows: auto minmax(0,1fr) auto; gap: 6px; }
.ct-entry .ppt-lobby { align-self: center; }
.ct-entry .ct-back { padding: 4px; }
@media(max-height:520px) {
 .ct-head h1 { font-size: 22px; }
 .ct-head p { font-size: 12px; }
 .ct-entry .ppt-lobby { padding: 12px 24px; gap: 10px; }
 .ct-entry .ppt-face { --size: 42px; }
 .ct-entry .ppt-start { height: 40px; min-height: 40px; }
 .ct-entry .ppt-hint { min-height: 24px; font-size: 12px; }
}
.sheet-form-actions { display: flex; justify-content: center; gap: 8px; }
@media(max-height:520px) and (min-width:600px) {
 body.pp-v2 dialog.sheet { width: min(740px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
 body.pp-v2 dialog.sheet .panel { padding: 14px; }
 body.pp-v2 dialog.sheet .panel h2 { font-size: 20px; margin-bottom: 6px; }
 body.pp-v2 dialog.sheet .panel > p { margin: 6px 0; font-size: 12px; line-height: 1.25; }
 body.pp-v2 dialog.sheet .eyebrow { font-size: 10px; }
 body.pp-v2 dialog.sheet .choices { grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; }
 body.pp-v2 dialog.sheet .choices .choice { min-height: 40px; padding: 6px 10px; font-size: 13px; }
 body.pp-v2 dialog.sheet .ct-sheet-close { top: 10px; right: 10px; }
 body.pp-v2 dialog.sheet #options-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
 #options-form h2,#options-form > .fine,#options-form > .sheet-form-actions { grid-column: 1/-1; }
 #options-form > .setting-summary,#options-form > .setting-row,#options-form > .table-picker { grid-column: 1; }
 #options-form > .advanced-settings { grid-column: 2; grid-row: 2/span 3; align-self: start; margin: 0; }
 #options-form .setting-summary { min-height: 0; padding: 8px; margin: 0; }
 #options-form .setting-summary .soft-label { display: none; }
 #options-form .setting-row { min-height: 40px; padding: 4px 0; margin: 0; gap: 8px; font-size: 12px; }
 #options-form .setting-row input:not([type=checkbox]),#options-form .setting-row select { height: 36px; min-height: 36px; padding: 4px 8px; }
 #options-form .table-picker { margin: 0; padding: 0; }
 #options-form .table-picker legend { margin-bottom: 4px; font-size: 12px; }
 #options-form .swatch { padding: 4px; gap: 3px; }
 #options-form .swatch-color { height: 22px; }
 #options-form .advanced-settings summary { padding: 6px; font-size: 12px; }
 #options-form .advanced-settings summary span { display: none; }
 #options-form .advanced-body { padding: 4px 8px; gap: 4px; }
 #options-form .reset-settings { margin: 0; font-size: 12px; }
 #options-form > .fine { margin: 0; }
 #options-form .sheet-form-actions .btn-primary,#options-form .sheet-form-actions .btn { height: 40px; min-height: 40px; padding: 6px 14px; }
}
