/* Scoundrel's table on top of Micatro's look (../micatro/css/micatro.css: the palette, .btn, .hud,
   .stat, .tip, .popup, .attention, .toast, .modal, .menu-bar, .pad-reticle). Design px, like Micatro:
   landscape 1360-2100 x 900, portrait 720 x 1100-1600; the stage is scaled to the visible viewport. */

/* ---------------------------------------------------------------- HUD (left in landscape, top in portrait) */
.sc-hud { gap: 14px; }
.sc-dungeon { --bcol: #fe5f55; }
.sc-dungeon .hb-title { font-size: 40px; }
.sc-dbody { display: flex; align-items: center; gap: 12px; padding: 10px; background: color-mix(in srgb, var(--bcol) 45%, #1f2a2c); }
.sc-dicon { width: 84px; height: 84px; image-rendering: pixelated; flex: 0 0 84px; filter: drop-shadow(0 4px 0 rgba(0,0,0,.3)); }
.sc-dinfo { flex: 1; background: var(--panel-dd); border-radius: 10px; padding: 8px; text-align: center; }
.sc-maxhp { font-size: 50px; color: var(--red); text-shadow: 0 3px 0 rgba(0,0,0,.35); margin: 2px 0; }
.sc-dnext { font-size: 20px; }
.sc-hp { background: var(--panel-d); border-radius: 14px; padding: 10px 12px 12px; }
.sc-hp-l { font-size: 24px; text-align: center; margin-bottom: 6px; color: #dfe7e8; }
.sc-hp-bar { position: relative; height: 62px; background: var(--panel-dd); border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 3px #46595d; }
.sc-hp-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--green); transition: width .35s cubic-bezier(.2, 1.3, .4, 1), background .3s; box-shadow: inset 0 -6px 0 rgba(0,0,0,.18); }
.sc-hp-v { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 44px; text-shadow: 0 3px 0 rgba(0,0,0,.45); }
.sc-hud .stat-v small { color: #9fb0b3; }
.sc-seed { font-size: 18px; text-align: center; margin-top: auto; }
.sc-hud > * { min-width: 0; }
.portrait .sc-hud { top: 96px; grid-template-columns: 300px 1fr; grid-template-areas: "dungeon hp" "stats stats"; }
.portrait .sc-dungeon { grid-area: dungeon; }
.portrait .sc-hp { grid-area: hp; display: flex; flex-direction: column; justify-content: center; }
.portrait .sc-hp-bar { height: 96px; }
.portrait .sc-hp-v { font-size: 52px; }
.portrait .sc-hud .hud-stats { grid-area: stats; }
.portrait .sc-hud .hs-btns { flex-direction: column; width: 120px; }
.portrait .sc-hud .hs-btns .btn { font-size: 22px; padding: 6px; }
.portrait .sc-hud .hs-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.portrait .sc-hud .stat.wide { grid-column: span 1; }
.portrait .sc-hud .stat-l { font-size: 16px; }
.portrait .sc-hud .stat-v, .portrait .sc-hud .stat.wide .stat-v { font-size: 28px; margin-top: 4px; }
.portrait .sc-seed { display: none; }
.portrait .sc-dicon { width: 64px; height: 64px; flex-basis: 64px; }

/* ---------------------------------------------------------------- the table */
.sc-roomlbl, .sc-weaponlbl, .sc-decklbl, .sc-limitlbl, .sc-fightq { transform: translateX(-50%); }
.sc-limitlbl { font-size: 22px; }
.sc-limitlbl.limited { color: var(--attn); }
.sc-fightq { position: absolute; z-index: 30; font-size: 30px; color: #fff; background: rgba(0,0,0,.45); padding: 4px 14px; border-radius: 10px; white-space: nowrap; pointer-events: none; }
.sc-slot { position: absolute; border-radius: 12px; border: 3px dashed rgba(255,255,255,.25); background: rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; font-size: 26px; color: rgba(255,255,255,.4); }
.sc-deck { cursor: pointer; }
.sc-icons { position: absolute; inset: 0; z-index: 25; pointer-events: none; }
.sc-kind { position: absolute; left: 0; top: 0; width: 40px; height: 40px; image-rendering: pixelated; opacity: 0; transition: opacity .2s; filter: drop-shadow(0 3px 0 rgba(0,0,0,.35)); }
.sc-controls { flex-direction: column; align-items: center; gap: 4px; }
.sc-controls .btn.big { width: 230px; }
.sc-hint { font-size: 20px; color: #dfe7e8; text-shadow: 0 2px 0 rgba(0,0,0,.4); text-align: center; min-height: 22px; }
#stage.fighting .sc-controls { display: none !important; }
.sc-fight { position: absolute; z-index: 30; display: none; gap: 12px; justify-content: center; }
.sc-fight .btn { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 30px; text-align: left; line-height: 1; }
.sc-fight .btn img { width: 44px; height: 44px; image-rendering: pixelated; flex: 0 0 44px; }
.sc-fight .btn small { display: block; font-size: 22px; opacity: .9; margin-top: 4px; }
#stage.readonly .sc-controls .btn, #stage.readonly .sc-fight .btn { pointer-events: none; }
#stage.no-run .sc-hud, #stage.no-run .area-labels, #stage.no-run .deck-pile, #stage.no-run .sc-controls, #stage.no-run .sc-cleared { display: none; }

/* the "dungeon cleared" panel (a Micatro cash-out) */
.sc-cleared { width: 660px; z-index: 35; }
.sc-cl-box { background: var(--panel); border-radius: 20px; padding: 16px 18px 12px; box-shadow: 0 10px 0 var(--panel-dd), inset 0 0 0 4px var(--green); display: flex; flex-direction: column; gap: 12px; animation: risein .45s cubic-bezier(.2, 1.3, .4, 1); }
.sc-cl-title { font-size: 52px; text-align: center; color: var(--green); text-shadow: 0 4px 0 rgba(0,0,0,.35); }
.sc-cl-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sc-cl-next { text-align: center; font-size: 28px; }
.sc-cl-wait { text-align: center; font-size: 24px; }

/* banner (spectating / watchers) */
.sc-banner .sc-watch b { color: var(--attn); }

/* ---------------------------------------------------------------- menus */
.sc-logo { font-size: 150px; text-shadow: 4px 6px 0 #fe5f55, 8px 12px 0 #4f6367, 10px 18px 0 rgba(0,0,0,.3); }
.portrait .sc-logo { font-size: 88px; margin-top: 110px; }
.sc-menu-mid { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sc-menu-monster { width: 168px; height: 168px; image-rendering: pixelated; filter: drop-shadow(8px 12px 0 rgba(0,0,0,.35)); animation: logo 3s ease-in-out infinite; }
.sc-menu-sub { font-size: 30px; color: #dfe7e8; text-shadow: 0 3px 0 rgba(0,0,0,.35); text-align: center; }
.sc-menu-icons { display: flex; gap: 26px; }
.sc-menu-icons img { width: 52px; height: 52px; image-rendering: pixelated; animation: sc-bob 1.6s ease-in-out infinite; opacity: .85; }
@keyframes sc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.sc-menu .menu-bar .btn small { display: block; font-size: 20px; margin-top: 6px; opacity: .95; }
.sc-modal .modal-box { width: 860px; max-width: 96%; }
.sc-howto { font-size: 25px; line-height: 1.25; }
.sc-howto p, .sc-howto ul { margin: 0 0 10px; }
.sc-howto li { margin-bottom: 6px; }
.sc-table { width: 100%; border-collapse: collapse; font-size: 24px; text-align: center; }
.sc-table th { color: #dfe7e8; font-weight: normal; padding: 6px; background: var(--panel-d); }
.sc-table td { padding: 6px; border-top: 2px solid var(--panel-d); }
.sc-table tr.me td { color: var(--attn); }
.sc-table .b-lb-watch { display: inline-block; font-size: 18px; padding: 4px 12px; text-decoration: none; }
.sc-info, .sc-lb, .sc-replays { display: flex; flex-direction: column; gap: 10px; font-size: 24px; }
.sc-info-now, .sc-lb-you { text-align: center; }
.sc-lb-how { text-align: center; font-size: 20px; }
.sc-rp { display: flex; align-items: center; gap: 12px; background: var(--panel-d); border-radius: 12px; padding: 8px 12px; }
.sc-rp-t { flex: 1; }
.sc-rp-t .muted { font-size: 18px; }
.sc-confirm { font-size: 26px; text-align: center; margin: 0 0 6px; }
.sc-over { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.sc-over-t { font-size: 84px; text-shadow: 0 6px 0 rgba(0,0,0,.35); }
.sc-over-s { font-size: 28px; color: #dfe7e8; }
.sc-over-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: 100%; }
.sc-over-grid .stat-v { font-size: 38px; }
.portrait .sc-over-grid { grid-template-columns: repeat(3, 1fr); }
.sc-over-rank { font-size: 26px; min-height: 26px; }
.sc-over-acts { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.sc-over-acts .btn { width: 190px; font-size: 28px; }
.portrait .sc-over-acts .btn { width: 46%; }

/* ---------------------------------------------------------------- replays */
.sc-replay-bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 52; display: flex; gap: 10px; align-items: center; background: rgba(31,42,44,.92); padding: 10px 14px 4px; border-radius: 14px; box-shadow: 0 5px 0 rgba(0,0,0,.3); white-space: nowrap; }
.sc-replay-bar .btn { font-size: 26px; padding: 8px 14px; }
.sc-rp-lbl { font-size: 22px; padding: 0 6px 6px; }
.portrait .sc-replay-bar { flex-wrap: wrap; justify-content: center; width: 94%; white-space: normal; }

/* the action call-out sits above the room, not over the cards */
#stage .attention { top: 120px; font-size: 64px; }
#stage.portrait .attention { top: 470px; font-size: 54px; }
.portrait .sc-deck { transform: none; }
#stage.fighting .sc-roomlbl { visibility: hidden; }
