/* Shared deck engine (engine-deck.js). Tokens only, so dark mode works. */
.tool.deck { gap: 14px; }
.tool .deck-filters { display: flex; flex-direction: column; gap: 10px; }
.tool .deck-filters .tool-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 2px 24px; scroll-padding: 24px; }
.tool .deck-filters .tool-chips::-webkit-scrollbar { display: none; }
.tool .deck-filters .tool-chips button { flex: none; }
.tool .deck-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.tool .deck-progress { font-size: 14px; font-weight: 750; color: rgb(var(--ink) / .5); font-variant-numeric: tabular-nums; }
.tool .deck-tools { display: flex; gap: 4px; }
.tool .deck-icon {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 22px; background: transparent;
  color: rgb(var(--ink) / .6); transition: background-color .2s ease, color .2s ease, transform .3s var(--ease-out);
}
.tool .deck-icon:hover { background: rgb(var(--ink) / .06); color: rgb(var(--ink)); }
.tool .deck-icon:active { transform: scale(.9); }
.tool .deck-icon[aria-pressed="true"] { color: #E0347E; }
.tool .deck-icon[aria-pressed="true"] .tool-icon path { fill: currentColor; }
.tool .deck-card { min-height: 220px; align-content: center; gap: 12px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tool .deck-meta { font-size: 13px; line-height: 18px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--link); min-height: 18px; }
.tool .deck-text { width: 100%; }
.tool .deck-q { font-size: 24px; line-height: 32px; font-weight: 850; letter-spacing: -.01em; text-wrap: balance; color: rgb(var(--ink)); }
.tool .deck-turn { font-size: 15px; font-weight: 800; color: rgb(var(--ink) / .7); text-align: center; }
.tool .deck-choice { display: grid; grid-template-columns: 1fr; gap: 8px; width: 100%; }
.tool .deck-opt {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border-radius: 18px; text-align: left;
  background: var(--surface-2); color: rgb(var(--ink)); font-size: 18px; line-height: 24px; font-weight: 800;
  box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s ease, background-color .2s ease, transform .3s var(--ease-out);
}
.tool .deck-opt:active { transform: scale(.98); }
.tool .deck-opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px rgb(var(--accent)); background: rgb(var(--accent) / .12); }
.tool .deck-opt-key { flex: none; width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; font-size: 13px; font-weight: 900; background: var(--surface); color: rgb(var(--ink) / .6); }
.tool .deck-or { text-align: center; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: rgb(var(--ink) / .4); }
.tool .deck-badge { margin-left: auto; font-size: 12px; font-weight: 850; padding: 4px 10px; border-radius: 12px; background: rgb(var(--ink)); color: var(--bg); }
.tool .deck-reveal { margin-top: 10px; font-size: 16px; font-weight: 850; color: var(--link); animation: card-in .45s var(--ease-out) both; }
.tool .deck-actions .btn-primary { flex: 1 1 auto; }
.tool .deck-more { border-radius: 16px; background: var(--surface); }
.tool .deck-more summary { min-height: 48px; padding: 12px 16px; font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.tool .deck-more summary::-webkit-details-marker { display: none; }
.tool .deck-more[open] summary { padding-bottom: 4px; }
.tool .deck-more > div, .tool .deck-more > ol { padding: 8px 16px 16px; }
.tool .deck-favs li { background: var(--surface-2); }
.tool .tool-icon { width: 22px; height: 22px; }
@media (max-width: 599px) {
  .tool .deck-filters .tool-chips { margin: 0 -16px; padding: 2px 16px; }
  .tool .deck-card { min-height: 240px; }
  .tool .deck-q { font-size: 22px; line-height: 30px; }
  .tool .deck-actions { flex-direction: row-reverse; }
  .tool .deck-actions .btn { width: auto; }
  .tool .deck-actions .btn-primary { flex: 1; }
}
@media (min-width: 600px) { .tool .deck-choice { grid-template-columns: 1fr auto 1fr; align-items: stretch; } .tool .deck-or { align-self: center; } }
