/* ── the "start a new game" picker ────────────────────────────────────────
   Loaded after style.css so these win without !important. Scoped under
   .tpl-modal / .tpl-* so nothing here can reach another dialog. */

/* the picker needs room for a row of cards; every other dialog stays 460px */
.cloud-card.tpl-modal{width:min(680px,100%)}

.tpl-lede{margin:0 0 12px;color:var(--dim)}

.tpl-grid{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}

.tpl-card{display:block;cursor:pointer;margin:0}
/* the radio itself is off-screen rather than display:none, so it stays
   focusable and the keyboard can still walk the group */
.tpl-card input{position:absolute;opacity:0;width:1px;height:1px}

.tpl-face{display:flex;flex-direction:column;gap:5px;height:100%;
  background:var(--panel2);border:1px solid var(--line);border-radius:8px;padding:9px 10px}
.tpl-card:hover .tpl-face{border-color:var(--accent2)}
.tpl-card input:checked + .tpl-face{border-color:var(--accent);
  box-shadow:inset 0 0 0 1px var(--accent),0 2px 14px #7c5cff33}
.tpl-card input:focus-visible + .tpl-face{outline:2px solid var(--accent2);outline-offset:2px}

.tpl-art{width:100%;height:38px;object-fit:contain;image-rendering:pixelated;
  background:#111321;border:1px solid var(--line);border-radius:5px}
.tpl-name{color:var(--txt);font-weight:600}
.tpl-tag{color:var(--dim);font-size:11.5px;line-height:1.4}

.tpl-nameRow{margin-top:14px}
