
/* ---------- woodcut art ---------- */
.card .card-art.has-img { padding: 0; overflow: hidden; background: #e3d5b3; }
.card .card-art.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 860px) { .card .card-art.has-img { height: 44px; } }
img.gi { width: 1.35em; height: 1.35em; vertical-align: -0.32em; display: inline-block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.gear-slot img.gi { width: 100%; height: 100%; vertical-align: 0; }
.big-icon img.gi, .art img.gi, .lk-art img.gi { width: 1em; height: 1em; }
.map-node.has-seal { background: transparent; border: none; padding: 0; overflow: visible; }
.map-node.has-seal img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.map-node.has-seal.available { animation: sealPulse 1.4s ease-in-out infinite; border-radius: 50%; }
.map-node.has-seal.visited { opacity: .55; filter: sepia(.4); }
.map-node.has-seal.current { box-shadow: 0 0 0 4px rgba(138,42,31,.65); border-radius: 50%; }
@keyframes sealPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(138,42,31,.6); } 50% { box-shadow: 0 0 0 10px rgba(138,42,31,0); } }
.map-scroll.woodcut { background-color: #e3d5b3; background-size: 100% auto; background-repeat: repeat-y; border: 3px solid #17110c; }
.map-scroll.woodcut .map line { stroke: #6b5a44; stroke-width: 2.2; stroke-dasharray: 2 6; }
.map-scroll.woodcut .map line.open { stroke: #17110c; stroke-width: 2.6; }
.map-scroll.woodcut .map line.traveled { stroke: #8a2a1f; stroke-dasharray: none; stroke-width: 3.4; }
.legend img.gi { width: 1.5em; height: 1.5em; }
.title-art { width: 100%; max-width: 760px; aspect-ratio: 960 / 400; margin: -6px auto 14px; border: 3px solid #17110c; outline: 1px solid #4a3c2c; outline-offset: 3px; background: #e3d5b3 center / cover no-repeat; box-shadow: 0 14px 40px rgba(0,0,0,.55); }
.title-art + .game-title { margin-top: 0 !important; }
/* monster rigs */
#enemyPanel.elite .sprite .rig-canvas { filter: drop-shadow(0 0 10px rgba(255,184,107,0.45)) drop-shadow(0 6px 10px rgba(0,0,0,0.55)); }
#enemyPanel.boss .sprite .rig-canvas { filter: drop-shadow(0 0 14px rgba(255,90,78,0.5)) drop-shadow(0 6px 10px rgba(0,0,0,0.55)); }
#enemyPanel.final .sprite .rig-canvas { filter: drop-shadow(0 0 22px rgba(255,80,40,0.45)) drop-shadow(0 8px 14px rgba(0,0,0,0.6)); }
#enemyPanel .sprite.rigged, #enemyPanel.dead .sprite.rigged { animation: none !important; }
/* woodcut UI icons */
img.ico { width: 1.3em; height: 1.3em; vertical-align: -0.3em; margin-right: 1px; display: inline-block; }
.class-card .stats span img.ico { width: 1.45em; height: 1.45em; vertical-align: -0.38em; }
.class-card .class-art.crest, .loadout-head .big-icon.crest { background: none; border: none; padding: 0; }
.class-card .class-art.crest img, .loadout-head .big-icon.crest img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
.loadout-head .big-icon.crest { width: 72px; height: 72px; flex: 0 0 72px; }
.class-builds { gap: 10px 16px !important; }
.loadout-builds { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px !important; }
.class-builds span.locked { background: none !important; border: none !important; padding: 3px 2px !important; opacity: .62; }
.relic-tile .art img.ico, .start-row .art img.ico { width: 1em; height: 1em; vertical-align: 0; }
/* bigger title screen, no story paragraph */
.title-screen .game-title { font-size: clamp(36px, calc(10.5 * var(--hvw)), 92px) !important; letter-spacing: .05em; margin: 6px 0 2px !important; }
.title-screen .tagline { font-size: clamp(14px, calc(1.7 * var(--hvw)), 19px); letter-spacing: .16em; margin-bottom: 26px; }
.title-screen .title-actions { gap: 12px; }
.title-screen .title-actions .btn { min-width: min(300px, 100%); font-size: 18px; padding-block: 13px; }
.title-screen .save-info { font-size: 14px; }
.title-screen .boss-status { font-size: 14px; margin-top: 18px; }
.title-screen .fine { font-size: 12px; }
/* achievement pop-ups: hover to keep them up */
.toast.show.big { pointer-events: auto; cursor: default; }
.toast .ach-title { display: block; font-family: var(--font-display); font-size: 16px; }
.toast .ach-how { display: block; color: var(--text); font-weight: 500; font-size: 13px; margin-top: 3px; }
.toast .ach-reward { display: block; color: var(--muted); font-weight: 500; font-size: 12px; margin-top: 3px; }
.toast .ach-hint { display: block; color: var(--muted); font-size: 10.5px; font-weight: 500; margin-top: 6px; opacity: .8; }
.toast img.ico { width: 1.25em; height: 1.25em; }
/* full-screen title scene */
.overlay.title-mode { padding: 0 !important; background: #17110c !important; backdrop-filter: none; overflow: hidden; }
.modal.title-modal { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: #17110c; animation: none; overflow: hidden; }
.title-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.modal.title-modal::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, rgba(18,13,9,.94) 0%, rgba(18,13,9,.8) 28%, rgba(18,13,9,.3) 40%, rgba(18,13,9,0) 50%); }
.modal.title-modal .title-screen { position: absolute; z-index: 2; left: max(28px, calc(5 * var(--hvw)), env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%);
  width: min(400px, calc(32 * var(--hvw))); padding: 0; text-align: center; }
.modal.title-modal .title-screen .game-title { font-size: clamp(36px, calc(3.8 * var(--hvw)), 66px) !important; text-shadow: 0 4px 24px rgba(0,0,0,.8); }

.modal.title-modal .title-screen .title-actions .btn { min-width: 100%; }
.modal.title-modal .title-screen .tagline { text-shadow: 0 2px 8px rgba(0,0,0,.9); font-size: clamp(12px, calc(1.15 * var(--hvw)), 17px); }
.modal.title-modal .title-screen .title-actions .btn:not(.primary) { background: rgba(28,22,17,.82); }
.modal.title-modal .title-screen .boss-status, .modal.title-modal .title-screen .sub, .modal.title-modal .title-screen .fine { text-shadow: 0 1px 6px rgba(0,0,0,.95); }
@media (max-aspect-ratio: 115/100) {
  .modal.title-modal::before { background: linear-gradient(180deg, rgba(18,13,9,0) 40%, rgba(18,13,9,.85) 50%, rgba(18,13,9,.97) 58%); }
  .modal.title-modal .title-screen { left: 50%; top: auto; bottom: max(18px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(460px, calc(100% - 32px)); }
  .modal.title-modal .title-screen .game-title { font-size: clamp(36px, calc(11 * var(--hvw)), 64px) !important; }
}
/* woodcut stage */
.stage-bg { filter: none !important; transform: none !important; background-position: center bottom !important; }
.arena.stage::before { background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(23,17,12,0.45) 100%), linear-gradient(180deg, rgba(23,17,12,0.25), transparent 22%, transparent 78%, rgba(23,17,12,0.35)) !important; }
.stage .portrait-wrap, .stage .sprite { overflow: visible; }
.stage .sprite .pp-canvas { filter: drop-shadow(0 5px 0 rgba(23,17,12,.18)); }
.sprite.hurt .pp-canvas { filter: none; }
.sprite.guard .pp-canvas { filter: drop-shadow(0 0 10px rgba(110,170,240,0.9)); }
.stage .role { color: #17110c; text-shadow: 0 1px 0 rgba(227,213,179,.6); font-weight: 700; }
