feat: add trainer sound mode and manual danger ratings

This commit is contained in:
nyan404 committed 2026-11-22 16:58:47 +03:00
1 parent 9be0bb48c8
commit ad8e2d1438
13 files changed
+466 -58

No files matched your search

+13 -4
View File
@@ -41,7 +41,7 @@ p + p { margin-top: 8px; }
.portrait { width: 84px; height: 84px; flex: 0 0 auto; background: var(--map); border-radius: 50%; border: 2px solid var(--paper); }
.portrait img { width: 100%; height: 100%; object-fit: contain; }
.stats { margin: 0; }
.stats > div, .sound-guide > div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.stats > div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
dd { margin: 0; text-align: right; font-weight: bold; }
.stats dt, .stats dd { font-size: var(--small); }
.fineprint { font-size: var(--small); color: var(--muted); }
@@ -50,6 +50,8 @@ dd { margin: 0; text-align: right; font-weight: bold; }
.location-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 16px; }
.location-heading > span { font-size: var(--small); }
.scene-instructions { padding: 0 16px 12px; font-size: var(--small); }
.listen-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 0 16px 12px; font-size: var(--small); }
.listen-controls .check { margin: 0; min-height: 44px; }
.scene { position: relative; aspect-ratio: 5 / 3; background: var(--map); isolation: isolate; }
.forest { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.cell-grid [role=row] { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); }
@@ -69,6 +71,8 @@ dd { margin: 0; text-align: right; font-weight: bold; }
.cell-grid .wrong button { background: var(--paper); color: var(--danger); }
.cell-coord { position: absolute; left: 4px; top: 2px; font-size: 10px; font-weight: normal; color: var(--light); background: #17120dbb; padding: 0 2px; line-height: 1.4; }
.cell-value { font-size: clamp(14px, 1.5vw, 24px); }
.cell-rating, .rating-key { background: var(--active); color: var(--ink); padding: 0 3px; border-radius: 2px; font-weight: bold; }
.cell-rating { position: absolute; bottom: 1px; right: 1px; font-size: .6875rem; line-height: 1.15; text-shadow: none; }
.character-sprite { position: absolute; width: 10%; height: 16.6667%; left: 0; top: 83.3333%; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.character-sprite img { position: absolute; width: 115%; height: 115%; object-fit: contain; filter: drop-shadow(0 2px 2px var(--ink)); }
.character-sprite > span { border-radius: 50%; background: var(--map); color: var(--light); font-size: 10px; padding: 2px 4px; }
@@ -98,6 +102,13 @@ input { accent-color: var(--map); }
.map-grid .marked button, .map-grid .hazard button { background: var(--danger); }
.map-grid .hint button { background: var(--active); color: var(--ink); }
#map-selection { margin: 12px 0; font-size: var(--small); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#map-levels { min-width: 0; margin: 0 0 12px; padding: 8px; border: 1px solid var(--inner); }
#map-levels legend { padding: 0 4px; font-size: var(--small); }
.rating-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.rating-buttons button { padding: 4px; }
.rating-buttons button[aria-pressed="true"] { background: var(--active); }
#map-clear-level { width: 100%; margin-top: 8px; }
#map-mark { width: 100%; }
.check { display: flex; gap: 8px; align-items: center; font-size: var(--small); margin: 8px 0; min-height: 44px; cursor: pointer; }
.check input { width: 18px; height: 18px; flex-shrink: 0; }
@@ -114,8 +125,6 @@ dialog p { margin: 12px 0; }
select { min-height: 44px; padding: 8px; width: 100%; }
.help-list { padding-left: 24px; }
.help-list li { margin: 12px 0; }
.sound-guide { margin: 8px 0; }
.sound-guide dd { font-weight: normal; }
#panel-dialog:has(#map-body) { background: var(--map); color: var(--light); }
#panel-dialog .map-grid button { min-height: 32px; }
#history-empty { font-size: var(--small); }
@@ -171,6 +180,6 @@ select { min-height: 44px; padding: 8px; width: 100%; }
dialog { padding: 16px; }
footer { padding: 16px 12px; }
}
@media (pointer: coarse) { .action-buttons button, .mobile-tools button, #map-mark { min-height: 48px; } }
@media (pointer: coarse) { .action-buttons button, .mobile-tools button, #map-mark, #map-levels button, .listen-controls button, .listen-controls .check { min-height: 48px; } }
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
@media (forced-colors: active) { .cell-grid .selected button, .cell-grid .current button { outline: 2px solid Highlight; outline-offset: -3px; } }