/*
  AlphScoundrel /uxtest shell.
  This file only reshapes the existing production markup; the paid-entry,
  resume, optimistic-start, and submit flows still come from alpha-game.js.
*/

body.uxtest-shell {
  --bg: #07080b;
  --panel: rgba(13, 16, 22, 0.96);
  --panel-2: rgba(22, 25, 32, 0.96);
  --postgame-side-height: clamp(720px, 72vh, 840px);
  --line: rgba(255, 222, 151, 0.18);
  --text: #fff4df;
  --muted: #a7b6c6;
  --gold: #ffcf5c;
  --moss: #41d795;
  --blood: #ff4f45;
  --cyan: #63e7ff;
  background:
    radial-gradient(circle at 20% -10%, rgba(99, 231, 255, 0.2), transparent 24rem),
    radial-gradient(circle at 90% 7%, rgba(255, 79, 69, 0.18), transparent 25rem),
    linear-gradient(120deg, rgba(255, 207, 92, 0.08), transparent 42%),
    repeating-linear-gradient(90deg, rgba(99, 231, 255, 0.035) 0 1px, transparent 1px 46px),
    linear-gradient(180deg, #11151c 0%, #07080b 76%);
}

body.uxtest-shell::before,
body.uxtest-shell::after {
  display: none;
}

body.uxtest-shell button {
  border-radius: 8px;
  box-shadow: none;
}

body.uxtest-shell .shell {
  width: min(1180px, 100%);
  padding: 18px;
}

body.uxtest-shell .hero {
  position: relative;
  min-height: 318px;
  align-items: stretch;
  padding: 0;
  border: 1px solid rgba(255, 207, 92, 0.24);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(104deg, rgba(7, 8, 11, 0.98) 0 51%, rgba(7, 8, 11, 0.18) 51.2% 54.5%, rgba(91, 25, 24, 0.62) 54.8% 100%),
    linear-gradient(180deg, #101721, #07080b);
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.42);
}

body.uxtest-shell .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 47%, rgba(255, 207, 92, 0.95) 47.2% 48.4%, rgba(255, 79, 69, 0.86) 48.5% 49.7%, transparent 49.8%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 78% 54%, rgba(255, 207, 92, 0.22), transparent 15rem),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
  mix-blend-mode: screen;
  opacity: 0.78;
}

body.uxtest-shell .hero::after {
  content: "SCORERUN POTLINE SCORE RUN POTLINE ";
  position: absolute;
  left: -20px;
  right: -20px;
  bottom: 18px;
  height: 34px;
  display: flex;
  align-items: center;
  color: rgba(7, 8, 11, 0.78);
  background: linear-gradient(90deg, var(--gold), #ffe7a8, var(--gold));
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-indent: 24px;
  transform: rotate(-1.4deg);
  pointer-events: none;
}

body.uxtest-shell .pressure-pill-mobile {
  display: none;
}

body.uxtest-shell.pressure-preview .hero::after {
  content: "";
  font-size: 0;
  text-indent: 0;
}

body.uxtest-shell.pressure-preview .potline-pressure {
  position: absolute;
  left: -18px;
  right: -18px;
  bottom: 18px;
  z-index: 3;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0 38px 0 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(7, 8, 11, 0.86);
  transform: rotate(-1.4deg);
  pointer-events: none;
  white-space: nowrap;
}

body.uxtest-shell.pressure-preview .potline-pressure > span,
body.uxtest-shell.pressure-preview .potline-pressure .round-status-metric,
body.uxtest-shell.pressure-preview .potline-pressure b,
body.uxtest-shell.pressure-preview .potline-pressure strong {
  color: inherit;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

body.uxtest-shell.pressure-preview .potline-pressure .round-status-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

body.uxtest-shell.pressure-preview .potline-pressure b {
  opacity: 0.78;
}

body.uxtest-shell.pressure-preview .potline-pressure strong {
  opacity: 0.98;
}

body.uxtest-shell.pressure-preview .potline-pressure .round-status-bonus strong {
  color: #3d2110;
}

body.uxtest-shell.pressure-preview .potline-pressure .round-status-dot {
  opacity: 0.52;
}

body.uxtest-shell .brand {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.62fr);
  align-items: center;
  gap: 26px;
  width: 100%;
  padding: clamp(22px, 4.6vw, 46px);
}

body.uxtest-shell .brand-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  max-width: 720px;
  min-width: 0;
}

body.uxtest-shell .brand-copy .badge {
  width: fit-content;
  min-height: 28px;
  padding: 6px 12px;
  color: #071016;
  border-color: rgba(255, 207, 92, 0.78);
  background: linear-gradient(90deg, var(--gold), #fff1bd);
  box-shadow: 7px 7px 0 rgba(255, 79, 69, 0.42);
}

body.uxtest-shell .brand-copy .badge:first-child {
  display: inline-flex;
}

body.uxtest-shell h1 {
  position: relative;
  width: 100%;
  max-width: 100%;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(48px, 8.4vw, 104px);
  line-height: 0.78;
  letter-spacing: 0;
  color: #fff6e8;
  text-transform: uppercase;
  overflow-wrap: normal;
  text-shadow:
    5px 5px 0 rgba(255, 79, 69, 0.58),
    10px 10px 0 rgba(99, 231, 255, 0.22),
    0 18px 36px rgba(0, 0, 0, 0.68);
}

body.uxtest-shell h1::after {
  content: "PRIZE DUNGEON";
  position: absolute;
  right: 8%;
  bottom: -28px;
  min-width: 170px;
  padding: 7px 10px;
  color: #071016;
  background: var(--cyan);
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.42);
  transform: rotate(-2deg);
}

body.uxtest-shell .subtitle {
  margin: 42px 0 0;
  max-width: 520px;
  color: #d7e8ee;
  font-size: 16px;
  line-height: 1.4;
}

body.uxtest-shell .hero-vista {
  position: relative;
  display: grid;
  min-height: 226px;
  border: 1px solid rgba(255, 207, 92, 0.34);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 79, 69, 0.14), transparent 48%),
    radial-gradient(circle at 50% 42%, rgba(99, 231, 255, 0.16), transparent 12rem),
    #080b10;
  transform: rotate(-1.2deg);
  box-shadow:
    10px 10px 0 rgba(255, 207, 92, 0.18),
    0 22px 60px rgba(0, 0, 0, 0.44);
}

body.uxtest-shell .hero-vista::before,
body.uxtest-shell .hero-vista::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body.uxtest-shell .hero-vista::before {
  background:
    linear-gradient(90deg, transparent 0 15%, rgba(255, 207, 92, 0.9) 15.4% 16.5%, transparent 17% 48%, rgba(99, 231, 255, 0.74) 48.3% 49.7%, transparent 50% 82%, rgba(255, 79, 69, 0.86) 82.4% 83.7%, transparent 84%),
    radial-gradient(circle at 52% 100%, rgba(255, 207, 92, 0.23), transparent 12rem),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 22px);
}

body.uxtest-shell .hero-vista::after {
  inset: auto 20px 18px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--cyan), var(--blood), transparent);
  filter: drop-shadow(0 0 14px rgba(255, 207, 92, 0.65));
}

body.uxtest-shell .rules-chip {
  top: 60px;
}

body.uxtest-shell .uxtest-card-stack {
  position: absolute;
  inset: 54px 22px 24px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

body.uxtest-shell .uxtest-hero-card {
  position: relative;
  min-height: 138px;
  display: grid;
  align-content: end;
  justify-items: center;
  padding: 16px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff8e9;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 34%),
    #141922;
  box-shadow: 0 26px 30px rgba(0, 0, 0, 0.34);
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: rotate(-6deg);
}

body.uxtest-shell .uxtest-hero-card::before {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #071016;
  font-size: 30px;
  font-weight: 1000;
}

body.uxtest-shell .uxtest-hero-card.fight {
  border-color: rgba(255, 79, 69, 0.52);
  background:
    linear-gradient(180deg, rgba(255, 79, 69, 0.22), transparent 42%),
    #151923;
}

body.uxtest-shell .uxtest-hero-card.fight::before {
  content: "!";
  background: var(--blood);
  box-shadow: 0 0 24px rgba(255, 79, 69, 0.46);
}

body.uxtest-shell .uxtest-hero-card.equip {
  min-height: 164px;
  border-color: rgba(255, 207, 92, 0.62);
  color: #161009;
  background:
    linear-gradient(180deg, #fff0ba, #d18b43);
  transform: translateY(-10px) rotate(2deg);
}

body.uxtest-shell .uxtest-hero-card.equip::before {
  content: "/";
  background: #071016;
  color: var(--gold);
  box-shadow: 0 0 24px rgba(255, 207, 92, 0.46);
}

body.uxtest-shell .uxtest-hero-card.heal {
  border-color: rgba(65, 215, 149, 0.52);
  background:
    linear-gradient(180deg, rgba(65, 215, 149, 0.2), transparent 42%),
    #101f1b;
  transform: rotate(7deg);
}

body.uxtest-shell .uxtest-hero-card.heal::before {
  content: "+";
  background: var(--moss);
  box-shadow: 0 0 24px rgba(65, 215, 149, 0.46);
}

body.uxtest-shell .hero-vista .rules-chip {
  position: absolute;
  z-index: 2;
  right: 14px;
  top: 14px;
  max-width: min(230px, calc(100% - 28px));
  color: #071016;
  border-color: rgba(255, 255, 255, 0.44);
  background: linear-gradient(90deg, var(--moss), var(--cyan));
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.34);
}

body.uxtest-shell .hero-vista svg {
  display: none;
}

body.uxtest-shell .layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding-top: 14px;
}

body.uxtest-shell .panel {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--panel);
  box-shadow: none;
}

body.uxtest-shell .panel-pad {
  padding: clamp(14px, 2.4vw, 22px);
}

body.uxtest-shell .first-visit,
body.uxtest-shell .run-tips {
  display: none;
}

body.uxtest-shell .toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
}

body.uxtest-shell:not(.run-in-progress):not(.run-complete) .toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
}

body.uxtest-shell .wallet-strip {
  display: contents;
}

body.uxtest-shell .wallet-strip input {
  position: absolute;
  width: 1px;
  min-width: 0;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

body.uxtest-shell .wallet-status {
  min-height: 18px;
  color: #aeb9c4;
}

body.uxtest-shell .wallet-strip.hero-wallet {
  position: absolute;
  z-index: 6;
  top: 12px;
  right: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 6px;
  grid-column: auto;
  grid-row: auto;
  width: min(212px, calc(100% - 16px));
  pointer-events: none;
}

body.uxtest-shell:not(.run-in-progress):not(.run-complete) .wallet-strip.hero-wallet {
  position: absolute;
  z-index: 6;
  top: 12px;
  right: 8px;
  display: grid;
  justify-items: center;
  grid-column: auto;
  grid-row: auto;
}

body.uxtest-shell .wallet-strip.hero-wallet #connectWalletBtn {
  pointer-events: auto;
  grid-column: 1;
  grid-row: auto;
  justify-self: center;
  min-width: 196px;
  min-height: 42px;
  padding: 9px 14px;
  border-color: rgba(255, 207, 92, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 246, 218, 0.13), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #4a2832, #242f3b);
  color: #fff2d0;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.uxtest-shell:not(.wallet-connected) .wallet-strip.hero-wallet #connectWalletBtn {
  background:
    linear-gradient(120deg, #ffe8a6 0 42%, #ffcf5c 42% 68%, #ff4f45 68% 100%);
  color: #120d08;
  box-shadow: 5px 5px 0 rgba(255, 79, 69, 0.24);
}

body.uxtest-shell .wallet-strip.hero-wallet .wallet-status {
  grid-column: 1;
  grid-row: auto;
  width: 196px;
  max-width: 100%;
  justify-self: center;
  min-height: 0;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(7, 8, 11, 0.62);
  color: rgba(236, 244, 246, 0.76);
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  backdrop-filter: blur(10px);
}

body.uxtest-shell .how-play-cta {
  position: relative;
  min-width: 0;
  width: 100%;
  min-height: 76px;
  padding: 14px 16px;
  display: grid;
  align-content: center;
  justify-items: start;
  border-color: rgba(99, 231, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(99, 231, 255, 0.16), rgba(121, 184, 255, 0.08)),
    rgba(7, 12, 23, 0.72);
  color: #dce8f5;
  text-align: left;
  overflow: hidden;
}

body.uxtest-shell .guide-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  width: 100%;
}

body.uxtest-shell .release-notes-cta {
  position: relative;
  min-width: 0;
  width: 100%;
  min-height: 76px;
  padding: 14px 16px;
  display: grid;
  align-content: center;
  justify-items: start;
  border-color: rgba(186, 132, 255, 0.4);
  background:
    linear-gradient(135deg, rgba(186, 132, 255, 0.15), rgba(255, 207, 92, 0.09)),
    rgba(12, 9, 23, 0.72);
  text-align: left;
  overflow: hidden;
}

body.uxtest-shell .how-play-cta::before,
body.uxtest-shell .release-notes-cta::before,
body.uxtest-shell .mode-controls #startPrizeBtn::before {
  content: "";
  position: absolute;
  inset: auto 14px 9px;
  height: 2px;
  border-radius: 999px;
  pointer-events: none;
}

body.uxtest-shell .how-play-cta::before {
  background: linear-gradient(90deg, rgba(99, 231, 255, 0.08), rgba(99, 231, 255, 0.82), rgba(121, 184, 255, 0.14));
}

body.uxtest-shell .release-notes-cta::before {
  background: linear-gradient(90deg, rgba(186, 132, 255, 0.08), rgba(186, 132, 255, 0.82), rgba(255, 207, 92, 0.18));
}

body.uxtest-shell .how-play-cta strong {
  font-size: 17px;
  line-height: 1.05;
}

body.uxtest-shell .release-notes-cta strong {
  display: block;
  font-size: 17px;
  line-height: 1.05;
}

body.uxtest-shell .how-play-cta strong::before {
  content: none;
}

body.uxtest-shell .how-play-cta span {
  display: block;
  margin-top: 4px;
  color: rgba(220, 232, 245, 0.78);
  font-size: 12px;
  line-height: 1.25;
}

body.uxtest-shell .release-notes-cta span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 217, 146, 0.86);
  font-size: 12px;
  line-height: 1.25;
}

body.uxtest-shell .mode-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 12px;
}

body.uxtest-shell:not(.run-in-progress):not(.run-complete) .mode-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 12px;
  width: 100%;
}

body.uxtest-shell .mode-controls button {
  min-height: 76px;
  padding: 14px 16px;
  text-align: left;
}

body.uxtest-shell:not(.run-in-progress):not(.run-complete) .mode-controls button {
  min-height: 76px;
  padding: 14px 16px;
}

body.uxtest-shell .mode-controls #startPrizeBtn {
  position: relative;
  order: 0;
  grid-column: auto;
  grid-row: auto;
  border-color: rgba(255, 207, 92, 0.78);
  background:
    linear-gradient(120deg, #ffe8a6 0 42%, #ffcf5c 42% 66%, #ff4f45 66% 100%);
  color: #161009;
  overflow: hidden;
  box-shadow: 8px 8px 0 rgba(255, 79, 69, 0.22);
}

body.uxtest-shell .mode-controls #startPrizeBtn::before {
  background: linear-gradient(90deg, rgba(255, 247, 214, 0.1), rgba(255, 247, 214, 0.88), rgba(255, 79, 69, 0.28));
}

body.uxtest-shell .mode-controls #startPrizeBtn::after {
  content: "ALPH";
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: rgba(22, 16, 9, 0.22);
  font-size: 30px;
  font-weight: 1000;
  line-height: 1;
}

body.uxtest-shell .mode-controls #startPrizeBtn span {
  color: rgba(22, 16, 9, 0.72);
}

body.uxtest-shell .mode-controls #startBtn {
  order: -1;
  grid-column: auto;
  grid-row: auto;
  border-color: rgba(96, 211, 148, 0.22);
  background:
    linear-gradient(135deg, rgba(96, 211, 148, 0.18), rgba(138, 162, 190, 0.1));
  color: #edf4fb;
}

body.uxtest-shell .mode-controls #startBtn::after {
  inset: auto 14px 9px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(96, 211, 148, 0.08), rgba(96, 211, 148, 0.82), rgba(99, 231, 255, 0.16));
}

body.uxtest-shell:not(.run-in-progress):not(.run-complete) .mode-controls #startBtn,
body.uxtest-shell:not(.run-in-progress):not(.run-complete) .mode-controls #startPrizeBtn {
  grid-column: auto;
  grid-row: auto;
}

body.uxtest-shell .mode-controls button strong {
  font-size: 18px;
  line-height: 1.05;
}

body.uxtest-shell .mode-controls button span {
  margin-top: 4px;
  font-size: 12px;
}

body.uxtest-shell .prize-target {
  margin-bottom: 0;
}

body.uxtest-shell .prize-chip {
  min-height: 64px;
  border-color: rgba(244, 214, 151, 0.14);
  background:
    linear-gradient(180deg, rgba(244, 214, 151, 0.075), rgba(255, 255, 255, 0.03));
}

body.uxtest-shell .prize-chip strong {
  font-size: clamp(18px, 2.5vw, 28px);
}

body.uxtest-shell .uxtest-how-strip {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid rgba(255, 207, 92, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(99, 231, 255, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(0, 0, 0, 0.2);
}

body.uxtest-shell .uxtest-how-head {
  display: grid;
  gap: 5px;
}

body.uxtest-shell .uxtest-how-head span {
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid rgba(99, 231, 255, 0.34);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(99, 231, 255, 0.08);
  font-size: 10px;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

body.uxtest-shell .uxtest-how-head h2 {
  margin: 0;
  max-width: 760px;
  color: #fff3d4;
  font-size: 20px;
  line-height: 1.1;
  text-transform: none;
}

body.uxtest-shell .uxtest-rule-cards,
body.uxtest-shell .how-example-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.uxtest-shell .how-example-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 10px;
}

body.uxtest-shell .uxtest-rule-card,
body.uxtest-shell .how-example {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(0, 0, 0, 0.2);
}

body.uxtest-shell .rule-card-face {
  position: relative;
  width: 64px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.13), transparent 38%),
    #111822;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.38),
    0 12px 22px rgba(0, 0, 0, 0.3);
}

body.uxtest-shell .how-example .rule-card-face {
  grid-row: span 2;
}

body.uxtest-shell .rule-rank,
body.uxtest-shell .rule-suit {
  position: absolute;
  left: 7px;
  font-size: 10px;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

body.uxtest-shell .rule-rank {
  top: 7px;
  color: #fff2cf;
}

body.uxtest-shell .rule-suit {
  right: 7px;
  bottom: 7px;
  left: 7px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

body.uxtest-shell .rule-card-face strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #071016;
  font-size: 24px;
  font-weight: 1000;
  line-height: 1;
}

body.uxtest-shell .rule-monster .rule-card-face {
  border-color: rgba(255, 79, 69, 0.48);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 79, 69, 0.34), transparent 42%),
    #171922;
}

body.uxtest-shell .rule-monster .rule-card-face strong {
  background: var(--blood);
}

body.uxtest-shell .rule-weapon .rule-card-face {
  border-color: rgba(255, 207, 92, 0.54);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 207, 92, 0.32), transparent 42%),
    #151922;
}

body.uxtest-shell .rule-weapon .rule-card-face strong {
  background: #071016;
  color: var(--gold);
}

body.uxtest-shell .rule-potion .rule-card-face {
  border-color: rgba(65, 215, 149, 0.5);
  background:
    radial-gradient(circle at 50% 38%, rgba(65, 215, 149, 0.3), transparent 42%),
    #101d19;
}

body.uxtest-shell .rule-potion .rule-card-face strong {
  background: var(--moss);
}

body.uxtest-shell .rule-score .rule-card-face {
  border-color: rgba(99, 231, 255, 0.5);
  background:
    radial-gradient(circle at 50% 38%, rgba(99, 231, 255, 0.28), transparent 42%),
    #0d1820;
}

body.uxtest-shell .rule-score .rule-card-face strong {
  width: 42px;
  border-radius: 8px;
  background: var(--cyan);
  font-size: 17px;
}

body.uxtest-shell .uxtest-rule-card h3,
body.uxtest-shell .how-example h3 {
  margin: 0;
  color: #fff4dc;
  font-size: 12px;
  line-height: 1.05;
  text-transform: uppercase;
}

body.uxtest-shell .uxtest-rule-card p,
body.uxtest-shell .how-example p {
  margin: 5px 0 0;
  color: #c6d2df;
  font-size: 12px;
  line-height: 1.32;
}

body.uxtest-shell .uxtest-room-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.uxtest-shell .uxtest-room-flow span {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: #dce8f5;
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

body.uxtest-shell .uxtest-room-flow b {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 50%;
  color: #071016;
  background: var(--gold);
  font-size: 10px;
}

body.uxtest-shell:not(.run-in-progress):not(.run-complete) .panel:first-child {
  border-color: rgba(255, 207, 92, 0.14);
}

body.uxtest-shell:not(.run-in-progress):not(.run-complete) .side {
  margin-top: 0;
}

body.uxtest-shell:not(.run-in-progress):not(.run-complete) .side .panel:last-child {
  padding-top: 16px;
  padding-bottom: 16px;
}

body.uxtest-shell:not(.run-in-progress):not(.run-complete) .stats,
body.uxtest-shell:not(.run-in-progress):not(.run-complete) .progress,
body.uxtest-shell:not(.run-in-progress):not(.run-complete) .play-tools,
body.uxtest-shell:not(.run-in-progress):not(.run-complete) .terminal-banner,
body.uxtest-shell:not(.run-in-progress):not(.run-complete) .layout > .panel > .room-head,
body.uxtest-shell:not(.run-in-progress):not(.run-complete) #roomCards,
body.uxtest-shell:not(.run-in-progress):not(.run-complete) #cardRailCue,
body.uxtest-shell:not(.run-in-progress):not(.run-complete) #status {
  display: none;
}

body.uxtest-shell:not(.run-in-progress):not(.run-complete) .side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

body.uxtest-shell:not(.run-in-progress):not(.run-complete) .side .panel:not(:last-child) {
  display: none;
}

body.uxtest-shell.run-in-progress .toolbar,
body.uxtest-shell.run-in-progress .hero,
body.uxtest-shell.run-in-progress .prize-target,
body.uxtest-shell.run-in-progress .uxtest-how-strip {
  display: none !important;
}

body.uxtest-shell.run-in-progress .stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.uxtest-shell.run-in-progress .stats {
  grid-template-columns: 0.8fr 0.8fr 1fr 1.18fr 0.9fr;
}

body.uxtest-shell.run-in-progress .stat-weapon {
  display: none;
}

body.uxtest-shell.run-in-progress .stat-potion {
  display: block;
}

body.uxtest-shell.run-in-progress .stat-room-multiplier {
  border-color: rgba(162, 173, 188, 0.18);
  background:
    linear-gradient(120deg, rgba(162, 173, 188, 0.11), transparent 64%),
    rgba(9, 15, 25, 0.86);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

body.uxtest-shell.run-in-progress .stat-room-multiplier strong {
  color: #b9c4d1;
}

body.uxtest-shell.run-in-progress .stat-room-multiplier em {
  display: block;
  margin-top: 3px;
  color: #8493a4;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.uxtest-shell.run-in-progress .stat-room-multiplier[data-room-multiplier-tier="bonus"] {
  border-color: rgba(245, 196, 95, 0.32);
  background:
    linear-gradient(120deg, rgba(245, 196, 95, 0.17), rgba(99, 231, 255, 0.06) 68%),
    rgba(13, 16, 22, 0.9);
}

body.uxtest-shell.run-in-progress .stat-room-multiplier[data-room-multiplier-tier="bonus"] strong,
body.uxtest-shell.run-in-progress .stat-room-multiplier[data-room-multiplier-tier="bonus"] em {
  color: #ffe3a0;
}

body.uxtest-shell.run-in-progress .stat-room-multiplier[data-room-multiplier-tier="rare"] {
  border-color: rgba(99, 231, 255, 0.45);
  background:
    radial-gradient(circle at 86% 16%, rgba(99, 231, 255, 0.2), transparent 48%),
    linear-gradient(120deg, rgba(245, 196, 95, 0.19), rgba(99, 231, 255, 0.13) 72%),
    rgba(7, 15, 24, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 0 18px rgba(99, 231, 255, 0.08);
}

body.uxtest-shell.run-in-progress .stat-room-multiplier[data-room-multiplier-tier="rare"] strong,
body.uxtest-shell.run-in-progress .stat-room-multiplier[data-room-multiplier-tier="rare"] em {
  color: #bff7ff;
}

body.uxtest-shell.run-in-progress .stat-room-multiplier[data-room-multiplier-tier="legendary"],
body.uxtest-shell.run-in-progress .stat-room-multiplier[data-room-multiplier-tier="mythic"] {
  border-color: rgba(255, 207, 92, 0.58);
  background:
    radial-gradient(circle at 84% 14%, rgba(255, 207, 92, 0.32), transparent 48%),
    linear-gradient(120deg, rgba(255, 92, 122, 0.18), rgba(99, 231, 255, 0.15) 72%),
    rgba(11, 13, 22, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 22px rgba(255, 207, 92, 0.12);
}

body.uxtest-shell.run-in-progress .stat-room-multiplier[data-room-multiplier-tier="legendary"] strong,
body.uxtest-shell.run-in-progress .stat-room-multiplier[data-room-multiplier-tier="mythic"] strong {
  color: #ffe08f;
}

body.uxtest-shell.run-in-progress .stat-room-multiplier[data-room-multiplier-tier="legendary"] em,
body.uxtest-shell.run-in-progress .stat-room-multiplier[data-room-multiplier-tier="mythic"] em {
  color: #fff1c2;
}

body.uxtest-shell.run-in-progress #potionStat {
  font-size: 14px;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.uxtest-shell.run-in-progress .side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

body.uxtest-shell.run-in-progress .side .panel:last-child {
  display: none;
}

body.uxtest-shell.run-in-progress .layout {
  gap: 12px;
  padding-top: 12px;
}

body.uxtest-shell.run-in-progress .layout > .panel:first-child {
  padding: 18px 22px 22px;
  overflow: hidden;
}

body.uxtest-shell.run-in-progress .stats {
  gap: 8px;
  margin-bottom: 10px;
}

body.uxtest-shell.run-in-progress .stat {
  min-height: 48px;
  padding: 8px 10px;
  border-color: rgba(99, 231, 255, 0.16);
  background:
    linear-gradient(120deg, rgba(99, 231, 255, 0.13), transparent 62%),
    rgba(9, 15, 25, 0.86);
}

body.uxtest-shell.run-in-progress .stat span {
  font-size: 9px;
  letter-spacing: 0;
}

body.uxtest-shell.run-in-progress .stat strong {
  margin-top: 3px;
  font-size: 19px;
}

body.uxtest-shell .room-head {
  align-items: center;
  margin-bottom: 12px;
}

body.uxtest-shell.run-in-progress .progress {
  height: 8px;
  margin-bottom: 10px;
}

body.uxtest-shell.run-in-progress .play-tools {
  grid-template-columns: minmax(190px, 0.6fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
  padding: 9px 10px;
  border-color: rgba(99, 231, 255, 0.16);
  background:
    linear-gradient(90deg, rgba(99, 231, 255, 0.09), rgba(65, 215, 149, 0.08)),
    rgba(5, 11, 18, 0.72);
}

body.uxtest-shell.run-in-progress .tool-potion-group {
  grid-template-columns: minmax(0, 1fr) minmax(124px, auto);
}

body.uxtest-shell.run-in-progress .tool-copy span {
  line-height: 1.22;
}

body.uxtest-shell.run-in-progress #potionBagLine[hidden] {
  display: none !important;
}

body.uxtest-shell.run-in-progress .play-tools #potionBtn {
  min-height: 38px;
}

@media (min-width: 761px) {
  body.uxtest-shell.run-in-progress .tool-copy #potionTimingLine,
  body.uxtest-shell.five-card-preview.run-in-progress .tool-copy #potionTimingLine {
    display: flex;
    max-height: 38px;
    overflow: hidden;
  }
}

body.uxtest-shell.run-in-progress .room-head {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 0;
  margin-bottom: 12px;
  padding: 0;
}

body.uxtest-shell.run-in-progress .room-head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
  white-space: nowrap;
}

body.uxtest-shell.run-in-progress .room-head-right {
  gap: 8px;
  min-width: 0;
}

body.uxtest-shell.run-in-progress #modeLine {
  max-width: min(36vw, 320px);
  font-size: 12px;
  color: #9fb0c3;
}

body.uxtest-shell #roomCards {
  gap: 12px;
}

body.uxtest-shell.run-in-progress #roomCards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
  padding: 0;
  overflow: visible;
}

body.uxtest-shell.run-in-progress .room-choice {
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 24px 116px minmax(60px, auto) 38px;
  gap: 7px;
  padding: 8px;
  border-radius: 8px;
}

body.uxtest-shell.run-in-progress .room-choice::before {
  inset: 4px;
  border-radius: 6px;
}

body.uxtest-shell.run-in-progress .room-choice.bonus-involved {
  border-color: rgba(245, 196, 95, 0.86);
  outline: 1px solid rgba(245, 196, 95, 0.88);
  outline-offset: -4px;
}

body.uxtest-shell.run-in-progress .room-choice.bonus-involved::before {
  border-color: rgba(245, 196, 95, 0.66);
  background: transparent;
  box-shadow: none;
}

body.uxtest-shell.run-in-progress .room-choice.bonus-involved:not(.bonus-settled) {
  animation: room-bonus-card-blink 0.92s ease-in-out 2;
}

body.uxtest-shell.run-in-progress .room-choice.bonus-involved:not(.bonus-settled)::before {
  animation: room-bonus-card-ring 0.92s ease-in-out 2;
}

body.uxtest-shell.run-in-progress .card-top {
  display: flex;
  gap: 5px;
  font-size: 9px;
  line-height: 1;
}

body.uxtest-shell.run-in-progress .card-top span {
  padding: 3px 5px;
}

body.uxtest-shell.run-in-progress .card-art,
body.uxtest-shell.run-in-progress .card-art svg {
  width: 100%;
  min-width: 0;
  min-height: 116px;
  height: 116px;
}

body.uxtest-shell.run-in-progress .card-copy {
  display: block;
  min-width: 0;
  overflow: hidden;
}

body.uxtest-shell.run-in-progress .classic-card-face {
  min-height: 102px;
}

body.uxtest-shell.run-in-progress .card-name {
  min-height: 0;
  font-size: 13px;
  line-height: 1.15;
}

body.uxtest-shell.run-in-progress .card-subtitle {
  display: none;
}

body.uxtest-shell.run-in-progress .card-meta {
  gap: 5px;
  font-size: 10px;
}

body.uxtest-shell.run-in-progress .card-bonus-label {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  margin: 6px auto 0;
  padding: 4px 7px;
  border: 1px solid rgba(255, 239, 172, 0.92);
  border-radius: 7px;
  background: rgba(5, 11, 18, 0.74);
  color: #fff0b8;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  box-shadow:
    inset 0 0 0 1px rgba(245, 196, 95, 0.36),
    0 0 18px rgba(245, 196, 95, 0.28);
}

body.uxtest-shell.run-in-progress .pill {
  padding: 4px 6px;
  border-radius: 6px;
}

body.uxtest-shell.run-in-progress .actions {
  position: static;
  grid-column: auto;
  grid-row: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto;
  gap: 6px;
}

body.uxtest-shell.run-in-progress .actions button:only-child {
  grid-column: 1 / -1;
}

body.uxtest-shell.run-in-progress .actions button {
  min-height: 36px;
  padding: 5px 6px;
  font-size: 10px;
}

@keyframes room-bonus-card-blink {
  0%,
  100% {
    border-color: rgba(245, 196, 95, 0.86);
    outline-width: 1px;
    outline-color: rgba(245, 196, 95, 0.88);
  }
  50% {
    border-color: rgba(255, 224, 133, 1);
    outline-width: 3px;
    outline-color: rgba(255, 239, 172, 1);
  }
}

@keyframes room-bonus-card-ring {
  0% {
    opacity: 0.5;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.78;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.uxtest-shell.run-in-progress .room-choice.bonus-involved,
  body.uxtest-shell.run-in-progress .room-choice.bonus-involved::before {
    animation: none;
  }
}

body.uxtest-shell .terminal-banner {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(18, 24, 32, 0.98);
  box-shadow: none;
}

body.uxtest-shell .terminal-banner.show {
  display: grid;
  gap: 14px;
}

body.uxtest-shell .terminal-banner.win {
  border-color: rgba(96, 211, 148, 0.36);
  background:
    linear-gradient(90deg, rgba(28, 95, 65, 0.58), rgba(18, 24, 32, 0.98));
}

body.uxtest-shell .terminal-title {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0;
}

body.uxtest-shell .terminal-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  min-width: max-content;
}

body.uxtest-shell .terminal-help-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

body.uxtest-shell .terminal-detail {
  font-size: 15px;
  line-height: 1.45;
}

body.uxtest-shell .terminal-next {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

body.uxtest-shell .uxtest-share-panel[hidden] {
  display: none;
}

body.uxtest-shell .uxtest-share-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1fr);
  gap: 12px;
  align-items: stretch;
  margin: 0 0 14px;
}

body.uxtest-shell .uxtest-share-card,
body.uxtest-shell .uxtest-share-log {
  min-width: 0;
  border: 1px solid rgba(255, 207, 92, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 207, 92, 0.07), rgba(99, 231, 255, 0.045) 44%, transparent),
    rgba(9, 14, 22, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.uxtest-shell .uxtest-share-card {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 13px;
}

body.uxtest-shell .uxtest-share-head {
  display: grid;
  gap: 3px;
}

body.uxtest-shell .uxtest-share-head span,
body.uxtest-shell .uxtest-share-highlights > span,
body.uxtest-shell .uxtest-share-log-head span {
  color: rgba(255, 228, 164, 0.72);
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
}

body.uxtest-shell .uxtest-share-head strong {
  color: #fff3d4;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.95;
}

body.uxtest-shell .uxtest-share-head em {
  color: #cfe3ea;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

body.uxtest-shell .uxtest-share-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.uxtest-shell .uxtest-share-stats div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(99, 231, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

body.uxtest-shell .uxtest-share-stats span,
body.uxtest-shell .uxtest-share-stats em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.uxtest-shell .uxtest-share-stats span {
  color: #8fa6b8;
  font-size: 9px;
  font-weight: 1000;
  text-transform: uppercase;
}

body.uxtest-shell .uxtest-share-stats strong {
  display: block;
  margin-top: 2px;
  color: #eff9ff;
  font-size: 18px;
  line-height: 1.05;
}

body.uxtest-shell .uxtest-share-stats em {
  margin-top: 3px;
  color: #b4c2ce;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

body.uxtest-shell .uxtest-share-highlights {
  display: grid;
  gap: 7px;
}

body.uxtest-shell .uxtest-share-highlights article {
  padding: 9px 10px;
  border: 1px solid rgba(245, 196, 95, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(245, 196, 95, 0.11), rgba(99, 231, 255, 0.05)),
    rgba(0, 0, 0, 0.24);
}

body.uxtest-shell .uxtest-share-highlights article[data-tier="rare"] {
  border-color: rgba(99, 231, 255, 0.36);
  background:
    linear-gradient(90deg, rgba(99, 231, 255, 0.16), rgba(245, 196, 95, 0.08)),
    rgba(0, 0, 0, 0.25);
}

body.uxtest-shell .uxtest-share-highlights article[data-tier="legendary"],
body.uxtest-shell .uxtest-share-highlights article[data-tier="mythic"] {
  border-color: rgba(255, 207, 92, 0.48);
  background:
    linear-gradient(90deg, rgba(255, 207, 92, 0.2), rgba(255, 92, 122, 0.08), rgba(99, 231, 255, 0.1)),
    rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 18px rgba(255, 207, 92, 0.08);
}

body.uxtest-shell .uxtest-share-highlights article strong,
body.uxtest-shell .uxtest-share-highlights article em {
  display: block;
}

body.uxtest-shell .uxtest-share-highlights article strong {
  color: #fff4dc;
  font-size: 13px;
  line-height: 1.22;
}

body.uxtest-shell .uxtest-share-highlights article em {
  margin-top: 3px;
  color: #b9c8d4;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

body.uxtest-shell .uxtest-share-empty {
  padding: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #aebdca;
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 800;
}

body.uxtest-shell .uxtest-share-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: center;
}

body.uxtest-shell .uxtest-share-actions button,
body.uxtest-shell .uxtest-share-actions summary,
body.uxtest-shell .uxtest-share-actions a.secondary {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 12px;
}

body.uxtest-shell .uxtest-share-menu {
  position: relative;
}

body.uxtest-shell .uxtest-share-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid rgba(164, 108, 219, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(164,108,219,0.18), rgba(92,97,248,0.09)),
    #141625;
  color: #f8fbff;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

body.uxtest-shell .uxtest-share-menu summary::-webkit-details-marker {
  display: none;
}

body.uxtest-shell .uxtest-share-menu-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 5;
  display: grid;
  gap: 6px;
  min-width: 164px;
  padding: 8px;
  border: 1px solid rgba(126,162,255,0.24);
  border-radius: 10px;
  background: rgba(8,12,22,0.96);
  box-shadow: 0 18px 42px rgba(0,0,0,0.5);
}

body.uxtest-shell .uxtest-share-menu-panel button,
body.uxtest-shell .uxtest-share-menu-panel a.secondary {
  width: 100%;
}

body.uxtest-shell #uxtestShareStatus {
  min-width: 64px;
  color: #9ef0c4;
  font-size: 11px;
  font-weight: 900;
}

body.uxtest-shell .uxtest-share-copy {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
  color: #e7edf4;
  background: rgba(0, 0, 0, 0.28);
  font-size: 12px;
  line-height: 1.35;
}

body.uxtest-shell .uxtest-share-log {
  max-height: clamp(560px, 48vw, 680px);
  overflow: auto;
  padding: 13px;
  overscroll-behavior: contain;
}

body.uxtest-shell .uxtest-share-log-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
}

body.uxtest-shell .uxtest-share-log-head strong {
  color: #e7f6ff;
  font-size: 12px;
  line-height: 1.2;
}

body.uxtest-shell .uxtest-share-log details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
}

body.uxtest-shell .uxtest-share-log details:first-of-type {
  border-top: 0;
}

body.uxtest-shell .uxtest-share-log summary {
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: #fff1ce;
  font-size: 12px;
  font-weight: 900;
}

body.uxtest-shell .uxtest-share-log summary span {
  color: #9fb4c6;
  font-size: 11px;
  white-space: nowrap;
}

body.uxtest-shell .uxtest-share-log ol {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

body.uxtest-shell .uxtest-share-log li {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

body.uxtest-shell .uxtest-share-log li strong {
  color: #f6ead2;
  font-size: 12px;
  line-height: 1.2;
}

body.uxtest-shell .uxtest-share-log li span {
  color: #aebdca;
  font-size: 11px;
  line-height: 1.25;
}

body.uxtest-shell.run-complete .toolbar,
body.uxtest-shell.run-complete .prize-target,
body.uxtest-shell.run-complete .uxtest-how-strip,
body.uxtest-shell.run-complete .progress,
body.uxtest-shell.run-complete .layout > .panel > .room-head,
body.uxtest-shell.run-complete #roomCards,
body.uxtest-shell.run-complete #cardRailCue {
  display: none;
}

body.uxtest-shell.run-complete .stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.uxtest-shell.run-complete .stat-weapon {
  display: none;
}

body.uxtest-shell.run-complete .stat-room-multiplier {
  display: none;
}

body.uxtest-shell.run-complete .stat-potion {
  display: block;
}

body.uxtest-shell.run-complete #potionStat {
  font-size: 14px;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.uxtest-shell.run-complete .side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

body.uxtest-shell.run-complete .side .panel {
  min-height: 0;
}

body.uxtest-shell.run-complete .side .panel:last-child {
  height: var(--postgame-side-height);
  max-height: var(--postgame-side-height);
  overflow: hidden;
}

body.uxtest-shell.run-complete .side .panel:last-child.leaderboard-panel-short {
  height: auto;
  max-height: none;
  overflow: visible;
}

body.uxtest-shell.run-complete .side .panel:first-child {
  display: none;
}

body.uxtest-shell.run-complete .side .panel:nth-child(2) {
  display: none;
}

body.uxtest-shell.run-complete .side .panel:first-child h3 {
  display: flex;
  align-items: center;
  margin: 0;
  color: #fff4df;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.uxtest-shell.run-complete #turnFeedback {
  min-height: 0;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  border-color: rgba(255, 207, 92, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 207, 92, 0.065), rgba(99, 231, 255, 0.035)),
    rgba(8, 13, 20, 0.9);
}

body.uxtest-shell.run-complete #turnFeedback .recent-turns {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.uxtest-shell.run-complete #turnFeedback .recent-turns li {
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

body.uxtest-shell.run-complete #turnFeedback .recent-turns.all-turns {
  gap: 7px;
}

body.uxtest-shell.run-complete #turnFeedback .recent-turns.all-turns li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
}

body.uxtest-shell.run-complete #turnFeedback .recent-turns.all-turns em {
  grid-row: span 2;
  width: fit-content;
  padding: 4px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 207, 92, 0.28);
  color: rgba(255, 221, 139, 0.78);
  background: rgba(255, 207, 92, 0.12);
  font-size: 10px;
  font-style: normal;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

body.uxtest-shell.run-complete #turnFeedback .recent-turns strong,
body.uxtest-shell.run-complete #turnFeedback .recent-turns span {
  display: block;
}

body.uxtest-shell.run-complete #turnFeedback .recent-turns strong {
  color: #fff4df;
  font-size: 14px;
  line-height: 1.2;
}

body.uxtest-shell.run-complete #turnFeedback .recent-turns span {
  margin-top: 4px;
  color: #aebdca;
  font-size: 12px;
  line-height: 1.25;
}

body.uxtest-shell.run-complete #turnFeedback .recent-turns .move-bonus {
  margin-top: 5px;
  width: fit-content;
  padding: 3px 6px;
  border: 1px solid rgba(245, 196, 95, 0.22);
  border-radius: 999px;
  background: rgba(245, 196, 95, 0.08);
  color: rgba(255, 227, 160, 0.86);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

body.uxtest-shell .side .panel:last-child {
  border-color: rgba(99, 231, 255, 0.16);
  background:
    linear-gradient(90deg, rgba(99, 231, 255, 0.055), transparent 36%),
    rgba(12, 16, 22, 0.95);
}

body.uxtest-shell.run-complete .side .panel:last-child {
  display: grid;
  grid-template-rows: 36px minmax(0, 1fr);
}

body.uxtest-shell .leaderboard {
  overflow: visible;
}

body.uxtest-shell.run-complete .leaderboard {
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
}

body.uxtest-shell.run-complete .leaderboard.leaderboard-short {
  height: auto;
  max-height: none;
  overflow: visible;
}

body.uxtest-shell .side .panel:last-child .room-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  margin-bottom: 0;
}

body.uxtest-shell .side .panel:last-child h3 {
  margin: 0;
  color: #fff4df;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.uxtest-shell .leader-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

body.uxtest-shell .leader-scope-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(58px, 1fr));
  gap: 3px;
  width: min(232px, 100%);
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
}

body.uxtest-shell .leader-scope-toggle button {
  min-height: 28px;
  padding: 5px 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #b9c7d4;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

body.uxtest-shell .leader-scope-toggle button.active {
  color: #081016;
  background: linear-gradient(90deg, var(--cyan), #d9f7ff);
}

body.uxtest-shell .leader-row {
  min-height: 58px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

body.uxtest-shell .leader-row .rank {
  color: var(--cyan);
}

body.uxtest-shell .leader-row > strong {
  color: #fff4df;
  font-size: 18px;
}

body.uxtest-shell .leader-name {
  gap: 6px;
}

body.uxtest-confirm-open {
  overflow: hidden;
}

body.uxtest-shell .uxtest-confirm {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 8, 13, 0.76);
  backdrop-filter: blur(12px);
}

body.uxtest-shell .uxtest-confirm[hidden] {
  display: none;
}

body.uxtest-shell .uxtest-confirm-card {
  width: min(560px, 100%);
  border: 1px solid rgba(232, 182, 79, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0)),
    #111821;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  padding: 20px;
}

body.uxtest-shell .uxtest-confirm-head span {
  display: block;
  color: #e8b64f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

body.uxtest-shell .uxtest-confirm-head h2 {
  margin: 5px 0 16px;
  color: #fff7e4;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
}

body.uxtest-shell .uxtest-confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

body.uxtest-shell .uxtest-confirm-grid div {
  min-width: 0;
  min-height: 76px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

body.uxtest-shell .uxtest-confirm-grid dt {
  color: #9faebb;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

body.uxtest-shell .uxtest-confirm-grid dd {
  margin: 6px 0 0;
  color: #fff7e4;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

body.uxtest-shell .uxtest-confirm-reset small {
  display: block;
  margin-top: 7px;
  color: #bfc9d2;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

body.uxtest-shell .uxtest-confirm-copy {
  margin: 14px 0 0;
  color: #bfc9d2;
  font-size: 13px;
  line-height: 1.45;
}

body.uxtest-shell .uxtest-difficulty-hint {
  margin: 12px 0 0;
  padding: 10px 11px;
  border: 1px solid rgba(245, 196, 95, 0.22);
  border-radius: 8px;
  background: rgba(245, 196, 95, 0.08);
  color: #ffe0a0;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

body.uxtest-shell .uxtest-difficulty-hint[hidden] {
  display: none;
}

body.uxtest-shell .uxtest-confirm-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 16px;
}

body.uxtest-shell .uxtest-confirm-actions button {
  min-height: 52px;
}

@media (max-width: 760px) {
  body.uxtest-shell {
    --postgame-side-height: clamp(220px, 34vh, 330px);
  }

  body.uxtest-shell .shell {
    padding: 12px;
  }

  body.uxtest-shell .uxtest-share-panel,
  body.uxtest-shell .uxtest-share-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  body.uxtest-shell .uxtest-share-head strong {
    font-size: 36px;
  }

  body.uxtest-shell .uxtest-share-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  body.uxtest-shell #uxtestShareStatus {
    min-height: 16px;
  }

  body.uxtest-shell .uxtest-share-log {
    max-height: none;
  }

  body.uxtest-shell .uxtest-share-log summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  body.uxtest-shell .uxtest-share-log summary span {
    white-space: normal;
  }

  body.uxtest-shell .hero {
    min-height: 0;
  }

  body.uxtest-shell .hero::after,
  body.uxtest-shell.pressure-preview .hero::after,
  body.uxtest-shell.pressure-preview .potline-pressure-desktop {
    display: none;
  }

  body.uxtest-shell.pressure-preview .pressure-pill-mobile {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 5px 8px;
    width: 100%;
    max-width: 100%;
    margin: 0 0 7px;
    padding: 7px 9px;
    border: 1px solid rgba(245, 196, 95, 0.32);
    border-radius: 8px;
    background:
      linear-gradient(90deg, rgba(245, 196, 95, 0.16), rgba(96, 211, 148, 0.1)),
      rgba(8, 12, 18, 0.84);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 8px 18px rgba(0, 0, 0, 0.22);
    text-align: center;
    white-space: nowrap;
  }

  body.uxtest-shell.pressure-preview:not(.round-pressure-active) .pressure-pill-mobile {
    display: none;
  }

  body.uxtest-shell.pressure-preview.run-in-progress .pressure-pill-mobile {
    display: none;
  }

  body.uxtest-shell.pressure-preview .pressure-pill-mobile [data-round-status="state"] {
    flex: 0 1 auto;
    font-size: 9px;
  }

  body.uxtest-shell.pressure-preview .pressure-pill-mobile .round-status-dot {
    display: none;
  }

  body.uxtest-shell.pressure-preview .pressure-pill-mobile .round-status-metric {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
  }

  body.uxtest-shell.pressure-preview .pressure-pill-mobile .round-status-metric,
  body.uxtest-shell.pressure-preview .pressure-pill-mobile .round-status-metric b,
  body.uxtest-shell.pressure-preview .pressure-pill-mobile .round-status-metric strong {
    font-size: 9px;
  }

  body.uxtest-shell .brand,
  body.uxtest-shell .brand-copy,
  body.uxtest-shell .wallet-strip,
  body.uxtest-shell .mode-controls,
  body.uxtest-shell .side .panel:last-child .room-head,
  body.uxtest-shell.run-complete .side {
    grid-template-columns: minmax(0, 1fr);
  }

  body.uxtest-shell .brand {
    gap: 16px;
    padding: 64px 18px 46px;
  }

  body.uxtest-shell .brand-copy {
    order: 1;
  }

  body.uxtest-shell .hero-vista {
    order: 2;
    min-height: 178px;
    transform: none;
  }

  body.uxtest-shell h1 {
    font-size: clamp(38px, 11.6vw, 46px);
    text-shadow:
      3px 3px 0 rgba(255, 79, 69, 0.58),
      6px 6px 0 rgba(99, 231, 255, 0.22),
      0 14px 30px rgba(0, 0, 0, 0.68);
  }

  body.uxtest-shell h1::after {
    display: none;
  }

  body.uxtest-shell .uxtest-card-stack {
    inset: 52px 18px 20px;
    gap: 8px;
  }

  body.uxtest-shell .uxtest-hero-card {
    min-height: 116px;
    padding: 12px 6px;
  }

  body.uxtest-shell .uxtest-hero-card.equip {
    min-height: 136px;
  }

  body.uxtest-shell .uxtest-hero-card::before {
    top: 22px;
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  body.uxtest-shell .brand-copy .badge {
    width: fit-content;
  }

  body.uxtest-shell .subtitle {
    display: none;
  }

  body.uxtest-shell .wallet-strip {
    display: grid;
  }

  body.uxtest-shell .wallet-strip.hero-wallet {
    top: 12px;
    right: 12px;
    width: auto;
    max-width: calc(100% - 24px);
    justify-items: end;
  }

  body.uxtest-shell .wallet-strip.hero-wallet #connectWalletBtn {
    justify-self: end;
    min-width: 0;
    max-width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 12px;
  }

  body.uxtest-shell .wallet-strip.hero-wallet .wallet-status {
    display: none;
  }

  body.uxtest-shell .toolbar {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
  }

  body.uxtest-shell:not(.run-in-progress):not(.run-complete) .toolbar {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 14px;
  }

  body.uxtest-shell:not(.run-in-progress):not(.run-complete) .mode-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.uxtest-shell .how-play-cta {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: auto;
    padding: 0;
    place-items: center;
    justify-items: center;
    align-self: stretch;
    border-color: rgba(99, 231, 255, 0.48);
    background:
      linear-gradient(180deg, rgba(99, 231, 255, 0.18), rgba(33, 89, 146, 0.1)),
      rgba(9, 18, 31, 0.82);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 8px 18px rgba(0, 0, 0, 0.24);
  }

  body.uxtest-shell .how-play-cta strong {
    font-size: 0;
  }

  body.uxtest-shell .how-play-cta strong::before {
    content: "?";
    font-size: 20px;
    line-height: 1;
  }

  body.uxtest-shell .how-play-cta span {
    display: none;
  }

  body.uxtest-shell .guide-actions {
    display: grid;
    grid-template-columns: 44px;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-content: stretch;
    width: 44px;
    min-width: 44px;
    align-self: stretch;
  }

  body.uxtest-shell .release-notes-cta {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: auto;
    padding: 0;
    display: grid;
    place-items: center;
    align-self: stretch;
    border-color: rgba(186, 132, 255, 0.5);
    background:
      linear-gradient(180deg, rgba(186, 132, 255, 0.18), rgba(89, 54, 139, 0.12)),
      rgba(18, 13, 34, 0.84);
    text-align: center;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 8px 18px rgba(0, 0, 0, 0.24);
  }

  body.uxtest-shell .release-notes-cta strong {
    font-size: 0;
    line-height: 1;
  }

  body.uxtest-shell .release-notes-cta strong::before {
    content: "New";
    font-size: 12px;
    font-weight: 1000;
    line-height: 1;
    letter-spacing: 0;
  }

  body.uxtest-shell .release-notes-cta span {
    display: none;
  }

  body.uxtest-shell .how-play-cta::before,
  body.uxtest-shell .release-notes-cta::before {
    display: none;
  }

  body.uxtest-shell .prize-target {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  body.uxtest-shell .prize-chip {
    min-height: 58px;
    padding: 8px;
  }

  body.uxtest-shell .prize-chip strong {
    font-size: 16px;
  }

  body.uxtest-shell.run-in-progress .room-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 8px;
  }

  body.uxtest-shell.run-in-progress .room-head h2 {
    font-size: 14px;
  }

  body.uxtest-shell.run-in-progress .room-head-right {
    min-width: 0;
    justify-content: flex-end;
  }

  body.uxtest-shell.run-in-progress #modeLine {
    max-width: 100%;
    min-width: 0;
  }

  body.uxtest-shell .uxtest-how-strip {
    padding: 12px;
  }

  body.uxtest-shell .uxtest-how-head h2 {
    font-size: 17px;
  }

  body.uxtest-shell .uxtest-rule-cards,
  body.uxtest-shell .uxtest-room-flow,
  body.uxtest-shell .how-example-board {
    grid-template-columns: minmax(0, 1fr);
  }

  body.uxtest-shell .uxtest-rule-card,
  body.uxtest-shell .how-example {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 9px;
  }

  body.uxtest-shell .rule-card-face {
    width: 58px;
    height: 78px;
  }

  body.uxtest-shell .rule-card-face strong {
    width: 34px;
    height: 34px;
    font-size: 21px;
  }

  body.uxtest-shell .rule-score .rule-card-face strong {
    width: 38px;
    font-size: 15px;
  }

  body.uxtest-shell.run-in-progress .stats {
    grid-template-columns: 0.78fr 0.78fr 1.28fr 1fr 0.86fr;
  }

  body.uxtest-shell.uxtest-route.run-in-progress .stats {
    grid-template-columns: 0.74fr 0.74fr 1fr 1.12fr 0.82fr;
  }

  body.uxtest-shell.run-complete .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.uxtest-shell.run-in-progress .layout {
    gap: 8px;
    padding-top: 8px;
  }

  body.uxtest-shell.run-in-progress .layout > .panel:first-child {
    padding: 8px;
  }

  body.uxtest-shell.run-in-progress .stats {
    gap: 3px;
    margin-bottom: 4px;
  }

  body.uxtest-shell.run-in-progress .stat {
    min-height: 32px;
    padding: 4px;
  }

  body.uxtest-shell.run-in-progress .stat span {
    font-size: 7px;
  }

  body.uxtest-shell.run-in-progress .stat strong {
    margin-top: 1px;
    font-size: 12px;
    line-height: 1.05;
  }

  body.uxtest-shell.run-in-progress #hpStat,
  body.uxtest-shell.run-in-progress #goldStat,
  body.uxtest-shell.run-in-progress #scoreStat,
  body.uxtest-shell.run-in-progress #prizeBeatStat,
  body.uxtest-shell.run-in-progress #potionStat,
  body.uxtest-shell.run-in-progress #roomMultiplierStat {
    overflow: visible;
    white-space: nowrap;
  }

  body.uxtest-shell.run-in-progress .stat-room-multiplier em {
    margin-top: 1px;
    font-size: 7px;
  }

  body.uxtest-shell.run-in-progress #potionStat {
    font-size: 11px;
  }

  body.uxtest-shell.run-in-progress .play-tools {
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
    gap: 5px;
    margin-bottom: 5px;
    padding: 5px;
  }

  body.uxtest-shell.run-in-progress .tool-potion-group {
    grid-template-columns: minmax(0, 1fr) minmax(78px, auto);
    gap: 5px;
  }

  body.uxtest-shell.run-in-progress .tool-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body.uxtest-shell.run-in-progress .play-tools #potionBtn {
    min-height: 28px;
    padding: 4px 6px;
    font-size: 9px;
  }

  body.uxtest-shell.run-in-progress .tool-copy span {
    font-size: 10px;
    line-height: 1.15;
  }

  body.uxtest-shell.run-in-progress .tool-copy strong,
  body.uxtest-shell.run-in-progress .tool-weapon strong,
  body.uxtest-shell.run-in-progress #potionTimingLine {
    display: none;
  }

  body.uxtest-shell.run-in-progress .tool-copy #potionToolTitle {
    display: block;
    font-size: 0;
    line-height: 1;
  }

  body.uxtest-shell.run-in-progress .tool-copy #potionToolTitle::before {
    content: attr(data-pressure-label);
    display: block;
    color: #7ee9ff;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
  }

  body.uxtest-shell.run-in-progress .mobile-turn {
    min-height: 0;
    padding: 4px 6px;
  }

  body.uxtest-shell.run-in-progress .mobile-turn .mobile-weapon-panel {
    min-height: 0;
    padding: 5px 7px;
  }

  body.uxtest-shell.run-in-progress .room-head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
    height: 24px;
    min-height: 24px;
  }

  body.uxtest-shell.run-in-progress .room-head h2 {
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.04em;
  }

  body.uxtest-shell.run-in-progress .room-head-right {
    justify-content: space-between;
    min-height: 22px;
  }

  body.uxtest-shell.five-card-preview.run-in-progress .room-head-right {
    justify-content: flex-end;
    gap: 3px;
  }

  body.uxtest-shell.run-in-progress .view-switch-wrap {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 0;
  }

  body.uxtest-shell.run-in-progress .view-switch {
    width: 86px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    border-radius: 6px;
  }

  body.uxtest-shell.run-in-progress .view-switch button {
    min-height: 20px;
    padding: 1px 2px;
    font-size: 0;
    line-height: 1;
  }

  body.uxtest-shell.run-in-progress #illustratedCardsBtn::before,
  body.uxtest-shell.run-in-progress #classicCardsBtn::before {
    font-size: 8px;
    line-height: 1;
    white-space: nowrap;
  }

  body.uxtest-shell.run-in-progress #illustratedCardsBtn::before {
    content: "Illus";
  }

  body.uxtest-shell.run-in-progress #classicCardsBtn::before {
    content: "Classic";
  }

  body.uxtest-shell.run-in-progress #modeLine {
    max-width: 31vw;
    font-size: 9px;
  }

  body.uxtest-shell.run-in-progress #roomCards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: minmax(78px, auto);
    gap: 5px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  body.uxtest-shell.run-in-progress #roomCards::-webkit-scrollbar {
    display: none;
  }

  body.uxtest-shell.run-in-progress .room-choice {
    width: 100%;
    display: grid;
    grid-template-columns: clamp(74px, 20vw, 92px) minmax(0, 1fr) clamp(112px, 29vw, 124px);
    grid-template-rows: minmax(0, 1fr);
    gap: 5px;
    padding: 5px;
    align-items: stretch;
    scroll-snap-align: none;
  }

  body.uxtest-shell.run-in-progress .actions {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-column: 3;
    grid-row: 1;
    min-height: 0;
    gap: 4px;
  }

  body.uxtest-shell.run-in-progress .room-choice.monster .actions {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 2fr) minmax(0, 1fr);
  }

  body.uxtest-shell.run-in-progress .room-choice.monster .actions button[data-mode="evade"] {
    order: 2;
  }

  body.uxtest-shell.run-in-progress .room-choice.monster .actions button[data-mode="fight"] {
    order: 1;
  }

  body.uxtest-shell.run-in-progress .card-top {
    display: none;
  }

  body.uxtest-shell.run-in-progress .card-art,
  body.uxtest-shell.run-in-progress .card-art svg {
    width: 100%;
    height: 100%;
    min-height: 68px;
  }

  body.uxtest-shell.run-in-progress .classic-card-face {
    min-height: 68px;
  }

  body.uxtest-shell.run-in-progress .card-copy {
    display: flex;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
  }

  body.uxtest-shell.run-in-progress .card-meta {
    flex-wrap: wrap;
    gap: 4px;
    font-size: 9px;
  }

  body.uxtest-shell.run-in-progress .card-bonus-label {
    margin: 4px auto 0 0;
    padding: 3px 6px;
    font-size: 9px;
    text-align: left;
  }

  body.uxtest-shell.run-in-progress .actions button {
    min-height: 28px;
    padding: 4px 5px;
  }

  body.uxtest-shell.run-in-progress .actions button strong {
    font-size: 12px;
  }

  body.uxtest-shell.run-in-progress .actions button span,
  body.uxtest-shell.run-in-progress .actions button em {
    font-size: 9px;
  }

  body.uxtest-shell .terminal-next {
    grid-template-columns: minmax(0, 1fr);
  }

  body.uxtest-shell .terminal-top {
    gap: 8px;
  }

  body.uxtest-shell .terminal-top-actions {
    gap: 6px;
  }

  body.uxtest-shell .terminal-help-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 14px;
  }

  body.uxtest-shell.run-complete .side .panel:last-child {
    grid-template-rows: auto minmax(0, 1fr);
    height: auto;
    max-height: none;
    overflow: visible;
  }

  body.uxtest-shell.run-complete .side .panel:last-child .room-head {
    min-height: 0;
  }

  body.uxtest-shell.run-complete .leaderboard {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  body.uxtest-shell.run-complete #turnFeedback .recent-turns.all-turns li {
    grid-template-columns: minmax(0, 1fr);
  }

  body.uxtest-shell.run-complete #turnFeedback .recent-turns.all-turns em {
    grid-row: auto;
  }

  body.uxtest-shell .leader-actions {
    justify-content: stretch;
  }

  body.uxtest-shell .leader-scope-toggle {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.uxtest-shell .leader-scope-toggle button {
    padding-inline: 6px;
    font-size: 11px;
  }

  body.uxtest-shell .uxtest-confirm-card {
    padding: 16px;
  }

  body.uxtest-shell .uxtest-confirm-grid,
  body.uxtest-shell .uxtest-confirm-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}
