.mechanic-filter { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:12px; font-weight:650; }
.mechanic-filter select { min-height:46px; min-width:160px; padding:8px 12px; color:var(--ink); background:#18182a; border:1px solid var(--tile-border); font:inherit; }
.mechanic-filter select:focus-visible { outline:3px solid #fbdeff; outline-offset:3px; }
.game-section-nav a[aria-current=location] { color:var(--tile-ink); background:var(--tile-cyan); border-color:var(--tile-cyan); }
.compare-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }

.worked-visual { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:10px 0; }
.card-duel > div { display:grid; gap:5px; }
.card-duel .playing-card { background:#f5f2ff; color:#192035; padding:12px 15px; border:2px solid #6f6c98; box-shadow:4px 4px #151323; line-height:1; margin:0; font-size:27px; }
.card-duel .red-card { color:#aa233f; }
.worked-visual b { align-self:center; padding:6px 10px; background:var(--tile-cyan); color:#141428; }
.example-die { width:49px; height:49px; box-sizing:border-box; display:grid; grid-template-columns:repeat(3,1fr); align-items:center; justify-items:center; padding:6px; box-shadow:4px 4px #8963b2; background:#f4edff; }
.example-die i { width:7px; height:7px; }
.example-die .pip { border-radius:50%; background:#322349; }
.icefire-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:0; gap:14px; list-style:none; }
.icefire-steps li { padding:15px; border:1px solid var(--tile-border); background:var(--surface); }
.icefire-steps h3 { margin:0 0 10px; color:var(--tile-cyan); }
.icefire-steps p { margin:10px 0 0; color:var(--muted); }
.example-symbols { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; }
.example-symbols i { display:grid; place-items:center; min-height:35px; font-style:normal; background:#27273f; font-size:20px; }
.example-symbols .symbol-0 { border:1px dashed #706d88; background:#0d0d16; }
.example-symbols .symbol-1 { color:#6ee9ef; box-shadow:inset 0 -2px #4abac4; }
.example-symbols .symbol-2 { color:#deb3ff; }
.example-symbols .symbol-3 { color:#f5be96; }
.image-annotation { position:absolute; left:5px; top:40%; padding:4px 8px; color:#0d1525; background:#79f0f3; font-size:13px; font-weight:750; font-style:normal; }

.gallery-dialog { width:min(calc(100% - 20px),680px); max-height:calc(100dvh - 20px); background:#151523; color:var(--ink); border:1px solid #727095; padding:12px; overflow:auto; }
.gallery-dialog::backdrop { background:#070710ed; }
.gallery-toolbar { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:10px; }
.gallery-toolbar button { min-height:44px; padding:6px 10px; background:#2b2343; border:1px solid #746193; color:var(--ink); font:inherit; cursor:pointer; }
.gallery-toolbar button:hover,.gallery-toolbar button[aria-pressed=true] { background:var(--tile-cyan); color:var(--tile-ink); }
.gallery-image { overflow:auto; max-height:66dvh; touch-action:pan-y pinch-zoom; }
.gallery-image img { display:block; width:auto; max-width:100%; max-height:66dvh; margin:auto; }
.gallery-dialog.is-zoomed .gallery-image { touch-action:auto; }
.gallery-dialog.is-zoomed img { width:160%; max-width:none; max-height:none; margin:0; }
.gallery-caption { color:var(--muted); margin:10px 0 0; }
@media(max-width:760px) {
  .icefire-steps { grid-template-columns:1fr; }
  .gallery-toolbar button { padding-inline:8px; }
}
