.shooter-page {
  min-height: 100vh;
  background: #080000;
  color: #fff4e6;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fx-filter {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.mode-nav {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 12px 6px;
}

.mode-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 2px solid rgba(255, 170, 80, 0.5);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(126, 9, 9, 0.92), rgba(38, 0, 0, 0.92));
  color: #fff7ed;
  text-decoration: none;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.34);
}

.mode-nav a:hover,
.mode-nav a:focus-visible,
.mode-nav a[aria-current="page"] {
  border-color: #ffd58a;
  background: linear-gradient(145deg, #c22910, #600400);
  outline: none;
}

.shooter-shell {
  position: relative;
  z-index: 2;
  width: min(1380px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 8px 0 28px;
}

.shooter-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}

.shooter-header .title {
  margin: 0;
  line-height: 0.95;
  font-size: clamp(2rem, 5vw, 4.2rem);
  color: #ff2b1f;
  text-shadow: 3px 3px 0 #1b0000, 0 0 24px rgba(255, 68, 31, 0.72);
}

.eyebrow {
  margin: 0 0 4px;
  color: #70f0d4;
  font-family: "Courier New", monospace;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.shooter-header .subtitle {
  margin: 6px 0 0;
  color: #ffd27a;
  font-style: normal;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  letter-spacing: 0;
}

.header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.compact-button {
  min-height: 42px;
  padding: 9px 14px;
  margin: 0;
  font-size: 0.94rem;
  border-radius: 8px;
}

.shooter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  gap: 14px;
  align-items: start;
}

.arena-panel {
  position: relative;
  min-width: 0;
}

.arena-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  overflow: hidden;
  border: 3px solid #d52713;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 176, 69, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(7, 32, 35, 0.92), rgba(26, 0, 0, 0.96) 55%, rgba(3, 0, 0, 0.98));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.58), inset 0 0 38px rgba(255, 44, 20, 0.2);
}

.deathroll-event-active .arena-frame {
  border-color: var(--shooter-power-color, #d769ff);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.58), 0 0 28px var(--shooter-power-glow, rgba(215, 105, 255, 0.38)), inset 0 0 42px var(--shooter-power-glow, rgba(215, 105, 255, 0.18));
}

.play-action-bar {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 10px;
  right: 10px;
  display: none;
  grid-template-columns: repeat(5, minmax(82px, max-content));
  gap: 8px;
  justify-content: end;
  pointer-events: none;
}

.shooter-running .play-action-bar {
  display: grid;
}

.play-action-bar .action-button {
  pointer-events: auto;
  min-height: 38px;
  padding: 7px 10px;
  margin: 0;
  border-radius: 8px;
  font-size: 0.82rem;
  white-space: nowrap;
}

#shooterCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.hurt-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(255, 28, 28, 0.26);
  opacity: 0;
  transition: opacity 0.16s ease;
}

.hurt-flash.is-active {
  opacity: 1;
}

.run-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 18px;
  background: linear-gradient(180deg, rgba(7, 0, 0, 0.72), rgba(0, 0, 0, 0.88));
  backdrop-filter: blur(3px);
}

.run-overlay[hidden] {
  display: none;
}

.overlay-box {
  width: min(620px, 100%);
  border: 2px solid rgba(255, 193, 100, 0.62);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 24px);
  background: rgba(24, 0, 0, 0.88);
  box-shadow: 0 0 34px rgba(255, 41, 20, 0.3);
}

.compact-overlay {
  width: min(480px, 100%);
  text-align: center;
}

.overlay-kicker {
  margin: 0 0 8px;
  color: #70f0d4;
  font-family: "Courier New", monospace;
  font-weight: 800;
  text-transform: uppercase;
}

.overlay-box h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 0.95;
  color: #ff331f;
  text-shadow: 3px 3px 0 #170000, 0 0 20px rgba(255, 70, 34, 0.76);
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.setup-grid label {
  display: grid;
  gap: 6px;
  color: #ffe8c2;
  font-family: "Courier New", monospace;
  font-weight: 700;
}

.setup-grid label span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  line-height: 1.2;
}

#difficultySelect {
  cursor: pointer;
}

.wide-field {
  grid-column: 1 / -1;
}

.toggle-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  flex-direction: row;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 170, 80, 0.32);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.toggle-row span {
  justify-content: flex-start !important;
}

.start-button {
  display: block;
  width: 100%;
  margin: 16px 0 0;
  border-radius: 8px;
}

.mobile-controls {
  display: none;
  pointer-events: none;
}

.move-pad {
  pointer-events: auto;
  border: 2px solid rgba(255, 213, 138, 0.58);
  background: linear-gradient(145deg, rgba(97, 8, 8, 0.92), rgba(10, 0, 0, 0.96));
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.36);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.move-pad {
  --stick-x: 0px;
  --stick-y: 0px;
  position: relative;
  display: block;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(112, 240, 212, 0.2) 0 20%, transparent 21%),
    radial-gradient(circle, rgba(255, 213, 138, 0.15) 0 52%, rgba(97, 8, 8, 0.9) 53% 76%, rgba(10, 0, 0, 0.96) 77% 100%);
  box-shadow: 0 0 0 8px rgba(112, 240, 212, 0.08), 0 8px 24px rgba(0, 0, 0, 0.44);
}

.move-pad::before,
.move-pad::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.move-pad::before {
  inset: 18%;
  border: 1px solid rgba(255, 213, 138, 0.34);
  border-radius: 50%;
}

.move-pad::after {
  left: 50%;
  top: 50%;
  width: 84%;
  height: 84%;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 213, 138, 0.2) 50%, transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(255, 213, 138, 0.2) 50%, transparent calc(50% + 1px));
  transform: translate(-50%, -50%);
}

.joystick-thumb {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 245, 214, 0.74);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff0b0 0 14%, #ff4b20 15% 54%, #5b0804 55% 100%);
  box-shadow: 0 0 18px rgba(255, 70, 31, 0.54), inset 0 0 12px rgba(255, 213, 138, 0.22);
  transform: translate(calc(-50% + var(--stick-x)), calc(-50% + var(--stick-y)));
  transition: transform 0.08s ease-out;
  pointer-events: none;
}

.move-pad:active,
.move-pad.is-active {
  border-color: #70f0d4;
  filter: brightness(1.25);
}

.move-pad.is-active .joystick-thumb {
  transition: none;
  border-color: #70f0d4;
}

.status-panel {
  display: grid;
  gap: 10px;
}

.shooter-panel {
  border: 2px solid rgba(255, 68, 31, 0.62);
  border-radius: 8px;
  padding: 12px;
  background: rgba(24, 0, 0, 0.78);
  box-shadow: inset 0 0 24px rgba(255, 41, 20, 0.08), 0 8px 22px rgba(0, 0, 0, 0.34);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stat-grid div {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 170, 80, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
}

.stat-grid span,
.meter-row span,
.current-roll span {
  color: #ffd58a;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-grid strong,
.meter-row strong,
.current-roll strong {
  color: #fff7ed;
  font-family: "Courier New", monospace;
  font-size: 1.45rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.meter-panel {
  display: grid;
  gap: 8px;
}

.meter-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.meter {
  height: 12px;
  border: 1px solid rgba(255, 213, 138, 0.32);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
}

.meter-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  transition: width 0.16s ease;
}

.max-fill {
  background: linear-gradient(90deg, #70f0d4, #ffd15f, var(--shooter-difficulty-color, #ff4120));
}

.hp-fill {
  background: linear-gradient(90deg, #ff3225, #ffb84a, #7cffb1);
}

.pact-fill {
  background: linear-gradient(90deg, #7b54ff, #d769ff, #ffe066);
}

.current-roll {
  display: grid;
  gap: 8px;
  text-align: center;
}

.current-roll strong {
  color: #70f0d4;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
}

.deathroll-event-active .current-roll strong,
.deathroll-event-active .current-roll small {
  color: var(--shooter-power-color, #d769ff);
  text-shadow: 0 0 14px var(--shooter-power-glow, rgba(215, 105, 255, 0.38));
}

.current-roll small {
  min-height: 18px;
  color: #ffe8c2;
  font-family: "Courier New", monospace;
  line-height: 1.25;
}

.power-panel {
  display: grid;
  gap: 8px;
}

.wide-button {
  width: 100%;
  min-height: 46px;
  margin: 0;
  border-radius: 8px;
  font-size: 0.98rem;
}

.deathroll-event-active #pactBtn {
  border-color: var(--shooter-power-color, #d769ff);
  color: var(--shooter-power-color, #d769ff);
  box-shadow: inset 0 0 22px var(--shooter-power-glow, rgba(215, 105, 255, 0.38));
}

.deathroll-event-active #pactBtn:disabled {
  opacity: 0.92;
}

.fullscreen-active {
  overflow: hidden;
  background: #070000;
}

.fullscreen-active .mode-nav {
  display: none;
}

.fullscreen-active .shooter-shell {
  width: 100%;
  max-width: none;
  min-height: 100svh;
  padding: 8px;
}

.fullscreen-active .arena-frame {
  min-height: min(72svh, calc(100svh - 128px));
}

@media (max-width: 900px), (pointer: coarse) {
  .fullscreen-active {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .fullscreen-active .mode-nav,
  .fullscreen-active .shooter-header,
  .fullscreen-active .status-panel,
  .fullscreen-active #uiPolishControls {
    display: none !important;
  }

  .fullscreen-active .shooter-shell {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    padding: 0;
  }

  .fullscreen-active .shooter-layout,
  .fullscreen-active .arena-panel {
    display: block;
    width: 100%;
    height: 100%;
  }

  .fullscreen-active .arena-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    border-width: 0;
    border-radius: 0;
  }

  .fullscreen-active .play-action-bar {
    top: max(8px, env(safe-area-inset-top, 0px));
    left: max(8px, env(safe-area-inset-left, 0px));
    right: max(8px, env(safe-area-inset-right, 0px));
  }

  .fullscreen-active.shooter-running .mobile-controls {
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
}

.log-panel {
  min-height: 138px;
}

.run-log {
  max-height: 176px;
  overflow: auto;
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding-right: 4px;
  color: #ffe8c2;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.35;
}

.run-log div {
  border-left: 3px solid rgba(112, 240, 212, 0.7);
  padding: 5px 0 5px 8px;
  background: rgba(0, 0, 0, 0.18);
}

.shooter-page #uiPolishControls {
  left: 12px !important;
  right: auto !important;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
}

.end-score {
  color: #ffd15f;
  font-family: "Courier New", monospace;
  font-size: clamp(2rem, 8vw, 3.6rem);
  font-weight: 900;
}

.end-summary {
  color: #fff0d8;
  line-height: 1.35;
}

@media (max-width: 1040px) {
  .shooter-layout {
    grid-template-columns: 1fr;
  }

  .status-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .log-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .shooter-page {
    min-height: 100svh;
  }

  .shooter-shell {
    width: min(100vw - 12px, 720px);
    padding: 4px 0 14px;
  }

  .mode-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 6px 4px;
  }

  .mode-nav a {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 0.78rem;
  }

  .mode-nav a[aria-current="page"] {
    grid-column: 1 / -1;
  }

  .shooter-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
  }

  .shooter-header .title {
    font-size: clamp(1.72rem, 8vw, 2.35rem);
    text-shadow: 2px 2px 0 #1b0000, 0 0 16px rgba(255, 68, 31, 0.7);
  }

  .shooter-header .subtitle {
    margin-top: 3px;
    font-size: 0.95rem;
  }

  .eyebrow {
    margin-bottom: 2px;
    font-size: 0.78rem;
  }

  .header-actions {
    width: 100%;
    gap: 7px;
  }

  .compact-button {
    flex: 1 1 120px;
    min-height: 38px;
    padding: 7px 10px;
    font-size: 0.88rem;
  }

  .play-action-bar {
    top: 8px;
    left: 8px;
    right: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    justify-content: stretch;
  }

  .play-action-bar .action-button {
    min-width: 0;
    min-height: 34px;
    padding: 5px 4px;
    font-size: 0.68rem;
  }

  .arena-frame {
    aspect-ratio: auto;
    min-height: clamp(300px, 52svh, 440px);
    border-width: 2px;
    border-radius: 8px;
  }

  .run-overlay {
    place-items: start center;
    align-content: start;
    overflow-y: auto;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .overlay-box {
    width: min(520px, 100%);
    padding: 12px;
  }

  .overlay-kicker {
    margin-bottom: 5px;
    font-size: 0.72rem;
  }

  .overlay-box h2 {
    margin-bottom: 10px;
    font-size: clamp(1.5rem, 8vw, 2.1rem);
  }

  .status-panel {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .shooter-panel {
    padding: 10px;
  }

  .stat-grid {
    gap: 7px;
  }

  .stat-grid div {
    min-height: 62px;
    padding: 9px;
  }

  .stat-grid strong,
  .meter-row strong {
    font-size: 1.25rem;
  }

  .meter {
    height: 11px;
  }

  .current-roll {
    gap: 5px;
  }

  .current-roll strong {
    font-size: clamp(2rem, 12vw, 3.15rem);
  }

  .power-panel {
    gap: 7px;
  }

  .wide-button {
    min-height: 42px;
    font-size: 0.88rem;
  }

  .log-panel {
    min-height: 118px;
  }

  .run-log {
    max-height: 128px;
  }

  .setup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .setup-grid label {
    min-width: 0;
    gap: 4px;
    font-size: 0.78rem;
  }

  .setup-grid .devil-input {
    width: 100%;
    min-width: 0;
    padding: 8px;
  }

  .toggle-row {
    min-height: 38px;
    padding: 6px 8px;
  }

  .start-button {
    min-height: 44px;
    margin-top: 10px;
    padding: 10px 14px;
  }

  .shooter-running .mobile-controls {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
  }

  .move-pad {
    width: clamp(106px, 29vw, 122px);
    height: clamp(106px, 29vw, 122px);
    backdrop-filter: blur(3px);
  }

  .joystick-thumb {
    width: clamp(42px, 11vw, 48px);
    height: clamp(42px, 11vw, 48px);
  }

  .shooter-page #uiPolishControls {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    z-index: 3000 !important;
    isolation: isolate !important;
    max-width: calc(100vw - 20px) !important;
    margin: 12px auto calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    transform: none !important;
    background: rgba(20, 0, 0, 0.94) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.56) !important;
  }
}

@media (max-width: 420px) {
  .arena-frame {
    min-height: clamp(286px, 50svh, 400px);
  }

  .run-overlay {
    padding: 8px;
  }

  .overlay-box {
    padding: 10px;
  }

  .overlay-kicker {
    margin-bottom: 4px;
    font-size: 0.68rem;
  }

  .overlay-box h2 {
    margin-bottom: 8px;
    font-size: 1.55rem;
  }

  .setup-grid {
    gap: 6px;
  }

  .setup-grid label {
    font-size: 0.72rem;
  }

  .toggle-row {
    min-height: 34px;
    padding: 5px 7px;
  }

  .start-button {
    min-height: 42px;
    margin-top: 8px;
  }

  .shooter-running .mobile-controls {
    left: 9px;
    right: 9px;
    bottom: 9px;
  }

  .move-pad {
    width: 102px;
    height: 102px;
  }

  .joystick-thumb {
    width: 40px;
    height: 40px;
  }

  .play-action-bar {
    gap: 4px;
  }

  .play-action-bar .action-button {
    font-size: 0.62rem;
    min-height: 32px;
  }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 540px) {
  .mode-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-top: 5px;
  }

  .mode-nav a,
  .mode-nav a[aria-current="page"] {
    grid-column: auto;
    min-height: 30px;
    font-size: 0.7rem;
    padding: 5px 4px;
  }

  .shooter-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    margin-bottom: 6px;
  }

  .shooter-header .title {
    font-size: 1.5rem;
  }

  .shooter-header .subtitle,
  .eyebrow {
    font-size: 0.72rem;
  }

  .header-actions {
    width: auto;
  }

  .compact-button {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 0.75rem;
  }

  .play-action-bar {
    top: 7px;
    left: 7px;
    right: 7px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }

  .play-action-bar .action-button {
    min-height: 30px;
    padding: 4px 4px;
    font-size: 0.58rem;
  }

  .shooter-layout {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 270px);
    gap: 8px;
  }

  .arena-frame {
    min-height: calc(100svh - 106px);
  }

  .run-overlay {
    place-items: start center;
    align-content: start;
    overflow-y: auto;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .overlay-box {
    width: min(520px, 100%);
    padding: 10px;
  }

  .overlay-kicker {
    margin-bottom: 4px;
    font-size: 0.68rem;
  }

  .overlay-box h2 {
    margin-bottom: 7px;
    font-size: 1.45rem;
  }

  .setup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .setup-grid label {
    min-width: 0;
    gap: 3px;
    font-size: 0.7rem;
  }

  .setup-grid .devil-input {
    width: 100%;
    min-width: 0;
    padding: 7px;
  }

  .toggle-row {
    min-height: 32px;
    padding: 4px 7px;
  }

  .start-button {
    min-height: 40px;
    margin-top: 7px;
    padding: 8px 12px;
  }

  .shooter-page #uiPolishControls {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    z-index: 3000 !important;
    isolation: isolate !important;
    max-width: calc(100vw - 20px) !important;
    margin: 8px auto calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    transform: none !important;
    background: rgba(20, 0, 0, 0.94) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.56) !important;
  }

  .shooter-running .mobile-controls {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
  }

  .move-pad {
    width: 104px;
    height: 104px;
    backdrop-filter: blur(3px);
  }

  .joystick-thumb {
    width: 40px;
    height: 40px;
  }

  .status-panel {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .shooter-panel {
    padding: 7px;
  }

  .stat-grid div {
    min-height: 46px;
    padding: 6px;
  }

  .meter-panel,
  .power-panel {
    gap: 5px;
  }

  .current-roll strong {
    font-size: 2rem;
  }

  .log-panel {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hurt-flash,
  .meter-fill {
    transition: none;
  }
}
