:root {
  --border: rgba(245, 214, 92, 0.2);
  --text: #f7f1da;
  --muted: #b5b8a4;
  --accent: #f3d24f;
  --accent-strong: #ffcb21;
  --green: #62db8a;
  --green-strong: #1ca35d;
  --red: #ff7f7f;
  --yellow: #ffcb57;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(243, 210, 79, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(59, 102, 61, 0.16), transparent 26%),
    linear-gradient(180deg, #061018 0%, #0c1a23 48%, #09141c 100%);
}

body.is-locked {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000;
}

.login-screen.is-hidden {
  display: none;
}

.login-card {
  width: min(430px, 100%);
  padding: 18px;
  border: 1px solid rgba(245, 214, 92, 0.28);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 15, 21, 0.98), rgba(4, 8, 12, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
}

.login-cat {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-copy h1 {
  margin: 0 0 16px;
  font-family: "Arial Black", "Trebuchet MS", sans-serif;
  font-size: 34px;
  line-height: 1;
}

.login-field {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: var(--text);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.login-field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 13px 14px;
  font-size: 18px;
  font-weight: 800;
}

.login-field input:focus {
  border-color: rgba(98, 219, 138, 0.6);
  box-shadow: 0 0 0 3px rgba(98, 219, 138, 0.12);
}

.login-error {
  min-height: 22px;
  margin: 12px 0 0;
  color: #ff9b9b;
  font-weight: 800;
}

.login-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  margin-top: 8px;
  padding: 13px 16px;
  background: linear-gradient(180deg, var(--green), var(--green-strong));
  color: #04120c;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.app-shell {
  width: min(1500px, calc(100% - 32px));
  margin: 20px auto;
}

.app-shell.is-hidden {
  display: none;
}

.online-box {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 220px;
  padding: 12px;
  border: 1px solid rgba(98, 219, 138, 0.28);
  border-radius: 12px;
  background: rgba(5, 11, 17, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
}

.online-box p {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.online-list {
  display: grid;
  gap: 6px;
}

.online-person {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-weight: 800;
}

.online-person::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(98, 219, 138, 0.55);
}

.online-person span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 260px 18px 24px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(8, 18, 28, 0.95), rgba(7, 14, 22, 0.88));
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.eyebrow,
.card-kicker,
.resp-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.topbar-copy h1,
.sidebar-card h2,
.resp-head h2 {
  margin: 0;
  font-family: "Arial Black", "Trebuchet MS", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topbar-copy h1 {
  font-size: clamp(32px, 5vw, 44px);
}

.map-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.map-tab {
  border: 1px solid rgba(243, 210, 79, 0.26);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.map-tab.is-active {
  background: linear-gradient(180deg, rgba(243, 210, 79, 0.26), rgba(179, 133, 5, 0.2));
  color: #fff4b6;
  box-shadow: inset 0 0 0 1px rgba(255, 236, 168, 0.14);
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.map-stage,
.sidebar-card {
  background: linear-gradient(180deg, rgba(8, 16, 24, 0.92), rgba(8, 15, 23, 0.82));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-stage {
  padding: 18px;
  border-radius: 28px;
}

.map-frame {
  position: relative;
  overflow: visible;
  border-radius: 24px;
  aspect-ratio: 1 / 1;
  background: #111910;
}

.map-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 214, 92, 0.14);
  border-radius: 24px;
  background: #111910;
}

.map-image,
.map-overlay,
.panel-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-image {
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02) brightness(0.84);
}

.map-overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(5, 10, 15, 0.18)),
    radial-gradient(circle at top, rgba(255, 213, 79, 0.1), transparent 32%);
  pointer-events: none;
}

.panel-layer {
  z-index: 2;
}

.resp-panel {
  position: absolute;
  z-index: 2;
  width: 220px;
  min-width: 170px;
  max-width: 340px;
  min-height: 230px;
  max-height: 660px;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(245, 214, 92, 0.26);
  background: linear-gradient(180deg, rgba(8, 15, 21, 0.92), rgba(8, 13, 19, 0.86));
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  user-select: none;
  touch-action: none;
  overflow: hidden;
}

.resp-panel.has-duplicate {
  overflow: visible;
}

.resp-panel.is-duplicate {
  width: 220px;
  min-width: 170px;
  max-width: 340px;
  min-height: 230px;
  max-height: 660px;
  padding: 14px;
  border-color: rgba(98, 219, 138, 0.45);
  background: linear-gradient(180deg, rgba(5, 13, 18, 0.95), rgba(4, 10, 15, 0.9));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(98, 219, 138, 0.08);
}

.resp-panel.attached-duplicate {
  top: 0 !important;
  left: calc(100% + 8px) !important;
  z-index: 4;
}

.resp-panel.attach-left > .attached-duplicate {
  left: auto !important;
  right: calc(100% + 8px) !important;
}

.duplicate-toggle {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(98, 219, 138, 0.38);
  border-radius: 999px;
  background: rgba(98, 219, 138, 0.18);
  color: #dfffe9;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.duplicate-toggle.is-active {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
  font-size: 14px;
}

.resp-panel.is-duplicate .duplicate-toggle {
  display: none;
}

.resp-panel.is-dragging,
.resp-panel.is-resizing {
  box-shadow: 0 20px 62px rgba(0, 0, 0, 0.5);
}

.resp-toolbar {
  flex: 0 0 auto;
  margin-bottom: 14px;
}

.resp-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  cursor: grab;
}

.resp-title-block {
  min-width: 0;
}

.resp-grip {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 8px;
}

.resp-grip span {
  width: 12px;
  height: 3px;
  border-radius: 999px;
  background: rgba(243, 210, 79, 0.55);
}

.resp-number {
  font-size: 42px;
  line-height: 0.9;
}

.resp-subtitle {
  display: none;
  margin: 4px 0 0;
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-transform: uppercase;
}

.resp-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  flex: 0 0 auto;
}

.minutes-box {
  display: grid;
  grid-template-columns: auto 52px;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.minutes-box span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.minutes-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  text-align: right;
  font-family: "Arial Black", "Trebuchet MS", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.minutes-input::-webkit-outer-spin-button,
.minutes-input::-webkit-inner-spin-button {
  margin: 0;
}

.resp-reset-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.channel-list {
  display: grid;
  gap: 10px;
  align-content: start;
  grid-auto-rows: max-content;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(243, 210, 79, 0.35) transparent;
}

.channel-list::-webkit-scrollbar {
  width: 8px;
}

.channel-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(243, 210, 79, 0.28);
}

.channel-card {
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  min-height: 0;
}

.channel-card.is-ready {
  background: rgba(255, 255, 255, 0.03);
}

.channel-card.is-running {
  background: linear-gradient(180deg, rgba(27, 108, 61, 0.72), rgba(18, 77, 45, 0.8));
  border-color: rgba(95, 231, 149, 0.45);
}

.channel-card.is-alert {
  background:
    linear-gradient(180deg, rgba(107, 22, 22, 0.92), rgba(52, 11, 13, 0.92)),
    radial-gradient(circle at top left, rgba(255, 90, 90, 0.28), transparent 58%);
  border-color: rgba(255, 70, 70, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(255, 202, 202, 0.14),
    0 0 0 1px rgba(255, 55, 55, 0.42),
    0 0 24px rgba(255, 47, 47, 0.38);
  animation: alertPulse 1.05s ease-in-out infinite;
}

.channel-card.is-overtime {
  background: linear-gradient(180deg, rgba(140, 100, 17, 0.72), rgba(103, 72, 13, 0.84));
  border-color: rgba(255, 208, 97, 0.55);
}

.channel-topline,
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.channel-topline {
  align-items: flex-start;
  flex-wrap: wrap;
}

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

.channel-name,
.channel-state {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.channel-state {
  color: var(--muted);
}

.channel-time {
  margin: 8px 0 4px;
  font-family: "Arial Black", "Trebuchet MS", sans-serif;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.channel-meta {
  margin: 0 0 10px;
  color: rgba(247, 241, 218, 0.7);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.channel-card.is-running .channel-meta,
.channel-card.is-alert .channel-meta,
.channel-card.is-overtime .channel-meta {
  color: rgba(255, 255, 255, 0.78);
}

.channel-card.is-overtime .channel-time {
  color: #ffe39b;
}

.channel-card.is-alert .channel-time {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 64, 64, 0.55);
}

.channel-card.is-alert .channel-state {
  color: #ffd1d1;
}

.action-btn {
  border: none;
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  min-width: 0;
}

.action-start {
  background: linear-gradient(180deg, var(--green), var(--green-strong));
  color: #04120c;
}

.action-reset {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.resize-handle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: nwse-resize;
  padding: 0;
  z-index: 3;
}

.resp-panel.is-duplicate .resp-head {
  gap: 12px;
}

.resp-panel.is-duplicate .resp-toolbar {
  margin-bottom: 14px;
}

.resp-panel.is-duplicate .resp-number {
  font-size: 42px;
}

.resp-panel.is-duplicate .resp-subtitle {
  display: block;
}

.resp-panel.is-duplicate .resp-grip {
  margin-bottom: 4px;
}

.resp-panel.is-duplicate .minutes-box {
  grid-template-columns: auto 52px;
  min-height: 40px;
  padding: 0 10px;
}

.resp-panel.is-duplicate .minutes-input {
  font-size: 22px;
}

.resp-panel.is-duplicate .resp-reset-btn {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.resp-panel.is-duplicate .channel-list {
  gap: 10px;
  padding-right: 4px;
}

.resp-panel.is-duplicate .channel-card {
  padding: 10px;
  border-radius: 16px;
}

.resp-panel.is-duplicate .channel-name,
.resp-panel.is-duplicate .channel-state {
  font-size: 13px;
}

.resp-panel.is-duplicate .channel-time {
  margin: 8px 0 4px;
  font-size: 30px;
}

.resp-panel.is-duplicate .channel-actions {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.resp-panel.is-duplicate .action-btn {
  padding: 8px 12px;
  font-size: inherit;
}

.resize-handle::before,
.resize-handle::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  height: 2px;
  border-radius: 99px;
  background: rgba(243, 210, 79, 0.55);
  transform: rotate(-45deg);
  transform-origin: right center;
}

.resize-handle::before {
  width: 14px;
}

.resize-handle::after {
  width: 8px;
  right: 7px;
  bottom: 8px;
}

.resp-panel.is-compact {
  padding: 11px;
  border-radius: 18px;
}

.resp-panel.is-compact .resp-toolbar {
  margin-bottom: 10px;
}

.resp-panel.is-compact .resp-number {
  font-size: 34px;
}

.resp-panel.is-compact .minutes-box {
  min-height: 34px;
  padding: 0 8px;
}

.resp-panel.is-compact .minutes-input {
  font-size: 18px;
}

.resp-panel.is-compact .resp-reset-btn {
  padding: 6px 10px;
  font-size: 12px;
}

.resp-panel.is-compact .channel-list {
  gap: 7px;
}

.resp-panel.is-compact .channel-card {
  padding: 8px;
  border-radius: 12px;
}

.resp-panel.is-compact .channel-name,
.resp-panel.is-compact .channel-state {
  font-size: 11px;
}

.resp-panel.is-compact .channel-time {
  margin: 6px 0 3px;
  font-size: 24px;
}

.resp-panel.is-compact .channel-meta {
  margin-bottom: 8px;
  font-size: 10px;
}

.resp-panel.is-compact .action-btn {
  padding: 7px 10px;
  font-size: 12px;
}

.resp-panel.is-tight .resp-head {
  gap: 8px;
  align-items: center;
}

.resp-panel.is-tight {
  padding: 8px;
}

.resp-panel.is-tight .resp-toolbar {
  margin-bottom: 5px;
}

.resp-panel.is-tight .resp-grip {
  gap: 3px;
  margin-bottom: 3px;
}

.resp-panel.is-tight .resp-grip span {
  width: 10px;
  height: 2px;
}

.resp-panel.is-tight .resp-kicker {
  margin-bottom: 2px;
  font-size: 10px;
}

.resp-panel.is-tight .resp-number {
  font-size: 28px;
  line-height: 0.9;
}

.resp-panel.is-tight .resp-meta {
  gap: 5px;
}

.resp-panel.is-tight .minutes-box {
  grid-template-columns: auto 38px;
  min-height: 28px;
  padding: 0 8px;
}

.resp-panel.is-tight .minutes-box span {
  font-size: 9px;
}

.resp-panel.is-tight .minutes-input {
  font-size: 17px;
}

.resp-panel.is-tight .resp-reset-btn {
  padding: 5px 8px;
  border-radius: 9px;
  font-size: 10px;
}

.resp-panel.is-tight .channel-list {
  gap: 2px;
  overflow: hidden;
  padding-right: 0;
}

.resp-panel.is-tight .channel-card {
  display: grid;
  grid-template-columns: 30px minmax(58px, 1fr) 54px;
  gap: 6px;
  align-items: center;
  min-height: 21px;
  padding: 2px 7px;
  border-radius: 10px;
  cursor: pointer;
}

.resp-panel.is-tight .channel-topline {
  display: contents;
}

.resp-panel.is-tight .channel-name {
  grid-column: 1;
  font-size: 10px;
}

.resp-panel.is-tight .channel-state {
  grid-column: 3;
  justify-self: end;
  max-width: 54px;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resp-panel.is-tight .channel-time {
  grid-column: 2;
  margin: 0;
  font-size: 16px;
  line-height: 1;
}

.resp-panel.is-tight .channel-meta {
  display: none;
}

.resp-panel.is-tight .channel-actions {
  display: none;
}

.resp-panel.is-duplicate.is-tight .channel-card {
  grid-template-columns: 30px minmax(58px, 1fr) 54px;
}

.resp-panel.is-duplicate.is-tight .channel-state {
  display: block;
}

.resp-panel.is-tight .resp-subtitle {
  display: none;
}

.map-footer {
  display: none;
}

.sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.sidebar-card {
  padding: 20px;
  border-radius: 24px;
}

.fastest-card h2 {
  font-size: 26px;
}

.fastest-meta,
.legend-card li {
  color: var(--muted);
  line-height: 1.55;
}

.fastest-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.fastest-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fastest-item.is-running {
  border-color: rgba(95, 231, 149, 0.28);
}

.fastest-item.is-alert {
  background: rgba(92, 18, 20, 0.52);
  border-color: rgba(255, 70, 70, 0.82);
  box-shadow: 0 0 20px rgba(255, 47, 47, 0.18);
}

.fastest-item.is-overtime {
  border-color: rgba(255, 208, 97, 0.45);
}

.fastest-item.is-duplicate {
  background:
    linear-gradient(180deg, rgba(11, 43, 50, 0.62), rgba(6, 24, 31, 0.72)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(62, 213, 236, 0.6);
  box-shadow: inset 0 0 0 1px rgba(140, 240, 255, 0.08);
}

.fastest-item.is-duplicate.is-alert {
  border-color: rgba(255, 87, 87, 0.95);
  box-shadow: inset 0 0 0 1px rgba(140, 240, 255, 0.08), 0 0 20px rgba(255, 47, 47, 0.2);
}

.fastest-rank {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fastest-name strong {
  display: block;
  font-family: "Arial Black", "Trebuchet MS", sans-serif;
  font-size: 20px;
  line-height: 1;
  color: #fff5a7;
}

.fastest-name span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fastest-value {
  font-family: "Arial Black", "Trebuchet MS", sans-serif;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  color: #fff0ab;
}

.fastest-item.is-duplicate .fastest-name strong {
  color: #63efff;
  text-shadow: 0 0 12px rgba(99, 239, 255, 0.28);
}

.fastest-item.is-duplicate .fastest-name span {
  color: #a8f6ff;
}

.fastest-item.is-duplicate .fastest-value {
  color: #72ffcf;
  text-shadow: 0 0 12px rgba(114, 255, 207, 0.24);
}

.pulse-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(98, 219, 138, 0.6);
  animation: pulse 1.9s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(98, 219, 138, 0.55);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(98, 219, 138, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(98, 219, 138, 0);
  }
}

@keyframes alertPulse {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 202, 202, 0.12),
      0 0 0 1px rgba(255, 55, 55, 0.38),
      0 0 16px rgba(255, 47, 47, 0.28);
  }

  50% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 230, 230, 0.22),
      0 0 0 2px rgba(255, 55, 55, 0.72),
      0 0 32px rgba(255, 47, 47, 0.55);
  }
}

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

  .sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .app-shell {
    width: min(100% - 20px, 1000px);
    margin: 10px auto 18px;
  }

  .online-box {
    position: static;
    width: auto;
    margin: 10px auto 12px;
  }

  .topbar,
  .map-stage,
  .sidebar-card {
    border-radius: 22px;
  }

  .topbar {
    padding: 18px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .resp-panel {
    width: 210px;
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 18px;
  }

  .map-stage {
    padding: 12px;
  }

  .map-frame {
    aspect-ratio: auto;
    min-height: 88vh;
  }

  .resp-panel {
    width: min(210px, 70vw);
    padding: 12px;
  }

  .resp-head {
    flex-direction: column;
  }

  .resp-meta {
    width: 100%;
    justify-items: stretch;
  }

  .resp-reset-btn,
  .minutes-box {
    width: 100%;
  }
}
