/* 🔮 The Tower of Madness's window (rpg/ui-tower.js): the dungeon board's family (world.css .dg-*) in the tower's violet. */
.tw-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.tw-pic { display: block; width: 100%; height: 100%; min-height: 210px; object-fit: cover; border-radius: 10px; border: 1px solid #4a3a6e; background: #0e0a16; }
.tw-you { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px; border: 1px solid #4a3a6e; border-radius: 10px; background: linear-gradient(180deg, #1e1730, #120e1c); }
.modal p.tw-k { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #b9a8d8; }
.tw-k em { margin-left: auto; font-style: normal; letter-spacing: 0; text-transform: none; color: #eedcff; font-size: 13px; }
.tw-stats > div { border-color: #3e3258; background: #171224; }
.tw-stats dd { color: #eedcff; }
.tw-you .btn, .tw-acts .btn { width: 100%; }
/* What a climb pays you against hunting (rpg/ui-tower.js earnHTML). */
.tw-earn { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; padding: 10px; border-radius: 8px; border: 1px solid #5a3f96; background: #160f24; }
.modal p.tw-to { margin: 0; font-family: var(--display); font-size: 16px; color: #fff; }
.tw-to small { display: block; margin-top: 2px; font-family: var(--ui-font); font-size: 15px; color: #b9a8d8; }
.tw-vs { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 5px 8px; align-items: center; font-size: 16px; }
.tw-vs > span { color: #d8ccf0; } .tw-vs > b { text-align: right; color: #fff; font-weight: 400; }
.tw-bar { height: 12px; border-radius: 6px; background: #241a36; overflow: hidden; }
.tw-bar i { display: block; height: 100%; border-radius: 6px; }
.tw-bar.t i { background: linear-gradient(90deg, #7d3fd6, #d6a8ff); } .tw-bar.h i { background: #6b7c99; }
.modal p.tw-x { margin: 0; font-size: 16px; color: #eedcff; } .tw-x b { font-family: var(--display); font-weight: 400; font-size: 18px; color: #ffd45c; }
.tw-plus { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; font-size: 16px; line-height: 1.1; color: #eedcff; }
.tw-plus b { font-weight: 400; color: #fff; } .tw-plus small { font-size: 14px; color: #a99ec0; }
.tw-plus li::before { content: "+ "; color: #c9a2ff; }
.tw-go:not(:disabled) { background: linear-gradient(180deg, #c9a2ff, #7d3fd6); color: #fff; border-color: #1e0c3a; box-shadow: inset 0 0 0 1px #e8d4ff, 0 3px 0 #3a1a6e; }
.tw-buy { display: flex; flex-direction: column; gap: 6px; } /* its own box beside the week's board */
.tw-sig { width: 16px; height: 16px; vertical-align: -2px; image-rendering: pixelated; }
.tw-toks { display: flex; flex-wrap: wrap; gap: 4px; }
.tw-tok { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 4px; border: 1px solid #4a3a6e; border-radius: 999px; background: #1a1428; color: #e2d8f6; font: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.tw-tok img, .tw-tok svg { width: 22px; height: 22px; border-radius: 50%; }
.tw-tok.on { border-color: #c9a2ff; background: #2e1f4e; color: #fff; }
.tw-buys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* A Sigil pack (owner, 2026-11-23: "make the buy buttosm more legible"): the Sigil big on the left, how many and the coin's
   amount in the middle, the price big on the right; dark words on the gold one, never faded. */
.tw-pack { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "i n p" "i c c"; align-items: center; gap: 4px 10px; min-height: 58px; padding: 6px 12px 6px 10px; border-radius: 8px; border: 2px solid #1e0c3a; background: linear-gradient(180deg, #8f5ae6, #5a2aa8); box-shadow: inset 0 0 0 1px #c9a2ff, 0 3px 0 #2a1150; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.tw-pack:hover { box-shadow: inset 0 0 0 1px #fff, 0 3px 0 #2a1150; }
.tw-pack .tw-sig { grid-area: i; width: 30px; height: 30px; vertical-align: 0; }
.tw-pack b { grid-area: n; font-family: var(--display); font-weight: 400; font-size: 17px; line-height: 1.05; letter-spacing: 0.01em; }
.tw-pack small { grid-area: c; font-size: 16px; line-height: 1; color: #efe4ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-pack em { grid-area: p; justify-self: end; font-style: normal; font-family: var(--display); font-size: 22px; line-height: 1; color: #fff; text-shadow: 0 2px 0 #2a1150; }
.tw-pack.gold { border-color: #3a2a00; background: linear-gradient(180deg, #ffe066, #e8b52a); box-shadow: inset 0 0 0 1px #fff3b0, 0 3px 0 #8a6410; color: #1f1400; }
.tw-pack.gold:hover { box-shadow: inset 0 0 0 1px #fff, 0 3px 0 #8a6410; }
.tw-pack.gold small { color: #4a3300; }
.tw-pack.gold em { color: #1f1400; text-shadow: 0 1px 0 #fff3b0; }
.tw-pack:disabled { opacity: 0.55; cursor: progress; }
.modal p.tw-msg { margin: 0; font-size: 13px; color: #d8ccf0; }
/* 💤 Sleeping Sigils (rpg/tower.js SLEEP): the ones asleep over the buy buttons, greyed, and what a buy does to them */
.tw-zz { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px dashed #8f6ad8; border-radius: 8px; background: linear-gradient(180deg, #2a1d48, #1a1230); }
.modal p.tw-zz-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; }
.tw-zz-row .tw-sig { width: 22px; height: 22px; vertical-align: 0; filter: grayscale(0.85) brightness(0.8); opacity: 0.75; }
.tw-zz-row i { font-style: normal; font-size: 13px; color: #b9a8d8; }
.tw-zz-row b { margin-left: 6px; font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1.1; color: #fff; }
.modal p.tw-zz-say { margin: 0; font-size: 14px; color: #eedcff; }
.tw-zz-say b { color: #ffe066; }
.tw-zz small { font-size: 12px; color: #b9a8d8; }
.modal p.tw-zz-note { margin: 0; font-size: 12px; color: #b9a8d8; }
.tw-zzn { margin-left: 6px; font-size: 12px; color: #b9a8d8; }
.modal p.tw-msg.err { color: #ff9a8a; } .modal p.tw-msg.ok { color: #9fe8a0; }
.modal p.tw-said { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; border: 1px solid #5a3f96; background: #221838; color: #eedcff; font-size: 15px; }
.tw-run, .tw-fell { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid #4a3a6e; border-radius: 10px; background: linear-gradient(180deg, #1e1730, #120e1c); }
.modal .tw-run h3, .modal .tw-fell h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; color: #eedcff; }
.tw-run h3 small { font-family: system-ui, sans-serif; font-size: 13px; color: #b9a8d8; }
.tw-fell h3 { color: #ff9a8a !important; }
.tw-hp { position: relative; height: 18px; border-radius: 9px; background: #2a1414; border: 1px solid #5a2a2a; overflow: hidden; }
.tw-hp span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #3ab85a, #7fe08a); }
.tw-hp i { position: relative; display: block; text-align: center; font-style: normal; font-size: 12px; line-height: 16px; color: #fff; text-shadow: 0 1px 0 #000; }
.tw-foes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.tw-foes li { padding: 6px 10px; border-radius: 8px; border: 1px solid #3e3258; background: #171224; }
.tw-foes li.guard, .tw-foes li.boss { border-color: #7d3fd6; background: #2a1840; }
.tw-foes b { display: block; color: #ffe9b0; } .tw-foes small { color: #b9a8d8; font-size: 12px; }
.modal p.tw-pouch, .tw-fell p { margin: 0; font-size: 14px; color: #d8cfc4; } .tw-pouch em { color: #ffb24a; font-style: normal; }
.tw-acts { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.tw-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.tw-floors { margin-top: 12px; }
.tw-floors, .tw-cols > section { min-width: 0; padding: 10px 12px; border: 1px solid #3c3330; border-radius: 10px; background: #171418; }
.modal .tw-cols h3, .modal .tw-floors h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 17px; color: #e8d4ff; }
.tw-cols h3 small, .tw-floors h3 small { font-family: system-ui, sans-serif; font-size: 12px; color: #a99e92; }
.tw-grid { display: flex; flex-direction: column; gap: 3px; }
/* A tier a row (rpg/tower.js TIERS): its badge, then its ten floors. Tiers VI-X, over every hero's level, on a darker red. */
.tw-tier { display: grid; grid-template-columns: 96px minmax(0, 1fr) 46px 128px; gap: 4px 6px; align-items: center; }
/* What each tier pays, at its row's end (rpg/ui-tower.js floorGrid): its XP against hunting, its first clear or ✓. */
.tw-ti { display: contents; }
.tw-tx { text-align: center; font-size: 15px; color: #9fe8a0; }
.tw-tf { font-size: 15px; line-height: 1; color: #ddd3e8; white-space: nowrap; }
.tw-tf .tw-sig { width: 14px; height: 14px; vertical-align: -2px; }
.tw-tier.held .tw-tf { color: #9fe8a0; }
.tw-th span { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #a99e92; }
.tw-th span:nth-child(3) { text-align: center; }
.tw-row { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; margin: 0; padding: 0; list-style: none; }
.tw-tb { display: inline-flex; align-items: center; gap: 5px; min-width: 0; vertical-align: middle; }
.tw-tb i { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 4px; border-radius: 5px; background: var(--tc); border: 1px solid var(--te, rgba(0, 0, 0, 0.35)); color: var(--ti, #fff); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22); font-style: normal; font-family: var(--display); font-size: 12px; line-height: 1; }
.tw-tb i img { display: block; width: 18px; height: 18px; image-rendering: pixelated; }
.tw-tb.big i img { width: 54px; height: 54px; }
.tw-tb em { font-style: normal; font-size: 16px; line-height: 1; color: #d6cbe6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-row li { position: relative; display: grid; place-items: center; min-width: 0; height: 28px; border: 1px solid #2e2636; border-radius: 6px; background: #19151f; cursor: pointer; }
/* Each floor coloured for you (rpg/ui-tower.js forYou): cleared this week a filled violet, within reach green, your edge amber,
   beyond you dim. The 📦 and 👹 in the corner say what the floor holds. */
.tw-row li.done { background: #3a2a5c; border-color: #6a4fa0; } .tw-row li.done b { color: #e6d8ff; }
.tw-row li.ok { background: #18261d; border-color: #2c4a36; } .tw-row li.ok b { color: #9fdcaa; }
.tw-row li.edge { background: #2a2214; border-color: #6e5220; } .tw-row li.edge b { color: #ffc66a; }
.tw-row li.far b { color: #7d7389; }
.tw-row li.picked { outline: 2px solid #ece4f8; outline-offset: 1px; }
.tw-key { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 8px 0 0; font-size: 15px; line-height: 1.2; color: #b9adc8; }
.tw-key span { display: inline-flex; align-items: center; gap: 5px; }
.tw-key i { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 3px; border: 1px solid #2e2636; border-radius: 5px; background: #19151f; font-style: normal; font-size: 14px; line-height: 1; color: #7d7389; }
.tw-key i.done { background: #3a2a5c; border-color: #6a4fa0; color: #e6d8ff; } .tw-key i.ok { background: #18261d; border-color: #2c4a36; color: #9fdcaa; }
.tw-key i.edge { background: #2a2214; border-color: #6e5220; color: #ffc66a; }
.tw-row li b { font-size: 15px; line-height: 1; font-weight: 400; }
.tw-row li i { position: absolute; top: -5px; right: -3px; font-style: normal; font-size: 11px; line-height: 1; }
.tw-row li.here { outline: 2px solid #c9a2ff; outline-offset: 1px; opacity: 1; }
.modal p.tw-hint { margin: 6px 0 0; font-size: 15px; line-height: 1.25; color: #b9adc8; }
.tw-top { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.tw-top li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 4px 8px; border-radius: 6px; background: #1d1824; }
.tw-top span { color: #ffd45c; font-weight: 800; } .tw-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #eedcff; } .tw-top em { font-style: normal; color: #c9a2ff; }
.modal p.tw-empty, .modal p.tw-note { margin: 0; font-size: 13px; color: #a99e92; }
@media (max-width: 760px) {
  .tw-head, .tw-cols, .tw-acts { grid-template-columns: minmax(0, 1fr); }
  .tw-pic { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
  .tw-row li b { font-size: 12px; }
  .tw-tier { grid-template-columns: 28px minmax(0, 1fr); gap: 3px; }
  .tw-th { display: none; }
  .tw-ti { display: flex; grid-column: 2; gap: 10px; margin: -1px 0 3px; }
  .tw-tx, .tw-tf { font-size: 13px; text-align: left; } .tw-tx::after { content: " XP"; }
  .tw-tier .tw-tb em { display: none; }
  .tw-tier .tw-tb i { min-width: 0; width: 28px; padding: 0; font-size: 10px; }
  .tw-row { gap: 2px; }
  .tw-buys { grid-template-columns: minmax(0, 1fr); }
  .tw-tok { gap: 5px; padding: 3px 9px 3px 3px; font-size: 15px; }
  .tw-tok img, .tw-tok svg { width: 20px; height: 20px; }
}
.tw-soon { display: flex; flex-direction: column; gap: 10px; }
.tw-soon .tw-pic { min-height: 0; height: auto; aspect-ratio: 1440 / 966; }
.modal p.tw-soon-k { margin: 0; font-family: var(--display); font-size: 22px; color: #c9a2ff; }
.tw-soon p { margin: 0; color: #d8cfc4; }

/* 🎉 The climb (rpg/ui-tower.js climbHTML): your tier's ten floors as steps in its colour (--tc, ink --ti), the ones cleared
   this climb filled, yours lit with your marker over it, the Guardian's step taller; a floor won fills with a pop and your
   marker hops on; a Guardian beaten shows the tier cleared, then the next tier's floors. */
.tw-climb { position: relative; display: flex; flex-direction: column; gap: 6px; }
.tw-ch { display: flex; align-items: center; gap: 10px; min-width: 0; }
.modal .tw-ch h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1; color: #fff; white-space: nowrap; }
.tw-ch h3 small { font-family: var(--ui-font); font-size: 14px; color: #b9a8d8; }
.tw-ch .tw-from { margin-left: auto; font-size: 13px; color: #9d90b8; white-space: nowrap; }
.tw-track { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)) auto; gap: 4px; align-items: end; margin: 0; padding: 16px 0 0; list-style: none; }
.tw-track li.st { position: relative; display: grid; place-items: center; min-width: 0; height: 30px; border: 1px solid #3a3050; border-radius: 6px; background: #171224; color: #8a7ea4; }
.tw-track li.st b { font-size: 14px; line-height: 1; font-weight: 400; }
.tw-track li.st.guard { height: 40px; border-width: 2px; border-color: color-mix(in srgb, var(--tg) 55%, #3a3050); }
.tw-track li.st.guard::before, .tw-track li.st.chest::before { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font-size: 12px; line-height: 1; }
.tw-track li.st.chest::before { content: "📦"; }
.tw-track li.st.guard::before { content: "👹"; font-size: 14px; top: -17px; }
.tw-track li.st.lord::before { content: "👑"; }
.tw-track li.st.skip { background: repeating-linear-gradient(135deg, #221a33 0 4px, #19142a 4px 8px); color: #625879; }
.tw-track li.st.done { background: var(--tc); border-color: var(--tg); color: var(--ti); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22); }
.tw-track li.st.now { border: 2px solid var(--tg); background: #261b3e; color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tg) 28%, transparent), 0 0 16px color-mix(in srgb, var(--tg) 50%, transparent); }
.tw-track li.st.fell { border: 2px solid #e0524a; background: #3a1416; color: #ffb0a6; }
.tw-track li.st.now::before, .tw-track li.st.fell::before { display: none; }
.tw-pin { position: absolute; top: -14px; left: 50%; width: 0; height: 0; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top: 10px solid #ffd45c; filter: drop-shadow(0 0 4px #ffd45c); pointer-events: none; }
.tw-track li.st.fell .tw-pin { border-top-color: #ff8a7a; filter: drop-shadow(0 0 4px #ff8a7a); }
.tw-track li.tw-nt { display: grid; place-items: center; height: 30px; padding-left: 4px; opacity: 0.6; }
.modal p.tw-goal { margin: 0; font-size: 14px; color: #cbbfe0; }
.tw-goal .tw-sig { width: 14px; height: 14px; vertical-align: -2px; }
.tw-fell .tw-ch h3 { color: #ff9a8a; }
/* The moments. */
.tw-track li.st.just { animation: twFill 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.35); }
.tw-track li.st.just::after { content: ""; position: absolute; inset: -2px; border-radius: 8px; animation: twRing 0.8s ease-out forwards; pointer-events: none; }
@keyframes twFill { 0% { transform: scale(0.6); background: #171224; color: #8a7ea4; } 55% { transform: scale(1.22); } 100% { transform: scale(1); } }
@keyframes twRing { 0% { box-shadow: 0 0 0 0 var(--tg, var(--tc)); opacity: 1; } 100% { box-shadow: 0 0 0 14px var(--tg, var(--tc)); opacity: 0; } }
.tw-float { position: absolute; z-index: 2; transform: translate(-50%, -100%); font-family: var(--display); font-size: 17px; color: #ffd45c; text-shadow: 0 2px 0 #2a1a00, 0 0 10px rgba(255, 212, 92, 0.6); white-space: nowrap; pointer-events: none; animation: twRise 1.2s ease-out forwards; }
@keyframes twRise { 0% { opacity: 0; margin-top: 6px; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; margin-top: -34px; } }
.tw-row li.just { animation: twFill 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.35); }
.tw-stamp { display: inline-block; margin-left: 6px; padding: 1px 8px; border: 2px solid #ffd45c; border-radius: 6px; font-weight: 800; font-size: 13px; color: #ffd45c; transform: rotate(-6deg); animation: twStamp 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
@keyframes twStamp { 0% { transform: scale(2.4) rotate(-14deg); opacity: 0; } 100% { transform: scale(1) rotate(-6deg); opacity: 1; } }
.tw-run, .tw-fell { position: relative; }
.tw-up { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: rgba(12, 8, 20, 0.88); cursor: pointer; animation: twIn 0.25s ease-out; }
.tw-up::before { content: ""; position: absolute; left: 50%; top: 50%; width: 200%; aspect-ratio: 1; margin: -100% 0 0 -100%; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--tc) 30%, transparent) 0 10deg, transparent 10deg 24deg); animation: twSpin 9s linear infinite; }
.tw-up.out { opacity: 0; transition: opacity 0.35s; }
.tw-up-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; text-align: center; }
.modal .tw-up p { margin: 0; }
.tw-up-k { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #d8ccf0; }
.tw-up-b .tw-tb i { min-width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 0 30px var(--tc); }
.tw-up-b { animation: twBadge 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.4); }
@keyframes twBadge { 0% { transform: scale(0.2) rotate(-20deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.modal p.tw-up-t { font-family: var(--display); font-size: 24px; color: #fff; } .tw-up-t b { font-weight: 400; color: var(--tc); }
.tw-up-gift { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tw-up-gift span { padding: 3px 10px; border-radius: 999px; background: #2b2140; border: 1px solid #ffd45c; color: #ffe9a8; font-weight: 700; font-size: 14px; opacity: 0; animation: twPop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.4) forwards; }
.tw-up-gift span:nth-child(1) { animation-delay: 0.55s; } .tw-up-gift span:nth-child(2) { animation-delay: 0.8s; }
.tw-up-gift .tw-sig { width: 15px; height: 15px; vertical-align: -2px; }
@keyframes twPop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.modal p.tw-up-next { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #cbbfe0; opacity: 0; animation: twPop 0.4s ease-out 1.1s forwards; }
@keyframes twIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes twSpin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .tw-track { gap: 3px; }
  .tw-track li.st b { font-size: 12px; }
  .tw-ch .tw-tb em { display: none; }
  .modal .tw-ch h3 { font-size: 22px; }
  .modal p.tw-up-t { font-size: 21px; line-height: 1.1; } .tw-up-t b { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .tw-track li.st.just, .tw-track li.st.just::after, .tw-row li.just, .tw-float, .tw-stamp, .tw-up, .tw-up::before, .tw-up-b { animation: none; }
  .tw-float { display: none; }
  .tw-up-gift span, .modal p.tw-up-next { animation: none; opacity: 1; }
}

/* 🎴 A chest floor's pick (rpg/ui-tower.js pickHTML): three cards in place of the next floor's fight; dared floors burn orange. */
.tw-pick { display: flex; flex-direction: column; gap: 8px; }
.modal p.tw-pk { margin: 0; font-family: var(--display); font-size: 18px; color: #ffe9a8; }
.tw-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tw-card { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 10px 8px; border: 2px solid #4a3a6e; border-radius: 10px; background: linear-gradient(180deg, #261b3e, #171224); color: #eedcff; font-family: var(--ui-font); text-align: center; cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; }
.tw-card:hover:not(:disabled), .tw-card:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
.tw-card:disabled { opacity: 0.55; cursor: default; }
.tw-card i { font-style: normal; font-size: 26px; line-height: 1; }
.tw-card b { font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1.1; }
.tw-card span { font-size: 17px; line-height: 1.1; color: #fff; }
.tw-card small { font-size: 14px; line-height: 1.15; color: #b9a8d8; }
.tw-card.rest { border-color: #3ab85a; } .tw-card.rest b { color: #7fe08a; }
.tw-card.loot { border-color: #c9971f; } .tw-card.loot b { color: #ffd45c; }
.tw-card.dare { border-color: #e8693a; } .tw-card.dare b { color: #ff9a5a; }
.tw-acts.one { grid-template-columns: minmax(0, 1fr); }
.tw-track li.st.dare { border-color: #e8693a; box-shadow: inset 0 0 0 1px #e8693a; }
.tw-track li.st.dare::before { content: "🔥"; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font-size: 12px; line-height: 1; }
.tw-track li.st.dare.now::before { display: none; }
.tw-foes li.dare { border-color: #e8693a; background: #2c1714; }
@media (max-width: 760px) {
  .tw-cards { grid-template-columns: minmax(0, 1fr); }
  .tw-card { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "i b s" "i m m"; align-items: center; gap: 1px 8px; padding: 8px 10px; text-align: left; }
  .tw-card i { grid-area: i; } .tw-card b { grid-area: b; } .tw-card span { grid-area: s; } .tw-card small { grid-area: m; }
}
