/* Cod Names (Codenames rules) */
.cn { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .cn { grid-template-columns: 1fr; } }
.cn-side { display: flex; flex-direction: column; gap: 12px; } .cn-side .card { padding: 12px; }
.cn-score { display: flex; gap: 12px; align-items: center; justify-content: center; margin-bottom: 10px; }
.cn-score .vs { color: var(--muted); font-weight: 800; }
.cn-team { display: flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 999px; background: #0a2633; border: 3px solid transparent; }
.cn-team .ic svg { width: 40px; height: 28px; display: block; }
.cn-team b { font-size: 1.1rem; } .cn-team .n { font: 900 1.6rem system-ui; } .cn-team small { color: var(--muted); }
.cn-team.red { border-color: #d8443a55; } .cn-team.blue { border-color: #2f7fd155; }
.cn-team.red.on { border-color: #ff7a5a; box-shadow: 0 0 18px #d8443a88; } .cn-team.blue.on { border-color: #5aa0ff; box-shadow: 0 0 18px #2f7fd188; }
.cn-bar { padding: 12px; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; text-align: center; }
.cn-status { font-weight: 800; font-size: 1.05rem; } .cn-status.me { color: var(--accent, #ffd24a); } .cn-status small { display: block; font-weight: 400; color: var(--muted); }
.cn-cluein { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; width: 100%; }
.cn-cluein input { font: 700 1.1rem system-ui; padding: 8px 12px; border-radius: 10px; width: 200px; text-transform: uppercase; }
.cn-cluein select { font: 700 1.1rem system-ui; padding: 8px; border-radius: 10px; }
.cn-bar p { width: 100%; margin: 0; }
.cn-clue { display: flex; gap: 10px; align-items: center; padding: 6px 18px; border-radius: 14px; background: #f3ead2; color: #1d1a17; border: 3px solid #8a6d1f; }
.cn-clue .w { font: 900 1.6rem Georgia, serif; text-transform: uppercase; letter-spacing: 1px; }
.cn-clue .n { font: 900 1.4rem system-ui; color: #fff; border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; }
.cn-clue.red .n { background: #d8443a; } .cn-clue.blue .n { background: #2f7fd1; }
.cn-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cn-card { position: relative; aspect-ratio: 1.6; border-radius: 12px; border: 0; padding: 4px; background: linear-gradient(#f6efd9, #e6d8b2); color: #1d1a17; box-shadow: 0 3px 0 #b29a63, 0 6px 12px rgba(0,0,0,.35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: default; overflow: hidden; min-width: 0; }
.cn-card .w { font: 800 clamp(.6rem, 1.6vw, 1.05rem) system-ui; letter-spacing: .5px; max-width: 100%; overflow-wrap: anywhere; line-height: 1.1; }
.cn-card.can { cursor: pointer; } .cn-card.can:hover { transform: translateY(-2px); }
.cn-card.armed { outline: 4px solid #ffd24a; }
.cn-card .again { position: absolute; bottom: 3px; font: 700 .65rem system-ui; color: #8a5a00; }
.cn-card.key.red { box-shadow: inset 0 0 0 5px #d8443a, 0 3px 0 #b29a63, 0 6px 12px rgba(0,0,0,.35); }
.cn-card.key.blue { box-shadow: inset 0 0 0 5px #2f7fd1, 0 3px 0 #b29a63, 0 6px 12px rgba(0,0,0,.35); }
.cn-card.key.sand { box-shadow: inset 0 0 0 5px #c9a56b, 0 3px 0 #b29a63, 0 6px 12px rgba(0,0,0,.35); }
.cn-card.key.shark { box-shadow: inset 0 0 0 5px #111, 0 3px 0 #b29a63, 0 6px 12px rgba(0,0,0,.35); background: linear-gradient(#cfd5dc, #9aa3ad); }
.cn-card.up { cursor: default; }
.cn-card.up.red { background: linear-gradient(#ff9a7a, #d8443a); color: #fff; } .cn-card.up.blue { background: linear-gradient(#6aa8f0, #2f7fd1); color: #fff; }
.cn-card.up.sand { background: linear-gradient(#f6e3bf, #d9bd86); } .cn-card.up.shark { background: linear-gradient(#3a4652, #11171d); color: #fff; }
.cn-card .pic svg { width: clamp(28px, 4vw, 52px); height: auto; display: block; }
.cn-tl { margin-bottom: 8px; } .cn-tl > b { display: block; margin-bottom: 4px; } .cn-tl.red > b { color: #ff7a5a; } .cn-tl.blue > b { color: #5aa0ff; }
.cn-tl .pl { display: flex; gap: 6px; align-items: center; padding: 3px 6px; border-radius: 8px; font-size: .9rem; }
.cn-tl .pl.act { background: rgba(255,210,74,.15); }
.cn-tl .role { margin-left: auto; color: var(--muted); font-size: .8rem; }
.cn-hist .h { font-size: .85rem; margin-bottom: 4px; } .cn-hist .h.red b { color: #ff7a5a; } .cn-hist .h.blue b { color: #5aa0ff; }
.cn-hist .g { padding: 0 4px; border-radius: 4px; background: #333; } .cn-hist .g.red { background: #d8443a; } .cn-hist .g.blue { background: #2f7fd1; } .cn-hist .g.sand { background: #b0925a; } .cn-hist .g.shark { background: #000; }
.cn .endbox { margin-top: 12px; }
.cn-main { min-width: 0; }
@media (max-width: 600px) {
  .cn-score { gap: 6px; } .cn-score .vs { display: none; }
  .cn-team { padding: 4px 10px; gap: 5px; } .cn-team .ic svg { width: 28px; height: 20px; } .cn-team b { font-size: .95rem; } .cn-team .n { font-size: 1.2rem; } .cn-team small { display: none; }
  .cn-grid { gap: 5px; } .cn-card { aspect-ratio: 1.15; border-radius: 9px; padding: 2px; } .cn-card .w { font-size: .58rem; letter-spacing: 0; }
  .cn-clue .w { font-size: 1.2rem; } .cn-cluein input { width: 150px; }
}
