:root { color-scheme: light; font-family: "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif; color: #061a35; background: #050909; }
* { box-sizing: border-box; }
body { margin: 0; overflow: hidden; }
[hidden] { display: none !important; }
#combridge-stage { position: fixed; inset: 0; }
#combridge-canvas { position: absolute; width: 1920px; height: 1080px; padding: 80px 42px 38px; transform-origin: top left; }
.combridge-sync { position: absolute; right: 48px; top: 31px; display: flex; gap: 10px; align-items: center; color: #fff; font-size: 22px; font-weight: 500; line-height: 30px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.live-dot { display: inline-block; width: 15px; height: 15px; border-radius: 50%; flex: 0 0 auto; background: #738390; }
[data-connection="online"] .live-dot { background: #13df35; }
[data-connection="offline"] .live-dot { background: #e4b33c; }
.combridge-panels { height: 100%; display: grid; grid-template-columns: 944px minmax(0, 1fr); gap: 22px; }
.map-panel, .congestion-panel { background: #fff; border-radius: 12px; overflow: hidden; min-width: 0; min-height: 0; }
.map-panel { position: relative; display: flex; align-items: center; justify-content: center; }
#venue-map { display: block; width: 100%; height: 100%; object-fit: contain; }
#map-error { position: absolute; margin: 20px; font-size: 30px; }
.congestion-panel { display: flex; flex-direction: column; padding: 18px 26px 24px; }
.congestion-heading { flex: 0 0 102px; }
.congestion-heading h1 { margin: 0 0 3px; font-size: 48px; line-height: 1.35; font-weight: 800; letter-spacing: .01em; }
.congestion-heading p { margin: 0; color: #48617f; font-size: 25px; line-height: 1.4; }
.combridge-grid { display: grid; flex: 1; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 12px 14px; }
.combridge-card { border: 1.5px solid #dfebf3; border-radius: 11px; padding: 14px 20px 10px; min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.combridge-card-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.combridge-card h2 { flex: 1; min-width: 0; margin: 0; font-size: 32px; font-weight: 800; line-height: 1.22; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combridge-number { color: #829ab6; font-size: 23px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.combridge-status { display: flex; gap: 22px; align-items: center; padding: 7px 18px; min-height: 53px; border-radius: 7px; font-size: 31px; font-weight: 800; line-height: 1.25; }
.combridge-status-dot { width: 21px; height: 21px; border-radius: 50%; flex: 0 0 auto; background: currentColor; }
.combridge-status-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.combridge-stamp { margin: 0; padding-left: 4px; color: #587393; font-size: 22px; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; }
#notice { margin: 8px 0 0; font-size: 20px; color: #815918; }
@media (max-width: 700px) {
  body { overflow: auto; }
  #combridge-stage { position: static; }
  #combridge-canvas { position: relative; width: 100%; height: auto; padding: 48px 12px 18px; transform: none !important; left: auto !important; top: auto !important; }
  .combridge-sync { top: 14px; right: 14px; left: 14px; justify-content: flex-end; gap: 7px; font-size: 12px; line-height: 20px; white-space: normal; }
  .live-dot { width: 10px; height: 10px; }
  .combridge-panels { display: flex; flex-direction: column; gap: 14px; }
  .map-panel { aspect-ratio: 824 / 841; }
  .map-panel, .congestion-panel { border-radius: 9px; }
  .congestion-panel { padding: 14px; }
  .congestion-heading { flex-basis: auto; margin-bottom: 14px; }
  .congestion-heading h1 { font-size: clamp(21px, 6.1vw, 34px); }
  .congestion-heading p { font-size: 14px; }
  .combridge-grid { flex: none; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: auto; gap: 10px; }
  .combridge-card { padding: 12px 14px; gap: 6px; }
  .combridge-card h2 { font-size: 23px !important; }
  .combridge-number { font-size: 16px; }
  .combridge-status { font-size: 23px !important; min-height: 44px; padding: 8px 14px; gap: 15px; }
  .combridge-status-dot { width: 16px; height: 16px; }
  .combridge-stamp { font-size: 15px; }
  #notice { font-size: 14px; }
}
