.al-mirror-btn { position: absolute; top: 56px; left: 10px; z-index: 500; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--wa-border); border-radius: 18px; background: var(--wa-surface); color: var(--wa-text); font: inherit; font-weight: 600; font-size: .8rem; cursor: pointer; }
.al-mirror-btn img { filter: var(--wa-icon-filter, none); }

.al-damage-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.al-damage-tools label { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; min-width: 0; }
.al-damage-tools select { width: 100%; min-width: 0; }
@media (max-width: 480px) { .al-damage-tools { grid-template-columns: 1fr; } }
.al-damage-list { display: grid; gap: 6px; margin-top: 10px; }
.al-damage-row { background: var(--wa-surface); border: 1px solid var(--wa-border); border-radius: var(--wa-radius); overflow: hidden; }
.al-damage-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.al-damage-head img { width: 36px; height: 36px; flex: none; object-fit: contain; }
.al-damage-title { flex: 1; min-width: 0; display: grid; }
.al-damage-title b, .al-damage-title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-damage-title small, .al-damage-result small { color: var(--wa-muted); }
.al-damage-result { flex: none; display: grid; text-align: end; font-weight: 600; max-width: 45%; }
.al-damage-weapons { width: 100%; border-collapse: collapse; font-size: .82rem; }
.al-damage-weapons td { padding: 4px 10px; border-top: 1px solid var(--wa-border); }
.al-damage-weapons td + td { text-align: end; }

.al-tracker-summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 0; }
.al-tracker-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.al-tracker-item, .al-tracker-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--wa-border); border-radius: 8px; background: var(--wa-surface); cursor: pointer; padding: 6px; }
.al-tracker-item img { width: 36px; height: 36px; object-fit: contain; opacity: .28; }
.al-tracker-item.found img, .al-tracker-icon.found img { opacity: 1; }
.al-tracker-icon img { width: 26px; height: 26px; object-fit: contain; opacity: .28; }
.al-tracker-level { position: absolute; bottom: 1px; right: 4px; font-size: .7rem; font-weight: 700; }
.al-tracker-dungeon { gap: 8px; }

.al-mirror { position: relative; width: 100%; max-width: 640px; margin: 8px auto 0; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #000; }
.al-mirror-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.al-mirror-light { clip-path: inset(0 calc(100% - var(--al-split)) 0 0); }
.al-mirror-line { position: absolute; top: 0; bottom: 0; left: var(--al-split); width: 2px; background: var(--wa-accent); }
.al-mirror-range { display: block; width: 100%; max-width: 640px; margin: 8px auto; }
.al-mirror-labels { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: .85rem; }

.al-quest-title { margin: 4px 0 8px; font-size: 1.1rem; }
.al-quest-hints { display: grid; gap: 6px; margin: 10px 0; }
.al-quest-hint { padding: 8px 10px; border: 1px solid var(--wa-border); border-radius: 8px; background: var(--wa-surface-2); color: inherit; font: inherit; text-align: start; }
button.al-quest-hint { cursor: pointer; }
button.al-quest-hint:disabled { cursor: default; opacity: .6; }

.al-picross-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.al-picross-tile { display: grid; justify-items: center; gap: 4px; padding: 8px; border: 1px solid var(--wa-border); border-radius: 8px; background: var(--wa-surface); color: inherit; text-decoration: none; font-size: .78rem; font-weight: 600; text-align: center; }
.al-picross-tile canvas { width: 64px; height: 64px; image-rendering: pixelated; background: var(--wa-surface-2); border-radius: 4px; }
.al-picross-dots { display: flex; gap: 4px; }
.al-picross-dots span { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--wa-muted); }
.al-picross-dots span.on { background: var(--wa-success); border-color: var(--wa-success); }

.al-puzzle-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; font-weight: 600; }
.al-picross-board { display: grid; width: 100%; max-width: 560px; margin: 0 auto; touch-action: none; user-select: none; -webkit-user-select: none; font-size: clamp(8px, 2.6vw, 12px); }
.al-clue { display: flex; align-items: flex-end; justify-content: center; color: var(--wa-muted); font-weight: 600; line-height: 1.15; min-width: 0; }
.al-clue.row { justify-content: flex-end; align-items: center; gap: .3em; padding-right: .4em; white-space: nowrap; }
.al-clue.col { flex-direction: column; padding-bottom: .3em; }
.al-clue.done { opacity: .35; }
.al-cell { aspect-ratio: 1; border: 1px solid var(--wa-border); background: var(--wa-surface); position: relative; min-width: 0; }
.al-cell.f { background: var(--wa-accent); }
.al-cell.x::before, .al-cell.m::before { content: ""; position: absolute; inset: 18%; background: linear-gradient(45deg, transparent 44%, currentColor 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, currentColor 44% 56%, transparent 56%); color: var(--wa-muted); }
.al-cell.m { background: color-mix(in srgb, var(--wa-danger, #c0392b) 35%, var(--wa-surface)); }
.al-cell.m::before { color: var(--wa-danger, #c0392b); }
.al-cell.thick-r { border-right-width: 2px; border-right-color: var(--wa-muted); }
.al-cell.thick-b { border-bottom-width: 2px; border-bottom-color: var(--wa-muted); }
.al-puzzle-tools { justify-content: center; margin-top: 10px; }
.al-puzzle-tools .wa-btn[aria-pressed="true"] { outline: 2px solid var(--wa-accent); }
