* {
  box-sizing: border-box;
}

/* ============================
   배경 애니메이션
============================ */
.matrix-container {
  position: fixed;
  width: 100%;
  height: calc(100vh - 100px);
  margin-bottom: -100px;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

#matrix-canvas {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100vw;
  height: 80vh;
  z-index: 1;
  pointer-events: none;
}

/* ============================
   공통 (모바일/데스크탑 동일)
============================ */
.full-layout {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  align-items: center;
  width: calc(100% - 50px);
  max-width: 1500px;
  margin: 50px 50px;
  margin-bottom: 0;
  z-index: 9999;
  position: relative;
  background-color: transparent;
}

.main-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
  background-color: transparent;
}

.main-panel {
  background-color: transparent;
  min-height: 150vh;
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: calc(100vw - 200px);
  z-index: 11;
  position: relative;
}

@media (max-width: 768px) {
  .main-panel {
    max-width: calc(100vw - 50px);
  }
}

/* ============================
   확장 사이드 패널
============================ */
.sidebar-extension-panel {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  width: var(--extension-width);
  height: 100vh;
  background: #222;
  z-index: 12000;
}
