/* Love map game (love-map-questions.js): numbered board, question card, "I know..." checklist. Tokens only. */
.tool.lm .lm-h { font-size: 24px; line-height: 30px; text-wrap: balance; }
.tool.lm .lm-center { text-align: center; }
.tool.lm .lm-board, .tool.lm .lm-ask-screen { gap: 14px; }
.tool.lm .lm-turn { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tool.lm .lm-turn-t { font-size: 18px; line-height: 24px; font-weight: 750; color: rgb(var(--ink)); }
.tool.lm .lm-turn-t b { font-weight: 950; }
.tool.lm .qz-count { font-size: 14px; font-weight: 800; color: rgb(var(--ink) / .5); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tool.lm .lm-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
@media (min-width: 600px) { .tool.lm .lm-grid { grid-template-columns: repeat(10, 1fr); gap: 8px; } }
.tool.lm .lm-tile {
  min-height: 48px; border-radius: 14px; font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums;
  background: var(--surface); color: rgb(var(--ink)); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .08);
  transition: box-shadow .15s ease, background-color .15s ease, transform .2s var(--ease-out);
}
.tool.lm .lm-tile:hover { box-shadow: inset 0 0 0 2px rgb(var(--accent) / .5); }
.tool.lm .lm-tile:active { transform: scale(.96); }
.tool.lm .lm-tile:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; }
.tool.lm .lm-tile.is-old { color: rgb(var(--ink) / .55); }
.tool.lm .lm-tile.is-used { background: transparent; box-shadow: inset 0 0 0 1px rgb(var(--ink) / .06); color: rgb(var(--ink) / .2); text-decoration: line-through; cursor: default; }
.tool.lm .lm-board-foot { display: flex; justify-content: space-between; align-items: center; }
.tool.lm .lm-surprise, .tool.lm .lm-end { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 22px; font-size: 15px; font-weight: 800; color: var(--link); background: transparent; }
.tool.lm .lm-surprise:hover, .tool.lm .lm-end:hover { background: rgb(var(--accent) / .1); }
.tool.lm .lm-end { color: rgb(var(--ink) / .74); padding: 0 14px; align-self: center; }
.tool.lm .lm-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); min-height: 260px; animation: lm-deal .4s var(--ease-out) both; }
@keyframes lm-deal { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.tool.lm .lm-card-top { display: flex; justify-content: space-between; align-items: center; }
.tool.lm .lm-num { font-size: 15px; font-weight: 900; color: rgb(var(--ink) / .45); font-variant-numeric: tabular-nums; }
.tool.lm .lm-ask { font-size: 14px; line-height: 20px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; color: var(--link); }
.tool.lm .lm-q { font-size: 26px; line-height: 34px; font-weight: 900; letter-spacing: -.01em; text-wrap: balance; color: rgb(var(--ink)); outline: none; flex: 1; }
.tool.lm .lm-rule { font-size: 14px; line-height: 20px; font-weight: 650; color: rgb(var(--ink) / .74); }
@media (min-width: 600px) { .tool.lm .lm-judge .btn { flex: 1 1 0; } }
.tool.lm .lm-win { font-size: 28px; line-height: 34px; }
.tool.lm .lm-final { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool.lm .lm-final .is-win { box-shadow: inset 0 0 0 2px rgb(var(--accent)); }
.tool.lm .lm-misses li b { font-weight: 850; }
.tool.lm .lm-check-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tool.lm .lm-count { flex: none; margin-top: 4px; }
.tool.lm .lm-areas { display: grid; gap: 8px; }
.tool.lm .lm-area { border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .06); }
.tool.lm .lm-area summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 16px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 850; color: rgb(var(--ink)); }
.tool.lm .lm-area summary::-webkit-details-marker { display: none; }
.tool.lm .lm-area summary:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: -2px; border-radius: 20px; }
.tool.lm .lm-area-n { font-size: 14px; font-weight: 850; color: var(--link); font-variant-numeric: tabular-nums; }
.tool.lm .lm-checks { display: grid; gap: 2px; padding: 0 8px 8px; }
.tool.lm .lm-check { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px 8px; border-radius: 14px; text-align: left; background: transparent; color: rgb(var(--ink) / .85); font-size: 16px; line-height: 22px; font-weight: 650; transition: background-color .15s ease; }
.tool.lm .lm-check:hover { background: rgb(var(--ink) / .04); }
.tool.lm .lm-check:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: -2px; }
.tool.lm .lm-box { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgb(var(--ink) / .2); color: transparent; transition: background-color .15s ease, box-shadow .15s ease, color .15s ease; }
.tool.lm .lm-box .tool-icon { width: 16px; height: 16px; stroke-width: 3; }
.tool.lm .lm-check[aria-checked="true"] { color: rgb(var(--ink)); }
.tool.lm .lm-check[aria-checked="true"] .lm-box { background: rgb(var(--accent)); box-shadow: none; color: #fff; }
.tool.lm .lm-bars { display: grid; gap: 12px; }
.tool.lm .lm-bars li { display: grid; gap: 6px; }
.tool.lm .lm-bar-label { display: flex; justify-content: space-between; font-size: 15px; font-weight: 750; }
.tool.lm .lm-bar-label b { font-variant-numeric: tabular-nums; }
.tool.lm .lm-other > span { background: rgb(var(--ink) / .35); }
.tool.lm .lm-asks li { counter-increment: lm; }
@media (prefers-reduced-motion: reduce) { .tool.lm .lm-card { animation: none; } }
.tool.lm .lm-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 52px; line-height: 20px; }
.tool.lm .lm-tile-p { font-size: 12px; line-height: 14px; font-weight: 850; color: rgb(var(--ink) / .72); }
.tool.lm .lm-tile.is-p4 { background: rgb(var(--accent) / .1); }
.tool.lm .lm-tile.is-p5 { background: #6A1FB0; color: #fff; box-shadow: none; }
.tool.lm .lm-tile.is-p5 .lm-tile-p { color: #fff; }
.tool.lm .lm-tile.is-p4 .lm-tile-p { color: var(--link); }
.tool.lm .lm-tile.is-used .lm-tile-p { color: inherit; }
.tool.lm .lm-tile.is-used { background: transparent; }
.tool.lm .lm-win { font-size: 30px; line-height: 36px; color: rgb(var(--ink)); text-wrap: balance; }
.tool.lm .lm-all-row { display: flex; justify-content: flex-end; padding: 0 8px 8px; }
.tool.lm .lm-all { min-height: 40px; padding: 0 12px; border-radius: 20px; font-size: 14px; font-weight: 800; color: var(--link); background: transparent; }
.tool.lm .lm-all:hover { background: rgb(var(--accent) / .1); }
.tool.lm .lm-mini { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tool.lm .lm-mini .lm-end { color: var(--link); padding: 0 12px; }
.tool.lm .lm-asks { display: flex; flex-direction: column; gap: 8px; }
.tool.lm .lm-blanks summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 800; color: var(--link); }
.tool.lm .lm-blanks li { font-size: 15px; line-height: 22px; }
.tool.lm .lm-misses li { font-size: 15px; line-height: 22px; }
.tool.lm .lm-final .tool-stat b { color: rgb(var(--ink)); }

.tool.lm .lm-board-foot { margin: -8px 0; }
.tool.lm .lm-area-tag { font-size: 12px; line-height: 16px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; color: var(--link); }
.tool.lm .lm-mini .btn { flex: 1 1 auto; }

.tool.lm .lm-send { justify-content: center; }
.tool.lm .lm-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.tool.lm .lm-howto { padding: 12px 16px; border-radius: 16px; background: rgb(var(--accent) / .12); font-size: 15px; line-height: 22px; font-weight: 700; color: rgb(var(--ink)); }
.tool.lm .lm-tile.is-p5.is-used { background: transparent; color: rgb(var(--ink) / .2); }

.tool.lm .lm-card-r { display: inline-flex; align-items: center; gap: 4px; }
.tool.lm.is-full .lm-q { font-size: clamp(32px, 5vw, 60px); line-height: 1.15; }
.tool.lm .lm-misses .tool-title { font-size: 20px; margin-bottom: 8px; }
.tool.lm .lm-mini .btn { font-size: 15px; min-height: 48px; }
