.pk-table {
  --pk-ivory: #fff0ce;
  --pk-text: #f7e8da;
  --pk-gilt: #d2ad74;
  --pk-rule: #ab885d80;
  margin: .5rem auto 0;
  max-width: 48rem;
  color: var(--pk-text);
  border: 1px solid #967649;
  border-radius: 1.15rem;
  overflow: hidden;
  background: #211c29;
  box-shadow: 0 10px 35px #100c1980;
}
.pk-table *, .pk-table *::before, .pk-table *::after { box-sizing: border-box; }
.pk-seats {
  padding: clamp(.9rem, 3.2vw, 1.6rem) clamp(.65rem, 3.5vw, 1.7rem);
  background:
    radial-gradient(ellipse at 50% 50%, #8c536229, transparent 72%),
    repeating-linear-gradient(35deg, #ffffff04 0 1px, transparent 1px 3px),
    linear-gradient(135deg, #302637, #503342 52%, #30232f);
}
.pk-seat-title, .pk-line, .pk-play > p, .pk-ranking { font-family: inherit; }
.pk-seat-title {
  display: flex; align-items: baseline; justify-content: center; gap: .65rem;
  line-height: 1.45; color: var(--pk-ivory); margin: 0 auto .55rem;
}
.pk-seat-title strong { font-size: 1rem; font-weight: 650; }
.pk-seat-title span { font-size: .88rem; color: #f2d4b2; }
.pk-seat-title span::before { content: '·'; margin-right: .65rem; opacity: .75; }
.pk-row {
  display: grid; grid-template-columns:repeat(5,minmax(0,1fr));
  gap: clamp(4px,1.4vw,9px); align-items: center; margin: auto;
  width: min(100%,22rem);
}
.pk-row.pk-rival { width: min(77%,16rem); }
.pk-row .pk-card {
  position: relative; justify-self: stretch; display: block; aspect-ratio: .689;
  width: 100%; min-width:0; min-height:0; padding:0; margin:0; overflow: visible;
  appearance: none; font-family: Georgia,'Times New Roman',serif;
  line-height: 1; text-align: left; border: 1px solid #e5cfaa; border-radius: .36rem;
  color: #202735; background: linear-gradient(145deg,#fffcf0,#fbf4e7 62%,#f0dfc8);
  box-shadow: 0 3px 6px #1009144d;
  transition: transform .16s ease-out, outline-color .16s;
}
.pk-row .pk-card.pk-red { color: #a33042; }
.pk-row button.pk-card { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pk-row button.pk-card:disabled { opacity: 1; cursor: default; }
.pk-row button.pk-card:focus-visible, .pk-action:focus-visible, .pk-ranking summary:focus-visible {
  outline: 3px solid #f5d391; outline-offset: 2px;
}
.pk-row button.pk-card.pk-picked {
  transform: translateY(-.36rem); outline: 2px solid #f5d391; outline-offset: 0;
  box-shadow: 0 5px 12px #140b19aa;
}
.pk-row .pk-back {
  border: 2px solid #e4c89d; color: #f4d5a1; overflow:hidden;
  box-shadow: inset 0 0 0 2px #2b3449, inset 0 0 0 3px #ccb491bb, 0 2px 5px #10091450;
  background:
    repeating-linear-gradient(48deg,transparent 0 4px,#dbc6a533 4.5px 5px,transparent 5.5px 8px),
    repeating-linear-gradient(-48deg,transparent 0 4px,#dbc6a533 4.5px 5px,transparent 5.5px 8px),
    #24334b;
}
.pk-back > i {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  display:grid; place-items:center; font-size:clamp(.8rem,4vw,1.3rem);
  width:52%; aspect-ratio:1; border:1px solid #bd9a66; border-radius:50%; background:#303d54;
  font-style: normal; line-height:1;
}
.pk-corner {
  display:grid; position:absolute; left:6%; top:5%; justify-items:center;
  font-size:clamp(.7rem,3.55vw,1.06rem); font-weight:700; letter-spacing:-.07em;
  line-height:.92; font-variant-numeric: lining-nums;
}
.pk-corner i { font-size:.79em; font-style:normal; line-height:.9; }
.pk-corner-bottom { inset: auto 6% 5% auto; transform:rotate(180deg); }
.pk-pips { position:absolute; inset:14% 21%; display:grid; grid-template:repeat(5,1fr)/repeat(3,1fr); }
.pk-pips i { display:grid; place-items:center; font-size:clamp(.58rem,2.95vw,.93rem); font-style:normal; line-height:.65; }
.pk-ace { position:absolute; inset:25% 14%; display:grid; place-items:center; font-size:clamp(1.6rem,7vw,2.6rem); }
.pk-court {
  position:absolute; inset:16% 24%; display:flex; flex-direction:column; justify-content:center; align-items:center;
  border-block:1px solid #a77d46; border-radius:45%; background:linear-gradient(150deg,#e5ba7447,#f6e0b626);
}
.pk-court i { font-size:clamp(.48rem,2.2vw,.74rem); line-height:1; color:#87642f; font-style:normal; }
.pk-court i:last-child { transform:rotate(180deg); }
.pk-court b { font-size:clamp(.95rem,4.7vw,1.7rem); font-weight:normal; font-style:italic; }
.pk-rival .pk-corner { font-size:clamp(.55rem,2.9vw,.82rem); }
.pk-rival .pk-pips i { font-size:clamp(.47rem,2.3vw,.68rem); }
.pk-rival .pk-court b { font-size:clamp(.73rem,3.6vw,1rem); }
.pk-rival .pk-court i { font-size:.44rem; }
.pk-rival .pk-ace { font-size:clamp(1.3rem,6vw,1.8rem); }
.pk-tag {
  position:absolute; color:#332816; background:#f3d297; border-radius:.12rem; bottom:-.25rem; left:50%;
  transform:translateX(-50%); padding:.15rem .27rem; font:700 .75rem/1.15 system-ui,sans-serif;
  white-space:nowrap; box-shadow:0 1px 2px #0004;
}
.pk-line { margin:.65rem 0 .2rem; text-align:center; font-size:.89rem; line-height:1.5; color:#f7e8da; }
.pk-bank {
  display:flex; align-items:center; justify-content:center; gap:.48rem; position:relative;
  margin:clamp(.65rem, 2.5vw,1.1rem) auto; max-width:27rem;
  color: var(--pk-ivory); font:500 .9rem/1.3 system-ui,sans-serif;
}
.pk-bank::before, .pk-bank::after { content:''; flex:1; height:1px; background:linear-gradient(90deg,transparent,var(--pk-rule)); }
.pk-bank::after { transform:scaleX(-1); }
.pk-bank b { padding-left:.2rem; font:600 1.27rem/1.2 Georgia,serif; font-variant-numeric:tabular-nums; }
.pk-chip {
  display:inline-block; width:1.1rem; height:1.1rem; border-radius:50%; transform:rotate(-15deg);
  background:radial-gradient(circle,#e3c693 0 23%,#956445 26% 36%,#e1c49d 39% 47%,transparent 51%),
    repeating-conic-gradient(#f8dfaf 0 27deg,#875641 27deg 60deg);
  border:1px solid #e8cc9e; box-shadow:-1px 2px 0 #aa7753;
}
.pk-play { border-top:1px solid #ab885d4a; padding:.6rem .7rem .75rem; text-align:center; background:#302632; }
.pk-play > p { color:var(--pk-text); margin:0 auto .55rem; line-height:1.5; font-size:.9rem; }
.pk-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:.45rem; }
.pk-actions .pk-action {
  min-height:44px; min-width:5.8rem; padding:.45rem .8rem; margin:0;
  color:#302218; background:linear-gradient(160deg,#f7deb1,#ddbb83);
  border:1px solid #efd3a3; border-radius:.5rem;
  font-family:inherit; font-size:.96rem; font-weight:650; line-height:1.4;
  cursor:pointer; touch-action:manipulation; text-shadow:none; letter-spacing:normal;
}
.pk-actions .pk-secondary { color:var(--pk-ivory); background:#37303a; border-color:#ad947774; }
.pk-actions .pk-action:disabled { opacity:.47; cursor:default; }
.pk-actions .pk-action:active:not(:disabled) { transform:translateY(1px); }
.pk-ranking { margin:0; padding:.4rem .8rem; border-top:1px solid #ab885d4a; color:var(--pk-text); text-align:left; }
.pk-ranking > summary { cursor:pointer; width:fit-content; min-height:34px; padding:.35rem .15rem; font-size:.88rem; color:#ebd6b3; }
.pk-ranking > p { margin:.1rem .15rem .55rem; font-size:.9rem; line-height:1.65; }
@media (prefers-reduced-motion:no-preference) {
  .pk-reveal .pk-card { animation:pk-turn .25s backwards; }
  .pk-reveal .pk-card:nth-child(2) { animation-delay:40ms; }
  .pk-reveal .pk-card:nth-child(3) { animation-delay:80ms; }
  .pk-reveal .pk-card:nth-child(4) { animation-delay:120ms; }
  .pk-reveal .pk-card:nth-child(5) { animation-delay:160ms; }
  @keyframes pk-turn { from { transform:perspective(240px) rotateY(-74deg); opacity:.35; } }
}
@media (prefers-reduced-motion:reduce) { .pk-row .pk-card { transition:none; } }
@media (hover:hover) { .pk-row button.pk-card:not(:disabled):not(.pk-picked):hover { transform:translateY(-.16rem); } }
@media (max-width:360px) {
  .pk-seats { padding-inline:.46rem; }
  .pk-actions { gap:.3rem; }
  .pk-actions .pk-action { min-width:0; padding:.4rem .55rem; }
}
