.ma-list { display: grid; gap: 6px; }
.ma-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; background: var(--wa-surface); border: 1px solid var(--wa-border); border-radius: var(--wa-radius); }
.ma-row[hidden] { display: none; }
.ma-row-img { width: 48px; height: 48px; flex: none; object-fit: contain; }
.ma-row-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ma-row-title { font-weight: 600; }
.ma-row-when { font-size: .85rem; }
.ma-row-side { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.ma-row-side img { width: 40px; height: 40px; object-fit: contain; }
.ma-rumor { font-style: italic; }
.ma-check { flex: none; padding-top: 2px; }
.ma-check input { width: 18px; height: 18px; accent-color: var(--wa-accent); }
.ma-event.wa-done .ma-row-title { color: var(--wa-muted); }
.ma-group-head { display: flex; align-items: center; gap: 10px; padding: 14px 4px 6px; }
.ma-group-head img { width: 44px; height: 44px; flex: none; object-fit: contain; }
.ma-group-title { font-size: 1.05rem; font-weight: 700; margin: 12px 0 2px; }
.ma-group-head .ma-group-title { margin: 0; }
.ma-pill { position: sticky; bottom: 10px; width: fit-content; max-width: calc(100% - 32px); margin: 10px auto 0; padding: 6px 14px; border-radius: 16px; background: var(--wa-surface); border: 1px solid var(--wa-border); box-shadow: var(--wa-shadow); font-weight: 600; z-index: 3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-pill[hidden] { display: none; }
.ma-damage-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ma-damage-tools select { width: 100%; min-width: 0; }
.ma-damage-row { align-items: center; }
.ma-damage-result { flex: none; display: grid; justify-items: end; max-width: 45%; text-align: end; }
.ma-effect { font-style: italic; }
.ma-planner-tools { display: grid; gap: 10px; }
.ma-fill { display: flex; }
.ma-fill button { flex: 1; }
.ma-planner-show { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.ma-clock { max-width: 560px; margin: 0 auto; }
.ma-clock .wa-card { margin: 12px 0; }
.ma-clock-now { font-size: 1.9rem; font-weight: 700; text-align: center; margin-bottom: 8px; }
.ma-clock-caption { font-size: .85rem; color: var(--wa-muted); text-align: center; margin: 8px 0 4px; }
.ma-clock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 3px 0; }
.ma-clock-row b { text-align: end; }
.ma-clock-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.ma-clock-inputs .wa-input { width: 100%; min-width: 0; }
.ma-tracker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 4px; }
.ma-tracker-item { position: relative; display: flex; align-items: center; justify-content: center; height: 56px; padding: 0; border: 1px solid var(--wa-border); border-radius: 8px; background: var(--wa-surface); cursor: pointer; }
.ma-tracker-item img { width: 40px; height: 40px; object-fit: contain; opacity: .3; }
.ma-tracker-item.found img { opacity: 1; }
.ma-tracker-badge { position: absolute; right: 4px; bottom: 2px; font-size: .75rem; font-weight: 700; color: var(--wa-text); }
.ma-counter { align-items: center; }
.ma-counter-btn { padding: 6px 12px; flex: none; }
.ma-counter-value { min-width: 62px; text-align: center; flex: none; }
.ma-song-head { display: flex; gap: 14px; align-items: flex-start; }
.ma-song-title { font-size: 1.15rem; font-weight: 700; }
.ma-song-summary { font-weight: 700; color: var(--wa-accent-fg); }
.ma-cycle-badge { flex: none; align-self: center; padding: 3px 10px; border-radius: 11px; border: 1px solid var(--wa-border); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.ma-cycle-badge.ma-loss { background: var(--wa-accent); color: var(--wa-accent-text); border-color: transparent; }
.ma-song-marks { margin: 6px 0 12px; padding-inline-start: 20px; }
.ma-song-actions { display: grid; gap: 8px; margin-top: 10px; }
.ma-song-actions .wa-btn { width: 100%; }
.ma-kept-item { display: flex; align-items: center; justify-content: center; height: 48px; position: relative; border: 1px solid var(--wa-border); border-radius: 8px; background: var(--wa-surface); }
.ma-kept-item img { width: 32px; height: 32px; object-fit: contain; }
.ma-mg { --ma-mg-gold: #d4a937; --ma-mg-cut: var(--wa-surface); max-width: 1040px; margin: 0 auto; }
.ma-mg .wa-card { margin: 0; }
.ma-mg p { margin: 0; }
.ma-mg-intro { display: grid; gap: 8px; }
.ma-mg-split { display: flex; flex-direction: column; gap: 10px; }
.ma-mg-col { display: contents; }
.ma-mg-first { order: -1; }
.ma-mg-last { order: 1; }
@media (min-width: 760px) {
    .ma-mg-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
    .ma-mg-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
}
.ma-mg-segments { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.ma-mg-btn { min-height: 44px; padding: 6px 4px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--wa-accent-fg) 70%, transparent); background: var(--wa-surface); color: var(--wa-text); font: inherit; font-size: .85rem; font-weight: 600; line-height: 1.2; cursor: pointer; overflow-wrap: anywhere; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.ma-mg-btn:hover { background: var(--wa-surface-2); }
.ma-mg-btn[aria-pressed="true"], .ma-mg-primary, .ma-mg-btn[aria-pressed="true"]:hover, .ma-mg-primary:hover { background: var(--wa-accent); color: var(--wa-accent-text); border-color: transparent; }
.ma-mg-btn:disabled { opacity: .45; cursor: default; }
.ma-mg-summary { font-size: .85rem; font-weight: 700; text-align: center; }
.ma-mg-status { font-weight: 700; text-align: center; white-space: pre-line; min-height: 1.4em; }
.ma-mg-center { text-align: center; }
.ma-slide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 40vw), 1fr)); gap: 12px; margin-top: 12px; }
.ma-slide-tile { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--wa-border); border-radius: var(--wa-radius); background: var(--wa-surface); color: inherit; text-decoration: none; }
.ma-slide-tile:hover { border-color: var(--wa-accent-fg); }
.ma-slide-thumb { position: relative; display: block; aspect-ratio: 1; background: var(--wa-surface-2); }
.ma-slide-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ma-slide-badge { position: absolute; top: 6px; right: 6px; display: flex; padding: 4px 8px; border-radius: 14px; background: rgba(26, 15, 46, .8); color: var(--ma-mg-gold); }
.ma-slide-badge[hidden] { display: none; }
.ma-slide-badge svg { width: 14px; height: 14px; }
.ma-slide-title { margin: 6px 8px 0; font-size: .9rem; font-weight: 700; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.ma-slide-best { margin: 2px 8px 8px; font-size: .78rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ma-mg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 6px 8px; text-align: center; background: var(--wa-surface); border: 1px solid var(--wa-border); border-radius: var(--wa-radius); }
.ma-mg-stats span { display: block; font-size: .72rem; color: var(--wa-muted); }
.ma-mg-stats b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.ma-slide-canvas { display: block; width: 100%; max-width: max(200px, calc(100svh - var(--wa-topbar-h) - 110px)); aspect-ratio: 1; margin: 0 auto; border-radius: 6px; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
@media (min-width: 760px) { .ma-slide-canvas { max-width: max(200px, calc(100svh - var(--wa-topbar-h) - 40px)); } }
[data-ma-peek] { -webkit-touch-callout: none; }
.ma-code-slots { display: flex; justify-content: center; gap: 8px; }
.ma-code-slot { display: flex; align-items: center; justify-content: center; width: 50px; height: 58px; flex: 0 1 50px; min-width: 0; border: 2px solid color-mix(in srgb, var(--wa-accent-fg) 60%, transparent); border-radius: 8px; background: var(--wa-surface); font-size: 1.75rem; font-weight: 700; }
.ma-code-slot.active { border-color: var(--ma-mg-gold); }
.ma-code-keys { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ma-code-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px; }
.ma-code-key { min-height: 52px; font-size: 1.35rem; font-weight: 700; }
.ma-code-key svg { width: 26px; height: 26px; vertical-align: middle; }
.ma-code-submit { font-size: 1.05rem; }
.ma-code-counters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.ma-mg .ma-code-notebook { display: grid; gap: 6px; padding: 10px; }
.ma-code-notebook-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ma-code-toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.ma-code-attempts { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ma-code-attempt { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 4px 2px; }
.ma-code-num { font-size: .8rem; color: var(--wa-muted); }
.ma-code-digits { font-family: ui-monospace, "Roboto Mono", Consolas, monospace; font-size: 1.2rem; font-weight: 700; white-space: pre; }
.ma-code-feedback { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 3px; max-width: 110px; }
.ma-code-feedback svg { display: block; width: 10px; height: 10px; }
.ma-code-feedback .ma-code-bomb { width: 16px; height: 16px; color: var(--ma-mg-gold); }
.ma-code-feedback .ma-code-miss { opacity: .2; }
.ma-moon-clock { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 10px; }
.ma-mg .ma-moon-clock { padding: 8px 12px; }
.ma-moon-icon { display: flex; justify-content: center; color: var(--ma-mg-gold); transition: transform .3s ease-out; }
.ma-moon-icon svg { width: 22px; height: 22px; }
.ma-moon-clock-main { display: grid; gap: 4px; min-width: 0; }
.ma-moon-time { font-size: 1.15rem; }
.ma-moon-clock-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; }
.ma-moon-grid { display: grid; grid-template-columns: repeat(var(--ma-cols, 4), minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 100%; margin: 0 auto; }
.ma-moon-card { display: grid; place-items: center; aspect-ratio: 1; min-width: 0; padding: 0; overflow: hidden; border: 2px solid color-mix(in srgb, var(--wa-accent-fg) 70%, transparent); border-radius: 10px; background: var(--wa-accent); color: var(--ma-mg-gold); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ma-moon-card > * { grid-area: 1 / 1; }
.ma-moon-card svg { width: 26px; height: 26px; }
.ma-moon-card img { width: 100%; height: 100%; object-fit: contain; padding: 2px; transform: scale(1.2); border-radius: 0; }
.ma-moon-card.up { background: var(--wa-surface-2); }
.ma-moon-card.matched { border-color: var(--ma-mg-gold); }
.ma-moon-card.matched img { opacity: .6; }
.ma-moon-card.ma-flip { animation: ma-flip .16s cubic-bezier(.33, 1, .68, 1); }
@keyframes ma-flip { from { transform: scaleX(.2); } to { transform: scaleX(1); } }
