/* Game page (#/game/<id>) and the BoardGameGeek pieces on the Games tab. Theme variables only: works in both themes. */
.game-link { color: inherit; text-decoration: none; }
.game-link:hover, .game-link:focus-visible { text-decoration: underline; }
.item-name .game-link { display: inline-block; padding: 10px 0; margin: -10px 0; } /* a 44px tap target without changing the row */

.gp-back { margin: 0 0 8px; }
.gp-back a { display: inline-flex; align-items: center; min-height: 44px; }
.gp { display: grid; gap: 18px; }
.gp-top { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.gp-art { flex: none; }
.gp-art .game-art { border-radius: 14px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.gp-head { flex: 1 1 240px; min-width: 0; }
.gp-head h2 { margin: 0 0 2px; overflow-wrap: anywhere; }
.gp-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.gp-fact { display: grid; gap: 2px; font-size: 0.95rem; }
.gp-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.gp-fact b { font-variant-numeric: tabular-nums; }
.gp-fact b small { color: var(--muted); font-weight: 500; }
.gp-weight { min-width: 140px; }
.gp-meter { display: block; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.gp-meter i { display: block; height: 100%; background: var(--accent); }
.gp-sec h3 { margin: 0 0 8px; font-size: 1.05rem; }
.gp-sec p { margin: 0 0 8px; overflow-wrap: anywhere; }
.gp-history { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.gp-history div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.gp-history dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.gp-history dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.gp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.gp-chips li { background: var(--accent-soft); color: var(--text); padding: 6px 12px; border-radius: 999px; font-size: 0.9rem; }
.gp-exp, .gp-books { margin: 0; padding-left: 18px; }
.gp-exp li, .gp-books li { padding: 4px 0; overflow-wrap: anywhere; }
.gp-credit, .bgg-credit { font-size: 0.8rem; color: var(--muted); margin: 6px 0 0; }
.gp-skel, .bgg-skel { height: 14px; border-radius: 7px; margin: 8px 0; background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: gp-shimmer 1.4s linear infinite; }
.gp-skel.short { width: 55%; }
.bgg-skel { height: 44px; border-radius: 12px; }
@keyframes gp-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .gp-skel, .bgg-skel { animation: none; } }

/* Suggestions under the Name box */
.bgg-suggest { margin: 4px 0 8px; }
.bgg-suggest[hidden] { display: none; }
.bgg-head { margin: 4px 0; font-size: 0.9rem; color: var(--muted); }
.bgg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bgg-opt { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 56px; padding: 6px 10px; text-align: left; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.bgg-opt:hover, .bgg-opt:focus-visible { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px var(--accent-soft); }
.bgg-opt img, .bgg-noimg { flex: none; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.bgg-opt-main { display: grid; gap: 1px; min-width: 0; overflow-wrap: anywhere; }
.bgg-opt-main small { color: var(--muted); }
.bgg-linked { margin: 4px 0; font-size: 0.9rem; }

/* The tools card */
.bgg-tools h2 { margin-top: 0; }
.bgg-block { border-top: 1px solid var(--border); padding: 12px 0; }
.bgg-block h3, .bgg-hot summary { font-size: 1.02rem; margin: 0 0 6px; font-weight: 700; }
.bgg-hot summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.bgg-review, .bgg-coll { border: 1px solid var(--border); border-radius: 12px; margin: 8px 0; padding: 8px 12px; }
.bgg-pick { display: flex; gap: 8px; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.bgg-pick.is-have { color: var(--muted); }
.bgg-pick img { border-radius: 6px; flex: none; }
.bgg-coll-list, .bgg-hot-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; }
.bgg-hot-list li { display: flex; gap: 10px; align-items: center; min-height: 52px; padding: 4px 0; border-top: 1px solid var(--border); }
.bgg-hot-list li:first-child { border-top: 0; }
.bgg-hot-list img { border-radius: 8px; flex: none; }
.bgg-hot-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
