
:root { --felt: #1d4d33; --felt-deep: #0b2116; --walnut: #3a2414; --oxblood: #3a120c; --ivory: #f4ead2; --lamp: rgba(255, 214, 150, .16); }
body { background:
  radial-gradient(70% 45% at 50% 0%, rgba(255, 210, 140, .14), transparent 70%),
  radial-gradient(120% 70% at 50% 110%, rgba(40, 24, 10, .9), transparent 60%),
  repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 4px),
  #120e0b; }


.pl-table { position: relative; min-height: 0; border-radius: 16px; overflow: hidden; touch-action: manipulation; cursor: pointer;
  background: radial-gradient(70% 70% at 50% 45%, #1f5236, #0b2116 80%, #050d08);
  box-shadow: inset 0 0 0 1px rgba(248, 208, 106, .16), inset 0 0 40px rgba(0, 0, 0, .7), 0 14px 36px rgba(0, 0, 0, .55); }
.pl-table canvas { position: absolute; inset: 0; display: block; }
.pl-table::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(85% 80% at 50% 45%, transparent 62%, rgba(5, 4, 3, .55) 100%); }
.pl-table .kh3d-coach { z-index: 5; }
.pl-table .sr button { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; margin: 0; overflow: hidden; }


.pl-talk { margin: 0; min-height: 20px; font-size: 13.5px; line-height: 1.3; color: var(--cream-dim); font-style: italic; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .4; transition: opacity .3s; }
.pl-talk.on { opacity: 1; animation: plTalk .5s var(--ease); }
@keyframes plTalk { from { opacity: 0; transform: translateY(4px); } }
[data-calm=on] .pl-talk.on { animation: none; }


.pl-seats { display: flex; gap: 6px; justify-content: center; flex-wrap: nowrap; min-width: 0; }
.pl-seat { position: relative; display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1 1 0; max-width: 220px; padding: 5px 8px 5px 5px; border-radius: 11px;
  background: linear-gradient(180deg, rgba(58, 40, 18, .92), rgba(24, 16, 8, .94)); box-shadow: inset 0 0 0 1px rgba(248, 208, 106, .32), inset 0 1px 0 rgba(255, 236, 190, .12), 0 6px 16px rgba(0, 0, 0, .45);
  transition: box-shadow .25s, transform .25s; }
.pl-seat.turn { box-shadow: inset 0 0 0 2px var(--brass-light), 0 0 18px rgba(248, 208, 106, .35), 0 6px 16px rgba(0, 0, 0, .45); }
.pl-seat.out { opacity: .45; filter: grayscale(.6); }
.pl-seat.you { background: linear-gradient(180deg, rgba(30, 60, 44, .92), rgba(12, 26, 18, .94)); }
.pl-mono { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 900 18px/1 var(--f-display); color: #2a1a04;
  background: radial-gradient(circle at 38% 30%, #ffe8a8, #d9a441 55%, #8a5c18); box-shadow: inset 0 -2px 0 rgba(60, 30, 0, .5), 0 2px 4px rgba(0, 0, 0, .6); }
.pl-nm { min-width: 0; display: grid; line-height: 1.05; }
.pl-nm b { font-family: var(--f-display); font-weight: 900; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; color: var(--light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-nm small { font-family: var(--f-label); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-x { margin-left: auto; flex: none; font: 900 17px/1 var(--f-display); color: var(--brass-light); text-align: right; }
.pl-x small { display: block; font: 700 9px/1.2 var(--f-label); letter-spacing: .1em; color: var(--cream-dim); text-transform: uppercase; }
.pl-keys { display: inline-flex; gap: 2px; }
.pl-key { width: 18px; height: 9px; color: rgba(241, 230, 201, .25); }
.pl-key.on { color: var(--brass-light); filter: drop-shadow(0 0 3px rgba(248, 208, 106, .5)); }
@media (max-width: 520px) {
  .pl-seat { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 6px; row-gap: 0; padding: 4px 6px 4px 4px; }
  .pl-mono { grid-row: 1 / 3; width: 28px; height: 28px; font-size: 15px; } .pl-nm b { font-size: 13px; } .pl-nm small { display: none; }
  .pl-x { margin-left: 0; text-align: left; font-size: 15px; } .pl-x small { display: none; }
}


.pl-handoff { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 7px 12px; border-radius: 12px; text-decoration: none; color: var(--cream);
  background: linear-gradient(180deg, rgba(34, 30, 26, .88), rgba(14, 12, 10, .93)); box-shadow: inset 0 0 0 1px rgba(248, 208, 106, .38), 0 6px 16px rgba(0, 0, 0, .45); }
.pl-handoff span { flex: 1; min-width: 0; display: grid; }
.pl-handoff b { font-family: var(--f-label); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-light); }
.pl-handoff small { font-size: 12px; line-height: 1.25; color: var(--cream-dim); }
.pl-handoff svg { width: 26px; height: 26px; flex: none; color: var(--brass-light); }
.pl-handoff:hover { box-shadow: inset 0 0 0 1.5px var(--brass-light), 0 6px 16px rgba(0, 0, 0, .45); }
.pl-handoff:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }


.pl-level { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 4px; border-radius: 999px; background: linear-gradient(180deg, rgba(20, 14, 8, .9), rgba(40, 28, 14, .9)); box-shadow: inset 0 0 0 1px rgba(248, 208, 106, .35), inset 0 2px 6px rgba(0, 0, 0, .6); }
.pl-level button { min-height: 44px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-family: var(--f-label); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-dim); transition: background .2s, color .2s; }
.pl-level button[aria-pressed=true] { background: var(--brass-grad); color: var(--brass-ink); box-shadow: var(--brass-edge); }
.pl-pick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pl-pick button { min-height: 44px; padding: 6px 12px; border-radius: 12px; border: 0; cursor: pointer; display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--cream);
  background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px rgba(248, 208, 106, .25); }
.pl-pick button .pl-mono { width: 26px; height: 26px; font-size: 14px; }
.pl-pick button[aria-pressed=true] { box-shadow: inset 0 0 0 2px var(--brass-light), 0 0 14px rgba(248, 208, 106, .25); background: rgba(227, 167, 47, .12); }
.pl-pick button[aria-pressed=false] .pl-mono { filter: grayscale(.8) brightness(.7); }
.pl-pick button[disabled] { cursor: default; }


.pl-modes { display: flex; gap: 8px; width: min(100%, 420px); }
.pl-modes .kh-btn { flex: 1; min-width: 0; }
.pl-note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.pl-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font: 700 10px/1.4 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); background: var(--brass-grad); }


[data-portrait=clem], [data-portrait=rook], [data-portrait=vera] { background-size: cover; background-position: center 28%; color: transparent; font-size: 0; box-shadow: 0 0 0 1.5px rgba(248, 208, 106, .7), 0 2px 6px rgba(0, 0, 0, .5); }
[data-portrait=clem] { background-image: url(../assets/classics/portrait-clem.webp); }
[data-portrait=rook] { background-image: url(../assets/classics/portrait-rook.webp); }
[data-portrait=vera] { background-image: url(../assets/classics/portrait-vera.webp); }
.pl-poster { display: block; width: min(38vw, 168px); aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: 12px; flex: none; margin: 0 auto;
  box-shadow: 0 0 0 1px rgba(248, 208, 106, .45), 0 14px 34px rgba(0, 0, 0, .6); }
.face-start > .mini-plate, .face-start > .mini-safe, .face-start > .fan-hero, .face-start > .hero-dice { display: none; }
@media (max-height: 780px) { .pl-poster { width: 62px; border-radius: 9px; } }
@media (min-width: 900px) { .pl-poster { width: 220px; } }
