/* DayZ Hub, the Discord Activity page (activityServer.py). Dark only: it runs inside
   Discord's own dark call view. */
:root {
  --bg: #0e110d;
  --bg-2: #141912;
  --panel: #191e16;
  --panel-2: #20261d;
  --panel-3: #283023;
  --line: #2c3327;
  --line-2: #3a4334;
  --text: #ece9db;
  --muted: #a2a590;
  --faint: #6f7462;
  --accent: #d8ad4f;
  --accent-2: #f0c96b;
  --accent-ink: #1b1505;
  --good: #8fca6c;
  --good-ink: #0f1d07;
  --bad: #e8573f;
  --blue: #6fb0e0;
  --radius: 10px;
  --radius-sm: 7px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Bahnschrift, "DIN Alternate", "Roboto Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --sait: var(--discord-safe-area-inset-top, env(safe-area-inset-top, 0px));
  --saib: var(--discord-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --sail: var(--discord-safe-area-inset-left, env(safe-area-inset-left, 0px));
  --sair: var(--discord-safe-area-inset-right, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body {
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(216, 173, 79, .07), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(111, 176, 224, .05), transparent 60%),
    var(--bg);
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hidden { display: none !important; }

/* ── Shell ───────────────────────────────────────────────────────────────── */

#app {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
  padding: var(--sait) var(--sair) 0 var(--sail);
}

.top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent);
  min-width: 0;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-icon {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--panel-3) center/cover no-repeat;
  display: grid; place-items: center;
  font: 700 14px var(--font-head); color: var(--accent);
  border: 1px solid var(--line-2);
}
.brand-text { min-width: 0; }
.brand-title {
  font: 700 15px/1.1 var(--font-head);
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.brand-guild {
  color: var(--muted); font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw;
}

.top-spacer { flex: 1; }

.ticker {
  flex: 1 1 auto; min-width: 0; max-width: 520px;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--muted); font-size: 12.5px;
  white-space: nowrap; overflow: hidden;
}
.ticker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); flex: none; box-shadow: 0 0 0 0 rgba(232, 87, 63, .6); animation: pulse 2s infinite; }
.ticker-text { overflow: hidden; text-overflow: ellipsis; }
.ticker b { color: var(--text); font-weight: 600; }

.wallet {
  display: flex; align-items: center; gap: 8px; flex: none;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(216, 173, 79, .1); border: 1px solid rgba(216, 173, 79, .35);
  font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent-2);
}
.wallet small { color: var(--muted); font-weight: 500; }

.people { display: flex; flex: none; }
.people .avatar { margin-left: -8px; border: 2px solid var(--bg); }
.people .avatar:first-child { margin-left: 0; }
.people-more {
  margin-left: -8px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--panel-3); border: 2px solid var(--bg); color: var(--muted);
}

.avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--panel-3) center/cover no-repeat;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: var(--accent);
  overflow: hidden;
}
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }

.tabs {
  display: flex; gap: 2px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 12px 9px;
  background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); font: 600 13px var(--font-head); letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.tab svg { width: 17px; height: 17px; flex: none; }
.tab-short { display: none; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }

main {
  min-height: 0;
  overflow: auto;
  padding: 16px;
  padding-bottom: calc(16px + var(--saib));
}

.view { max-width: 1280px; margin: 0 auto; }
.view-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.view-title {
  margin: 0; font: 700 18px var(--font-head); letter-spacing: .06em; text-transform: uppercase;
}
.view-sub { color: var(--muted); font-size: 12.5px; }
.view-head .grow { flex: 1; }

/* ── Controls ───────────────────────────────────────────────────────────── */

.select, .input {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 8px 10px; min-width: 0;
}
.select { padding-right: 28px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.input:focus, .select:focus { border-color: var(--accent); outline: none; }
.input::placeholder { color: var(--faint); }

.btn {
  border: 1px solid var(--line-2); background: var(--panel-2);
  padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 600;
}
.btn:hover:not(:disabled) { background: var(--panel-3); }
.btn-sm { padding: 5px 9px; font-size: 12.5px; }

.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.chip {
  flex: none; padding: 6px 11px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line-2);
  color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: rgba(216, 173, 79, .14); border-color: rgba(216, 173, 79, .55); color: var(--accent-2); }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}

.empty {
  padding: 28px 16px; text-align: center; color: var(--muted);
}
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

.note { color: var(--faint); font-size: 12px; }

/* ── Screens (loading / errors) ─────────────────────────────────────────── */

.screen { height: 100%; display: grid; place-items: center; padding: 24px; grid-row: 1 / -1; }
.screen-card { max-width: 420px; text-align: center; }
.screen-card h1 { font: 700 20px var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 14px 0 6px; }
.screen-text { color: var(--muted); margin: 10px 0 0; }
.screen-card .btn { margin-top: 16px; }
.screen-icon { width: 54px; height: 54px; color: var(--accent); }

.spinner {
  width: 38px; height: 38px; margin: 0 auto; border-radius: 50%;
  border: 3px solid var(--line-2); border-top-color: var(--accent);
  animation: spin .9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 87, 63, .55); }
  70% { box-shadow: 0 0 0 7px rgba(232, 87, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 87, 63, 0); }
}
@keyframes slideIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(143, 202, 108, .5); } 50% { box-shadow: 0 0 0 6px rgba(143, 202, 108, 0); } }

/* ── Heli Crash ─────────────────────────────────────────────────────────── */

.crash {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  height: 100%;
  min-height: 420px;
}
.view.crash-view { height: 100%; max-width: 1400px; }

.crash-stage { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.crash-canvas-wrap {
  position: relative; flex: 1; min-height: 240px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: #0b1013;
}
.crash-canvas-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.history { display: flex; gap: 6px; overflow: hidden; align-items: center; min-height: 28px; }
.history-label { color: var(--faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; flex: none; margin-right: 2px; }
.hist {
  flex: none; padding: 3px 9px; border-radius: 999px; font: 600 12px var(--mono);
  background: var(--panel); border: 1px solid var(--line);
  animation: slideIn .3s ease;
}
.hist.low { color: var(--bad); }
.hist.mid { color: var(--text); }
.hist.high { color: var(--good); border-color: rgba(143, 202, 108, .35); }
.hist.top { color: var(--accent-2); border-color: rgba(216, 173, 79, .5); }

.crash-side { display: flex; flex-direction: column; gap: 12px; min-height: 0; }

.bet-box { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.field-label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; display: block; }
.amount-row { display: flex; gap: 6px; }
.amount-row .input { flex: 1; font-variant-numeric: tabular-nums; }
.amount-row .btn { flex: none; min-width: 42px; }
.input.wide { width: 100%; }

.bet-btn {
  width: 100%; padding: 14px 12px; border-radius: var(--radius);
  border: 0; font: 700 16px var(--font-head); letter-spacing: .06em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink);
  transition: transform .05s, filter .15s;
}
.bet-btn:hover:not(:disabled) { filter: brightness(1.08); }
.bet-btn:active:not(:disabled) { transform: translateY(1px); }
.bet-btn small { display: block; font: 600 12px var(--font); letter-spacing: 0; text-transform: none; opacity: .8; margin-top: 2px; }
.bet-btn.cashout { background: var(--good); color: var(--good-ink); animation: glow 1.2s infinite; }
.bet-btn:disabled { background: var(--panel-3); color: var(--muted); animation: none; }

.bet-msg { font-size: 12.5px; min-height: 18px; color: var(--muted); }
.bet-msg.error { color: var(--bad); }
.bet-msg.ok { color: var(--good); }
.quota { font-size: 12px; color: var(--faint); }

.players { flex: 1; min-height: 140px; display: flex; flex-direction: column; overflow: hidden; }
.players-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  font: 600 12px var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.players-list { overflow: auto; flex: 1; }
.player {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 8px 14px; border-bottom: 1px solid rgba(255, 255, 255, .03);
}
.player-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.player-bet { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.player-state { text-align: right; font: 600 12.5px var(--mono); white-space: nowrap; }
.player-state.won { color: var(--good); }
.player-state.lost { color: var(--bad); }
.player-state.aboard { color: var(--accent-2); }
.player-state.pending { color: var(--faint); }
.player.me { background: rgba(216, 173, 79, .06); }

.fair { font-size: 11.5px; color: var(--faint); padding: 0 2px; }
.fair summary { cursor: pointer; color: var(--muted); }
.fair code { font: 11px var(--mono); word-break: break-all; color: var(--muted); }
.fair p { margin: 6px 0; }

/* ── Servers ────────────────────────────────────────────────────────────── */

.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.server {
  overflow: hidden; display: flex; flex-direction: column;
}
.server-map {
  height: 110px; position: relative;
  background: #111 center 40%/cover no-repeat;
}
.server-map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 17, 13, .1), var(--panel) 98%); }
.server-map-tag {
  position: absolute; left: 12px; top: 10px; z-index: 1;
  font: 700 11px var(--font-head); letter-spacing: .1em; text-transform: uppercase;
  background: rgba(14, 17, 13, .75); color: var(--accent-2);
  padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(216, 173, 79, .35);
}
.server-body { padding: 0 14px 14px; margin-top: -26px; position: relative; z-index: 1; }
.server-name { font: 700 17px var(--font-head); letter-spacing: .03em; margin: 0 0 10px; overflow-wrap: anywhere; }
.server-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 10px; min-width: 0;
}
.stat-value { font: 700 18px var(--font-head); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-value .live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-right: 6px; vertical-align: middle; }
.server-top { margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.server-top b { color: var(--text); }
.server-players { margin-top: 10px; }
.server-players summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.name-cloud { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.name-cloud span { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; font-size: 12px; }

/* ── Kill feed ──────────────────────────────────────────────────────────── */

.feed { overflow: hidden; }
.kill {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
}
.kill:last-child { border-bottom: 0; }
.kill.new { animation: slideIn .4s ease; background: rgba(232, 87, 63, .06); }
.kill.mine { box-shadow: inset 3px 0 0 var(--accent); }
.kill-line { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.kill-killer { color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.kill-victim { color: var(--bad); font-weight: 700; overflow-wrap: anywhere; }
.kill-icon { width: 15px; height: 15px; color: var(--faint); flex: none; }
.kill-meta { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.kill-time { color: var(--faint); font-size: 12px; white-space: nowrap; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--panel-3); color: var(--muted); white-space: nowrap;
}
.badge.hs { background: rgba(232, 87, 63, .15); color: #ff8a74; }
.badge.kill { background: rgba(143, 202, 108, .15); color: var(--good); }
.badge.death { background: rgba(232, 87, 63, .15); color: #ff8a74; }
.badge.server { background: rgba(111, 176, 224, .12); color: var(--blue); }

/* ── Map ────────────────────────────────────────────────────────────────── */

.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; }
.mapview {
  position: relative; overflow: hidden; height: min(72vh, 760px); min-height: 300px;
  border-radius: var(--radius); border: 1px solid var(--line); background: #0a0c0a;
  touch-action: none; cursor: grab; user-select: none;
}
.mapview.dragging { cursor: grabbing; }
.mapstage { position: absolute; left: 0; top: 0; width: 1000px; height: 1000px; transform-origin: 0 0; }
.mapstage img { width: 1000px; height: 1000px; display: block; pointer-events: none; filter: saturate(.75) brightness(.85); }
.mapstage svg { position: absolute; inset: 0; width: 1000px; height: 1000px; overflow: visible; }
.mapstage .pt { cursor: pointer; }
.map-zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.map-zoom .btn { width: 34px; height: 34px; padding: 0; font-size: 18px; line-height: 1; background: rgba(25, 30, 22, .9); }
.map-legend {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: rgba(14, 17, 13, .82); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; font-size: 12px; color: var(--muted);
}
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.map-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.map-detail { padding: 14px; }
.map-detail h3 { margin: 0 0 8px; font: 700 14px var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.map-list { max-height: 50vh; overflow: auto; }
.map-item { padding: 9px 14px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.map-item:hover, .map-item.on { background: var(--panel-2); }
.map-item .kill-meta { margin-top: 2px; }

/* ── Leaderboard ────────────────────────────────────────────────────────── */

.board { overflow: hidden; }
.board-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.board-row:last-child { border-bottom: 0; }
.board-row.me { background: rgba(216, 173, 79, .08); box-shadow: inset 3px 0 0 var(--accent); }
.rank { font: 700 15px var(--font-head); color: var(--faint); text-align: center; font-variant-numeric: tabular-nums; }
.rank.r1 { color: #f2c94c; }
.rank.r2 { color: #c9d1d9; }
.rank.r3 { color: #d39a62; }
.board-name { display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 600; }
.board-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-value { font: 700 15px var(--font-head); font-variant-numeric: tabular-nums; color: var(--accent-2); white-space: nowrap; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.podium .card { padding: 14px; text-align: center; min-width: 0; }
.podium-rank { font: 700 26px var(--font-head); }
.podium-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.podium-value { color: var(--accent-2); font: 700 15px var(--font-head); margin-top: 2px; }

/* ── Me ─────────────────────────────────────────────────────────────────── */

.me-head { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.me-name { font: 700 20px var(--font-head); letter-spacing: .03em; }
.me-tags { color: var(--muted); font-size: 12.5px; }
.me-wallet { margin-left: auto; display: flex; gap: 10px; }
.me-wallet .stat { min-width: 120px; }
.profile { padding: 14px; margin-bottom: 14px; }
.profile h3 { margin: 0 0 10px; font: 700 15px var(--font-head); letter-spacing: .04em; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.link-help { padding: 18px; text-align: center; color: var(--muted); margin-bottom: 14px; }
.link-help code { font: 600 13px var(--mono); color: var(--accent-2); background: var(--panel-2); padding: 2px 6px; border-radius: 5px; }

/* ── Small screens / mobile ─────────────────────────────────────────────── */

@media (max-width: 900px) {
  .crash { grid-template-columns: minmax(0, 1fr); height: auto; }
  .crash-canvas-wrap { flex: none; height: 46vh; min-height: 220px; }
  .players { max-height: 320px; }
  .map-layout { grid-template-columns: minmax(0, 1fr); }
  .mapview { height: 60vh; }
  .ticker { display: none; }
}

@media (max-width: 640px) {
  #app { grid-template-rows: auto 1fr auto; }
  .tabs {
    order: 3; grid-row: 3;
    justify-content: space-around; padding: 0 4px calc(4px + var(--saib));
    border-bottom: 0; border-top: 1px solid var(--line); background: var(--bg-2);
  }
  .tab { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 3px; padding: 8px 2px 6px; font-size: 10px; border-bottom: 0; border-top: 2px solid transparent; }
  .tab-long { display: none; }
  .tab-short { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .tab[aria-selected="true"] { border-top-color: var(--accent); }
  .tab svg { width: 20px; height: 20px; }
  main { grid-row: 2; padding: 12px; }
  .top { padding: 8px 12px; gap: 8px; }
  .brand-guild { max-width: 36vw; }
  .people { display: none; }
  .server-grid { grid-template-columns: minmax(0, 1fr); }
  .podium { gap: 8px; }
  .podium .card { padding: 10px 6px; }
  .me-wallet { margin-left: 0; width: 100%; }
  .me-wallet .stat { flex: 1; min-width: 0; }
}

/* Picture in picture / the small call tile: only the game */
@media (max-height: 340px) {
  #app { grid-template-rows: 1fr; }
  .top, .tabs, .crash-side, .history, .fair { display: none !important; }
  main { padding: 0; grid-row: 1 / -1; }
  .view:not(.crash-view) { display: none !important; }
  .view.crash-view { display: block !important; }
  .view.crash-view, .crash, .crash-stage { height: 100%; min-height: 0; }
  .crash-canvas-wrap { border: 0; border-radius: 0; height: 100%; flex: 1; }
}
