:root {
  --bg: #eef6c2;
  --bg-deep: #d7e99a;
  --panel: rgba(254, 252, 236, 0.9);
  --ink: #3f4f17;
  --muted: #687244;
  --track: #a9c15a;
  --tile: #fff3c9;
  --tile-line: rgba(207, 181, 92, 0.3);
  --tile-shadow: rgba(115, 146, 40, 0.22);
  --accent: #f6a83b;
  --accent-2: #ff6854;
  --bonus: #c166f5;
  --success: #9de000;
  --sky: #76caf8;
  --gold: #ffcf43;
  --danger: #ff5656;
  --shadow-soft: 0 16px 48px rgba(103, 125, 31, 0.18);
  --board-cols: 9;
  --board-rows: 7;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Trebuchet MS", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.65), transparent 22%),
    radial-gradient(circle at 80% 0%, rgba(255, 233, 153, 0.42), transparent 18%),
    linear-gradient(160deg, #f7fbcf 0%, #eaf5be 44%, #d7eb9b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12px 12px, rgba(157, 198, 68, 0.11) 0 2px, transparent 2px),
    radial-gradient(circle at 40px 30px, rgba(157, 198, 68, 0.08) 0 2px, transparent 2px);
  background-size: 120px 120px, 140px 140px;
  opacity: 0.38;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.brand-block {
  max-width: 560px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #84d800, #ffd545);
  box-shadow: inset 0 -4px 0 rgba(68, 98, 11, 0.17);
  color: #34510c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-block h1 {
  margin: 12px 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
}

.brand-block p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.topbar-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.metric-card {
  min-width: 128px;
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.metric-card strong {
  display: block;
  font-size: 28px;
  margin-top: 6px;
}

.accent-gold {
  background: linear-gradient(180deg, rgba(255, 240, 181, 0.9), rgba(255, 215, 92, 0.94));
}

.metric-label {
  font-size: 13px;
  color: rgba(63, 79, 23, 0.8);
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 420px);
  gap: 20px;
}

.board-panel,
.sidebar {
  min-width: 0;
}

.board-stage,
.panel-card,
.settings-panel,
.simulator-shell {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-soft);
  border-radius: 32px;
  backdrop-filter: blur(14px);
}

.board-stage {
  padding: 22px;
}

.board-stage__header,
.panel-card__title,
.settings-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6f8319;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-stage__header h2,
.settings-panel__header h2 {
  margin: 6px 0 0;
  font-size: 28px;
}

.board-inline-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.maze-shell {
  position: relative;
  margin-top: 22px;
  min-height: 620px;
  padding: 18px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(171, 206, 77, 0.9), rgba(131, 171, 42, 0.88)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 68%);
  overflow: hidden;
}

.maze-shell::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.24), transparent 18%),
    radial-gradient(circle at 72% 68%, rgba(255, 255, 255, 0.18), transparent 20%),
    linear-gradient(180deg, rgba(243, 255, 210, 0.68), rgba(197, 219, 120, 0.24));
}

.maze-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(var(--board-cols), 1fr);
  grid-template-rows: repeat(var(--board-rows), 1fr);
  gap: 12px;
  min-height: 584px;
}

.maze-tile {
  position: relative;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.68), transparent 12%),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.18), transparent 14%),
    linear-gradient(145deg, #fff8db, #ffeab5);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    inset 0 0 0 7px rgba(255, 244, 202, 0.55),
    0 10px 24px var(--tile-shadow);
  overflow: hidden;
}

.maze-tile::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18px 18px, rgba(233, 205, 117, 0.2) 0 5px, transparent 5px),
    radial-gradient(circle at calc(100% - 18px) calc(100% - 18px), rgba(233, 205, 117, 0.15) 0 5px, transparent 5px),
    linear-gradient(135deg, transparent 0 42%, rgba(213, 184, 89, 0.08) 42% 58%, transparent 58%),
    linear-gradient(45deg, transparent 0 44%, rgba(213, 184, 89, 0.08) 44% 56%, transparent 56%);
  border: 1px solid rgba(230, 208, 127, 0.3);
}

.maze-tile__content {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  color: #7a6717;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.maze-tile.start {
  background: linear-gradient(150deg, #c8ff7f, #86d22e);
}

.maze-tile.start .maze-tile__content {
  color: #244b0b;
}

.maze-tile.challenge {
  background: linear-gradient(150deg, #ffc45f, #ff8a2b);
}

.maze-tile.reward {
  background: linear-gradient(150deg, #ff8680, #ff5a4f);
}

.maze-tile.bonus {
  background: linear-gradient(150deg, #e79bff, #cb68ff);
}

.maze-tile.treasure {
  background: linear-gradient(150deg, #79d4ff, #4a90ff);
}

.maze-tile.active-step {
  outline: 4px solid rgba(255, 255, 255, 0.72);
}

.maze-tile.is-current::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px rgba(116, 255, 0, 0.7);
}

.board-centerpiece {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  pointer-events: none;
}

.die {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 28px;
  background: linear-gradient(160deg, #ffffff, #f5f1e4);
  box-shadow:
    inset -12px -12px 20px rgba(162, 158, 140, 0.18),
    inset 10px 10px 18px rgba(255, 255, 255, 0.92),
    0 24px 36px rgba(76, 95, 16, 0.22);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 16px;
  transform-origin: center;
  transition: transform 0.28s ease;
}

.die.rolling {
  animation: die-roll 1.1s cubic-bezier(.19,.8,.24,1) both;
}

@keyframes die-roll {
  0% {
    transform: rotate(-8deg) scale(0.96);
  }
  25% {
    transform: rotate(16deg) scale(1.08);
  }
  55% {
    transform: rotate(-18deg) scale(0.92);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

.pip {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  align-self: center;
  justify-self: center;
  background: #1e1d1d;
  opacity: 0;
  box-shadow: inset -2px -2px 3px rgba(255, 255, 255, 0.18);
}

.face-1 .pip-4,
.face-2 .pip-1,
.face-2 .pip-7,
.face-3 .pip-1,
.face-3 .pip-4,
.face-3 .pip-7,
.face-4 .pip-1,
.face-4 .pip-3,
.face-4 .pip-5,
.face-4 .pip-7,
.face-5 .pip-1,
.face-5 .pip-3,
.face-5 .pip-4,
.face-5 .pip-5,
.face-5 .pip-7,
.face-6 .pip-1,
.face-6 .pip-2,
.face-6 .pip-3,
.face-6 .pip-5,
.face-6 .pip-6,
.face-6 .pip-7 {
  opacity: 1;
}

.face-1 .pip-4,
.face-3 .pip-4,
.face-5 .pip-4 {
  background: #ff4537;
}

.die-shadow {
  width: 140px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 133, 32, 0.36), transparent 68%);
}

.center-cta {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.center-cta p {
  margin: 0;
  font-weight: 700;
}

.player-token {
  position: absolute;
  z-index: 3;
  left: 10%;
  top: 10%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: left 0.42s ease, top 0.42s ease;
}

.player-token__pin {
  width: 48px;
  height: 48px;
  border-radius: 24px 24px 24px 2px;
  transform: rotate(-45deg);
  background: linear-gradient(145deg, #ff6a62, #ff3d3d);
  border: 4px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(94, 18, 18, 0.28);
}

.player-token__pin::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.player-token span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47, 59, 16, 0.82);
  color: #fff5d4;
  font-size: 12px;
  font-weight: 700;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel-card {
  padding: 18px 18px 20px;
}

.panel-card h3 {
  margin: 0;
}

.panel-card__title {
  margin-bottom: 16px;
}

.current-player-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #c7d0de, #a7b0c0);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  border: 4px solid rgba(255, 255, 255, 0.9);
}

.current-player-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.quick-actions,
.bridge-actions,
.settings-actions,
.quick-counts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.queue-list,
.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.queue-item,
.event-item {
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.queue-item strong,
.event-item strong {
  display: block;
}

.queue-item small,
.event-item small,
.empty-state {
  color: var(--muted);
}

.queue-pill {
  min-width: 42px;
  padding: 8px 10px;
  border-radius: 999px;
  text-align: center;
  background: linear-gradient(135deg, #c3f443, #92d80c);
  font-weight: 800;
}

.simulator-form,
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.simulator-form label,
.settings-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

input[type="text"],
input[type="number"],
input[type="url"],
select {
  width: 100%;
  border: 1px solid rgba(133, 166, 47, 0.22);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  border-color: rgba(123, 194, 0, 0.68);
  box-shadow: 0 0 0 4px rgba(170, 227, 68, 0.18);
}

select:focus {
  border-color: rgba(123, 194, 0, 0.68);
  box-shadow: 0 0 0 4px rgba(170, 227, 68, 0.18);
}

.switch-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.text-btn,
.chip-btn {
  border-radius: 18px;
  padding: 12px 16px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.text-btn:hover,
.chip-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  color: #543500;
  background: linear-gradient(180deg, #ffe05f, #ffbd2a);
  box-shadow: inset 0 -5px 0 rgba(187, 118, 10, 0.18);
}

.secondary-btn {
  color: #2d4700;
  background: linear-gradient(180deg, #c6f353, #96dd0e);
  box-shadow: inset 0 -5px 0 rgba(75, 125, 12, 0.18);
}

.ghost-btn {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(152, 173, 92, 0.28);
}

.text-btn {
  padding: 0;
  background: transparent;
  color: #5d7d10;
}

.chip-btn {
  padding-inline: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-badge.offline,
.status-badge.waiting,
.status-badge.neutral {
  background: rgba(111, 128, 62, 0.12);
  color: #60713c;
}

.status-badge.online,
.status-badge.local {
  background: rgba(135, 236, 44, 0.18);
  color: #3d6508;
}

.status-badge.rolling {
  background: rgba(255, 166, 48, 0.2);
  color: #9b5d00;
}

.bridge-box {
  padding: 14px;
  border-radius: 24px;
  background: rgba(239, 246, 203, 0.75);
}

.bridge-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.bridge-box p,
.format-tip {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.format-tip {
  margin-top: 10px;
}

.format-tip code {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  color: #506315;
  word-break: break-all;
}

.settings-drawer {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 15;
}

.settings-drawer.is-open {
  display: block;
}

.settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(37, 48, 14, 0.42);
  backdrop-filter: blur(6px);
}

.settings-panel {
  position: absolute;
  right: 22px;
  top: 22px;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 22px;
}

.toast-host {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.bili-player-host {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 2px;
  height: 2px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.toast {
  min-width: 240px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(48, 63, 17, 0.9);
  color: #f8ffd8;
  box-shadow: 0 16px 36px rgba(31, 40, 10, 0.26);
  animation: toast-in 0.25s ease forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.simulator-page {
  padding: 32px;
}

.simulator-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
}

.simulator-shell h1 {
  margin: 8px 0 10px;
}

.simulator-shell p {
  margin: 0 0 22px;
  color: var(--muted);
}

.hint-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(241, 248, 214, 0.88);
  color: var(--muted);
  line-height: 1.65;
}

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

  .maze-shell {
    min-height: 560px;
  }
}

@media (max-width: 820px) {
  .page-shell,
  .simulator-page {
    padding: 18px;
  }

  .topbar {
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .maze-shell {
    min-height: 500px;
    padding: 12px;
  }

  .maze-grid {
    gap: 8px;
    min-height: 470px;
  }

  .maze-tile {
    border-radius: 16px;
  }

  .maze-tile__content {
    font-size: 12px;
    padding: 6px;
  }

  .player-token__pin {
    width: 40px;
    height: 40px;
  }

  .die {
    width: 108px;
    height: 108px;
    border-radius: 22px;
  }

  .settings-panel {
    right: 10px;
    top: 10px;
    max-height: calc(100vh - 20px);
  }
}

.maze-shell {
  min-height: 720px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(186, 211, 101, 0.95), rgba(136, 172, 49, 0.94));
}

.maze-shell::before {
  inset: 10px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(230, 241, 186, 0.16), rgba(197, 219, 120, 0.08));
}

.maze-grid {
  gap: 0;
  min-height: 690px;
  padding: 0;
}

.maze-tile {
  border-radius: 14px 14px 18px 18px;
  background: linear-gradient(180deg, #ffe4a5 0 20%, #fff2d8 20% 100%);
  border: 1px solid rgba(156, 102, 36, 0.18);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -8px 0 rgba(205, 134, 59, 0.18),
    0 4px 8px rgba(120, 80, 21, 0.08);
  overflow: hidden;
  transform-origin: center bottom;
}

.maze-tile::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30%;
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(180deg, #b85a27, #dc8a42);
  box-shadow: inset 0 -2px 0 rgba(97, 39, 12, 0.18);
}

.maze-tile::after {
  content: "";
  position: absolute;
  inset: 10% 12% auto;
  height: 22%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0));
  opacity: 0.75;
}

.maze-tile__content {
  align-items: flex-end;
  padding: 8px 4px;
  color: #6b461d;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.maze-tile.start .maze-tile__content {
  color: #4d3007;
}

.pudding-classic {
  background: linear-gradient(180deg, #ffe4a5 0 20%, #fff2d8 20% 100%);
}

.pudding-classic::before {
  background: linear-gradient(180deg, #9c5625, #cc7a39);
}

.pudding-caramel {
  background: linear-gradient(180deg, #ffdba1 0 20%, #ffeac5 20% 100%);
}

.pudding-caramel::before {
  background: linear-gradient(180deg, #87431b, #b9662c);
}

.pudding-strawberry {
  background: linear-gradient(180deg, #ffd3dd 0 20%, #ffe7ed 20% 100%);
}

.pudding-strawberry::before {
  background: linear-gradient(180deg, #d4546c, #f08195);
}

.pudding-matcha {
  background: linear-gradient(180deg, #d7efb0 0 20%, #eef8da 20% 100%);
}

.pudding-matcha::before {
  background: linear-gradient(180deg, #719434, #97bf4a);
}

.pudding-mango {
  background: linear-gradient(180deg, #ffd28a 0 20%, #ffedc6 20% 100%);
}

.pudding-mango::before {
  background: linear-gradient(180deg, #d5821a, #f0aa41);
}

.maze-tile.is-current {
  z-index: 4;
}

.maze-tile.is-current::after {
  inset: 0;
  height: auto;
  border-radius: inherit;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(171, 255, 111, 0.18));
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.82),
    inset 0 0 0 6px rgba(147, 255, 30, 0.3);
}

.maze-tile.is-jiggling {
  animation: pudding-jiggle 0.32s ease;
}

@keyframes pudding-jiggle {
  0% {
    transform: scale(1) translateY(0);
  }
  32% {
    transform: scale(1.04, 0.94) translateY(1px);
  }
  68% {
    transform: scale(0.98, 1.03) translateY(-1px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

.board-centerpiece {
  inset: 52% auto auto 50%;
  gap: 10px;
}

.table-stage {
  position: relative;
  width: min(36vw, 250px);
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}

.die-trigger {
  position: relative;
  z-index: 2;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  pointer-events: auto;
}

.die-trigger:disabled {
  cursor: default;
}

.die {
  --die-settle-transform: rotateX(58deg) rotateY(-10deg) rotateZ(-34deg);
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  padding: 11px;
  border-radius: 19px;
  background: linear-gradient(150deg, #ffffff, #ede7db);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  transform-style: preserve-3d;
  transform: var(--die-settle-transform);
  box-shadow:
    inset 8px 8px 14px rgba(255, 255, 255, 0.94),
    inset -10px -10px 14px rgba(156, 148, 132, 0.22),
    0 12px 18px rgba(59, 55, 45, 0.16);
  transition: transform 0.28s ease;
}

.die::before {
  content: "";
  position: absolute;
  left: 7px;
  right: 12px;
  bottom: 100%;
  height: 18px;
  transform: skewX(-45deg);
  transform-origin: left bottom;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, #fffdf8, #e8e2d5);
}

.die::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 7px;
  bottom: 12px;
  width: 18px;
  transform: skewY(-45deg);
  transform-origin: left top;
  border-radius: 0 14px 14px 0;
  background: linear-gradient(180deg, #ece5d7, #d0c4b0);
}

.die-trigger:hover .die,
.die-trigger:focus-visible .die {
  transform: translateY(-3px) var(--die-settle-transform);
}

.die-trigger:focus-visible {
  outline: none;
}

.die-trigger:focus-visible .die-shadow {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.face-1 {
  --die-settle-transform: rotateX(58deg) rotateY(-10deg) rotateZ(-34deg);
}

.face-2 {
  --die-settle-transform: rotateX(60deg) rotateY(6deg) rotateZ(-28deg);
}

.face-3 {
  --die-settle-transform: rotateX(56deg) rotateY(-16deg) rotateZ(-42deg);
}

.face-4 {
  --die-settle-transform: rotateX(60deg) rotateY(14deg) rotateZ(-24deg);
}

.face-5 {
  --die-settle-transform: rotateX(54deg) rotateY(-4deg) rotateZ(-34deg);
}

.face-6 {
  --die-settle-transform: rotateX(62deg) rotateY(12deg) rotateZ(-30deg);
}

.pip {
  width: 13px;
  height: 13px;
  background: #1b1b1b;
  box-shadow:
    inset -1px -1px 1px rgba(255, 255, 255, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.08);
}

.face-1 .pip-4,
.face-3 .pip-4,
.face-5 .pip-4 {
  background: #e34a34;
}

.die-shadow {
  position: absolute;
  left: 50%;
  bottom: 52px;
  width: 112px;
  height: 25px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(62, 50, 32, 0.28), rgba(62, 50, 32, 0.04) 68%, transparent 76%);
  filter: blur(1px);
}

.tabletop {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: min(38vw, 260px);
  height: 88px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 26%, rgba(255, 247, 228, 0.65), transparent 26%),
    linear-gradient(180deg, #d9a165, #a4632f);
  box-shadow:
    inset 0 10px 14px rgba(255, 238, 204, 0.34),
    inset 0 -12px 18px rgba(91, 49, 18, 0.2),
    0 26px 26px rgba(82, 56, 17, 0.16);
}

.tabletop::after {
  content: "";
  position: absolute;
  inset: 12px 18px;
  border-radius: inherit;
  border: 2px solid rgba(255, 238, 214, 0.26);
}

.die-trigger.is-rolling .die {
  animation: die-top-spin 1.28s cubic-bezier(0.16, 0.77, 0.22, 0.98) both;
}

.die-trigger.is-rolling .die-shadow {
  animation: shadow-top-spin 1.28s cubic-bezier(0.16, 0.77, 0.22, 0.98) both;
}

@keyframes die-top-spin {
  0% {
    transform: var(--die-settle-transform);
  }
  12% {
    transform: translateY(-10px) rotateX(76deg) rotateY(20deg) rotateZ(160deg) scale(0.98);
  }
  34% {
    transform: translateY(-22px) rotateX(84deg) rotateY(40deg) rotateZ(620deg) scale(0.95);
  }
  62% {
    transform: translateY(-12px) rotateX(88deg) rotateY(58deg) rotateZ(1120deg) scale(0.92);
  }
  82% {
    transform: translateY(-4px) rotateX(74deg) rotateY(22deg) rotateZ(1400deg) scale(0.98);
  }
  100% {
    transform: var(--die-settle-transform);
  }
}

@keyframes shadow-top-spin {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 0.85;
  }
  18% {
    transform: translateX(-54%) scale(0.84, 0.68);
    opacity: 0.72;
  }
  36% {
    transform: translateX(-42%) scale(1.28, 0.44);
    opacity: 0.44;
  }
  60% {
    transform: translateX(-56%) scale(0.82, 0.38);
    opacity: 0.36;
  }
  80% {
    transform: translateX(-48%) scale(1.08, 0.82);
    opacity: 0.62;
  }
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.85;
  }
}

.center-cta {
  gap: 6px;
}

.center-cta p {
  font-size: 16px;
}

.dice-hint {
  color: rgba(63, 79, 23, 0.8);
  font-size: 13px;
  font-weight: 700;
}

.player-token {
  transition: left 0.22s linear, top 0.22s linear;
}

.player-token__pin {
  width: 34px;
  height: 34px;
  border-width: 3px;
}

.player-token__pin::before {
  inset: 7px;
}

.player-token span {
  max-width: 80px;
  padding: 5px 8px;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .maze-shell {
    min-height: 620px;
  }

  .maze-grid {
    min-height: 590px;
  }

  .table-stage {
    width: min(46vw, 220px);
    height: 210px;
  }

  .tabletop {
    width: min(46vw, 220px);
  }
}

@media (max-width: 820px) {
  .maze-shell {
    min-height: 480px;
    padding: 10px;
  }

  .maze-grid {
    min-height: 460px;
  }

  .maze-tile {
    border-radius: 10px 10px 14px 14px;
  }

  .maze-tile::before {
    border-radius: 10px 10px 8px 8px;
  }

  .maze-tile__content {
    font-size: 10px;
    padding-bottom: 6px;
  }

  .table-stage {
    width: 180px;
    height: 170px;
  }

  .die-trigger {
    width: 132px;
    height: 132px;
  }

  .die {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    padding: 9px;
  }

  .die::before,
  .die::after {
    display: none;
  }

  .pip {
    width: 10px;
    height: 10px;
  }

  .die-shadow {
    bottom: 38px;
    width: 86px;
    height: 18px;
  }

  .tabletop {
    width: 180px;
    height: 66px;
    bottom: 14px;
  }

  .center-cta p {
    font-size: 14px;
  }

  .dice-hint {
    font-size: 12px;
  }

  .split-fields {
    grid-template-columns: 1fr;
  }
}

.board-inline-stats {
  gap: 12px;
}

.mode-toggle {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(160, 181, 79, 0.18);
}

.mode-btn {
  min-width: 92px;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  color: #60713c;
  font-size: 13px;
  font-weight: 800;
}

.mode-btn.is-active {
  background: linear-gradient(180deg, #d2f45c, #9dde16);
  color: #2d4700;
  box-shadow: inset 0 -4px 0 rgba(75, 125, 12, 0.16);
}

.reset-btn {
  pointer-events: auto;
  padding: 10px 14px;
}

.participant-scroller {
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.participant-scroller::-webkit-scrollbar {
  width: 8px;
}

.participant-scroller::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(133, 166, 47, 0.35);
}

.queue-item {
  transition: background 0.22s ease, box-shadow 0.22s ease;
}

.queue-item__meta {
  min-width: 0;
}

.queue-item__meta strong,
.queue-item__meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-item.is-selected {
  background: linear-gradient(180deg, rgba(234, 245, 198, 0.92), rgba(220, 236, 170, 0.92));
  box-shadow: inset 0 0 0 1px rgba(126, 161, 28, 0.16);
}

#currentPlayerCardBody {
  padding: 8px 10px;
  border-radius: 18px;
  transition: background 0.22s ease;
}

#currentPlayerCardBody.is-selected {
  background: rgba(126, 161, 28, 0.1);
}

.maze-shell {
  min-height: 720px;
  padding: 14px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(186, 211, 101, 0.95), rgba(136, 172, 49, 0.94));
}

.maze-shell::before {
  inset: 10px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(248, 255, 226, 0.36), rgba(197, 219, 120, 0.12));
}

.maze-grid {
  gap: 0;
  min-height: 690px;
  padding: 0;
}

.maze-tile {
  border-radius: 12px;
  border: 0;
  background: #f0ddb0;
  box-shadow:
    inset 0 -5px 0 rgba(134, 103, 37, 0.12),
    0 3px 6px rgba(104, 78, 22, 0.08);
  overflow: hidden;
  transform-origin: center bottom;
  will-change: transform;
}

.maze-tile::before {
  display: none;
}

.maze-tile::after {
  display: none;
}

.maze-tile__content {
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: #6b5720;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pudding-classic {
  background: #f0ddb0;
}

.pudding-caramel {
  background: #e7c18e;
}

.pudding-strawberry {
  background: #efc5cf;
}

.pudding-matcha {
  background: #d8e3b2;
}

.pudding-mango {
  background: #ebcf98;
}

.maze-tile.is-current {
  z-index: 4;
}

.maze-tile.is-current::before {
  inset: 0;
  height: auto;
  border-radius: inherit;
  display: block;
  background: rgba(126, 173, 31, 0.12);
  box-shadow: inset 0 0 0 3px rgba(126, 173, 31, 0.28);
}

.maze-tile.is-current::after {
  display: none;
}

.maze-tile.is-jiggling {
  animation: pudding-jiggle 0.32s ease;
}

@keyframes pudding-jiggle {
  0% {
    transform: scale(1) translateY(0);
  }
  35% {
    transform: scale(1.03, 0.95) translateY(1px);
  }
  70% {
    transform: scale(0.98, 1.02) translateY(-1px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 1180px) {
  .participant-scroller {
    max-height: 280px;
  }
}

@media (max-width: 820px) {
  .mode-toggle {
    width: 100%;
    justify-content: stretch;
  }

  .mode-btn {
    flex: 1;
    min-width: 0;
  }

  .participant-scroller {
    max-height: 240px;
  }

  .maze-shell {
    min-height: 480px;
    padding: 10px;
  }

  .maze-grid {
    min-height: 460px;
  }

  .maze-tile {
    border-radius: 9px;
  }

  .maze-tile__content {
    font-size: 10px;
  }
}

/* Final board, dice and token overrides */
.maze-shell {
  position: relative;
  min-height: auto;
  height: clamp(420px, 62vw, 720px);
  padding: clamp(10px, 1.4vw, 16px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.14), transparent 22%),
    linear-gradient(180deg, #bfdc69 0%, #96bf3d 100%);
  overflow: hidden;
}

.maze-shell::before {
  inset: clamp(8px, 1.1vw, 12px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(247, 255, 226, 0.2), rgba(189, 212, 107, 0.08));
}

.maze-grid {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  gap: 0;
  align-content: stretch;
  justify-content: stretch;
}

.maze-tile {
  position: relative;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, #f6e9c6 0%, #ecd7ac 52%, #d2b37b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -8px 0 rgba(151, 111, 52, 0.16),
    inset -6px 0 10px rgba(255, 255, 255, 0.12),
    inset 6px 0 10px rgba(144, 107, 51, 0.08),
    0 2px 4px rgba(103, 77, 26, 0.08);
  transform-origin: center bottom;
  backface-visibility: hidden;
}

.maze-tile::before {
  display: none;
}

.maze-tile::after {
  display: block;
  content: "";
  position: absolute;
  inset: 8% 10% auto;
  height: 24%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  opacity: 0.75;
  pointer-events: none;
}

.pudding-classic {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, #f6e9c6 0%, #ecd7ac 52%, #d2b37b 100%);
}

.pudding-caramel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, #efd5aa 0%, #e1bb83 52%, #bf8f4f 100%);
}

.pudding-strawberry {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, #f3d4da 0%, #e9bac2 52%, #cb8a97 100%);
}

.pudding-matcha {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, #dbe5be 0%, #c8d39f 52%, #9eaf71 100%);
}

.pudding-mango {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, #f4d7a5 0%, #e9c27d 52%, #cf9447 100%);
}

.maze-tile__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: transparent;
  font-size: 0;
  line-height: 1;
  text-shadow: none;
}

.maze-tile.is-start .maze-tile__content {
  color: #594116;
  font-size: clamp(14px, 1.55vw, 22px);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
}

.maze-tile.is-current::before {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(122, 177, 28, 0.14);
  box-shadow: inset 0 0 0 2px rgba(118, 166, 29, 0.3);
}

.maze-tile.is-current::after {
  display: block;
}

.board-centerpiece {
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  gap: 8px;
}

.table-stage {
  position: relative;
  width: min(34vw, 220px);
  height: min(34vw, 220px);
  min-width: 168px;
  min-height: 168px;
}

.die-trigger {
  width: 100%;
  height: 100%;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
}

.die-trigger,
.die,
.die-shadow {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.die {
  --die-settle-transform: rotateX(57deg) rotateY(-8deg) rotateZ(-30deg);
  width: clamp(58px, 7vw, 84px);
  height: clamp(58px, 7vw, 84px);
  padding: 0;
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff, #ece6dc);
  box-shadow:
    inset 7px 7px 12px rgba(255, 255, 255, 0.92),
    inset -8px -8px 12px rgba(161, 150, 132, 0.22),
    0 10px 18px rgba(63, 52, 37, 0.18);
}

.die::before,
.die::after {
  display: none;
}

.die-image {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

.pip {
  display: none;
}

.die-shadow {
  bottom: 30px;
  width: clamp(86px, 10vw, 118px);
  height: clamp(18px, 2vw, 24px);
  background: radial-gradient(circle at center, rgba(54, 43, 27, 0.32), rgba(54, 43, 27, 0.06) 68%, transparent 76%);
  filter: blur(1px);
}

.tabletop {
  width: min(36vw, 240px);
  height: clamp(54px, 7vw, 82px);
  bottom: 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 246, 228, 0.54), transparent 22%),
    linear-gradient(180deg, #d8a066 0%, #a76634 100%);
  box-shadow:
    inset 0 10px 12px rgba(255, 238, 210, 0.28),
    inset 0 -10px 16px rgba(95, 57, 24, 0.18),
    0 18px 22px rgba(72, 48, 17, 0.16);
}

.tile-detail-card {
  width: min(320px, 46vw);
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 251, 238, 0.9);
  box-shadow: 0 10px 22px rgba(84, 91, 32, 0.12);
  text-align: center;
}

.tile-detail-card strong {
  display: block;
  font-size: clamp(15px, 1.4vw, 20px);
  color: #5e4a17;
}

.tile-detail-card p {
  margin: 8px 0 0;
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.45;
  color: #6d7245;
}

.center-cta {
  gap: 8px;
}

.center-cta p {
  max-width: 380px;
}

.player-token {
  position: absolute;
  z-index: 3;
  width: clamp(72px, 8vw, 94px);
  height: clamp(96px, 10vw, 116px);
  left: 0;
  top: 0;
  transform: translate(-50%, calc(-100% + 6px));
  transition: none;
  pointer-events: none;
}

.player-token::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid rgba(102, 76, 25, 0.9);
}

.player-token__pin {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: clamp(52px, 6vw, 68px);
  height: clamp(52px, 6vw, 68px);
  transform: translateX(-50%);
  border-radius: 18px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, #fffdf3, #efe8d9);
  box-shadow: 0 10px 18px rgba(89, 64, 21, 0.18);
  overflow: hidden;
}

.player-token__pin::before {
  display: none;
}

.player-token__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

.player-token span {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 22px);
  transform: translateX(-50%);
  max-width: 110px;
  padding: 5px 10px;
  background: rgba(52, 62, 19, 0.84);
  color: #fff5d8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-token.is-hopping .player-token__pin {
  animation: token-hop 0.23s ease;
}

@keyframes token-hop {
  0% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  42% {
    transform: translateX(-50%) translateY(-10px) scale(1.05);
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@media (max-width: 1180px) {
  .maze-shell {
    height: clamp(380px, 68vw, 640px);
  }

  .tile-detail-card {
    width: min(300px, 54vw);
  }
}

@media (max-width: 820px) {
  .maze-shell {
    height: clamp(340px, 86vw, 500px);
    padding: 10px;
  }

  .tile-detail-card {
    width: min(250px, 68vw);
    min-width: 0;
    padding: 12px 14px;
  }

  .player-token {
    width: 70px;
    height: 92px;
  }

  .player-token__pin {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .player-token span {
    max-width: 86px;
    font-size: 10px;
  }

  .table-stage {
    width: 170px;
    height: 170px;
    min-width: 170px;
    min-height: 170px;
  }

  .tabletop {
    width: 180px;
    height: 60px;
  }
}

.event-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.event-toggle .mode-btn {
  min-width: 84px;
}

.event-scroller {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

.event-scroller::-webkit-scrollbar {
  width: 8px;
}

.event-scroller::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(133, 166, 47, 0.35);
}

.board-centerpiece {
  gap: 12px;
}

.table-stage {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
}

.die-trigger {
  width: auto;
  height: auto;
  display: inline-flex;
  padding: 0;
  background: transparent;
}

.die-trigger.is-rolling .die,
.die-trigger.is-rolling .die-shadow {
  animation: none;
}

.die {
  width: clamp(72px, 8vw, 96px);
  height: clamp(72px, 8vw, 96px);
  border-radius: 18px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: none;
}

.die::before {
  display: none;
}

.die::after {
  content: attr(data-face);
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(58, 66, 22, 0.9);
  color: #fff7de;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(43, 49, 17, 0.22);
}

.die-image {
  border-radius: inherit;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(77, 86, 29, 0.18));
}

.die-shadow,
.tabletop,
.dice-hint {
  display: none !important;
}

.center-cta p {
  margin: 0;
}

@media (max-width: 820px) {
  .event-toolbar {
    justify-content: flex-start;
  }

  .event-scroller {
    max-height: 240px;
  }

  .die {
    width: 74px;
    height: 74px;
  }

  .die::after {
    right: -6px;
    bottom: -6px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}

.panel-card__title--logs {
  align-items: center;
}

.log-title {
  white-space: nowrap;
  margin-right: 12px;
}

.event-toolbar,
.event-toggle {
  display: none;
}

.simulator-toggle-row {
  margin-top: -6px;
}

.simulator-toggle-btn {
  width: 100%;
}

.simulator-card.is-collapsed {
  display: none;
}

.die {
  position: relative;
  overflow: visible;
}

.die-trigger:hover .die,
.die-trigger:focus-visible .die {
  transform: none;
}

.die::after {
  display: none;
}

.die-video {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.die-image--fallback {
  display: none;
}

.die.is-fallback .die-video {
  display: none;
}

.die.is-fallback .die-image--fallback {
  display: block;
}

.event-scroller {
  max-height: 280px;
}

@media (max-width: 820px) {
  .log-title {
    font-size: 18px;
  }

  .event-scroller {
    max-height: 220px;
  }
}
