/* Nertz uses Card Room's existing felt, cards, type and controls. */
.nertz-game .table-center{width:100%;min-width:0;min-height:0}
.nertz-game .table-top{gap:var(--space-2);align-items:start}
.nertz-game #round-label{white-space:nowrap;flex-shrink:0}
.nertz-game .game-centre{display:block}
.nertz-shared{max-width:720px;margin:auto}
.nertz-foundations{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));align-content:start;gap:var(--space-2);height:208px;overflow:auto;padding:var(--space-2)}
.nertz-foundation{min-width:0;padding:var(--space-1);background:var(--felt-deep);display:flex;align-items:center;flex-direction:column;gap:var(--space-1)}
.nertz-foundation .card{width:42px;height:59px;max-width:100%}
.nertz-foundation small{color:var(--muted);font-size:10px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.nertz-foundations .nertz-empty{height:92px}
.nertz-foundation.valid,.nertz-drop.valid,.nertz-empty.valid{outline:2px solid var(--lime);outline-offset:1px}
.nertz-empty{display:grid;place-items:center;border:1px dashed var(--line-strong);border-radius:8px;background:var(--felt-deep);color:var(--muted);min-height:44px;font-size:12px;padding:var(--space-1)}
.nertz-opponents{display:flex;justify-content:center;flex-wrap:wrap;gap:var(--space-2);font-size:12px;text-align:left}
.nertz-opponents details{max-width:100%;border-bottom:1px solid var(--line-strong)}
.nertz-public>summary{min-height:32px;padding:var(--space-2);cursor:pointer;font-size:12px;color:var(--muted)}
.nertz-opponents summary{min-height:32px;padding:var(--space-2);cursor:pointer;overflow-wrap:anywhere}
.nertz-opponents p{font-size:12px;overflow-wrap:anywhere}
#nertz-stall{min-height:20px}
.nertz-layout{width:min(100%,680px);margin:var(--space-4) auto;text-align:center}
.nertz-reserve{display:flex;justify-content:center;gap:var(--space-6);align-items:start}
.nertz-pile{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);width:80px;min-width:0;font-size:12px;color:var(--muted)}
.nertz-pile>.card,.nertz-pile .nertz-card{width:64px;height:90px}
.nertz-pile .nertz-empty{width:64px;height:90px}
.nertz-card{display:block;padding:0;background:transparent;border:0;min-height:0;min-width:0;touch-action:pan-y;border-radius:8px}
.nertz-card>.card{width:100%;height:100%;pointer-events:none}
.nertz-card.picked{outline:3px solid var(--lime);outline-offset:2px;z-index:2}
.nertz-card.hinted{box-shadow:0 0 0 3px var(--lime)}
.nertz-work{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-2);max-width:100%;overflow:auto;padding:var(--space-2);text-align:center;scroll-padding:var(--space-2)}
.nertz-column{min-width:0}
.nertz-drop{font-size:12px;min-height:32px;margin-bottom:var(--space-2);padding:var(--space-1) var(--space-2)}
.nertz-work-pile{position:relative;height:calc((var(--nertz-count) - 1)*28px + 112px);min-height:112px}
.nertz-work-pile>.nertz-card{position:absolute;top:calc(var(--nertz-index)*28px);left:50%;transform:translateX(-50%);width:min(100%,80px);height:28px}
.nertz-work-pile>.nertz-card:last-child{height:auto;aspect-ratio:5/7}
.nertz-work-pile>.nertz-card>.card{height:auto;aspect-ratio:5/7}
.nertz-work-pile>.nertz-empty{width:min(100%,80px);height:112px;margin:auto}
.nertz-game #nertz-picked{min-height:40px;overflow-wrap:anywhere}
.nertz-game #nertz-work .card .compact-index{display:block}
.nertz-game .card.nertz-loading .compact-index{display:block}
.nertz-game #nertz-work .card .compact-index.bottom{display:none}
.nertz-game .hand-wrap{display:none}
.nertz-game .table-notice{overflow-wrap:anywhere;min-height:40px}
body.large-cards .nertz-pile>.card,body.large-cards .nertz-pile .nertz-card{width:80px;height:112px}
body.large-cards .nertz-work{grid-template-columns:repeat(4,minmax(90px,1fr))}
body.large-cards .nertz-work-pile>.nertz-card{width:90px}
body.large-cards .nertz-work-pile{height:calc((var(--nertz-count) - 1)*28px + 126px)}
@media(max-width:767px){.nertz-foundations{grid-template-columns:repeat(4,minmax(0,1fr));height:112px}.nertz-reserve{gap:var(--space-3)}.nertz-work-pile{height:calc((var(--nertz-count) - 1)*28px + 90px)}.nertz-work-pile>.nertz-empty{height:90px}.nertz-game .table-center{margin-top:232px}.nertz-game .felt.crowded .table-center{margin-top:232px}.nertz-work{gap:var(--space-1);padding:var(--space-1)}.nertz-game .table-notice{min-height:60px}}
