@media (max-width: 560px) { .teaser-art { height: 90px; } .teaser-art img { max-height: 90px; } }
/* v25 woodcut hero select */
.modal.select-modal { background: #1d1611; background-image: repeating-linear-gradient(-35deg, rgba(234,223,196,.035) 0 1px, transparent 1px 7px); border: 3px solid #0f0b08; box-shadow: inset 0 0 0 2px #6d5a44, 0 20px 60px rgba(0,0,0,.6); }
.select-modal .sel-ribbon { display: inline-block; min-width: min(560px, 90%); padding: 18px 70px 26px; margin: 0 auto 4px; background: var(--sel-ribbon) center / 100% 100% no-repeat;
  color: #eadfc4 !important; text-shadow: 0 2px 0 #17110c, 0 0 10px rgba(0,0,0,.5); font-size: clamp(22px, calc(3 * var(--hvw)), 32px); }
@media (max-width: 560px) { .select-modal .sel-ribbon { white-space: nowrap; font-size: 20px; padding: 16px 44px 22px; min-width: 0; } }
.select-modal > .sub, .select-modal .sub { color: #cdbd9a; }
.select-modal .class-grid { gap: 18px; }
.select-modal .class-card { background: var(--sel-paper) center / 100% 100% no-repeat !important; border: 0 !important; border-radius: 4px !important; color: #17110c; padding: 26px 26px 22px !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.55) !important; transition: transform .18s ease, box-shadow .18s ease; }
.select-modal .class-card:hover:not(.locked) { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 16px 30px rgba(0,0,0,.6), 0 0 0 3px #b48a3c !important; }
.select-modal .class-card .class-portrait { background: var(--sel-portrait) center bottom / cover no-repeat !important; border: 3px solid #17110c; border-radius: 2px; box-shadow: inset 0 0 0 2px rgba(234,223,196,.5); margin: 0 0 10px; }
/* the unlocked card is a <button>; some engines (the Electron build) don't stretch a button's children, so the portrait collapsed to nothing */
.class-card .class-portrait { align-self: stretch; width: 100%; box-sizing: border-box; flex-shrink: 0; }
.select-modal .class-card .class-portrait::before, .select-modal .class-card .class-portrait::after { display: none !important; }
.select-modal .class-card h3 { color: #17110c !important; font-size: 26px; text-shadow: none !important; }
.select-modal .class-card .stats span { background: transparent !important; border: 1.6px solid #17110c !important; border-radius: 3px !important; color: #17110c !important; box-shadow: none !important; }
.select-modal .class-card .stats span .ico { filter: none; }
.select-modal .class-card .spec-h { color: #5e1a14 !important; letter-spacing: .14em; border-bottom: 1.5px solid #17110c; padding-bottom: 4px; }
.select-modal .class-card .class-builds span { background: rgba(23,17,12,.06) !important; border: 1.6px solid #17110c !important; color: #17110c !important; border-radius: 3px !important; }
.select-modal .class-card .class-builds span.locked { border-style: dashed !important; opacity: .6; }
.select-modal .class-card .class-progress { color: #3e3020 !important; }
.select-modal .class-card .pick { display: block; width: auto; margin: 8px 8px 6px; padding: 7px 18px; background: #8a2a1f; color: #eadfc4 !important; border: 2px solid #17110c; border-radius: 3px; box-shadow: 2px 2px 0 #17110c; font-weight: 700; }
.select-modal .class-card.locked { filter: sepia(.35) brightness(.62) !important; opacity: 1 !important; }
.select-modal .class-card.locked h3 { color: #3e3020 !important; }
.select-modal .class-card .starter-relic { color: #3e3020 !important; border: 1.6px dashed #3e3020 !important; background: rgba(23,17,12,.05); }
.select-modal .class-card .class-art.crest img { filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.select-modal .link-btn { color: #cdbd9a; }
.shop-item.teaser { border-style: dashed; } .shop-item.teaser .teaser-art { height: 170px; display: grid; place-items: center; } .shop-item.teaser .teaser-art img { max-height: 170px; }
.shop-item.teaser b { font-style: italic; color: rgba(243,213,140,.75); }
/* v26 rival */
.modal.rival-modal { max-width: 900px; background: #1d1611; background-image: repeating-linear-gradient(-35deg, rgba(234,223,196,.035) 0 1px, transparent 1px 7px); border: 3px solid #0f0b08; box-shadow: inset 0 0 0 2px #6d5a44, 0 20px 60px rgba(0,0,0,.6); }
.rival-scene { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: center; text-align: left; }
.rv-portrait { height: 330px; background: var(--sel-portrait) center bottom / cover no-repeat; border: 3px solid #17110c; box-shadow: inset 0 0 0 2px rgba(234,223,196,.5); position: relative; }
.rv-portrait .hero-live { position: absolute; inset: 6px; transform: scaleX(-1); } .rv-portrait .hero-live .sprite { position: absolute; inset: 0; }
.rv-talk { background: var(--sel-paper) center / 100% 100% no-repeat; padding: 30px 32px 24px; color: #17110c; min-height: 250px; display: flex; flex-direction: column; }
.rv-name { margin-bottom: 8px; } .rv-name b { display: block; font: 700 26px var(--font-head, serif); } .rv-name small { color: #5e1a14; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 11.5px; }
.rv-line { font: italic 500 17px/1.5 var(--font-head, serif); margin: 4px 0 14px; flex: 1; }
.rv-note { display: block; margin-top: 12px; font: normal 600 13.5px/1.4 var(--font-body); color: #3e3020; } .rv-note.good { color: #2f5a22; } .rv-note.bad { color: #8a2a1f; }
.rv-note .coin-ico { width: 16px; height: 16px; vertical-align: -3px; }
.rv-acts { display: flex; gap: 10px; flex-wrap: wrap; } .rv-acts .btn { background: #8a2a1f !important; color: #eadfc4 !important; border: 2px solid #17110c !important; box-shadow: 2px 2px 0 #17110c; }
.rv-acts .btn:not(.primary) { background: #3e3020 !important; }
.coin-report li.neg em { color: #ff9a8a; }
@media (max-width: 680px) { .rival-scene { grid-template-columns: 1fr; } .rv-portrait { height: 220px; } .rv-talk { padding: 24px 22px 20px; } }
/* v31 */
img.wi.wood { width: 1.25em; height: 1.25em; vertical-align: -.25em; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.intent .ico img.wi.wood, .intent img.wi.wood { width: 25px; height: 25px; }
.mini-intent img.wi.wood { width: 19px; height: 19px; }
.stage-bg { animation: bgBreathe 38s ease-in-out infinite alternate; }
@keyframes bgBreathe { from { transform: scale(1.04); } to { transform: scale(1.09) translate(-1.2%, -.6%); } }
.stage-fx { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.stage-fx i { position: absolute; display: block; }
.fx-mist { left: -50%; width: 200%; height: 40%; bottom: 6%; opacity: .55;
  background: radial-gradient(ellipse 14% 40% at 18% 60%, rgba(234,223,196,.20), transparent 70%), radial-gradient(ellipse 20% 45% at 52% 50%, rgba(234,223,196,.15), transparent 70%),
              radial-gradient(ellipse 14% 35% at 84% 65%, rgba(234,223,196,.18), transparent 70%); animation: fxMist 70s ease-in-out infinite alternate; }
.fx-mist.b { bottom: 28%; height: 30%; opacity: .35; animation-duration: 95s; animation-direction: alternate-reverse; }
@keyframes fxMist { from { transform: translateX(-6%); } to { transform: translateX(14%); } }
.fx-motes { inset: -10% 0; opacity: .5; background-size: 140px 160px, 90px 110px; }
.fx-ember .fx-motes { background-image: radial-gradient(circle, rgba(255,160,70,.95) 0 1.6px, transparent 2.6px), radial-gradient(circle, rgba(255,210,130,.8) 0 1px, transparent 2px); animation: fxRise 12s linear infinite, fxFlick 1.6s ease-in-out infinite alternate; }
.fx-ash .fx-motes { background-image: radial-gradient(circle, rgba(200,190,170,.8) 0 1.4px, transparent 2.4px), radial-gradient(circle, rgba(255,170,90,.6) 0 1px, transparent 2px); animation: fxRise 22s linear infinite; }
.fx-snow .fx-motes { background-image: radial-gradient(circle, rgba(255,255,255,.95) 0 1.8px, transparent 2.8px), radial-gradient(circle, rgba(235,245,255,.8) 0 1.1px, transparent 2px); animation: fxFall 14s linear infinite; opacity: .7; }
.fx-rain .fx-motes { background-image: linear-gradient(170deg, transparent 46%, rgba(220,230,240,.5) 48%, transparent 52%), linear-gradient(170deg, transparent 46%, rgba(220,230,240,.35) 48%, transparent 52%); background-size: 40px 70px, 26px 50px; animation: fxRain 1.1s linear infinite; opacity: .5; }
.fx-dust .fx-motes { background-image: radial-gradient(circle, rgba(210,180,130,.75) 0 1.3px, transparent 2.3px), radial-gradient(circle, rgba(190,160,110,.6) 0 1px, transparent 2px); animation: fxDrift 18s linear infinite; }
.fx-mist .fx-motes, .stage-fx.fx-mist .fx-motes { background-image: radial-gradient(circle, rgba(230,225,210,.55) 0 1.2px, transparent 2.2px); animation: fxDrift 30s linear infinite; opacity: .35; }
@keyframes fxRise { to { background-position: 140px -160px, -90px -110px; } }
@keyframes fxFall { to { background-position: 140px 160px, -90px 110px; } }
@keyframes fxDrift { to { background-position: 140px -40px, 90px -20px; } }
@keyframes fxRain { to { background-position: -12px 70px, -9px 50px; } }
@keyframes fxFlick { from { opacity: .35; } to { opacity: .6; } }
body.no-fx .stage-fx, body.no-fx .stage-bg { animation: none !important; } body.no-fx .stage-fx { display: none; }
#cardReveal .reveal-card.multi { display: flex; gap: 46px; flex-wrap: wrap; justify-content: center; }
.kw-pop { position: fixed; z-index: 950; width: 240px; padding: 10px 12px; border-radius: 10px; background: #231b14; border: 1px solid #b07a24; box-shadow: 0 10px 24px rgba(0,0,0,.55); opacity: 0; transition: opacity .12s; display: grid; gap: 8px; font-size: 12.5px; line-height: 1.35; }
.kw-pop.show { opacity: 1; } body:has(.kw-pop.show) #tipBubble { display: none !important; } .kw-pop b { display: block; color: #f3d58c; font-size: 13px; } .kw-pop span { color: #e2d6bc; }
.card u.kwu { text-decoration: underline dotted rgba(243,213,140,.8); }
.pile-grid.upgradable .up-pair .up-nxt { display: none !important; } .pile-grid.upgradable .up-pair .up-cur { display: block !important; opacity: 1 !important; transform: none !important; }
.up-compare { position: fixed; z-index: 940; padding: 8px 10px 12px; border-radius: 12px; background: #231b14; border: 2px solid #4f9a62; box-shadow: 0 12px 28px rgba(0,0,0,.55); pointer-events: none; opacity: 0; transition: opacity .12s; text-align: center; }
.up-compare.show { opacity: 1; } .up-compare small { display: block; font: 700 11px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: #bff0cb; margin-bottom: 6px; }
.up-compare .card { margin: 0; transform: none !important; }
.shop-gear { display: grid; justify-items: center; gap: 6px; } .shop-gear img { width: 84px; height: 84px; } .shop-gear small { font-size: 11.5px; opacity: .8; display: inline-flex; align-items: center; gap: 4px; } .shop-gear small .ico { width: 16px; height: 16px; }
.set-sub { display: block; font: 500 12px var(--font-body); color: #cdbd9a; margin-top: 4px; text-align: center; }
.set-line { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; color: #f3d58c; }
.set-list { display: grid; gap: 8px; text-align: left; } .set-row { padding: 8px 10px; background: #231b14; border: 1px solid var(--line); display: grid; gap: 3px; font-size: 12.5px; }
.set-row.on { border-color: #b07a24; } .set-row b { color: #f3d58c; } .set-row b .ico { width: 18px; height: 18px; vertical-align: -4px; } .set-row span { opacity: .6; } .set-row span.lit { opacity: 1; color: #bff0cb; }
.shop-note.ok { color: #bff0cb; }
/* typed dialogue: the untyped part keeps its space so the box never jumps */
.rv-rest { visibility: hidden; }
.rv-hold { visibility: hidden; }
.rival-scene.rv-pre .rv-line, .rival-scene.rv-pre .rv-acts { visibility: hidden; }
.rv-line.rv-skippable { cursor: pointer; }
.rv-talk.rv-skippable { cursor: pointer; }
.rv-continue { margin-top: 8px; text-align: right; font: italic 600 13px var(--font-body); color: #6d5a44; animation: rvBlink 1.4s ease-in-out infinite; }
@keyframes rvBlink { 50% { opacity: .35; } }
/* Endless: the warning on the loadout screen */
.endless-warn { box-sizing: border-box; max-width: 640px; text-align: left; margin: 14px auto 0; padding: 12px 16px; border: 2px solid #8a2a1f; border-radius: 4px; background: rgba(138,42,31,.14); }
.endless-warn b { color: #e8b35a; font-size: 15px; } .endless-warn p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: #e9dcc0; }
/* Endless: the dragon's card reward */
.dr-row { display: flex; gap: 18px; justify-content: center; flex-wrap: nowrap; margin: 14px 0 6px; }
.dr-card { display: flex; flex-direction: column; align-items: center; gap: 10px; } .dr-card.picked .card { box-shadow: 0 0 0 3px #d9b25f, 0 0 24px rgba(217,178,95,.5); }
